query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Constructor used when instantiating this class within its own main.
public ToolKitFinder(EdaContext aContext) throws IcofException { this(aContext, null, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Main() {\n\n super();\n }", "public Main() {\n\t\tsuper();\n\t}", "public Main() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\r\n\t}", "private Main ()\n {\n super ();\n }", "public Main() {\r\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "public Main() {\n \n \n }", "public Constructor(){\n\t\t\n\t}", "public Main() {\r\n }", "public Main() {\r\n }", "public Main() {\n // Required empty public constructor\n }", "public Main() {\n }", "public Main() {\n }", "public Main() {\n }", "public Main() {}", "private Main() {\n }", "private Main() {}", "private CommandLine() {\n\t}", "private Main()\n {{\n System.err.println ( \"Internal error: \"+\n\t \"unexpected call to default constructor for Main.\" );\n System.exit(-127);\n }}", "private Instantiation(){}", "private TetrisMain() {\r\n //ensure uninstantiability\r\n }", "private MainConst() {\n super(\"\");\n }", "public Main() {\n this(DEFAULT_SIZE);\n }", "public Main() {\n this(DEFAULT_SIZE);\n }", "private Rekenhulp()\n\t{\n\t}", "private QcTestRunner()\n\t{\n\t\t// To prevent external instantiation of this class\n\t}", "private TMCourse() {\n\t}", "private TetrisMain() {\r\n //prevents instantiation\r\n }", "public GuiMainImpl() {\r\n this(null, null, \"\");\r\n }", "Reproducible newInstance();", "public CyanSus() {\n\n }", "public Chick() {\n\t}", "public mainData() {\n }", "public static void main(String[] args) {\n\t\tthisconstructor rv = new thisconstructor();\n\t\n\t\n\t}", "ConstructorPractice () {\n\t\tSystem.out.println(\"Default Constructor\");\n\t}", "public Self__1() {\n }", "public ExamMB() {\n }", "private MApi() {}", "public Hacker() {\r\n \r\n }", "public PSRelation()\n {\n }", "private Marinator() {\n }", "private Marinator() {\n }", "private MazeBuilder() {\n\t}", "public void init() {\n \n }", "private CLUtil()\n {\n }", "private CheckingTools() {\r\n super();\r\n }", "public Demo() {\n\t\t\n\t}", "private void init() {\n }", "private Util()\n {\n // Empty default ctor, defined to override access scope.\n }", "@Override\r\n\tpublic void init() {}", "public Pitonyak_09_02() {\r\n }", "public Aanbieder() {\r\n\t\t}", "@Override\n public void init() {}", "private ThoseMain()\n {\n // Do nothing\n }", "public Zeffit()\n {\n // TODO: initialize instance variable(s)\n }", "public FeatureSynthesisMain() {\n super();\n }", "public Sandwich()\n\t{super();\n \n\t\t\n\t}", "public CSSTidier() {\n\t}", "public TestFrames() {\n\t\tclasslogger.info(\"Called constructor for TestFrames...\");\n\t}", "public Overview() {\n\t\t// It will work whenever i create object with using no parameter const\n\t\tSystem.out.println(\"This is constructor\");\n\t}", "public SpeakerSerivceImpl() {\n\t\tSystem.out.println(\"No args in constructor\");\n\t}", "private Supervisor() {\r\n\t}", "public TennisCoach () {\n\t\tSystem.out.println(\">> inside default constructor.\");\n\t}", "public MainClass()\r\n\t{\r\n\t\tthis.setPreferredSize(new Dimension(width - 300, height));// This sets the dimensions of the graphic space where cam is drawn\r\n\t\tpanel = new ControlPanel(); // Initialization of various objects incorporated into the main class\r\n\t\twindow = new Window(this, panel);\t\t\t\t//\r\n\t\tdisp = new DispAngleDiagram(stroke);\t\t\t//\r\n\t\trcp = new RenderCamProfile(disp, panel);\t\t//\r\n\t\tinput = new InputHandler(disp);\t\t\t\t\t//\r\n\t\t\r\n\t\tthis.addMouseListener(input);\t\t\t\t\t\r\n\t\tthis.addMouseMotionListener(input);\r\n\t}", "public _355() {\n\n }", "private void init() {\n }", "private void init() {\n }", "private void init() {\n }", "private void init() {\n }", "@Override public void init()\n\t\t{\n\t\t}", "public Curso() {\r\n }", "private void init() {\n\n\t}", "public HelloWorldProgramOutput ()\n {\n initialize();\n }", "public PjxParser()\r\n {\r\n LOG.info(this + \" instantiated\");\r\n }", "public void init() {}", "public void init() {}", "public ProgramWilmaa()\n\t{\n\t}", "protected void initialize() {}", "protected void initialize() {}", "@Override\n\t\tpublic void init() {\n\t\t}", "public Job() {\r\n\t\tSystem.out.println(\"Constructor\");\r\n\t}", "private Utils() {\n\t}", "private Utils() {\n\t}", "private TweetRiver() { }", "public Excellon ()\n {}", "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "private Utils()\n {\n // Private constructor to prevent instantiation\n }", "private AlgorithmRegistryCLI() {\n super();\n }", "private JadTool() { }", "private GuiUtils()\r\n {\r\n // Private constructor to prevent instantiation\r\n }", "public Magazzino() {\r\n }", "private RunUtils() {\n }", "private IOUtilities() {\n }", "private SingleObject()\r\n {\r\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "private Shell() { }", "private Topography()\n\t{\n\t\tthrow new IllegalStateException(\"This is an utility class, it can not be instantiated\");\n\t}", "public Playground() {\n }", "public Driver() {\n setupFiles();\n }", "private DarthSidious(){\n }", "public void init() { }" ]
[ "0.80686593", "0.7861194", "0.7849036", "0.78214383", "0.7555967", "0.750676", "0.742205", "0.7354902", "0.7350861", "0.7350861", "0.7271449", "0.723124", "0.71797466", "0.71797466", "0.7169403", "0.71243334", "0.70556825", "0.7054301", "0.69266045", "0.68970907", "0.6833616", "0.6828525", "0.68243164", "0.68243164", "0.68103796", "0.6774138", "0.6765924", "0.6734202", "0.67117786", "0.66702247", "0.6665117", "0.6635477", "0.66342187", "0.6605484", "0.6591615", "0.65878916", "0.6579272", "0.65692556", "0.6554532", "0.65519583", "0.6544986", "0.6544986", "0.6531056", "0.65295047", "0.6516174", "0.6509825", "0.65098065", "0.6506685", "0.65025353", "0.649307", "0.64899486", "0.64876574", "0.64868987", "0.6485316", "0.64852786", "0.6484747", "0.64748234", "0.6466122", "0.64576596", "0.6456943", "0.6450374", "0.64474094", "0.6446168", "0.64428085", "0.6436469", "0.64343375", "0.64343375", "0.64343375", "0.64343375", "0.64329743", "0.6429892", "0.6426381", "0.64215463", "0.6420677", "0.6419642", "0.6419642", "0.64194113", "0.6418266", "0.6418266", "0.6416756", "0.641445", "0.6410941", "0.6410941", "0.6407601", "0.64029205", "0.640154", "0.6396944", "0.6395711", "0.6394562", "0.6393577", "0.6390406", "0.6389962", "0.6384961", "0.63792956", "0.63766915", "0.63730496", "0.63705945", "0.6355893", "0.6350666", "0.63476217", "0.6347216" ]
0.0
-1
Instantiate the class and process the arguments.
public static void main(String argv[]) { TkAppBase myApp = null; try { myApp = new ToolKitFinder(null); start(myApp, argv); } catch (Exception e) { handleExceptionInMain(e); } finally { handleInFinallyBlock(myApp); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void run(String classname, Vector args) throws BuildException {\r\n CommandlineJava cmdj = new CommandlineJava();\r\n cmdj.setClassname(classname);\r\n for (int i = 0; i < args.size(); i++) {\r\n cmdj.createArgument().setValue((String) args.elementAt(i));\r\n }\r\n run(cmdj);\r\n }", "Object instantiate(Map<String, Object> arguments);", "public T parseArguments(String[] args) {\r\n try {\r\n //Load annotated methods into a Map keyed by the option name\r\n final T targetInstance = targetClass.newInstance();\r\n\r\n final Map<String, String> argsMap = getOptionsMap(args);\r\n\r\n for (Entry<String, Method> annotatedMethodEntry : annotatedMethods.entrySet()) {\r\n final String optionName = annotatedMethodEntry.getKey();\r\n if (argsMap.containsKey(optionName)) {\r\n final String value = argsMap.get(optionName);\r\n invokeAnnotatedMethod(optionName, targetInstance, value);\r\n } else if (!hasDefault(optionName)) {\r\n invokeAnnotationDefault(optionName, targetInstance);\r\n }\r\n }\r\n\r\n return targetInstance;\r\n } catch (ReflectiveOperationException ex) {\r\n throw new IllegalArgumentException(Arrays.toString(args), ex);\r\n }\r\n }", "private Instantiation(){}", "Reproducible newInstance();", "public static void main(String[] args) throws IOException, ClassNotFoundException, InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException, SecurityException {\n\t\t\n\t\t\n\t\tString className=loadFromProperties();\n\t\tClass auto=Class.forName(className);\n\t\t\n\t\tConstructor con=auto.getDeclaredConstructor();\n\t con.setAccessible(true); \n\t\tObject bmw=con.newInstance();\n\t Method getMethod = bmw.getClass().getMethod(\"getInstance\");\n\t \n\t IAutoMobileFactory instance=(IAutoMobileFactory)getMethod.invoke(bmw);\n\t IAutoMobile automobile=instance.make();\n\t automobile.start();\n\t automobile.stop();\n\n\t\n\t}", "public static Object createInstance(String className, Class<?>[] argumentTypes, Object[] arguments) \n {\n if(className == null) \n {\n throw new IllegalArgumentException(\"ClassName must be specified\");\n }\n if(argumentTypes == null) \n {\n throw new IllegalAnnotationException(\"ArgumentTypes must be specified. Use empty array if no arguments\");\n }\n if(arguments == null) \n {\n throw new IllegalAnnotationException(\"Arguments must be specified. Use empty array if no arguments\");\n }\n try \n {\n Class<?> implClass = loadClass(className); \n Constructor<?> constructor = findConstructor(implClass, argumentTypes);\n return constructor.newInstance(arguments);\n }\n catch (Exception e) \n {\n throw new RuntimeException(\n \"Could not create new instance of \" + className + \", missing package from classpath?\", e);\n } \n }", "public static void main(String[] args) {\n\t\tnew Actions();\r\n\t\t//call constructor\r\n\t}", "private InstantiateTransformer(Class[] paramTypes, Object[] args) {\n super();\n if (((paramTypes == null) && (args != null))\n || ((paramTypes != null) && (args == null))\n || ((paramTypes != null) && (args != null) && (paramTypes.length != args.length))) {\n throw new IllegalArgumentException(\"InstantiateTransformer: The parameter types must match the arguments\");\n }\n if ((paramTypes == null) && (args == null)) {\n iParamTypes = null;\n iArgs = null;\n } else {\n iParamTypes = (Class[]) paramTypes.clone();\n iArgs = (Object[]) args.clone();\n }\n }", "private CommandLine() {\n\t}", "private Main(String... arguments) {\n this.operations = new ArrayDeque<>(List.of(arguments));\n }", "public static void main(String[] args) throws IOException {\n \n CreateInstance createInstance = new CreateInstance();\n\n try {\n createInstance.init(args);\n Flavor flavor = createInstance.getFlavor();\n createInstance.createInstance(flavor);\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n createInstance.close();\n }\n }", "public static void main(String[] args) throws IOException {\n\t\t// creating local class objects \n\t\t\n\t}", "public static void main( String[] args ) {\n\t\t\n\t\t//Taking it in order, let's instantiate this first so it can\n\t\t// run the constructor that is just a few lines above us.\n\t\tMainClass main = new MainClass();\n\t\t\n\t\t//After that, we can run the other constructor in the other\n\t\t// class.\n\t\tConstructorClass constructor = new ConstructorClass();\n\t\t\n\t}", "public static void main(String[] args) throws IOException, ClassNotFoundException, NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException {\n }", "public static void main(String[] args) {\r\n\t\tArgumentParser parser = new ArgumentParser(args);\r\n\t\tString username = null;\r\n\t\ttry {\r\n\t\t\tusername = parser.getArgumentsFor(ArgumentRegistry.USERNAME);\r\n\t\t} catch (InvalidArgumentException e) {\r\n\t\t\tArgumentParser.doTooFewArguments(\"Username argument cannot be null.\");\r\n\t\t}\r\n\t\tnew TrackObj(username);\r\n\t}", "T newInstance(Object... args);", "public static void main(String[] args) throws InstantiationException, IllegalAccessException, ClassNotFoundException {\n\ttry {\n\tClass cls=Class.forName(\"udemy.ObjCreation\");\n\tObjCreation o=(ObjCreation)cls.newInstance();\n\tSystem.out.println(o.a);\n\t}\n\tcatch(InstantiationException e) {\n\t\te.printStackTrace();\n\t}\n\tcatch(IllegalAccessException e) {\n\t\te.printStackTrace();\n\t}\n\tcatch(ClassNotFoundException e) {\n\t\tSystem.out.println(\"not found class\");\n\t\te.printStackTrace();\n\t}\n}", "public static void main(String[] args) throws InstantiationException, IllegalAccessException {\n }", "private void processClass(String classType ) {\n\t\tif ( classType.equals(\"CommandLineTool\") ) {\n\t\t\t\tCOMMAND_LINE_TOOL = new CommandLineTool();\n\t\t}\n\t}", "protected PyObject createObject(final PyObject pyClass, final Object[] args, final String[] keywords) {\n\t\treturn pyClass.__call__(convertArgs2Python(args), keywords);\n\t}", "public static void main(String... args) throws IllegalAccessException, InstantiationException {\n parseArgs(ArgFilters.SELECT_ALL, Arrays.asList(args));\n new AppLauncher().run(APP_CLASS.get().newInstance());\n }", "private Launcher(String[] args) {\n\n\t\t// parse commandline parameters\n\t\tString name = ManagementFactory.getRuntimeMXBean().getName();\n\t\tString home = System.getProperty(Jyro.JYRO_HOME, \".\");\n\t\tfor (String arg : args) {\n\n\t\t\thome = arg;\n\t\t}\n\t\tthis.home = new File(home);\n\t\tthis.name = name;\n\t\tlogger.info(Jyro.JYRO_HOME + \"=\" + this.home);\n\t\treturn;\n\t}", "public static void main(String[] args) {\n\t\tnew StartClass();\n\t}", "public static void main(String[] args) throws InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException, SecurityException, ClassNotFoundException {\n\t\t\n\t\tCar car = CarFactory.getCar();\n\t\tcar.gears();\n\t\tcar.windows();\n\n\t}", "private ServiceConstructorArguments(\n Class<? extends Service> implementation,\n Class<?> configClass,\n String configID,\n Object config,\n String serviceID,\n Class<? extends Service> serviceClass,\n Service serviceInstance\n ) {\n this.implementation = implementation;\n this.configClass = configClass;\n this.configID = configID;\n this.config = config;\n this.serviceID = serviceID;\n this.serviceClass = serviceClass;\n this.serviceInstance = serviceInstance;\n }", "public static void main(String[] args) {\n\t\t\n\t\tObject a = new ClassObj();\n\t\t ((A) a).Calling();\n\t\t \n\n\t}", "@Override\n public void initialise(String[] arguments) {\n\n }", "public static void main(String[] args) {\n\t\ttry\r\n\t\t{\r\n\t\t\tClass clsName=Class.forName(\"com.sist4.A\");\r\n\t\t\tObject obj=clsName.newInstance();\r\n\t\t\t// A a=new A();\r\n\t\t\tMethod[] m=clsName.getDeclaredMethods();\r\n\t\t\tm[0].invoke(obj, null);\r\n\t\t}catch(Exception ex){}\r\n\t}", "public Object invokeConstructor(String type, Object arguments) {\n return invokeConstructorOf(loadClass(type), arguments);\n }", "@SuppressWarnings(\"unused\")\n\tpublic static void main(String[] args) {\n\t\tClassTwo obj = new ClassTwo();\n\t}", "public static void main(String[] args) {\n\t\tSecondLevelClass secondLevelClassObject = new SecondLevelClass(100, 200);\n\t}", "protected abstract void construct();", "public static void main(final String[] args) throws Exception {\n // Initialize the logger\n logger.debug(\"Logger initialized\");\n\n // Initialize our config file\n // To override this on the commnad line simply do:\n // java -Dconfig.file=/path/to/config.yaml -jar clue.jar \n String configFile = System.getProperty(\"config.file\");\n logger.debug(\"Property config file = \" + configFile);\n if (configFile == null) {\n configFile = Config.defaultConfigFile;\n }\n logger.debug(\"Loading config file = \" + configFile);\n config.getConfig(configFile);\n logger.debug(\"Config initialized\");\n \n logger.debug(\"Hello World\");\n for (int i = 0; i < args.length; ++i) {\n logger.debug(\"Command line argument[\" + Integer.toString(i) + \"] = \"\n + args[i]);\n }\n \n config.printProperty(\"main.class\");\n String main_classname = config.getProperty(\"main.class\", String.class);\n Runnable main_class = instantiate(main_classname, Runnable.class);\n main_class.run();\n\t}", "public ArgumentsParser(String... args) {\n this.arguments = new HashMap<>(args.length);\n this.args = Arrays.copyOf(args, args.length);\n }", "public static Object newInstance(String className, Object... args) {\n try {\n Class<?> clazz = Class.forName(className);\n Constructor<?>[] constructors = clazz.getDeclaredConstructors();\n for (Constructor<?> constructor : constructors) {\n Class<?>[] types = constructor.getParameterTypes();\n if (types.length == args.length) {\n int matched = 0;\n for (; matched<types.length; matched++) {\n if (!types[matched].isAssignableFrom(args[matched].getClass())) {\n break;\n }\n }\n if (matched == args.length) {\n constructor.setAccessible(true);\n return constructor.newInstance(args);\n }\n }\n }\n } catch (Exception e) {\n Logger.w(\"Reflection\", \"newInstance \" + className + \" \" + e.toString());\n }\n return null;\n }", "public static void main(String[] args) throws ClassNotFoundException, IOException, ParseException {\n\t\tEntryPoint entry= new EntryPoint();\n\t\t\t\n\t entry.mainMenu();\n\t\t\n\t\t\n\t}", "public static void run(Class<CrossRideApplication> class1, String[] args) {\n\t\t\r\n\t}", "public static void main(String[] args) \r\n {\n \tClassB b = new ClassB(11,12,13);\r\n \t\r\n \t\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tthisconstructor rv = new thisconstructor();\n\t\n\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tConstructor obj = new Constructor(1);\n\t\t\n\t\n\t\t\n\t\t\n\n\t}", "public static void main(String[] args) {\n\t\tinitializeMethod();\n\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(\"add new class\");\n\n\t}", "public MockClass(String arg) {\n\t}", "public static void main(String[] args) {\n\t\t\n\t\taccountClass ac = new accountClass();\n\t\tac.setFirstName(\"naveed\");\n\t\tac.setLastName(\"farouq\");\n\t\tac.setAccountNumber(1233);\n\t\t\n\t\t\n\t\tserviceClass sc = new serviceClass();\n\t\tsc.adding(ac, 23);\n\t\tsc.adding(ac, 24);\n\t\t\n\t\tsc.retrieving();\n\t\t\n\t}", "public static void main(String[] args) {\n test5q37 t5q37 = new test5q37();\n\n //System.out.println(\"...\");\n //InitClass obj = new InitClass;\n t5q37.InitClass(5);\n \n }", "public ParameterizedInstantiateFactory() {\r\n super();\r\n }", "public Evaluador() {\n aL = new Arguments();\n }", "public static void main(String args[]) {\n Subclass subc = new Subclass();\r\n }", "public static void main(String[] args) {\n\t\tnew FirstConstructor();\r\n\t\tnew FirstConstructor(\"Baxter\");\r\n\t}", "public static void main(String[] args) {\n\t\tConstructor cn=new Constructor(); \r\n\t\t// Note: no need to create object for constructor\r\n\t\r\n\t}", "public ParameterizedInstantiateFactory(Class<? extends T> classToInstantiate) {\r\n super();\r\n this.classToInstantiate = classToInstantiate;\r\n }", "public static void main(String[] args){\n cmd = args;\r\n init(cmd);\r\n }", "public static void main(String[] args) throws Exception {\r\n\t\t\r\n\t\t\r\n\t\t//create an instance\r\n\t\tparser dpe = new parser(null);\r\n\t\t\r\n\t\tdpe.runParser();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tA9 obj = new A9();\r\n\t\tobj.process();\r\n\t}", "public Object createNew(String typename, Object... args) \n\t\tthrows \tIllegalAccessException, \n\t\t\tInstantiationException, \n\t\t\tClassNotFoundException,\n\t\t\tNoSuchMethodException,\n\t\t\tInvocationTargetException \n\t{\n\t\tswitch(args.length) \n\t\t{\n\t\tcase 1 : return Class.forName(typename).getConstructor(args[0].getClass()).newInstance(args[0]);\n\t\tcase 2 : return Class.forName(typename).getConstructor(args[0].getClass(), args[1].getClass()).\n\t\t\tnewInstance(args[0], args[1]);\n\t\t}\n\t\treturn null;\n\t}", "public static void main(String[] args) {\n\n\t\t\tAbstractSuper obj = new AbstractSuper();\n\t\t}", "public ArgumentsParser() {\n this(new String[0]);\n }", "public abstract Object execute(Class clazz, Object[] args) throws IOException;", "public void initializeClass();", "public static void main(String[] args) {\n\t\tClass1 words = new Class1(100); //takes constructor and size\r\n\t\twords.load();\r\n\t\tString ssize = 100;\r\n\t\tString [] stuff = new String[ssize];\r\n\t}", "public static void main(String[] args) {\n\t\tif(args.length < 2) {\n\t\t\tSystem.out.println(\"USAGE: java com.neocoretechs.bootstrapper.bootstrap <local address> <bytecode server node address> <main method of class to execute> [arg 0 to main] [arg 1 to main] ...\");\n\t\t\treturn;\n\t\t}\n \tint count = 0;\n \tClass[] types = null;\n \tString[] sargs = null;\n \tObject[] oargs = new Object[1];\n try {\n \thcl.connectToRemoteRepository(args[0],args[1],9999);\n \tClass targetClass = hcl.loadClass(args[2]);\n \tfinal Method method = targetClass.getMethod(\"main\", String[].class);\n \tcount = method.getParameterCount();\n \ttypes = method.getParameterTypes();\n sargs = new String[args.length-3];\n for(int i = 0; i < args.length-3; i++) {\n \tsargs[i] = args[i+3];\n }\n oargs[0] = sargs;\n method.invoke(null, oargs);\n //\n \t//Constructor c = target.getConstructor(new Class[] {Class.forName(args[1])});\n\t\t\t//Object o = c.newInstance(new Object[] {}); //default constructor call\n\t\t} catch (IllegalAccessException | IllegalArgumentException\n\t\t\t\t| InvocationTargetException | ClassNotFoundException | NoSuchMethodException | SecurityException e) {\n\t\t\tSystem.out.println(\"Failed to invoke main method of \"+args[1]+\". Check bytecode server \"+args[0]+\" provisioning.\");\n\t for(int i = 0; i < oargs.length; i++) {\n\t \tSystem.out.println(\"Argument to main \"+i+\" - \"+oargs[i]);\n\t }\n\t System.out.println(\"Should be:\"+count+\" of types:\");\n\t if(types == null)\n\t \tSystem.out.println(\"Wasn't able to get the parameter types, sorry\");\n\t else {\n\t \tif(types.length != oargs.length) {\n\t \t\tSystem.out.println(\"Required length of paramters is \"+types.length+\" but the proposed parameter array is of length \"+oargs.length);\n\t \t} else\n\t \t\tfor(int i = 0; i < types.length; i++) {\n\t \t\t\tSystem.out.println(i+\" required:\"+types[i]+\" proposed:\"+oargs[i].getClass());\n\t \t\t}\n\t }\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Failed to connect to remote bytecode server, check status of server process on node \"+args[0]);\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void main(String[] args) {\n NonGenericClass nonGen1 = new NonGenericClass(123);\n \n //Creating object by passing String as an argument\n NonGenericClass nonGen2 = new NonGenericClass(\"abc\");\n \n //Creating object by passing Double as an argument\n NonGenericClass nonGen3 = new NonGenericClass(25.69);\n }", "public static void main(String[] args)\n {\n new Bar().bar(class); // bad param list\n }", "public static void main(String[] args){\n DEBUG = true;\n new ParameterClassList();\n System.exit(0);\n }", "public static void main(String[] astrCommandLine) {\n\t\tStep1ConstructorsAndOverloading();\n\t\tStep2InheritanceAndSuper();\n\n\t}", "public static void main(String[] args) {\n\t\tSingleNumber singleNumber = new SingleNumber();\r\n\r\n\t}", "public Main() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\r\n\t}", "public static void main(String[] args) throws SQLException, IOException {\n EzClass ChatMessage = new EzClass(Ref.getNmsOrOld(\"network.chat.ChatMessage\", \"ChatMessage\"));\n ChatMessage.setConstructor(String.class);\n ChatMessage.newInstance(\"Testing\");\n Object chatMessageEz = ChatMessage.getInstance();\n\n //Java Original Reflection examples\n Class<?> clazz = Ref.getNmsOrOld(\"network.chat.ChatMessage\", \"ChatMessage\");\n if (clazz != null) {\n try {\n Constructor<?> constructor = clazz.getDeclaredConstructor(String.class);\n constructor.setAccessible(true);\n Object chatMessage = constructor.newInstance(\"Testing\");\n } catch (NoSuchMethodException | InstantiationException | IllegalAccessException | InvocationTargetException e) {\n e.printStackTrace();\n }\n }\n }", "public static void main(String[] args){\n DataProcess process = new DataProcess();\n }", "public static void main(String[] args)\n {\n new Launcher();\n }", "public static void main(String[] args) {\n\t\t\n\t\tClassC c = new ClassC();\n\t\tc.display();\n\t\tc.view();\n\n\t}", "public ApplicationService(String[] arguments) {\n this.arguments = arguments;\n }", "public static void main(String[] args) throws Exception {\n\n Class<?> rcc = Class.forName(\"com.flyex.testNoUse.ReflectTest\");\n\n Object rccc = rcc.newInstance();\n Object rcccc = rcc.newInstance();\n\n\n }", "public static void main(String[] args) {\n demoClass();\n }", "public static void main(String[] args) {\n demoClass();\n }", "private ClassUtil() {}", "public static void main(String[] args) throws IOException, ClassNotFoundException {\n\r\n\t\tlaunch(args);\r\n\r\n\t}", "public static void main(String[] args) {\n\t\tLearningMultipleClasses LearningMultipleClassesObject = new LearningMultipleClasses();\r\n\t\t//how to use a specific message by using an object of that class\r\n\t\tLearningMultipleClassesObject.simpleMessage();\r\n\r\n\t}", "public Scriptable construct(Context cx, Scriptable scope, Object[] args);", "public static void main(String[] args) {\n new DynamicTicTacToe(); // Let the constructor do the job\n }", "private Object createInstance() throws InstantiationException, IllegalAccessException {\n\t\treturn classType.newInstance();\n\t}", "public static void main(String[] args) throws Exception{\n\t\tUnsafe unsafe = getUnsafe();// unsafe\n\t\t// 它跳过了构造方法\n\t\tInitDemo initDemo = (InitDemo) unsafe.allocateInstance(InitDemo.class);\n\t}", "public void _run() {\n String[] args = (String[])tEnv.getObjRelation(\"ARGS\");\n\n log.println(\"Running with arguments:\");\n for (int i=0; i< args.length; i++)\n log.println(\"#\" + i + \": \" + args[i]);\n\n oObj.run(args);\n\n tRes.tested(\"run()\", true);\n }", "public static Object createObject(String className, Class<?>[] parameterTypes, Object[] initargs) {\n try {\n Class<?> aClass = Class.forName(className);\n return createObject(aClass, parameterTypes, initargs);\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n return null;\n }", "@Override public void run(ApplicationArguments args) {\n }", "@Override\n\t public void run(ApplicationArguments args) throws Exception {\n\n\t }", "public static void main(String[] args) {\n\t\tCreateClassificationData test = new CreateClassificationData(\"originalData/Data.txt\");\n\t}", "public static void main(String[] args) {\n new SpaceInvaders();\n }", "public static void main( String args[] ) {\n\n parseInput(args);\n }", "public static void main(String[] args) {\n\r\n\t\ttry {\r\n//\t\t\tA a=new A();\r\n//\t\t\ta.disp1();\r\n//\t\t\ta.disp2();\r\n\t\t\t\r\n\t\t\tA a=new A();\r\n\t\t\tSystem.out.println(\"a=\"+a);\r\n\t\t\tClass clsName=Class.forName(\"com.sist.temp.A\");\r\n\t\t\tObject obj=clsName.newInstance();\r\n\t\t\tSystem.out.println(\"obj=\"+obj);\r\n\t\t\r\n\t\t\tMethod[] methods=clsName.getDeclaredMethods();\r\n\t\t\tfor(Method m:methods) {\r\n\t\t\t\t m.invoke(obj, null);\r\n\t\t\t}\r\n\t\t} catch(Exception ex) {}\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tDerived d = new Derived(\"hello\");\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tnewClass obj=new newClass();\n\t\tobj.positiveNegative();\n\t\tobj.EqualUnequal();\n\t}", "boolean initialise (String args);", "public static void main(String[] args) {\n\t\tDivision div = new Division();\r\n\r\n\t}", "public static void main(String[] args) {\n int restingHeartRate = readFromUser(\"What is your resting heart rate?\");\n int age = readFromUser(\"What is your age?\");\n\n TargetCalculator userTarget = new TargetCalculator(restingHeartRate,age);\n }", "public static void main(String[] args) {\n\t\tPoint point = new Point(2, 3, CoordinateSystem.CARTESIAN);\n\n\t\t// singleton access\n\t\tPoint origin = Point.ORIGIN;\n\n\t\t// Inner factory class\n\t\tPoint innerFactoryClass = Point.Factory.newCartesianPoint(1, 2);\n\n\t\t// External factory class\n\t\tPoint externalFactoryClass = PointFactory.newCartesianPoint(1, 2);\n\n\t}", "public static void main(String[] args) {\n\t\tSearch s = new Search();\n\t\ts.init();\n\t}", "public static void main(String [] args) throws Exception {\n\n if (instance == null)\n instance = new FamilySearchResource();\n gCode = \"\";\n gAccessToken = \"\";\n }", "public static void main(String[] args) {\n new MessageProcessorWithRetry();\n new EmailHelperWithRetry();\n\n }", "public Main() {\r\n\t}" ]
[ "0.6559003", "0.6452344", "0.6332843", "0.62768626", "0.6138277", "0.6046296", "0.6002044", "0.599029", "0.5963661", "0.59284663", "0.59181696", "0.5848434", "0.5837776", "0.5808015", "0.57995564", "0.5778944", "0.5758341", "0.5742251", "0.57406586", "0.57283276", "0.5717161", "0.5682113", "0.56667227", "0.5658726", "0.56417036", "0.5637684", "0.561043", "0.5609039", "0.56057614", "0.56055236", "0.5602572", "0.5596715", "0.5594169", "0.5574636", "0.5571842", "0.55644125", "0.55619127", "0.5560826", "0.5556761", "0.5551038", "0.5532977", "0.55327743", "0.5518399", "0.55182034", "0.55092", "0.55059403", "0.54959923", "0.54876536", "0.5484181", "0.5478327", "0.5475945", "0.5458209", "0.5443068", "0.54421324", "0.54408085", "0.5423706", "0.54184276", "0.5417084", "0.54140854", "0.54138875", "0.54103386", "0.5408556", "0.5407466", "0.5399874", "0.5392229", "0.5387022", "0.53853035", "0.5369612", "0.53612196", "0.5360279", "0.53589094", "0.5358808", "0.5358802", "0.5348837", "0.53487605", "0.53487605", "0.534532", "0.53443986", "0.5344301", "0.53426534", "0.5330492", "0.53300065", "0.53276753", "0.53263646", "0.53260267", "0.5318746", "0.5318117", "0.5315694", "0.53133667", "0.53117234", "0.530947", "0.5305116", "0.5301481", "0.5298716", "0.52950734", "0.5288593", "0.52885085", "0.52839875", "0.5278141", "0.52753204", "0.52751994" ]
0.0
-1
Add, update, delete, or report on the specified applications.
public void process(EdaContext xContext) throws IcofException { // Connect to the database connectToDB(xContext); // Determine if branch/component are for a production or development TK. findToolKit(xContext); rollBackDBAndSetReturncode(xContext, APP_NAME, SUCCESS); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setApplications(int applications) {\r\n this.applications = applications;\r\n }", "@Override\n\tpublic void addNewInstallApps(List<ApplicationInfo> apps, String packageName) {\n ALog.d(\"Enter\");\n\n\n\t\tfor(ApplicationInfo info : apps){\n\t\t\tint[] pageInfo = LauncherProviderHelper.findVacantCell4AppAdd(getBaseContext());\n\t\t\tif (pageInfo == null) {\n\t\t\t\tALog.d(\"can't find cell for new app\");\n\t\t\t\tcontinue;\n\t\t\t} \n\t\t\tint page = pageInfo[0];\n\t\t\tint cellX = pageInfo[1];\n\t\t\tint cellY = pageInfo[2];\n\t\t\tinfo.screen = page;\n\t\t\tinfo.cellX = cellX;\n\t\t\tinfo.cellY = cellY;\n\t\t\tinfo.spanX = 1;\n\t\t\tinfo.spanY = 1;\n\t\t\tBaseLauncherModel.addOrMoveItemInDatabase(getBaseContext(), info, LauncherSettings.Favorites.CONTAINER_DESKTOP);\n\t\t\t\n\t\t\tView view = mWorkspace.createViewByItemInfo(info);\n\t\t\tif (view == null)\n\t\t\t\treturn;\n\t\t\t((Workspace)mWorkspace).addInScreen(view, page, cellX, cellY, 1, 1);\n\t\t\t\n\t\t\t//FIXME 在编辑模式下可能会有刷新的问题\n\t\t}\n ALog.d(\"Exit\");\n\t}", "public static void addApplications(long pk,\n java.util.List<de.fraunhofer.fokus.movepla.model.Application> applications)\n throws com.liferay.portal.kernel.exception.SystemException {\n getPersistence().addApplications(pk, applications);\n }", "private Map<ApplicationEntity, String> loadApplicationsInt(final AppstoreEntity appstore, final Set<ApplicationEntity> apps) throws IOException {\n Map<ApplicationEntity, String> failedAppsWithReason = new HashMap<ApplicationEntity, String>();\n File tmpFile = null;\n String url;\n URI uri;\n for (ApplicationEntity appToLoad : apps) {\n try {\n boolean needUpdate = true;\n List<ApplicationEntity> appLog = factory.getDataService().getApplicationsLog(appToLoad.getPackageName(), -1);\n if (appLog.size() > 0) {\n // check that uploading store is home store\n if (!appLog.get(0).getAppstoreId().equals(appstore.getAppstoreId())) {\n throw new DataException(Error.INTERNAL_ERROR.withMessage(\n String.format(\"Store '%s' is not home store for package '%s'\",\n appstore.getAppstoreId(), appToLoad.getPackageName())));\n }\n for (ApplicationEntity app : appLog) {\n // check if there is appdf file with the same hash, if it is here means appdf is up to date\n if (app.getAppdfHash().equals(appToLoad.getAppdfHash())) {\n needUpdate = false;\n break;\n }\n }\n }\n if (needUpdate) {\n uri = RequesterUtils.buildRequestUri(ApiMapping.GET_APPDF.getMethodUrl(appstore.getOpenaepUrl()),\n appstore.getAppstoreAccessToken(), appToLoad.getPackageName());\n HttpGet httpGet = new HttpGet(uri);\n httpGet.addHeader(\"authToken\", appstore.getAppstoreAccessToken());\n HttpResponse response = httpClient.execute(httpGet, httpContext);\n\n int result = response.getStatusLine().getStatusCode();\n\n if (result == HttpStatus.SC_OK) {\n tmpFile = storeToUploadDir(response.getEntity().getContent(), appToLoad.getPackageName());\n appdfHandler.processFile(tmpFile, appToLoad, appLog, appstore);\n } else {\n failedAppsWithReason.put(appToLoad, response.getStatusLine().toString());\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n failedAppsWithReason.put(appToLoad, e.getMessage());\n } finally {\n if (tmpFile != null) {\n tmpFile.delete();\n }\n }\n }\n return failedAppsWithReason;\n }", "public void addApplication(Application app)\n {\n app.setDataSource(this);\n _apps.add(app);\n }", "@Override\n\tpublic int insertApplication(Application application) {\n\t\treturn 0;\n\t}", "public void saveApplication(Application app) {\n\t\trepo.save(app);\r\n\t}", "void updateList(List<PackageInfo> apps);", "public void setApplications(List<Application> apps)\n {\n _apps.clear();\n\n if (apps != null) {\n _apps.addAll(apps);\n\n for (Application app : _apps) {\n app.setDataSource(this);\n }\n }\n }", "public static void addApplications(long pk, long[] applicationPKs)\n throws com.liferay.portal.kernel.exception.SystemException {\n getPersistence().addApplications(pk, applicationPKs);\n }", "@Test\n public void addAppTest() throws ApiException {\n Boolean naked = null;\n Application body = null;\n // Application response = api.addApp(naked, body);\n\n // TODO: test validations\n }", "public static void setApplications(long pk,\n java.util.List<de.fraunhofer.fokus.movepla.model.Application> applications)\n throws com.liferay.portal.kernel.exception.SystemException {\n getPersistence().setApplications(pk, applications);\n }", "public void setApp(PR1 application){\n this.application = application;\n }", "public void setApplication(String application) {\r\n this.application = application;\r\n }", "@Test\n public void listAppsTest() throws ApiException {\n Boolean _public = null;\n String name = null;\n String executionSystem = null;\n String tags = null;\n String filter = null;\n String naked = null;\n Long limit = null;\n Long offset = null;\n // List<ApplicationSummary> response = api.listApps(_public, name, executionSystem, tags, filter, naked, limit, offset);\n\n // TODO: test validations\n }", "public static void printApplicationsList(List<Application> applications) {\n if (applications == null || applications.isEmpty()) {\n System.out.println(String.format(\"%n Sorry, at the moment there are no applications to display.\"));\n return;\n }\n System.out.println(String.format(\"%n Please see below a list of applications. %n\"));\n for (Application application : applications) {\n System.out.println(String.format(\"Application ID: %s Applicant Username: %s Job Posting: %s\",\n application.getId(), application.getApplicant().getUsername(),\n application.getJobPosting().getTitle()));\n }\n }", "public void setApplication(String application) {\r\n\t\tthis.application = application;\r\n\t}", "public void setApplication(AppW app) {\n\t\tthis.app = app;\n\t}", "public static org.oep.ssomgt.model.Application updateApplication(\n\t\torg.oep.ssomgt.model.Application application)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException {\n\t\treturn getService().updateApplication(application);\n\t}", "public void addAppsAndGenerateKeys() throws Exception {\n //TEST_USER_1\n //Subscribe to API with a new application\n HttpResponse applicationResponse = user1ApiStore\n .createApplication(TEST_APPLICATION, \"Test Application\", APIThrottlingTier.UNLIMITED.getState(),\n ApplicationDTO.TokenTypeEnum.JWT);\n assertEquals(applicationResponse.getResponseCode(), HttpStatus.SC_OK, \"Response code is not as expected\");\n\n user1ApplicationId = applicationResponse.getData();\n //Generate production key\n //generate keys for the subscription\n ApplicationKeyDTO applicationKeyDTO = user1ApiStore\n .generateKeys(user1ApplicationId, \"3600\", USER_1_TEST_APP_INITIAL_CBU,\n ApplicationKeyGenerateRequestDTO.KeyTypeEnum.PRODUCTION, null, grantTypes);\n assertNotNull(applicationKeyDTO.getToken().getAccessToken());\n\n //TEST_USER_2\n //Subscribe to API with a new application\n\n applicationResponse = user2ApiStore\n .createApplication(TEST_APPLICATION, \"Test Application\", APIThrottlingTier.UNLIMITED.getState(),\n ApplicationDTO.TokenTypeEnum.JWT);\n assertEquals(applicationResponse.getResponseCode(), HttpStatus.SC_OK, \"Response code is not as expected\");\n\n user2ApplicationId = applicationResponse.getData();\n\n //Generate production key\n applicationKeyDTO = user2ApiStore.generateKeys(user2ApplicationId, \"3600\", USER_2_TEST_APP_INITIAL_CBU,\n ApplicationKeyGenerateRequestDTO.KeyTypeEnum.PRODUCTION, null, grantTypes);\n assertNotNull(applicationKeyDTO.getToken().getAccessToken());\n }", "private void createUsersAndApplications() throws Exception {\n UserManagementUtils.signupUser(USER_ONE, PASSWORD, FIRST_NAME, ORGANIZATION);\n //signup of user two\n UserManagementUtils.signupUser(USER_TWO, PASSWORD, FIRST_NAME, ORGANIZATION);\n\n restAPIStoreClientUser1 = new RestAPIStoreImpl(USER_ONE, PASSWORD, SUPER_TENANT_DOMAIN, storeURLHttps);\n restAPIStoreClientUser2 = new RestAPIStoreImpl(USER_TWO, PASSWORD, SUPER_TENANT_DOMAIN, storeURLHttps);\n\n // Create Application for user one\n HttpResponse appCreationResponse1 = restAPIStoreClientUser1.createApplication(APPLICATION_NAME,\n \"App created by user1\", APIMIntegrationConstants.APPLICATION_TIER.UNLIMITED,\n ApplicationDTO.TokenTypeEnum.JWT);\n userOneApplicationId = appCreationResponse1.getData();\n\n // Create Application for user two\n HttpResponse appCreationResponse2 = restAPIStoreClientUser2.createApplication(APPLICATION_NAME,\n \"App created by user2\", APIMIntegrationConstants.APPLICATION_TIER.UNLIMITED,\n ApplicationDTO.TokenTypeEnum.JWT);\n userTwoApplicationId = appCreationResponse2.getData();\n\n HttpResponse appCreationResponse3 = restAPIStoreClientUser1.createApplicationWithOrganization(SHARED_APPLICATION_NAME,\n \"App created by user1\", APIMIntegrationConstants.APPLICATION_TIER.UNLIMITED,\n ApplicationDTO.TokenTypeEnum.JWT, groups);\n userOneSharedApplicationId = appCreationResponse3.getData();\n }", "com.google.cloud.talent.v4beta1.Application getApplications(int index);", "private void readApplicationsFromAPIManager(ClientAppFilter filter) throws AppException {\n\t\tif(this.apiManagerResponse !=null && this.apiManagerResponse.get(filter)!=null) return;\n\t\tHttpResponse httpResponse = null;\n\t\ttry {\n\t\t\tString requestedId = \"\";\n\t\t\tif(filter.getApplicationId()!=null) {\n\t\t\t\tif(applicationsCache.containsKey(filter.getApplicationId())) {\n\t\t\t\t\tthis.apiManagerResponse.put(filter, applicationsCache.get(filter.getApplicationId()));\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\trequestedId = \"/\"+filter.getApplicationId();\n\t\t\t}\n\t\t\tURI uri = new URIBuilder(cmd.getAPIManagerURL()).setPath(cmd.getApiBasepath() + \"/applications\" + requestedId)\n\t\t\t\t\t.addParameters(filter.getFilters())\n\t\t\t\t\t.build();\n\t\t\tLOG.debug(\"Sending request to find existing applications: \" + uri);\n\t\t\tRestAPICall getRequest = new GETRequest(uri, APIManagerAdapter.hasAdminAccount());\n\t\t\thttpResponse = getRequest.execute();\n\t\t\tString response = EntityUtils.toString(httpResponse.getEntity(), \"UTF-8\");\n\t\t\tif(response.startsWith(\"{\")) { // Got a single response!\n\t\t\t\tresponse = \"[\"+response+\"]\";\n\t\t\t}\n\t\t\tthis.apiManagerResponse.put(filter,response);\n\t\t\tif(filter.getApplicationId()!=null) {\n\t\t\t\tapplicationsCache.put(filter.getApplicationId(), response);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tthrow new AppException(\"Can't initialize API-Manager API-Representation.\", ErrorCode.API_MANAGER_COMMUNICATION, e);\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif(httpResponse!=null) \n\t\t\t\t\t((CloseableHttpResponse)httpResponse).close();\n\t\t\t} catch (Exception ignore) {}\n\t\t}\n\t}", "com.google.cloud.talent.v4beta1.ApplicationOrBuilder getApplicationsOrBuilder(int index);", "@Override\n\tpublic int updApp(ApplicationEntity App) {\n\t\tint id=App.A_id;\n\t\tString zt=null;\n\t\tApplicationEntity app=appdao.selectappById(id);\n\t\tif(\"0\".equals(app.A_state)){\n\t\t\t zt=\"1\";\n\t\t\t\n\t\t}\n\t\tApplicationEntity app1=new ApplicationEntity();\n\t\tapp1.A_state=zt;\n\t\tapp1.A_id=id;\n\t\treturn appdao.updapp(app1);\n\t}", "public boolean notifyXAITUpdate(OcapAppAttributes[] newApps);", "private void addApp(RifidiApp app) {\n\t\tsynchronized (apps) {\n\t\t\tif (apps.containsValue(app))\n\t\t\t\treturn;\n\t\t\tint appID = serviceCounter++;\n\t\t\tapps.put(appID, app);\n\t\t\tstartApp(appID, true);\n\t\t}\n\t}", "@Override\n public Set<ApplicationSummary> getAllApplicationsSummary() throws TException {\n Set<ApplicationSummary> result = new HashSet<>();\n Set<Application> allApps = getApplications(\"*\", getSecurityToken());\n\n for (Application app : allApps) {\n ApplicationSummary summary = new ApplicationSummary().setAppName(app.getAppName()).\n setId(app.getId()).setPoc(app.getPoc()).\n setSponsoringOrganization(app.getSponsoringOrganization());\n\n if (app.isSetWebApp()) {\n summary.setExternalUri(app.getWebApp().getExternalUri());\n }\n\n result.add(summary);\n }\n\n return result;\n }", "public boolean registerApplication(Application application);", "@Test(groups = \"wso2.am\", description = \"Edit application by application by user in application group\",\n dependsOnMethods = \"testEditApplicationByApplicationOwner\")\n public void testEditApplicationByUserInApplicationGroup() throws ApiException {\n List<ApplicationInfoDTO> user2AllAppsList = restAPIStoreClientUser2.getAllApps().getList();\n ApplicationDTO applicationDTO = restAPIStoreClientUser2.getApplicationById(userOneSharedApplicationId);\n Assert.assertNotNull(applicationDTO);\n Assert.assertEquals(applicationDTO.getName(), SHARED_APPLICATION_NAME);\n\n //Edit application by a user in application group\n HttpResponse serviceResponse = restAPIStoreClientUser2.updateApplicationByID(userOneSharedApplicationId,\n APPLICATION_NAME, \"This app has been edited by user1\",\n APIMIntegrationConstants.APPLICATION_TIER.TEN_PER_MIN, ApplicationDTO.TokenTypeEnum.JWT, groups);\n Assert.assertEquals(serviceResponse.getResponseCode(), HttpStatus.SC_FORBIDDEN);\n }", "private void createApplications(){\n Application application;\n Person applicant;\n Role role = roleRepository.findByName(\"applicant\");\n Status status = statusRepository.findByName(\"UNHANDLED\");\n java.sql.Date date = new java.sql.Date(Calendar.getInstance().getTime().getTime());\n\n for (Map.Entry<Long, Long> person : person.entrySet()){\n applicant = personRepository.findById(person.getValue());\n if(applicant.getUser().getRoles().contains(role)){\n Set<CompetenceProfile> competenceProfiles = new HashSet<>();\n Set<Availability> availabilities = new HashSet<>();\n for (Map.Entry<Long, Long> competenceProfile : competenceProfile.entrySet()){\n if(Objects.equals(competenceProfile.getValue(), person.getKey())){\n competenceProfiles.add(competenceProfileRepository.findById(competenceProfile.getKey()));\n }\n }\n for (Map.Entry<Long, Long> availabilitys : availability.entrySet()){\n if(Objects.equals(availabilitys.getValue(), person.getKey())){\n availabilities.add(availabilityRepository.findById(availabilitys.getKey()));\n }\n }\n application = applicationRepository.save(new Application(applicant, null, null, status, date));\n\n application = applicationRepository.findById(application.getId()).get(); //without re-finding this, the we get an optimistic locking error cause version changed within transaction. now new transaction starts and were fine\n application.setAvailabilities(availabilities);\n application.setCompetenceProfiles(competenceProfiles);\n applicationRepository.save(application);\n }\n }\n\n }", "private synchronized void addAppToAppDataUsageList(\n ApplicationInfo appInfo) {\n String appLabel = (String) packageManager.getApplicationLabel(appInfo);\n int uid = appInfo.uid;\n AppDataUsage app = new AppDataUsage(appLabel, uid);\n appDataUsageList.add(app);\n }", "public GetApplicationListResponse getApplicationList() {\n\n Iterable<ApplicationEntity> result = applicationRepository.findAll();\n\n GetApplicationListResponse response = new GetApplicationListResponse();\n\n for (Iterator<ApplicationEntity> iterator = result.iterator(); iterator.hasNext(); ) {\n ApplicationEntity application = (ApplicationEntity) iterator.next();\n GetApplicationListResponse.Applications app = new GetApplicationListResponse.Applications();\n app.setId(application.getId());\n app.setApplicationName(application.getName());\n response.getApplications().add(app);\n }\n\n return response;\n }", "public List<Application> getApplications()\n {\n return _apps;\n }", "private static Map<String, Object> storePaymentApplication(Delegator delegator, GenericValue paymentApplication, Locale locale) {\n Map<String, Object> results = ServiceUtil.returnSuccess(UtilProperties.getMessage(RESOURCE,\n \"AccountingSuccessful\", locale));\n boolean debug = true;\n if (debug) {\n Debug.logInfo(\"Start updating the paymentApplication table \", MODULE);\n }\n\n if (DECIMALS == -1 || ROUNDING == null) {\n return ServiceUtil.returnError(UtilProperties.getMessage(RESOURCE,\n \"AccountingAritmeticPropertiesNotConfigured\", locale));\n }\n\n // check if a record already exists with this data\n List<GenericValue> checkAppls = null;\n try {\n checkAppls = EntityQuery.use(delegator).from(\"PaymentApplication\")\n .where(\"invoiceId\", paymentApplication.get(\"invoiceId\"),\n \"invoiceItemSeqId\", paymentApplication.get(\"invoiceItemSeqId\"),\n \"billingAccountId\", paymentApplication.get(\"billingAccountId\"),\n \"paymentId\", paymentApplication.get(\"paymentId\"),\n \"toPaymentId\", paymentApplication.get(\"toPaymentId\"),\n \"taxAuthGeoId\", paymentApplication.get(\"taxAuthGeoId\"))\n .queryList();\n } catch (GenericEntityException e) {\n return ServiceUtil.returnError(e.getMessage());\n }\n if (!checkAppls.isEmpty()) {\n if (debug) {\n Debug.logInfo(checkAppls.size() + \" records already exist\", MODULE);\n }\n // 1 record exists just update and if different ID delete other record and add together.\n GenericValue checkAppl = checkAppls.get(0);\n // if new record add to the already existing one.\n if (paymentApplication.get(\"paymentApplicationId\") == null) {\n // add 2 amounts together\n checkAppl.set(\"amountApplied\", paymentApplication.getBigDecimal(\"amountApplied\")\n .add(checkAppl.getBigDecimal(\"amountApplied\")).setScale(DECIMALS, ROUNDING));\n if (debug) {\n Debug.logInfo(\"Update paymentApplication record: \" + checkAppl.getString(\"paymentApplicationId\") + \" with appliedAmount:\"\n + checkAppl.getBigDecimal(\"amountApplied\"), MODULE);\n }\n try {\n checkAppl.store();\n } catch (GenericEntityException e) {\n return ServiceUtil.returnError(e.getMessage());\n }\n } else if (paymentApplication.getString(\"paymentApplicationId\").equals(checkAppl.getString(\"paymentApplicationId\"))) {\n // update existing record in-place\n checkAppl.set(\"amountApplied\", paymentApplication.getBigDecimal(\"amountApplied\"));\n if (debug) {\n Debug.logInfo(\"Update paymentApplication record: \" + checkAppl.getString(\"paymentApplicationId\") + \" with appliedAmount:\"\n + checkAppl.getBigDecimal(\"amountApplied\"), MODULE);\n }\n try {\n checkAppl.store();\n } catch (GenericEntityException e) {\n return ServiceUtil.returnError(e.getMessage());\n }\n } else { // two existing records, an updated one added to the existing one\n // add 2 amounts together\n checkAppl.set(\"amountApplied\", paymentApplication.getBigDecimal(\"amountApplied\")\n .add(checkAppl.getBigDecimal(\"amountApplied\")).setScale(DECIMALS, ROUNDING));\n // delete paymentApplication record and update the checkAppls one.\n if (debug) {\n Debug.logInfo(\"Delete paymentApplication record: \" + paymentApplication.getString(\"paymentApplicationId\") + \" with \"\n + \"appliedAmount:\" + paymentApplication.getBigDecimal(\"amountApplied\"), MODULE);\n }\n try {\n paymentApplication.remove();\n } catch (GenericEntityException e) {\n return ServiceUtil.returnError(e.getMessage());\n }\n // update amount existing record\n if (debug) {\n Debug.logInfo(\"Update paymentApplication record: \" + checkAppl.getString(\"paymentApplicationId\") + \" with appliedAmount:\"\n + checkAppl.getBigDecimal(\"amountApplied\"), MODULE);\n }\n try {\n checkAppl.store();\n } catch (GenericEntityException e) {\n return ServiceUtil.returnError(e.getMessage());\n }\n }\n } else {\n if (debug) {\n Debug.logInfo(\"No records found with paymentId, invoiceid..etc probaly changed one of them...\", MODULE);\n }\n // create record if ID null;\n if (paymentApplication.get(\"paymentApplicationId\") == null) {\n paymentApplication.set(\"paymentApplicationId\", delegator.getNextSeqId(\"PaymentApplication\"));\n if (debug) {\n Debug.logInfo(\"Create new paymentAppication record: \" + paymentApplication.getString(\"paymentApplicationId\") + \" with \"\n + \"appliedAmount:\" + paymentApplication.getBigDecimal(\"amountApplied\"), MODULE);\n }\n try {\n paymentApplication.create();\n } catch (GenericEntityException e) {\n return ServiceUtil.returnError(e.getMessage());\n }\n } else {\n // update existing record (could not be found because a non existing combination of paymentId/invoiceId/invoiceSeqId/ etc... was\n // provided\n if (debug) {\n Debug.logInfo(\"Update existing paymentApplication record: \" + paymentApplication.getString(\"paymentApplicationId\") + \" with \"\n + \"appliedAmount:\" + paymentApplication.getBigDecimal(\"amountApplied\"), MODULE);\n }\n try {\n paymentApplication.store();\n } catch (GenericEntityException e) {\n return ServiceUtil.returnError(e.getMessage());\n }\n }\n }\n return results;\n }", "@PostMapping(path=\"/addApplication\", consumes = \"application/json\", produces=\"application/json\")\n\t@ResponseStatus(value=HttpStatus.OK)\n\tpublic Application addApplication(@RequestBody Application app) {\n\t\treturn as.addApplication(app);\n\t}", "@Override\n public ListApplicationsResult listApplications(ListApplicationsRequest request) {\n request = beforeClientExecution(request);\n return executeListApplications(request);\n }", "public List<ApplicationOverview> searchApplicationOverviewsUseSameApplication(String modelID, String applicationID){\r\n\t\t// sparql\r\n\t\tString sparql = \"SELECT Distinct ?application ?applicationName ?healthcareApplication ?healthcareApplicationName \\r\\n\"\r\n\t\t\t\t+ \"?data ?dataName ?dataFeature ?dataDescription ?dataResource ?accelerometerName ?gyroscopeName \\r\\n\"\r\n\t\t\t\t+ \"?model ?modelName ?modelDescription ?modelResource ?CNNTypeName ?RNNTypeName\\r\\n\"\r\n\t\t\t\t+ \"?modelPerformance ?performanceAccuracy ?performancePrecision ?performanceRecall ?performanceF1Score\\r\\n\"\r\n\t\t\t\t+ \"WHERE {\\r\\n\" + \"\t?application rdf:type onto:DeepLearningApplication.\\r\\n\"\r\n\t\t\t\t+ \" \tonto:\" + applicationID + \" onto:applicationName ?applicationName.\\r\\n\"\r\n\t\t\t\t+ \" \t?application onto:applicationName ?applicationName.\\r\\n\"\r\n\t\t\t\t+ \" ?application onto:hasHealthcareApplication ?healthcareApplication.\\r\\n\"\r\n\t\t\t \t+ \" \tOPTIONAL{?healthcareApplication onto:healthcareName ?healthcareApplicationName.}\\r\\n\"\r\n\t\t\t \t+ \"\t OPTIONAL{\"\r\n\t\t\t \t+ \"\t\t?healthcareApplication onto:hasSkinCancer ?skinCancerApplication.\\r\\n\"\r\n\t\t\t \t+ \"\t ?skinCancerApplication onto:skinCancerName ?skinCancerName.}\\r\\n\"\t\t\r\n\t\t\t \t+ \"\t OPTIONAL{\"\r\n\t\t\t \t+ \" ?healthcareApplication onto:hasMusculoskeletalDisorder ?musculoskeletalDisorderApplication.\\r\\n\"\r\n\t\t\t \t+ \" \t?musculoskeletalDisorderApplication onto:musculoskeletalDisorderName ?musculoskeletalDisorderName.}\\r\\n\"\r\n\t\t\t\t+ \" \t?application onto:hasData ?data.\\r\\n\"\r\n\t\t\t\t+ \" \t?data onto:dataName ?dataName.\\r\\n\"\r\n\t\t\t\t+ \"\t\t?data onto:dataFeature ?dataFeature.\\r\\n\"\r\n\t\t\t\t+ \" \t?data onto:dataDescription ?dataDescription.\\r\\n\"\r\n\t\t\t\t+ \" \t?data onto:dataResource ?dataResource.\\r\\n\"\r\n\t\t\t\t+ \" ?data onto:hasDataSourceType ?dataSourceType.\\r\\n\"\r\n\t\t\t\t+ \" OPTIONAL{?dataSourceType onto:hasAccelerometer ?accelerometer.\\r\\n\"\r\n\t\t\t\t+ \" \t?accelerometer onto:accelerometerName ?accelerometerName.}\\r\\n\"\r\n\t\t\t\t+ \" OPTIONAL{?dataSourceType onto:hasGyroscope ?gyroscope.\\r\\n\"\r\n\t\t\t\t+ \" \t?gyroscope onto:gyroscopeName ?gyroscopeName.}\\r\\n\"\r\n\t\t\t\t+ \" OPTIONAL{?dataSourceType onto:hasMedicalImagingDevice ?medicalImagingDevice.\\r\\n\"\r\n\t\t\t\t+ \" \t?medicalImagingDevice onto:medicalImagingDeviceName ?medicalImagingDeviceName.}\\r\\n\"\r\n\t\t\t\t+ \"\t ?application onto:hasModel ?model.\\r\\n\" \r\n\t\t\t\t+ \" \t?model onto:modelName ?modelName.\\r\\n\"\r\n\t\t\t\t+ \" \t?model onto:modelDescription ?modelDescription.\\r\\n\"\r\n\t\t\t\t+ \" \t?model onto:modelResource ?modelResource.\\r\\n\"\r\n\t\t\t\t+ \"\t\tFILTER (?model != onto:\"+ modelID +\")\"\r\n\t\t\t\t+ \" OPTIONAL{?model onto:hasPerformance ?modelPerformance.}\\r\\n\"\r\n\t\t\t\t+ \" OPTIONAL{?modelPerformance onto:performanceAccuracy ?performanceAccuracy.}\\r\\n\"\r\n\t\t\t\t+ \" OPTIONAL{?modelPerformance onto:performancePrecision ?performancePrecision.}\\r\\n\"\r\n\t\t\t\t+ \" OPTIONAL{?modelPerformance onto:performanceRecall ?performanceRecall.}\\r\\n\"\r\n\t\t\t\t+ \" OPTIONAL{?modelPerformance onto:performanceF1Score ?performanceF1Score.}\\r\\n\"\r\n\t\t\t\t+ \" ?model onto:hasModelType ?modelType.\\r\\n\"\r\n\t\t\t\t+ \" OPTIONAL{?modelType onto:hasCNNType ?CNNType.\\r\\n\"\r\n\t\t\t\t+ \" \t?CNNType onto:CNNTypeName ?CNNTypeName.}\\r\\n\"\r\n\t\t\t\t+ \" OPTIONAL{?modelType onto:hasRNNType ?RNNType.\\r\\n\"\r\n\t\t\t\t+ \" \t?RNNType onto:RNNTypeName ?RNNTypeName.}\\r\\n\"\r\n\t\t\t\t+ \"\t\t?model onto:hasLayer ?modelLayer.\"\r\n\t\t\t\t+ \" ?modelLayer ?a ?b.\\r\\n\"\r\n\t\t\t\t+ \" \t?b ?c ?d.\\r\\n\" \r\n\t\t\t\t+ \" \t?d ?e ?f.\\r\\n\";\r\n\r\n\t\t// end where\r\n\t\tsparql += \"}\";\r\n\t\tsparql += \"ORDER by DESC (?performanceAccuracy)\";\r\n\t\t// test\r\n\t\tString jsonString = findJsonResult(sparql);\r\n\t\tSystem.out.println(\"searchApplicationOverview:\" + jsonString);\r\n\t\t// result\r\n\t\tJSONObject json;\r\n\t\ttry {\r\n\t\t\tjson = new JSONObject(jsonString);\r\n\t\t\tJSONArray jsonArray = json.getJSONObject(\"results\").getJSONArray(\"bindings\");\r\n\t\t\tList<ApplicationOverview> list = new ArrayList<ApplicationOverview>();\r\n\t\t\tfor (int i = 0; i < jsonArray.length(); i++) {\r\n\t\t\t\tApplicationOverview applicationOverview = new ApplicationOverview();\r\n\t\t\t\tJSONObject jsonObject = (JSONObject) jsonArray.get(i);\r\n\t\t\t\tif (jsonObject.has(\"application\")) {\r\n\t\t\t\t\tapplicationOverview.setApplication(jsonObject.getJSONObject(\"application\").getString(\"value\").split(\"#\")[1]);\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"applicationName\")) {\r\n\t\t\t\t\tapplicationOverview.setApplicationName(jsonObject.getJSONObject(\"applicationName\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"healthcareApplicationName\")) {\r\n\t\t\t\t\tapplicationOverview.setHealthcareApplicationName(jsonObject.getJSONObject(\"healthcareApplicationName\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"skinCancerName\")) {\r\n\t\t\t\t\tapplicationOverview.setSkinCancerName(jsonObject.getJSONObject(\"skinCancerName\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"musculoskeletalDisorderName\")) {\r\n\t\t\t\t\tapplicationOverview.setMusculoskeletalDisorderName(jsonObject.getJSONObject(\"musculoskeletalDisorderName\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"data\")) {\r\n\t\t\t\t\tapplicationOverview.setData(jsonObject.getJSONObject(\"data\").getString(\"value\").split(\"#\")[1]);\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"dataName\")) {\r\n\t\t\t\t\tapplicationOverview.setDataName(jsonObject.getJSONObject(\"dataName\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"dataFeature\")) {\r\n\t\t\t\t\tapplicationOverview.setDataFeature(jsonObject.getJSONObject(\"dataFeature\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"dataDescription\")) {\r\n\t\t\t\t\tapplicationOverview.setDataDescription(jsonObject.getJSONObject(\"dataDescription\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"dataResource\")) {\r\n\t\t\t\t\tapplicationOverview.setDataResource(jsonObject.getJSONObject(\"dataResource\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"accelerometerName\")) {\r\n\t\t\t\t\tapplicationOverview.setAccelerometerName(jsonObject.getJSONObject(\"accelerometerName\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"gyroscopeName\")) {\r\n\t\t\t\t\tapplicationOverview.setGyroscopeName(jsonObject.getJSONObject(\"gyroscopeName\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"medicalImagingDeviceName\")) {\r\n\t\t\t\t\tapplicationOverview.setMedicalImagingDeviceName(jsonObject.getJSONObject(\"medicalImagingDeviceName\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"model\")) {\r\n\t\t\t\t\tapplicationOverview.setModel(jsonObject.getJSONObject(\"model\").getString(\"value\").split(\"#\")[1]);\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"modelName\")) {\r\n\t\t\t\t\tapplicationOverview.setModelName(jsonObject.getJSONObject(\"modelName\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"modelDescription\")) {\r\n\t\t\t\t\tapplicationOverview.setModelDescription(jsonObject.getJSONObject(\"modelDescription\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"modelResource\")) {\r\n\t\t\t\t\tapplicationOverview.setModelResource(jsonObject.getJSONObject(\"modelResource\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"CNNTypeName\")) {\r\n\t\t\t\t\tapplicationOverview.setCNNTypeName(jsonObject.getJSONObject(\"CNNTypeName\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"RNNTypeName\")) {\r\n\t\t\t\t\tapplicationOverview.setRNNTypeName(jsonObject.getJSONObject(\"RNNTypeName\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"modelPerformance\")) {\r\n\t\t\t\t\tapplicationOverview.setModelPerformance(jsonObject.getJSONObject(\"modelPerformance\").getString(\"value\").split(\"#\")[1]);\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"performanceAccuracy\")) {\r\n\t\t\t\t\tapplicationOverview.setPerformanceAccuracy(jsonObject.getJSONObject(\"performanceAccuracy\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"performancePrecision\")) {\r\n\t\t\t\t\tapplicationOverview.setPerformancePrecision(jsonObject.getJSONObject(\"performancePrecision\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"performanceRecall\")) {\r\n\t\t\t\t\tapplicationOverview.setPerformanceRecall(jsonObject.getJSONObject(\"performanceRecall\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"performanceF1Score\")) {\r\n\t\t\t\t\tapplicationOverview.setPerformanceF1Score(jsonObject.getJSONObject(\"performanceF1Score\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tlist.add(applicationOverview);\r\n\t\t\t}\r\n\t\t\treturn list;\r\n\r\n\t\t} catch (JSONException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public static void setApplications(long pk, long[] applicationPKs)\n throws com.liferay.portal.kernel.exception.SystemException {\n getPersistence().setApplications(pk, applicationPKs);\n }", "public AddApplicationData(String nameApplication, String descriptionApplication, int userId, int companyId){\n _nameApplication = nameApplication;\n _descriptionApplication = descriptionApplication;\n _userId = userId;\n _companyId = companyId;\n }", "public List<ApplicationOverview> searchApplicationOverviewsUseSameData(String dataID, String applicationID){\r\n\t\t// sparql\r\n\t\tString sparql = \"SELECT Distinct ?application ?applicationName ?healthcareApplication ?healthcareApplicationName \\r\\n\"\r\n\t\t\t\t+ \"?data ?dataName ?dataFeature ?dataDescription ?dataResource ?accelerometerName ?gyroscopeName \\r\\n\"\r\n\t\t\t\t+ \"?model ?modelName ?modelDescription ?modelResource ?CNNTypeName ?RNNTypeName\\r\\n\"\r\n\t\t\t\t+ \"?modelPerformance ?performanceAccuracy ?performancePrecision ?performanceRecall ?performanceF1Score\\r\\n\"\r\n\t\t\t\t+ \"WHERE {\\r\\n\" + \"\t?application rdf:type onto:DeepLearningApplication.\\r\\n\"\r\n\t\t\t\t+ \" \t?application onto:applicationName ?applicationName.\\r\\n\"\r\n\t\t\t\t+ \" ?application onto:hasHealthcareApplication ?healthcareApplication.\\r\\n\"\r\n\t\t\t \t+ \" \tOPTIONAL{?healthcareApplication onto:healthcareName ?healthcareApplicationName.}\\r\\n\"\r\n\t\t\t \t+ \"\t OPTIONAL{\"\r\n\t\t\t \t+ \"\t\t?healthcareApplication onto:hasSkinCancer ?skinCancerApplication.\\r\\n\"\r\n\t\t\t \t+ \"\t ?skinCancerApplication onto:skinCancerName ?skinCancerName.}\\r\\n\"\t\t\r\n\t\t\t \t+ \"\t OPTIONAL{\"\r\n\t\t\t \t+ \" ?healthcareApplication onto:hasMusculoskeletalDisorder ?musculoskeletalDisorderApplication.\\r\\n\"\r\n\t\t\t \t+ \" \t?musculoskeletalDisorderApplication onto:musculoskeletalDisorderName ?musculoskeletalDisorderName.}\\r\\n\"\r\n\t\t\t\t+ \" \t?application onto:hasData onto:\" + dataID + \".\\r\\n\"\r\n\t\t\t\t+ \"\t\tFILTER (?application != onto:\"+ applicationID +\")\"\r\n\t\t\t\t+ \" \t?application onto:hasData ?data.\\r\\n\"\r\n\t\t\t\t+ \" \t?data onto:dataName ?dataName.\\r\\n\"\r\n\t\t\t\t+ \"\t\t?data onto:dataFeature ?dataFeature.\\r\\n\"\r\n\t\t\t\t+ \" \t?data onto:dataDescription ?dataDescription.\\r\\n\"\r\n\t\t\t\t+ \" \t?data onto:dataResource ?dataResource.\\r\\n\"\r\n\t\t\t\t+ \" ?data onto:hasDataSourceType ?dataSourceType.\\r\\n\"\r\n\t\t\t\t+ \" OPTIONAL{?dataSourceType onto:hasAccelerometer ?accelerometer.\\r\\n\"\r\n\t\t\t\t+ \" \t?accelerometer onto:accelerometerName ?accelerometerName.}\\r\\n\"\r\n\t\t\t\t+ \" OPTIONAL{?dataSourceType onto:hasGyroscope ?gyroscope.\\r\\n\"\r\n\t\t\t\t+ \" \t?gyroscope onto:gyroscopeName ?gyroscopeName.}\\r\\n\"\r\n\t\t\t\t+ \" OPTIONAL{?dataSourceType onto:hasMedicalImagingDevice ?medicalImagingDevice.\\r\\n\"\r\n\t\t\t\t+ \" \t?medicalImagingDevice onto:medicalImagingDeviceName ?medicalImagingDeviceName.}\\r\\n\"\r\n\t\t\t\t+ \"\t ?application onto:hasModel ?model.\\r\\n\" + \" \t?model onto:modelName ?modelName.\\r\\n\"\r\n\t\t\t\t+ \" \t?model onto:modelDescription ?modelDescription.\\r\\n\"\r\n\t\t\t\t+ \" \t?model onto:modelResource ?modelResource.\\r\\n\"\r\n\t\t\t\t+ \" OPTIONAL{?model onto:hasPerformance ?modelPerformance.}\\r\\n\"\r\n\t\t\t\t+ \" OPTIONAL{?modelPerformance onto:performanceAccuracy ?performanceAccuracy.}\\r\\n\"\r\n\t\t\t\t+ \" OPTIONAL{?modelPerformance onto:performancePrecision ?performancePrecision.}\\r\\n\"\r\n\t\t\t\t+ \" OPTIONAL{?modelPerformance onto:performanceRecall ?performanceRecall.}\\r\\n\"\r\n\t\t\t\t+ \" OPTIONAL{?modelPerformance onto:performanceF1Score ?performanceF1Score.}\\r\\n\"\r\n\t\t\t\t+ \" ?model onto:hasModelType ?modelType.\\r\\n\"\r\n\t\t\t\t+ \" OPTIONAL{?modelType onto:hasCNNType ?CNNType.\\r\\n\"\r\n\t\t\t\t+ \" \t?CNNType onto:CNNTypeName ?CNNTypeName.}\\r\\n\"\r\n\t\t\t\t+ \" OPTIONAL{?modelType onto:hasRNNType ?RNNType.\\r\\n\"\r\n\t\t\t\t+ \" \t?RNNType onto:RNNTypeName ?RNNTypeName.}\\r\\n\"\r\n\t\t\t\t+ \"\t\t?model onto:hasLayer ?modelLayer.\"\r\n\t\t\t\t+ \" ?modelLayer ?a ?b.\\r\\n\"\r\n\t\t\t\t+ \" \t?b ?c ?d.\\r\\n\" \r\n\t\t\t\t+ \" \t?d ?e ?f.\\r\\n\";\r\n\r\n\t\t// end where\r\n\t\tsparql += \"}\";\r\n\t\t// test\r\n\t\tString jsonString = findJsonResult(sparql);\r\n\t\tSystem.out.println(\"searchApplicationOverviewsUseSameData:\" + jsonString);\r\n\t\t// result\r\n\t\tJSONObject json;\r\n\t\ttry {\r\n\t\t\tjson = new JSONObject(jsonString);\r\n\t\t\tJSONArray jsonArray = json.getJSONObject(\"results\").getJSONArray(\"bindings\");\r\n\t\t\tList<ApplicationOverview> list = new ArrayList<ApplicationOverview>();\r\n\t\t\tfor (int i = 0; i < jsonArray.length(); i++) {\r\n\t\t\t\tJSONObject jsonObject = (JSONObject) jsonArray.get(i);\r\n\t\t\t\tApplicationOverview applicationOverview = new ApplicationOverview();\r\n\t\t\t\tif (jsonObject.has(\"application\")) {\r\n\t\t\t\t\tapplicationOverview.setApplication(jsonObject.getJSONObject(\"application\").getString(\"value\").split(\"#\")[1]);\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"applicationName\")) {\r\n\t\t\t\t\tapplicationOverview.setApplicationName(jsonObject.getJSONObject(\"applicationName\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"healthcareApplicationName\")) {\r\n\t\t\t\t\tapplicationOverview.setHealthcareApplicationName(jsonObject.getJSONObject(\"healthcareApplicationName\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"skinCancerName\")) {\r\n\t\t\t\t\tapplicationOverview.setSkinCancerName(jsonObject.getJSONObject(\"skinCancerName\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"musculoskeletalDisorderName\")) {\r\n\t\t\t\t\tapplicationOverview.setMusculoskeletalDisorderName(jsonObject.getJSONObject(\"musculoskeletalDisorderName\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"data\")) {\r\n\t\t\t\t\tapplicationOverview.setData(jsonObject.getJSONObject(\"data\").getString(\"value\").split(\"#\")[1]);\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"dataName\")) {\r\n\t\t\t\t\tapplicationOverview.setDataName(jsonObject.getJSONObject(\"dataName\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"dataFeature\")) {\r\n\t\t\t\t\tapplicationOverview.setDataFeature(jsonObject.getJSONObject(\"dataFeature\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"dataDescription\")) {\r\n\t\t\t\t\tapplicationOverview.setDataDescription(jsonObject.getJSONObject(\"dataDescription\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"dataResource\")) {\r\n\t\t\t\t\tapplicationOverview.setDataResource(jsonObject.getJSONObject(\"dataResource\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"accelerometerName\")) {\r\n\t\t\t\t\tapplicationOverview.setAccelerometerName(jsonObject.getJSONObject(\"accelerometerName\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"gyroscopeName\")) {\r\n\t\t\t\t\tapplicationOverview.setGyroscopeName(jsonObject.getJSONObject(\"gyroscopeName\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"medicalImagingDeviceName\")) {\r\n\t\t\t\t\tapplicationOverview.setMedicalImagingDeviceName(jsonObject.getJSONObject(\"medicalImagingDeviceName\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"model\")) {\r\n\t\t\t\t\tapplicationOverview.setModel(jsonObject.getJSONObject(\"model\").getString(\"value\").split(\"#\")[1]);\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"modelName\")) {\r\n\t\t\t\t\tapplicationOverview.setModelName(jsonObject.getJSONObject(\"modelName\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"modelDescription\")) {\r\n\t\t\t\t\tapplicationOverview.setModelDescription(jsonObject.getJSONObject(\"modelDescription\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"modelResource\")) {\r\n\t\t\t\t\tapplicationOverview.setModelResource(jsonObject.getJSONObject(\"modelResource\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"CNNTypeName\")) {\r\n\t\t\t\t\tapplicationOverview.setCNNTypeName(jsonObject.getJSONObject(\"CNNTypeName\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"RNNTypeName\")) {\r\n\t\t\t\t\tapplicationOverview.setRNNTypeName(jsonObject.getJSONObject(\"RNNTypeName\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"modelPerformance\")) {\r\n\t\t\t\t\tapplicationOverview.setModelPerformance(jsonObject.getJSONObject(\"modelPerformance\").getString(\"value\").split(\"#\")[1]);\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"performanceAccuracy\")) {\r\n\t\t\t\t\tapplicationOverview.setPerformanceAccuracy(jsonObject.getJSONObject(\"performanceAccuracy\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"performancePrecision\")) {\r\n\t\t\t\t\tapplicationOverview.setPerformancePrecision(jsonObject.getJSONObject(\"performancePrecision\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"performanceRecall\")) {\r\n\t\t\t\t\tapplicationOverview.setPerformanceRecall(jsonObject.getJSONObject(\"performanceRecall\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"performanceF1Score\")) {\r\n\t\t\t\t\tapplicationOverview.setPerformanceF1Score(jsonObject.getJSONObject(\"performanceF1Score\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tlist.add(applicationOverview);\r\n\t\t\t}\r\n\t\t\treturn list;\r\n\r\n\t\t} catch (JSONException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public void update(){\n\t\tArrayList<HashMap<String, String>> application_list = new ArrayList<HashMap<String, String>>();\n\t\t\n\t\t//This adds elements from the database to the listview\n\t\tSave save = new Save(this.view.getContext());\n\n\t\t//Get the preference for hide_incompatible\n\t\tSharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(view.getContext());\n\t\tboolean hideIncompatible = sharedPrefs.getBoolean(\"hide_incompatible\", false);\n\n\t\t//Iterate over all the apps from the local database\n\t\tfor(App app : save.getAllApps()){\n\n\t\t\t//Check if apps with category games shall be listed\n\t\t\tif(app.getCategory().equals(\"Games\") \n\t\t\t\t\t&& MainFragmentActivity.pagerAdapter.page1 == Page.GAMES_ALL \n\t\t\t\t\t|| MainFragmentActivity.pagerAdapter.page1 == Page.ALL){\n\n\t\t\t\t//The app should not be shown if the user has hide_incompatible = true and the app is not compatible\n\t\t\t\tif(save.getRequirementsByID(app.getRequirementID()).isCompatible()||!hideIncompatible){\n\n\t\t\t\t\t//Put the app in a HashMap that will be used in ListAdapter\n\t\t\t\t\tHashMap<String, String >map = new HashMap<String, String>();\n\t\t\t\t\tmap.put(ListAdapter.KEY_ID, String.valueOf(app.getID()));\n\t\t\t\t\tmap.put(ListAdapter.APP_NAME, app.getName());\n\t\t\t\t\tmap.put(ListAdapter.DISTRIBUTOR, save.getDeveloperByID(app.getDeveloperID()).getName());\n\t\t\t\t\tmap.put(ListAdapter.RATING, String.valueOf(app.getRating()));\n\t\t\t\t\tmap.put(ListAdapter.CATEGORY, app.getCategory());\n\t\t\t\t\tapplication_list.add(map);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//Check if apps with category Medical shall be listed\n\t\t\telse if(app.getCategory().equals(\"Medical\") \n\t\t\t\t\t&& MainFragmentActivity.pagerAdapter.page1 == Page.MEDICAL_ALL \n\t\t\t\t\t|| MainFragmentActivity.pagerAdapter.page1 == Page.ALL){\n\n\t\t\t\t//The app should not be shown if the user has hide_incompatible = true and the app is not compatible\n\t\t\t\tif(save.getRequirementsByID(app.getRequirementID()).isCompatible() || !hideIncompatible){\n\n\t\t\t\t\t//Put the app in a HashMap that will be used in ListAdapter\n\t\t\t\t\tHashMap<String, String >map = new HashMap<String, String>();\n\t\t\t\t\tmap.put(ListAdapter.KEY_ID, String.valueOf(app.getID()));\n\t\t\t\t\tmap.put(ListAdapter.APP_NAME, app.getName());\n\t\t\t\t\tmap.put(ListAdapter.DISTRIBUTOR, save.getDeveloperByID(app.getDeveloperID()).getName());\n\t\t\t\t\tmap.put(ListAdapter.RATING, String.valueOf(app.getRating()));\n\t\t\t\t\tmap.put(ListAdapter.CATEGORY, app.getCategory());\n\n\t\t\t\t\tapplication_list.add(map);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//Check if apps with category Tools shall be listed\n\t\t\telse if(app.getCategory().equals(\"Tools\") \n\t\t\t\t\t&& MainFragmentActivity.pagerAdapter.page1 == Page.TOOLS_ALL \n\t\t\t\t\t|| MainFragmentActivity.pagerAdapter.page1 == Page.ALL){\n\n\t\t\t\t//The app should not be shown if the user has hide_incompatible = true and the app is not compatible\n\t\t\t\tif(save.getRequirementsByID(app.getRequirementID()).isCompatible() || !hideIncompatible){\n\n\t\t\t\t\t//Put the app in a HashMap that will be used in ListAdapter\n\t\t\t\t\tHashMap<String, String >map = new HashMap<String, String>();\n\t\t\t\t\tmap.put(ListAdapter.KEY_ID, String.valueOf(app.getID()));\n\t\t\t\t\tmap.put(ListAdapter.APP_NAME, app.getName());\n\t\t\t\t\tmap.put(ListAdapter.DISTRIBUTOR, save.getDeveloperByID(app.getDeveloperID()).getName());\n\t\t\t\t\tmap.put(ListAdapter.RATING, String.valueOf(app.getRating()));\n\t\t\t\t\tmap.put(ListAdapter.CATEGORY, app.getCategory());\n\n\t\t\t\t\tapplication_list.add(map);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//Check if apps with category Media shall be listed\n\t\t\telse if(app.getCategory().equals(\"Media\") \n\t\t\t\t\t&& MainFragmentActivity.pagerAdapter.page1 == Page.MEDIA_ALL \n\t\t\t\t\t|| MainFragmentActivity.pagerAdapter.page1 == Page.ALL){\n\n\t\t\t\t//The app should not be shown if the user has hide_incompatible = true and the app is not compatible\n\t\t\t\tif(save.getRequirementsByID(app.getRequirementID()).isCompatible() || !hideIncompatible){\n\n\t\t\t\t\t//Put the app in a HashMap that will be used in ListAdapter\n\t\t\t\t\tHashMap<String, String >map = new HashMap<String, String>();\n\t\t\t\t\tmap.put(ListAdapter.KEY_ID, String.valueOf(app.getID()));\n\t\t\t\t\tmap.put(ListAdapter.APP_NAME, app.getName());\n\t\t\t\t\tmap.put(ListAdapter.DISTRIBUTOR, save.getDeveloperByID(app.getDeveloperID()).getName());\n\t\t\t\t\tmap.put(ListAdapter.RATING, String.valueOf(app.getRating()));\n\t\t\t\t\tmap.put(ListAdapter.CATEGORY, app.getCategory());\n\n\t\t\t\t\tapplication_list.add(map);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tlist = (ListView)this.view.findViewById(R.id.list);\n\n\t\t// Getting adapter by passing xml data ArrayList\n\t\tadapter = new ListAdapter(this.view.getContext(), application_list); \n\t\tlist.setAdapter(adapter);\n\n\t\t// Click event for single list row\n\t\tlist.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n\t\t\t\t//Create a new intent for the application view\n\t\t\t\tIntent intent = new Intent(view.getContext(), AppView.class);\n\n\t\t\t\t//Fetch the application ID\n\t\t\t\tint appID = Integer.parseInt(adapter.getID(position));\n\n\t\t\t\t//Give the intent a message (which application to retreive from the db)\n\t\t\t\tintent.putExtra(\"app\", appID);\n\n\t\t\t\t//Start the activity\n\t\t\t\tstartActivity(intent);\n\t\t\t}\n\t\t});\t\n\t}", "public void addApp(AppTable appTable) {\n appTable.setTabId(tabId);\n boolean success = addAppToList(appTable);\n if (success) {\n sortAppsList();\n arrayAdapter.notifyDataSetChanged();\n // add to database only if it is not the first tab\n if (tabId != 1)\n sqlHelper.addAppToTab(appTable);\n }\n }", "@Update({ \"update iiot_app_list\", \"set app_name = #{appName,jdbcType=VARCHAR},\", \"node = #{node,jdbcType=VARCHAR},\",\n\t\t\t\"status = #{status,jdbcType=INTEGER},\", \"restart_times = #{restartTimes,jdbcType=CHAR},\",\n\t\t\t\"up_time = #{upTime,jdbcType=VARCHAR},\", \"template = #{template,jdbcType=VARCHAR},\",\n\t\t\t\"owner = #{owner,jdbcType=VARCHAR},\", \"note = #{note,jdbcType=VARCHAR},\",\n\t\t\t\"rest3 = #{rest3,jdbcType=VARCHAR},\", \"rest4 = #{rest4,jdbcType=VARCHAR},\",\n\t\t\t\"rest5 = #{rest5,jdbcType=VARCHAR},\", \"create_time = #{createTime,jdbcType=TIMESTAMP},\",\n\t\t\t\"uuid = #{uuid,jdbcType=CHAR}\", \"where app_id = #{appId,jdbcType=INTEGER}\" })\n\tint updateByPrimaryKey(IiotAppList record);", "private void loadApps() {\n\n Intent i = new Intent(Intent.ACTION_MAIN, null);\n i.addCategory(Intent.CATEGORY_LAUNCHER);\n\n switch ((int) tabId) {\n case 1:\n // Tab 1 is a special tab and includes all except for the ones in other tabs\n // Retrieve all installed apps on the device\n List<ResolveInfo> availableActivities = mPacMan.queryIntentActivities(i, 0);\n\n // And only add those that are not in the database\n for (int j = 0; j < availableActivities.size(); j++) {\n ResolveInfo ri = availableActivities.get(j);\n\n if (sqlHelper.containsApp(ri.activityInfo.name))\n continue;\n\n AppDetail app = new AppDetail();\n app.label = ri.loadLabel(mPacMan);\n app.packageName = ri.activityInfo.packageName;\n app.activityName = ri.activityInfo.name;\n\n\n // Load the icon later in an async task.\n app.icon = null;\n\n appsList.add(app);\n }\n break;\n default:\n // All other tabs just query the apps from the database\n List<AppTable> apps = sqlHelper.getAppsForTab(tabId);\n for (AppTable app : apps) {\n\n boolean success = addAppToList(app);\n // If the app could not be added then it was probably uninstalled,\n // so we have to remove it from the database\n if (!success) {\n Log.d(\"DB\", \"Removing app \" + app.getPackageName() + \" from db\");\n sqlHelper.removeAppFromTab(app);\n }\n }\n\n // show the empty category notice if this tab is empty\n if (apps.size() == 0) {\n showEmptyCategoryNotice();\n }\n }\n }", "protected void getApps(){\n DBPermissions db =new DBPermissions();\n this.apps=db.getApps();\n db.close();\n }", "public void setApplicationID(String value) {\n this.applicationID = value;\n }", "private static void loadApplications() throws FileNotFoundException {\n\t\tFile file = new File(\"C:\\\\Users\\\\singh\\\\eclipse-workspace\\\\Loan\\\\application.txt\");\n\t\tScanner scan = new Scanner(file);\n\n\t\twhile (scan.hasNextLine()) {\n\n\t\t\tString line = scan.nextLine();\n\t\t\t/*\n\t\t\t * If the sum of education and experience years is smaller than 10, the\n\t\t\t * application will be rejected. Otherwise the application will get some score\n\t\t\t * and will be added to the active list.\n\t\t\t */\n\t\t\t// Convert the line string into an array of strings\n\t\t\tString[] userInfo = line.split(\"\\t\");\n\t\t\tint education = Integer.parseInt(userInfo[2]);\n\t\t\tint experience = Integer.parseInt(userInfo[3]);\n\t\t\tint sum = education + experience;\n\t\t\tint loan = Integer.parseInt(userInfo[1]);\n\t\t\tint[] estimatedProfit = new int[userInfo.length - 4];\n\t\t\tint score = 0;\n\n\t\t\t/**\n\t\t\t * To count estimated profit\n\t\t\t */\n\t\t\tfor (int i = 4; i < userInfo.length; i++) {\n\n\t\t\t\testimatedProfit[i - 4] = Integer.parseInt(userInfo[i]);\n\n\t\t\t}\n\n\t\t\t/**\n\t\t\t * Check if application will be rejected or to put in the active list\n\t\t\t */\n\n\t\t\tif (sum < 10) {\n\t\t\t\tApplicant applicant = new Applicant(userInfo[0], education, experience, estimatedProfit, score, loan);\n\t\t\t\trejectedList.add(applicant);\n\t\t\t}\n\n\t\t\telse {\n\n\t\t\t\t/**\n\t\t\t\t * Calculate score\n\t\t\t\t */\n\t\t\t\tint tmp = 0;\n\t\t\t\tfor (int j = 0; j < estimatedProfit.length; j++) {\n\t\t\t\t\ttmp = estimatedProfit[j] / (j + 1);\n\t\t\t\t\tscore = score + tmp;\n\n\t\t\t\t}\n\n\t\t\t\t/**\n\t\t\t\t * Add to active list\n\t\t\t\t */\n\n\t\t\t\tApplicant applicant = new Applicant(userInfo[0], education, experience, estimatedProfit, score, loan);\n\t\t\t\tactiveList.push(applicant);\n\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Applicaitons Loaded Successfuly!\");\n\n\t}", "public interface ApplicationService {\n\tOptional<App> getAppByName(String name);\n\n\tOptional<App> getAppByType(String type);\n\n\tApp create(AppCreateForm form);\n}", "private void bindApplications() {\n \t\tif (mGrid == null) {\n \t\t\tmGrid = (GridView) findViewById(R.id.all_apps);\n \t\t}\n \t\tmGrid.setAdapter(new ApplicationsAdapter(this, mApplications));\n \t\tmGrid.setSelection(0);\n \n \t}", "public void setApp(Main application){\n this.application = application;\n }", "public void setApplicationId(Integer applicationId) {\r\n\t\tthis.applicationId = applicationId;\r\n\t}", "java.util.List<com.google.cloud.talent.v4beta1.Application> getApplicationsList();", "private void newApplication() throws Exception{\n\t\t\n\t\tPrintWriter writer = new PrintWriter(new BufferedWriter(new FileWriter(this.appfile)));\n\t\tint counter = 0;\n\t\t\n\t\twriter.println(\"Scholarship\");\n\t\twriter.println(this.scholarship);\n\t\twriter.println();\n\t\twriter.println(\"Student\");\n\t\twriter.println(this.student);\n\t\twriter.println();\n\t\twriter.println(\"GPA\");\n\t\twriter.println(this.gpa);\n\t\twriter.println();\n\t\twriter.println(\"Education Level\");\n\t\twriter.println(this.edulvl);\n\t\twriter.println();\n\t\twriter.println(\"Date\");\n\t\twriter.println(this.date);\n\t\twriter.println();\n\t\twriter.println(\"Status\");\n\t\twriter.println(this.status);\n\t\twriter.println();\n\t\twriter.println(\"Priority\");\n\t\twriter.println(this.priority);\n\t\twriter.println();\n\n\t\twriter.close();\n\t\t\n\t}", "public void setAppNames(String appName) {\n this.appName = appName.toLowerCase();\n this.appExe = ListApps.getNameExe(appName);\n this.appConfig = ListApps.getNameConfig(appName);\n this.appDirectoryConfig = ListApps.getDirectoryConfig(appName);\n }", "public void updateAppSpec(String accountId, String appId, ApplicationSpecification spec) {\n // NOTE: we use Gson underneath to do serde, as it doesn't serialize inner classes (which we use everywhere for\n // specs - see forwarding specs), we want to wrap spec with DefaultApplicationSpecification\n spec = DefaultApplicationSpecification.from(spec);\n LOG.trace(\"App spec to be updated: id: {}: spec: {}\", appId, GSON.toJson(spec));\n Key key = new Key.Builder().add(TYPE_APP_META, accountId, appId).build();\n ApplicationMeta existing = get(key, ApplicationMeta.class);\n if (existing == null) {\n String msg = String.format(\"No meta for account %s app %s exists\", accountId, appId);\n LOG.error(msg);\n throw new IllegalArgumentException(msg);\n }\n\n LOG.trace(\"Application exists in mds: id: {}, spec: {}\", existing);\n ApplicationMeta updated = ApplicationMeta.updateSpec(existing, spec);\n write(key, updated);\n\n for (StreamSpecification stream : spec.getStreams().values()) {\n writeStream(accountId, stream);\n }\n }", "public int getNumApplications()\n {\n return _apps.size();\n }", "private void updateAppsFromAPI(ApiResponse apiResponse) {\n List<Entry> api_entries = apiResponse.getFeed().getEntry();\n\n List<Artist> db_artists = new ArrayList<>();\n List<Category> db_Categories = new ArrayList<>();\n List<App> db_Apps = new ArrayList<>();\n List<AppImage> db_AppImages = new ArrayList<>();\n\n for (Entry e : api_entries) {\n Artist artist = new Artist();\n artist.setHref(e.getImArtist().getAttributes().getHref());\n artist.setName(e.getImArtist().getLabel());\n db_artists.add(artist);\n\n Category category = new Category();\n category.setId(e.getCategory().getAttributes().getImId());\n category.setLabel(e.getCategory().getAttributes().getLabel());\n category.setScheme(e.getCategory().getAttributes().getScheme());\n category.setTerm(e.getCategory().getAttributes().getTerm());\n db_Categories.add(category);\n\n App appEntry = new App();\n appEntry.setArtist(artist);\n appEntry.setCategory(category);\n appEntry.setCurrency(e.getImPrice().getAttributes().getAmount());\n appEntry.setCurrencyType(e.getImPrice().getAttributes().getCurrency());\n appEntry.setId(e.getId().getAttributes().getImId());\n appEntry.setId_package(e.getId().getAttributes().getImBundleId());\n appEntry.setName(e.getImName().getLabel());\n appEntry.setReleaseDate(e.getImReleaseDate().getAttributes().getLabel());\n appEntry.setReleaseTimestamp(e.getImReleaseDate().getLabel());\n appEntry.setRights(e.getRights().getLabel());\n appEntry.setSummary(e.getSummary().getLabel());\n appEntry.setTitle(e.getTitle().getLabel());\n appEntry.setWeb_link(e.getLink().getAttributes().getHref());\n appEntry.setMain_image(e.getImImage().get(2).getLabel());\n db_Apps.add(appEntry);\n\n for (ImImage imImage : e.getImImage()) {\n AppImage image = new AppImage();\n image.setApp(appEntry);\n image.setHeight(imImage.getAttributes().getHeight());\n image.setSource(imImage.getLabel());\n db_AppImages.add(image);\n }\n }\n\n // Indicador de actualizaciones completadas en la BD (Se Limpian)\n for (int i = 0; i < updates.length; i++) {\n updates[i] = false;\n }\n\n //Construccion de las sentencias de actualizacion asincronas\n DatabaseDefinition database = FlowManager.getDatabase(AppsCatalogDatabase.class);\n\n ProcessModelTransaction<Artist> artistProcessModelTransaction =\n new ProcessModelTransaction.Builder<>(new ProcessModelTransaction.ProcessModel<Artist>() {\n @Override\n public void processModel(Artist artist, DatabaseWrapper wrapper) {\n if (!artist.exists(wrapper)) {\n artist.save(wrapper);\n }\n }\n }).addAll(db_artists).build();\n\n ProcessModelTransaction<Category> categoryProcessModelTransaction =\n new ProcessModelTransaction.Builder<>(new ProcessModelTransaction.ProcessModel<Category>() {\n @Override\n public void processModel(Category category, DatabaseWrapper wrapper) {\n if (!category.exists(wrapper)) {\n category.save(wrapper);\n }\n }\n }).addAll(db_Categories).build();\n\n ProcessModelTransaction<App> appProcessModelTransaction =\n new ProcessModelTransaction.Builder<>(new ProcessModelTransaction.ProcessModel<App>() {\n @Override\n public void processModel(App app, DatabaseWrapper wrapper) {\n if (!app.exists()) {\n app.save(wrapper);\n }\n }\n }).addAll(db_Apps).build();\n\n ProcessModelTransaction<AppImage> imageProcessModelTransaction =\n new ProcessModelTransaction.Builder<>(new ProcessModelTransaction.ProcessModel<AppImage>() {\n @Override\n public void processModel(AppImage image, DatabaseWrapper wrapper) {\n if (!image.exists()) {\n image.save(wrapper);\n }\n }\n }).addAll(db_AppImages).build();\n\n // Definicion de Callbacks para actualizaciones cuando sean exitosas y cuando hayan errores\n Transaction t1 = database.beginTransactionAsync(artistProcessModelTransaction)\n .success(new Transaction.Success() {\n @Override\n public void onSuccess(Transaction transaction) {\n updates[0] = true;\n verifyCompleteUpdate(updates);\n }\n }).error(new Transaction.Error() {\n @Override\n public void onError(Transaction transaction, Throwable error) {\n error.printStackTrace();\n post(error.getLocalizedMessage(), AppslistEvent.UPDATE_APPLIST_EVENT);\n }\n }).build();\n\n Transaction t2 = database.beginTransactionAsync(categoryProcessModelTransaction)\n .success(new Transaction.Success() {\n @Override\n public void onSuccess(Transaction transaction) {\n updates[1] = true;\n verifyCompleteUpdate(updates);\n }\n }).error(new Transaction.Error() {\n @Override\n public void onError(Transaction transaction, Throwable error) {\n error.printStackTrace();\n post(error.getLocalizedMessage(), AppslistEvent.UPDATE_APPLIST_EVENT);\n }\n }).build();\n Transaction t3 = database.beginTransactionAsync(appProcessModelTransaction)\n .success(new Transaction.Success() {\n @Override\n public void onSuccess(Transaction transaction) {\n updates[2] = true;\n verifyCompleteUpdate(updates);\n }\n }).error(new Transaction.Error() {\n @Override\n public void onError(Transaction transaction, Throwable error) {\n error.printStackTrace();\n post(error.getLocalizedMessage(), AppslistEvent.UPDATE_APPLIST_EVENT);\n }\n }).build();\n Transaction t4 = database.beginTransactionAsync(imageProcessModelTransaction)\n .success(new Transaction.Success() {\n @Override\n public void onSuccess(Transaction transaction) {\n updates[3] = true;\n verifyCompleteUpdate(updates);\n }\n }).error(new Transaction.Error() {\n @Override\n public void onError(Transaction transaction, Throwable error) {\n error.printStackTrace();\n post(error.getLocalizedMessage(), AppslistEvent.UPDATE_APPLIST_EVENT);\n }\n }).build();\n\n // Ejecutar\n t1.execute();\n t2.execute();\n t3.execute();\n t4.execute();\n\n }", "public interface AppService {\n /**\n * 新增应用信息\n * @param appInfo\n */\n void addAppInfo(AppInfo appInfo) throws SQLException;\n}", "@Override\r\n public void saveEApplication() {\n }", "public void setApplicationId(java.lang.String applicationId) {\r\n this.applicationId = applicationId;\r\n }", "@Test\n public void testPrograms() throws Exception {\n List<ProgramRecord> programRecords = ImmutableList.of(\n new ProgramRecord(ProgramType.WORKER, \"dummyApp\", \"prog1\", \"\"),\n new ProgramRecord(ProgramType.MAPREDUCE, \"dummyApp\", \"prog2\", \"\"),\n new ProgramRecord(ProgramType.MAPREDUCE, \"dummyApp\", \"anotherProgram\", \"\"));\n ApplicationDetail applicationDetail = new ApplicationDetail(\"name\", ApplicationId.DEFAULT_VERSION, \"desc\", null,\n \"config\", null, programRecords, null,\n new ArtifactSummary(\"art\", \"1\"), null);\n when(applicationClient.get(new ApplicationId(\"dummyNs\", \"dummyApp\"))).thenReturn(applicationDetail);\n\n ResourceLookupContext resourceLookupContext = new ResourceLookupContext();\n resourceLookupContext.setResourceName(\"program\");\n resourceLookupContext.setUserInput(\"p\");\n resourceLookupContext.setResources(ImmutableMap.of(\"namespace\", ImmutableList.of(\"dummyNs\"),\n \"application\", ImmutableList.of(\"dummyApp\")));\n List<String> resources = client.getResources(resourceLookupContext);\n Assert.assertEquals(2, resources.size());\n Assert.assertEquals(ImmutableList.of(\n Joiner.on(RangerCommon.RESOURCE_SEPARATOR).join(ProgramType.WORKER.getPrettyName().toLowerCase(), \"prog1\"),\n Joiner.on(RangerCommon.RESOURCE_SEPARATOR).join(ProgramType.MAPREDUCE.getPrettyName().toLowerCase(), \"prog2\")),\n resources);\n }", "@Insert({ \"insert into iiot_app_list (app_id, app_name, \", \"node, status, restart_times, \", \"up_time, template, \",\n\t\t\t\"owner, note, rest3, \", \"rest4, rest5, create_time, \", \"uuid)\",\n\t\t\t\"values (#{appId,jdbcType=INTEGER}, #{appName,jdbcType=VARCHAR}, \",\n\t\t\t\"#{node,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{restartTimes,jdbcType=CHAR}, \",\n\t\t\t\"#{upTime,jdbcType=VARCHAR}, #{template,jdbcType=VARCHAR}, \",\n\t\t\t\"#{owner,jdbcType=VARCHAR}, #{note,jdbcType=VARCHAR}, #{rest3,jdbcType=VARCHAR}, \",\n\t\t\t\"#{rest4,jdbcType=VARCHAR}, #{rest5,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, \",\n\t\t\t\"#{uuid,jdbcType=CHAR})\" })\n\tint insert(IiotAppList record);", "public void setPerpApplications(PerpApplications aPerpApplications) {\n perpApplications = aPerpApplications;\n }", "void setApplicationName(String appName);", "private List<AppDetails> getAppDetailsFromDatabase() {\r\n SQLiteAccessLayer sqLiteAccessLayer = new SQLiteAccessLayer(this);\r\n List<AppDetails> appDetailsList = new ArrayList<>();\r\n PackageManager packageManager = getPackageManager();\r\n\r\n if (sqLiteAccessLayer.isDatabaseEmpty()) { // database empty\r\n List<PackageInfo> installedApps = RawAppInfo.getAllInstalledApps(this);\r\n List<ResolveInfo> systemApps = RawAppInfo.getSystemApps(this);\r\n\r\n for (PackageInfo packageInfo : installedApps) {\r\n AppDetails appDetails = new AppDetails(\r\n packageInfo.applicationInfo.uid,\r\n packageInfo.applicationInfo.packageName,\r\n String.valueOf(packageInfo.applicationInfo.loadLabel(packageManager)),\r\n RawAppInfo.INSTALLED_APP\r\n );\r\n\r\n SQLiteAccessLayer sqLiteAccessLayerForInsert = new SQLiteAccessLayer(this, appDetails);\r\n sqLiteAccessLayerForInsert.insertIntoAppDetails();\r\n appDetailsList.add(appDetails);\r\n }\r\n for (ResolveInfo resolveInfo : systemApps) {\r\n ApplicationInfo applicationInfo = resolveInfo.activityInfo.applicationInfo;\r\n AppDetails appDetails = new AppDetails(\r\n applicationInfo.uid, //uid\r\n applicationInfo.packageName, //packagename\r\n String.valueOf(applicationInfo.loadLabel(packageManager)), // applicationName\r\n RawAppInfo.SYSTEM_APP //applicationType\r\n );\r\n SQLiteAccessLayer sqLiteAccessLayerForInsert = new SQLiteAccessLayer(this, appDetails);\r\n sqLiteAccessLayerForInsert.insertIntoAppDetails();\r\n appDetailsList.add(appDetails);\r\n }\r\n } else {\r\n appDetailsList = new ArrayList<>(new SQLiteAccessLayer(this).queryAppDetails());\r\n }\r\n sqLiteAccessLayer.closeDatabaseConnection();\r\n return appDetailsList;\r\n }", "@RequestMapping(\"/saveAppusers\")\n\tpublic String saveAppusers(@ModelAttribute Appusers appusers) {\n\t\tappusersService.saveAppusers(appusers);\n\t\treturn \"forward:/indexAppusers\";\n\t}", "public int getApplications() {\r\n return applications;\r\n }", "public void checkApplication() {\r\n logger.info(\"ADIT monitor - Checking application.\");\r\n List<String> errorMessages = new ArrayList<String>();\r\n double duration = 0;\r\n DecimalFormat df = new DecimalFormat(\"0.000\");\r\n\r\n Date start = new Date();\r\n long startTime = start.getTime();\r\n\r\n // 1. Check temporary folder\r\n try {\r\n\r\n String tempDir = this.getConfiguration().getTempDir();\r\n File tempDirFile = new File(tempDir);\r\n String randomFileName = Util.generateRandomFileName();\r\n File temporaryFile = new File(tempDirFile.getAbsolutePath() + File.separator + randomFileName);\r\n temporaryFile.createNewFile();\r\n\r\n } catch (Exception e) {\r\n logger.error(\"Error checking application - temporary directory not defined or not writable: \", e);\r\n errorMessages.add(\"Error checking application - temporary directory not defined or not writable: \"\r\n + e.getMessage());\r\n }\r\n\r\n // 3. Check test document ID\r\n try {\r\n\r\n Long testDocumentID = this.getMonitorConfiguration().getTestDocumentId();\r\n if (testDocumentID == null) {\r\n throw new Exception(\"Test document ID not defined.\");\r\n }\r\n\r\n } catch (Exception e) {\r\n logger.error(\"Error checking application - test document ID not defined.\");\r\n errorMessages.add(\"Error checking application - test document ID not defined.\");\r\n }\r\n\r\n Date end = new Date();\r\n long endTime = end.getTime();\r\n duration = (endTime - startTime) / 1000.0;\r\n\r\n // Errors were detected\r\n if (errorMessages.size() > 0) {\r\n String combinedErrorMessage = \"\";\r\n for (int i = 0; i < errorMessages.size(); i++) {\r\n if (i != 0) {\r\n combinedErrorMessage = combinedErrorMessage + \", \";\r\n }\r\n combinedErrorMessage = combinedErrorMessage + errorMessages.get(i);\r\n }\r\n\r\n this.getNagiosLogger().log(ADIT_APP + \" \" + FAIL + \" \",\r\n new Exception(\"Errors found: \" + combinedErrorMessage));\r\n } else {\r\n this.getNagiosLogger().log(ADIT_APP + \" \" + OK + \" \" + df.format(duration) + \" \" + SECONDS);\r\n }\r\n\r\n }", "public static void removeApplications(long pk,\n java.util.List<de.fraunhofer.fokus.movepla.model.Application> applications)\n throws com.liferay.portal.kernel.exception.SystemException {\n getPersistence().removeApplications(pk, applications);\n }", "public boolean updateAppointment(Appointment app);", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n public Response getApplications(@Context final HttpServletRequest httpServletRequest, @QueryParam(\"serviceId\") String serviceId) {\n logger.debug(\"Get applications. Service ID is \" + serviceId);\n ApplicationManager appManager = ApplicationManagerImpl.getInstance();\n JSONArray jsonArray = new JSONArray();\n try {\n List<Application> applications = appManager.getApplications(serviceId);\n if (applications == null) {\n \treturn RestApiResponseHandler.getResponse(Status.CREATED, jsonArray.toString());\n }\n //\n for (Application app : applications) {\n JSONObject jsonObj = new JSONObject();\n String appId = app.getAppId();\n jsonObj.put(\"appId\", app.getAppId());\n jsonObj.put(\"appName\", CloudFoundryManager.getInstance().getAppNameByAppId(appId));\n jsonArray.put(jsonObj);\n }\n return RestApiResponseHandler.getResponse(Status.CREATED, jsonArray.toString());\n } catch (DataStoreException e) {\n return RestApiResponseHandler.getResponseError(MESSAGE_KEY.RestResponseErrorMsg_database_error, e, httpServletRequest.getLocale());\n } catch (CloudException e) {\n \treturn RestApiResponseHandler.getResponseError(MESSAGE_KEY.RestResponseErrorMsg_cloud_error, e, httpServletRequest.getLocale());\n } catch (Exception e) {\n return RestApiResponseHandler.getResponseError(Response.Status.INTERNAL_SERVER_ERROR, e);\n }\n }", "@POST\n @Path(RMWSConsts.APPS)\n @Produces({ MediaType.APPLICATION_JSON + \"; \" + JettyUtils.UTF_8,\n MediaType.APPLICATION_XML + \"; \" + JettyUtils.UTF_8 })\n @Consumes({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })\n @Override\n public Response submitApplication(ApplicationSubmissionContextInfo newApp,\n @Context HttpServletRequest hsr)\n throws AuthorizationException, IOException, InterruptedException {\n if (!enableRestAppSubmissions) {\n String msg = \"App submission via REST is disabled.\";\n return Response.status(Status.FORBIDDEN).entity(msg).build();\n }\n\n UserGroupInformation callerUGI = getCallerUserGroupInformation(hsr, true);\n initForWritableEndpoints(callerUGI, false);\n\n ApplicationSubmissionContext appContext =\n RMWebAppUtil.createAppSubmissionContext(newApp, conf);\n\n final SubmitApplicationRequest req =\n SubmitApplicationRequest.newInstance(appContext);\n\n try {\n callerUGI\n .doAs(new PrivilegedExceptionAction<SubmitApplicationResponse>() {\n @Override\n public SubmitApplicationResponse run()\n throws IOException, YarnException {\n return rm.getClientRMService().submitApplication(req);\n }\n });\n } catch (UndeclaredThrowableException ue) {\n if (ue.getCause() instanceof YarnException) {\n throw new BadRequestException(ue.getCause().getMessage());\n }\n LOG.info(\"Submit app request failed\", ue);\n throw ue;\n }\n\n String url = hsr.getRequestURL() + \"/\" + newApp.getApplicationId();\n return Response.status(Status.ACCEPTED).header(HttpHeaders.LOCATION, url)\n .build();\n }", "public void loadApplications() {\n PackageManager manager = context.getPackageManager();\n\n Intent mainIntent = new Intent(Intent.ACTION_MAIN, null);\n mainIntent.addCategory(Intent.CATEGORY_LAUNCHER);\n\n final List<ResolveInfo> apps = manager.queryIntentActivities(mainIntent, 0);\n Collections.sort(apps, new ResolveInfo.DisplayNameComparator(manager));\n\n if (apps != null) {\n applications.clear();\n\n for (ResolveInfo app : apps) {\n App application = new App();\n\n application.name = app.loadLabel(manager).toString();\n application.setActivity(new ComponentName(\n app.activityInfo.applicationInfo.packageName,\n app.activityInfo.name),\n Intent.FLAG_ACTIVITY_NEW_TASK\n | Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED);\n application.icon = app.activityInfo.loadIcon(manager);\n\n applications.add(application);\n }\n }\n }", "public void setAppName( String appName )\n\t{\n\t\tthis.appName = appName;\n\t}", "@PUT\n\t@Path(\"{id}\")\n\t@Consumes({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})\n\tpublic Response putApplication(@PathParam(\"id\") String id, Application updatedApplication) {\n\t\tupdatedApplication.set_appId(id);\n\t\tApplicationsDao.instance.update(updatedApplication);\n\t\treturn Response.noContent().build();\n\t}", "public void setApplicationID(java.lang.String applicationID) {\r\n this.applicationID = applicationID;\r\n }", "protected void onAppsChanged() {\n\t\t\n\t}", "public boolean setApplicationStatus(ApplicationBean application) throws UASException;", "public static java.util.List<de.fraunhofer.fokus.movepla.model.Application> getApplications(\n long pk) throws com.liferay.portal.kernel.exception.SystemException {\n return getPersistence().getApplications(pk);\n }", "public void setAppName(String appName);", "java.util.List<? extends com.google.cloud.talent.v4beta1.ApplicationOrBuilder>\n getApplicationsOrBuilderList();", "public interface ApplicationService extends GenericService<Application, Long> {\n\n Page<Application> getPagedMerchantApplications(Long merchantId, int pagination, int capacity, String keyword, String... fetchs);\n\n boolean isAppIDExisted(String appID);\n\n boolean isOriginalIDExisted(String originalID);\n\n Application getApplicationByAppID(String appID, String... fetchs);\n\n boolean startPulling(String appID);\n\n boolean endPulling(String appID);\n\n boolean startRefreshing(String appID);\n\n boolean endRefreshing(String appID);\n\n int updateToVerified(String appID);\n\n}", "@Override\r\n\t\tpublic void onClick(ClickEvent event) {\n\t\t\tString appName = txtAppName.getText();\r\n\t\t\tString appTittle = txtAppTitle.getText();\r\n\t\t\tif ((appName != null) && (appTittle != null)\r\n\t\t\t\t\t&& (!appName.equals(\"\")) && (!appTittle.equals(\"\"))) {\r\n\r\n\t\t\t\t// Set up the callback object.\r\n\t\t\t\tAsyncCallback<Long> callback = new AsyncCallback<Long>() {\r\n\t\t\t\t\tpublic void onFailure(Throwable caught) {\r\n\t\t\t\t\t\t// TODO: Do something with errors.\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tpublic void onSuccess(Long result) {\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\t\t\t\tif (appObj == null){\r\n\t\t\t\t\tappObj = new Application(userId_);\r\n\t\t\t\t\tappObj.setAppName(appName);\r\n\t\t\t\t\tappObj.setAppTittle(appTittle);\r\n\t\t\t\t\tappScoreSvc.InsertApp(appObj, callback);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tappObj.setAppName(appName);\r\n\t\t\t\t\tappObj.setAppTittle(appTittle);\r\n\t\t\t\t\tappScoreSvc.UpdateApp(appObj, callback);\r\n\t\t\t\t}\r\n\r\n\t\t\t\t//GlobalServices.ComebackHome(true);\r\n\t\t\t\tHistory.newItem(\"root-application\");\r\n\t\t\t} else {\r\n\t\t\t\tWindow.alert(\"Please input fully application information.\");\r\n\t\t\t}\r\n\t\t}", "public void setApp(Main application) { this.application = application;}", "public interface AppServiceAdapter {\n Set<AppData> getAppsByAccount(Long accountId);\n Set<AppData> getAppsOnshelf();\n AppData findApp(Long appId, Long accountId);\n AppData bindApp(AppData appData);\n AppData unbindApp(AppData appData);\n AppData installApp(AppData appData);\n AppData uninstallApp(AppData appData);\n}", "@Override\n public OAuthApplicationInfo createApplication(OAuthAppRequest oauthAppRequest) throws APIManagementException {\n OAuthApplicationInfo oAuthApplicationInfo = oauthAppRequest.getOAuthApplicationInfo();\n\n // Subscriber's name should be passed as a parameter, since it's under the subscriber the OAuth App is created.\n String userId = (String) oAuthApplicationInfo.getParameter(ApplicationConstants.\n OAUTH_CLIENT_USERNAME);\n String applicationName = oAuthApplicationInfo.getClientName();\n String keyType = (String) oAuthApplicationInfo.getParameter(ApplicationConstants.APP_KEY_TYPE);\n String callBackURL = (String) oAuthApplicationInfo.getParameter(ApplicationConstants.APP_CALLBACK_URL);\n if (keyType != null) {\n applicationName = applicationName + '_' + keyType;\n }\n\n if (log.isDebugEnabled()) {\n log.debug(\"Trying to create OAuth application :\" + applicationName);\n }\n\n String tokenScope = (String) oAuthApplicationInfo.getParameter(\"tokenScope\");\n String[] tokenScopes = new String[1];\n tokenScopes[0] = tokenScope;\n\n org.wso2.carbon.apimgt.api.model.xsd.OAuthApplicationInfo info = null;\n\n try {\n org.wso2.carbon.apimgt.api.model.xsd.OAuthApplicationInfo applicationToCreate =\n new org.wso2.carbon.apimgt.api.model.xsd.OAuthApplicationInfo();\n applicationToCreate.setIsSaasApplication(oAuthApplicationInfo.getIsSaasApplication());\n applicationToCreate.setCallBackURL(callBackURL);\n applicationToCreate.setClientName(applicationName);\n applicationToCreate.setAppOwner(userId);\n applicationToCreate.setJsonString(oAuthApplicationInfo.getJsonString());\n applicationToCreate.setTokenType(oAuthApplicationInfo.getTokenType());\n info = createOAuthApplicationbyApplicationInfo(applicationToCreate);\n } catch (Exception e) {\n handleException(\"Can not create OAuth application : \" + applicationName, e);\n } \n\n if (info == null || info.getJsonString() == null) {\n handleException(\"OAuth app does not contains required data : \" + applicationName,\n new APIManagementException(\"OAuth app does not contains required data\"));\n }\n\n oAuthApplicationInfo.addParameter(\"tokenScope\", tokenScopes);\n oAuthApplicationInfo.setClientName(info.getClientName());\n oAuthApplicationInfo.setClientId(info.getClientId());\n oAuthApplicationInfo.setCallBackURL(info.getCallBackURL());\n oAuthApplicationInfo.setClientSecret(info.getClientSecret());\n oAuthApplicationInfo.setIsSaasApplication(info.getIsSaasApplication());\n\n try {\n JSONObject jsonObject = new JSONObject(info.getJsonString());\n\n if (jsonObject.has(ApplicationConstants.\n OAUTH_REDIRECT_URIS)) {\n oAuthApplicationInfo.addParameter(ApplicationConstants.\n OAUTH_REDIRECT_URIS, jsonObject.get(ApplicationConstants.OAUTH_REDIRECT_URIS));\n }\n\n if (jsonObject.has(ApplicationConstants.OAUTH_CLIENT_NAME)) {\n oAuthApplicationInfo.addParameter(ApplicationConstants.\n OAUTH_CLIENT_NAME, jsonObject.get(ApplicationConstants.OAUTH_CLIENT_NAME));\n }\n\n if (jsonObject.has(ApplicationConstants.OAUTH_CLIENT_GRANT)) {\n oAuthApplicationInfo.addParameter(ApplicationConstants.\n OAUTH_CLIENT_GRANT, jsonObject.get(ApplicationConstants.OAUTH_CLIENT_GRANT));\n }\n } catch (JSONException e) {\n handleException(\"Can not retrieve information of the created OAuth application\", e);\n }\n\n return oAuthApplicationInfo;\n\n }", "public static void askDownloadExistingApps(final Activity activity, final ArrayList<ObjectDetail> missing) {\n\n AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(activity);\n\n alertDialogBuilder.setTitle(activity.getString(R.string.restore_apps_title));\n\n String msg = String.format(activity.getString(R.string.restore_apps_msg), missing.size());\n alertDialogBuilder\n .setMessage(msg)\n .setCancelable(false)\n .setNeutralButton(activity.getResources().getString(R.string.restore_disable_syncs), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n //disable syncs\n Utils.setSyncDisabled(activity, true);\n //TODO - note this leaves apps in a weird state. Will show apps as local to device but no option\n //to install, etc...\n }\n })\n .setNegativeButton(activity.getResources().getString(R.string.restore_no), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n GCESync.startActionUpdateLocal(activity, null, null);\n }\n })\n .setPositiveButton(activity.getResources().getString(R.string.restore_yes), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n //build the install list...\n ArrayList<String> apklist = new ArrayList<String>();\n for (int i=0; i < missing.size(); i++) {\n apklist.add(missing.get(i).pkg);\n }\n //let the updates go through\n GCESync.startActionUpdateLocal(activity, null, null);\n //and kick off the batch install\n confirmBatchOperation(activity, apklist, true);\n }\n });\n\n AlertDialog alertDialog = alertDialogBuilder.create();\n alertDialog.show();\n }", "private void addApplicationsPermissionsToRegistry() throws APIManagementException {\n Registry tenantGovReg = getRegistry();\n String permissionResourcePath = CarbonConstants.UI_PERMISSION_NAME + RegistryConstants.PATH_SEPARATOR + APPLICATION_ROOT_PERMISSION;\n try {\n if (!tenantGovReg.resourceExists(permissionResourcePath)) {\n String loggedInUser = CarbonContext.getThreadLocalCarbonContext().getUsername();\n UserRealm realm = (UserRealm) CarbonContext.getThreadLocalCarbonContext().getUserRealm();\n // Logged in user is not authorized to create the permission.\n // Temporarily change the user to the admin for creating the permission\n PrivilegedCarbonContext.getThreadLocalCarbonContext().setUsername(realm.getRealmConfiguration().getAdminUserName());\n tenantGovReg = CarbonContext.getThreadLocalCarbonContext().getRegistry(RegistryType.USER_GOVERNANCE);\n Collection appRootNode = tenantGovReg.newCollection();\n appRootNode.setProperty(\"name\", \"Applications\");\n tenantGovReg.put(permissionResourcePath, appRootNode);\n PrivilegedCarbonContext.getThreadLocalCarbonContext().setUsername(loggedInUser);\n }\n } catch (org.wso2.carbon.user.core.UserStoreException e) {\n throw new APIManagementException(\"Error while reading user store information.\", e);\n } catch (org.wso2.carbon.registry.api.RegistryException e) {\n throw new APIManagementException(\"Error while creating new permission in registry\", e);\n }\n }", "public void setRifidiApps(Set<RifidiApp> apps) {\n\t\tfor (RifidiApp app : apps) {\n\t\t\taddApp(app);\n\t\t}\n\t}", "public void deleteApp(Appointment app, Date dat)\n {\n List z = cal.get(dat);\n boolean flag = true;\n int i = 0;\n while(flag){\n if(z.get(i)==app){\n z.remove(app);\n flag = false;\n }\n i++;\n }\n \n }", "public List<ApplicationSummary> searchApplicationSummariesUseSameData(String dataID, String applicationID){\r\n\t\t// sparql\r\n\t\tString sparql = \"SELECT ?application\\r\\n \" \r\n\t\t\t\t\t +\t\"WHERE {\"\r\n\t\t\t\t\t + \"?application onto:hasData onto:\" + dataID + \".\\r\\n\"\r\n\t\t\t\t\t + \"FILTER (?application != onto:\"+ applicationID +\")\";\t\t\t\t\r\n\t\t// end where\r\n\t\tsparql += \"}\";\r\n\t\t\r\n\t\t// test\r\n\t\tString jsonString = findJsonResult(sparql);\r\n\t\tSystem.out.println(\"searchApplicationSummariesUseSameData:\" + jsonString);\r\n\t\t\r\n\t\t// result\r\n\t\tJSONObject json;\r\n\t\ttry {\r\n\t\t\tjson = new JSONObject(jsonString);\r\n\t\t\tJSONArray jsonArray = json.getJSONObject(\"results\").getJSONArray(\"bindings\");\r\n\t\t\tList<ApplicationSummary> list = new ArrayList<ApplicationSummary>();\r\n\t\t\tfor (int i = 0; i < jsonArray.length(); i++) {\r\n\t\t\t\tJSONObject jsonObject = (JSONObject) jsonArray.get(i);\r\n\t\t\t\tApplicationSummary applicationSummary = new ApplicationSummary();\r\n\t\t\t\tif (jsonObject.has(\"application\")) {\r\n\t\t\t\t\tapplicationSummary = findApplicationSummaryByApplicationID(jsonObject.getJSONObject(\"application\").getString(\"value\").split(\"#\")[1]);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tlist.add(applicationSummary);\r\n\t\t\t}\r\n\t\t\treturn list;\r\n\r\n\t\t} catch (JSONException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public void addApplicationIdentifier(String id) {\n applicationIdentifiers.add(id);\n }", "@XmlElement(required = true)\n public List<Application> getApplications() {\n return applications;\n }", "public static void addApplication(long pk,\n de.fraunhofer.fokus.movepla.model.Application application)\n throws com.liferay.portal.kernel.exception.SystemException {\n getPersistence().addApplication(pk, application);\n }", "protected void setApplication (MauiApplication aApplication)\n\t{\n\t\tif (application != aApplication)\n\t\t{\n\t\t\tapplication = aApplication;\n\t\t\tString theApplicationAddress = aApplication.getApplicationAddress ();\n\t\t\tif (!applications.contains (theApplicationAddress))\n\t\t\t{\n\t\t\t\tapplications.put (theApplicationAddress, aApplication);\t// Cache it\n\t\t\t\tnotifySessionListeners (this, aApplication, true);\n\t\t\t}\n\t\t}\n\t}", "public void setAppId(Long AppId) {\n this.AppId = AppId;\n }", "public void updateApp(DatasetInformation datasetInfos) {\r\n loadingAnalysis(datasetInfos);\r\n }", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n\t@Override\n\tpublic void onApplicationEvent(ApplicationEvent ev) {\n\n\t\tif (ev instanceof ReserveListUpdateEvent) {\n\t\t\tReserveListUpdateEvent event = (ReserveListUpdateEvent) ev;\n\t\t\tthis.comboReserve1.setModel(new DefaultComboBoxModel(event.getReserveIDs().toArray()));\n\t\t\tthis.comboReserve2.setModel(new DefaultComboBoxModel(event.getReserveIDs().toArray()));\n\t\t} else if (ev instanceof LinkClearEvent) {\n\t\t\t@SuppressWarnings(\"unused\")\n\t\t\tLinkClearEvent event = (LinkClearEvent) ev;\n\t\t\tclearEntries();\n\t\t} else if (ev instanceof LinkDataTableClickedEvent) {\n\t\t\tLinkDataTableClickedEvent event = (LinkDataTableClickedEvent) ev;\n\t\t\tthis.setEntries(event.getData());\n\t\t}\n\n\t}", "public List<ApplicationSummary> searchApplicationSummaries(Filters filters, String keyword) {\r\n\r\n\t\t// sparql\r\n//\t\tString sparql = \"SELECT Distinct ?application ?applicationName ?healthcareApplication ?healthcareApplicationName \\r\\n\"\r\n//\t\t\t\t+ \"?data ?dataName ?dataFeature ?dataDescription ?dataResource ?acceleratorName ?gyroscopeName \\r\\n\"\r\n//\t\t\t\t+ \"?model ?modelName ?modelDescription ?modelResource ?CNNTypeName ?RNNTypeName\\r\\n\"\r\n//\t\t\t\t+ \"?modelPerformance ?performanceAccuracy ?performancePrecision ?performanceRecall ?performanceF1Score\\r\\n\"\r\n//\t\t\t\t+ \"WHERE {\\r\\n\" + \"\t?application rdf:type onto:DeepLearningApplication.\\r\\n\"\r\n//\t\t\t\t+ \" \t?application onto:applicationName ?applicationName.\\r\\n\"\r\n//\t\t\t\t+ \" \t?application onto:hasApplicationDomain ?applicationDomain.\\r\\n\"\r\n//\t\t\t\t+ \" \tOPTIONAL{?applicationDomain onto:hasHealthcareApplication ?healthcareApplication.\\r\\n\"\r\n//\t\t\t\t+ \" \t\t?healthcareApplication onto:healthcareName ?healthcareApplicationName.}\\r\\n\"\r\n//\t\t\t\t+ \" \t?application onto:hasData ?data.\\r\\n\"\r\n//\t\t\t\t+ \" \t?data onto:dataName ?dataName.\\r\\n\"\r\n//\t\t\t\t+ \"\t\t?data onto:dataFeature ?dataFeature.\\r\\n\"\r\n//\t\t\t\t+ \" \t?data onto:dataDescription ?dataDescription.\\r\\n\"\r\n//\t\t\t\t+ \" \t?data onto:dataResource ?dataResource.\\r\\n\"\r\n//\t\t\t\t+ \" ?data onto:hasSensoryType ?sensoryType.\\r\\n\"\r\n//\t\t\t\t+ \" OPTIONAL{?sensoryType onto:hasAccelerator ?accelerator.\\r\\n\"\r\n//\t\t\t\t+ \" \t?accelerator onto:acceleratorName ?acceleratorName.}\\r\\n\"\r\n//\t\t\t\t+ \" OPTIONAL{?sensoryType onto:hasGyroscope ?gyroscope.\\r\\n\"\r\n//\t\t\t\t+ \" \t?gyroscope onto:gyroscopeName ?gyroscopeName.}\\r\\n\"\r\n//\t\t\t\t+ \"\t ?application onto:hasModel ?model.\\r\\n\" + \" \t?model onto:modelName ?modelName.\\r\\n\"\r\n//\t\t\t\t+ \" \t?model onto:modelDescription ?modelDescription.\\r\\n\"\r\n//\t\t\t\t+ \" \t?model onto:modelResource ?modelResource.\\r\\n\"\r\n//\t\t\t\t+ \" OPTIONAL{?model onto:hasPerformance ?modelPerformance.}\\r\\n\"\r\n//\t\t\t\t+ \" OPTIONAL{?modelPerformance onto:performanceAccuracy ?performanceAccuracy.}\\r\\n\"\r\n//\t\t\t\t+ \" OPTIONAL{?modelPerformance onto:performancePrecision ?performancePrecision.}\\r\\n\"\r\n//\t\t\t\t+ \" OPTIONAL{?modelPerformance onto:performanceRecall ?performanceRecall.}\\r\\n\"\r\n//\t\t\t\t+ \" OPTIONAL{?modelPerformance onto:performanceF1Score ?performanceF1Score.}\\r\\n\"\r\n//\t\t\t\t+ \" ?model onto:hasModelType ?modelType.\\r\\n\"\r\n//\t\t\t\t+ \" OPTIONAL{?modelType onto:hasCNNType ?CNNType.\\r\\n\"\r\n//\t\t\t\t+ \" \t?CNNType onto:CNNTypeName ?CNNTypeName.}\\r\\n\"\r\n//\t\t\t\t+ \" OPTIONAL{?modelType onto:hasRNNType ?RNNType.\\r\\n\"\r\n//\t\t\t\t+ \" \t?RNNType onto:RNNTypeName ?RNNTypeName.}\\r\\n\"\r\n//\t\t\t\t+ \"\t\t?model onto:hasLayer ?modelLayer.\"\r\n//\t\t\t\t+ \" ?modelLayer ?a ?b.\\r\\n\"\r\n//\t\t\t\t+ \" \t?b ?c ?d.\\r\\n\" \r\n//\t\t\t\t+ \" \t?d ?e ?f.\\r\\n\";\r\n\t\t\r\n\t\tString sparql = \"SELECT Distinct ?application ?applicationName ?healthcareApplication ?healthcareApplicationName \\r\\n\"\r\n\t\t\t\t+ \"?skinCancerName ?musculoskeletalDisorderName \\r\\n\"\r\n\t\t\t\t+ \"?data ?dataName ?dataFeature ?dataDescription ?dataResource ?accelerometerName ?gyroscopeName ?medicalImagingDeviceName\\r\\n\"\r\n\t\t\t\t+ \"(COUNT(Distinct ?model) as ?modelNumber)\\r\\n\"\r\n\t\t\t\t+ \"(COUNT(Distinct ?modelLayer)/COUNT(Distinct ?model) as ?numberOfLayers)\\r\\n\"\r\n\t\t\t\t+ \"(MAX(?performanceAccuracy) as ?maxAccuracy) (MAX(?performancePrecision) as ?maxPrecision) (MAX(?performanceRecall) as ?maxRecall) (MAX(?performanceF1Score) as ?maxF1Score)\\r\\n\"\r\n\t\t\t\t+ \"WHERE {\\r\\n\" \r\n\t\t\t\t+ \"\t\t?application rdf:type onto:DeepLearningApplication.\\r\\n\"\r\n\t\t\t\t+ \" \t?application onto:applicationName ?applicationName.\\r\\n\"\r\n\t\t\t\t+ \" \t?application onto:hasHealthcareApplication ?healthcareApplication.\\r\\n\"\r\n\t\t\t\t+ \" \tOPTIONAL{?healthcareApplication onto:healthcareName ?healthcareApplicationName.}\\r\\n\"\r\n\t\t\t \t+ \" OPTIONAL{?healthcareApplication onto:hasSkinCancer ?skinCancerApplication.\\r\\n\"\r\n\t\t\t \t+ \"\t\t?skinCancerApplication onto:skinCancerName ?skinCancerName.}\\r\\n\"\r\n\t\t\t \t+ \"\t\tOPTIONAL{?healthcareApplication onto:hasMusculoskeletalDisorder ?musculoskeletalDisorderApplication.\\r\\n\"\r\n\t\t\t \t+ \" \t?musculoskeletalDisorderApplication onto:musculoskeletalDisorderName ?musculoskeletalDisorderName.}\\r\\n\"\r\n\t\t\t\t+ \" \t?application onto:hasData ?data.\\r\\n\"\r\n\t\t\t\t+ \" \t?data onto:dataName ?dataName.\\r\\n\"\r\n\t\t\t\t+ \"\t\t?data onto:dataFeature ?dataFeature.\\r\\n\"\r\n\t\t\t\t+ \" \t?data onto:dataDescription ?dataDescription.\\r\\n\"\r\n\t\t\t\t+ \" \t?data onto:dataResource ?dataResource.\\r\\n\"\r\n\t\t\t\t+ \" ?data onto:hasDataSourceType ?dataSourceType.\\r\\n\"\r\n\t\t\t\t+ \" OPTIONAL{?dataSourceType onto:hasAccelerometer ?accelerometer. ?accelerometer onto:accelerometerName ?accelerometerName.}\\r\\n\"\r\n\t\t\t\t+ \" OPTIONAL{?dataSourceType onto:hasGyroscope ?gyroscope. ?gyroscope onto:gyroscopeName ?gyroscopeName.}\\r\\n\"\r\n\t\t\t\t+ \" OPTIONAL{?dataSourceType onto:hasMedicalImagingDevice ?medicalImagingDevice. ?medicalImagingDevice onto:medicalImagingDeviceName ?medicalImagingDeviceName.}\\r\\n\"\r\n\t\t\t\t+ \"\t ?application onto:hasModel ?model.\\r\\n\" \r\n\t\t\t\t+ \" \t?model onto:modelName ?modelName.\\r\\n\"\r\n\t\t\t\t+ \" \t?model onto:modelDescription ?modelDescription.\\r\\n\"\r\n\t\t\t\t+ \" \t?model onto:modelResource ?modelResource.\\r\\n\"\r\n\t\t\t\t+ \" OPTIONAL{?model onto:hasPerformance ?modelPerformance.}\\r\\n\"\r\n\t\t\t\t+ \" OPTIONAL{?modelPerformance onto:performanceAccuracy ?performanceAccuracy.}\\r\\n\"\r\n\t\t\t\t+ \" OPTIONAL{?modelPerformance onto:performancePrecision ?performancePrecision.}\\r\\n\"\r\n\t\t\t\t+ \" OPTIONAL{?modelPerformance onto:performanceRecall ?performanceRecall.}\\r\\n\"\r\n\t\t\t\t+ \" OPTIONAL{?modelPerformance onto:performanceF1Score ?performanceF1Score.}\\r\\n\"\r\n\t\t\t\t+ \" ?model onto:hasModelType ?modelType.\\r\\n\"\r\n\t\t\t\t+ \" OPTIONAL{?modelType onto:hasCNNType ?CNNType. ?CNNType onto:CNNTypeName ?CNNTypeName.}\\r\\n\"\r\n\t\t\t\t+ \" OPTIONAL{?modelType onto:hasRNNType ?RNNType. ?RNNType onto:RNNTypeName ?RNNTypeName.}\\r\\n\"\r\n\t\t\t\t+ \"\t\t?model onto:hasLayer ?modelLayer.\\r\\n\"\r\n//\t\t\t\t+ \" ?modelLayer ?modelLayerhasSublayer ?coreOrFunctionalLayer.\\r\\n\"\r\n//\t\t\t\t+ \" \t?coreOrFunctionalLayer ?coreFunctionalhasSublayer ?coreLayerType.\\r\\n\" \r\n//\t\t\t\t+ \" \t?corelayerType ?coreLayerTypehasSublayer ?corelayerSublayer.\\r\\n\";\r\n\t\t\t\t+ \" ?modelLayer ?a ?b.\\r\\n\"\r\n\t\t\t\t+ \" \t?b ?c ?d.\\r\\n\" \r\n\t\t\t\t+ \" \t?d ?e ?f.\\r\\n\";\r\n\t\tif (filters != null) {\r\n\t\t\t// find all filters\r\n\t\t\tString applicationDomains = filters.getApplicationDomains();\r\n\t\t\tString sensoryTypes = filters.getSensoryTypes();\r\n\t\t\tString modelTypes = filters.getModelTypes();\r\n\t\t\tString layerTypes = filters.getLayerTypes();\r\n\t\t\tString coreLayerTypes = filters.getCoreLayerTypes();\r\n\t\t\tString functionalLayerTypes = filters.getFunctionalLayerTypes();\r\n\t\t\t// find all performance, /100 because of the percentage\r\n\t\t\t// Float performanceAccurcay = filters.getPerformanceAccuracy()/100;\r\n\t\t\t// Float performancePrecision = filters.getPerformancePrecision()/100;\r\n\t\t\t// Float performanceRecall = filters.getPerformanceRecall()/100;\r\n\t\t\t// Float performanceF1Score = filters.getPerformanceF1Score()/100;\r\n\r\n\t\t\t// filter by application domain\r\n\t\t\tif (applicationDomains != null) {\r\n//\t\t\t\tfor (String str : applicationDomains) {\r\n//\t\t\t\t\tif (str.equals(\"SkinCancer\")) {\r\n//\t\t\t\t\t\tsparql += \"FILTER (?skinCancerName != \\\"\\\")\\r\\n\";\r\n//\t\t\t\t\t}\r\n//\t\t\t\t\tif (str.equals(\"MusculoskeletalDisorder\")) {\r\n//\t\t\t\t\t\tsparql += \"FILTER (?musculoskeletalDisorderName != \\\"\\\")\\r\\n\";\r\n//\t\t\t\t\t}\r\n//\t\t\t\t}\r\n\t\t\t\tif (applicationDomains.equals(\"SkinCancer\")) {\r\n\t\t\t\t\tsparql += \"FILTER (?skinCancerName != \\\"\\\")\\r\\n\";\r\n\t\t\t\t}\r\n\t\t\t\tif (applicationDomains.equals(\"MusculoskeletalDisorder\")) {\r\n\t\t\t\t\tsparql += \"FILTER (?musculoskeletalDisorderName != \\\"\\\")\\r\\n\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// filter by sensory type\r\n\t\t\tif (sensoryTypes != null) {\r\n//\t\t\t\tfor (String str : sensoryTypes) {\r\n//\t\t\t\t\tif (str.equals(\"Accelerometer\")) {\r\n//\t\t\t\t\t\tsparql += \"FILTER (?accelerometerName != \\\"\\\")\\r\\n\";\r\n//\t\t\t\t\t}\r\n//\t\t\t\t\tif (str.equals(\"Gyroscope\")) {\r\n//\t\t\t\t\t\tsparql += \"FILTER (?gyroscopeName != \\\"\\\")\\r\\n\";\r\n//\t\t\t\t\t}\r\n//\t\t\t\t}\r\n\t\t\t\tif (sensoryTypes.equals(\"Accelerometer\")) {\r\n\t\t\t\t\tsparql += \"FILTER (?accelerometerName != \\\"\\\")\\r\\n\";\r\n\t\t\t\t}\r\n\t\t\t\tif (sensoryTypes.equals(\"Gyroscope\")) {\r\n\t\t\t\t\tsparql += \"FILTER (?gyroscopeName != \\\"\\\")\\r\\n\";\r\n\t\t\t\t}\r\n\t\t\t\tif (sensoryTypes.equals(\"MedicalImagingDevice\")) {\r\n\t\t\t\t\tsparql += \"FILTER (?medicalImagingDeviceName != \\\"\\\")\\r\\n\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// filter model type\r\n\t\t\tif (modelTypes != null) {\r\n//\t\t\t\tfor (String str : modelTypes) {\r\n//\t\t\t\t\tif (str.equals(\"CNN\")) {\r\n//\t\t\t\t\t\tsparql += \"FILTER (?CNNTypeName != \\\"\\\")\\r\\n\";\r\n//\t\t\t\t\t}\r\n//\t\t\t\t\tif (str.equals(\"RNN\")) {\r\n//\t\t\t\t\t\tsparql += \"FILTER (?RNNTypeName != \\\"\\\")\\r\\n\";\r\n//\t\t\t\t\t}\r\n//\t\t\t\t}\r\n\t\t\t\tif (modelTypes.equals(\"CNN\")) {\r\n\t\t\t\t\tsparql += \"FILTER (?CNNTypeName != \\\"\\\")\\r\\n\";\r\n\t\t\t\t}\r\n\t\t\t\tif (modelTypes.equals(\"RNN\")) {\r\n\t\t\t\t\tsparql += \"FILTER (?RNNTypeName != \\\"\\\")\\r\\n\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// filter by layer type\r\n\t\t\tString layerTypeFilter = \"\";\r\n\t\t\tif (layerTypes != null) {\r\n//\t\t\t\tfor (String str : layerTypes) {\r\n//\t\t\t\t\tif (str.equals(\"FunctionalLayer\")) {\r\n//\t\t\t\t\t\tlayerTypeFilter += \"?a = onto:hasFunctionalLayer ||\";\r\n//\t\t\t\t\t}\r\n//\t\t\t\t\tif (str.equals(\"CoreLayer\")) {\r\n//\t\t\t\t\t\tlayerTypeFilter += \"?a = onto:hasCoreLayer ||\";\r\n//\t\t\t\t\t}\r\n//\t\t\t\t}\r\n\t\t\t\tif (layerTypes.equals(\"FunctionalLayer\")) {\r\n\t\t\t\t\tlayerTypeFilter += \"?a = onto:hasFunctionalLayer ||\";\r\n\t\t\t\t}\r\n\t\t\t\tif (layerTypes.equals(\"CoreLayer\")) {\r\n\t\t\t\t\tlayerTypeFilter += \"?a = onto:hasCoreLayer ||\";\r\n\t\t\t\t}\r\n\t\t\t\tif (layerTypeFilter.length() - 2 > 0) {\r\n\t\t\t\t\tlayerTypeFilter = layerTypeFilter.substring(0, layerTypeFilter.length() - 2);\r\n\t\t\t\tsparql += \"FILTER (\" + layerTypeFilter + \")\\r\\n\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n//\t\t\t// filter by functional layer\r\n//\t\t\tString functionalLayerFilter = \"\";\r\n//\t\t\tif (functionalLayerTypes != null) {\r\n//\t\t\t\tfor (String str : functionalLayerTypes) {\r\n//\t\t\t\t\tif (str.equals(\"ReshapingLayer\")) {\r\n//\t\t\t\t\t\tfunctionalLayerFilter += \"?c = onto:hasReshapingLayer ||\";\r\n//\t\t\t\t\t}\r\n//\t\t\t\t\tif (str.equals(\"PoolingLayer\")) {\r\n//\t\t\t\t\t\tfunctionalLayerFilter += \"?c = onto:hasPoolingLayer ||\";\r\n//\t\t\t\t\t}\r\n//\t\t\t\t\tif (str.equals(\"DropoutLayer\")) {\r\n//\t\t\t\t\t\tfunctionalLayerFilter += \"?c = onto:hasDropoutLayer ||\";\r\n//\t\t\t\t\t}\r\n//\t\t\t\t}\r\n//\t\t\t\tif (functionalLayerFilter.length() - 2 > 0) {\r\n//\t\t\t\t\tfunctionalLayerFilter = functionalLayerFilter.substring(0, functionalLayerFilter.length() - 2);\r\n//\t\t\t\t\tsparql += \" \tFILTER (\" + functionalLayerFilter + \")\\r\\n\";\r\n//\t\t\t\t}\r\n//\t\t\t}\r\n//\t\t\t// filter by core layer\r\n//\t\t\tString coreLayerFilter = \"\";\r\n//\t\t\tif (coreLayerTypes != null) {\r\n//\t\t\t\tfor (String str : coreLayerTypes) {\r\n//\t\t\t\t\tif (str.equals(\"ConvolutionLayer\")) {\r\n//\t\t\t\t\t\tcoreLayerFilter += \"?e = onto:hasConvolutionLayer ||\";\r\n//\t\t\t\t\t}\r\n//\t\t\t\t\tif (str.equals(\"RecurrentLayer\")) {\r\n//\t\t\t\t\t\tcoreLayerFilter += \"?e = onto:hasRecurrentLayer ||\";\r\n//\t\t\t\t\t}\r\n//\t\t\t\t\tif (str.equals(\"DenseLayer\")) {\r\n//\t\t\t\t\t\tcoreLayerFilter += \"?e = onto:hasDenseLayer ||\";\r\n//\t\t\t\t\t}\r\n//\t\t\t\t}\r\n//\t\t\t\tif (coreLayerFilter.length() - 2 > 0) {\r\n//\t\t\t\t\tcoreLayerFilter = coreLayerFilter.substring(0, coreLayerFilter.length() - 2);\r\n//\t\t\t\t\tsparql += \" \tFILTER (\" + coreLayerFilter + \")\\r\\n\";\r\n//\t\t\t\t}\r\n//\t\t\t}\r\n\t\t\t\r\n\t\t\t// filter by functional layer\r\n\t\t\tString functionalLayerFilter = \"\";\r\n\t\t\tif (functionalLayerTypes != null) {\r\n//\t\t\t\tfor (String str : functionalLayerTypes) {\r\n//\t\t\t\t\tif (str.equals(\"ReshapingLayer\")) {\r\n//\t\t\t\t\t\tfunctionalLayerFilter += \"?c = onto:hasReshapingLayer ||\";\r\n//\t\t\t\t\t}\r\n//\t\t\t\t\tif (str.equals(\"PoolingLayer\")) {\r\n//\t\t\t\t\t\tfunctionalLayerFilter += \"?c = onto:hasPoolingLayer ||\";\r\n//\t\t\t\t\t}\r\n//\t\t\t\t\tif (str.equals(\"DropoutLayer\")) {\r\n//\t\t\t\t\t\tfunctionalLayerFilter += \"?c = onto:hasDropoutLayer ||\";\r\n//\t\t\t\t\t}\r\n//\t\t\t\t}\r\n\t\t\t\tif (functionalLayerTypes.equals(\"ReshapingLayer\")) {\r\n\t\t\t\t\tfunctionalLayerFilter += \"?c = onto:hasReshapingLayer ||\";\r\n\t\t\t\t}\r\n\t\t\t\tif (functionalLayerTypes.equals(\"PoolingLayer\")) {\r\n\t\t\t\t\tfunctionalLayerFilter += \"?c = onto:hasPoolingLayer ||\";\r\n\t\t\t\t}\r\n\t\t\t\tif (functionalLayerTypes.equals(\"DropoutLayer\")) {\r\n\t\t\t\t\tfunctionalLayerFilter += \"?c = onto:hasDropoutLayer ||\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// filter by core layer\r\n\t\t\tString coreLayerFilter = \"\";\r\n\t\t\tif (coreLayerTypes != null) {\r\n//\t\t\t\tfor (String str : coreLayerTypes) {\r\n//\t\t\t\t\tif (str.equals(\"ConvolutionLayer\")) {\r\n//\t\t\t\t\t\tcoreLayerFilter += \"?e = onto:hasConvolutionLayer ||\";\r\n//\t\t\t\t\t}\r\n//\t\t\t\t\tif (str.equals(\"RecurrentLayer\")) {\r\n//\t\t\t\t\t\tcoreLayerFilter += \"?e = onto:hasRecurrentLayer ||\";\r\n//\t\t\t\t\t}\r\n//\t\t\t\t\tif (str.equals(\"DenseLayer\")) {\r\n//\t\t\t\t\t\tcoreLayerFilter += \"?e = onto:hasDenseLayer ||\";\r\n//\t\t\t\t\t}\r\n//\t\t\t\t}\r\n\t\t\t\tif (coreLayerTypes.equals(\"ConvolutionLayer\")) {\r\n\t\t\t\t\tcoreLayerFilter += \"?e = onto:hasConvolutionLayer ||\";\r\n\t\t\t\t}\r\n\t\t\t\tif (coreLayerTypes.equals(\"RecurrentLayer\")) {\r\n\t\t\t\t\tcoreLayerFilter += \"?e = onto:hasRecurrentLayer ||\";\r\n\t\t\t\t}\r\n\t\t\t\tif (coreLayerTypes.equals(\"DenseLayer\")) {\r\n\t\t\t\t\tcoreLayerFilter += \"?e = onto:hasDenseLayer ||\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// summarize\r\n\t\t\tString detailLayerFilter = \"\";\r\n\t\t\tif (functionalLayerFilter.length() + coreLayerFilter.length()- 2 > 0) {\r\n\t\t\t\tdetailLayerFilter = (functionalLayerFilter+ coreLayerFilter).substring(0, functionalLayerFilter.length()+ coreLayerFilter.length() - 2);\r\n\t\t\t\tsparql += \"FILTER (\" + detailLayerFilter + \")\\r\\n\";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t// filter by performance\r\n\t\t\tif (filters.getPerformanceAccuracy() != null) {\r\n\t\t\t\tsparql += \"FILTER (?performanceAccuracy > \" + filters.getPerformanceAccuracy() + \")\\r\\n\";\r\n\t\t\t}\r\n\t\t\tif (filters.getPerformancePrecision() != null) {\r\n\t\t\t\tsparql += \"FILTER (?performancePrecision > \" + filters.getPerformancePrecision() + \")\\r\\n\";\r\n\t\t\t}\r\n\t\t\tif (filters.getPerformanceRecall() != null) {\r\n\t\t\t\tsparql += \"FILTER (?performanceRecall > \" + filters.getPerformanceRecall() + \")\\r\\n\";\r\n\t\t\t}\r\n\t\t\tif (filters.getPerformanceF1Score() != null) {\r\n\t\t\t\tsparql += \"FILTER (?performanceF1Score > \" + filters.getPerformanceF1Score() + \")\\r\\n\";\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// filter by keyword\r\n\t\tif (keyword != null) {\r\n\t\t\tsparql += \"FILTER (\";\r\n\t\t\tsparql += \"regex(?applicationName,\\\"\" + keyword + \"\\\",\\\"i\\\") || \";\r\n\t\t\tsparql += \"regex(?dataName,\\\"\" + keyword + \"\\\",\\\"i\\\") || \";\r\n\t\t\tsparql += \"regex(?modelName,\\\"\" + keyword + \"\\\",\\\"i\\\")\";\r\n\t\t\tsparql += \")\\r\\n\";\r\n\t\t}\r\n\r\n\t\t// end where\r\n\t\tsparql += \"}\";\r\n\t\tsparql += \"GROUP BY\\r\\n\";\r\n\t\tsparql += \"?application ?applicationName ?healthcareApplication ?healthcareApplicationName\\r\\n\";\r\n\t\tsparql += \"?data ?dataName ?dataFeature ?dataDescription ?dataResource ?accelerometerName ?gyroscopeName ?medicalImagingDeviceName\\r\\n\";\r\n\t\tsparql += \"?skinCancerName ?musculoskeletalDisorderName\\r\\n\";\r\n\t\t\r\n\t\tif(filters != null && filters.getNumberOfLayers()!=null) {\r\n\t\t\t//filter by number of layers\r\n\t\t\tsparql += \"Having (COUNT(Distinct ?modelLayer)/COUNT(Distinct ?model)>=\" + filters.getNumberOfLayers() + \")\";\r\n\t\t}\r\n\t\t\r\n\t\t// test\r\n\t\tString jsonString = findJsonResult(sparql);\r\n\t\tSystem.out.println(\"searchApplications:\" + jsonString);\r\n\t\t// result\r\n//\t\tJSONObject json;\r\n//\t\ttry {\r\n//\t\t\tjson = new JSONObject(jsonString);\r\n//\t\t\tJSONArray jsonArray = json.getJSONObject(\"results\").getJSONArray(\"bindings\");\r\n//\t\t\tList<ApplicationOverview> list = new ArrayList<ApplicationOverview>();\r\n//\t\t\tfor (int i = 0; i < jsonArray.length(); i++) {\r\n//\t\t\t\tJSONObject jsonObject = (JSONObject) jsonArray.get(i);\r\n//\t\t\t\tApplicationOverview applicationOverview = new ApplicationOverview();\r\n//\t\t\t\tif (jsonObject.has(\"application\")) {\r\n//\t\t\t\t\tapplicationOverview\r\n//\t\t\t\t\t\t\t.setApplication(jsonObject.getJSONObject(\"application\").getString(\"value\").split(\"#\")[1]);\r\n//\t\t\t\t}\r\n//\t\t\t\tif (jsonObject.has(\"applicationName\")) {\r\n//\t\t\t\t\tapplicationOverview\r\n//\t\t\t\t\t\t\t.setApplicationName(jsonObject.getJSONObject(\"applicationName\").getString(\"value\"));\r\n//\t\t\t\t}\r\n//\t\t\t\tif (jsonObject.has(\"healthcareApplicationName\")) {\r\n//\t\t\t\t\tapplicationOverview\r\n//\t\t\t\t\t\t\t.setHealthcareApplicationName(jsonObject.getJSONObject(\"healthcareApplicationName\").getString(\"value\"));\r\n//\t\t\t\t}\r\n//\t\t\t\tif (jsonObject.has(\"data\")) {\r\n//\t\t\t\t\tapplicationOverview.setData(jsonObject.getJSONObject(\"data\").getString(\"value\").split(\"#\")[1]);\r\n//\t\t\t\t}\r\n//\t\t\t\tif (jsonObject.has(\"dataName\")) {\r\n//\t\t\t\t\tapplicationOverview.setDataName(jsonObject.getJSONObject(\"dataName\").getString(\"value\"));\r\n//\t\t\t\t}\r\n//\t\t\t\tif (jsonObject.has(\"dataFeature\")) {\r\n//\t\t\t\t\tapplicationOverview.setDataFeature(jsonObject.getJSONObject(\"dataFeature\").getString(\"value\"));\r\n//\t\t\t\t}\r\n//\t\t\t\tif (jsonObject.has(\"dataDescription\")) {\r\n//\t\t\t\t\tapplicationOverview\r\n//\t\t\t\t\t\t\t.setDataDescription(jsonObject.getJSONObject(\"dataDescription\").getString(\"value\"));\r\n//\t\t\t\t}\r\n//\t\t\t\tif (jsonObject.has(\"dataResource\")) {\r\n//\t\t\t\t\tapplicationOverview.setDataResource(jsonObject.getJSONObject(\"dataResource\").getString(\"value\"));\r\n//\t\t\t\t}\r\n//\t\t\t\tif (jsonObject.has(\"acceleratorName\")) {\r\n//\t\t\t\t\tapplicationOverview\r\n//\t\t\t\t\t\t\t.setAcceleratorName(jsonObject.getJSONObject(\"acceleratorName\").getString(\"value\"));\r\n//\t\t\t\t}\r\n//\t\t\t\tif (jsonObject.has(\"gyroscopeName\")) {\r\n//\t\t\t\t\tapplicationOverview\r\n//\t\t\t\t\t\t\t.setGyroscopeName(jsonObject.getJSONObject(\"gyroscopeName\").getString(\"value\"));\r\n//\t\t\t\t}\r\n//\t\t\t\tif (jsonObject.has(\"model\")) {\r\n//\t\t\t\t\tapplicationOverview.setModel(jsonObject.getJSONObject(\"model\").getString(\"value\").split(\"#\")[1]);\r\n//\t\t\t\t}\r\n//\t\t\t\tif (jsonObject.has(\"modelName\")) {\r\n//\t\t\t\t\tapplicationOverview.setModelName(jsonObject.getJSONObject(\"modelName\").getString(\"value\"));\r\n//\t\t\t\t}\r\n//\t\t\t\tif (jsonObject.has(\"modelDescription\")) {\r\n//\t\t\t\t\tapplicationOverview\r\n//\t\t\t\t\t\t\t.setModelDescription(jsonObject.getJSONObject(\"modelDescription\").getString(\"value\"));\r\n//\t\t\t\t}\r\n//\t\t\t\tif (jsonObject.has(\"modelResource\")) {\r\n//\t\t\t\t\tapplicationOverview.setModelResource(jsonObject.getJSONObject(\"modelResource\").getString(\"value\"));\r\n//\t\t\t\t}\r\n//\t\t\t\tif (jsonObject.has(\"CNNTypeName\")) {\r\n//\t\t\t\t\tapplicationOverview.setCNNTypeName(jsonObject.getJSONObject(\"CNNTypeName\").getString(\"value\"));\r\n//\t\t\t\t}\r\n//\t\t\t\tif (jsonObject.has(\"RNNTypeName\")) {\r\n//\t\t\t\t\tapplicationOverview.setRNNTypeName(jsonObject.getJSONObject(\"RNNTypeName\").getString(\"value\"));\r\n//\t\t\t\t}\r\n//\t\t\t\tif (jsonObject.has(\"modelPerformance\")) {\r\n//\t\t\t\t\tapplicationOverview.setModelPerformance(\r\n//\t\t\t\t\t\t\tjsonObject.getJSONObject(\"modelPerformance\").getString(\"value\").split(\"#\")[1]);\r\n//\t\t\t\t}\r\n//\t\t\t\tif (jsonObject.has(\"performanceAccuracy\")) {\r\n//\t\t\t\t\tapplicationOverview\r\n//\t\t\t\t\t\t\t.setPerformanceAccuracy(jsonObject.getJSONObject(\"performanceAccuracy\").getString(\"value\"));\r\n//\t\t\t\t}\r\n//\t\t\t\tif (jsonObject.has(\"performancePrecision\")) {\r\n//\t\t\t\t\tapplicationOverview.setPerformancePrecision(\r\n//\t\t\t\t\t\t\tjsonObject.getJSONObject(\"performancePrecision\").getString(\"value\"));\r\n//\t\t\t\t}\r\n//\t\t\t\tif (jsonObject.has(\"performanceRecall\")) {\r\n//\t\t\t\t\tapplicationOverview\r\n//\t\t\t\t\t\t\t.setPerformanceRecall(jsonObject.getJSONObject(\"performanceRecall\").getString(\"value\"));\r\n//\t\t\t\t}\r\n//\t\t\t\tif (jsonObject.has(\"performanceF1Score\")) {\r\n//\t\t\t\t\tapplicationOverview\r\n//\t\t\t\t\t\t\t.setPerformanceF1Score(jsonObject.getJSONObject(\"performanceF1Score\").getString(\"value\"));\r\n//\t\t\t\t}\r\n//\t\t\t\tlist.add(applicationOverview);\r\n//\t\t\t}\r\n//\t\t\treturn list;\r\n//\r\n//\t\t} catch (JSONException e) {\r\n//\t\t\t// TODO Auto-generated catch block\r\n//\t\t\te.printStackTrace();\r\n//\t\t}\r\n//\t\treturn null;\r\n\t\t\r\n\t\t// result\r\n\t\tJSONObject json;\r\n\t\ttry {\r\n\t\t\tjson = new JSONObject(jsonString);\r\n\t\t\tJSONArray jsonArray = json.getJSONObject(\"results\").getJSONArray(\"bindings\");\r\n\t\t\tList<ApplicationSummary> list = new ArrayList<ApplicationSummary>();\r\n\t\t\tfor (int i = 0; i < jsonArray.length(); i++) {\r\n\t\t\t\tJSONObject jsonObject = (JSONObject) jsonArray.get(i);\r\n\t\t\t\tApplicationSummary applicationSummary = new ApplicationSummary();\r\n\t\t\t\tif (jsonObject.has(\"application\")) {\r\n\t\t\t\t\tapplicationSummary.setApplication(jsonObject.getJSONObject(\"application\").getString(\"value\").split(\"#\")[1]);\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"applicationName\")) {\r\n\t\t\t\t\tapplicationSummary.setApplicationName(jsonObject.getJSONObject(\"applicationName\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"healthcareApplicationName\")) {\r\n\t\t\t\t\tapplicationSummary.setHealthcareApplicationName(jsonObject.getJSONObject(\"healthcareApplicationName\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"skinCancerName\")) {\r\n\t\t\t\t\tapplicationSummary.setSkinCancerName(jsonObject.getJSONObject(\"skinCancerName\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"musculoskeletalDisorderName\")) {\r\n\t\t\t\t\tapplicationSummary.setMusculoskeletalDisorderName(jsonObject.getJSONObject(\"musculoskeletalDisorderName\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"data\")) {\r\n\t\t\t\t\tapplicationSummary.setData(jsonObject.getJSONObject(\"data\").getString(\"value\").split(\"#\")[1]);\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"dataName\")) {\r\n\t\t\t\t\tapplicationSummary.setDataName(jsonObject.getJSONObject(\"dataName\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"dataFeature\")) {\r\n\t\t\t\t\tapplicationSummary.setDataFeature(jsonObject.getJSONObject(\"dataFeature\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"dataDescription\")) {\r\n\t\t\t\t\tapplicationSummary.setDataDescription(jsonObject.getJSONObject(\"dataDescription\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"dataResource\")) {\r\n\t\t\t\t\tapplicationSummary.setDataResource(jsonObject.getJSONObject(\"dataResource\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"accelerometerName\")) {\r\n\t\t\t\t\tapplicationSummary.setAccelerometerName(jsonObject.getJSONObject(\"accelerometerName\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"gyroscopeName\")) {\r\n\t\t\t\t\tapplicationSummary.setGyroscopeName(jsonObject.getJSONObject(\"gyroscopeName\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"medicalImagingDeviceName\")) {\r\n\t\t\t\t\tapplicationSummary.setMedicalImagingDeviceName(jsonObject.getJSONObject(\"medicalImagingDeviceName\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"modelNumber\")) {\r\n\t\t\t\t\tapplicationSummary.setModelNumber(Integer.parseInt(jsonObject.getJSONObject(\"modelNumber\").getString(\"value\")));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"numberOfLayers\")) {\r\n\t\t\t\t\tDouble a = Double.parseDouble(jsonObject.getJSONObject(\"numberOfLayers\").getString(\"value\"));\r\n\t\t\t\t\tapplicationSummary.setNumberOfLayers(a.intValue());\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"maxAccuracy\")) {\r\n\t\t\t\t\tapplicationSummary.setMaxAccuracy(jsonObject.getJSONObject(\"maxAccuracy\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"maxPrecision\")) {\r\n\t\t\t\t\tapplicationSummary.setMaxPrecision(jsonObject.getJSONObject(\"maxPrecision\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"maxRecall\")) {\r\n\t\t\t\t\tapplicationSummary.setMaxRecall(jsonObject.getJSONObject(\"maxRecall\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"maxF1Score\")) {\r\n\t\t\t\t\tapplicationSummary.setMaxF1Score(jsonObject.getJSONObject(\"maxF1Score\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tlist.add(applicationSummary);\r\n\t\t\t}\r\n\t\t\treturn list;\r\n\r\n\t\t} catch (JSONException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t\t\r\n\t}", "public static void clearAppList() {\n }" ]
[ "0.66510755", "0.6595167", "0.6283191", "0.6121523", "0.6064329", "0.60096794", "0.59488165", "0.5897108", "0.5868535", "0.581277", "0.5800891", "0.5795511", "0.5795161", "0.5787705", "0.57639825", "0.57487994", "0.5747711", "0.57236785", "0.5607216", "0.55868036", "0.5580697", "0.55787194", "0.55530816", "0.55384946", "0.5499121", "0.5481477", "0.54807603", "0.54748034", "0.54551315", "0.54551166", "0.5450262", "0.54423296", "0.54357684", "0.5425977", "0.5420843", "0.54183614", "0.54171497", "0.54160726", "0.536482", "0.53639066", "0.53434503", "0.532981", "0.5320764", "0.5310434", "0.5308146", "0.5307272", "0.52899307", "0.5282899", "0.5257255", "0.52543604", "0.5237709", "0.5208702", "0.52045584", "0.5197598", "0.5187746", "0.5183324", "0.5180654", "0.51625204", "0.51612514", "0.51590776", "0.51568615", "0.51521885", "0.5135332", "0.51134855", "0.510997", "0.5101127", "0.50826734", "0.5072448", "0.50684065", "0.50575244", "0.5050605", "0.5039519", "0.5038153", "0.50269276", "0.50125873", "0.5003653", "0.49959925", "0.4995672", "0.49924117", "0.49913102", "0.49901685", "0.49890018", "0.4980107", "0.4977323", "0.49628276", "0.4962556", "0.49577665", "0.49544403", "0.49418476", "0.49264342", "0.4925403", "0.4921224", "0.4906334", "0.4898034", "0.48961714", "0.48925716", "0.4892426", "0.48530328", "0.48522708", "0.48495921", "0.48430064" ]
0.0
-1
Determines if this branch is valid for the specified Component name
public void findToolKit(EdaContext xContext) throws IcofException { // Lookup this branch name in the branch name DB table. If not found // then not a production branch. logInfo(xContext, "Looking up Branch name ...", verboseInd); BranchName myBranchName = new BranchName(xContext, getName()); try { myBranchName.dbLookupByName(xContext); logInfo(xContext, "Found Branch name ...", verboseInd); } catch(IcofException trap) { logInfo(xContext, "Unable to find ToolKit - Branch name not found.", true); return; } setBranchName(myBranchName); // Now determine if there's a tool kit for this Branch/Component pair. // If so then this is a production branch. logInfo(xContext, "Looking up ToolKit ...", verboseInd); Branch myBranch = new Branch(xContext, getBranchName(), null); Vector<ToolKit> tks = myBranch.findToolKits(xContext, getComponent()); if (! tks.isEmpty()) { for (ToolKit tk : tks) { tk.getToolKit().getRelease().dbLookupById(xContext); logInfo(xContext, tk.getToolKit().getDisplayName(), true); } } else logInfo(xContext, "Unable to find ToolKit - Component/Branch pair " + "not found in database.", true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isValidComponent(String key){\r\n //Remove \"Components.\" from begining\r\n if(key.length() > 11 && key.subSequence(0, 11).equals(\"Components.\")){\r\n key = key.substring(11); \r\n } \r\n \r\n // Check Logical Component mappings\r\n for(Netlist nl: netlists){\r\n if(nl.containsKey(key)){\r\n return true;\r\n }\r\n } \r\n return false;\r\n }", "public boolean verifyBranchName(String expectedBranchName, ExtentTest extentedReport) {\n\t\tboolean isOk = false;\n\t\tString actualBranchName = txtAccBranch.getAttribute(\"value\").trim();\n\t\tLog.message(\"Actual Branch: '\" + actualBranchName + \"'\", extentedReport);\n\t\tLog.message(\"Expected Branch: '\" + expectedBranchName + \"'\", extentedReport);\n\n\t\tif (actualBranchName.equals(expectedBranchName)) {\n\t\t\tif (!txtAccBranch.isEnabled()) {\n\t\t\t\tisOk = true;\n\t\t\t\tLog.message(\"'Branch Name' input field is not editable\", extentedReport);\n\t\t\t} else {\n\t\t\t\tLog.message(\"'Branch Name' input field is editable\", extentedReport);\n\t\t\t}\n\t\t} else {\n\t\t\tLog.message(\"The actual branch name '\" + actualBranchName + \"' does not match the expected '\"\n\t\t\t\t\t+ expectedBranchName + \"'\", extentedReport);\n\t\t}\n\n\t\treturn isOk;\n\t}", "public Boolean comprovaName(String name) {\n\t\treturn (rv.validateName(name));\n\t}", "public long checkComponent(String name) {\n\t\tif(sessionFactory.getCurrentSession().createQuery(\"from Component c where c.name = ?\").setParameter(0, name).list().size()>0){\n\t\t\treturn ((Component)(sessionFactory.getCurrentSession().createQuery(\"from Component c where c.name = ?\").setParameter(0, name).list().get(0))).getId();\n\t\t}\n\t\treturn -1;\n\t}", "protected boolean isComponent( Object value, String component ) {\n DefaultMutableTreeNode node = (DefaultMutableTreeNode)value;\n treeInfo nodeInfo = (treeInfo)(node.getUserObject());\n\n if(component==\"Root\") {\n if((nodeInfo.view).equals(xmlhandler.elementCompanyProfile(\"name\"))) {\n return true;\n }\n return false;\n }\n else {\n if((nodeInfo.view).equals(component)) {\n return true;\n }\n return false;\n }\n }", "private boolean isNameValid(String name) {\n\n }", "public boolean checkName(final String name) {\n\t\treturn channelName.equals(name);\n\t}", "public boolean checkName(String name)\n {\n return true;\n }", "public boolean checkImageComponent(String filename) {\n if (componentMap.containsKey(filename))\n return true;\n else\n return false;\n }", "@Override\n protected boolean isValidFragment(String fragmentName) {\n return SafeFragment1.class.getName().equals(fragmentName)\n || SafeFragment2.class.getName().equals(fragmentName)\n || SafeFragment3.class.getName().equals(fragmentName);\n }", "@Override\r\n public boolean isValidName(String proposedName)\r\n {\r\n assert(true);\r\n if (proposedName == null || proposedName.equals(\"\"))\r\n {\r\n return false;\r\n }\r\n \tfor (ChangableProductContainer groupImLookingAt : groups)\r\n {\r\n if (groupImLookingAt.getName().equals(proposedName))\r\n {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }", "public boolean isValidName(String proposedName);", "public boolean isValidName(String name)\r\n {\r\n // check for illegal combinations of characters\r\n // this is probably not a complete check, but hopefully it is good enough\r\n if ( (name == null) ||\r\n (name.equals(\"\")) ||\r\n Character.isUpperCase(name.charAt(0)) ||\r\n containsSubString(name, TIGHT_BINDING) ||\r\n containsSubString(name, LOOSE_BINDING) ||\r\n containsSubString(name, SINGLE_MATCH) ||\r\n containsSubString(name, \"/\") ||\r\n containsSubString(name, \" \") ||\r\n containsSubString(name, \"\\t\") ||\r\n containsSubString(name, \"\\n\") ||\r\n name.equals(UNIQUE_NAME) )\r\n {\r\n return false;\r\n }\r\n\r\n return true;\r\n }", "public static boolean isValid(String name) {\n\t\tif ((name == null) || name.isEmpty()) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "private boolean constrainedOnValidUnitName(String unitNameWithoutPrefix){\n if(unitNameWithoutPrefix.isEmpty())\n return false;\n\n return unitsDataModel != null && unitsDataModel.getUnitsContentQuerier().containsUnit(unitNameWithoutPrefix);\n }", "public boolean contains(ReferenceType branch, String name) {\n return this.contains(Reference.class, branch.getBaseDir() + name);\n }", "private void checkBranch(String appId, String clusterName, String namespaceName, String branchName) {\n checkNamespace(appId, clusterName, namespaceName);\n\n //2. check child namespace\n Namespace childNamespace = namespaceService.findOne(appId, branchName, namespaceName);\n if (childNamespace == null) {\n throw new BadRequestException(String.format(\"Namespace's branch not exist. AppId = %s, ClusterName = %s, \"\n + \"NamespaceName = %s, BranchName = %s\",\n appId, clusterName, namespaceName, branchName));\n }\n\n }", "@Override\n protected boolean isValidFragment(String fragmentName) {\n return true;\n }", "String getIsComponentInstanceOf();", "public abstract Component getComponentByName(String name);", "public static boolean isCompatibleName(String name) {\n return hiveCompatible.matcher(name).matches();\n }", "public static boolean isValidComponent(double comp){\r\n\t\treturn !(Double.isInfinite(comp) || Double.isNaN(comp));\r\n\t}", "public boolean isValid() {\n return (identifier != null) || version.getVersion().equals(\"0.1\");\n }", "public boolean hasComponent(Class<? extends Component> componentType);", "private boolean isAirportCodenameValid(String airportCodename) {\n\n\t\t// return airport database content through given list\n\t\tArrayList<Airport> listOfAirports = (ArrayList<Airport>) airportdb.fetchDatabaseContent();\n\n\t\tfor (int i = 0; i < listOfAirports.size(); i++) {\n\t\t\tString airportCodenameFromList = listOfAirports.get(i).getAirportCodename();\n\n\t\t\tif (airportCodenameFromList.equals(airportCodename)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Airport codename is not in database.\");\n\t\treturn false;\n\t}", "public boolean hasComponent(@Entity int entity) {\n return nHasComponent(mNativeObject, entity);\n }", "public static boolean checkName(String name) {\n\t\tMatcher matcher = NAME_PATTERN.matcher(name);\n\t\treturn matcher.find();\n\t}", "public boolean hasComponent( final Object hint )\n {\n boolean componentExists = false;\n\n try\n {\n this.release( this.select( hint ) );\n componentExists = true;\n }\n catch( Throwable t )\n {\n // Ignore all throwables--we want a yes or no answer.\n }\n\n return componentExists;\n }", "public static boolean isSafe(String pathComponent) {\n if (pathComponent == null) {\n return false;\n }\n if (!pathComponent.trim().equals(pathComponent)) {\n return false;\n }\n return pathComponent.matches(\"\\\\w([- .]|\\\\w)*\");\n }", "protected boolean isValidFragment(String fragmentName) {\n return PreferenceFragment.class.getName().equals(fragmentName)\n || GeneralPreferenceFragment.class.getName().equals(fragmentName)\n || AutoSortFragment.class.getName().equals(fragmentName)\n || Group1PreferenceFragment.class.getName().equals(fragmentName)\n || Group2PreferenceFragment.class.getName().equals(fragmentName)\n || Group3PreferenceFragment.class.getName().equals(fragmentName)\n || Group4PreferenceFragment.class.getName().equals(fragmentName)\n || Group5PreferenceFragment.class.getName().equals(fragmentName)\n || Group6PreferenceFragment.class.getName().equals(fragmentName)\n || Group7PreferenceFragment.class.getName().equals(fragmentName);\n }", "protected boolean isValidFragment(String fragmentName)\n {\n return PreferenceFragment.class.getName().equals(fragmentName)\n || OtherPreferenceFragment.class.getName().equals(fragmentName)\n || ColorPreferenceFragment.class.getName().equals(fragmentName)\n || PageOrderPreferenceFragment.class.getName().equals(fragmentName)\n || ToggleOrderPreferenceFragment.class.getName().equals(fragmentName);\n }", "boolean hasComponent(Class<? extends Component> componentClass);", "public static boolean validateName(String name){\n return name.matches(NAME_PATTERN);\n }", "boolean isBranchTaken();", "public boolean hasChildComponent(Widget component) {\n return locationToWidget.containsValue(component);\n }", "public static boolean isName( String name )\n {\n return isOs( null, name, null, null );\n }", "public final static boolean validationByName(String name) {\n return getScopeTypeByName(name) != null;\n }", "public void checkComponent() {\r\n Component component = ViewToEntityConverter.view2Model(view);\r\n validate(component);\r\n }", "public boolean checkName(String name)\n\t{\n\t\treturn (robotHM.containsKey(name));\n\t}", "@Override\n protected boolean isValidFragment(String fragmentName) {\n return PreferencesFragmentGeneral.class.getName().equals(fragmentName) ||\n PreferencesFragmentAudio.class.getName().equals(fragmentName) ||\n PreferencesFragmentControls.class.getName().equals(fragmentName);\n }", "public boolean isBranchHaveAgent(Branch branch);", "public Future<Boolean> isValidName(String name) {\n Promise<Boolean> promise = Promise.promise();\n if (Pattern.compile(APP_NAME_REGEX).matcher(name).matches()) {\n promise.complete(true);\n } else {\n LOGGER.error(MSG_INVALID_NAME + name);\n promise.fail(MSG_INVALID_NAME);\n }\n return promise.future();\n }", "@Override\n\tpublic boolean\n\tvalidComponent( int i ) \n\t{\n\t\treturn( i >= 0 && i < 3 );\n\t}", "private static boolean componentsContain(Component comp, List<Component> components)\n\t{\n\t\tComponentComparator customComparator = new ComponentComparator();\n\t\t\n\t\tfor (Component component : components)\n\t\t{\n\t\t\tif (customComparator.equals(comp, component))\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public static boolean isValid(String name) {\n if (name == null) {\n throw new IllegalArgumentException(\"Name is missing\");\n }\n\n boolean slash = false;\n for (int i = 0; i < name.length(); i++) {\n char ch = name.charAt(i);\n if (ch <= ' ' || ch >= 127 || ch == '(' || ch == ')' || ch == '<' || ch == '>' ||\n ch == '@' || ch == ',' || ch == ';' || ch == ':' || ch == '\\\\' || ch == '\"' ||\n ch == '[' || ch == ']' || ch == '?' || ch == '=') {\n return false;\n } else if (ch == '/') {\n if (slash || i == 0 || i + 1 == name.length()) {\n return false;\n }\n slash = true;\n }\n }\n return slash;\n }", "public static Boolean isAuraComp(String path){\n\t\t// if not aura path, return false\n\t\treturn (path.indexOf(AURA_TOKEN) == -1)? false: true;\n\n\t}", "boolean isValidModule(ExternalModule module);", "private boolean findClassInComponents(String name) {\n // we need to search the components of the path to see if we can find the\n // class we want.\n final String classname = name.replace('.', '/') + \".class\";\n final String[] list = classpath.list();\n boolean found = false;\n int i = 0;\n while (i < list.length && found == false) {\n final File pathComponent = (File)project.resolveFile(list[i]);\n found = this.contains(pathComponent, classname);\n i++;\n }\n return found;\n }", "boolean isNameRequired();", "private boolean dirNameIsValid(String itemName) {\n return !(itemName.contains(\"resources\")\n || itemName.startsWith(\".\")\n || itemName.equalsIgnoreCase(\"tools\"));\n }", "protected boolean isValidFragment(String fragmentName) {\n return PreferenceFragment.class.getName().equals(fragmentName)\n || CallPreferenceFragment.class.getName().equals(fragmentName);\n }", "public boolean check_ab_exist(String ab_name){\n if(ab_store.get(ab_name) != null)\n return true;\n else\n return false;\n }", "@Test\n public void testBranchNameUriEncoding () throws Exception {\n // branch with spaces in the names can be used\n assertTrue(api.checkPathExists(\"name with spaces\", \"Jenkinsfile\"));\n // branch other characters in the name can be used\n assertTrue(api.checkPathExists(\"~`!@#$%^&*()_+=[]{}\\\\|;\\\"<>,./\\\\?a\", \"Jenkinsfile\"));\n }", "private boolean checkName(String name) {\n if (!name.equals(\"\")) {\n //Check si le nom est déjà utilisé\n return myDbA.checkName(name);\n }\n return false;\n }", "public boolean isCompanyShortNameTaken(String shortName);", "protected boolean isValidFragment(String fragmentName) {\n return PreferenceFragment.class.getName().equals(fragmentName)\n || SettingsFragment.class.getName().equals(fragmentName);\n }", "public static boolean isNameValid(Context context, String name) {\n if (name.isEmpty()) {\n Toast.makeText(context, \"Name field cannot be empty\", Toast.LENGTH_LONG);\n return false;\n }\n return true;\n }", "@Test\n\tpublic void IscaseNameExist(){\n\t\tString caseName = \"leather case\";\n\t\tboolean isExist;\n\t\ttry {\n\t\t\tisExist = CaseManagerValidator.isCaseNameExist(caseName);\n\t\t\tassertTrue(isExist);\n\t\t} catch (Exception e) {\n\t\t\tfail();\n\t\t}\n\t\t\n\t}", "public static boolean isValidColorName(String colorName)\r\n {\r\n if (null == colorName)\r\n {\r\n return false;\r\n }\r\n String str = colorName.toLowerCase();\r\n\r\n return (isSpecialColorName(str) || ColorName.lookup(str) != null || COLOR_RE.test(str));\r\n }", "@Override\n\tpublic boolean isExist(String name) {\n\t\treturn false;\n\t}", "public static boolean isValidName(String name) {\n\t\tif (name == null) {\n\t\t\treturn false;\n\t\t}\n\t\treturn name.length() > 3;\n\t}", "String isAddComponentAllowed(Record inputRecord);", "private static boolean insideValidDirectory(String pkgName, Path infoFile) {\n String[] packages = pkgName.split(\":\");\n Path current = infoFile.getParent();\n for (int i = packages.length - 1; i >= 0; --i) {\n if (current != null && !current.getFileName().toString().equals(packages[i])) return false;\n if (current == null) return false;\n current = current.getParent();\n }\n return true;\n }", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "private boolean isName() throws IOException\n\t{\n\t\tboolean isValid = false;\n\t\t\n\t\tif(theNextToken.TokenType == TokenType.LEFT_BRACKET)\n\t\t{\n\t\t\tupdateToken();\n\t\t\tupdateToken();\n\t\t\tif(isExpression())\n\t\t\t{\n\t\t\t\tupdateToken();\n\t\t\t\tif(theCurrentToken.TokenType == TokenType.RIGHT_BRACKET)\n\t\t\t\t{\n\t\t\t\t\tisValid = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if(theCurrentToken.TokenType == TokenType.IDENTITY)\n\t\t{\n\t\t\tisValid = true;\n\t\t}\n\t\t\n\t\treturn isValid;\n\t}", "boolean isValid(String interfaceName, String operationName) {\n\t\tif (this.nodeImpl != null) {\n\t\t\t\n\t\t\tfor (AbstractImplementationArtifact ia : this.nodeImpl.getImplementationArtifacts()) {\n\t\t\t\tif (ia.getInterfaceName() != interfaceName) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (ia.getOperationName() != null && ia.getOperationName() != operationName) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tboolean matched = false;\n\t\t\t\tfor (AbstractImplementationArtifact handledIa : this.ias) {\n\t\t\t\t\tif (ia.equals(handledIa)) {\n\t\t\t\t\t\tmatched = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (!matched) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn true;\n\t\t} else {\n\t\t\t\n\t\t\tfor (AbstractImplementationArtifact ia : this.relationImpl.getImplementationArtifacts()) {\n\t\t\t\tif (ia.getInterfaceName() != interfaceName) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (ia.getOperationName() != null && ia.getOperationName() != operationName) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tboolean matched = false;\n\t\t\t\tfor (AbstractImplementationArtifact handledIa : this.ias) {\n\t\t\t\t\tif (ia.equals(handledIa)) {\n\t\t\t\t\t\tmatched = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (!matched) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn true;\n\t\t}\n\t}", "public boolean validateBankPackage() {\n\t\treturn this.validateBank() && this.validateBSB() && this.validateAccountNumber();\n\t}", "boolean hasBusinessName();", "protected boolean puedeValidar(String nameHash, String pkHash) {\n\t\tif (caHash.containsKey(nameHash))\n\t\t\treturn (((String)caHash.get(nameHash)).equals(pkHash));\n\t\treturn false;\n\t}", "private boolean isAirlineCodenameValid(String airlineCodename) {\n\n\t\t// return airline database content through given list\n\t\tArrayList<Airline> listOfAirlines = (ArrayList<Airline>) airlinedb.fetchDatabaseContent();\n\n\t\tfor (int i = 0; i < listOfAirlines.size(); i++) {\n\t\t\tString airlineCodenameFromList = listOfAirlines.get(i).getAirlineCodename();\n\t\t\tif (airlineCodenameFromList.equals(airlineCodename)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Airline codename is not in database.\");\n\t\treturn false;\n\t}", "Component duplicateComponentFound(Component component, String name, String type, String description, String technology);", "@Override\r\n\tpublic boolean isCompanyExistsByNameOrEmail(String compEmail, String compName) throws CouponSystemException {\r\n\t\tConnection con = null;\r\n\t\ttry {\r\n\t\t\tcon = ConnectionPool.getInstance().getConnection();\r\n\t\t\tString sql = \"select * from companies where companyEmail=? or companyName=?\";\r\n\t\t\tPreparedStatement pstmt = con.prepareStatement(sql);\r\n\t\t\tpstmt.setString(1, compEmail);\r\n\t\t\tpstmt.setString(2, compName);\r\n\t\t\tResultSet rs = pstmt.executeQuery();\r\n\r\n\t\t\treturn rs.next();\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tthrow new CouponSystemException(\"isCompanyExistsByName Failed\", e);\r\n\t\t} finally {\r\n\t\t\tif (con != null) {\r\n\t\t\t\tConnectionPool.getInstance().restoreConnection(con);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private boolean isValidName(String name)\n {\n String reg = \"^[a-zA-Z]+$\";\n return name.matches(reg);\n }", "private boolean isValid(String groupName) {\n if (groupName != null) {\n if (groupName.length() > 1) {\n return true;\n }\n }\n return false;\n }", "public boolean checkBatchName(String batchName) {\n int total = 0;\n Query q = em.createNamedQuery(\"TbBatch.findByBatchName\");\n q.setParameter(\"batchName\", batchName);\n total = q.getResultList().size();\n if (total > 0) {\n return false;\n } else {\n return true;\n }\n\n }", "public boolean isNameEquals(String name) {\n\n return (_name.equalsIgnoreCase(name));//Checks not case sensitive\n }", "public static boolean validColor(String colorToComp) {\n for (Color color : Color.values()) {\n if (color.name().equals(colorToComp.toUpperCase()))\n return true;\n }\n return false;\n }", "public boolean isValidName(String name) {\n\t\tif (name == null)\n\t\t\treturn false;\n\t\tif (name.matches(\".*[A-Z].*[a-zA-Z0-9]\"))\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "public boolean check_charac_exist(String charac_name){\n if(charac_store.get(charac_name) != null)\n return true;\n else\n return false;\n }" ]
[ "0.6536262", "0.6186948", "0.6107331", "0.5985042", "0.5955747", "0.59286267", "0.5763251", "0.57430243", "0.5718285", "0.5685426", "0.56465876", "0.5592119", "0.5569719", "0.54879105", "0.5476882", "0.54716665", "0.5413695", "0.5409317", "0.53975254", "0.53885067", "0.5343914", "0.5333655", "0.5331988", "0.5325414", "0.530599", "0.5281861", "0.52583545", "0.525706", "0.52230513", "0.521715", "0.5216896", "0.5201691", "0.5197607", "0.51963216", "0.51870775", "0.51823944", "0.5177808", "0.51713645", "0.5143164", "0.5137658", "0.5136321", "0.5135345", "0.5119041", "0.51097935", "0.5105019", "0.51003426", "0.50906926", "0.50899357", "0.50871223", "0.5086043", "0.5081862", "0.5080077", "0.50620914", "0.5057787", "0.5057406", "0.5057085", "0.50501746", "0.5034491", "0.5034264", "0.5034191", "0.5024715", "0.502139", "0.50196034", "0.5019132", "0.5019132", "0.5019132", "0.5019132", "0.5019132", "0.5019132", "0.5019132", "0.5019132", "0.5019132", "0.5019132", "0.5019132", "0.5019132", "0.5019132", "0.5019132", "0.5019132", "0.5019132", "0.5019132", "0.5019132", "0.5019132", "0.5019132", "0.5019132", "0.5019132", "0.5019132", "0.50136906", "0.5010832", "0.5007604", "0.49916497", "0.49889004", "0.49807832", "0.49770987", "0.49688467", "0.49686688", "0.4967675", "0.49646577", "0.49576807", "0.49564436", "0.4944759", "0.4942759" ]
0.0
-1
Read the Component name
protected String readParams(Hashtable<String,String> params, String errors, EdaContext xContext) throws IcofException { if (params.containsKey("-c")) { setComponent(xContext, params.get("-c")); } else { errors += "Component (-c) is a required parameter\n"; } // Read the Branch name if (params.containsKey("-b")) { setName((String) params.get("-b")); } else { errors += "Branch name (-n) is a required parameter\n"; } return errors; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "BaseComponent getComponentName();", "String getComponentName();", "String getComponentName();", "protected String getComponentName() {\n return (component == null) ? \"*No Name*\" : component.toString();\n }", "@VisibleForTesting\n ComponentName getComponentName() {\n return mComponentName;\n }", "public ComponentName getComponentName() {\n return mInternal.getComponentName();\n }", "public QName getComponentName() {\n return _componentName;\n }", "public abstract Component getComponentByName(String name);", "public String getComponentName() {\n\t\treturn componentName;\n\t}", "public String getComponentName(ItemStack item) \t{ return tag(item) ? item.stackTagCompound.getString(\"componentName\") : null; }", "String componentTypeName();", "public String getName() {\n if (name == null && !nameExplicitlySet) {\n synchronized(this) {\n if (name == null && !nameExplicitlySet)\n name = constructComponentName();\n }\n }\n return name;\n }", "public String getComponent() {\n return this.component;\n }", "public String getComponent() {\r\n\t\treturn component;\r\n\t}", "String getName() ;", "public String getName() {\n\tif (num_comp == 0)\n\t return(\"\");\n\treturn(comp[num_comp-1]);\n }", "public String getName() {return this.name.getText();}", "String constructComponentName() {\n return base + nameCounter++;\n }", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "public String componentName(int index) {\n\treturn(comp[index]);\n }", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();" ]
[ "0.8063877", "0.7939395", "0.7939395", "0.76730794", "0.74222744", "0.7250612", "0.71064836", "0.7019181", "0.7012186", "0.6943298", "0.6882034", "0.6789822", "0.67059875", "0.6663987", "0.65802103", "0.65765685", "0.6574302", "0.6498172", "0.64942217", "0.64942217", "0.64942217", "0.64942217", "0.64942217", "0.64942217", "0.64942217", "0.64942217", "0.64942217", "0.64942217", "0.64942217", "0.64942217", "0.64942217", "0.64942217", "0.64942217", "0.64942217", "0.64942217", "0.64942217", "0.64942217", "0.64942217", "0.64942217", "0.64942217", "0.64942217", "0.64942217", "0.64942217", "0.64942217", "0.64942217", "0.64942217", "0.64942217", "0.64942217", "0.64942217", "0.64942217", "0.64942217", "0.64942217", "0.64942217", "0.64942217", "0.64942217", "0.64942217", "0.64942217", "0.64942217", "0.64942217", "0.64942217", "0.64942217", "0.64942217", "0.64942217", "0.64942217", "0.64942217", "0.64942217", "0.64942217", "0.64942217", "0.64942217", "0.64942217", "0.64741457", "0.64314127", "0.64314127", "0.64314127", "0.64314127", "0.64314127", "0.64314127", "0.64314127", "0.64314127", "0.64314127", "0.64314127", "0.64314127", "0.64314127", "0.64314127", "0.64314127", "0.64314127", "0.64314127", "0.64314127", "0.64314127", "0.64314127", "0.64314127", "0.64314127", "0.64314127", "0.64314127", "0.64314127", "0.64314127", "0.64314127", "0.64314127", "0.64314127", "0.64314127", "0.64314127" ]
0.0
-1
Display this application's usage and invocation
protected void showUsage() { StringBuffer usage = new StringBuffer(); usage.append("------------------------------------------------------\n"); usage.append(" " + APP_NAME + " " + APP_VERSION + "\n"); usage.append("------------------------------------------------------\n"); usage.append("Prints the Tool Kit name for the given Branch and \n"); usage.append("Component.\n"); usage.append("\n"); usage.append("USAGE:\n"); usage.append("------\n"); usage.append(APP_NAME + " <-c component> <-b branch> [-y] [-h] [-db dbMode]\n"); usage.append("\n"); usage.append(" component = Component name (ess, pds, model, einstimer ...).\n"); usage.append(" branch = Branch name.\n"); usage.append(" -y = (optional) Verbose mode (echo messages to screen)\n"); usage.append(" dbMode = (optional) DEV | PROD (defaults to PROD)\n"); usage.append(" -h = Help (shows this information)\n"); usage.append("\n"); usage.append("Return Codes\n"); usage.append("------------\n"); usage.append(" 0 = application ran ok\n"); usage.append(" 1 = application error\n"); usage.append("\n"); System.out.println(usage); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void showUsage() {\n System.out.printf(\"java app.App (-a | -r | -c | +WORD | ?WORD)\");\n }", "public void printUsage() {\n printUsage(System.out);\n }", "private static void printUsage() {\n\t\tSystem.out.println(\"[0] apk files directory\");\n\t\tSystem.out.println(\"[1] android-jar directory\");\n\t}", "private static void printUsage(){\n\t\tprintLine(USAGE_STRING);\n\t}", "protected static void printUsage() {\n\t}", "private static void printUsage()\n {\n HelpFormatter hf = new HelpFormatter();\n String header = String.format(\n \"%nAvailable commands: ring, cluster, info, cleanup, compact, cfstats, snapshot [name], clearsnapshot, bootstrap\");\n String usage = String.format(\"java %s -host <arg> <command>%n\", NodeProbe.class.getName());\n hf.printHelp(usage, \"\", options, header);\n }", "private void displayUsage() {\r\n System.err.println(\"\\nUSAGE: java -classpath ... \" + \"DiscourseImportTool\");\r\n System.err.println(\"Option descriptions:\");\r\n System.err.println(\"\\t-h\\t usage info\");\r\n System.err.println(\"\\t-e, email\\t send email if major failure\");\r\n System.err.println(\"\\t-b\\t batchSize number of items to batch during import\");\r\n System.err.println(\"\\t-discourse\\t discourse id to run the generator on\");\r\n System.err.println(\"\\t-project\\t project id to add discourse to\");\r\n }", "private static void displayUsage() {\n System.out.println(\"\\n MEKeyTool argument combinations:\\n\\n\" +\n \" -help\\n\" +\n \" -import [-MEkeystore <filename>] \" +\n \"[-keystore <filename>]\\n\" +\n \" [-storepass <password>] -alias <key alias> \" +\n \"[-domain <domain>]\\n\" +\n \" -list [-MEkeystore <filename>]\\n\" +\n \" -delete [-MEkeystore <filename>]\\n\" +\n \" (-owner <owner name> | -number <key number>)\\n\" +\n \"\\n\" +\n \" The default for -MEkeystore is \\\"\" + \n System.getProperty(DEFAULT_MEKEYSTORE_PROPERTY, \"appdb/_main.ks\") +\n \"\\\".\\n\" +\n \" The default for -keystore is \\\"\" + \n System.getProperty(DEFAULT_KEYSTORE_PROPERTY, \"$HOME/.keystore\") + \n \"\\\".\\n\");\n }", "private String usage() {\n return command(\"usage\");\n }", "public static void printUsage() {\n\t\tSystem.out.println(getVersions());\n\t\tSystem.out.println(\"Collect BE Metrics about Cache, Agent, and RTC\");\n\t\tSystem.out.println(\"BEJMX Usage:\");\n\t\tSystem.out.println(\"java com.tibco.metrics.bejmx.BEJMX -config <configFile> [-pid <pidList>]\");\n\t}", "private static void printUsage()\n {\n StringBuilder usage = new StringBuilder();\n usage.append(String.format(\"semantika %s [OPTIONS...]\\n\", Environment.QUERYANSWER_OP));\n usage.append(\" (to execute query answer)\\n\");\n usage.append(String.format(\" semantika %s [OPTIONS...]\\n\", Environment.MATERIALIZE_OP));\n usage.append(\" (to execute RDB2RDF export)\");\n String header = \"where OPTIONS include:\"; //$NON-NLS-1$\n String footer =\n \"\\nExample:\\n\" + //$NON-NLS-1$\n \" ./semantika queryanswer -c application.cfg.xml -l 100 -sparql 'SELECT ?x WHERE { ?x a :Person }'\\n\" + //$NON-NLS-1$\n \" ./semantika rdb2rdf -c application.cfg.xml -o output.n3 -f N3\"; //$NON-NLS-1$\n mFormatter.setOptionComparator(null);\n mFormatter.printHelp(400, usage.toString(), header, sOptions, footer);\n }", "private static void usage()\n {\n System.out.println(\"usage:\");\n System.out.println(\" ??? clock [-bg color] [-f fontsize] [-fg color]\");\n System.out.println(\" ??? formats\");\n System.out.println(\" ??? print [-f fmt] time\");\n System.out.println(\" ??? now [-r] [-f fmt]\");\n System.exit(1);\n }", "private void printUsage() {\n \n // new formatter\n HelpFormatter formatter = new HelpFormatter();\n \n // add the text and print\n formatter.printHelp(\"arara [file [--log] [--verbose] [--timeout N] [--language L] | --help | --version]\", commandLineOptions);\n }", "public abstract String usage();", "public void printUsage() {\n System.out.println(\"\\nHelp Invoked on \");\n System.out.println(\"[-hfs] \");\n System.out.println(\"\");\n\n System.out.println(\"Usage: \");\n System.out.println(\"-d [true|false]\");\n System.out.println(\"-f URL-file-pathame\");\n System.out.println(\"-h: invoke help\");\n System.out.println(\"-i: URL-list-input-source [ DEFAULT | USER | FILE ]\");\n System.out.println(\"-s URL-list-separator\");\n }", "private static String getUsage()\n {\n final StringBuilder usage = new StringBuilder(400);\n\n // Empty line before usage info\n usage.append(\"\\n \" \n // Describe commands/options\n + \"those <option> <command> <cmd-options> \\n\"\n + \" Options:\\n\"\n + \"\\t-v : Allows stack trace to be printed.\\n\" \n + \" Commands:\\n\"\n + getCreateUsage()\n + \" help\\n\" \n + \"\\t Displays this help message\\n\" \n + \" version\\n\" \n + \"\\t Displays the SDK version and supported Core APIs\\n\");\n\n return usage.toString();\n }", "private static void printUsage() throws Exception {\n\t\tSystem.out.println(new ResourceGetter(\"uk/ac/cam/ch/wwmm/oscar3/resources/\").getString(\"usage.txt\"));\n\t}", "private static void printUsage() {\n System.err.println(\"\\n\\nUsage:\\n\\tAnalyzeRandomizedDB [-p] [-v] [--enzyme <enzymeName> [--mc <number_of_missed_cleavages>]] <original_DB> <randomized_DB>\");\n System.err.println(\"\\n\\tFlag significance:\\n\\t - p : print all redundant sequences\\n\\t - v : verbose output (application flow and basic statistics)\\n\");\n System.exit(1);\n }", "private static void printUsage(){\n\t\tSystem.err.println(\"USAGE : java -jar ExtractWebCamFeed <Web Cam Code> <Output File Path> <Image Count>\");\n\t\tSystem.err.println(\"Web Cam Code : \\n\\t1 : West Lawns Camera\");\n\t\tSystem.err.println(\"\\t2 : Memorial Union Camera Camera\");\n\t\tSystem.err.println(\"Output File Path : to store the path of the file ( must be .mov)\");\n\t\tSystem.err.println(\"Image Count : Specifies the length of the video \");\n\t}", "private static void doUsage() {\r\n\t\tSystem.out.println(\"Usage: SpellChecker [-i] <dictionary> <document>\\n\"\r\n\t\t\t\t+ \" -d <dictionary>\\n\" + \" -h\");\r\n\t}", "final private static void usage_print () {\n\t\tSystem.out.println (NAME + ' ' + VERSION + ' ' + COPYRIGHT) ;\n\t\tSystem.out.println () ;\n\n\t\tSystem.out.println (\n\t\t \"Usage: java bcmixin.Main [<options>] <modelname> <equationname>\"\n\t\t) ;\n\n\t\tSystem.out.println () ;\n\t\tSystem.out.println (\"where [<options>] include any of the following:\") ;\n\t\tSystem.out.println () ;\n\t\tSystem.out.println (\" -help\") ;\n\t\tSystem.out.println (\" Prints this helpful message, then exits.\") ;\n\t\tSystem.out.println () ;\n\t\tSystem.out.println (\" where <modelname> means the model name that you want to work on.\") ;\n\t\tSystem.out.println () ;\n\t\tSystem.out.println (\"where <equationname> provides the equation name, which must end with .equation.\") ;\n\t\tSystem.out.println () ;\n }", "public static void usage () {\n System.out.println(\"Usage:\");\n System.out.println(\" i[nformation]\");\n System.out.println(\" r[egister] <course>\");\n System.out.println(\" u[nregister] <course>\");\n System.out.println(\" q[uit]\");\n }", "void printUsage(){\n\t\tSystem.out.println(\"Usage: RefactorCalculator [prettyPrint.tsv] [tokenfile.ccfxprep] [cloneM.tsv] [lineM.tsv]\");\n\t\tSystem.out.println(\"Type -h for help.\");\n\t\tSystem.exit(1); //error\n\t}", "private static void usage() {\n System.out.println(\"Usage: java -jar ....jar [Options]\" + LINESEP + LINESEP);\n System.out.println(\"[Options]\" + LINESEP);\n System.out.println(\"-c --config\\tconfigfile\");\n System.out.println(\"-s --spectrum\\tspectrumfile\");\n System.out.println(\"-r --resultfile\\tWhere the result has to be written to.\");\n System.out.println(\"-q --sqlfile\\tWhere the query has to be written to.\");\n System.out.println(\"-p --ppm\\tThe ppm value which should be used for the spectrum.\");\n }", "private static void printUsage() {\n\t\tSystem.out.println(\"Usage: java UniqueUniqueChromosomeReconstructor [-h] input_file\");\n\t\tSystem.out.println(\" -h: Print usage information\");\n\t\tSystem.out.println(\" input_file: File containing input sequence data\");\n\t}", "public static void printUsage(){\n \n System.out.println(\"USAGE:\\njava -jar LMB.jar inputfilename\\n\"\n + \"\\nWhere: LMB is the executable of this program\"\n + \"\\ninputfilename is a plaintext file located in the ./text/ folder\"\n + \"\\nAll output files will be created and written to the \\\"lm\\\" directory in root\");\n System.exit(1);\n \n }", "final private static void usage () {\n\t\t usage_print () ;\n\t\t System.exit (0) ;\n }", "public static void p_show_info_program() {\n System.out.println(\"╔══════════════════════════════╗\");\n System.out.println(\"║ SoftCalculator V1.2 ║\");\n System.out.println(\"║ Oscar Javier Cardozo Diaz ║\");\n System.out.println(\"║ 16/04/2021 ║\");\n System.out.println(\"╚══════════════════════════════╝\");\n }", "private static void printUsageAndExit() {\n\t\t printUsageAndExit(null);\n\t\t }", "public String usageString() {\n StringJoiner output = new StringJoiner(\" OR \");\n for (TokenMatcher tokenMatcher : matcherList) {\n output.add(tokenMatcher.usageString());\n }\n return \"USAGE: \" + output.toString();\n }", "private static void printUsage() \r\n\t{\r\n\t\tSystem.err.println(\"Usage: java GeneBankSearch \"\r\n\t\t\t\t+ \"<0/1(no/with Cache)> <btree file> <query file> \"\r\n\t\t\t\t+ \"[<cache size>] [<debug level>]\\n\");\r\n\t\tSystem.exit(1); \r\n\t}", "private static void printUsage() {\n\t\tSystem.out.println(errorHeader + \"Incorrect parameters\\nUsage :\"\n\t\t\t\t+ \"\\njava DaemonImpl <server>\\n With server = address of the server\"\n\t\t\t\t+ \" the DaemonImpl is executed on\");\n\t}", "private static void DisplayHelp() {\r\n System.out.println();\r\n System.out.println(\"Usage: Consumes messages from a topic/queue\");\r\n System.out.println();\r\n System.out.println(\" SampleConsumerJava [ < response_file ]\");\r\n System.out.println();\r\n return;\r\n }", "private static void usage()\n/* */ {\n/* 245 */ log.info(\"Usage: java org.apache.catalina.startup.Tool [<options>] <class> [<arguments>]\");\n/* */ }", "private void helpService() {\n output.println(\"Help command\");\n output.println(\"-calc <number> \\t Calculates the value of pi based on <number> points; quit \\t Exit from program \");\n }", "private void help() {\n usage(0);\n }", "private static final void usage() {\n System.err.println(\n \"Usage:\\n\" +\n \" java sheffield.examples.BatchProcessApp -g <gappFile> [-e encoding]\\n\" +\n \" [-a annotType] [-a annotType] file1 file2 ... fileN\\n\" +\n \"\\n\" +\n \"-g gappFile : (required) the path to the saved application state we are\\n\" +\n \" to run over the given documents. This application must be\\n\" +\n \" a \\\"corpus pipeline\\\" or a \\\"conditional corpus pipeline\\\".\\n\" +\n \"\\n\" +\n \"-e encoding : (optional) the character encoding of the source documents.\\n\" +\n \" If not specified, the platform default encoding (currently\\n\" +\n \" \\\"\" + System.getProperty(\"file.encoding\") + \"\\\") is assumed.\\n\" +\n \"\\n\" +\n \"-a type : (optional) write out just the annotations of this type as\\n\" +\n \" inline XML tags. Multiple -a options are allowed, and\\n\" +\n \" annotations of all the specified types will be output.\\n\" +\n \" This is the equivalent of \\\"save preserving format\\\" in the\\n\" +\n \" GATE GUI. If no -a option is given the whole of each\\n\" +\n \" processed document will be output as GateXML (the equivalent\\n\" +\n \" of \\\"save as XML\\\").\"\n );\n\n System.exit(1);\n }", "private static void displayHelp(){\n System.out.println(\"-host hostaddress: \\n\" +\n \" connect the host and run the game \\n\" +\n \"-help: \\n\" +\n \" display the help information \\n\" +\n \"-images: \\n\" +\n \" display the images directory \\n\" +\n \"-sound: \\n\" +\n \" display the sounds file directory \\n\"\n\n );\n }", "static int printUsage() {\n\t System.out.println(\"netflix1Driver [-m <maps>] [-r <reduces>] <input> <output>\");\n\t ToolRunner.printGenericCommandUsage(System.out);\n\t return -1;\n\t }", "private void showHelp() {\n \tHelpFormatter formatter = new HelpFormatter();\n \tformatter.printHelp( \"java -cp moustache.jar Main\", options );\n }", "static void usage() {\n System.out.println(\"java -jar domainchecker.jar [StartDomain] [EndDomain] [Extension]\");\n System.out.println(\"Ex: java -jar DomainChecker.jar aaaa zzzz .com .vn\");\n }", "private void showExecutionStart() {\n log.info(\"##############################################################\");\n log.info(\"Creating a new web application with the following parameters: \");\n log.info(\"##############################################################\");\n log.info(\"Name: \" + data.getApplicationName());\n log.info(\"Package: \" + data.getPackageName());\n log.info(\"Database Choice: \" + data.getDatabaseChoice());\n log.info(\"Database Name: \" + data.getDatabaseName());\n log.info(\"Persistence Module: \" + data.getPersistenceChoice());\n log.info(\"Web Module: \" + data.getWebChoice());\n }", "private static void printUsage() {\r\n\t\t//TODO: print out clear usage instructions when there are problems with\r\n\t\t// any command line args\r\n\t\tSystem.out.println(\"This program expects three command-line arguments, in the following order:\"\r\n\t\t\t\t+ \"\\n -q for storing as a queue, -c for console output, and the input file name.\");\r\n\t}", "public void printUsageInformation(OutputStream printStream) {\n HelpFormatter formatter = new HelpFormatter();\n String header = System.lineSeparator()+\"See below on how to use this wonderful Payroll Application\";\n try (PrintWriter printWriter = new PrintWriter(printStream)) {\n formatter.printHelp(printWriter, 300, \"java -jar payroll-application-*.jar\", header, ALL_INPUT_OPTIONS, 0, 0, System.lineSeparator(), true);\n }\n }", "@Override\n public String showHelp()\n {\n return new String(ChatColour.RED + \"Usage: \" + ChatColour.AQUA + this.getName());\n }", "public void printArgsInterpretation() {\n StringBuilder usage = new StringBuilder();\n usage.append(\"You launched the CuratorClient with the following options:\");\n usage.append(\"\\n\");\n usage.append(\"\\tCurator host: \");\n usage.append(host);\n usage.append(\"\\n\");\n usage.append(\"\\tCurator port: \");\n usage.append(port);\n usage.append(\"\\n\");\n usage.append(\"\\tInput directory: \");\n usage.append(inputDir.toString());\n usage.append(\"\\n\");\n usage.append(\"\\tOutput directory: \");\n usage.append(outputDir.toString());\n usage.append(\"\\n\");\n usage.append(\"\\tRun in testing mode? \");\n usage.append(testing ? \"Yes.\" : \"No.\");\n usage.append(\"\\n\");\n\n System.out.println( usage.toString() );\n }", "private static void printUsageAndExit() {\n printUsageAndExit(null);\n }", "public static void displayHelp() {\n\t\thelp = getInstance();\n\t\tUIMain.popUpHelp(commandList, inputCommand);\t\n\t\tLoggingLogic.logging(HELP_MESSAGE);\n\t}", "public static void printUsage() {\n System.out.println(\"*****\\t*****\\t*****\");\n System.out.println(\"Usage:\");\n System.out.println(\"par/seq, L/B, N, M, C, output file\");\n System.out.println(\"Using type of calculation: par(parallel) or seq(sequential)\");\n System.out.println(\"Using numbers: L - Long, B - BigInteger\");\n System.out.println(\"Program finds all prime numbers in range [N, M]\");\n System.out.println(\"That ends with number C\");\n System.out.println(\"N, M, C should be whole numbers and N must be less than M!\");\n System.out.println(\"Output is written into file \\\"output file\\\", first number is \");\n System.out.println(\"The quantity of prime numbers and after - all found prime numbers\");\n System.out.println(\"*****\\t*****\\t*****\");\n }", "public void startCommandLine() {\r\n Object[] messageArguments = { System.getProperty(\"app.name.display\"), //$NON-NLS-1$\r\n System.getProperty(\"app.version\") }; //$NON-NLS-1$\r\n MessageFormat formatter = new MessageFormat(\"\"); //$NON-NLS-1$\r\n formatter.applyPattern(Messages.MainModel_13.toString());\r\n TransportLogger.getSysAuditLogger().info(\r\n formatter.format(messageArguments));\r\n }", "private static void help(){\r\n System.out.println(\"\\n\\t Something Went Wrong\\nType\\t java -jar nipunpassgen.jar -h\\t for mor info\");\r\n System.exit(0);\r\n }", "private void printHelp()//Method was given\n {\n System.out.println(\"Your command words are:\");\n parser.showCommands();\n }", "private static void usage() {\n System.err.println(\"Usage: java org.apache.pdfbox.examples.pdmodel.PrintTextLocations <input-pdf>\");\n }", "public static void showOptions() {\n System.out.println(new StringJoiner(\"\\n\")\n .add(\"*************************\")\n .add(\"1- The participants' directory.\")\n .add(\"2- The RDVs' agenda.\")\n .add(\"3- Quit the app.\")\n .add(\"*************************\")\n );\n }", "public String usage()\n {\n return (\"Common [optional] options supported by Minitest:\\n\"\n + \"(Note: assumes inputDir=.\\\\tests\\\\api)\\n\"\n + super.usage()); // Grab our parent classes usage as well\n }", "private static void usage()\n {\n System.err.println( \"Usage: java at.ac.tuwien.dbai.pdfwrap.ProcessFile [OPTIONS] <PDF file> [Text File]\\n\" +\n \" -password <password> Password to decrypt document\\n\" +\n \" -encoding <output encoding> (ISO-8859-1,UTF-16BE,UTF-16LE,...)\\n\" +\n \" -xmillum output XMIllum XML (instead of XHTML)\\n\" +\n \" -norulinglines do not process ruling lines\\n\" +\n \" -spaces split low-level segments according to spaces\\n\" +\n \" -console Send text to console instead of file\\n\" +\n \" -startPage <number> The first page to start extraction(1 based)\\n\" +\n \" -endPage <number> The last page to extract(inclusive)\\n\" +\n \" <PDF file> The PDF document to use\\n\" +\n \" [Text File] The file to write the text to\\n\"\n );\n System.exit( 1 );\n }", "public static void showSynopsis() {\n System.out\n .println(\"Usage: findbugs [general options] -textui [command line options...] [jar/zip/class files, directories...]\");\n }", "private void printHelp() {\n System.out.println(\"Your available command words are:\");\n parser.showCommands();\n }", "private void printHelp() \n {\n System.out.println(\"Your command words are:\");\n parser.showCommands();\n }", "private static void help() {\n System.out.println(USAGE); \n System.exit(0);\n }", "private static void usage() {\n System.err.println(\"usage: Binomial degree(1..10)\");\n System.exit(-1);\n }", "public abstract void printHelp(List<String> args);", "private static void help(){\n\t\tSystem.out.println(\"\\t\\tAge\\n\\tby Sayan Ghosh\\n\\n\"+\n\t\t\t\t\t\t\t\"Calculates Age of Person from Date of Birth (DD MM YYYY).\\n\"+\n\t\t\t\t\t\t\t\"Shows age in two forms:\\n\"+\n\t\t\t\t\t\t\t\t\"\\tAge in years, months, days\\n\"+\n\t\t\t\t\t\t\t\t\"\\tAge in years (as fraction)\\n\"+\n\t\t\t\t\t\t\t\"Syntax:\\n\"+\n\t\t\t\t\t\t\t\t\"\\tjava Age\\t\\t\\truns program and takes input\\n\"+\n\t\t\t\t\t\t\t\t\"\\tjava Age <dd mm yyyy>\\t\\tdirectly shows result taking dob as parameters\\n\"+\n\t\t\t\t\t\t\t\t\"\\tjava Age --help\\t\\t\\tshows this help\\n\");\n\t}", "public static void showCommandLineOptions(TextUICommandLine commandLine) {\n commandLine.printUsage(System.out);\n }", "private static void help() {\n System.out.println(\"usage: pgen <project name> <args>\");\n System.out.println(\"Arguments:\");\n System.out.println(\"\\t-h | -help : help menu\");\n System.out.println(\"\\t-s | -size <example file amount> : the amount of example files to create. Defaults to 2\");\n System.out.println(\"\\t-t | -template <template> : the template to use. Defaults to java_default\");\n System.out.println(\"\\t\\tValid Templates:\");\n System.out.println(\"\\t\\t\\t* java_default\");\n System.out.println(\"\\t\\t\\t* cpp_default\");\n System.out.println(\"\\t-kattis : fetches the problems from Kattis and creates a makefile and test script for them\");\n System.out.println(\"\\t-local : fetches nothing and creates empty example files\");\n System.exit(0);\n }", "public void help() {\n\t\tString format = \"%-20s%s%n\";\n\t\tString[] commands = new String[5];\n\t\tcommands[0] = \"help\";\n\t\tcommands[1] = \"learn\";\n\t\tcommands[2] = \"alphabet:create\";\n\t\tcommands[3] = \"alphabet:destroy\";\n\t\tcommands[4] = \"alphabet:compose\";\n\n\t\tString[] explanation = new String[5];\n\t\texplanation[0] = \"display this message\";\n\t\texplanation[1] = \"starts a learning process. Note: with a large alphabet, this\\ncan take a \"\n\t\t\t\t+ \"very long time!\";\n\t\texplanation[2] = \"creates an alphabet. Currently only working for Android, the\\n\"\n\t\t\t\t+ \"creation of an iOS alphabet has to be done more or less manually\";\n\t\texplanation[3] = \"deletes an existing alphabet\";\n\t\texplanation[4] = \"composes an alphabet from existing window dumps.\";\n\n\t\tfor (int i = 0; i < commands.length; i++) {\n\t\t\tSystem.out.printf(format, commands[i], explanation[i]);\n\t\t}\n\t}", "private static void help() {\n\t\tSystem.out.println(\"\\n----------------------------------\");\n\t\tSystem.out.println(\"---Regatta Calculator Commands----\");\n\t\tSystem.out.println(\"----------------------------------\");\n\t\tSystem.out.println(\"addtype -- Adds a boat type and handicap to file. Format: name:lowHandicap:highHandicap\");\n\t\tSystem.out.println(\"format -- Provides a sample format for how input files should be arranged.\");\n\t\tSystem.out.println(\"help -- Lists every command that can be used to process regattas.\");\n\t\tSystem.out.println(\"podium -- Lists the results of the regatta, assuming one has been processed.\");\n\t\tSystem.out.println(\"regatta [inputfile] -- Accepts an input file as a parameter, this processes the regatta results outlined in the file.\");\n\t\tSystem.out.println(\"types -- lists every available boat type.\");\n\t\tSystem.out.println(\"write [outputfile] -- Takes the results of the regatta and writes them to the file passed as a parameter.\");\n\t\tSystem.out.println(\"----------------------------------\\n\");\n\t}", "private void showUsage(Command cmd, CommandSender sender, boolean prefix) {\n CommandInfo info = cmd.getClass().getAnnotation(CommandInfo.class);\n if(!PermHandler.hasPerm(sender, info.permission())) return;\n\n sender.sendMessage((prefix ? \"Usage: \" : \"\") + info.usage() + \" \" + ChatColor.YELLOW + info.desc());\n }", "private void print_help_and_exit() {\n System.out.println(\"A bunch of simple directus admin cli commands\");\n System.out.println(\"requires DIRECTUS_API_HOST and DIRECTUS_ADMIN_TOKEN environment variables to be set\");\n System.out.println();\n\n COMMAND_METHODS.values().forEach(c -> {\n for (String desriptionLine : c.descriptionLines) {\n System.out.println(desriptionLine);\n }\n System.out.println();\n });\n\n System.out.println();\n System.exit(-1);\n }", "private static void usage() {\n System.err.println(\"USAGE:\");\n System.err.println(\"\\tjava ConnectFour <HOST> <PORT> <PLAYER_NAME>\");\n System.err.println(\"\\t\\t<SERVER_HOST>: the host name or IP address of the server\");\n System.err.println(\"\\t\\t<SERVER_PORT>: the port number of the server\");\n System.err.println(\"\\t\\t<CLIENT_HOST>: the host name or IP address of the client\");\n System.err.println(\"\\t\\t<CLIENT_PORT>: the port number of the client\");\n System.err.println(\"\\t\\t<PLAYER_NAME>: the name of the player (must not include any whitespace)\");\n System.err.println(\"\\n\\t\\tExample: java ConnectFour localhost 6789 localhost 5678 Alex\");\n }", "private void help() {\n for (GameMainCommandType commandType : GameMainCommandType.values()) {\n System.out.printf(\"%-12s%s\\n\", commandType.getCommand(), commandType.getInfo());\n }\n System.out.println();\n }", "public static void usage()\n {\n System.out.println(\"usage: MdrCreater [help] [-t hour] [-o uri] [-m markets] [-p port] [-h servers]\");\n System.out.println(\"\\t-t\\t\\tYYYYMMDDHH Default last hour of the local time\");\n System.out.println(\"\\t-o\\t\\toutput stream for example file://tmp. Default: screen\");\n System.out.println(\"\\t-h\\t\\tcomma saparated list of cassandra hosts. Default: localhost\");\n System.out.println(\"\\t-p\\t\\tport to cassandra Default: 9160\");\n System.out.println(\"\\t-m\\t\\tcomma separated list of markets. Default: region1,region2,region3,region4\");\n System.out.println(\"\\t\\t\\turi file://<path>\");\n System.out.println(\"\\t\\t\\turi <username>@<host>:<path>\");\n }", "@Override\n public Text getUsage(CommandSource source) {\n return usage;\n }", "public void printPackagePowerUsage() {\n }", "public void help() {\n System.out.println(\"Type 'commands' to list all \" +\n \"available commands\");\n System.out.println(\"Type 'start' to play game\");\n System.out.println(\"Player to remove the last stone loses!\");\n System.out.println();\n }", "public void showHelp();", "private void printHelp() \n {\n System.out.println(\"You are lost. You are alone. You wander\");\n System.out.println(\"around at the university.\");\n System.out.println();\n System.out.println(\"Your command words are:\");\n parser.showCommands();\n }", "private void cmdInfoProg() {\n long total = Runtime.getRuntime().totalMemory();\n long free = Runtime.getRuntime().freeMemory();\n NumberFormat nf = NumberFormat.getInstance();\n Log.println(\"(mem: \"\n + NumberFormat.getPercentInstance().format(\n (double) free / (double) total) + \" = \"\n + nf.format(free) + \" bytes free, \" + nf.format(total)\n + \" bytes total)\");\n }", "private String _getUsage() {\n\n StringBuffer buf = new StringBuffer();\n \n // Add FEI version number string and copyright statement\n buf.append(Constants.COPYRIGHT + \"\\n\");\n buf.append(Constants.CLIENTVERSIONSTR + \"\\n\");\n buf.append(Constants.APIVERSIONSTR + \"\\n\\n\");\n\n // All usuage statements begin with Usage: command name\n buf.append(\"Usage:\\t\" + this._userScript + \" \");\n\n if (this._actionId.equals(Constants.CREDLOGIN))\n {\n buf.append(\"[<user name> [<server group>] ] [help]\");\n }\n else if (this._actionId.equals(Constants.CREDLOGOUT))\n {\n buf.append(\"[<server group>] [help]\");\n }\n else if (this._actionId.equals(Constants.CREDLIST))\n {\n buf.append(\"[help]\");\n }\n else if (this._actionId.equals(Constants.ADDFILE))\n {\n buf.append(\"[<server group>:]<file type> <file name expression>\\n\")\n .append(\"\\t{[before|after <date-time>] | [between <date-time1> and <date-time2>]}\\n\")\n .append(\"\\t[format \\'<date format>\\'] [comment \\'<comment text>\\'] [crc] [receipt]\\n\")\n .append(\"\\t[autodelete] [filehandler] [help]\\n\\n\")\n .append(\"Usage:\\t\").append(this._userScript)\n .append(\" using <option file>\\n\");\n buf.append(\"Option File Format (per line):\\n\")\n .append(\"\\t[<server group>:]<file type> <file name>...\\n\")\n .append(\"\\t{[before|after <date-time>] | [between <date-time1> and <date-time2>]}\\n\")\n .append(\"\\t[format \\'<date format>\\'] [comment \\'<comment text>\\'] \\n\")\n .append(\"\\t[autodelete] [crc] [receipt]\");\n }\n else if (this._actionId.equals(Constants.REPLACEFILE)) \n {\n buf.append(\"[<server group>:]<file type> <file name expression>\\n\")\n .append(\"\\t{[before|after <date-time>] | [between <date-time1> and <date-time2>]}\\n\")\n .append(\"\\t[format \\'<date format>\\'] [comment \\'<comment text>\\'] [crc] [receipt]\\n\")\n .append(\"\\t[autodelete] [diff] [filehandler] [help]\\n\\n\")\n .append(\"Usage:\\t\").append(this._userScript)\n .append(\" using <option file>\\n\");\n buf.append(\"Option File Format (per line):\\n\")\n .append(\"\\t[<server group>:]<file type> <file name>...\\n\")\n .append(\"\\t{[before|after <date-time>] | [between <date-time1> and <date-time2>]}\\n\")\n .append(\"\\t[format \\'<date format>\\'] [comment \\'<comment text>\\'] \\n\")\n .append(\"\\t[autodelete] [crc] [receipt] [diff]\");\n }\n else if (this._actionId.equals(Constants.GETFILES))\n {\n buf.append(\"[<server group>:]<file type> [\\'<file name expression>\\'] \\n\")\n .append(\"\\t[output <path>] {[before|after <datetime>] | \\n\")\n .append(\"\\t[between <datetime1> and <datetime2>]} \\n\")\n .append(\"\\t[format \\'<date format>\\'] [crc] [saferead] [receipt] \\n\")\n .append(\"\\t{[replace|version]} [diff] [query <queryfile>] [replicate]\\n\")\n .append(\"\\t[replicateroot <rootdir>] [filehandler] [help]\\n\\n\")\n .append(\"Usage:\\t\").append(this._userScript)\n .append(\" using <option file>\\n\");\n buf.append(\"Option File Format (per line):\\n\")\n .append(\"\\t[<server group>:]<file type> [\\'<file name expression>\\']\\n\")\n .append(\"\\t[output <path>] {[before|after <date-time>] | \\n\")\n .append(\"\\t[between <date-time1> and <date-time2>]} \\n\")\n .append(\"\\t[format \\'<date format>\\'] [crc] [saferead] [receipt] \\n\")\n .append(\"\\t{[replace|version]} [diff]\");\n }\n else if (this._actionId.equals(Constants.AUTOGETFILES))\n {\n buf.append(\"[<server group:]<file type> \\n\")\n .append(\"\\t[output <path>] [restart] [using <option file>] {[pull|push]} \\n\")\n .append(\"\\t{[replace|version]} [format \\'<date format>\\'] [query <queryfile>]\\n\")\n .append(\"\\t[replicate] [replicateroot <rootdir>] [filehandler] [diff] [help]\\n\");\n buf.append(\"Option File Format:\\n\")\n .append(\"\\tcrc\\n\")\n .append(\"\\tdiff\\n\")\n .append(\"\\tinvoke <command>\\n\")\n .append(\"\\tinvokeExitOnError\\n\")\n .append(\"\\tinvokeAsync\\n\")\n .append(\"\\tlogFile <file name>\\n\")\n .append(\"\\tlogFileRolling {monthly|weekly|daily|hourly|minutely|halfdaily}\\n\")\n .append(\"\\tmailMessageFrom <email address>\\n\")\n .append(\"\\tmailMessageTo <email address, email address, ...>\\n\")\n .append(\"\\tmailReportAt <hh:mm am|pm, hh:mm am|pm, ...>\\n\")\n .append(\"\\tmailReportTo <email address, email address, ...>\\n\")\n .append(\"\\tmailSMTPHost <host name>\\n\")\n .append(\"\\tmailSilentReconnect\\n\")\n .append(\"\\treceipt\\n\").append(\"\\treplace\\n\")\n .append(\"\\tsaferead\\n\").append(\"\\tversion\");\n }\n else if (this._actionId.equals(Constants.AUTOSHOWFILES))\n {\n buf.append(\"[<server group:]<file type> \\n\")\n .append(\"\\t[output <path>] [restart] [using <option file>] {[pull|push]}\\n\")\n .append(\"\\t[format \\'<date format>\\'] [query <queryfile>] [filehandler]\\n\")\n .append(\"\\t[help]\\n\");\n buf.append(\"Option File Format:\\n\")\n .append(\"\\tinvoke <command>\\n\")\n .append(\"\\tinvokeExitOnError\\n\")\n .append(\"\\tinvokeAsync\\n\")\n .append(\"\\tlogFile <file name>\\n\")\n .append(\"\\tlogFileRolling {monthly|weekly|daily|hourly|minutely|halfdaily}\\n\")\n .append(\"\\tmailMessageFrom <email address>\\n\")\n .append(\"\\tmailMessageTo <email address, email address, ...>\\n\")\n .append(\"\\tmailReportAt <hh:mm am|pm, hh:mm am|pm, ...>\\n\")\n .append(\"\\tmailReportTo <email address, email address, ...>\\n\")\n .append(\"\\tmailSMTPHost <host name>\\n\")\n .append(\"\\tmailSilentReconnect\\n\");\n }\n else if (this._actionId.equals(Constants.MAKECLEAN))\n {\n buf.append(\"[<server group>:]<file type> [help]\");\n }\n else if (this._actionId.equals(Constants.DELETEFILE))\n {\n buf.append(\"[<server group>:]<file type> \\'<file name expression>\\' \\n\")\n .append(\"\\t[filehandler] [help]\\n\\n\")\n .append(\"Usage:\\t\").append(this._userScript)\n .append(\" using <option file>\\n\");\n buf.append(\"Option File Format (per line):\\n\")\n .append(\"\\t[<server group>:]<file type> \\'<file name expression>\\'\");\n }\n else if (this._actionId.equals(Constants.SHOWFILES))\n {\n buf.append(\"[<server group>:]<file type> [\\'<file name expression>\\'] \\n\")\n .append(\"\\t{[before|after <date-time>] | [between <date-time1> and <date-time2>]}\\n\")\n .append(\"\\t[format \\'<date format>\\'] {[long | verylong]} \\n\")\n .append(\"\\t[query <queryfile>] [filehandler] [help]\");\n }\n else if (this._actionId.equals(Constants.SETREFERENCE))\n {\n buf.append(\"[<server group>:]<file type> <file name> \\n\")\n .append(\"\\tvft <VFT name> reference <ref name> [help]\");\n }\n else if (this._actionId.equals(Constants.RENAMEFILE))\n {\n buf.append(\"[<server group>:]<file type> <old file name> <new file name>\\n\")\n .append(\"\\t[filehandler] [help]\\n\\n\")\n .append(\"Usage:\\t\")\n .append(this._userScript)\n .append(\" using <option file>\\n\")\n .append(\"Option File Format (per line):\\n\")\n .append(\"\\t[<server group>:]<file type> <old file name> <new file name>\");\n }\n else if (this._actionId.equals(Constants.COMMENTFILE))\n {\n buf.append(\"[<server group>:]<file type> <file name> comment \\n\")\n .append(\"\\t\\'<comment text>\\' [filehandler] [help]\");\n }\n else if (this._actionId.equals(Constants.COMPUTECHECKSUM))\n {\n buf.append(\"<file name expression> [help]\");\n }\n else if (this._actionId.equals(Constants.CHECKFILES))\n {\n buf.append(\"[<server group>:]<file type> [\\'<file name expression>\\']\\n\")\n .append(\"\\t{[before|after <date-time>] | [between <date-time1> and <date-time2>]}\\n\")\n .append(\"\\t[format \\'<date format>\\'] {[long | verylong]} [help]\\n\\n\")\n .append(\"Usage:\\t\")\n .append(this._userScript + \" using <option file>\\n\");\n buf.append(\"Option File Format (per line):\\n\")\n .append(\"\\t[<server group>:]<file type> \\'<file name expression>\\'\\n\")\n .append(\"\\t{[before|after <date-time>] | [between <date-time1> and <date-time2>]}\\n\")\n .append(\"\\t[format \\'<date format>\\'] {[long | verylong]}\");\n }\n else if (this._actionId.equals(Constants.DISPLAY))\n {\n buf.append(\"[<server group>:]<file type> <file name> [help]\");\n }\n else if (this._actionId.equals(Constants.ACCEPT))\n {\n buf.append(\"[<server group>:]<file type> for <add|replace|get|delete>\\n\")\n .append(\"\\t[output <path>] [crc] [saferead] [autodelete] {[replace|version]}\\n\")\n .append(\"\\t[diff] [help]\");\n }\n else if (this._actionId.equals(Constants.SHOWTYPES))\n {\n buf.append(\"{\\'[<server group>:][<file type expression>]\\'|[srvgroups]}\\n\")\n .append(\"\\t[classic] [help]\\n\");\n }\n else if (this._actionId.equals(Constants.CHECK))\n {\n buf.append(\"[help]\");\n }\n else if (this._actionId.equals(Constants.REGISTERFILE))\n {\n buf.append(\"[<server group>:]<file type> <file name expression>\\n\")\n .append(\"\\t[replace] [force] [comment \\'<comment text>\\']\\n\")\n .append(\"\\t{[before|after <date-time>] | [between <date-time1> and <date-time2>]}\\n\")\n .append(\"\\t[format \\'<date format>\\'] [receipt] [filehandler] [help]\\n\\n\")\n .append(\"Usage:\\t\").append(this._userScript)\n .append(\" using <option file>\\n\");\n buf.append(\"Option File Format (per line):\\n\")\n .append(\"\\t[<server group>:]<file type> <file name>... [replace] [force]\\n\")\n .append(\"\\t{[before|after <date-time>] | [between <date-time1> and <date-time2>]}\\n\")\n .append(\"\\t[format \\'<date format>\\'] [comment \\'<comment text>\\'] [receipt]\");\n }\n else if (this._actionId.equals(Constants.UNREGISTERFILE))\n {\n buf.append(\"[<server group>:]<file type> \\'<file name expression>\\' \\n\")\n .append(\"\\t[filehandler] [help]\\n\\n\")\n .append(\"Usage:\\t\").append(this._userScript)\n .append(\" using <option file>\\n\");\n buf.append(\"Option File Format (per line):\\n\")\n .append(\"\\t[<server group>:]<file type> \\'<file name expression>\\'\");\n }\n else if (this._actionId.equals(Constants.LOCKFILETYPE))\n {\n buf.append(\"[<server group>:]<file type> [owner | group] [help]\\n\"); \n }\n else if (this._actionId.equals(Constants.UNLOCKFILETYPE))\n {\n buf.append(\"[<server group>:]<file type> [owner | group] [help]\\n\"); \n }\n else if (this._actionId.equals(Constants.CHANGEPASSWORD))\n {\n buf.append(\"<server group> [help]\\n\"); \n }\n else\n {\n }\n \n \n \n return buf.toString();\n }", "private static void showHelpAndExit(){\n\n System.out.println(\"*****************************************\");\n System.out.println(\"Format to run: java DataLoadTool <<no_of_docs>> <<doc_size>>\");\n System.out.println(\" <no_of_docs> -> Number of JSON documents needed to populate in one batch\");\n System.out.println(\" <doc_size>> -> Document size in Bytes (this value can be any number but more than 15)\");\n\n System.out.println(\"\\n Eg: If you wan to poulate 10 docs each of 20 Bytes\\n\" +\n \"\\t java DataLoadTool 10 20\");\n\n System.out.println(\"*****************************************\\n\");\n System.exit(0);\n }", "public static void printUserGuide() {\n System.out.println(Message.USER_COMMAND_GUIDE);\n System.out.println(\"Go ahead!\");\n }", "public static void usage() {\n\t\tSystem.err.println(\"Usage: java info.ziyan.net.httpserver.example.FileServer <port> <path>\");\n\t\tSystem.err.println();\n\t}", "private static void help() {\n\t\t\n\t\tTask[] taskList = createTaskList();\n\t\t\n\t\tSystem.out.println(\"\\n---------------------------------[ HELP ]--------\"\n\t\t\t\t+ \"------------------------------\\n\");\n\t\t\n\t\t// Post1 Display help (Polymorphism)\n\t\tfor (Task task : taskList) {\n\t\t\ttask.displayHelp();\n\t\t}\n\t\t\n\t}", "private void printHelp() \n {\n System.out.println(\"You are lost. You are alone. You wander\");\n System.out.println(\"around in a dense woods.\");\n System.out.println();\n System.out.println(\"Your command words are:\");\n parser.showCommands();\n }", "private void printHelp() \n {\n System.out.println(\"You are lost. You are alone. You wander\");\n System.out.println(\"around at the prision.\");\n System.out.println();\n System.out.println(\"Your command words are:\");\n System.out.println(parser.showCommands());\n }", "private static void showUsage(String arg) {\n char notA = 97;\n if (arg.equals(\"1337h\" + notA + \"ckerm\" + notA + \"n\")) {\n // don't worry about this!\n // this is a really insecure decryption function\n // Don't worry about how it works. If you really want to know,\n // come hang out with me in my office hours! ~Alex\n char[] ct = WHAT_IS_THIS.toCharArray();\n int n = ct.length - 2;\n // These are bitwise operators. Yikes!\n // You'll learn about them in CS2110 if you take it.\n java.util.Random r\n = new java.util.Random(((ct[0] << 8) & 0x0F00) | ct[1]);\n\n StringBuilder sb = new StringBuilder();\n\n // some nice java8 functional programming here\n r.ints(0, n).distinct().limit(n).forEachOrdered(\n i -> sb.append((char) (ct[i + 0x2] ^ 0x9)));\n System.out.println(sb.toString());\n } else {\n System.out.println(\"Usage is:\\t\"\n + \"java StraightAs <filename.csv> <separator> <displayMode>\"\n + \"\\n\\nSeparators: any valid java string. For example:\"\n + \"\\n\\tNOTACOMMA\\n\"\n + \"\\t,\\n\"\n + \"\\t4L3X1SK00L\\n\\nDisplay Modes (see instructions for\"\n + \" more info):\\n\"\n + \"\\tTABLE\\tdisplays a table of the names and grades in \"\n + \"the csv file\\n\\tHIST\\tdisplays the histogram of \"\n + \"the grades.\\n\\tBOTH\\tdisplays both the table and \"\n + \"the histogram\\n\"\n + \"\\nRunning the program with arguments:\"\n + \"\\n\\tjava StraightAs sample_data.csv , HIST\");\n }\n }", "private static void help() {\n System.out.println(\"Supported Command List:\");\n System.out.println(\"@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\");\n System.out.println(\"To draw canvas press: C <width> <height>\");\n System.out.println(\"To draw rectangle press: R <x1> <y1> <x2> <y2>\");\n System.out.println(\"To draw Line press : L <x1> <y1> <x2> <y2>\");\n System.out.println(\"To fill canvas press : B <x> <y> <c>\");\n System.out.println(\"To quit press: Q\");\n System.out.println(\"@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\");\n System.out.println();\n }", "public String getUsage() {\n return \"robot repair --input <file> \" + \"--output <file> \" + \"--output-iri <iri>\";\n }", "public void printHelp(String funcname) {\n\t\tSystem.out.println(funcname);\n\t\tSystem.out.println();\n\t\tswitch(funcname){\n\t\tcase \"ASave\":\n\t\t\tSystem.out.println(\"Description: Outputs the program to the specified file with array syntax.When filename is not specified, saves as \\\"original_filename-ASave.ab\\\".\");\n\t\t\tSystem.out.println(\"Usage: ASave(Program prog, String filename)\");\n\t\t\tbreak;\n\t\tcase \"ASaveSystem\":\n\t\t\tSystem.out.println(\"Description: Outputs the result of AShow to the specified file.When filename is not specified, saves as \\\"original_filename-ASave.ab\\\".\");\n\t\t\tSystem.out.println(\"Usage: ASaveSystem(Program prog, String system, String filename)\");\n\t\t\tbreak;\n\t\tcase \"AShow\":\n\t\t\tSystem.out.println(\"Description: Prints out the program using array notation.Prints out the entire program when target system is unspecified.\");\n\t\t\tSystem.out.println(\"Usage: AShow(Program prog, String system)\");\n\t\t\tbreak;\n\t\tcase \"Save\":\n\t\t\tSystem.out.println(\"Description: Saves the output of show to the specified file.When output filename is unspecified, saves to \\\"original_filename-Show.ab\\\".\");\n\t\t\tSystem.out.println(\"Usage: Save(Program prog, String filename)\");\n\t\t\tbreak;\n\t\tcase \"SaveSystem\":\n\t\t\tSystem.out.println(\"Description: Saves the output of show to the specified file.When output filename is unspecified, saves to \\\"original_filename-Show.ab\\\".\");\n\t\t\tSystem.out.println(\"Usage: SaveSystem(Program prog, String system, String filename)\");\n\t\t\tbreak;\n\t\tcase \"Show\":\n\t\t\tSystem.out.println(\"Description: Pretty prints the program using alpha-purist syntax.Prints out the entire program when target system is unspecified.\");\n\t\t\tSystem.out.println(\"Usage: Show(Program prog, String system)\");\n\t\t\tbreak;\n\t\tcase \"Normalize\":\n\t\t\tSystem.out.println(\"Description: Normalizes the program. Normalization rules are described in more detail at: url{http://www.cs.colostate.edu/AlphaZ/wiki/doku.php?id=normalize}.\");\n\t\t\tSystem.out.println(\"Usage: Normalize(Program prog)\");\n\t\t\tbreak;\n\t\tcase \"PrintAST\":\n\t\t\tSystem.out.println(\"Description: Prints out the AST of the program.Prints out the entire program when target system is unspecified.\");\n\t\t\tSystem.out.println(\"Usage: PrintAST(Program prog, String system)\");\n\t\t\tbreak;\n\t\tcase \"ReadAlphabets\":\n\t\t\tSystem.out.println(\"Description: Parses the given alphabets program and returns a Program object.\");\n\t\t\tSystem.out.println(\"Usage: ReadAlphabets(String file)\");\n\t\t\tbreak;\n\t\tcase \"RenameSystem\":\n\t\t\tSystem.out.println(\"Description: Renames an AffineSystem.\");\n\t\t\tSystem.out.println(\"Usage: RenameSystem(Program prog, String system, String newSystemName)\");\n\t\t\tbreak;\n\t\tcase \"RenameVariable\":\n\t\t\tSystem.out.println(\"Description: Renames a variable.\");\n\t\t\tSystem.out.println(\"Usage: RenameVariable(Program prog, String system, String varName, String newVarName)\");\n\t\t\tbreak;\n\t\tcase \"RemoveUnusedVariables\":\n\t\t\tSystem.out.println(\"Description: Removes unused variables and equations. Unused variables are variables that is not used by the definition of output.\");\n\t\t\tSystem.out.println(\"Usage: RemoveUnusedVariables(Program prog, String system)\");\n\t\t\tbreak;\n\t\tcase \"PermutationCaseReduce\":\n\t\t\tSystem.out.println(\"Description: Transformations involving reduce expressions.\");\n\t\t\tSystem.out.println(\"Usage: PermutationCaseReduce()\");\n\t\t\tbreak;\n\t\tcase \"ReductionDecomposition\":\n\t\t\tSystem.out.println(\"Description: Transformations involving reduce expressions.\");\n\t\t\tSystem.out.println(\"Usage: ReductionDecomposition()\");\n\t\t\tbreak;\n\t\tcase \"SimplifyingReduction\":\n\t\t\tSystem.out.println(\"Description: Transformations involving reduce expressions.\");\n\t\t\tSystem.out.println(\"Usage: SimplifyingReduction()\");\n\t\t\tbreak;\n\t\tcase \"NormalizeReduction\":\n\t\t\tSystem.out.println(\"Description: Transformations involving reduce expressions.\");\n\t\t\tSystem.out.println(\"Usage: NormalizeReduction()\");\n\t\t\tbreak;\n\t\tcase \"FactorOutFromReduction\":\n\t\t\tSystem.out.println(\"Description: Transformations involving reduce expressions.\");\n\t\t\tSystem.out.println(\"Usage: FactorOutFromReduction()\");\n\t\t\tbreak;\n\t\tcase \"SplitReductionBody\":\n\t\t\tSystem.out.println(\"Description: Transformations involving reduce expressions.\");\n\t\t\tSystem.out.println(\"Usage: SplitReductionBody()\");\n\t\t\tbreak;\n\t\tcase \"TransformReductionBody\":\n\t\t\tSystem.out.println(\"Description: Transformations involving reduce expressions.\");\n\t\t\tSystem.out.println(\"Usage: TransformReductionBody()\");\n\t\t\tbreak;\n\t\tcase \"SerializeReduction\":\n\t\t\tSystem.out.println(\"Description: Transformations involving reduce expressions.\");\n\t\t\tSystem.out.println(\"Usage: SerializeReduction()\");\n\t\t\tbreak;\n\t\tcase \"MergeReductions\":\n\t\t\tSystem.out.println(\"Description: Transformations involving reduce expressions.\");\n\t\t\tSystem.out.println(\"Usage: MergeReductions()\");\n\t\t\tbreak;\n\t\tcase \"ReductionComposition\":\n\t\t\tSystem.out.println(\"Description: Transformations involving reduce expressions.\");\n\t\t\tSystem.out.println(\"Usage: ReductionComposition()\");\n\t\t\tbreak;\n\t\tcase \"monoparametricTiling_noOutlining\":\n\t\t\tSystem.out.println(\"Description: Commands which parametrize the monoparametric tiling transformation, plus the transformation itself\");\n\t\t\tSystem.out.println(\"Usage: monoparametricTiling_noOutlining()\");\n\t\t\tbreak;\n\t\tcase \"monoparametricTiling_Outlining_noSubsystem\":\n\t\t\tSystem.out.println(\"Description: Commands which parametrize the monoparametric tiling transformation, plus the transformation itself\");\n\t\t\tSystem.out.println(\"Usage: monoparametricTiling_Outlining_noSubsystem()\");\n\t\t\tbreak;\n\t\tcase \"monoparametricTiling_Outlining\":\n\t\t\tSystem.out.println(\"Description: Commands which parametrize the monoparametric tiling transformation, plus the transformation itself\");\n\t\t\tSystem.out.println(\"Usage: monoparametricTiling_Outlining()\");\n\t\t\tbreak;\n\t\tcase \"setRatio\":\n\t\t\tSystem.out.println(\"Description: Commands which parametrize the monoparametric tiling transformation, plus the transformation itself\");\n\t\t\tSystem.out.println(\"Usage: setRatio()\");\n\t\t\tbreak;\n\t\tcase \"setMinParamValues\":\n\t\t\tSystem.out.println(\"Description: Commands which parametrize the monoparametric tiling transformation, plus the transformation itself\");\n\t\t\tSystem.out.println(\"Usage: setMinParamValues()\");\n\t\t\tbreak;\n\t\tcase \"setTileGroup\":\n\t\t\tSystem.out.println(\"Description: Commands which parametrize the monoparametric tiling transformation, plus the transformation itself\");\n\t\t\tSystem.out.println(\"Usage: setTileGroup()\");\n\t\t\tbreak;\n\t\tcase \"setCoBPreprocess\":\n\t\t\tSystem.out.println(\"Description: Commands which parametrize the monoparametric tiling transformation, plus the transformation itself\");\n\t\t\tSystem.out.println(\"Usage: setCoBPreprocess()\");\n\t\t\tbreak;\n\t\tcase \"CoB\":\n\t\t\tSystem.out.println(\"Description: Change of Basis transforms the domain of a variable to the image by the given function, while adding necessary dependence expressions to maintain the original semantics of the program. Details can be found at url{http://www.cs.colostate.edu/AlphaZ/wiki/doku.php?id=change_of_basis}.\");\n\t\t\tSystem.out.println(\"Usage: CoB(Program prog, String systemName, String varName, AffineFunction function)\");\n\t\t\tbreak;\n\t\tcase \"ForceCoB\":\n\t\t\tSystem.out.println(\"Description: Force the change of basis even if the CoB is for input/output of a system.\");\n\t\t\tSystem.out.println(\"Usage: ForceCoB(Program prog, String systemName, String targetName, AffineFunction function)\");\n\t\t\tbreak;\n\t\tcase \"Split\":\n\t\t\tSystem.out.println(\"Description: Splits a variable into two, where the domain of two variables are disjoint and union of them is equivalent to the original domain of the variable.If newName is not given, it creates a variable with prefix \\\"_split\\\" appended to the original name.\");\n\t\t\tSystem.out.println(\"Usage: Split(Program prog, String systemName, String varName, String newName, String sepDomain)\");\n\t\t\tbreak;\n\t\tcase \"Merge\":\n\t\t\tSystem.out.println(\"Description: Merge two variables (of name var1Name and var2Name) into a single one.These variables must both be locals and must have disjoint domains. The name of the merge of these two variables is \\\"newName\\\".\");\n\t\t\tSystem.out.println(\"Usage: Merge(Program prog, String systemName, String var1Name, String var2Name, String newName)\");\n\t\t\tbreak;\n\t\tcase \"Inline\":\n\t\t\tSystem.out.println(\"Description: Inlines the nth(number) reference to inlineEq in the definition of targetEq once. If the number is not specified, all references to inlineEq are inlined.\");\n\t\t\tSystem.out.println(\"Usage: Inline(Program prog, String systemName, String targetEq, String inlineEq, int number)\");\n\t\t\tbreak;\n\t\tcase \"Simplify\":\n\t\t\tSystem.out.println(\"Description: Simplifies the program in multiple ways. The domains are simplified by simplifyInContext (a.k.a. gist). When the domain of a reduction body is a single point, reduction is removed.\");\n\t\t\tSystem.out.println(\"Usage: Simplify(Program prog, String system)\");\n\t\t\tbreak;\n\t\tcase \"createFreeScheduler\":\n\t\t\tSystem.out.println(\"Description: Takes an alphabetes program and converts it to a program that computes the fastest possible schedule (free shcedule).This transformation DOES NOT preserve the original semantics, but instead creates a new Program object.Implemented by Alex Klein as a class project in cs560@spring11\");\n\t\t\tSystem.out.println(\"Usage: createFreeScheduler(Program prog, String newProgPrefix)\");\n\t\t\tbreak;\n\t\tcase \"SplitUnion\":\n\t\t\tSystem.out.println(\"Description: Replace an expression that has unions of polyhedra as its context domain with a case expression that splits the union into multiple disjiont polyhedra.\");\n\t\t\tSystem.out.println(\"Usage: SplitUnion(Program prog, String nodeID)\");\n\t\t\tbreak;\n\t\tcase \"ApplySTMap\":\n\t\t\tSystem.out.println(\"Description: Applies sequence of CoBs using STMap given for each variable.This is identical to the pre-processing step of ScheduledC code generator, where all variables are mapped to a common space so that ordering of iterations can be defined.Assumes correct schedule [TODO:run verifier before applying the transformation once the verifier is fixed]All STMaps and MemoryMaps given for the system will also be transformed appropriately.\");\n\t\t\tSystem.out.println(\"Usage: ApplySTMap(Program prog, String systemName)\");\n\t\t\tbreak;\n\t\tcase \"UniformizeInContext\":\n\t\t\tSystem.out.println(\"Description: Attempts to uniformize all dependencies when possible.\");\n\t\t\tSystem.out.println(\"Usage: UniformizeInContext(Program prog, String system, int excludeInputs)\");\n\t\t\tbreak;\n\t\tcase \"InlineForce\":\n\t\t\tSystem.out.println(\"Description: Force the inline action even if there is a self loop dependence\");\n\t\t\tSystem.out.println(\"Usage: InlineForce(Program prog, String systemName, String targetEq, String inlineEq, int number)\");\n\t\t\tbreak;\n\t\tcase \"InlineAll\":\n\t\t\tSystem.out.println(\"Description: Inline all the possible equation in a system when there is no self loop dependence\");\n\t\t\tSystem.out.println(\"Usage: InlineAll(Program prog, String systemName, String inlineEq)\");\n\t\t\tbreak;\n\t\tcase \"InlineAllForce\":\n\t\t\tSystem.out.println(\"Description: Inline all the possible equations in a system even with self loop dependence once\");\n\t\t\tSystem.out.println(\"Usage: InlineAllForce(Program prog, String systemName, String inlineEq)\");\n\t\t\tbreak;\n\t\tcase \"InlineSubSystem\":\n\t\t\tSystem.out.println(\"Description: Inline the subsystem used by the UseEquation specified by nodeID\");\n\t\t\tSystem.out.println(\"Usage: InlineSubSystem(Program prog, String systemName, String label)\");\n\t\t\tbreak;\n\t\tcase \"OutlineSubSystem\":\n\t\t\tSystem.out.println(\"Description: Outline a list of equations of a given system. These equation are defined through a list of variable (\\\"listEquations\\\") that corresponds to the variable of a StandardEquation or to the output of a UseEquation.[V1] The created use equation will have no extension domain, and only variable expressions as inputs.\");\n\t\t\tSystem.out.println(\"Usage: OutlineSubSystem(Program prog, String system, String listEquations)\");\n\t\t\tbreak;\n\t\tcase \"AddLocal\":\n\t\t\tSystem.out.println(\"Description: Adds a local variable (of name specified by \\\"nameLocal\\\") for the expression \\\"expr\\\" and replace each occurrence of this expression in the considered system.\\\"expr\\\" can be specified through a expression of the system (located in \\\"nodeID\\\"), or through an external expression \\\"expr\\\" whose list of indexes is \\\"lInds\\\".\");\n\t\t\tSystem.out.println(\"Usage: AddLocal(Program prog, String system, String nameLocal, String nodeID)\");\n\t\t\tbreak;\n\t\tcase \"AddLocalUnique\":\n\t\t\tSystem.out.println(\"Description: Replace only the expression (specified by the location \\\"nodeID\\\") by a new local variable (of name \\\"nameLocal\\\").\");\n\t\t\tSystem.out.println(\"Usage: AddLocalUnique(Program prog, String system, String nameLocal, String nodeID)\");\n\t\t\tbreak;\n\t\tcase \"DetectReductions\":\n\t\t\tSystem.out.println(\"Description: Detects simple reductions in the program and exposes as reduce expressions.\");\n\t\t\tSystem.out.println(\"Usage: DetectReductions(Program prog, String system)\");\n\t\t\tbreak;\n\t\tcase \"reduceDimVariable\":\n\t\t\tSystem.out.println(\"Description: Use the equalities of the domain of the specified variable in order to reduce its number of dimension.Perform the corresponding change of basis and return the affine function used in this CoB.\");\n\t\t\tSystem.out.println(\"Usage: reduceDimVariable(Program prog, String syst, String varName)\");\n\t\t\tbreak;\n\t\tcase \"alignDimVariable\":\n\t\t\tSystem.out.println(\"Description: Align the bounding box of the domain of a variable with the point vec{0}, by using a translation.Note: might not work if the lower bound is not an affine functionReturn the affine function used to perform the translation.\");\n\t\t\tSystem.out.println(\"Usage: alignDimVariable(Program prog, String syst, String varName)\");\n\t\t\tbreak;\n\t\tcase \"generateScheduledCode\":\n\t\t\tSystem.out.println(\"Description: Generates scheduledC code for a system using the TargetMapping specified for the system.Detailed options can be given through optional argument.\");\n\t\t\tSystem.out.println(\"Usage: generateScheduledCode(Program prog, String system, CodeGenOptions options, String outDir, Boolean genVerifier)\");\n\t\t\tbreak;\n\t\tcase \"generateWriteC\":\n\t\t\tSystem.out.println(\"Description: Generates WriteC code for a system.TargetMapping is ignored except for MemoryMapping given for output variables.Detailed options can be given through optional argument.\");\n\t\t\tSystem.out.println(\"Usage: generateWriteC(Program prog, String system, CodeGenOptions options, String outDir)\");\n\t\t\tbreak;\n\t\tcase \"generateWrapper\":\n\t\t\tSystem.out.println(\"Description: Generates a wrapper code for the given sytem using the specified TargetMapping.\");\n\t\t\tSystem.out.println(\"Usage: generateWrapper(Program prog, String system, CodeGenOptions options, String outDir)\");\n\t\t\tbreak;\n\t\tcase \"generateVerificationCode\":\n\t\t\tSystem.out.println(\"Description: Generates code for verifying generated program. The code is generated using demand-driven code generator (WriteC).\");\n\t\t\tSystem.out.println(\"Usage: generateVerificationCode(Program prog, String system, String outDir)\");\n\t\t\tbreak;\n\t\tcase \"generateMakefile\":\n\t\t\tSystem.out.println(\"Description: Generates Makefile to compile generated code + wrapper.\");\n\t\t\tSystem.out.println(\"Usage: generateMakefile(Program prog, String system, CodeGenOptions CodeGenOptions, String outDir)\");\n\t\t\tbreak;\n\t\tcase \"createCGOptionForWriteC\":\n\t\t\tSystem.out.println(\"Description: Creates instance of CodeGenOptions for WriteC using default values.\");\n\t\t\tSystem.out.println(\"Usage: createCGOptionForWriteC()\");\n\t\t\tbreak;\n\t\tcase \"createCGOptionForScheduledC\":\n\t\t\tSystem.out.println(\"Description: Creates instance of CodeGenOptions for ScheduledC using default values.\");\n\t\t\tSystem.out.println(\"Usage: createCGOptionForScheduledC()\");\n\t\t\tbreak;\n\t\tcase \"createCGOptionForHybridScheduledCGPU\":\n\t\t\tSystem.out.println(\"Description: Creates instance of CodeGenOptions for Hybrid ScheduledC for GPU using dimToInsertChecks to insert checks.\");\n\t\t\tSystem.out.println(\"Usage: createCGOptionForHybridScheduledCGPU(int dimToInsertChecks)\");\n\t\t\tbreak;\n\t\tcase \"createCGOptionForHybridScheduledC\":\n\t\t\tSystem.out.println(\"Description: Creates instance of CodeGenOptions for Hybrid ScheduledC using dimToInsertChecks to insert checks.\");\n\t\t\tSystem.out.println(\"Usage: createCGOptionForHybridScheduledC(int dimToInsertChecks)\");\n\t\t\tbreak;\n\t\tcase \"setCGOptionFlattenArrays\":\n\t\t\tSystem.out.println(\"Description: Specifies true/false (1/0) values for if the multi-dimensional arrays allocated should be flattened to 1D or not.\");\n\t\t\tSystem.out.println(\"Usage: setCGOptionFlattenArrays(CodeGenOptions CGoptions, int flatten)\");\n\t\t\tbreak;\n\t\tcase \"setCGOptionDisableNormalize_depreciated\":\n\t\t\tSystem.out.println(\"Description: Options to skip Normalize before generating code with the ScheduleC code generator.This is an option added as an workaround to scalability problems with Normalize, and will be removed in the future.Not normalizing may lead to significantly inefficient code.\");\n\t\t\tSystem.out.println(\"Usage: setCGOptionDisableNormalize_depreciated(CodeGenOptions options)\");\n\t\t\tbreak;\n\t\tcase \"createTiledCGOptionForScheduledC\":\n\t\t\tSystem.out.println(\"Description: Creates instance of CodeGenOptions for ScheduledC using default values for tiling.\");\n\t\t\tSystem.out.println(\"Usage: createTiledCGOptionForScheduledC()\");\n\t\t\tbreak;\n\t\tcase \"createCGOptionsForPCOT\":\n\t\t\tSystem.out.println(\"Description: Creates instance of CodeGenOptions for PCOTC using default values for tiling.\");\n\t\t\tSystem.out.println(\"Usage: createCGOptionsForPCOT()\");\n\t\t\tbreak;\n\t\tcase \"setTiledCGOptionOptimize\":\n\t\t\tSystem.out.println(\"Description: Applies optimizations to the tiled code generated using full-tile splitting of a selected statement group.Statement group is selected with heuristics that may not be accurate.\");\n\t\t\tSystem.out.println(\"Usage: setTiledCGOptionOptimize(TiledCodeGenOptions options, int optimize)\");\n\t\t\tbreak;\n\t\tcase \"generateScanC\":\n\t\t\tSystem.out.println(\"Description: code generator for a scan subsystem ( a subsystem that contains only scan computations)\");\n\t\t\tSystem.out.println(\"Usage: generateScanC(Program prog, String systemName, CodeGenOptions options, String outDir)\");\n\t\t\tbreak;\n\t\tcase \"generatePCOTCode\":\n\t\t\tSystem.out.println(\"Description: CPU code generator for Polyhedral Cache Oblivious Tiling\");\n\t\t\tSystem.out.println(\"Usage: generatePCOTCode(Program prog, String system, TiledCodeGenOptions options, String outDir, Boolean genVerifier)\");\n\t\t\tbreak;\n\t\tcase \"generateFMPPCode\":\n\t\t\tSystem.out.println(\"Description: generate code using the flattened multi-pass tiling and parallelization strategy\");\n\t\t\tSystem.out.println(\"Usage: generateFMPPCode(Program prog, String systemName, String TilingType, TiledCodeGenOptions CodeGenOptions, String outDir)\");\n\t\t\tbreak;\n\t\tcase \"setVecOptionForTiledC\":\n\t\t\tSystem.out.println(\"Description: Turn on the vectorization option for TiledC. Right now it is only open for DTiler -- Where only 1 level of tiling is applied and all dimensions are tiled.Four types of vectorization strategy is supported: naive, opt nobuff -- optimized vectorization strategy without temporary buffering, all aligned -- optimized vectorization strategy with temporary buffering and all vectors aligned, mostly aligned -- optimized vectorization strategy with temporary buffering and mostly aligned strategy. The default strategy is set to be \\\"opt nobuff\\\".Register block size only corresponds to the data dimensions of stencil computations, the default register block size is set to unroll the innermost vectorized dimension 4 times. \");\n\t\t\tSystem.out.println(\"Usage: setVecOptionForTiledC(TiledCodeGenOptions options, String vecSet, String vecStrategy, String registerBlockSize)\");\n\t\t\tbreak;\n\t\tcase \"setVecVarsForTiledC\":\n\t\t\tSystem.out.println(\"Description: Set the variables for vectorization. All the variable statement must occur under the same innermost loop nest. \");\n\t\t\tSystem.out.println(\"Usage: setVecVarsForTiledC(Program prog, String systemName, TiledCodeGenOptions options, String vars)\");\n\t\t\tbreak;\n\t\tcase \"setVecVarForTiledC\":\n\t\t\tSystem.out.println(\"Usage: setVecVarForTiledC(Program prog, String systemName, TiledCodeGenOptions options, String var, String domain)\");\n\t\t\tbreak;\n\t\tcase \"addRecursionDepthForPCOT\":\n\t\t\tSystem.out.println(\"Description: Generates code with recursion depth as an input parameter.\");\n\t\t\tSystem.out.println(\"Usage: addRecursionDepthForPCOT(TiledCodeGenOptions options)\");\n\t\t\tbreak;\n\t\tcase \"readDomain\":\n\t\t\tSystem.out.println(\"Description: Reads domain in String and returns a Domain object.\");\n\t\t\tSystem.out.println(\"Usage: readDomain(Domain paramDomain, String domain)\");\n\t\t\tbreak;\n\t\tcase \"readFunction\":\n\t\t\tSystem.out.println(\"Description: Reads affine function in String and returns an AffineFunction object.\");\n\t\t\tSystem.out.println(\"Usage: readFunction(Domain paramDomain, String function)\");\n\t\t\tbreak;\n\t\tcase \"inverse\":\n\t\t\tSystem.out.println(\"Description: Compute the inverse of the give affine function.\");\n\t\t\tSystem.out.println(\"Usage: inverse(AffineFunction function)\");\n\t\t\tbreak;\n\t\tcase \"inverseInContext\":\n\t\t\tSystem.out.println(\"Description: Computes inverse of the given affine function, in the context of the given domain.\");\n\t\t\tSystem.out.println(\"Usage: inverseInContext(Domain domain, AffineFunction function)\");\n\t\t\tbreak;\n\t\tcase \"compose\":\n\t\t\tSystem.out.println(\"Description: Returns a function, that computes function2@function1.\");\n\t\t\tSystem.out.println(\"Usage: compose(AffineFunction function1, AffineFunction function2)\");\n\t\t\tbreak;\n\t\tcase \"intersection\":\n\t\t\tSystem.out.println(\"Description: Returns the intersection of two domains given.\");\n\t\t\tSystem.out.println(\"Usage: intersection(Domain domain1, Domain domain2)\");\n\t\t\tbreak;\n\t\tcase \"union\":\n\t\t\tSystem.out.println(\"Description: Returns the union of two domains given.\");\n\t\t\tSystem.out.println(\"Usage: union(Domain domain1, Domain domain2)\");\n\t\t\tbreak;\n\t\tcase \"join\":\n\t\t\tSystem.out.println(\"Description: Returns a function that computes function1@function2.\");\n\t\t\tSystem.out.println(\"Usage: join(AffineFunction function1, AffineFunction function2)\");\n\t\t\tbreak;\n\t\tcase \"isEmpty\":\n\t\t\tSystem.out.println(\"Description: Returns true if the domain is empty.\");\n\t\t\tSystem.out.println(\"Usage: isEmpty(Domain domain)\");\n\t\t\tbreak;\n\t\tcase \"isEquivalent\":\n\t\t\tSystem.out.println(\"Description: Returns true if the two domains/functions given are equivalent.\");\n\t\t\tSystem.out.println(\"Usage: isEquivalent(Domain domainA, Domain domainB)\");\n\t\t\tbreak;\n\t\tcase \"image\":\n\t\t\tSystem.out.println(\"Description: Compute the image of the given domain by the given function.\");\n\t\t\tSystem.out.println(\"Usage: image(AffineFunction function, Domain domain)\");\n\t\t\tbreak;\n\t\tcase \"preImage\":\n\t\t\tSystem.out.println(\"Description: Compute the pre-image of the given domain by the given function.\");\n\t\t\tSystem.out.println(\"Usage: preImage(AffineFunction function, Domain domain)\");\n\t\t\tbreak;\n\t\tcase \"difference\":\n\t\t\tSystem.out.println(\"Description: Returns domainA / domainB.\");\n\t\t\tSystem.out.println(\"Usage: difference(Domain domainA, Domain domainB)\");\n\t\t\tbreak;\n\t\tcase \"simplifyInContext\":\n\t\t\tSystem.out.println(\"Description: Takes domain and context domain, and returns the domain with constraints that are redundant with the context removed.\");\n\t\t\tSystem.out.println(\"Usage: simplifyInContext(Domain domain, Domain context)\");\n\t\t\tbreak;\n\t\tcase \"BuildPRDG\":\n\t\t\tSystem.out.println(\"Description: Constructs a PRDG for the specified AffineSystem. Input variables are excluded from the PRDG default. To override this option, set the optional argument noInput to 0.\");\n\t\t\tSystem.out.println(\"Usage: BuildPRDG(Program prog, String systemName, int noInputs)\");\n\t\t\tbreak;\n\t\tcase \"ExportPRDG\":\n\t\t\tSystem.out.println(\"Description: Exports the given PRDG as a dot file.\");\n\t\t\tSystem.out.println(\"Usage: ExportPRDG(PRDG prdg, String filename)\");\n\t\t\tbreak;\n\t\tcase \"CheckProgram\":\n\t\t\tSystem.out.println(\"Description: Performs uniqueness and completeness check of the program.The program is a valid alphabets program, if it passes this check.Details of the check can be found at url{http://www.cs.colostate.edu/AlphaZ/wiki/doku.php?id=check_program}.\");\n\t\t\tSystem.out.println(\"Usage: CheckProgram(Program prog)\");\n\t\t\tbreak;\n\t\tcase \"VerifyTargetMapping\":\n\t\t\tSystem.out.println(\"Description: Verifies the target mapping given to a system. The third input takes \\\"NONE\\\", \\\"MIN\\\", \\\"MAX\\\" to control the verbosity.\");\n\t\t\tSystem.out.println(\"Usage: VerifyTargetMapping(Program prog, String system, String verbose)\");\n\t\t\tbreak;\n\t\tcase \"CheckSystem\":\n\t\t\tSystem.out.println(\"Description: CheckSystem is CheckProgram applied to the specified system.\");\n\t\t\tSystem.out.println(\"Usage: CheckSystem(Program prog, String system)\");\n\t\t\tbreak;\n\t\tcase \"Farkas1DScheduler\":\n\t\t\tSystem.out.println(\"Description: Farkas mono-dimensional scheduler.\");\n\t\t\tSystem.out.println(\"Usage: Farkas1DScheduler(PRDG prdg)\");\n\t\t\tbreak;\n\t\tcase \"FarkasMDScheduler\":\n\t\t\tSystem.out.println(\"Description: Farkas multi-dimensional scheduler. Uses ISL implementation.\");\n\t\t\tSystem.out.println(\"Usage: FarkasMDScheduler(PRDG prdg)\");\n\t\t\tbreak;\n\t\tcase \"PlutoScheduler\":\n\t\t\tSystem.out.println(\"Description: Pluto scheduler. Uses implementation in ISL.\");\n\t\t\tSystem.out.println(\"Usage: PlutoScheduler(PRDG prdg)\");\n\t\t\tbreak;\n\t\tcase \"setSpaceTimeMap\":\n\t\t\tSystem.out.println(\"Description: Specifies a space time mapping of a variable at a certain level. By default (when there is no value for level), the space-time map is set up for the first level of targetMapping.\");\n\t\t\tSystem.out.println(\"Usage: setSpaceTimeMap(Program prog, String system, int level, String varList, AffineFunction stMap)\");\n\t\t\tbreak;\n\t\tcase \"setMemoryMap\":\n\t\t\tSystem.out.println(\"Description: Specifies a memory map for a variable. Some variables may share the same meory map and memory space, then they can be set up using one command by providing a list of variables. \");\n\t\t\tSystem.out.println(\"Usage: setMemoryMap(Program prog, String system, String varList, String memorySpace, AffineFunction memoryMap, String modFactors)\");\n\t\t\tbreak;\n\t\tcase \"setMemorySpace\":\n\t\t\tSystem.out.println(\"Description: Specifies the memory space for a variable. Normally, each variable has a separate memory space. However, some variables may share the same memory space, and this can be set up once by providing a list of variable.\");\n\t\t\tSystem.out.println(\"Usage: setMemorySpace(Program prog, String system, String space, String varList)\");\n\t\t\tbreak;\n\t\tcase \"setStatementOrdering\":\n\t\t\tSystem.out.println(\"Description: Specifies the ordering of the statements (alphabets variables) in the generated code. This is similar to adding an additional ordering dimensions to the last dimension of space-time mapping, and providing ordering information.AlphaZ provides an alternative to such specification by allowing the user to specify partial orderings between statements.A total order is deduced at the time of code generation.\");\n\t\t\tSystem.out.println(\"Usage: setStatementOrdering(Program prog, String system, String predecessor, String successor)\");\n\t\t\tbreak;\n\t\tcase \"listSpaceTimeMaps\":\n\t\t\tSystem.out.println(\"Description: Lists all SpaceTime maps that have been specified for a system.\");\n\t\t\tSystem.out.println(\"Usage: listSpaceTimeMaps(Program prog, String system, int level)\");\n\t\t\tbreak;\n\t\tcase \"listMemoryMaps\":\n\t\t\tSystem.out.println(\"Description: Lists all memory mappings specified for a system.\");\n\t\t\tSystem.out.println(\"Usage: listMemoryMaps(Program prog, String system)\");\n\t\t\tbreak;\n\t\tcase \"setSchedule\":\n\t\t\tSystem.out.println(\"Description: Applies schedules found by a scheduler (such as Farkas scheduler) to target mapping.\");\n\t\t\tSystem.out.println(\"Usage: setSchedule(Program prog, String system, List<ScheduledStatement> schedules)\");\n\t\t\tbreak;\n\t\tcase \"setParallel\":\n\t\t\tSystem.out.println(\"Description: Specify the parallel dimensions for a system. The nth dimension (specified by parallelDims, start with zero) with the specified ordering prefix to be parallel.\");\n\t\t\tSystem.out.println(\"Usage: setParallel(Program prog, String system, int level, String orderingPrefix, String parallelDims)\");\n\t\t\tbreak;\n\t\tcase \"CreateSpaceTimeLevel\":\n\t\t\tSystem.out.println(\"Description: Create a spacetimelevel data stucture for level (level)\");\n\t\t\tSystem.out.println(\"Usage: CreateSpaceTimeLevel(Program prog, String system, int level)\");\n\t\t\tbreak;\n\t\tcase \"setOrderingDimensions\":\n\t\t\tSystem.out.println(\"Description: specify which dimension is the ordering dimension for each level of the targetMapping. Dimension starts with zero. If no value is specified for the targetMapping level, it is the first level by default. \");\n\t\t\tSystem.out.println(\"Usage: setOrderingDimensions(Program prog, String system, int level, String dims)\");\n\t\t\tbreak;\n\t\tcase \"setSpaceTimeMapForMemoryAllocation\":\n\t\t\tSystem.out.println(\"Description: set space time map for the memory allocation statement for the input/output of the use equation.isInput -- 0: for nTh input of the use equaitonisInput -- 1: for nTh output of the use equation\");\n\t\t\tSystem.out.println(\"Usage: setSpaceTimeMapForMemoryAllocation(Program prog, String system, String label, int isInput, int num, AffineFunction stMap)\");\n\t\t\tbreak;\n\t\tcase \"setSpaceTimeMapForValueCopy\":\n\t\t\tSystem.out.println(\"Description: set the space time map for the value copy statement for input/output of a use equation\");\n\t\t\tSystem.out.println(\"Usage: setSpaceTimeMapForValueCopy(Program prog, String system, String label, int isInput, int num, AffineFunction stMap)\");\n\t\t\tbreak;\n\t\tcase \"setSpaceTimeMapForMemoryFree\":\n\t\t\tSystem.out.println(\"Description: set the space time map for the memory free statement for the input/ouput of a useEquation.isInput -- 0, for the input of the useEquationisInput -- 1, for the output of the useEquation\");\n\t\t\tSystem.out.println(\"Usage: setSpaceTimeMapForMemoryFree(Program prog, String system, String label, int isInput, int num, AffineFunction stMap)\");\n\t\t\tbreak;\n\t\tcase \"setSpaceTimeMapForUseEquationOptimization\":\n\t\t\tSystem.out.println(\"Description: set the space time map for the memory allocation, value copy, memory allocation statement for the input/output of the useEuqation.isInput -- 0: for the input of the useEquationisInput -- 1: for the output of the useEquation\");\n\t\t\tSystem.out.println(\"Usage: setSpaceTimeMapForUseEquationOptimization(Program prog, String system, String label, int isInput, int num, AffineFunction stMapForMemoryAllocation, AffineFunction stMapForValueCopy, AffineFunction stMapForMemoryFree)\");\n\t\t\tbreak;\n\t\tcase \"setMemorySpaceForUseEquationOptimization\":\n\t\t\tSystem.out.println(\"Description: set memory space for the input/ouput of the useEquation\");\n\t\t\tSystem.out.println(\"Usage: setMemorySpaceForUseEquationOptimization(Program prog, String system, String label, int isInput, int num, String spaceName)\");\n\t\t\tbreak;\n\t\tcase \"setBandForTiling\":\n\t\t\tSystem.out.println(\"Description: configure a band of continuous dimensions for tiling.\");\n\t\t\tSystem.out.println(\"Usage: setBandForTiling(Program prog, String system, String bandName, int levels, String orderingPrefix, int startDim, int endDim)\");\n\t\t\tbreak;\n\t\tcase \"setSubTilingWithinBand\":\n\t\t\tSystem.out.println(\"Description: Configure the subtiling specification for a band. The band is identified by the name. There are two types of tiling type: sequential and openmp wavefront. Represented with \\\"sequential\\\" and \\\"wavefront\\\" separately.\");\n\t\t\tSystem.out.println(\"Usage: setSubTilingWithinBand(Program prog, String system, String bandName, int level, int startDim, int endDim, String tilingType)\");\n\t\t\tbreak;\n\t\tcase \"setDefaultDTilerConfiguration\":\n\t\t\tSystem.out.println(\"Description: Set up the default configuration for dtiler: apply parametric one level tiling to all the dimensions from [start to end].\");\n\t\t\tSystem.out.println(\"Usage: setDefaultDTilerConfiguration(Program prog, String system, int startDim, int endDim, String tilingType)\");\n\t\t\tbreak;\n\t\tcase \"history\":\n\t\t\tSystem.out.println(\"Description: Print out command history so far.\");\n\t\t\tSystem.out.println(\"Usage: history()\");\n\t\t\tSystem.out.println(\"Usage: history(int n)\");\n\t\t\tbreak;\n\t\tcase \"searchHistory\":\n\t\t\tSystem.out.println(\"Description: Search History for a particular pattern - can be a regex.\");\n\t\t\tSystem.out.println(\"Usage: searchHistory(String pattern)\");\n\t\t\tbreak;\n\t\tcase \"undo\":\n\t\t\tSystem.out.println(\"Descrgiption: Undo n times, default 1.\");\n\t\t\tSystem.out.println(\"Usage: undo()\");\n\t\t\tSystem.out.println(\"Usage: undo(int n)\");\n\t\t\tbreak;\n\t\tcase \"redo\":\n\t\t\tSystem.out.println(\"Descrgiption: Redo n times, default 1.\");\n\t\t\tSystem.out.println(\"Usage: redo()\");\n\t\t\tSystem.out.println(\"Usage: redo(int n)\");\n\t\t\tbreak;\n\t\tcase \"printTransform\":\n\t\t\tSystem.out.println(\"Description: Print the effective transformation carried out on the program so far, after a long sequence of actions.\");\n\t\t\tSystem.out.println(\"Usage: printTransform()\");\n\t\t\tbreak;\n\t\tcase \"delVar\":\n\t\t\tSystem.out.println(\"Description: Removes variable from context. If you ask to remove program from context, it's undo/redo history will also be erased.\");\n\t\t\tSystem.out.println(\"Usage: delVar(String varName)\");\n\t\t\tbreak;\n\t\tcase \"clear\":\n\t\t\tSystem.out.println(\"Description: Clears the symbol table, program, and undo/redo history\");\n\t\t\tSystem.out.println(\"Usage: clear()\");\n\t\t\tbreak;\n\t\tcase \"help\":\n\t\t\tSystem.out.println(\"Description: Prints help messages for commands.\");\n\t\t\tSystem.out.println(\"Usage: help(String funcName)\");\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.out.println(\"No relevant documentation found\");\n\t\t}\n\t}", "private void printHelp() \n {\n Logger.Log(\"You have somehow ended up in this strange, magical land. But really you just want to go home.\");\n Logger.Log(\"\");\n Logger.Log(\"Your command words are:\");\n parser.showCommands();\n Logger.Log(\"You may view your inventory or your companions\");\n }", "private void help() {\n HelpFormatter formater = new HelpFormatter();\n\n formater.printHelp(\"Main\", options);\n System.exit(0);\n }", "public static void main(String[] args) {\n\t\tDisplayInfo displayInfo=new DisplayInfo();\n\t\tdisplayInfo.studentName(\"Surabhi\");\n\t\tdisplayInfo.display();\n\t}", "private static void usage()\n {\n System.out.println(\"Lex\");\n System.exit(-1);\n }", "public static void usage() {\n System.out.println(\"Usage: java <java-class> [-d] [-m <value>] FILENAME\");\n System.out.println(\"\\t -d \\t\\t Enable debug mode.\");\n System.out.println(\"\\t -m <value>\\t Set the maximum random value \" + \n \"to a specific integer value.\");\n System.out.println(\"\\t -n <value>\\t Set the number of iterations \" + \n \"for the test.\");\n System.out.println(\"\\n\");\n System.exit(1);\n }", "private static void printHelp(CmdLineParser parser) {\n\tSystem.out.print(\"Usage: Main \");\n\tparser.printSingleLineUsage(System.out);\n\tSystem.out.println(\"\\n\");\n\tparser.printUsage(System.out);\n\tSystem.out.println(\"\");\n\treturn;\n }", "@Override\r\n public final void display() {\r\n System.out.println(\"\\n\\t===============================================================\");\r\n System.out.println(\"\\tEnter the letter associated with one of the following commands:\");\r\n \r\n for (String[] menuItem : HelpMenuView.menuItems) {\r\n System.out.println(\"\\t \" + menuItem[0] + \"\\t\" + menuItem[1]);\r\n }\r\n System.out.println(\"\\t===============================================================\\n\");\r\n }", "public static void help() {\n System.out.println(line(\"*\", 80));\n System.out.println(\"SUPPORTED COMMANDS\");\n System.out.println(\"All commands below are case insensitive\");\n System.out.println();\n System.out.println(\"\\tSELECT * FROM table_name; Display all records in the table.\");\n System.out.println(\"\\tSELECT * FROM table_name WHERE rowid = <value>; Display records whose rowid is <id>.\");\n System.out.println(\"\\tDROP TABLE table_name; Remove table data and its schema.\");\n System.out.println(\"\\tVERSION; Show the program version.\");\n System.out.println(\"\\tHELP; Show this help information\");\n System.out.println(\"\\tEXIT; Exit the program\");\n System.out.println();\n System.out.println();\n System.out.println(line(\"*\", 80));\n }", "public void use() {//Sample use for book- reading, use command 'use book' to use it\n\t\tSystem.out.println(\"Here is a book for you: Quiddich through the ages; hope you enjoy!\");\n\t}", "private static void printHelp() {\n getConsole().println(\"Keycheck\\n\" +\n \"\\n\" +\n \"Usage:\\n\" +\n \" keycheck.jar parameter1 parameter2 ... file1 file2 ...\\n\" +\n \"Example:\\n\" +\n \" java -jar keycheck.jar -\" + PARAMETER_BASE + \" -\" + PARAMETER_BITS + \" file1.csv file2.csv\" +\n \"\\n\" +\n \"Parameters:\\n\" +\n \" -\" + PARAMETER_GENERATE + \" [512|1024] Generate \" + GENERATED_KEY_COUNT + \" keys\\n\" +\n \" -\" + PARAMETER_NEW_FORMAT + \" New format will be use to load keys from file\\n\" +\n \" -\" + PARAMETER_TRANSFORM + \" Transform all keys to new format to file 'CARD_ICSN.csv'\\n\" +\n \" -\" + PARAMETER_BASE + \" Check base stats of keys\\n\" +\n \" -\" + PARAMETER_BITS + \" Generate statistics for all bits\\n\" +\n \" -\" + PARAMETER_BYTES + \" Generate statistics for all bytes\\n\" +\n \" -\" + PARAMETER_DIFFERENCE + \" Check primes difference\\n\" +\n \" -\" + PARAMETER_STRENGTH + \" Check primes strength\\n\" +\n \" -\" + PARAMETER_TIME + \" Generate time statistics\\n\" +\n \" -\" + PARAMETER_ALL + \" Generate all statistics and check all tests.\\n\");\n }", "public static void help() {\n\n\t\tSystem.out.println(\"--help--Input format should be as below\" + \n\t\t \"\\njava -jar passgen.jar -l\" + \n\t\t\t\t \"\\n\" +\n\t\t\t\t \"\\njava -jar passgen.jar -l\" + \"\\n(where l= length of password)\" + \n\t\t\t\t \"\\n\");\n\n\t}" ]
[ "0.8072755", "0.7635048", "0.75520873", "0.7520159", "0.7397508", "0.73140615", "0.7221991", "0.7198871", "0.71928096", "0.7157005", "0.71557325", "0.71511567", "0.7130792", "0.7105829", "0.71018654", "0.7075553", "0.70706743", "0.7009013", "0.6973564", "0.6963003", "0.69505566", "0.6915825", "0.6894958", "0.688393", "0.6869267", "0.68566006", "0.68553406", "0.6764509", "0.6743804", "0.6732459", "0.67276394", "0.67024994", "0.6670795", "0.66536653", "0.66520524", "0.66394114", "0.66182053", "0.6542384", "0.6538668", "0.6523085", "0.651826", "0.6500769", "0.6483217", "0.64778197", "0.64746684", "0.64329284", "0.64215755", "0.6405202", "0.6395113", "0.638067", "0.6376248", "0.63690126", "0.6366973", "0.6340097", "0.6336841", "0.63366914", "0.6298488", "0.6294898", "0.62894374", "0.6259055", "0.6226493", "0.6223846", "0.62193745", "0.62164634", "0.62114406", "0.62036157", "0.6196764", "0.6194949", "0.6183311", "0.6176751", "0.61620325", "0.6147933", "0.61436194", "0.6142975", "0.613192", "0.6126869", "0.61086327", "0.6093383", "0.6087655", "0.608529", "0.6080488", "0.607435", "0.6070619", "0.60634077", "0.60630065", "0.6045474", "0.6044358", "0.6041225", "0.6032709", "0.60316247", "0.60289735", "0.60269284", "0.60247165", "0.60131323", "0.6006504", "0.60043406", "0.5998699", "0.59896886", "0.59884745", "0.5982621" ]
0.8162893
0
Create contents of the view part.
@Override public void createPartControl(Composite parent) { Composite container = new Composite(parent, SWT.NONE); container.setLayout(new FillLayout(SWT.HORIZONTAL)); architectureCanvas = new ArchitectureCanvas(container, SWT.DOUBLE_BUFFERED); createActions(); initializeToolBar(); initializeMenu(); CadmosUi.getInstance() .addListener(cadmosEditorSelectionChangedListener); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void createContents() {\n\n\t}", "private void createContents() {\n\t\tshlEditionRussie = new Shell(getParent(), getStyle());\n\t\tshlEditionRussie.setSize(470, 262);\n\t\tshlEditionRussie.setText(\"Edition r\\u00E9ussie\");\n\t\t\n\t\tLabel lblLeFilm = new Label(shlEditionRussie, SWT.NONE);\n\t\tlblLeFilm.setBounds(153, 68, 36, 15);\n\t\tlblLeFilm.setText(\"Le film\");\n\t\t\n\t\tLabel lblXx = new Label(shlEditionRussie, SWT.NONE);\n\t\tlblXx.setBounds(195, 68, 21, 15);\n\t\tlblXx.setText(\"\" + getViewModel());\n\t\t\n\t\tLabel lblABient = new Label(shlEditionRussie, SWT.NONE);\n\t\tlblABient.setText(\"a bien \\u00E9t\\u00E9 modifi\\u00E9\");\n\t\tlblABient.setBounds(222, 68, 100, 15);\n\t\t\n\t\tButton btnRevenirLa = new Button(shlEditionRussie, SWT.NONE);\n\t\tbtnRevenirLa.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tm_Infrastructure.runController(shlEditionRussie, ListMoviesController.class);\n\t\t\t}\n\t\t});\n\t\tbtnRevenirLa.setBounds(153, 105, 149, 25);\n\t\tbtnRevenirLa.setText(\"Revenir \\u00E0 la liste des films\");\n\n\t}", "protected void createContents() {\n\t\tsetText(\"Muokkaa asiakastietoja\");\n\t\tsetSize(800, 550);\n\n\t}", "ViewComponentPart createViewComponentPart();", "protected void createContents() {\r\n\t\tsetText(Messages.getString(\"HMS.PatientManagementShell.title\"));\r\n\t\tsetSize(900, 700);\r\n\r\n\t}", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"SWT Application\");\r\n\r\n\t}", "protected void createContents() {\n\t\tsetText(\"SWT Application\");\n\t\tsetSize(656, 296);\n\n\t}", "protected void createContents() {\r\n\t\tsetText(\"SWT Application\");\r\n\t\tsetSize(450, 300);\r\n\r\n\t}", "protected void createContents() {\n\t\tsetText(\"SWT Application\");\n\t\tsetSize(437, 529);\n\n\t}", "protected void createContents() {\n\t\tsetText(\"SWT Application\");\n\t\tsetSize(838, 649);\n\n\t}", "private void buildView() {\n this.setHeaderInfo(model.getHeaderInfo());\n\n CWButtonPanel buttonPanel = this.getButtonPanel();\n \n buttonPanel.add(saveButton);\n buttonPanel.add(saveAndCloseButton);\n buttonPanel.add(cancelButton);\n \n FormLayout layout = new FormLayout(\"pref, 4dlu, 200dlu, 4dlu, min\",\n \"pref, 2dlu, pref, 2dlu, pref, 2dlu, pref\"); // rows\n\n layout.setRowGroups(new int[][]{{1, 3, 5}});\n \n CellConstraints cc = new CellConstraints();\n this.getContentPanel().setLayout(layout);\n \n this.getContentPanel().add(nameLabel, cc.xy (1, 1));\n this.getContentPanel().add(nameTextField, cc.xy(3, 1));\n this.getContentPanel().add(descLabel, cc.xy(1, 3));\n this.getContentPanel().add(descTextField, cc.xy(3, 3));\n this.getContentPanel().add(amountLabel, cc.xy(1, 5));\n this.getContentPanel().add(amountTextField, cc.xy(3, 5));\n }", "public Content createContent();", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(447, 310);\n\t\tshell.setText(\"Verisure ASCII Node\");\n\t\tshell.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tTabFolder tabFolder = new TabFolder(shell, SWT.NONE);\n\t\t\n\t\tTabItem basicItem = new TabItem(tabFolder, SWT.NONE);\n\t\tbasicItem.setText(\"Basic\");\n\t\t\n\t\tComposite basicComposite = new Composite(tabFolder, SWT.NONE);\n\t\tbasicItem.setControl(basicComposite);\n\t\tbasicComposite.setLayout(null);\n\t\t\n\t\tButton btnDelMeasurments = new Button(basicComposite, SWT.NONE);\n\t\t\n\t\tbtnDelMeasurments.setToolTipText(\"Delete the measurements from the device.\");\n\t\tbtnDelMeasurments.setBounds(269, 192, 159, 33);\n\t\tbtnDelMeasurments.setText(\"Delete measurements\");\n\t\t\n\t\tButton btnGetMeasurement = new Button(basicComposite, SWT.NONE);\n\t\tbtnGetMeasurement.setToolTipText(\"Get the latest measurement from the device.\");\n\t\t\n\t\tbtnGetMeasurement.setBounds(0, 36, 159, 33);\n\t\tbtnGetMeasurement.setText(\"Get new bloodvalue\");\n\t\t\n\t\tfinal StyledText receiveArea = new StyledText(basicComposite, SWT.BORDER | SWT.WRAP);\n\t\treceiveArea.setLocation(167, 30);\n\t\treceiveArea.setSize(259, 92);\n\t\treceiveArea.setToolTipText(\"This is where the measurement will be displayd.\");\n\t\t\n\t\tButton btnBase64 = new Button(basicComposite, SWT.RADIO);\n\t\tbtnBase64.setToolTipText(\"Show the latest blood value (base64 encoded).\");\n\t\tbtnBase64.setFont(SWTResourceManager.getFont(\"Cantarell\", 9, SWT.NORMAL));\n\t\t\n\t\tbtnDelMeasurments.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent arg0){\n\t\t\t\treceiveArea.setText(\"Deleting measurements, please wait...\");\n\n\t\t\t}\n\t\t\tpublic void mouseUp(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t\tRest rest = new Rest();\n\t\t\t\tXBNConnection db = new XBNConnection();\n\t\t\t\tString theText = \"DEL\";\n\t\t\t\tdo {\n\t\t\t\t\t// System.out.println(\"Längded på theText i restCallImpl \"+theText.length()\n\t\t\t\t\t// +\" och det står \" +theText);\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\t//System.out.println(\"Hej\");\n\n\t\t\t\t\t\t//rest.doPut(\"lol\");\n\t\t\t\t\t\trest.doPut(theText);\n\t\t\t\t\t\tSystem.out.println(\"Sov i tre sekunder.\");\n\t\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\twhile (!db.getAck(theText, rest));\n\t\t\t\treceiveArea.setText(\"Deleted measurements from device.\");\n\t\t\t}\n\t\t});\n\t\tbtnBase64.setSelection(true);\n\t\tbtnBase64.setBounds(137, 130, 74, 25);\n\t\tbtnBase64.setText(\"base64\");\n\t\t\n\t\tButton btnHex = new Button(basicComposite, SWT.RADIO);\n\t\tbtnHex.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\n\t\t\t\ttype = 2;\n\t\t\t\tSystem.out.println(\"Bytte type till: \"+type);\n\n\t\t\t}\n\t\t});\n\t\tbtnHex.setToolTipText(\"Show the measurement in hex.\");\n\t\tbtnHex.setFont(SWTResourceManager.getFont(\"Cantarell\", 9, SWT.NORMAL));\n\t\tbtnHex.setBounds(217, 130, 50, 25);\n\t\tbtnHex.setText(\"hex\");\n\t\t\n\t\tButton btnAscii = new Button(basicComposite, SWT.RADIO);\n\t\t\n\t\tbtnAscii.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t\ttype = 1;\n\t\t\t\tSystem.out.println(\"Bytte type till: \"+type);\n\n\t\t\t}\n\t\t});\n\t\t\n\t\t/*\n\t\t * Return that the value should be represented as base64.\n\t\t * \n\t\t */\n\t\t\n\t\tbtnBase64.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t\ttype = 0;\n\t\t\t}\n\t\t});\n\t\t\n\t\tbtnAscii.setToolTipText(\"Show the measurement in ascii.\");\n\t\tbtnAscii.setFont(SWTResourceManager.getFont(\"Cantarell\", 9, SWT.NORMAL));\n\t\tbtnAscii.setBounds(269, 130, 53, 25);\n\t\tbtnAscii.setText(\"ascii\");\n\t\t\n\t\tLabel label = new Label(basicComposite, SWT.NONE);\n\t\tlabel.setText(\"A master thesis project by Pétur and David\");\n\t\tlabel.setFont(SWTResourceManager.getFont(\"Cantarell\", 7, SWT.NORMAL));\n\t\tlabel.setBounds(10, 204, 192, 21);\n\t\t\n\t\tButton btnGetDbValue = new Button(basicComposite, SWT.NONE);\n\t\tbtnGetDbValue.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseUp(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t\tXBNConnection db = new XBNConnection();\n\t\t\t\treceiveArea.setText(db.getNodeFaults(type));\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\t\t\t\treceiveArea.setText(\"Getting latest measurements from db, please wait...\");\n\t\t\t}\n\t\t});\n\t\tbtnGetDbValue.setBounds(0, 71, 159, 33);\n\t\tbtnGetDbValue.setText(\"Get latest bloodvalue\");\n\t\t\n\t\t/*\n\t\t *Get measurement from device event handler \n\t\t *\n\t\t *@param The Mouse Adapter\n\t\t * \n\t\t */\n\t\t\n\t\t\n\t\tbtnGetMeasurement.addMouseListener(new MouseAdapter() {\n\t\t\t\n\t\t\tpublic void MouseDown(MouseEvent arg0){\n\t\t\t\treceiveArea.setText(\"Getting measurement from device, please wait...\");\n\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void mouseUp(MouseEvent arg0) {\n\t\t\t\tRest rest = new Rest();\n\t\t\t\tXBNConnection db = new XBNConnection();\n\t\t\t\tString theText = \"LOG\";\n\t\t\t\t\n\t\t\t\tdo {\n\t\t\t\t\t// System.out.println(\"Längded på theText i restCallImpl \"+theText.length()\n\t\t\t\t\t// +\" och det står \" +theText);\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\t//System.out.println(\"Hej\");\n\n\t\t\t\t\t\t//rest.doPut(\"lol\");\n\t\t\t\t\t\trest.doPut(theText);\n\t\t\t\t\t\t\n\t\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\twhile (!db.getAck(theText, rest));\n\t\t\t\ttry{\n\t\t\t\t\tThread.sleep(2000);\n\n\t\t\t\t}\n\t\t\t\tcatch(Exception e){\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} \n\t\t\t\treceiveArea.setText(db.getNodeFaults(type));\n\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\t\t\t\treceiveArea.setText(\"Getting measurements from device, please wait...\");\n\t\t\t}\n\t\t});\n\n\t\t\n\t\t/*\n\t\t * The advanced tab section\n\t\t */\n\t\t\n\t\tTabItem advancedItem = new TabItem(tabFolder, SWT.NONE);\n\t\tadvancedItem.setText(\"Advanced\");\n\t\t\n\t\tComposite advComposite = new Composite(tabFolder, SWT.NONE);\n\t\tadvancedItem.setControl(advComposite);\n\t\tadvComposite.setLayout(null);\n\t\t\n\t\tButton advSendButton = new Button(advComposite, SWT.NONE);\n\t\t\n\t\n\t\tadvSendButton.setToolTipText(\"Send arbitary data to the device.\");\n\t\n\t\tadvSendButton.setBounds(307, 31, 121, 33);\n\t\tadvSendButton.setText(\"Send Data\");\n\t\t\n\t\tLabel lblNewLabel = new Label(advComposite, SWT.NONE);\n\t\tlblNewLabel.setFont(SWTResourceManager.getFont(\"Cantarell\", 7, SWT.NORMAL));\n\t\tlblNewLabel.setBounds(10, 204, 192, 21);\n\t\tlblNewLabel.setText(\"A master thesis project by Pétur and David\");\n\t\t\n\t\tfinal StyledText advSendArea = new StyledText(advComposite, SWT.BORDER | SWT.WRAP);\n\t\tadvSendArea.setToolTipText(\"This is where you type your arbitary data to send to the device.\");\n\t\tadvSendArea.setBounds(10, 31, 291, 33);\n\t\t\n\t\tButton advReceiveButton = new Button(advComposite, SWT.NONE);\n\t\t\n\n\t\t\n\t\tadvReceiveButton.setToolTipText(\"Receive data from the database.\");\n\t\tadvReceiveButton.setBounds(10, 70, 99, 33);\n\t\tadvReceiveButton.setText(\"Receive Data\");\n\t\t\n\t\tfinal StyledText advReceiveArea = new StyledText(advComposite, SWT.BORDER | SWT.WRAP);\n\t\tadvReceiveArea.setToolTipText(\"This is where the receive data will be presented.\");\n\t\tadvReceiveArea.setBounds(115, 67, 313, 70);\n\t\t\n\t\tButton advAscii = new Button(advComposite, SWT.RADIO);\n\t\tadvAscii.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\t\t\t\tadvType = 1;\n\t\t\t}\n\t\t});\n\t\t\n\t\tadvReceiveButton.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseUp(MouseEvent arg0) {\n\t\t\t\tadvReceiveArea.setText(\"Receiving the data, please wait...\");\n\t\t\t\tXBNConnection xbn = new XBNConnection();\n\t\t\t\tString text = xbn.getNodeFaults(advType);\n\t\t\t\tadvReceiveArea.setText(text);\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\t\t\t\tadvReceiveArea.setText(\"Receivng data from device, please wait\");\n\t\t\t}\n\t\t});\n\t\tadvAscii.setSelection(true);\n\t\tadvAscii.setToolTipText(\"Show the database results as ascii.\");\n\t\tadvAscii.setFont(SWTResourceManager.getFont(\"Cantarell\", 9, SWT.NORMAL));\n\t\tadvAscii.setBounds(10, 109, 54, 25);\n\t\tadvAscii.setText(\"ascii\");\n\t\t\n\t\tButton advHex = new Button(advComposite, SWT.RADIO);\n\t\tadvHex.setToolTipText(\"Show the database results as hex.\");\n\t\tadvHex.setFont(SWTResourceManager.getFont(\"Cantarell\", 9, SWT.NORMAL));\n\t\tadvHex.setBounds(66, 109, 43, 25);\n\t\tadvHex.setText(\"hex\");\n\t\tadvHex.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\t\t\t\tadvType = 2;\n\t\t\t}\n\t\t});\n\t\t\n\t\tButton btnDeleteDatabase = new Button(advComposite, SWT.NONE);\n\t\tbtnDeleteDatabase.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseUp(MouseEvent arg0) {\n\t\t\t\tXBNConnection db = new XBNConnection();\n\t\t\t\tdb.deleteMessages();\n\t\t\t\tadvReceiveArea.setText(\"Deleted data from database\");\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnDeleteDatabase.setToolTipText(\"Delete entries in the database.\");\n\t\tbtnDeleteDatabase.setText(\"Delete database\");\n\t\tbtnDeleteDatabase.setBounds(269, 192, 159, 33);\n\t\t\n\t\n\t\t\n\n\t\t/*\n\t\t * This is the advanced send button. Can send arbitary text to the device.\n\t\t */\n\t\t\n\t\tadvSendButton.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseUp(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t\t//advSendArea.setText(\"Sending: '\"+advSendArea.getText()+\"' to the device, please wait...\");\n\t\t\t\tString theText = advSendArea.getText();\n\t\t\t\tSystem.out.println(\"Texten som ska skickas är: \" + theText);\n\t\t\t\t\n\t\t\t\tRest rest = new Rest();\n\t\t\t\tString chunkText = \"\";\n\t\t\t\tXBNConnection db = new XBNConnection();\n\t\t\t\tStringBuilder sb = new StringBuilder(theText);\n\t\t\t\t// Add and @ to be sure that there will never be two strings that are\n\t\t\t\t// the same in a row.\n\t\t\t\t// for (int i = 3; i < sb.toString().length(); i += 6) {\n\t\t\t\t// sb.insert(i, \"@\");\n\t\t\t\t// }\n\t\t\t\t// theText = sb.toString();\n\t\t\t\tSystem.out.println(theText);\n\n\t\t\t\tdo {\n\t\t\t\t\t// System.out.println(\"Längded på theText i restCallImpl \"+theText.length()\n\t\t\t\t\t// +\" och det står \" +theText);\n\n\t\t\t\t\tif (theText.length() < 3) {\n\t\t\t\t\t\tchunkText = theText.substring(0, theText.length());\n\t\t\t\t\t\tint pad = theText.length() % 3;\n\t\t\t\t\t\tif (pad == 1) {\n\t\t\t\t\t\t\tchunkText = chunkText + \" \";\n\t\t\t\t\t\t\ttheText = theText + \" \";\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tchunkText = chunkText + \" \";\n\t\t\t\t\t\t\ttheText = theText + \" \";\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tchunkText = theText.substring(0, 3);\n\t\t\t\t\t}\n\n\t\t\t\t\ttheText = theText.substring(3);\n\t\t\t\t\ttry {\n\n\t\t\t\t\t\trest.doPut(chunkText);\n\t\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\twhile (theText.length() > 0 && db.getAck(chunkText, rest));\n\t\t\t\tadvSendArea.setText(\"Data sent to the device.\");\n\t\t\t\t\n\t\t\t}\n\t\t\n\t\t\t\n\t\t});\n\n\t}", "protected void createContents() {\n\t\tshell = new Shell(SWT.TITLE | SWT.CLOSE | SWT.BORDER);\n\t\tshell.setSize(713, 226);\n\t\tshell.setText(\"ALT Planner\");\n\t\t\n\t\tCalendarPop calendarComp = new CalendarPop(shell, SWT.NONE);\n\t\tcalendarComp.setBounds(5, 5, 139, 148);\n\t\t\n\t\tComposite composite = new PlannerInterface(shell, SWT.NONE, calendarComp);\n\t\tcomposite.setBounds(0, 0, 713, 200);\n\t\t\n\t\tMenu menu = new Menu(shell, SWT.BAR);\n\t\tshell.setMenuBar(menu);\n\t\t\n\t\tMenuItem mntmFile = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmFile.setText(\"File\");\n\t\t\n\t\tMenu menu_1 = new Menu(mntmFile);\n\t\tmntmFile.setMenu(menu_1);\n\t\t\n\t\tMenuItem mntmSettings = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmSettings.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tSettings settings = new Settings(Display.getDefault());\n\t\t\t\tsettings.open();\n\t\t\t}\n\t\t});\n\t\tmntmSettings.setText(\"Settings\");\n\t}", "protected void createContents() {\n\t\tMonitor primary = this.getDisplay().getPrimaryMonitor();\n\t\tRectangle bounds = primary.getBounds();\n\t\tRectangle rect = getBounds();\n\t\tint x = bounds.x + (bounds.width - rect.width) / 2;\n\t\tint y = bounds.y + (bounds.height - rect.height) / 2;\n\t\tsetLocation(x, y);\n\t}", "@Override\n public void Create() {\n\n initView();\n }", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(764, 551);\n\t\tshell.setText(\"SWT Application\");\n\t\tshell.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tMenu menu = new Menu(shell, SWT.BAR);\n\t\tshell.setMenuBar(menu);\n\t\t\n\t\tMenuItem mntmFile = new MenuItem(menu, SWT.NONE);\n\t\tmntmFile.setText(\"File...\");\n\t\t\n\t\tMenuItem mntmEdit = new MenuItem(menu, SWT.NONE);\n\t\tmntmEdit.setText(\"Edit\");\n\t\t\n\t\tComposite composite = new Composite(shell, SWT.NONE);\n\t\tcomposite.setLayoutData(BorderLayout.CENTER);\n\t\tcomposite.setLayout(null);\n\t\t\n\t\tGroup grpDirectorio = new Group(composite, SWT.NONE);\n\t\tgrpDirectorio.setText(\"Directorio\");\n\t\tgrpDirectorio.setBounds(10, 86, 261, 387);\n\t\t\n\t\tGroup grpListadoDeAccesos = new Group(composite, SWT.NONE);\n\t\tgrpListadoDeAccesos.setText(\"Listado de Accesos\");\n\t\tgrpListadoDeAccesos.setBounds(277, 86, 477, 387);\n\t\t\n\t\tLabel label = new Label(composite, SWT.SEPARATOR | SWT.HORIZONTAL);\n\t\tlabel.setBounds(10, 479, 744, 2);\n\t\t\n\t\tButton btnNewButton = new Button(composite, SWT.NONE);\n\t\tbtnNewButton.setBounds(638, 491, 94, 28);\n\t\tbtnNewButton.setText(\"New Button\");\n\t\t\n\t\tButton btnNewButton_1 = new Button(composite, SWT.NONE);\n\t\tbtnNewButton_1.setBounds(538, 491, 94, 28);\n\t\tbtnNewButton_1.setText(\"New Button\");\n\t\t\n\t\tToolBar toolBar = new ToolBar(composite, SWT.FLAT | SWT.RIGHT);\n\t\ttoolBar.setBounds(10, 10, 744, 20);\n\t\t\n\t\tToolItem tltmAccion = new ToolItem(toolBar, SWT.NONE);\n\t\ttltmAccion.setText(\"Accion 1\");\n\t\t\n\t\tToolItem tltmAccion_1 = new ToolItem(toolBar, SWT.NONE);\n\t\ttltmAccion_1.setText(\"Accion 2\");\n\t\t\n\t\tToolItem tltmRadio = new ToolItem(toolBar, SWT.RADIO);\n\t\ttltmRadio.setText(\"Radio\");\n\t\t\n\t\tToolItem tltmItemDrop = new ToolItem(toolBar, SWT.DROP_DOWN);\n\t\ttltmItemDrop.setText(\"Item drop\");\n\t\t\n\t\tToolItem tltmCheckItem = new ToolItem(toolBar, SWT.CHECK);\n\t\ttltmCheckItem.setText(\"Check item\");\n\t\t\n\t\tCoolBar coolBar = new CoolBar(composite, SWT.FLAT);\n\t\tcoolBar.setBounds(10, 39, 744, 30);\n\t\t\n\t\tCoolItem coolItem_1 = new CoolItem(coolBar, SWT.NONE);\n\t\tcoolItem_1.setText(\"Accion 1\");\n\t\t\n\t\tCoolItem coolItem = new CoolItem(coolBar, SWT.NONE);\n\n\t}", "abstract public Content createContent();", "private void createView(Tab tab, VMFile file, PostProcessHandler handler) {\n editResourceService.getFileContent(file.getId(), new AsyncCallback<byte[]>() {\n\n @Override\n public void onFailure(Throwable caught) {\n SC.warn(caught.getMessage());\n }\n\n @Override\n public void onSuccess(byte[] result) {\n BinaryResourceImpl r = new BinaryResourceImpl();\n ByteArrayInputStream bi = new ByteArrayInputStream(result);\n AbstractRootElement root = null;\n try {\n if (file.getExtension() != Extension.TXT && file.getExtension() != Extension.LSC && file.getExtension() != Extension.CSC) {\n r.load(bi, EditOptions.getDefaultLoadOptions());\n root = (AbstractRootElement) r.getContents().get(0);\n }\n } catch (IOException e) {\n SC.warn(e.getMessage());\n }\n Editor editor;\n if (file.getExtension() == null) {\n editor = new TextEditor(tab, file, editResourceService);\n editor.create();\n } else\n switch (file.getExtension()) {\n\n case ARC:\n editor = new ARCEditor((ARCRoot) root, projectId, editResourceService);\n editor.create();\n clickNewStateMachine((ARCEditor) editor, file);\n clickOpenFile((ARCEditor) editor);\n break;\n case FM:\n editor = new FMEditor((FMRoot) root, projectId, file.getId(), editResourceService);\n editor.create();\n clickOpenFile((FMEditor) editor);\n clickCreateChildModel((FMEditor) editor, file);\n setFileNameToReferenceNode((FMEditor) editor);\n break;\n case FMC:\n editor = new FMCEditor((FMCRoot) root, file.getId(), projectId, editResourceService);\n editor.create();\n break;\n case FSM:\n editor = new FSMEditor((FSMDStateMachine) root, file.getId());\n editor.create();\n break;\n case SCD:\n editor = new SCDEditor((SCDRoot) root, tab, projectId, ModelingProjectView.this, editResourceService);\n editor.create();\n clickOpenFile((SCDEditor) editor);\n break;\n case SPQL:\n editor = new SPQLEditor((SPQLRoot) root, tab, projectId, editResourceService);\n editor.create();\n clickOpenFile((SPQLEditor) editor);\n break;\n case TC:\n editor = new TCEditor((TCRoot) root, projectId, file.getName(), editResourceService);\n editor.create();\n break;\n case BPS:\n editor = new BPSEditor((BPSRoot) root, ModelingProjectView.this, projectId, file.getId(), editResourceService);\n editor.create();\n break;\n case BP:\n editor = new BPEditor((BPRoot) root, projectId, file, editResourceService);\n editor.create();\n break;\n case FPS:\n editor = new TPSEditor((TPSRoot) root, ModelingProjectView.this, projectId, file.getId(), editResourceService);\n editor.create();\n break;\n case FP:\n editor = new TPViewer((TPRoot) root, projectId, file, editResourceService);\n editor.create();\n break;\n case CSC:\n editor = new CSCEditor(tab, file, editResourceService);\n editor.create();\n break;\n case SCSS:\n editor = new CBEditor((CBRoot) root, ModelingProjectView.this, projectId, file.getId(), editResourceService);\n editor.create();\n break;\n case SCS:\n editor = new SCSEditor((SCSRoot) root, ModelingProjectView.this, projectId, file, editResourceService);\n editor.create();\n break;\n case CSCS:\n editor = new CSCSEditor((CSCSRoot) root, projectId, file);\n editor.create();\n break;\n default:\n editor = new TextEditor(tab, file, editResourceService);\n editor.create();\n }\n createTabMenu(tab, editor.getSaveItem());\n clickSaveFile(editor, tab);\n\n if (editor instanceof NodeArrangeInterface) {\n NodeArrange.add((NodeArrangeInterface) editor);\n }\n tab.setPane(editor.getLayout());\n tab.setAttribute(EDITOR, editor);\n editorTabSet.addTab(tab);\n editorTabSet.selectTab(tab.getAttributeAsString(\"UniqueId\"));\n if (handler != null) {\n handler.execute();\n }\n }\n });\n }", "public abstract void createContents(Panel mainPanel);", "protected void createContents() {\n\n\t\tfinal FileServeApplicationWindow appWindow = this;\n\n\t\tthis.shlFileServe = new Shell();\n\t\tthis.shlFileServe.setSize(450, 300);\n\t\tthis.shlFileServe.setText(\"File Serve - Server\");\n\t\tthis.shlFileServe.setLayout(new BorderLayout(0, 0));\n\n\t\tthis.composite = new Composite(this.shlFileServe, SWT.NONE);\n\t\tthis.composite.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\tthis.composite.setLayoutData(BorderLayout.CENTER);\n\t\tthis.composite.setLayout(new FormLayout());\n\n\t\tthis.lblServerTcpPort = new Label(this.composite, SWT.NONE);\n\t\tFormData fd_lblServerTcpPort = new FormData();\n\t\tfd_lblServerTcpPort.top = new FormAttachment(0, 10);\n\t\tfd_lblServerTcpPort.left = new FormAttachment(0, 10);\n\t\tthis.lblServerTcpPort.setLayoutData(fd_lblServerTcpPort);\n\t\tthis.lblServerTcpPort.setText(\"Server TCP Port:\");\n\n\t\tthis.serverTCPPortField = new Text(this.composite, SWT.BORDER);\n\t\tthis.serverTCPPortField.setTextLimit(5);\n\t\tthis.serverTCPPortField.addVerifyListener(new VerifyListener() {\n\t\t\t@Override\n\t\t\tpublic void verifyText(VerifyEvent e) {\n\t\t\t\te.doit = true;\n\t\t\t\tfor(int i = 0; i < e.text.length(); i++) {\n\n\t\t\t\t\tchar c = e.text.charAt(i);\n\n\t\t\t\t\tboolean b = false;\n\n\t\t\t\t\tif(c >= '0' && c <= '9') {b = true;}\n\t\t\t\t\telse if(c == SWT.BS) {b = true;}\n\t\t\t\t\telse if(c == SWT.DEL) {b = true;}\n\n\t\t\t\t\tif(b == false) {\n\t\t\t\t\t\te.doit = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tFormData fd_serverTCPPortField = new FormData();\n\t\tfd_serverTCPPortField.top = new FormAttachment(0, 7);\n\t\tfd_serverTCPPortField.right = new FormAttachment(100, -54);\n\t\tfd_serverTCPPortField.left = new FormAttachment(this.lblServerTcpPort, 12);\n\t\tthis.serverTCPPortField.setLayoutData(fd_serverTCPPortField);\n\n\t\tthis.btnStartServer = new Button(this.composite, SWT.NONE);\n\t\tFormData fd_btnStartServer = new FormData();\n\t\tfd_btnStartServer.bottom = new FormAttachment(100, -10);\n\t\tfd_btnStartServer.right = new FormAttachment(100, -10);\n\t\tthis.btnStartServer.setLayoutData(fd_btnStartServer);\n\t\tthis.btnStartServer.setText(\"Start Server\");\n\n\t\tthis.lblServerStatus = new Label(this.composite, SWT.NONE);\n\t\tFormData fd_lblServerStatus = new FormData();\n\t\tfd_lblServerStatus.right = new FormAttachment(this.btnStartServer, -6);\n\t\tfd_lblServerStatus.top = new FormAttachment(this.btnStartServer, 5, SWT.TOP);\n\t\tfd_lblServerStatus.left = new FormAttachment(this.lblServerTcpPort, 0, SWT.LEFT);\n\t\tthis.lblServerStatus.setLayoutData(fd_lblServerStatus);\n\t\tthis.lblServerStatus.setText(\"Server Status: Stopped\");\n\n\t\tthis.text = new Text(this.composite, SWT.BORDER);\n\t\tFormData fd_text = new FormData();\n\t\tfd_text.top = new FormAttachment(this.serverTCPPortField, 6);\n\t\tthis.text.setLayoutData(fd_text);\n\n\t\tthis.lblHighestDirectory = new Label(this.composite, SWT.NONE);\n\t\tfd_text.left = new FormAttachment(this.lblHighestDirectory, 6);\n\t\tFormData fd_lblHighestDirectory = new FormData();\n\t\tfd_lblHighestDirectory.top = new FormAttachment(this.lblServerTcpPort, 12);\n\t\tfd_lblHighestDirectory.left = new FormAttachment(this.lblServerTcpPort, 0, SWT.LEFT);\n\t\tthis.lblHighestDirectory.setLayoutData(fd_lblHighestDirectory);\n\t\tthis.lblHighestDirectory.setText(\"Highest Directory:\");\n\n\t\tthis.button = new Button(this.composite, SWT.NONE);\n\n\t\tfd_text.right = new FormAttachment(100, -54);\n\t\tFormData fd_button = new FormData();\n\t\tfd_button.left = new FormAttachment(this.text, 6);\n\t\tthis.button.setLayoutData(fd_button);\n\t\tthis.button.setText(\"...\");\n\n\t\tthis.grpConnectionInformation = new Group(this.composite, SWT.NONE);\n\t\tfd_button.bottom = new FormAttachment(this.grpConnectionInformation, -1);\n\t\tthis.grpConnectionInformation.setText(\"Connection Information:\");\n\t\tthis.grpConnectionInformation.setLayout(new BorderLayout(0, 0));\n\t\tFormData fd_grpConnectionInformation = new FormData();\n\t\tfd_grpConnectionInformation.bottom = new FormAttachment(this.btnStartServer, -6);\n\t\tfd_grpConnectionInformation.right = new FormAttachment(this.btnStartServer, 0, SWT.RIGHT);\n\t\tfd_grpConnectionInformation.top = new FormAttachment(this.lblHighestDirectory, 6);\n\t\tfd_grpConnectionInformation.left = new FormAttachment(this.lblServerTcpPort, 0, SWT.LEFT);\n\t\tthis.grpConnectionInformation.setLayoutData(fd_grpConnectionInformation);\n\n\t\tthis.scrolledComposite = new ScrolledComposite(this.grpConnectionInformation, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);\n\t\tthis.scrolledComposite.setLayoutData(BorderLayout.CENTER);\n\t\tthis.scrolledComposite.setExpandHorizontal(true);\n\t\tthis.scrolledComposite.setExpandVertical(true);\n\n\t\tthis.table = new Table(this.scrolledComposite, SWT.BORDER | SWT.FULL_SELECTION);\n\t\tthis.table.setLinesVisible(true);\n\t\tthis.table.setHeaderVisible(true);\n\t\tthis.scrolledComposite.setContent(this.table);\n\t\tthis.scrolledComposite.setMinSize(this.table.computeSize(SWT.DEFAULT, SWT.DEFAULT));\n\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(538, 450);\n\t\tshell.setText(\"SWT Application\");\n\n\t\tfinal DateTime dateTime = new DateTime(shell, SWT.BORDER | SWT.CALENDAR);\n\t\tdateTime.setBounds(10, 10, 514, 290);\n\n\t\tfinal DateTime dateTime_1 = new DateTime(shell, SWT.BORDER | SWT.TIME);\n\t\tdateTime_1.setBounds(10, 306, 135, 29);\n\t\tvideoPath = new Text(shell, SWT.BORDER);\n\t\tvideoPath.setBounds(220, 306, 207, 27);\n\n\t\tButton btnBrowseVideo = new Button(shell, SWT.NONE);\n\t\tbtnBrowseVideo.addListener(SWT.Selection, new Listener() {\n\t\t\t@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\tFileDialog fileDialog = new FileDialog(shell, SWT.MULTI);\n\t\t\t\tString fileFilterPath = \"\";\n\t\t\t\tfileDialog.setFilterPath(fileFilterPath);\n\t\t\t\tfileDialog.setFilterExtensions(new String[] { \"*.*\" });\n\t\t\t\tfileDialog.setFilterNames(new String[] { \"Any\" });\n\t\t\t\tString firstFile = fileDialog.open();\n\t\t\t\tif (firstFile != null) {\n\t\t\t\t\tvideoPath.setText(firstFile);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnBrowseVideo.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t}\n\t\t});\n\t\tbtnBrowseVideo.setBounds(433, 306, 91, 29);\n\t\tbtnBrowseVideo.setText(\"browse\");\n\t\ttorrentPath = new Text(shell, SWT.BORDER);\n\t\ttorrentPath.setBounds(220, 341, 207, 27);\n\t\tButton btnBrowseTorrent = new Button(shell, SWT.NONE);\n\t\tbtnBrowseTorrent.setText(\"browse\");\n\t\tbtnBrowseTorrent.setBounds(433, 339, 91, 29);\n\t\tbtnBrowseTorrent.addListener(SWT.Selection, new Listener() {\n\t\t\t@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\tFileDialog fileDialog = new FileDialog(shell, SWT.MULTI);\n\t\t\t\tString fileFilterPath = \"\";\n\t\t\t\tfileDialog.setFilterPath(fileFilterPath);\n\t\t\t\tfileDialog.setFilterExtensions(new String[] { \"*.*\" });\n\t\t\t\tfileDialog.setFilterNames(new String[] { \"Any\" });\n\t\t\t\tString firstFile = fileDialog.open();\n\t\t\t\tif (firstFile != null) {\n\t\t\t\t\ttorrentPath.setText(firstFile);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tButton btnGenerateTorrent = new Button(shell, SWT.NONE);\n\t\tbtnGenerateTorrent.setBounds(10, 374, 516, 29);\n\t\tbtnGenerateTorrent.setText(\"Generate Torrent\");\n\n\t\tvideoLength = new Text(shell, SWT.BORDER);\n\t\tvideoLength.setBounds(10, 341, 135, 27);\n\t\t\n\t\tLabel lblNewLabel = new Label(shell, SWT.RIGHT);\n\t\tlblNewLabel.setAlignment(SWT.LEFT);\n\t\tlblNewLabel.setBounds(157, 315, 48, 18);\n\t\tlblNewLabel.setText(\"Video\");\n\t\t\n\t\tLabel lblTorrent = new Label(shell, SWT.RIGHT);\n\t\tlblTorrent.setText(\"Torrent\");\n\t\tlblTorrent.setBounds(157, 341, 48, 18);\n\t\tbtnGenerateTorrent.addListener(SWT.Selection, new Listener() {\n\t\t\t@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\tFile video = new File(videoPath.getText());\n\t\t\t\ttry {\n\t\t\t\t\tif (video.exists() && torrentPath.getText() != \"\") {\n\t\t\t\t\t\tMap parameters = new HashMap();\n\t\t\t\t\t\tparameters.put(\"start\", dateTime.getYear() + \"/\" + (dateTime.getMonth()+1) + \"/\" + dateTime.getDay() + \"-\" + dateTime_1.getHours() + \":\" + dateTime_1.getMinutes() + \":\" + dateTime_1.getSeconds());\n\t\t\t\t\t\tparameters.put(\"target\", torrentPath.getText());\n\t\t\t\t\t\tparameters.put(\"length\", videoLength.getText());\n\t\t\t\t\t\tSystem.out.println(\"start generating \"+parameters.get(\"length\"));\n\t\t\t\t\t\tnew MakeTorrent(videoPath.getText(), new URL(\"https://jomican.csie.org/~jimmy/tracker/announce.php\"), parameters);\n\t\t\t\t\t\tSystem.out.println(\"end generating\");\n\t\t\t\t\t\tFile var = new File(\"var.js\");\n\t\t\t\t\t\tPrintStream stream=new PrintStream(new FileOutputStream(var,false));\n\t\t\t\t\t\tstream.println(\"start_time = \"+(new SimpleDateFormat(\"yyyy/MM/dd-HH:mm:ss\").parse(dateTime.getYear() + \"/\" + (dateTime.getMonth()+1) + \"/\" + dateTime.getDay() + \"-\" + dateTime_1.getHours() + \":\" + dateTime_1.getMinutes() + \":\" + dateTime_1.getSeconds()).getTime() / 1000)+\";\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"jizz\");\n\t\t\t\t\t}\n\t\t\t\t} catch (MalformedURLException e) {\n\t\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t}", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 395);\r\n\t\tshell.setText(\"SWT Application\");\r\n\t\t\r\n\t\tnachname = new Text(shell, SWT.BORDER);\r\n\t\tnachname.setBounds(32, 27, 76, 21);\r\n\t\t\r\n\t\tvorname = new Text(shell, SWT.BORDER);\r\n\t\tvorname.setBounds(32, 66, 76, 21);\r\n\t\t\r\n\t\tLabel lblNachname = new Label(shell, SWT.NONE);\r\n\t\tlblNachname.setBounds(135, 33, 55, 15);\r\n\t\tlblNachname.setText(\"Nachname\");\r\n\t\t\r\n\t\tLabel lblVorname = new Label(shell, SWT.NONE);\r\n\t\tlblVorname.setBounds(135, 66, 55, 15);\r\n\t\tlblVorname.setText(\"Vorname\");\r\n\t\t\r\n\t\tButton btnFgeListeHinzu = new Button(shell, SWT.NONE);\r\n\t\tbtnFgeListeHinzu.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\t//\r\n\t\t\t\tPerson p = new Person();\r\n\t\t\t\tp.setNachname(getNachname().getText());\r\n\t\t\t\tp.setVorname(getVorname().getText());\r\n\t\t\t\t//\r\n\t\t\t\tPerson.getPersonenListe().add(p);\r\n\t\t\t\tgetGuiListe().add(p.toString());\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnFgeListeHinzu.setBounds(43, 127, 147, 25);\r\n\t\tbtnFgeListeHinzu.setText(\"f\\u00FCge liste hinzu\");\r\n\t\t\r\n\t\tButton btnWriteJson = new Button(shell, SWT.NONE);\r\n\t\tbtnWriteJson.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tPerson.write2JSON();\r\n\t\t\t\t\t//\r\n\t\t\t\t\tMessageBox mb = new MessageBox(shell, SWT.ICON_INFORMATION | SWT.OK);\r\n\t\t\t\t\tmb.setText(\"JSON geschrieben\");\r\n\t\t\t\t\tmb.setMessage(Person.getPersonenListe().size() + \" Einträge erfolgreich geschrieben\");\r\n\t\t\t\t\tmb.open();\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\tMessageBox mb = new MessageBox(shell, SWT.ICON_ERROR | SWT.OK);\r\n\t\t\t\t\tmb.setText(\"Fehler bei JSON\");\r\n\t\t\t\t\tmb.setMessage(e1.getMessage());\r\n\t\t\t\t\tmb.open();\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnWriteJson.setBounds(54, 171, 75, 25);\r\n\t\tbtnWriteJson.setText(\"write 2 json\");\r\n\t\t\r\n\t\tguiListe = new List(shell, SWT.BORDER);\r\n\t\tguiListe.setBounds(43, 221, 261, 125);\r\n\r\n\t}", "View createView();", "protected Control createContents(Composite parent) {\r\n noDefaultAndApplyButton();\r\n\r\n // The main composite\r\n Composite composite = new Composite(parent, SWT.NONE);\r\n GridLayout layout = new GridLayout(1, false);\r\n layout.marginWidth = 0;\r\n layout.marginHeight = 0;\r\n composite.setLayout(layout);\r\n\r\n // TODO change these labels later\r\n new Label(composite, SWT.NONE)\r\n .setText(\"Provided by Duke University Computer Science Department\");\r\n new Label(composite, SWT.NONE).setText(\"http://www.cs.duke.edu\");\r\n new Label(composite, SWT.NONE)\r\n .setText(\"Questions? Go to our website at http://www.cs.duke.edu/csed/ambient\");\r\n return composite;\r\n }", "protected void createContents() {\n cmd.setBean(nodeProperties);\n cmd.setNode(node);\n shell = new Shell(getParent(), SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL);\n shell.setLayout(new FormLayout());\n shell.setSize(800, 500);\n shell.setText(\"详细信息属性\");\n\n final Composite composite_3 = new Composite(shell, SWT.NONE);\n final FormData fd_composite_3 = new FormData();\n fd_composite_3.top = new FormAttachment(0, 1);\n fd_composite_3.left = new FormAttachment(0, 5);\n fd_composite_3.height = 100;\n fd_composite_3.right = new FormAttachment(100, -5);\n composite_3.setLayoutData(fd_composite_3);\n composite_3.setLayout(new FormLayout());\n\n final Group basicGroup = new Group(composite_3, SWT.NONE);\n basicGroup.setLayout(new FormLayout());\n final FormData fd_basicGroup = new FormData();\n fd_basicGroup.bottom = new FormAttachment(100, -1);\n fd_basicGroup.top = new FormAttachment(0, -6);\n fd_basicGroup.right = new FormAttachment(100, 0);\n fd_basicGroup.left = new FormAttachment(0, 0);\n basicGroup.setLayoutData(fd_basicGroup);\n\n final Label label = new Label(basicGroup, SWT.RIGHT);\n final FormData fd_label = new FormData();\n fd_label.top = new FormAttachment(0, 0);\n fd_label.right = new FormAttachment(15, 0);\n fd_label.left = new FormAttachment(0, 0);\n label.setLayoutData(fd_label);\n label.setText(\"节点名称:\");\n\n txtName = new Text(basicGroup, SWT.BORDER);\n final FormData fd_txtName = new FormData();\n fd_txtName.top = new FormAttachment(0, 0);\n fd_txtName.right = new FormAttachment(40, 0);\n fd_txtName.left = new FormAttachment(label, 0);\n txtName.setLayoutData(fd_txtName);\n txtName.setEditable(true);\n\n final Label label_1 = new Label(basicGroup, SWT.RIGHT);\n final FormData fd_label_1 = new FormData();\n fd_label_1.top = new FormAttachment(0, 0);\n fd_label_1.right = new FormAttachment(55, 0);\n fd_label_1.left = new FormAttachment(txtName, 0);\n label_1.setLayoutData(fd_label_1);\n label_1.setText(\"数据表名:\");\n\n txtTableName = new Text(basicGroup, SWT.BORDER);\n txtTableName.setEditable(false);\n final FormData fd_txtTableName = new FormData();\n fd_txtTableName.top = new FormAttachment(0, 0);\n fd_txtTableName.right = new FormAttachment(90, 0);\n fd_txtTableName.left = new FormAttachment(label_1, 0);\n txtTableName.setLayoutData(fd_txtTableName);\n\n final Button btnSelectTable = new Button(basicGroup, SWT.NONE);\n final FormData fd_btnSelectTable = new FormData();\n fd_btnSelectTable.top = new FormAttachment(0, 0);\n fd_btnSelectTable.right = new FormAttachment(100, -1);\n fd_btnSelectTable.left = new FormAttachment(txtTableName, 0);\n fd_btnSelectTable.height = 23;\n btnSelectTable.setLayoutData(fd_btnSelectTable);\n btnSelectTable.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(final SelectionEvent e) {\n DataTableDialog dataSoruceDlg = new DataTableDialog(shell);\n DataTable dt = dataSoruceDlg.open();\n if (dt != null) {\n txtTableName.setText(dt.getCnName());\n nodeProperties.setTableName(dt.getCnName());\n nodeProperties.setName(dt.getName());\n loadFieldsInfo(dt);\n nodeProperties.setDataTable(dt);\n int res = MessageUtil.comfirm(shell, \"导入\", \"是否导入字段信息?\\r\\n注意:已有字段信息将被覆盖!\");\n if (res == SWT.YES) {\n dataFieldList.clear();\n for (DataField df : dt.getFields()) {\n dataFieldList.add(df);\n }\n tvDataField.refresh();\n }\n }\n }\n });\n btnSelectTable.setText(\"选择表\");\n\n final Label lblDescription = new Label(basicGroup, SWT.RIGHT);\n final FormData fd_lblDescription = new FormData();\n fd_lblDescription.top = new FormAttachment(label, 10);\n fd_lblDescription.bottom = new FormAttachment(100, -2);\n fd_lblDescription.left = new FormAttachment(0, 0);\n fd_lblDescription.right = new FormAttachment(15, 0);\n lblDescription.setLayoutData(fd_lblDescription);\n lblDescription.setText(\"说明:\");\n\n txtDes = new StyledText(basicGroup, SWT.BORDER);\n final FormData fd_txtDes = new FormData();\n fd_txtDes.top = new FormAttachment(txtName, 5);\n fd_txtDes.left = new FormAttachment(15, 0);\n fd_txtDes.right = new FormAttachment(100, -2);\n fd_txtDes.bottom = new FormAttachment(100, -2);\n txtDes.setLayoutData(fd_txtDes);\n\n final Button btnOk = new Button(shell, SWT.NONE);\n btnOk.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/tick.png\"));\n final FormData fd_btnOk = new FormData();\n fd_btnOk.height = 28;\n fd_btnOk.width = 80;\n fd_btnOk.bottom = new FormAttachment(100, -5);\n fd_btnOk.right = new FormAttachment(50, -10);\n btnOk.setLayoutData(fd_btnOk);\n btnOk.setText(\"确定(&O)\");\n btnOk.addListener(SWT.Selection, new Listener() {\n public void handleEvent(Event e) {\n save();\n result = 1;\n close();\n }\n });\n\n final Button btnCancel = new Button(shell, SWT.NONE);\n btnCancel.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/cross.png\"));\n final FormData fd_btnCancel = new FormData();\n fd_btnCancel.height = 28;\n fd_btnCancel.width = 80;\n fd_btnCancel.bottom = new FormAttachment(100, -5);\n fd_btnCancel.left = new FormAttachment(50, 10);\n btnCancel.setLayoutData(fd_btnCancel);\n btnCancel.setText(\"取消(&C)\");\n btnCancel.addListener(SWT.Selection, new Listener() {\n public void handleEvent(Event e) {\n close();\n }\n });\n\n final TabFolder tabFolder = new TabFolder(shell, SWT.NONE);\n tabFolder.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(final SelectionEvent e) {\n TabItem ti = (TabItem) e.item;\n if (ti.getText().startsWith(\"SQL\")) {\n DataNodeProperties d = new DataNodeProperties();\n d.setAdditionSql(txtOtherCondition.getText());\n // d.setTableName(nodeProperties.getTableName());\n d.setName(nodeProperties.getName());\n d.setFields(dataFieldList);\n d.setFilters(filterList);\n txtSQL.setText(d.getSQL(null));\n }\n else if (ti.getText().startsWith(\"过滤\")) {\n String[] fNames = null;\n if (dataFieldList != null && dataFieldList.size() > 0) {\n fNames = new String[dataFieldList.size()];\n for (int i = 0; i < dataFieldList.size(); i++) {\n fNames[i] = dataFieldList.get(i).getAliasName();\n }\n }\n else fNames = new String[] { \"\" };\n // filtersCellModifier.setAliasNames(fNames);\n tvFilter.setCellModifier(new FiltersCellModifier(tvFilter, fNames));\n tvFilter.getCellEditors()[0] = new ComboBoxCellEditor(tblFilter, fNames, SWT.READ_ONLY);\n }\n else if (ti.getText().startsWith(\"列表配置\")) {\n \tif (dataFieldList.size() > configList.size()) {\n \t\tint configLength = configList.size();\n \t\t//添加\n \tfor (int i = 0 ;i<dataFieldList.size();i++ ) {\n \t\tDataField dataField = dataFieldList.get(i);\n \t\tString cnName = dataField.getCnName();\n String aliasName = dataField.getAliasName();\n if (!\"\".equals(cnName) && !\"\".equals(aliasName)) {\n \tboolean haveFlg = false;\n \tfor (int j = 0 ;j< configLength;j++) {\n \t\tFieldConfig filedCfig = configList.get(j);\n \t\tif (!(filedCfig.getCnName().equals(cnName) &&filedCfig.getName().equals(aliasName))) {\n \t\t\tcontinue;\n \t\t} else {\n \t\t\thaveFlg = true;\n \t\t\tbreak;\n \t\t}\n \t}\n \tif (!haveFlg) {//原列表不存在此记录\n FieldConfig newFieldCfig = new FieldConfig();\n \t\t\tnewFieldCfig.setCnName(cnName);\n \t\t\tnewFieldCfig.setName(aliasName);\n \t\t\tconfigList.add(newFieldCfig);\n \t}\n }\n \t}\n \t//\n// \tfor (int k = 0;k< configLength;k++) {\n// \t\tFieldConfig filedCfig = configList.get(k);\n// \t\tString cnName = filedCfig.getCnName();\n// String aliasName = filedCfig.getName();\n// boolean haveFiledFlg = false;\n// for (int i = 0 ;i<dataFieldList.size();i++ ) {\n// \tDataField dataField = dataFieldList.get(i);\n// \tif (!(dataField.getAliasName().equals(aliasName) && dataField.getCnName().equals(cnName))) {\n// \t\tcontinue;\n// \t} else {\n// \t\thaveFiledFlg = true;\n// \t\tbreak;\n// \t}\n// }\n// if (!haveFiledFlg) {\n// \tconfigList.remove(k);\n// }\n// \n// \t}\n \t//刷新列表\n \ttvShowConfig.refresh();\n \t}\n }\n }\n });\n final FormData fd_tabFolder = new FormData();\n fd_tabFolder.bottom = new FormAttachment(100, -40);\n fd_tabFolder.top = new FormAttachment(composite_3, 3, SWT.BOTTOM);\n fd_tabFolder.right = new FormAttachment(100, -5);\n fd_tabFolder.left = new FormAttachment(0, 5);\n tabFolder.setLayoutData(fd_tabFolder);\n\n final TabItem tabFields = new TabItem(tabFolder, SWT.NONE);\n tabFields.setText(\"查询字段\");\n\n final Composite composite_1 = new Composite(tabFolder, SWT.NONE);\n composite_1.setLayout(new FormLayout());\n tabFields.setControl(composite_1);\n\n final Group group_1 = new Group(composite_1, SWT.NONE);\n final FormData fd_group_1 = new FormData();\n fd_group_1.left = new FormAttachment(0, 0);\n fd_group_1.bottom = new FormAttachment(100, 0);\n fd_group_1.right = new FormAttachment(100, 0);\n fd_group_1.top = new FormAttachment(0, -6);\n group_1.setLayoutData(fd_group_1);\n group_1.setLayout(new FormLayout());\n // tabFields.setControl(group_1);\n\n tvDataField = new TableViewer(group_1, SWT.MULTI | SWT.FULL_SELECTION | SWT.BORDER);\n tvDataField.setContentProvider(new ViewContentProvider());\n tvDataField.setLabelProvider(new DataFieldsLabelProvider0());\n tvDataField.setColumnProperties(DATAFIELDS0);\n tblDataField = tvDataField.getTable();\n\n CellEditor[] cellEditor = new CellEditor[7];\n cellEditor[0] = new TextCellEditor(tblDataField);\n cellEditor[1] = new TextCellEditor(tblDataField);\n cellEditor[2] = new TextCellEditor(tblDataField);\n cellEditor[3] = new ComboBoxCellEditor(tblDataField, Consts.DATATYPE_LABEL, SWT.READ_ONLY);\n cellEditor[4] = new TextCellEditor(tblDataField);\n cellEditor[5] = new ComboBoxCellEditor(tblDataField, Consts.SORTDIRECT_LABEL, SWT.READ_ONLY);\n// cellEditor[6] = new ComboBoxCellEditor(tblDataField, Consts.AGGREGATE_LABEL, SWT.READ_ONLY);\n// cellEditor[7] = new TextCellEditor(tblDataField);\n cellEditor[6] = new ComboBoxCellEditor(tblDataField, Consts.YESNO_LABEL, SWT.READ_ONLY);\n Text text1 = (Text) cellEditor[4].getControl();\n text1.addVerifyListener(new VerifyListener() {\n public void verifyText(VerifyEvent e) {\n String str = e.text;\n if (str != null && str.length() > 0) e.doit = StringUtil.isInteger(str);\n }\n });\n// Text text2 = (Text) cellEditor[7].getControl();\n// text2.addVerifyListener(new VerifyListener() {\n// public void verifyText(VerifyEvent e) {\n// String str = e.text;\n// if (str != null && str.length() > 0) e.doit = StringUtil.isInteger(str);\n// }\n// });\n\n tvDataField.setCellEditors(cellEditor);\n tvDataField.setCellModifier(new DataFieldsCellModifier2(tvDataField));\n\n final FormData fd_table_1 = new FormData();\n fd_table_1.bottom = new FormAttachment(100, -22);\n fd_table_1.top = new FormAttachment(0, -6);\n fd_table_1.right = new FormAttachment(100, 0);\n fd_table_1.left = new FormAttachment(0, 0);\n tblDataField.setLayoutData(fd_table_1);\n tblDataField.setLinesVisible(true);\n tblDataField.setHeaderVisible(true);\n\n final TableColumn colCnName = new TableColumn(tblDataField, SWT.NONE);\n colCnName.setWidth(100);\n colCnName.setText(\"中文名\");\n\n final TableColumn colFieldName = new TableColumn(tblDataField, SWT.NONE);\n colFieldName.setWidth(100);\n colFieldName.setText(\"字段名\");\n\n final TableColumn colAliasName = new TableColumn(tblDataField, SWT.NONE);\n colAliasName.setWidth(100);\n colAliasName.setText(\"别名\");\n\n final TableColumn colDataType = new TableColumn(tblDataField, SWT.NONE);\n colDataType.setWidth(80);\n colDataType.setText(\"数据类型\");\n\n final TableColumn colSortNo = new TableColumn(tblDataField, SWT.NONE);\n colSortNo.setWidth(60);\n colSortNo.setText(\"排序顺序\");\n\n final TableColumn colSortDirect = new TableColumn(tblDataField, SWT.NONE);\n colSortDirect.setWidth(80);\n colSortDirect.setText(\"排序方向\");\n\n final TableColumn colOutput = new TableColumn(tblDataField, SWT.NONE);\n colOutput.setWidth(80);\n colOutput.setText(\"是否输出\");\n\n final TabItem tabFilter = new TabItem(tabFolder, SWT.NONE);\n tabFilter.setText(\"过滤条件\");\n\n final Composite composite = new Composite(tabFolder, SWT.NONE);\n composite.setLayout(new FormLayout());\n tabFilter.setControl(composite);\n\n final Group group_2 = new Group(composite, SWT.NO_RADIO_GROUP);\n final FormData fd_group_2 = new FormData();\n fd_group_2.left = new FormAttachment(0, 0);\n fd_group_2.right = new FormAttachment(100, 0);\n fd_group_2.top = new FormAttachment(0, -6);\n fd_group_2.bottom = new FormAttachment(100, -80);\n group_2.setLayoutData(fd_group_2);\n group_2.setLayout(new FormLayout());\n\n tvFilter = new TableViewer(group_2, SWT.FULL_SELECTION | SWT.BORDER);\n tvFilter.setLabelProvider(new FiltersLabelProvider());\n tvFilter.setContentProvider(new ViewContentProvider());\n tvFilter.setColumnProperties(FiltersLabelProvider.DATAFIELDS);\n tblFilter = tvFilter.getTable();\n CellEditor[] cellEditor1 = new CellEditor[3];\n cellEditor1[0] = new TextCellEditor(tblFilter);\n String[] aliasNames = new String[] { \"\" };\n cellEditor1[0] = new ComboBoxCellEditor(tblFilter, aliasNames, SWT.READ_ONLY);\n cellEditor1[1] = new ComboBoxCellEditor(tblFilter, Consts.OPERATOR_LABEL, SWT.READ_ONLY);\n cellEditor1[2] = new TextCellEditor(tblFilter);\n tvFilter.setCellEditors(cellEditor1);\n // filtersCellModifier = new FiltersCellModifier(tvFilter, aliasNames);\n tvFilter.setCellModifier(new FiltersCellModifier(tvFilter, aliasNames));\n\n final FormData fd_table_2 = new FormData();\n fd_table_2.bottom = new FormAttachment(100, -21);\n fd_table_2.top = new FormAttachment(0, -5);\n fd_table_2.right = new FormAttachment(100, -1);\n fd_table_2.left = new FormAttachment(0, 1);\n tblFilter.setLayoutData(fd_table_2);\n tblFilter.setLinesVisible(true);\n tblFilter.setHeaderVisible(true);\n\n final TableColumn colFilterFieldName = new TableColumn(tblFilter, SWT.NONE);\n colFilterFieldName.setWidth(120);\n colFilterFieldName.setText(\"字段名称\");\n\n final TableColumn colOper = new TableColumn(tblFilter, SWT.NONE);\n colOper.setWidth(120);\n colOper.setText(\"操作符\");\n\n final TableColumn colFilterData = new TableColumn(tblFilter, SWT.NONE);\n colFilterData.setWidth(500);\n colFilterData.setText(\"操作数据\");\n\n final Button btnFilterAdd = new Button(group_2, SWT.NONE);\n btnFilterAdd.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(final SelectionEvent e) {\n Filter df = new Filter();\n df.setField(\"\");\n df.setOperator(\"=\");\n df.setExpression(\"\");\n filterList.add(df);\n tvFilter.refresh();\n }\n });\n btnFilterAdd.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/plus.png\"));\n final FormData fd_btnFilterAdd = new FormData();\n fd_btnFilterAdd.bottom = new FormAttachment(100, -1);\n fd_btnFilterAdd.left = new FormAttachment(0, 1);\n fd_btnFilterAdd.height = 20;\n fd_btnFilterAdd.width = 20;\n btnFilterAdd.setLayoutData(fd_btnFilterAdd);\n\n final Button btnFilterDel = new Button(group_2, SWT.NONE);\n btnFilterDel.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(final SelectionEvent e) {\n TableItem[] selectItems = tblFilter.getSelection();\n if (selectItems != null && selectItems.length > 0) {\n for (TableItem ti : selectItems) {\n Filter o = (Filter) ti.getData();\n filterList.remove(o);\n }\n tvFilter.refresh();\n }\n }\n });\n btnFilterDel.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/minus.png\"));\n final FormData fd_btnFilterDel = new FormData();\n fd_btnFilterDel.bottom = new FormAttachment(100, -1);\n fd_btnFilterDel.left = new FormAttachment(btnFilterAdd, 1, SWT.DEFAULT);\n fd_btnFilterDel.height = 20;\n fd_btnFilterDel.width = 20;\n btnFilterDel.setLayoutData(fd_btnFilterDel);\n\n final Button btnFilterUp = new Button(group_2, SWT.NONE);\n btnFilterUp.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/arrow-090.png\"));\n final FormData fd_btnFilterUp = new FormData();\n fd_btnFilterUp.bottom = new FormAttachment(100, -1);\n fd_btnFilterUp.left = new FormAttachment(btnFilterDel, 1, SWT.DEFAULT);\n fd_btnFilterUp.height = 20;\n fd_btnFilterUp.width = 20;\n btnFilterUp.setLayoutData(fd_btnFilterUp);\n btnFilterUp.setVisible(false);\n\n final Button btnFilterDown = new Button(group_2, SWT.NONE);\n btnFilterDown.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/arrow-270.png\"));\n final FormData fd_btnFilterDown = new FormData();\n fd_btnFilterDown.bottom = new FormAttachment(100, -1);\n fd_btnFilterDown.left = new FormAttachment(btnFilterUp, 1, SWT.DEFAULT);\n fd_btnFilterDown.height = 20;\n fd_btnFilterDown.width = 20;\n btnFilterDown.setLayoutData(fd_btnFilterDown);\n btnFilterDown.setVisible(false);\n\n final Label label_2 = new Label(composite, SWT.NONE);\n final FormData fd_label_2 = new FormData();\n fd_label_2.bottom = new FormAttachment(100, -60);\n fd_label_2.top = new FormAttachment(group_2, 1);\n fd_label_2.width = 70;\n fd_label_2.left = new FormAttachment(0, 0);\n label_2.setLayoutData(fd_label_2);\n label_2.setText(\"其他条件:\");\n\n txtOtherCondition = new StyledText(composite, SWT.BORDER);\n final FormData fd_txtOtherCondition = new FormData();\n fd_txtOtherCondition.bottom = new FormAttachment(100, -1);\n fd_txtOtherCondition.top = new FormAttachment(label_2, 1);\n fd_txtOtherCondition.right = new FormAttachment(100, -1);\n fd_txtOtherCondition.left = new FormAttachment(0, 1);\n txtOtherCondition.setLayoutData(fd_txtOtherCondition);\n\n final Button btnFieldAdd = new Button(group_1, SWT.NONE);\n btnFieldAdd.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(final SelectionEvent e) {\n DataField df = new DataField();\n df.setOutput(Consts.YES);\n df.setSortDirect(\"\");\n df.setSortNo(\"\");\n df.setAggregate(\"\");\n dataFieldList.add(df);\n tvDataField.refresh();\n }\n });\n btnFieldAdd.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/plus.png\"));\n final FormData fd_btnFieldAdd = new FormData();\n fd_btnFieldAdd.bottom = new FormAttachment(100, 0);\n fd_btnFieldAdd.left = new FormAttachment(0, 0);\n fd_btnFieldAdd.height = 20;\n fd_btnFieldAdd.width = 20;\n btnFieldAdd.setLayoutData(fd_btnFieldAdd);\n\n final Button btnFieldDel = new Button(group_1, SWT.NONE);\n btnFieldDel.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(final SelectionEvent e) {\n TableItem[] selectItems = tblDataField.getSelection();\n if (selectItems != null && selectItems.length > 0) {\n for (TableItem ti : selectItems) {\n DataField o = (DataField) ti.getData();\n //\n String cnName = o.getCnName();\n String aliasName = o.getAliasName();\n for (int i = 0;i< configList.size();i++) {\n \tFieldConfig cfig = configList.get(i);\n \tif (cnName.equals(cfig.getCnName()) && aliasName.equals(cfig.getName())) {\n \t\tconfigList.remove(i);\n \t\tbreak;\n \t}\n }\n \n dataFieldList.remove(o);\n }\n tvDataField.refresh();\n tvShowConfig.refresh();\n }\n }\n });\n btnFieldDel.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/minus.png\"));\n final FormData fd_btnFieldDel = new FormData();\n fd_btnFieldDel.bottom = new FormAttachment(100, 0);\n fd_btnFieldDel.left = new FormAttachment(0, 21);\n fd_btnFieldDel.height = 20;\n fd_btnFieldDel.width = 20;\n btnFieldDel.setLayoutData(fd_btnFieldDel);\n\n final TabItem tabSQL = new TabItem(tabFolder, SWT.NONE);\n tabSQL.setText(\"SQL语句\");\n\n final Composite composite_2 = new Composite(tabFolder, SWT.NONE);\n composite_2.setLayout(new FormLayout());\n tabSQL.setControl(composite_2);\n\n final Group group = new Group(composite_2, SWT.NONE);\n final FormData fd_group = new FormData();\n fd_group.top = new FormAttachment(0, -6);\n fd_group.right = new FormAttachment(100, 0);\n fd_group.left = new FormAttachment(0, 0);\n fd_group.bottom = new FormAttachment(100, 0);\n group.setLayoutData(fd_group);\n group.setLayout(new FormLayout());\n\n txtSQL = new StyledText(group, SWT.BORDER|SWT.WRAP|SWT.MULTI|SWT.V_SCROLL|SWT.H_SCROLL);\n final FormData fd_txtSQL = new FormData();\n fd_txtSQL.bottom = new FormAttachment(100, 0);\n fd_txtSQL.top = new FormAttachment(0, -6);\n fd_txtSQL.right = new FormAttachment(100, 0);\n fd_txtSQL.left = new FormAttachment(0, 0);\n txtSQL.setLayoutData(fd_txtSQL);\n txtSQL.setWordWrap(true);\n txtSQL.setFont(SWTResourceManager.getFont(\"Fixedsys\", 10, SWT.NONE));\n txtSQL.setEditable(false);\n\n final TabItem tabItem = new TabItem(tabFolder, SWT.NONE);\n tabItem.setText(\"列表配置\");\n\n final Composite composite_1_1 = new Composite(tabFolder, SWT.NONE);\n composite_1_1.setLayout(new FormLayout());\n tabItem.setControl(composite_1_1);\n\n final Group group_3 = new Group(composite_1_1, SWT.NONE);\n group_3.setLayout(new FormLayout());\n final FormData fd_group_3 = new FormData();\n fd_group_3.left = new FormAttachment(0, 0);\n fd_group_3.bottom = new FormAttachment(100, 0);\n fd_group_3.right = new FormAttachment(100, 0);\n fd_group_3.top = new FormAttachment(0, -6);\n group_3.setLayoutData(fd_group_3);\n\n tvShowConfig = new TableViewer(group_3, SWT.MULTI | SWT.FULL_SELECTION | SWT.BORDER);\n tvShowConfig.setContentProvider(new ViewContentProvider());\n tvShowConfig.setLabelProvider(new ShowConfigLabelProvider());\n tvShowConfig.setColumnProperties(DATAFIELDS);\n tblShowConfig = tvShowConfig.getTable();\n\n CellEditor[] cfigCellEditor = new CellEditor[8];\n cfigCellEditor[0] = new TextCellEditor(tblShowConfig);\n cfigCellEditor[1] = new TextCellEditor(tblShowConfig);\n cfigCellEditor[2] = new TextCellEditor(tblShowConfig);\n cfigCellEditor[3] = new ComboBoxCellEditor(tblShowConfig, Consts.ALIGN_LABEL, SWT.READ_ONLY);\n cfigCellEditor[4] = new TextCellEditor(tblShowConfig);\n cfigCellEditor[5] = new ComboBoxCellEditor(tblShowConfig, Consts.YESNO_LABEL, SWT.READ_ONLY);\n cfigCellEditor[6] = new ComboBoxCellEditor(tblShowConfig, codeSetNames, SWT.READ_ONLY);\n// cellEditor[7] = new DetailLinkCellEditor(tblShowConfig, configList, diagram.getNodes());\n Text text10 = (Text) cfigCellEditor[4].getControl();\n text10.addVerifyListener(new NumberVerifier());\n\n tvShowConfig.setCellEditors(cfigCellEditor);\n tvShowConfig.setCellModifier(new ShowConfigCellModifier(tvShowConfig));\n \n final FormData fd_table_1_1 = new FormData();\n fd_table_1_1.bottom = new FormAttachment(100, -21);\n fd_table_1_1.top = new FormAttachment(0, 1);\n fd_table_1_1.right = new FormAttachment(100, -1);\n fd_table_1_1.left = new FormAttachment(0, 0);\n tblShowConfig.setLayoutData(fd_table_1_1);\n tblShowConfig.setLinesVisible(true);\n tblShowConfig.setHeaderVisible(true);\n\n final TableColumn colCnName_1 = new TableColumn(tblShowConfig, SWT.NONE);\n colCnName_1.setWidth(120);\n colCnName_1.setText(\"中文名\");\n\n final TableColumn colFieldName_1 = new TableColumn(tblShowConfig, SWT.NONE);\n colFieldName_1.setWidth(120);\n colFieldName_1.setText(\"列名\");\n\n final TableColumn colDataType_1 = new TableColumn(tblShowConfig, SWT.NONE);\n colDataType_1.setWidth(60);\n colDataType_1.setText(\"数据格式\");\n\n final TableColumn colAlign = new TableColumn(tblShowConfig, SWT.NONE);\n colAlign.setWidth(70);\n colAlign.setText(\"对齐方式\");\n\n final TableColumn colWidth = new TableColumn(tblShowConfig, SWT.NONE);\n colWidth.setWidth(40);\n colWidth.setText(\"宽度\");\n\n final TableColumn colVisible = new TableColumn(tblShowConfig, SWT.NONE);\n colVisible.setWidth(70);\n colVisible.setText(\"是否显示\");\n\n final TableColumn colCodeSet = new TableColumn(tblShowConfig, SWT.NONE);\n colCodeSet.setWidth(100);\n colCodeSet.setText(\"代码集\");\n\n final Button btnUp = new Button(group_3, SWT.NONE);\n btnUp.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(final SelectionEvent e) {\n if (tblShowConfig.getSelectionCount() == 1) {\n int idx = tblShowConfig.getSelectionIndex();\n if (idx > 0) {\n FieldConfig o = (FieldConfig) tblShowConfig.getSelection()[0].getData();\n configList.remove(o);\n configList.add(idx - 1, o);\n tvShowConfig.refresh();\n }\n }\n }\n });\n btnUp.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/arrow-090.png\"));\n final FormData fd_btnUp = new FormData();\n fd_btnUp.left = new FormAttachment(0,1);\n fd_btnUp.top = new FormAttachment(tblShowConfig, 1);\n fd_btnUp.width = 20;\n fd_btnUp.height = 20;\n btnUp.setLayoutData(fd_btnUp);\n btnUp.setText(\"button\");\n\n final Button btnDown = new Button(group_3, SWT.NONE);\n btnDown.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(final SelectionEvent e) {\n if (tblShowConfig.getSelectionCount() == 1) {\n int idx = tblShowConfig.getSelectionIndex();\n if (idx < tblShowConfig.getItemCount()) {\n FieldConfig o = (FieldConfig) tblShowConfig.getSelection()[0].getData();\n configList.remove(o);\n configList.add(idx + 1, o);\n tvShowConfig.refresh();\n }\n }\n }\n });\n btnDown.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/arrow-270.png\"));\n final FormData fd_btnDown = new FormData();\n fd_btnDown.top = new FormAttachment(tblShowConfig, 1);\n fd_btnDown.width = 20;\n fd_btnDown.height = 20;\n fd_btnDown.left = new FormAttachment(btnUp, 1);\n btnDown.setLayoutData(fd_btnDown);\n btnDown.setText(\"button\");\n\n //\n init();\n }", "private void createContents() {\r\n\t\tshell = new Shell(getParent(), getStyle());\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(getText());\r\n\t\tshell.setLayout(new FillLayout(SWT.HORIZONTAL));\r\n\t\t\r\n\t\tComposite composite = new Composite(shell, SWT.NONE);\r\n\t\tcomposite.setLayout(new FillLayout(SWT.HORIZONTAL));\r\n\t\t\r\n\t\tComposite composite_1 = new Composite(composite, SWT.NONE);\r\n\t\tRowLayout rl_composite_1 = new RowLayout(SWT.VERTICAL);\r\n\t\trl_composite_1.center = true;\r\n\t\trl_composite_1.fill = true;\r\n\t\tcomposite_1.setLayout(rl_composite_1);\r\n\t\t\r\n\t\tComposite composite_2 = new Composite(composite_1, SWT.NONE);\r\n\t\tcomposite_2.setLayout(new FillLayout(SWT.VERTICAL));\r\n\t\t\r\n\t\tButton btnNewButton = new Button(composite_2, SWT.NONE);\r\n\t\tbtnNewButton.setText(\"New Button\");\r\n\t\t\r\n\t\tButton btnRadioButton = new Button(composite_2, SWT.RADIO);\r\n\t\tbtnRadioButton.setText(\"Radio Button\");\r\n\t\t\r\n\t\tButton btnCheckButton = new Button(composite_2, SWT.CHECK);\r\n\t\tbtnCheckButton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnCheckButton.setText(\"Check Button\");\r\n\r\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(450, 300);\n\t\tshell.setText(\"SWT Application\");\n\t\t\n\t\tButton btnNewButton = new Button(shell, SWT.NONE);\n\t\tbtnNewButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setBounds(41, 226, 75, 25);\n\t\tbtnNewButton.setText(\"Limpiar\");\n\t\t\n\t\tButton btnGuardar = new Button(shell, SWT.NONE);\n\t\tbtnGuardar.setBounds(257, 226, 75, 25);\n\t\tbtnGuardar.setText(\"Guardar\");\n\t\t\n\t\ttext = new Text(shell, SWT.BORDER);\n\t\ttext.setBounds(25, 181, 130, 21);\n\t\t\n\t\ttext_1 = new Text(shell, SWT.BORDER);\n\t\ttext_1.setBounds(230, 181, 130, 21);\n\t\t\n\t\ttext_2 = new Text(shell, SWT.BORDER);\n\t\ttext_2.setBounds(25, 134, 130, 21);\n\t\t\n\t\ttext_3 = new Text(shell, SWT.BORDER);\n\t\ttext_3.setBounds(25, 86, 130, 21);\n\t\t\n\t\ttext_4 = new Text(shell, SWT.BORDER);\n\t\ttext_4.setBounds(25, 42, 130, 21);\n\t\t\n\t\tButton btnNewButton_1 = new Button(shell, SWT.NONE);\n\t\tbtnNewButton_1.setBounds(227, 130, 75, 25);\n\t\tbtnNewButton_1.setText(\"Buscar\");\n\t\t\n\t\tLabel label = new Label(shell, SWT.NONE);\n\t\tlabel.setBounds(25, 21, 55, 15);\n\t\tlabel.setText(\"#\");\n\t\t\n\t\tLabel lblFechaYHora = new Label(shell, SWT.NONE);\n\t\tlblFechaYHora.setBounds(25, 69, 75, 15);\n\t\tlblFechaYHora.setText(\"Fecha y Hora\");\n\t\t\n\t\tLabel lblPlaca = new Label(shell, SWT.NONE);\n\t\tlblPlaca.setBounds(25, 113, 55, 15);\n\t\tlblPlaca.setText(\"Placa\");\n\t\t\n\t\tLabel lblMarca = new Label(shell, SWT.NONE);\n\t\tlblMarca.setBounds(25, 161, 55, 15);\n\t\tlblMarca.setText(\"Marca\");\n\t\t\n\t\tLabel lblColor = new Label(shell, SWT.NONE);\n\t\tlblColor.setBounds(230, 161, 55, 15);\n\t\tlblColor.setText(\"Color\");\n\n\t}", "protected void createContents() {\n\t\t\n\t\tshlMailview = new Shell();\n\t\tshlMailview.addShellListener(new ShellAdapter() {\n\t\t\t@Override\n\t\t\tpublic void shellClosed(ShellEvent e) {\n\t\t\t\tdispose();\n\t\t\t}\n\t\t});\n\t\tshlMailview.setBackground(SWTResourceManager.getColor(SWT.COLOR_GRAY));\n\t\tshlMailview.setSize(1124, 800);\n\t\tshlMailview.setText(\"MailView\");\n\t\tshlMailview.setLayout(new BorderLayout(0, 0));\t\t\n\t\t\n\t\tMenu menu = new Menu(shlMailview, SWT.BAR);\n\t\tshlMailview.setMenuBar(menu);\n\t\t\n\t\tMenuItem mntmNewSubmenu = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmNewSubmenu.setText(\"\\u0413\\u043B\\u0430\\u0432\\u043D\\u0430\\u044F\");\n\t\t\n\t\tMenu mainMenu = new Menu(mntmNewSubmenu);\n\t\tmntmNewSubmenu.setMenu(mainMenu);\n\t\t\n\t\tMenuItem menuItem = new MenuItem(mainMenu, SWT.NONE);\n\t\tmenuItem.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmyThready.stop();// interrupt();\n\t\t\t\tmyThready = new Thread(timer);\n\t\t\t\tmyThready.setDaemon(true);\n\t\t\t\tmyThready.start();\n\t\t\t}\n\t\t});\n\t\tmenuItem.setText(\"\\u041E\\u0431\\u043D\\u043E\\u0432\\u0438\\u0442\\u044C\");\n\t\t\n\t\tMenuItem exitMenu = new MenuItem(mainMenu, SWT.NONE);\n\t\texitMenu.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\t\t\t\t\n\t\t\t\tshlMailview.close();\n\t\t\t}\n\t\t});\n\t\texitMenu.setText(\"\\u0412\\u044B\\u0445\\u043E\\u0434\");\n\t\t\n\t\tMenuItem filtrMenu = new MenuItem(menu, SWT.NONE);\n\t\tfiltrMenu.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tfilterDialog fd = new filterDialog(shlMailview, 0);\n\t\t\t\tfd.open();\n\t\t\t}\n\t\t});\n\t\tfiltrMenu.setText(\"\\u0424\\u0438\\u043B\\u044C\\u0442\\u0440\");\n\t\t\n\t\tMenuItem settingsMenu = new MenuItem(menu, SWT.NONE);\n\t\tsettingsMenu.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tsettingDialog sd = new settingDialog(shlMailview, 0);\n\t\t\t\tsd.open();\n\t\t\t}\n\t\t});\n\t\tsettingsMenu.setText(\"\\u041D\\u0430\\u0441\\u0442\\u0440\\u043E\\u0439\\u043A\\u0438\");\n\t\t\n\t\tfinal TabFolder tabFolder = new TabFolder(shlMailview, SWT.NONE);\n\t\ttabFolder.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tif(tabFolder.getSelectionIndex() == 1)\n\t\t\t\t{\n\t\t\t\t\tservice.RepaintAccount(accountsTable);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\ttabFolder.setBackground(SWTResourceManager.getColor(SWT.COLOR_GRAY));\n\t\t\n\t\tTabItem lettersTab = new TabItem(tabFolder, SWT.NONE);\n\t\tlettersTab.setText(\"\\u041F\\u0438\\u0441\\u044C\\u043C\\u0430\");\n\t\t\n\t\tComposite composite_2 = new Composite(tabFolder, SWT.NONE);\n\t\tlettersTab.setControl(composite_2);\n\t\tcomposite_2.setLayout(new FormLayout());\n\t\t\n\t\tComposite composite_4 = new Composite(composite_2, SWT.NONE);\n\t\tFormData fd_composite_4 = new FormData();\n\t\tfd_composite_4.bottom = new FormAttachment(0, 81);\n\t\tfd_composite_4.top = new FormAttachment(0);\n\t\tfd_composite_4.left = new FormAttachment(0);\n\t\tfd_composite_4.right = new FormAttachment(0, 1100);\n\t\tcomposite_4.setLayoutData(fd_composite_4);\n\t\t\n\t\tComposite composite_5 = new Composite(composite_2, SWT.NONE);\n\t\tcomposite_5.setLayout(new BorderLayout(0, 0));\n\t\tFormData fd_composite_5 = new FormData();\n\t\tfd_composite_5.bottom = new FormAttachment(composite_4, 281, SWT.BOTTOM);\n\t\tfd_composite_5.left = new FormAttachment(composite_4, 0, SWT.LEFT);\n\t\tfd_composite_5.right = new FormAttachment(composite_4, 0, SWT.RIGHT);\n\t\tfd_composite_5.top = new FormAttachment(composite_4, 6);\n\t\tcomposite_5.setLayoutData(fd_composite_5);\n\t\t\n\t\tComposite composite_10 = new Composite(composite_2, SWT.NONE);\n\t\tFormData fd_composite_10 = new FormData();\n\t\tfd_composite_10.top = new FormAttachment(composite_5, 6);\n\t\tfd_composite_10.bottom = new FormAttachment(100, -10);\n\t\t\n\t\tlettersTable = new Table(composite_5, SWT.BORDER | SWT.FULL_SELECTION);\n\t\tlettersTable.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tif(lettersTable.getItems().length>0)\n\t\t\t\t{\t\t\t\t\t\n\t\t\t\t\tTableItem item = lettersTable.getSelection()[0];\n\t\t\t\t\titem.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.NONE));\n\t\t\t\t\tbox.Preview(Integer.parseInt(item.getText(0)));\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tlettersTable.setLinesVisible(true);\n\t\tlettersTable.setHeaderVisible(true);\n\t\tTableColumn msgId = new TableColumn(lettersTable, SWT.NONE);\n\t\tmsgId.setResizable(false);\n\t\tmsgId.setText(\"ID\");\n\t\t\n\t\tTableColumn from = new TableColumn(lettersTable, SWT.NONE);\n\t\tfrom.setWidth(105);\n\t\tfrom.setText(\"\\u041E\\u0442\");\n\t\tfrom.addListener(SWT.Selection, SortListenerFactory.getListener(SortListenerFactory.STRING_COMPARATOR));\n\t\t\n\t\tTableColumn to = new TableColumn(lettersTable, SWT.NONE);\n\t\tto.setWidth(111);\n\t\tto.setText(\"\\u041A\\u043E\\u043C\\u0443\");\n\t\tto.addListener(SWT.Selection, SortListenerFactory.getListener(SortListenerFactory.STRING_COMPARATOR));\n\t\t\n\t\tTableColumn subject = new TableColumn(lettersTable, SWT.NONE);\n\t\tsubject.setWidth(406);\n\t\tsubject.setText(\"\\u0422\\u0435\\u043C\\u0430\");\n\t\tsubject.addListener(SWT.Selection, SortListenerFactory.getListener(SortListenerFactory.STRING_COMPARATOR));\n\t\t\n\t\tTableColumn created = new TableColumn(lettersTable, SWT.NONE);\n\t\tcreated.setWidth(176);\n\t\tcreated.setText(\"\\u0421\\u043E\\u0437\\u0434\\u0430\\u043D\\u043E\");\n\t\tcreated.addListener(SWT.Selection, SortListenerFactory.getListener(SortListenerFactory.DATE_COMPARATOR));\n\t\t\n\t\tTableColumn received = new TableColumn(lettersTable, SWT.NONE);\n\t\treceived.setWidth(194);\n\t\treceived.setText(\"\\u041F\\u043E\\u043B\\u0443\\u0447\\u0435\\u043D\\u043E\");\n\t\treceived.addListener(SWT.Selection, SortListenerFactory.getListener(SortListenerFactory.DATE_COMPARATOR));\t\t\n\t\t\n\t\tMenu popupMenuLetter = new Menu(lettersTable);\n\t\tlettersTable.setMenu(popupMenuLetter);\n\t\t\n\t\tMenuItem miUpdate = new MenuItem(popupMenuLetter, SWT.NONE);\n\t\tmiUpdate.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmyThready.stop();// interrupt();\n\t\t\t\tmyThready = new Thread(timer);\n\t\t\t\tmyThready.setDaemon(true);\n\t\t\t\tmyThready.start();\n\t\t\t}\n\t\t});\n\t\tmiUpdate.setText(\"\\u041E\\u0431\\u043D\\u043E\\u0432\\u0438\\u0442\\u044C\");\n\t\t\n\t\tfinal MenuItem miDelete = new MenuItem(popupMenuLetter, SWT.NONE);\n\t\tmiDelete.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tif(lettersTable.getItems().length>0)\n\t\t\t\t{\t\t\t\t\n\t\t\t\t\tTableItem item = lettersTable.getSelection()[0];\n\t\t\t\t\tbox.deleteMessage(Integer.parseInt(item.getText(0)), lettersTable.getSelectionIndex());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tmiDelete.setText(\"\\u0412 \\u043A\\u043E\\u0440\\u0437\\u0438\\u043D\\u0443\");\n\t\tfd_composite_10.right = new FormAttachment(composite_4, 0, SWT.RIGHT);\n\t\t\n\t\tfinal Button btnInbox = new Button(composite_4, SWT.NONE);\n\t\tfinal Button btnTrash = new Button(composite_4, SWT.NONE);\n\t\t\n\t\tbtnInbox.setBounds(10, 10, 146, 39);\n\t\tbtnInbox.setEnabled(false);\n\t\tbtnInbox.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tSetting.Instance().SetTab(false);\t\t\t\t\n\t\t\t\tbtnInbox.setEnabled(false);\n\t\t\t\tmiDelete.setText(\"\\u0412 \\u043A\\u043E\\u0440\\u0437\\u0438\\u043D\\u0443\");\n\t\t\t\tbtnTrash.setEnabled(true);\n\t\t\t\tbox.rePaint();\n\t\t\t}\n\t\t});\n\t\tbtnInbox.setText(\"\\u0412\\u0445\\u043E\\u0434\\u044F\\u0449\\u0438\\u0435\");\n\t\tbtnTrash.setLocation(170, 10);\n\t\tbtnTrash.setSize(146, 39);\n\t\tbtnTrash.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tSetting.Instance().SetTab(true);\n\t\t\t\tbtnInbox.setEnabled(true);\n\t\t\t\tmiDelete.setText(\"\\u0423\\u0434\\u0430\\u043B\\u0438\\u0442\\u044C\");\n\t\t\t\tbtnTrash.setEnabled(false);\n\t\t\t\tbox.rePaint();\n\t\t\t}\n\t\t});\n\t\tbtnTrash.setText(\"\\u041A\\u043E\\u0440\\u0437\\u0438\\u043D\\u0430\");\n\t\t\n\t\tButton deleteLetter = new Button(composite_4, SWT.NONE);\n\t\tdeleteLetter.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tif(lettersTable.getItems().length>0)\n\t\t\t\t{\t\t\t\t\n\t\t\t\t\tTableItem item = lettersTable.getSelection()[0];\n\t\t\t\t\tbox.deleteMessage(Integer.parseInt(item.getText(0)), lettersTable.getSelectionIndex());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tdeleteLetter.setLocation(327, 11);\n\t\tdeleteLetter.setSize(146, 37);\n\t\tdeleteLetter.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.BOLD));\n\t\tdeleteLetter.setText(\"\\u0423\\u0434\\u0430\\u043B\\u0438\\u0442\\u044C\");\n\t\t\n\t\tLabel label = new Label(composite_4, SWT.NONE);\n\t\tlabel.setLocation(501, 17);\n\t\tlabel.setSize(74, 27);\n\t\tlabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tlabel.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\tlabel.setText(\"\\u0410\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\");\n\t\t\n\t\tCombo listAccounts = new Combo(composite_4, SWT.NONE);\n\t\tlistAccounts.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlistAccounts.setLocation(583, 19);\n\t\tlistAccounts.setSize(180, 23);\n\t\tlistAccounts.setItems(new String[] {\"\\u0412\\u0441\\u0435\"});\n\t\tlistAccounts.select(0);\n\t\t\n\t\tprogressBar = new ProgressBar(composite_4, SWT.NONE);\n\t\tprogressBar.setBounds(10, 64, 263, 17);\n\t\tfd_composite_10.left = new FormAttachment(0);\n\t\tcomposite_10.setLayoutData(fd_composite_10);\n\t\t\n\t\theaderMessage = new Text(composite_10, SWT.BORDER);\n\t\theaderMessage.setFont(SWTResourceManager.getFont(\"Segoe UI\", 14, SWT.NORMAL));\n\t\theaderMessage.setBounds(0, 0, 1100, 79);\n\t\t\n\t\tsc = new ScrolledComposite(composite_10, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);\n\t\tsc.setBounds(0, 85, 1100, 230);\n\t\tsc.setExpandHorizontal(true);\n\t\tsc.setExpandVertical(true);\t\t\n\t\t\n\t\tTabItem accountsTab = new TabItem(tabFolder, SWT.NONE);\n\t\taccountsTab.setText(\"\\u0410\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\\u044B\");\n\t\t\n\t\tComposite accountComposite = new Composite(tabFolder, SWT.NONE);\n\t\taccountsTab.setControl(accountComposite);\n\t\taccountComposite.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_LIGHT_SHADOW));\n\t\t\n\t\t\tLabel labelListAccounts = new Label(accountComposite, SWT.NONE);\n\t\t\tlabelListAccounts.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_LIGHT_SHADOW));\n\t\t\tlabelListAccounts.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\t\tlabelListAccounts.setBounds(10, 37, 148, 31);\n\t\t\tlabelListAccounts.setText(\"\\u0421\\u043F\\u0438\\u0441\\u043E\\u043A \\u0430\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\\u043E\\u0432\");\n\t\t\t\n\t\t\tComposite Actions = new Composite(accountComposite, SWT.NONE);\n\t\t\tActions.setBounds(412, 71, 163, 234);\n\t\t\t\n\t\t\tButton addAccount = new Button(Actions, SWT.NONE);\n\t\t\taddAccount.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\tAccountDialog ad = new AccountDialog(shlMailview, accountsTable, true);\n\t\t\t\t\tad.open();\n\t\t\t\t}\n\t\t\t});\n\t\t\taddAccount.setForeground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\t\taddAccount.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\t\taddAccount.setBounds(10, 68, 141, 47);\n\t\t\taddAccount.setText(\"\\u0414\\u043E\\u0431\\u0430\\u0432\\u0438\\u0442\\u044C\");\n\t\t\t\n\t\t\tButton editAccount = new Button(Actions, SWT.NONE);\n\t\t\teditAccount.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\tif(accountsTable.getItems().length>0)\n\t\t\t\t\t{\n\t\t\t\t\tAccountDialog ad = new AccountDialog(shlMailview, accountsTable, false);\n\t\t\t\t\tad.open();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\teditAccount.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\t\teditAccount.setBounds(10, 121, 141, 47);\n\t\t\teditAccount.setText(\"\\u0418\\u0437\\u043C\\u0435\\u043D\\u0438\\u0442\\u044C\");\n\t\t\t\n\t\t\tButton deleteAccount = new Button(Actions, SWT.NONE);\n\t\t\tdeleteAccount.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\tif(accountsTable.getItems().length>0)\n\t\t\t\t\t{\n\t\t\t\t\t\tTableItem item = accountsTable.getSelection()[0];\n\t\t\t\t\t\tif(MessageDialog.openConfirm(shlMailview, \"Удаление\", \"Вы хотите удалить учетную запись \" + item.getText(1)+\"?\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tservice.DeleteAccount(item.getText(0));\n\t\t\t\t\t\t\tservice.RepaintAccount(accountsTable);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\tdeleteAccount.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\t\t\t\n\t\t\tdeleteAccount.setBounds(10, 174, 141, 47);\n\t\t\tdeleteAccount.setText(\"\\u0423\\u0434\\u0430\\u043B\\u0438\\u0442\\u044C\");\n\t\t\t\n\t\t\tfinal Button Include = new Button(Actions, SWT.NONE);\n\t\t\tInclude.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\tif(accountsTable.getItems().length>0)\n\t\t\t\t\t{\n\t\t\t\t\t\tTableItem item = accountsTable.getSelection()[0];\n\t\t\t\t\t\tservice.toogleIncludeAccount(item.getText(0));\n\t\t\t\t\t\tservice.RepaintAccount(accountsTable);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\tInclude.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\t\tInclude.setBounds(10, 10, 141, 47);\n\t\t\tInclude.setText(\"\\u0412\\u043A\\u043B\\u044E\\u0447\\u0438\\u0442\\u044C\");\n\n\t\t\taccountsTable = new Table(accountComposite, SWT.SINGLE | SWT.BORDER | SWT.FULL_SELECTION);\n\t\t\taccountsTable.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\tif(accountsTable.getSelection()[0].getText(2)==\"Включен\")\n\t\t\t\t\t{\n\t\t\t\t\t\tInclude.setText(\"\\u0412\\u044B\\u043A\\u043B\\u044E\\u0447\\u0438\\u0442\\u044C\");\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tInclude.setText(\"\\u0412\\u043A\\u043B\\u044E\\u0447\\u0438\\u0442\\u044C\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\n\t\t\taccountsTable.setBounds(10, 74, 396, 296);\n\t\t\taccountsTable.setHeaderVisible(true);\n\t\t\taccountsTable.setLinesVisible(true);\n\t\t\t\n\t\t\tTableColumn tblclmnId = new TableColumn(accountsTable, SWT.NONE);\n\t\t\ttblclmnId.setWidth(35);\n\t\t\ttblclmnId.setText(\"ID\");\n\t\t\t//accountsTable.setRedraw(false);\n\t\t\t\n\t\t\tTableColumn columnLogin = new TableColumn(accountsTable, SWT.LEFT);\n\t\t\tcolumnLogin.setWidth(244);\n\t\t\tcolumnLogin.setText(\"\\u0410\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\");\n\t\t\t\n\t\t\tTableColumn columnState = new TableColumn(accountsTable, SWT.LEFT);\n\t\t\tcolumnState.setWidth(100);\n\t\t\tcolumnState.setText(\"\\u0421\\u043E\\u0441\\u0442\\u043E\\u044F\\u043D\\u0438\\u0435\");\n\t}", "protected void createContents() {\n setText(BUNDLE.getString(\"TranslationManagerShell.Application.Name\"));\n setSize(599, 505);\n\n final Composite cmpMain = new Composite(this, SWT.NONE);\n cmpMain.setLayout(new FormLayout());\n\n final Composite cmpControls = new Composite(cmpMain, SWT.NONE);\n final FormData fd_cmpControls = new FormData();\n fd_cmpControls.right = new FormAttachment(100, -5);\n fd_cmpControls.top = new FormAttachment(0, 5);\n fd_cmpControls.left = new FormAttachment(0, 5);\n cmpControls.setLayoutData(fd_cmpControls);\n cmpControls.setLayout(new FormLayout());\n\n final ToolBar modifyToolBar = new ToolBar(cmpControls, SWT.FLAT);\n\n tiSave = new ToolItem(modifyToolBar, SWT.PUSH);\n tiSave.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Save\"));\n tiSave.setEnabled(false);\n tiSave.setDisabledImage(SWTResourceManager.getImage(TranslationManagerShell.class,\n \"/images/tools16x16/d_save.gif\"));\n tiSave.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_save.gif\"));\n\n tiUndo = new ToolItem(modifyToolBar, SWT.PUSH);\n tiUndo.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Undo\"));\n tiUndo.setEnabled(false);\n tiUndo.setDisabledImage(SWTResourceManager.getImage(TranslationManagerShell.class,\n \"/images/tools16x16/d_reset.gif\"));\n tiUndo.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_reset.gif\"));\n\n tiDeleteSelected = new ToolItem(modifyToolBar, SWT.PUSH);\n tiDeleteSelected.setDisabledImage(SWTResourceManager.getImage(TranslationManagerShell.class,\n \"/images/tools16x16/d_remove.gif\"));\n tiDeleteSelected.setEnabled(false);\n tiDeleteSelected.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Delete\"));\n tiDeleteSelected.setImage(SWTResourceManager.getImage(TranslationManagerShell.class,\n \"/images/tools16x16/e_remove.gif\"));\n\n txtFilter = new LVSText(cmpControls, SWT.BORDER);\n final FormData fd_txtFilter = new FormData();\n fd_txtFilter.right = new FormAttachment(25, 0);\n fd_txtFilter.top = new FormAttachment(modifyToolBar, 0, SWT.CENTER);\n fd_txtFilter.left = new FormAttachment(modifyToolBar, 25, SWT.RIGHT);\n txtFilter.setLayoutData(fd_txtFilter);\n\n final ToolBar filterToolBar = new ToolBar(cmpControls, SWT.FLAT);\n final FormData fd_filterToolBar = new FormData();\n fd_filterToolBar.top = new FormAttachment(modifyToolBar, 0, SWT.TOP);\n fd_filterToolBar.left = new FormAttachment(txtFilter, 5, SWT.RIGHT);\n filterToolBar.setLayoutData(fd_filterToolBar);\n\n tiFilter = new ToolItem(filterToolBar, SWT.NONE);\n tiFilter.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_find.gif\"));\n tiFilter.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Filter\"));\n\n tiLocale = new ToolItem(filterToolBar, SWT.DROP_DOWN);\n tiLocale.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Locale\"));\n tiLocale.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_globe.png\"));\n\n menuLocale = new Menu(filterToolBar);\n addDropDown(tiLocale, menuLocale);\n\n lblSearchResults = new Label(cmpControls, SWT.NONE);\n lblSearchResults.setVisible(false);\n final FormData fd_lblSearchResults = new FormData();\n fd_lblSearchResults.top = new FormAttachment(filterToolBar, 0, SWT.CENTER);\n fd_lblSearchResults.left = new FormAttachment(filterToolBar, 5, SWT.RIGHT);\n lblSearchResults.setLayoutData(fd_lblSearchResults);\n lblSearchResults.setText(BUNDLE.getString(\"TranslationManagerShell.Label.Results\"));\n\n final ToolBar translateToolBar = new ToolBar(cmpControls, SWT.NONE);\n final FormData fd_translateToolBar = new FormData();\n fd_translateToolBar.top = new FormAttachment(filterToolBar, 0, SWT.TOP);\n fd_translateToolBar.right = new FormAttachment(100, 0);\n translateToolBar.setLayoutData(fd_translateToolBar);\n\n tiDebug = new ToolItem(translateToolBar, SWT.PUSH);\n tiDebug.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Debug\"));\n tiDebug.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/debug.png\"));\n\n new ToolItem(translateToolBar, SWT.SEPARATOR);\n\n tiAddBase = new ToolItem(translateToolBar, SWT.PUSH);\n tiAddBase.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.AddBase\"));\n tiAddBase.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_add.gif\"));\n\n tiTranslate = new ToolItem(translateToolBar, SWT.CHECK);\n tiTranslate.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Translate\"));\n tiTranslate.setImage(SWTResourceManager\n .getImage(TranslationManagerShell.class, \"/images/tools16x16/target.png\"));\n\n cmpTable = new Composite(cmpMain, SWT.NONE);\n cmpTable.setLayout(new FillLayout());\n final FormData fd_cmpTable = new FormData();\n fd_cmpTable.bottom = new FormAttachment(100, -5);\n fd_cmpTable.right = new FormAttachment(cmpControls, 0, SWT.RIGHT);\n fd_cmpTable.left = new FormAttachment(cmpControls, 0, SWT.LEFT);\n fd_cmpTable.top = new FormAttachment(cmpControls, 5, SWT.BOTTOM);\n cmpTable.setLayoutData(fd_cmpTable);\n\n final Menu menu = new Menu(this, SWT.BAR);\n setMenuBar(menu);\n\n final MenuItem menuItemFile = new MenuItem(menu, SWT.CASCADE);\n menuItemFile.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.File\"));\n\n final Menu menuFile = new Menu(menuItemFile);\n menuItemFile.setMenu(menuFile);\n\n menuItemExit = new MenuItem(menuFile, SWT.NONE);\n menuItemExit.setAccelerator(SWT.ALT | SWT.F4);\n menuItemExit.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.File.Exit\"));\n\n final MenuItem menuItemHelp = new MenuItem(menu, SWT.CASCADE);\n menuItemHelp.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.Help\"));\n\n final Menu menuHelp = new Menu(menuItemHelp);\n menuItemHelp.setMenu(menuHelp);\n\n menuItemDebug = new MenuItem(menuHelp, SWT.NONE);\n menuItemDebug.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.Help.Debug\"));\n\n new MenuItem(menuHelp, SWT.SEPARATOR);\n\n menuItemAbout = new MenuItem(menuHelp, SWT.NONE);\n menuItemAbout.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.Help.About\"));\n //\n }", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"SWT Application\");\r\n\t\tshell.setLayout(new FillLayout(SWT.HORIZONTAL));\r\n\t\t\r\n\t\tfinal TabFolder tabFolder = new TabFolder(shell, SWT.NONE);\r\n\t\ttabFolder.setToolTipText(\"\");\r\n\t\t\r\n\t\tTabItem tabItem = new TabItem(tabFolder, SWT.NONE);\r\n\t\ttabItem.setText(\"欢迎使用\");\r\n\t\t\r\n\t\tTabItem tabItem_1 = new TabItem(tabFolder, SWT.NONE);\r\n\t\ttabItem_1.setText(\"员工查询\");\r\n\t\t\r\n\t\tMenu menu = new Menu(shell, SWT.BAR);\r\n\t\tshell.setMenuBar(menu);\r\n\t\t\r\n\t\tMenuItem menuItem = new MenuItem(menu, SWT.NONE);\r\n\t\tmenuItem.setText(\"系统管理\");\r\n\t\t\r\n\t\tMenuItem menuItem_1 = new MenuItem(menu, SWT.CASCADE);\r\n\t\tmenuItem_1.setText(\"员工管理\");\r\n\t\t\r\n\t\tMenu menu_1 = new Menu(menuItem_1);\r\n\t\tmenuItem_1.setMenu(menu_1);\r\n\t\t\r\n\t\tMenuItem menuItem_2 = new MenuItem(menu_1, SWT.NONE);\r\n\t\tmenuItem_2.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tTabItem tbtmNewItem = new TabItem(tabFolder,SWT.NONE);\r\n\t\t\t\ttbtmNewItem.setText(\"员工查询\");\r\n\t\t\t\t//创建自定义组件\r\n\t\t\t\tEmpQueryCmp eqc = new EmpQueryCmp(tabFolder, SWT.NONE);\r\n\t\t\t\t//设置标签显示的自定义组件\r\n\t\t\t\ttbtmNewItem.setControl(eqc);\r\n\t\t\t\t\r\n\t\t\t\t//选中当前标签页\r\n\t\t\t\ttabFolder.setSelection(tbtmNewItem);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\tmenuItem_2.setText(\"员工查询\");\r\n\r\n\t}", "@Override\n public void Create() {\n initView();\n initData();\n }", "private void createContents() {\r\n\t\tshlEventBlocker = new Shell(getParent(), getStyle());\r\n\t\tshlEventBlocker.setSize(167, 135);\r\n\t\tshlEventBlocker.setText(\"Event Blocker\");\r\n\t\t\r\n\t\tLabel lblRunningEvent = new Label(shlEventBlocker, SWT.NONE);\r\n\t\tlblRunningEvent.setBounds(10, 10, 100, 15);\r\n\t\tlblRunningEvent.setText(\"Running Event:\");\r\n\t\t\r\n\t\tLabel lblevent = new Label(shlEventBlocker, SWT.NONE);\r\n\t\tlblevent.setFont(SWTResourceManager.getFont(\"Segoe UI\", 15, SWT.BOLD));\r\n\t\tlblevent.setBounds(20, 31, 129, 35);\r\n\t\tlblevent.setText(eventName);\r\n\t\t\r\n\t\tButton btnFinish = new Button(shlEventBlocker, SWT.NONE);\r\n\t\tbtnFinish.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseUp(MouseEvent e) {\r\n\t\t\t\tshlEventBlocker.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnFinish.setBounds(10, 72, 75, 25);\r\n\t\tbtnFinish.setText(\"Finish\");\r\n\r\n\t}", "public void createContents(Composite parent) {\n\t\tparent.setLayout(new FillLayout());\n\t\tfMainSection = fToolkit.createSection(parent, Section.TITLE_BAR);\n\n\t\tComposite mainComposite = fToolkit.createComposite(fMainSection, SWT.NONE);\n\t\tfToolkit.paintBordersFor(mainComposite);\n\t\tfMainSection.setClient(mainComposite);\n\t\tmainComposite.setLayout(new GridLayout(1, true));\n\t\t\n\t\tcreateClassListViewer(mainComposite);\n\t\tcreateBottomButtons(mainComposite);\n\t\tcreateTextClientComposite(fMainSection);\n\t}", "private void createContents() {\n\t\tshlAbout = new Shell(getParent(), SWT.DIALOG_TRIM | SWT.RESIZE);\n\t\tshlAbout.setMinimumSize(new Point(800, 600));\n\t\tshlAbout.setSize(800, 688);\n\t\tshlAbout.setText(\"About\");\n\t\t\n\t\tLabel lblKelimetrikAPsycholinguistic = new Label(shlAbout, SWT.CENTER);\n\t\tlblKelimetrikAPsycholinguistic.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\tlblKelimetrikAPsycholinguistic.setBounds(0, 10, 784, 21);\n\t\tlblKelimetrikAPsycholinguistic.setText(\"KelimetriK: A psycholinguistic tool of Turkish\");\n\t\t\n\t\tScrolledComposite scrolledComposite = new ScrolledComposite(shlAbout, SWT.BORDER | SWT.V_SCROLL);\n\t\tscrolledComposite.setBounds(0, 37, 774, 602);\n\t\tscrolledComposite.setExpandHorizontal(true);\n\t\tscrolledComposite.setExpandVertical(true);\n\t\t\n\t\tComposite composite = new Composite(scrolledComposite, SWT.NONE);\n\t\t\n\t\tLabel label = new Label(composite, SWT.NONE);\n\t\tlabel.setSize(107, 21);\n\t\tlabel.setText(\"Introduction\");\n\t\tlabel.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\tlabel.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\t\n\t\tLabel label_1 = new Label(composite, SWT.WRAP);\n\t\tlabel_1.setLocation(0, 27);\n\t\tlabel_1.setSize(753, 157);\n\t\tlabel_1.setText(\"Selection of appropriate words for a fully controlled word stimuli set is an essential component for conducting an effective psycholinguistic studies (Perea, & Polatsek, 1998; Bowers, Davis, & Hanley, 2004). For example, if the word stimuli set of a visual word recognition study is full of high frequency words, this may create a bias on the behavioral scores and would lead to incorrect inferences about the hypothesis. Thus, experimenters who are intended to work with any kind of verbal stimuli should consider such linguistic variables to obtain reliable results.\\r\\n\\r\\nKelimetriK is a query-based software program designed to demonstrate several lexical variables and orthographic statistics of words. As shown in Figure X, the user-friendly interface of KelimetriK is an easy-to-use software developed to be a helpful source experimenters who are preparing verbal stimuli sets for psycholinguistic studies. KelimetriK provides information about several lexical properties of word-frequency, neighborhood size, orthographic similarity and relatedness. KelimetriK\\u2019s counterparts in other language are N-watch in English (Davis, 2005) and BuscaPalabras in Spanish (Davis, & Perea, 2005).\");\n\t\t\n\t\tLabel label_2 = new Label(composite, SWT.NONE);\n\t\tlabel_2.setLocation(0, 190);\n\t\tlabel_2.setSize(753, 21);\n\t\tlabel_2.setText(\"The lexical variables in KelimetriK Software\");\n\t\tlabel_2.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\tlabel_2.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\t\n\t\tLabel label_3 = new Label(composite, SWT.WRAP);\n\t\tlabel_3.setBounds(0, 228, 753, 546);\n\t\tlabel_3.setText(\"Output lexical variables (and orthographic statistics) in KelimetriK are word-frequency, bigram and tri-gram frequency and average frequency values, orthographic neighborhood size (Coltheart\\u2019s N), orthographic Levensthein distance 20 (OLD20) and transposed letter and subset/superset similarity.\\r\\n\\r\\nWord frequency is a value that describes of how many times a word occurred in a given text. Research shows that there is a consistent logarithmic relationship between reaction time and word\\u2019s frequency score; the impact of effect is higher for smaller frequencies words that the effect gets smaller on higher frequency scores (Davis, 2005).\\r\\n\\r\\nBi-grams and tri-grams are are obtained by decomposing a word (string of tokens) into sequences of two and three number of neighboring elements (Manning, & Sch\\u00FCtze, 1999). For example, the Turkish word \\u201Ckule\\u201D (tower in English) can be decomposed into three different bigram sets (\\u201Cku\\u201D, \\u201Cul\\u201D, \\u201Cle\\u201D). Bigram/trigram frequency values are obtained by counting how many same letter (four in this case) words will start with first bigram set (e.g. \\u201Cku\\u201D), how many words have second bigram set in the middle (e.g. \\u201Cul\\u201D) in the middle, and how many words will end with last bigram set (\\u201Cle\\u201D) in a given lexical word database. The trigrams for the word \\u201Ckule\\u201D are \\u201Ckul\\u201D and \\u201Cule\\u201D. Average bi-gram/tri-gram frequency is obtained by adding a word\\u2019s entire bi-gram/ tri-gram frequencies and then dividing it by number of bigrams (\\u201Ckule\\u201D consist of three bigrams).\\r\\n\\r\\nOrthographic neighborhood size (Coltheart\\u2019s N) refers to number of words that can be obtained from a given lexical database word list by substituting a single letter of a word (Coltheart et al, 1977). For example, orthographic neighborhood size of the word \\u201Ckule\\u201D is 9 if searched on KelimetriK (\\u201C\\u015Fule\\u201D, \\u201Ckula\\u201D, \\u201Ckulp\\u201D, \\u201Cfule\\u201D, \\u201Ckale\\u201D, \\u201Ck\\u00F6le\\u201D, \\u201Ckele\\u201D, \\u201Ckile\\u201D, \\u201Cku\\u015Fe\\u201D). A word\\u2019s orthographic neighborhood size could influence behavioral performance in visual word recognition tasks of lexical decision, naming, perceptual identification, and semantic categorization (Perea, & Polatsek, 1998).\\r\\n\\r\\nOrthographic Levensthein distance 20 (OLD20) of a word is the average of 20 most close words in the unit of Levensthein distance (Yarkoni, Balota, & Yap, 2008). Levensthein distance between the two strings of letters is obtained by counting the minimum number of operations (substitution, deletion or insertion) required while passing from one letter string to the other (Levenshthein, 1966). Behavioral studies show that, OLD20 is negatively correlated with orthographic neighborhood size (r=-561) and positively correlated with word-length (r=868) for English words (Yarkoni, Balota, & Yap, 2008). Moreover, OLD20 explains more variance on visual word recognition scores than orthographic neighborhood size and word length (Yarkoni, Balota, & Yap, 2008).\\r\\n\\r\\nOrthographic similarity between two words means they are the neighbors of each other like the words \\u201Cal\\u0131n\\u201D (forehead in English) and \\u201Calan\\u201D (area in English). Transposed letter (TL) and subset/superset are the two most common similarities in the existing literature (Davis, 2005). TL similiarity is the case when the two letters differ from each other based on a single pair of adjacent letters as in the Turkish words of \\u201Cesen\\u201D (blustery) and \\u201Cesne\\u201D (yawn). Studies have shown that TL similarity may facilitate detection performance on naming and lexical decision task (Andrews, 1996). Subset/Superset similarity occurs when there is an embedded word in a given input word such as \\u201Cs\\u00FCt\\u201D (subset: milk in Turkish) \\u201Cs\\u00FCtun\\u201D (superset: pillar in Turkish). Presence of a subset in a word in a stimuli set may influence the subject\\u2019s reading performance, hence may create a confounding factor on the behavioral results (Bowers, Davis, & Hanley, 2005).\");\n\t\t\n\t\tLabel lblAndrewsLexical = new Label(composite, SWT.NONE);\n\t\tlblAndrewsLexical.setLocation(0, 798);\n\t\tlblAndrewsLexical.setSize(753, 296);\n\t\tlblAndrewsLexical.setText(\"Andrews (1996). Lexical retrieval and selection processes: Effects of transposed-letter confusability, Journal of Memory and Language 35, 775\\u2013800\\r\\n\\r\\nBowers, J. S., Davis, C. J., & Hanley, D. A. (2005). References automatic semantic activation of embedded words: Is there a \\u2018\\u2018hat\\u2019\\u2019 in \\u2018\\u2018that\\u2019\\u2019? Journal of Memory and Language, 52, 131-143.\\r\\n\\r\\nColtheart, M., Davelaar, E., Jonasson, J. T., & Besner, D. (1977). Access to the internal lexicon. Attention and Performance, 6, 535-555.\\r\\n\\r\\nDavis, C. J. (2005). N-Watch: A program for deriving neighborhood size and other psycholinguistic statistics. Behavior Research Methods, 37, 65-70.\\r\\n\\r\\nDavis, C. J., & Parea, M. (2005). BuscaPalabras: A program for deriving orthographic and phonological neighborhood statistics and other psycholinguistic indices in Spanish. Behavior Research Methods, 37, 665-671.\\r\\n\\r\\nLevenshtein, V. I. (1966, February). Binary codes capable of correcting deletions, insertions and reversals. In Soviet physics doklady (Vol. 10, p. 707).\\r\\n\\r\\nManning, C. D., & Sch\\u00FCtze, H. (1999). Foundations of statistical natural language processing. MIT press.\\r\\n\\r\\nPerea, M., & Pollatsek, A. (1998). The effects of neighborhood frequency in reading and lexical decision. Journal of Experimental Psychology, 24, 767-779.\\r\\n\\r\\nYarkoni, T., Balota, D., & Yap, M. (2008). Moving beyond Coltheart\\u2019s N: A new measure of orthographic similarity. Psychonomic Bulletin & Review, 15(5), 971-979.\\r\\n\");\n\t\t\n\t\tLabel label_4 = new Label(composite, SWT.NONE);\n\t\tlabel_4.setBounds(0, 771, 753, 21);\n\t\tlabel_4.setText(\"References\");\n\t\tlabel_4.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\tlabel_4.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\tscrolledComposite.setContent(composite);\n\t\tscrolledComposite.setMinSize(composite.computeSize(SWT.DEFAULT, SWT.DEFAULT));\n\n\t}", "private void createContents() {\r\n\t\tshell = new Shell(getParent(), SWT.RESIZE | SWT.TITLE);\r\n\t\tshell.setSize(690, 436);\r\n\t\t\r\n\t\tDimension scrSize = Toolkit.getDefaultToolkit().getScreenSize();\r\n\t\tint w = 690;\r\n\t\tint h = 436;\r\n\t\tshell.setBounds((int)(scrSize.width-w)/2,(int)(scrSize.height-h)/2,w, h);\r\n\t\tshell.setText(getText());\r\n\r\n\t\t\r\n\t\tloadData();\r\n\t\t\r\n\t\tviewer = new TableViewer(shell,SWT.FULL_SELECTION |SWT.MULTI |SWT.BORDER);\r\n\t\t\r\n\t\tfinal Table table = viewer.getTable();\r\n\t\ttable.setBounds(23, 53, 638, 285);\r\n\t\ttable.setLinesVisible(true);\r\n\t\ttable.setHeaderVisible(true);\r\n\t\ttable.setRedraw(true);\r\n\t\t\r\n\t\tTableColumn tbCol_Time = new TableColumn(table, SWT.NONE);\r\n\t\ttbCol_Time.setWidth(69);\r\n\t\ttbCol_Time.setText(\"序号\");\t\t\r\n\t\t\r\n\t\tTableColumn tbCol_Path = new TableColumn(table, SWT.NONE);\r\n\t\ttbCol_Path.setWidth(127);\r\n\t\ttbCol_Path.setText(\"进程\");\t\r\n\t\t\r\n\t\tTableColumn tbCol_Info = new TableColumn(table, SWT.NONE);\r\n\t\ttbCol_Info.setWidth(123);\r\n\t\ttbCol_Info.setText(\"Hash值\");\r\n\t\t\r\n\t\tTableColumn tbCol_Type = new TableColumn(table, SWT.NONE);\r\n\t\ttbCol_Type.setWidth(92);\r\n\t\ttbCol_Type.setText(\"类型\");\r\n\t\t\r\n\t\tTableColumn tbCol_Hash = new TableColumn(table, SWT.NONE);\r\n\t\ttbCol_Hash.setWidth(196);\r\n\t\ttbCol_Hash.setText(\"描述信息\");\r\n\t\t\r\n\t\tviewer.setContentProvider(new TableViewerContentProvider());\r\n\t\tviewer.setLabelProvider(new TableViewerLabelProvider());\r\n\t\tviewer.setInput(white_list);\t\t\t\t//===== 设置数据源 ======\r\n\t\t\r\n\t\trefresh();\r\n\t\t\r\n\t\tlbl_ItemCount = new Label(shell, SWT.NONE);\r\n\t\tlbl_ItemCount.setBounds(43, 355, 194, 21);\r\n\t\tlbl_ItemCount.setText(\"未通过验证进程: \"+ table.getItemCount() +\"个\");\r\n\t\t\r\n\t\tButton button = new Button(shell, SWT.NONE);\r\n\t\tbutton.setBounds(309, 344, 88, 25);\r\n\t\tbutton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tcount--;\r\n\t\t\t\tshell.close();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton.setText(\"确定\");\r\n\t\t\r\n\t\tLabel label = new Label(shell, SWT.NONE);\r\n\t\tlabel.setFont(SWTResourceManager.getFont(\"楷体_GB2312\", 16, SWT.BOLD));\r\n\t\tlabel.setBounds(301, 10, 118, 21);\r\n\t\tlabel.setText(\"详细信息\");\r\n\t\t\r\n\t\tLabel label_1 = new Label(shell, SWT.SEPARATOR|SWT.HORIZONTAL);\r\n\t\tlabel_1.setBounds(10, 45, 664, 2);\r\n\r\n\t\t\r\n\t\t//添加窗体鼠标事件\r\n\t\tshell.addMouseListener(new MouseListener(){\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseDown(MouseEvent e) {\r\n\t\t\t\t// TODO Auto-generated method stub\t\t\t\t\r\n\t\t\t\tx=e.x;\r\n\t\t\t\ty=e.y;\t\t\t\t\r\n\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseUp(MouseEvent e) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tx=y=-1;\r\n\t\t\t}\r\n\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t});\r\n\t\t\r\n\t\t//鼠标移动事件\r\n\t\tshell.addMouseMoveListener(new MouseMoveListener(){\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseMove(MouseEvent e) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tif(x>0)\r\n\t\t\t\t{\r\n\t\t\t\t\tshell.setLocation(e.x-x + shell.getLocation().x,\r\n\t\t\t\t\t\te.y-y + shell.getLocation().y);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t}", "private void createContents() {\n\t\tshell = new Shell(getParent(), getStyle());\n\n\t\tshell.setSize(379, 234);\n\t\tshell.setText(\"\\u0410\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\");\n\t\tshell.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tLabel dialogAccountHeader = new Label(shell, SWT.NONE);\n\t\tdialogAccountHeader.setAlignment(SWT.CENTER);\n\t\tdialogAccountHeader.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\tdialogAccountHeader.setLayoutData(BorderLayout.NORTH);\n\t\tif(!this.isNeedAdd)\n\t\t{\n\t\t\tdialogAccountHeader.setText(\"\\u0420\\u0435\\u0434\\u0430\\u043A\\u0442\\u0438\\u0440\\u043E\\u0432\\u0430\\u043D\\u0438\\u0435 \\u0430\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\\u0430\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tdialogAccountHeader.setText(\"\\u0414\\u043E\\u0431\\u0430\\u0432\\u043B\\u0435\\u043D\\u0438\\u0435 \\u0430\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\\u0430\");\n\t\t}\n\t\t\n\t\tComposite composite = new Composite(shell, SWT.NONE);\n\t\tcomposite.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.BOLD));\n\t\tcomposite.setLayoutData(BorderLayout.CENTER);\n\t\t\n\t\tLabel label = new Label(composite, SWT.NONE);\n\t\tlabel.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\tlabel.setBounds(10, 16, 106, 21);\n\t\tlabel.setText(\"\\u0418\\u043C\\u044F \\u0441\\u0435\\u0440\\u0432\\u0435\\u0440\\u0430\");\n\t\t\n\t\ttextServer = new Text(composite, SWT.BORDER);\n\t\ttextServer.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.NORMAL));\n\t\ttextServer.setBounds(122, 13, 241, 32);\n\t\t\n\t\n\t\tLabel label_1 = new Label(composite, SWT.NONE);\n\t\tlabel_1.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\tlabel_1.setText(\"\\u041B\\u043E\\u0433\\u0438\\u043D\");\n\t\tlabel_1.setBounds(10, 58, 55, 21);\n\t\t\n\t\ttextLogin = new Text(composite, SWT.BORDER);\n\t\ttextLogin.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.NORMAL));\n\t\ttextLogin.setBounds(122, 55, 241, 32);\n\t\ttextLogin.setFocus();\n\t\t\n\t\tLabel label_2 = new Label(composite, SWT.NONE);\n\t\tlabel_2.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\tlabel_2.setText(\"\\u041F\\u0430\\u0440\\u043E\\u043B\\u044C\");\n\t\tlabel_2.setBounds(10, 106, 55, 21);\n\t\t\n\t\ttextPass = new Text(composite, SWT.PASSWORD | SWT.BORDER);\n\t\ttextPass.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.NORMAL));\n\t\ttextPass.setBounds(122, 103, 241, 32);\n\t\t\n\t\tif(isNeedAdd){\n\t\t\ttextServer.setText(\"imap.mail.ru\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\ttextServer.setText(this.account.getServer());\n\t\t\ttextLogin.setText(account.getLogin());\n\t\t\ttextPass.setText(account.getPass());\n\t\t}\n\t\t\n\t\tComposite composite_1 = new Composite(shell, SWT.NONE);\n\t\tcomposite_1.setLayoutData(BorderLayout.SOUTH);\n\t\t\n\t\tButton btnSaveAccount = new Button(composite_1, SWT.NONE);\n\t\tbtnSaveAccount.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tString login = textLogin.getText();\n\t\t\t\tif(textServer.getText()==\"\")\n\t\t\t\t{\n\t\t\t\t\tMessageDialog.openError(shell, \"Ошибка\", \"Поле имя сервера не введен!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(textLogin.getText()==\"\")\n\t\t\t\t{\n\t\t\t\t\tMessageDialog.openError(shell, \"Ошибка\", \"Поле логин не введен!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse if (!login.matches(\"^([_A-Za-z0-9-]+)@([A-Za-z0-9]+)\\\\.([A-Za-z]{2,})$\"))\n\t\t\t\t{\n\t\t\t\t\tMessageDialog.openError(shell, \"Ошибка\", \"Поле логин введен некорректно!\");\n\t\t\t\t\treturn;\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse if(Setting.Instance().AnyAccounts(textLogin.getText(), isNeedAdd))\n\t\t\t\t{\n\t\t\t\t\tMessageDialog.openError(shell, \"Ошибка\", \"такой логин уже существует!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(textPass.getText()==\"\")\n\t\t\t\t{\n\t\t\t\t\tMessageDialog.openError(shell, \"Ошибка\", \"Поле пароль не введен!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(isNeedAdd)\n\t\t\t\t{\n\t\t\t\t\tservice.AddAccount(textServer.getText(), textLogin.getText(), textPass.getText());\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\taccount.setLogin(textLogin.getText());\n\t\t\t\t\taccount.setPass(textPass.getText());\n\t\t\t\t\taccount.setServer(textServer.getText());\t\n\t\t\t\t\tservice.EditAccount(account);\n\t\t\t\t}\n\t\t\t\tservice.RepaintAccount(table);\n\t\t\t\tshell.close();\n\t\t\t}\n\t\t});\n\t\tbtnSaveAccount.setLocation(154, 0);\n\t\tbtnSaveAccount.setSize(96, 32);\n\t\tbtnSaveAccount.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\tbtnSaveAccount.setText(\"\\u0421\\u043E\\u0445\\u0440\\u0430\\u043D\\u0438\\u0442\\u044C\");\n\t\t\n\t\tButton btnCancel = new Button(composite_1, SWT.NONE);\n\t\tbtnCancel.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t}\n\t\t});\n\t\tbtnCancel.setLocation(267, 0);\n\t\tbtnCancel.setSize(96, 32);\n\t\tbtnCancel.setText(\"\\u041E\\u0442\\u043C\\u0435\\u043D\\u0430\");\n\t\tbtnCancel.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\n\t}", "private void createContents() {\r\n\t\tshell = new Shell(getParent(), SWT.TITLE);\r\n\r\n\t\tgetParent().setEnabled(false);\r\n\r\n\t\tshell.addShellListener(new ShellAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void shellClosed(ShellEvent e) {\r\n\t\t\t\tgetParent().setEnabled(true);\r\n\t\t\t}\r\n\t\t});\r\n\t\tshell.setImage(SWTResourceManager.getImage(LoginInfo.class, \"/javax/swing/plaf/metal/icons/ocean/warning.png\"));\r\n\r\n\t\tsetMidden(397, 197);\r\n\r\n\t\tshell.setText(this.windows_name);\r\n\t\tshell.setLayout(null);\r\n\r\n\t\tLabel label = new Label(shell, SWT.NONE);\r\n\t\tlabel.setFont(SWTResourceManager.getFont(\"Microsoft YaHei UI\", 11, SWT.NORMAL));\r\n\t\tlabel.setBounds(79, 45, 226, 30);\r\n\t\tlabel.setAlignment(SWT.CENTER);\r\n\t\tlabel.setText(this.label_show);\r\n\r\n\t\tButton button = new Button(shell, SWT.NONE);\r\n\t\tbutton.setBounds(150, 107, 86, 30);\r\n\t\tbutton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tshell.close();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton.setText(\"确定\");\r\n\r\n\t}", "private void createContents() {\r\n this.shell = new Shell(this.getParent(), this.getStyle());\r\n this.shell.setText(\"自動プロキシ構成スクリプトファイル生成\");\r\n this.shell.setLayout(new GridLayout(1, false));\r\n\r\n Composite composite = new Composite(this.shell, SWT.NONE);\r\n composite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\r\n composite.setLayout(new GridLayout(1, false));\r\n\r\n Label labelTitle = new Label(composite, SWT.NONE);\r\n labelTitle.setText(\"自動プロキシ構成スクリプトファイルを生成します\");\r\n\r\n String server = Filter.getServerName();\r\n if (server == null) {\r\n Group manualgroup = new Group(composite, SWT.NONE);\r\n manualgroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\r\n manualgroup.setLayout(new GridLayout(2, false));\r\n manualgroup.setText(\"鎮守府サーバーが未検出です。IPアドレスを入力して下さい。\");\r\n\r\n Label iplabel = new Label(manualgroup, SWT.NONE);\r\n iplabel.setText(\"IPアドレス:\");\r\n\r\n final Text text = new Text(manualgroup, SWT.BORDER);\r\n GridData gdip = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n gdip.widthHint = SwtUtils.DPIAwareWidth(150);\r\n text.setLayoutData(gdip);\r\n text.setText(\"0.0.0.0\");\r\n text.addModifyListener(new ModifyListener() {\r\n @Override\r\n public void modifyText(ModifyEvent e) {\r\n CreatePacFileDialog.this.server = text.getText();\r\n }\r\n });\r\n\r\n this.server = \"0.0.0.0\";\r\n } else {\r\n this.server = server;\r\n }\r\n\r\n Button storeButton = new Button(composite, SWT.NONE);\r\n storeButton.setText(\"保存先を選択...\");\r\n storeButton.addSelectionListener(new FileSelectionAdapter(this));\r\n\r\n Group addrgroup = new Group(composite, SWT.NONE);\r\n addrgroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\r\n addrgroup.setLayout(new GridLayout(2, false));\r\n addrgroup.setText(\"アドレス(保存先のアドレスより生成されます)\");\r\n\r\n Label ieAddrLabel = new Label(addrgroup, SWT.NONE);\r\n ieAddrLabel.setText(\"IE用:\");\r\n\r\n this.iePath = new Text(addrgroup, SWT.BORDER);\r\n GridData gdIePath = new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1);\r\n gdIePath.widthHint = SwtUtils.DPIAwareWidth(380);\r\n this.iePath.setLayoutData(gdIePath);\r\n\r\n Label fxAddrLabel = new Label(addrgroup, SWT.NONE);\r\n fxAddrLabel.setText(\"Firefox用:\");\r\n\r\n this.firefoxPath = new Text(addrgroup, SWT.BORDER);\r\n GridData gdFxPath = new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1);\r\n gdFxPath.widthHint = SwtUtils.DPIAwareWidth(380);\r\n this.firefoxPath.setLayoutData(gdFxPath);\r\n\r\n this.shell.pack();\r\n }", "private void createContents() {\n\t\tshell = new Shell(getParent(), SWT.SHELL_TRIM | SWT.BORDER | SWT.PRIMARY_MODAL);\n\t\tshell.setImage(SWTResourceManager.getImage(ThuocDlg.class, \"/png/list-2x.png\"));\n\t\tshell.setSize(610, 340);\n\t\tshell.setText(\"Thuoc List View\");\n\t\tshell.setLayout(new BorderLayout(0, 0));\n\t\tshell.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tif(e.keyCode==SWT.ESC){\n\t\t\t\t\tobjThuoc = null;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n \n Composite compositeInShellThuoc = new Composite(shell, SWT.NONE);\n\t\tcompositeInShellThuoc.setLayout(new BorderLayout(0, 0));\n\t\tcompositeInShellThuoc.setLayoutData(BorderLayout.CENTER);\n \n\t\tComposite compositeHeaderThuoc = new Composite(compositeInShellThuoc, SWT.NONE);\n\t\tcompositeHeaderThuoc.setLayoutData(BorderLayout.NORTH);\n\t\tcompositeHeaderThuoc.setLayout(new GridLayout(5, false));\n\n\t\ttextSearchThuoc = new Text(compositeHeaderThuoc, SWT.BORDER);\n\t\ttextSearchThuoc.setFont(SWTResourceManager.getFont(\"Tahoma\", 10, SWT.NORMAL));\n\t\ttextSearchThuoc.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tif(e.keyCode==13){\n\t\t\t\t\treloadTableThuoc();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tButton btnNewButtonSearchThuoc = new Button(compositeHeaderThuoc, SWT.NONE);\n\t\tbtnNewButtonSearchThuoc.setImage(SWTResourceManager.getImage(ThuocDlg.class, \"/png/media-play-2x.png\"));\n\t\tbtnNewButtonSearchThuoc.setFont(SWTResourceManager.getFont(\"Tahoma\", 10, SWT.NORMAL));\n\n\t\tbtnNewButtonSearchThuoc.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\treloadTableThuoc();\n\t\t\t}\n\t\t});\n\t\tButton btnNewButtonExportExcelThuoc = new Button(compositeHeaderThuoc, SWT.NONE);\n\t\tbtnNewButtonExportExcelThuoc.setText(\"Export Excel\");\n\t\tbtnNewButtonExportExcelThuoc.setImage(SWTResourceManager.getImage(KhamBenhListDlg.class, \"/png/spreadsheet-2x.png\"));\n\t\tbtnNewButtonExportExcelThuoc.setFont(SWTResourceManager.getFont(\"Tahoma\", 10, SWT.NORMAL));\n\t\tbtnNewButtonExportExcelThuoc.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\texportExcelTableThuoc();\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\tGridData gd_btnNewButtonThuoc = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\n\t\tgd_btnNewButtonThuoc.widthHint = 87;\n\t\tbtnNewButtonSearchThuoc.setLayoutData(gd_btnNewButtonThuoc);\n\t\tbtnNewButtonSearchThuoc.setText(\"Search\");\n \n\t\ttableViewerThuoc = new TableViewer(compositeInShellThuoc, SWT.BORDER | SWT.FULL_SELECTION);\n\t\ttableThuoc = tableViewerThuoc.getTable();\n\t\ttableThuoc.setFont(SWTResourceManager.getFont(\"Tahoma\", 10, SWT.NORMAL));\n\t\ttableThuoc.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tif(e.keyCode==SWT.F5){\n\t\t\t\t\treloadTableThuoc();\n }\n if(e.keyCode==SWT.F4){\n\t\t\t\t\teditTableThuoc();\n }\n\t\t\t\telse if(e.keyCode==13){\n\t\t\t\t\tselectTableThuoc();\n\t\t\t\t}\n else if(e.keyCode==SWT.DEL){\n\t\t\t\t\tdeleteTableThuoc();\n\t\t\t\t}\n else if(e.keyCode==SWT.F7){\n\t\t\t\t\tnewItemThuoc();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n tableThuoc.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\n\t\t\t\tselectTableThuoc();\n\t\t\t}\n\t\t});\n \n\t\ttableThuoc.setLinesVisible(true);\n\t\ttableThuoc.setHeaderVisible(true);\n\t\ttableThuoc.setLayoutData(BorderLayout.CENTER);\n\n\t\tTableColumn tbTableColumnThuocMA_HOAT_CHAT = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocMA_HOAT_CHAT.setWidth(100);\n\t\ttbTableColumnThuocMA_HOAT_CHAT.setText(\"MA_HOAT_CHAT\");\n\n\t\tTableColumn tbTableColumnThuocMA_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocMA_AX.setWidth(100);\n\t\ttbTableColumnThuocMA_AX.setText(\"MA_AX\");\n\n\t\tTableColumn tbTableColumnThuocHOAT_CHAT = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocHOAT_CHAT.setWidth(100);\n\t\ttbTableColumnThuocHOAT_CHAT.setText(\"HOAT_CHAT\");\n\n\t\tTableColumn tbTableColumnThuocHOATCHAT_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocHOATCHAT_AX.setWidth(100);\n\t\ttbTableColumnThuocHOATCHAT_AX.setText(\"HOATCHAT_AX\");\n\n\t\tTableColumn tbTableColumnThuocMA_DUONG_DUNG = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocMA_DUONG_DUNG.setWidth(100);\n\t\ttbTableColumnThuocMA_DUONG_DUNG.setText(\"MA_DUONG_DUNG\");\n\n\t\tTableColumn tbTableColumnThuocMA_DUONGDUNG_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocMA_DUONGDUNG_AX.setWidth(100);\n\t\ttbTableColumnThuocMA_DUONGDUNG_AX.setText(\"MA_DUONGDUNG_AX\");\n\n\t\tTableColumn tbTableColumnThuocDUONG_DUNG = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocDUONG_DUNG.setWidth(100);\n\t\ttbTableColumnThuocDUONG_DUNG.setText(\"DUONG_DUNG\");\n\n\t\tTableColumn tbTableColumnThuocDUONGDUNG_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocDUONGDUNG_AX.setWidth(100);\n\t\ttbTableColumnThuocDUONGDUNG_AX.setText(\"DUONGDUNG_AX\");\n\n\t\tTableColumn tbTableColumnThuocHAM_LUONG = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocHAM_LUONG.setWidth(100);\n\t\ttbTableColumnThuocHAM_LUONG.setText(\"HAM_LUONG\");\n\n\t\tTableColumn tbTableColumnThuocHAMLUONG_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocHAMLUONG_AX.setWidth(100);\n\t\ttbTableColumnThuocHAMLUONG_AX.setText(\"HAMLUONG_AX\");\n\n\t\tTableColumn tbTableColumnThuocTEN_THUOC = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocTEN_THUOC.setWidth(100);\n\t\ttbTableColumnThuocTEN_THUOC.setText(\"TEN_THUOC\");\n\n\t\tTableColumn tbTableColumnThuocTENTHUOC_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocTENTHUOC_AX.setWidth(100);\n\t\ttbTableColumnThuocTENTHUOC_AX.setText(\"TENTHUOC_AX\");\n\n\t\tTableColumn tbTableColumnThuocSO_DANG_KY = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocSO_DANG_KY.setWidth(100);\n\t\ttbTableColumnThuocSO_DANG_KY.setText(\"SO_DANG_KY\");\n\n\t\tTableColumn tbTableColumnThuocSODANGKY_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocSODANGKY_AX.setWidth(100);\n\t\ttbTableColumnThuocSODANGKY_AX.setText(\"SODANGKY_AX\");\n\n\t\tTableColumn tbTableColumnThuocDONG_GOI = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocDONG_GOI.setWidth(100);\n\t\ttbTableColumnThuocDONG_GOI.setText(\"DONG_GOI\");\n\n\t\tTableColumn tbTableColumnThuocDON_VI_TINH = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocDON_VI_TINH.setWidth(100);\n\t\ttbTableColumnThuocDON_VI_TINH.setText(\"DON_VI_TINH\");\n\n\n\t\tTableColumn tbTableColumnThuocDON_GIA = new TableColumn(tableThuoc, SWT.NONE);\n\t\ttbTableColumnThuocDON_GIA.setWidth(100);\n\t\ttbTableColumnThuocDON_GIA.setText(\"DON_GIA\");\n\n\n\t\tTableColumn tbTableColumnThuocDON_GIA_TT = new TableColumn(tableThuoc, SWT.NONE);\n\t\ttbTableColumnThuocDON_GIA_TT.setWidth(100);\n\t\ttbTableColumnThuocDON_GIA_TT.setText(\"DON_GIA_TT\");\n\n\t\tTableColumn tbTableColumnThuocSO_LUONG = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocSO_LUONG.setWidth(100);\n\t\ttbTableColumnThuocSO_LUONG.setText(\"SO_LUONG\");\n\n\t\tTableColumn tbTableColumnThuocMA_CSKCB = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocMA_CSKCB.setWidth(100);\n\t\ttbTableColumnThuocMA_CSKCB.setText(\"MA_CSKCB\");\n\n\t\tTableColumn tbTableColumnThuocHANG_SX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocHANG_SX.setWidth(100);\n\t\ttbTableColumnThuocHANG_SX.setText(\"HANG_SX\");\n\n\t\tTableColumn tbTableColumnThuocNUOC_SX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocNUOC_SX.setWidth(100);\n\t\ttbTableColumnThuocNUOC_SX.setText(\"NUOC_SX\");\n\n\t\tTableColumn tbTableColumnThuocNHA_THAU = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocNHA_THAU.setWidth(100);\n\t\ttbTableColumnThuocNHA_THAU.setText(\"NHA_THAU\");\n\n\t\tTableColumn tbTableColumnThuocQUYET_DINH = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocQUYET_DINH.setWidth(100);\n\t\ttbTableColumnThuocQUYET_DINH.setText(\"QUYET_DINH\");\n\n\t\tTableColumn tbTableColumnThuocCONG_BO = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocCONG_BO.setWidth(100);\n\t\ttbTableColumnThuocCONG_BO.setText(\"CONG_BO\");\n\n\t\tTableColumn tbTableColumnThuocMA_THUOC_BV = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocMA_THUOC_BV.setWidth(100);\n\t\ttbTableColumnThuocMA_THUOC_BV.setText(\"MA_THUOC_BV\");\n\n\t\tTableColumn tbTableColumnThuocLOAI_THUOC = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocLOAI_THUOC.setWidth(100);\n\t\ttbTableColumnThuocLOAI_THUOC.setText(\"LOAI_THUOC\");\n\n\t\tTableColumn tbTableColumnThuocLOAI_THAU = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocLOAI_THAU.setWidth(100);\n\t\ttbTableColumnThuocLOAI_THAU.setText(\"LOAI_THAU\");\n\n\t\tTableColumn tbTableColumnThuocNHOM_THAU = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocNHOM_THAU.setWidth(100);\n\t\ttbTableColumnThuocNHOM_THAU.setText(\"NHOM_THAU\");\n\n\t\tTableColumn tbTableColumnThuocMANHOM_9324 = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocMANHOM_9324.setWidth(100);\n\t\ttbTableColumnThuocMANHOM_9324.setText(\"MANHOM_9324\");\n\n\t\tTableColumn tbTableColumnThuocHIEULUC = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocHIEULUC.setWidth(100);\n\t\ttbTableColumnThuocHIEULUC.setText(\"HIEULUC\");\n\n\t\tTableColumn tbTableColumnThuocKETQUA = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocKETQUA.setWidth(100);\n\t\ttbTableColumnThuocKETQUA.setText(\"KETQUA\");\n\n\t\tTableColumn tbTableColumnThuocTYP = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocTYP.setWidth(100);\n\t\ttbTableColumnThuocTYP.setText(\"TYP\");\n\n\t\tTableColumn tbTableColumnThuocTHUOC_RANK = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocTHUOC_RANK.setWidth(100);\n\t\ttbTableColumnThuocTHUOC_RANK.setText(\"THUOC_RANK\");\n\n Menu menuThuoc = new Menu(tableThuoc);\n\t\ttableThuoc.setMenu(menuThuoc);\n\t\t\n\t\tMenuItem mntmNewItemThuoc = new MenuItem(menuThuoc, SWT.NONE);\n\t\tmntmNewItemThuoc.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tnewItemThuoc();\n\t\t\t}\n\t\t});\n\t\tmntmNewItemThuoc.setImage(SWTResourceManager.getImage(ThuocDlg.class, \"/png/arrow-circle-top-2x.png\"));\n\t\tmntmNewItemThuoc.setText(\"New\");\n\t\t\n\t\tMenuItem mntmEditItemThuoc = new MenuItem(menuThuoc, SWT.NONE);\n\t\tmntmEditItemThuoc.setImage(SWTResourceManager.getImage(ThuocDlg.class, \"/png/wrench-2x.png\"));\n\t\tmntmEditItemThuoc.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\teditTableThuoc();\n\t\t\t}\n\t\t});\n\t\tmntmEditItemThuoc.setText(\"Edit\");\n\t\t\n\t\tMenuItem mntmDeleteThuoc = new MenuItem(menuThuoc, SWT.NONE);\n\t\tmntmDeleteThuoc.setImage(SWTResourceManager.getImage(ThuocDlg.class, \"/png/circle-x-2x.png\"));\n\t\tmntmDeleteThuoc.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdeleteTableThuoc();\n\t\t\t}\n\t\t});\n\t\tmntmDeleteThuoc.setText(\"Delete\");\n\t\t\n\t\tMenuItem mntmExportThuoc = new MenuItem(menuThuoc, SWT.NONE);\n\t\tmntmExportThuoc.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\texportExcelTableThuoc();\n\t\t\t}\n\t\t});\n\t\tmntmExportThuoc.setImage(SWTResourceManager.getImage(ThuocDlg.class, \"/png/spreadsheet-2x.png\"));\n\t\tmntmExportThuoc.setText(\"Export Excel\");\n\t\t\n\t\ttableViewerThuoc.setLabelProvider(new TableLabelProviderThuoc());\n\t\ttableViewerThuoc.setContentProvider(new ContentProviderThuoc());\n\t\ttableViewerThuoc.setInput(listDataThuoc);\n //\n //\n\t\tloadDataThuoc();\n\t\t//\n reloadTableThuoc();\n\t}", "public void createPartControl(Composite parent) {\n\t\tviewer = new TreeViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL);\n\t\tdrillDownAdapter = new DrillDownAdapter(viewer);\n\t\tviewer.setContentProvider(new ViewContentProvider());\n\t\tviewer.setLabelProvider(new ViewLabelProvider());\n\t\tviewer.setSorter(new NameSorter());\n\t\tviewer.setInput(getViewSite());\n\n\t\t// Create the help context id for the viewer's control\n\t\tPlatformUI.getWorkbench().getHelpSystem().setHelp(viewer.getControl(), \"TreeView.viewer\");\n\t\tmakeActions();\n\t\thookContextMenu();\n\t\thookDoubleClickAction();\n\t\tcontributeToActionBars();\n\t}", "protected void createContents() {\n\t\tsetText(\"Account Settings\");\n\t\tsetSize(450, 225);\n\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(340, 217);\n\t\tshell.setText(\"Benvenuto\");\n\t\tshell.setLayout(new FormLayout());\n\t\t\n\t\tComposite composite = new Composite(shell, SWT.NONE);\n\t\tFormData fd_composite = new FormData();\n\t\tfd_composite.bottom = new FormAttachment(100, -10);\n\t\tfd_composite.top = new FormAttachment(0, 10);\n\t\tfd_composite.right = new FormAttachment(100, -10);\n\t\tfd_composite.left = new FormAttachment(0, 10);\n\t\tcomposite.setLayoutData(fd_composite);\n\t\tcomposite.setLayout(new GridLayout(2, false));\n\t\t\n\t\tLabel lblUsername = new Label(composite, SWT.NONE);\n\t\tlblUsername.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlblUsername.setText(\"Username\");\n\t\t\n\t\ttxtUsername = new Text(composite, SWT.BORDER);\n\t\ttxtUsername.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\t\tfinal String username = txtUsername.getText();\n\t\tSystem.out.println(username);\n\t\t\n\t\tLabel lblPeriodo = new Label(composite, SWT.NONE);\n\t\tlblPeriodo.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlblPeriodo.setText(\"Periodo\");\n\t\t\n\t\tfinal CCombo combo_1 = new CCombo(composite, SWT.BORDER | SWT.READ_ONLY);\n\t\tcombo_1.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\t\tcombo_1.setVisibleItemCount(6);\n\t\tcombo_1.setItems(new String[] {\"1 settimana\", \"1 mese\", \"3 mesi\", \"6 mesi\", \"1 anno\", \"Overall\"});\n\t\t\n\t\tLabel lblNumeroCanzoni = new Label(composite, SWT.NONE);\n\t\tlblNumeroCanzoni.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlblNumeroCanzoni.setText(\"Numero canzoni da analizzare\");\n\t\t\n\t\tfinal CCombo combo = new CCombo(composite, SWT.BORDER | SWT.READ_ONLY);\n\t\tcombo.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\t\tcombo.setItems(new String[] {\"25\", \"50\"});\n\t\tcombo.setVisibleItemCount(2);\n\t\tcombo.setToolTipText(\"Numero canzoni da analizzare\");\n\t\t\n\t\tLabel lblNumeroCanzoniDa = new Label(composite, SWT.NONE);\n\t\tlblNumeroCanzoniDa.setText(\"Numero canzoni da consigliare\");\n\t\t\n\t\tfinal CCombo combo_2 = new CCombo(composite, SWT.BORDER | SWT.READ_ONLY);\n\t\tcombo_2.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\t\tcombo_2.setVisibleItemCount(3);\n\t\tcombo_2.setToolTipText(\"Numero canzoni da consigliare\");\n\t\tcombo_2.setItems(new String[] {\"5\", \"10\", \"20\"});\n\t\t\n\t\tButton btnAvviaRicerca = new Button(composite, SWT.NONE);\n\t\tbtnAvviaRicerca.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tfinal String username = txtUsername.getText();\n\t\t\t\tfinal String numSong = combo.getText();\n\t\t\t\tfinal String period = combo_1.getText();\n\t\t\t\tfinal String numConsigli = combo_2.getText();\n\t\t\t\tif(username.isEmpty() || numSong.isEmpty() || period.isEmpty() || numConsigli.isEmpty()){\n\t\t\t\t\tSystem.out.println(\"si prega di compilare tutti i campi\");\n\t\t\t\t}\n\t\t\t\tif(!username.isEmpty() && !numSong.isEmpty() && !period.isEmpty() && !numConsigli.isEmpty()){\n\t\t\t\t\tSystem.out.println(\"tutto ok\");\n\t\t\t\t\t\n\t\t\t\t\tFileOutputStream out;\n\t\t\t\t\tPrintStream ps;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tout = new FileOutputStream(\"datiutente.txt\");\n\t\t\t\t\t\tps = new PrintStream(out);\n\t\t\t\t\t\tps.println(username);\n\t\t\t\t\t\tps.println(numSong);\n\t\t\t\t\t\tps.println(period);\n\t\t\t\t\t\tps.println(numConsigli);\n\t\t\t\t\t\tps.close();\n\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t\tSystem.err.println(\"Errore nella scrittura del file\");\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\tPrincipaleParteA.main();\n\t\t\t\t\t} catch (FileNotFoundException e1) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t }\n\t\t\t\n\t\t});\n\t\tGridData gd_btnAvviaRicerca = new GridData(SWT.FILL, SWT.CENTER, false, false, 2, 1);\n\t\tgd_btnAvviaRicerca.heightHint = 31;\n\t\tbtnAvviaRicerca.setLayoutData(gd_btnAvviaRicerca);\n\t\tbtnAvviaRicerca.setText(\"Avvia Ricerca\");\n\t}", "private void createContents() {\r\n\t\tshlAjouterNouvelleEquation = new Shell(getParent(), SWT.DIALOG_TRIM | SWT.RESIZE | SWT.APPLICATION_MODAL);\r\n\t\tshlAjouterNouvelleEquation.setSize(363, 334);\r\n\t\tif(modification)\r\n\t\t\tshlAjouterNouvelleEquation.setText(\"Modifier Equation\");\r\n\t\telse\r\n\t\t\tshlAjouterNouvelleEquation.setText(\"Ajouter Nouvelle Equation\");\r\n\t\tshlAjouterNouvelleEquation.setLayout(new FormLayout());\r\n\r\n\r\n\t\tLabel lblContenuEquation = new Label(shlAjouterNouvelleEquation, SWT.NONE);\r\n\t\tFormData fd_lblContenuEquation = new FormData();\r\n\t\tfd_lblContenuEquation.top = new FormAttachment(0, 5);\r\n\t\tfd_lblContenuEquation.left = new FormAttachment(0, 5);\r\n\t\tlblContenuEquation.setLayoutData(fd_lblContenuEquation);\r\n\t\tlblContenuEquation.setText(\"Contenu Equation\");\r\n\r\n\r\n\t\tcontrainteButton = new Button(shlAjouterNouvelleEquation, SWT.CHECK);\r\n\t\tFormData fd_btnContrainte = new FormData();\r\n\t\tfd_btnContrainte.top = new FormAttachment(0, 27);\r\n\t\tfd_btnContrainte.right = new FormAttachment(100, -10);\r\n\t\tcontrainteButton.setLayoutData(fd_btnContrainte);\r\n\t\tcontrainteButton.setText(\"Contrainte\");\r\n\r\n\t\torientationButton = new Button(shlAjouterNouvelleEquation, SWT.CHECK);\r\n\t\tFormData fd_btnOrinet = new FormData();\r\n\t\tfd_btnOrinet.top = new FormAttachment(0, 27);\r\n\t\tfd_btnOrinet.right = new FormAttachment(contrainteButton, -10);\r\n\r\n\t\torientationButton.setLayoutData(fd_btnOrinet);\r\n\t\t\r\n\t\torientationButton.setText(\"Orient\\u00E9\");\r\n\r\n\t\tcontenuEquation = new Text(shlAjouterNouvelleEquation, SWT.BORDER|SWT.SINGLE);\r\n\t\tFormData fd_text = new FormData();\r\n\t\tfd_text.right = new FormAttachment(orientationButton, -10, SWT.LEFT);\r\n\t\tfd_text.top = new FormAttachment(0, 25);\r\n\t\tfd_text.left = new FormAttachment(0, 5);\r\n\t\tcontenuEquation.setLayoutData(fd_text);\r\n\r\n\t\tcontenuEquation.addListener(SWT.FocusOut, out->{\r\n\t\t\tSystem.out.println(\"Making list...\");\r\n\t\t\ttry {\r\n\t\t\t\tequation.getListeDeParametresEqn_DYNAMIC();\r\n\t\t\t\tif(!btnTerminer.isDisposed()){\r\n\t\t\t\t\tif(!btnTerminer.getEnabled())\r\n\t\t\t\t\t\t btnTerminer.setEnabled(true);\r\n\t\t\t\t}\r\n\t\t\t} catch (Exception e1) {\r\n\t\t\t\tthis.showError(shlAjouterNouvelleEquation, e1.toString());\r\n\t\t\t\t btnTerminer.setEnabled(false);\r\n\t\t\t\te1.printStackTrace();\r\n\t\t\t}\t\r\n\t\t});\r\n\r\n\t\tLabel lblNewLabel = new Label(shlAjouterNouvelleEquation, SWT.NONE);\r\n\t\tFormData fd_lblNewLabel = new FormData();\r\n\t\tfd_lblNewLabel.top = new FormAttachment(0, 51);\r\n\t\tfd_lblNewLabel.left = new FormAttachment(0, 5);\r\n\t\tlblNewLabel.setLayoutData(fd_lblNewLabel);\r\n\t\tlblNewLabel.setText(\"Param\\u00E8tre de Sortie\");\r\n\r\n\t\tparametreDeSortieCombo = new Combo(shlAjouterNouvelleEquation, SWT.DROP_DOWN |SWT.READ_ONLY);\r\n\t\tparametreDeSortieCombo.setEnabled(false);\r\n\r\n\t\tFormData fd_combo = new FormData();\r\n\t\tfd_combo.top = new FormAttachment(0, 71);\r\n\t\tfd_combo.left = new FormAttachment(0, 5);\r\n\t\tparametreDeSortieCombo.setLayoutData(fd_combo);\r\n\t\tparametreDeSortieCombo.addListener(SWT.FocusIn, in->{\r\n\t\t\tparametreDeSortieCombo.setItems(makeItems.apply(equation.getListeDeParametresEqn()));\r\n\t\t\tparametreDeSortieCombo.pack();\r\n\t\t\tparametreDeSortieCombo.update();\r\n\t\t});\r\n\r\n\t\tSashForm sashForm = new SashForm(shlAjouterNouvelleEquation, SWT.NONE);\r\n\t\tFormData fd_sashForm = new FormData();\r\n\t\tfd_sashForm.top = new FormAttachment(parametreDeSortieCombo, 6);\r\n\t\tfd_sashForm.bottom = new FormAttachment(100, -50);\r\n\t\tfd_sashForm.right = new FormAttachment(100);\r\n\t\tfd_sashForm.left = new FormAttachment(0, 5);\r\n\t\tsashForm.setLayoutData(fd_sashForm);\r\n\r\n\r\n\r\n\r\n\t\tGroup propertiesGroup = new Group(sashForm, SWT.NONE);\r\n\t\tpropertiesGroup.setLayout(new FormLayout());\r\n\r\n\t\tpropertiesGroup.setText(\"Propri\\u00E9t\\u00E9s\");\r\n\t\tFormData fd_propertiesGroup = new FormData();\r\n\t\tfd_propertiesGroup.top = new FormAttachment(0);\r\n\t\tfd_propertiesGroup.left = new FormAttachment(0);\r\n\t\tfd_propertiesGroup.bottom = new FormAttachment(100, 0);\r\n\t\tfd_propertiesGroup.right = new FormAttachment(100, 0);\r\n\t\tpropertiesGroup.setLayoutData(fd_propertiesGroup);\r\n\r\n\r\n\r\n\r\n\r\n\t\tproperties = new Text(propertiesGroup, SWT.BORDER | SWT.WRAP | SWT.V_SCROLL);\r\n\t\tFormData fd_grouptext = new FormData();\r\n\t\tfd_grouptext.top = new FormAttachment(0,0);\r\n\t\tfd_grouptext.left = new FormAttachment(0, 0);\r\n\t\tfd_grouptext.bottom = new FormAttachment(100, 0);\r\n\t\tfd_grouptext.right = new FormAttachment(100, 0);\r\n\t\tproperties.setLayoutData(fd_grouptext);\r\n\r\n\r\n\r\n\t\tGroup grpDescription = new Group(sashForm, SWT.NONE);\r\n\t\tgrpDescription.setText(\"Description\");\r\n\t\tgrpDescription.setLayout(new FormLayout());\r\n\t\tFormData fd_grpDescription = new FormData();\r\n\t\tfd_grpDescription.bottom = new FormAttachment(100, 0);\r\n\t\tfd_grpDescription.right = new FormAttachment(100,0);\r\n\t\tfd_grpDescription.top = new FormAttachment(0);\r\n\t\tfd_grpDescription.left = new FormAttachment(0);\r\n\t\tgrpDescription.setLayoutData(fd_grpDescription);\r\n\r\n\t\tdescription = new Text(grpDescription, SWT.BORDER | SWT.WRAP | SWT.V_SCROLL | SWT.MULTI);\r\n\t\tdescription.setParent(grpDescription);\r\n\r\n\t\tFormData fd_description = new FormData();\r\n\t\tfd_description.top = new FormAttachment(0,0);\r\n\t\tfd_description.left = new FormAttachment(0, 0);\r\n\t\tfd_description.bottom = new FormAttachment(100, 0);\r\n\t\tfd_description.right = new FormAttachment(100, 0);\r\n\r\n\t\tdescription.setLayoutData(fd_description);\r\n\r\n\r\n\t\tsashForm.setWeights(new int[] {50,50});\r\n\r\n\t\tbtnTerminer = new Button(shlAjouterNouvelleEquation, SWT.NONE);\r\n\t\tbtnTerminer.setEnabled(false);\r\n\t\tFormData fd_btnTerminer = new FormData();\r\n\t\tfd_btnTerminer.top = new FormAttachment(sashForm, 6);\r\n\t\tfd_btnTerminer.left = new FormAttachment(sashForm,0, SWT.CENTER);\r\n\t\tbtnTerminer.setLayoutData(fd_btnTerminer);\r\n\t\tbtnTerminer.setText(\"Terminer\");\r\n\t\tbtnTerminer.addListener(SWT.Selection, e->{\r\n\t\t\t\r\n\t\t\tboolean go = true;\r\n\t\t\tresult = null;\r\n\t\t\tif (status.equals(ValidationStatus.ok())) {\r\n\t\t\t\t//perform all the neccessary tests before validating the equation\t\t\t\t\t\r\n\t\t\t\tif(equation.isOriented()){\r\n\t\t\t\t\tif(!equation.getListeDeParametresEqn().contains(equation.getParametreDeSortie()) || equation.getParametreDeSortie() == null){\t\t\t\t\t\t\r\n\t\t\t\t\t\tString error = \"Erreur sur l'équation \"+equation.getContenuEqn();\r\n\t\t\t\t\t\tgo = false;\r\n\t\t\t\t\t\tshowError(shlAjouterNouvelleEquation, error);\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (go) {\r\n\t\t\t\t\t\tresult = Boolean.TRUE;\r\n\t\t\t\t\t\tshlAjouterNouvelleEquation.dispose();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tequation.setParametreDeSortie(null);\r\n\t\t\t\t\tresult = Boolean.TRUE;\r\n\t\t\t\t\t//Just some cleanup\r\n\t\t\t\t\tfor (Parametre par : equation.getListeDeParametresEqn()) {\r\n\t\t\t\t\t\tif (par.getTypeP().equals(TypeParametre.OUTPUT)) {\t\t\t\t\t\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tpar.setTypeP(TypeParametre.UNDETERMINED);\r\n\t\t\t\t\t\t\t\tpar.setSousTypeP(SousTypeParametre.FREE);\r\n\t\t\t\t\t\t\t} catch (Exception e1) {\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tshlAjouterNouvelleEquation.dispose();\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t//\tSystem.out.println(equation.getContenuEqn() +\"\\n\"+equation.isConstraint()+\"\\n\"+equation.isOriented()+\"\\n\"+equation.getParametreDeSortie());\r\n\t\t});\r\n\r\n\t\t//In this sub routine I bind the values to the respective controls in order to observe changes \r\n\t\t//and verify the data insertion\r\n\t\tbindValues();\r\n\t}", "ViewElement createViewElement();", "protected void createContents() {\n\t\tregister Register = new register();\n\t\tRegisterDAOImpl RDI = new RegisterDAOImpl();\t\n\t\t\n\t\tload = new Shell();\n\t\tload.setSize(519, 370);\n\t\tload.setText(\"XX\\u533B\\u9662\\u6302\\u53F7\\u7CFB\\u7EDF\");\n\t\tload.setLayout(new FormLayout());\n\t\t\n\t\tLabel name = new Label(load, SWT.NONE);\n\t\tFormData fd_name = new FormData();\n\t\tfd_name.top = new FormAttachment(20);\n\t\tfd_name.left = new FormAttachment(45, -10);\n\t\tname.setLayoutData(fd_name);\n\t\tname.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tname.setText(\"\\u59D3\\u540D\");\n\t\t\n\t\tLabel subjet = new Label(load, SWT.NONE);\n\t\tFormData fd_subjet = new FormData();\n\t\tfd_subjet.left = new FormAttachment(44);\n\t\tfd_subjet.top = new FormAttachment(50);\n\t\tsubjet.setLayoutData(fd_subjet);\n\t\tsubjet.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tsubjet.setText(\"\\u79D1\\u5BA4\");\n\t\t\n\t\tLabel doctor = new Label(load, SWT.NONE);\n\t\tFormData fd_doctor = new FormData();\n\t\tfd_doctor.top = new FormAttachment(60);\n\t\tfd_doctor.left = new FormAttachment(45, -10);\n\t\tdoctor.setLayoutData(fd_doctor);\n\t\tdoctor.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tdoctor.setText(\"\\u533B\\u751F\");\n\t\t\n\t\tnametext = new Text(load, SWT.BORDER);\n\t\tnametext.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\n\t\tnametext.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tFormData fd_nametext = new FormData();\n\t\tfd_nametext.right = new FormAttachment(50, 94);\n\t\tfd_nametext.top = new FormAttachment(20);\n\t\tfd_nametext.left = new FormAttachment(50);\n\t\tnametext.setLayoutData(fd_nametext);\n\t\t\n\t\tLabel titlelabel = new Label(load, SWT.NONE);\n\t\tFormData fd_titlelabel = new FormData();\n\t\tfd_titlelabel.right = new FormAttachment(43, 176);\n\t\tfd_titlelabel.top = new FormAttachment(10);\n\t\tfd_titlelabel.left = new FormAttachment(43);\n\t\ttitlelabel.setLayoutData(fd_titlelabel);\n\t\ttitlelabel.setFont(SWTResourceManager.getFont(\"楷体\", 18, SWT.BOLD));\n\t\ttitlelabel.setText(\"XX\\u533B\\u9662\\u95E8\\u8BCA\\u6302\\u53F7\");\n\t\t\n\t\tLabel label = new Label(load, SWT.NONE);\n\t\tFormData fd_label = new FormData();\n\t\tfd_label.top = new FormAttachment(40);\n\t\tfd_label.left = new FormAttachment(44, -10);\n\t\tlabel.setLayoutData(fd_label);\n\t\tlabel.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tlabel.setText(\"\\u6302\\u53F7\\u8D39\");\n\t\t\n\t\tcosttext = new Text(load, SWT.BORDER);\n\t\tcosttext.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\n\t\tcosttext.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tFormData fd_costtext = new FormData();\n\t\tfd_costtext.right = new FormAttachment(nametext, 0, SWT.RIGHT);\n\t\tfd_costtext.top = new FormAttachment(40);\n\t\tfd_costtext.left = new FormAttachment(50);\n\t\tcosttext.setLayoutData(fd_costtext);\n\t\t\n\t\tLabel type = new Label(load, SWT.NONE);\n\t\tFormData fd_type = new FormData();\n\t\tfd_type.top = new FormAttachment(30);\n\t\tfd_type.left = new FormAttachment(45, -10);\n\t\ttype.setLayoutData(fd_type);\n\t\ttype.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\ttype.setText(\"\\u7C7B\\u578B\");\n\t\t\n\t\tCombo typecombo = new Combo(load, SWT.NONE);\n\t\ttypecombo.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\n\t\ttypecombo.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tFormData fd_typecombo = new FormData();\n\t\tfd_typecombo.right = new FormAttachment(nametext, 0, SWT.RIGHT);\n\t\tfd_typecombo.top = new FormAttachment(30);\n\t\tfd_typecombo.left = new FormAttachment(50);\n\t\ttypecombo.setLayoutData(fd_typecombo);\n\t\ttypecombo.setText(\"\\u95E8\\u8BCA\\u7C7B\\u578B\");\n\t\ttypecombo.add(\"普通门诊\",0);\n\t\ttypecombo.add(\"专家门诊\",1);\n\t\tMySelectionListener3 ms3 = new MySelectionListener3(typecombo,costtext);\n\t\ttypecombo.addSelectionListener(ms3);\n\t\t\n\t\tCombo doctorcombo = new Combo(load, SWT.NONE);\n\t\tdoctorcombo.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\n\t\tdoctorcombo.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tFormData fd_doctorcombo = new FormData();\n\t\tfd_doctorcombo.right = new FormAttachment(nametext, 0, SWT.RIGHT);\n\t\tfd_doctorcombo.top = new FormAttachment(60);\n\t\tfd_doctorcombo.left = new FormAttachment(50);\n\t\tdoctorcombo.setLayoutData(fd_doctorcombo);\n\t\tdoctorcombo.setText(\"\\u9009\\u62E9\\u533B\\u751F\");\n\t\t\n\t\tCombo subject = new Combo(load, SWT.NONE);\n\t\tsubject.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\n\t\tsubject.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tfd_subjet.right = new FormAttachment(subject, -6);\n\t\tfd_subjet.top = new FormAttachment(subject, -1, SWT.TOP);\n\t\tFormData fd_subject = new FormData();\n\t\tfd_subject.right = new FormAttachment(nametext, 0, SWT.RIGHT);\n\t\tfd_subject.top = new FormAttachment(50);\n\t\tfd_subject.left = new FormAttachment(50);\n\t\tsubject.setLayoutData(fd_subject);\n\t\tsubject.setText(\"\\u79D1\\u5BA4\\uFF1F\");\n\t\tsubject.add(\"神经内科\", 0);\n\t\tsubject.add(\"呼吸科\", 1);\n\t\tsubject.add(\"泌尿科\", 2);\n\t\tsubject.add(\"放射科\", 3);\n\t\tsubject.add(\"五官\", 4);\n\t\tMySelectionListener myselection = new MySelectionListener(i,subject,doctorcombo,pdtabledaoimpl);\n\t\tsubject.addSelectionListener(myselection);\n\t\t\n\t\tMySelectionListener2 ms2 = new MySelectionListener2(subject,doctorcombo,Register,nametext,RDI);\n\t\tdoctorcombo.addSelectionListener(ms2);\n\t\t\n\t\tButton surebutton = new Button(load, SWT.NONE);\n\t\tFormData fd_surebutton = new FormData();\n\t\tfd_surebutton.top = new FormAttachment(70);\n\t\tfd_surebutton.left = new FormAttachment(44);\n\t\tsurebutton.setLayoutData(fd_surebutton);\n\t\tsurebutton.setFont(SWTResourceManager.getFont(\"楷体\", 12, SWT.BOLD));\n\t\tsurebutton.setText(\"\\u786E\\u5B9A\");\n\t\tsurebutton.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n \t Register register = new Register();\n\t\t\t\tPatientDAOImpl patientdaoimpl = new PatientDAOImpl();\n\n/*\t\t\t\tregisterdaoimpl.Save(Register);*/\n\t\t\t\tPatientInfo patientinfo = null;\n\t\t\t\tpatientinfo = patientdaoimpl.findByname(nametext.getText());\n\t\t\t\tif(patientinfo.getId() > 0 ){\n\t\t\t\t\tMessageBox messagebox = new MessageBox(load);\n\t\t\t\t\tmessagebox.setMessage(\"挂号成功!\");\n\t\t\t\t\tmessagebox.open();\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tMessageBox messagebox = new MessageBox(load);\n\t\t\t\t\tmessagebox.setMessage(\"此用户不存在,请先注册\");\n\t\t\t\t\tmessagebox.open();\n\t\t\t\t\tload.dispose();\n\t\t\t\t\tregister.open();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tButton registerbutton = new Button(load, SWT.NONE);\n\t\tFormData fd_registerbutton = new FormData();\n\t\tfd_registerbutton.top = new FormAttachment(70);\n\t\tfd_registerbutton.left = new FormAttachment(53);\n\t\tregisterbutton.setLayoutData(fd_registerbutton);\n\t\tregisterbutton.setFont(SWTResourceManager.getFont(\"楷体\", 12, SWT.BOLD));\n\t\tregisterbutton.setText(\"\\u6CE8\\u518C\");\n\t\tregisterbutton.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\t\n\t\t\t\tRegister register = new Register();\n\t\t\t\tload.close();\n\t\t\t\tregister.open();\n\t\t\t}\n\t\t});\n\t}", "public void createPartControl(Composite parent) {\n \t\t// Store the display so we can make async calls from listeners\n \t\tdisplay = parent.getDisplay();\n\t\tviewer = new TreeViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL);\n \t\tsetTreeColumns(viewer.getTree());\n \t\tviewer.getTree().setHeaderVisible(true);\n \t\tviewer.setContentProvider(getContentProvider());\n \t\tviewer.setInput(getInput());\n \t\tviewer.setLabelProvider(getLabelProvider());\n \t\tviewer.setComparator(new ViewerComparator());\n \t\tconfigureViewer(viewer);\n \t\taddListeners();\n \t\tmakeActions();\n \t\thookContextMenu();\n \t\thookDoubleClickAction();\n \t\tcontributeToActionBars();\n \t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(450, 300);\n\t\tshell.setText(\"SWT Application\");\n\t\t\n\t\tnum1 = new Text(shell, SWT.BORDER);\n\t\tnum1.setBounds(32, 51, 112, 19);\n\t\t\n\t\tnum2 = new Text(shell, SWT.BORDER);\n\t\tnum2.setBounds(32, 120, 112, 19);\n\t\t\n\t\tLabel lblNewLabel = new Label(shell, SWT.NONE);\n\t\tlblNewLabel.setBounds(32, 31, 92, 14);\n\t\tlblNewLabel.setText(\"First Number:\");\n\t\t\n\t\tLabel lblNewLabel_1 = new Label(shell, SWT.NONE);\n\t\tlblNewLabel_1.setBounds(32, 100, 112, 14);\n\t\tlblNewLabel_1.setText(\"Second Number: \");\n\t\t\n\t\tfinal Label answer = new Label(shell, SWT.NONE);\n\t\tanswer.setBounds(35, 204, 60, 14);\n\t\tanswer.setText(\"Answer:\");\n\t\t\n\t\tButton plusButton = new Button(shell, SWT.NONE);\n\t\tplusButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tint number1, number2;\n\t\t\t\ttry {\n\t\t\t\t\tnumber1 = Integer.parseInt(num1.getText());\n\t\t\t\t}\n\t\t\t\tcatch (Exception exc) {\n\t\t\t\t\tMessageDialog.openError(shell, \"Error\", \"Bad number\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tnumber2 = Integer.parseInt(num2.getText());\n\t\t\t\t}\n\t\t\t\tcatch (Exception exc) {\n\t\t\t\t\tMessageDialog.openError(shell, \"Error\", \"Bad number\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tint ans = number1 + number2;\n\t\t\t\tanswer.setText(\"Answer: \" + ans);\n\t\t\t}\n\t\t});\n\t\tplusButton.setBounds(29, 158, 56, 28);\n\t\tplusButton.setText(\"+\");\n\t\t\n\t\t\n\n\t}", "@Override\n\tpublic void createPartControl(Composite parent) {\n\t\tViewForm viewForm = new ViewForm(parent, SWT.NONE);\n\t\tviewForm.setLayoutData(new FillLayout());\n\t\t\n\t\tfinal Text text = new Text(viewForm, SWT.BORDER |SWT.WRAP |SWT.V_SCROLL );\n\t\tviewForm.setContent(text);\n\t\t\n\t\tToolBar toolBar = new ToolBar(viewForm, SWT.FLAT);\n\t\tToolItem getItem = new ToolItem(toolBar, SWT.PUSH);\n\t\tgetItem.setText(\"get\");\n\t\tgetItem.addSelectionListener(new SelectionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tMessageDialog.openInformation(parent.getShell(), \"info\", ((ToolItem)e.getSource()).getText());\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tToolItem clearItem = new ToolItem(toolBar, SWT.PUSH);\n\t\tclearItem.setText(\"clear\");\n\t\tclearItem.addSelectionListener(new SelectionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tMessageDialog.openInformation(parent.getShell(), \"info\", ((ToolItem)e.getSource()).getText());\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tviewForm.setTopRight(toolBar);\n\t\t\n\t}", "protected void createContents() {\n\t\tshlFaststone = new Shell();\n\t\tshlFaststone.setImage(SWTResourceManager.getImage(Edit.class, \"/image/all1.png\"));\n\t\tshlFaststone.setToolTipText(\"\");\n\t\tshlFaststone.setSize(944, 479);\n\t\tshlFaststone.setText(\"kaca\");\n\t\tshlFaststone.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tComposite composite = new Composite(shlFaststone, SWT.NONE);\n\t\tcomposite.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tSashForm sashForm = new SashForm(composite, SWT.VERTICAL);\n\t\t//\n\t\tMenu menu = new Menu(shlFaststone, SWT.BAR);\n\t\tshlFaststone.setMenuBar(menu);\n\t\tMenuItem menuItem = new MenuItem(menu, SWT.CASCADE);\n\t\tmenuItem.setSelection(true);\n\t\tmenuItem.setText(\"\\u6587\\u4EF6\");\n\t\t\n\t\tMenu menu_1 = new Menu(menuItem);\n\t\tmenuItem.setMenu(menu_1);\n\t\t\n\t\tfinal Canvas down=new Canvas(shlFaststone,SWT.NONE|SWT.BORDER|SWT.DOUBLE_BUFFERED);\n\t\t\n\t\tComposite composite_4 = new Composite(sashForm, SWT.BORDER);\n\t\tcomposite_4.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tSashForm sashForm_3 = new SashForm(composite_4, SWT.NONE);\n\t\tformToolkit.adapt(sashForm_3);\n\t\tformToolkit.paintBordersFor(sashForm_3);\n\t\t\n\t\tToolBar toolBar = new ToolBar(sashForm_3, SWT.BORDER | SWT.FLAT | SWT.WRAP | SWT.RIGHT);\n\t\ttoolBar.setToolTipText(\"\");\n\t\t\n\t\tToolItem toolItem_6 = new ToolItem(toolBar, SWT.NONE);\n\t\ttoolItem_6.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmntmNewItem_2.notifyListeners(SWT.Selection,event1);\n\n\t\t\t}\n\t\t});\n\t\ttoolItem_6.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6253\\u5F00.jpg\"));\n\t\ttoolItem_6.setText(\"\\u6253\\u5F00\");\n\t\t\n\t\tToolItem tltmNewItem = new ToolItem(toolBar, SWT.NONE);\n\t\t\n\t\t\n\t\ttltmNewItem.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\n\n\t\t\t}\n\t\t});\n\t\t//\n\t\t\n\t\ttltmNewItem.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u53E6\\u5B58\\u4E3A.jpg\"));\n\t\ttltmNewItem.setText(\"\\u53E6\\u5B58\\u4E3A\");\n\t\t//关闭\n\t\tToolItem tltmNewItem_4 = new ToolItem(toolBar, SWT.NONE);\n\t\ttltmNewItem_4.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmntmNewItem_5.notifyListeners(SWT.Selection, event2);\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\ttltmNewItem_4.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7ED3\\u675F.jpg\"));\n\t\ttltmNewItem_4.setText(\"\\u5173\\u95ED\");\n\t\t\n\t\t\n\t\t\n\t\tToolItem tltmNewItem_1 = new ToolItem(toolBar, SWT.NONE);\n\t\ttltmNewItem_1.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\t//缩放\n\t\t\n\t\t\n\t\ttltmNewItem_1.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u653E\\u5927.jpg\"));\n\t\t\n\t\t//工具栏:放大\n\t\t\n\t\ttltmNewItem_1.setText(\"\\u653E\\u5927\");\n\t\t\n\t\tToolItem tltmNewItem_2 = new ToolItem(toolBar, SWT.NONE);\n\t\t\n\t\t//工具栏:缩小\n\t\ttltmNewItem_2.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\t\n\t\ttltmNewItem_2.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F29\\u5C0F.jpg\"));\n\t\ttltmNewItem_2.setText(\"\\u7F29\\u5C0F\");\n\t\tToolItem toolItem_5 = new ToolItem(toolBar, SWT.NONE);\n\t\ttoolItem_5.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmntmNewItem_5.notifyListeners(SWT.Selection, event2);\n\n\t\t\t}\n\t\t});\n\t\ttoolItem_5.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7ED3\\u675F.jpg\"));\n\t\ttoolItem_5.setText(\"\\u9000\\u51FA\");\n\t\t\n\t\tToolBar toolBar_1 = new ToolBar(sashForm_3, SWT.BORDER | SWT.FLAT | SWT.RIGHT);\n\t\tformToolkit.adapt(toolBar_1);\n\t\tformToolkit.paintBordersFor(toolBar_1);\n\t\t\n\t\tToolItem toolItem_7 = new ToolItem(toolBar_1, SWT.NONE);\n\t\t\n\t\t//工具栏:标题\n\t\ttoolItem_7.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\t//\n\t\t\n\t\ttoolItem_7.setText(\"\\u6807\\u9898\");\n\t\ttoolItem_7.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6807\\u9898.jpg\"));\n\t\t\n\t\tToolItem toolItem_1 = new ToolItem(toolBar_1, SWT.NONE);\n\t\t\n\t\t//工具栏:调整大小\n\t\ttoolItem_1.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\t//\n\t\t\n\t\ttoolItem_1.setText(\"\\u8C03\\u6574\\u5927\\u5C0F\");\n\t\ttoolItem_1.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u8C03\\u6574\\u5927\\u5C0F.jpg\"));\n\t\t\n\t\tToolBar toolBar_2 = new ToolBar(sashForm_3, SWT.BORDER | SWT.FLAT | SWT.RIGHT);\n\t\ttoolBar_2.setBackground(SWTResourceManager.getColor(SWT.COLOR_GRAY));\n\t\tformToolkit.adapt(toolBar_2);\n\t\tformToolkit.paintBordersFor(toolBar_2);\n\t\t\n\t\tToolItem toolItem_2 = new ToolItem(toolBar_2, SWT.NONE);\n\t\t\n\t\t//工具栏:裁剪\n\t\ttoolItem_2.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\t//\n\t\t\n\t\ttoolItem_2.setText(\"\\u88C1\\u526A\");\n\t\ttoolItem_2.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u88C1\\u526A.jpg\"));\n\t\t\n\t\tToolItem toolItem_3 = new ToolItem(toolBar_2, SWT.NONE);\n\t\t\n\t\t//工具栏:剪切\n\t\ttoolItem_3.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\t//\n\t\t\n\t\ttoolItem_3.setText(\"\\u526A\\u5207\");\n\t\ttoolItem_3.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u526A\\u5207.jpg\"));\n\t\t\n\t\tToolItem toolItem_4 = new ToolItem(toolBar_2, SWT.NONE);\n\t\t\n\n\t\t//工具栏:粘贴\n\t\ttoolItem_4.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\n\t\t\t\tcomposite_3.layout();\n\t\t\t\tFile f=new File(\"src/picture/beauty.jpg\");\n\t\t\t\tImageData imageData;\n\t\t\t\ttry {\n\t\t\t\t\timageData = new ImageData( new FileInputStream( f));\n\t\t\t\t\tImage image=new Image(shlFaststone.getDisplay(),imageData);\n\t\t\t\t\tButton lblNewLabel_3 = null;\n\t\t\t\t\tlblNewLabel_3.setImage(image);\n\t\t\t\t} catch (FileNotFoundException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\tcomposite_3.layout();\n\t\t\t}\n\t\t});\n\t\t//omposite;\n\t\t//\n\t\t\n\t\ttoolItem_4.setText(\"\\u590D\\u5236\");\n\t\ttoolItem_4.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u590D\\u5236.jpg\"));\n\t\t\n\t\tToolItem tltmNewItem_3 = new ToolItem(toolBar_2, SWT.NONE);\n\t\ttltmNewItem_3.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u7C98\\u8D34.jpg\"));\n\t\ttltmNewItem_3.setText(\"\\u7C98\\u8D34\");\n\t\tsashForm_3.setWeights(new int[] {486, 165, 267});\n\t\t\n\t\tComposite composite_1 = new Composite(sashForm, SWT.NONE);\n\t\tformToolkit.adapt(composite_1);\n\t\tformToolkit.paintBordersFor(composite_1);\n\t\tcomposite_1.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tSashForm sashForm_1 = new SashForm(composite_1, SWT.VERTICAL);\n\t\tformToolkit.adapt(sashForm_1);\n\t\tformToolkit.paintBordersFor(sashForm_1);\n\t\t\n\t\tComposite composite_2 = new Composite(sashForm_1, SWT.NONE);\n\t\tformToolkit.adapt(composite_2);\n\t\tformToolkit.paintBordersFor(composite_2);\n\t\tcomposite_2.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tTabFolder tabFolder = new TabFolder(composite_2, SWT.NONE);\n\t\ttabFolder.setTouchEnabled(true);\n\t\tformToolkit.adapt(tabFolder);\n\t\tformToolkit.paintBordersFor(tabFolder);\n\t\t\n\t\tTabItem tbtmNewItem = new TabItem(tabFolder, SWT.NONE);\n\t\ttbtmNewItem.setText(\"\\u65B0\\u5EFA\\u4E00\");\n\t\t\n\t\tTabItem tbtmNewItem_1 = new TabItem(tabFolder, SWT.NONE);\n\t\ttbtmNewItem_1.setText(\"\\u65B0\\u5EFA\\u4E8C\");\n\t\t\n\t\tTabItem tbtmNewItem_2 = new TabItem(tabFolder, SWT.NONE);\n\t\ttbtmNewItem_2.setText(\"\\u65B0\\u5EFA\\u4E09\");\n\t\t\n\t\tButton button = new Button(tabFolder, SWT.CHECK);\n\t\tbutton.setText(\"Check Button\");\n\t\t\n\t\tcomposite_3 = new Composite(sashForm_1, SWT.H_SCROLL | SWT.V_SCROLL);\n\t\t\n\t\tformToolkit.adapt(composite_3);\n\t\tformToolkit.paintBordersFor(composite_3);\n\t\tcomposite_3.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tLabel lblNewLabel_3 = new Label(composite_3, SWT.NONE);\n\t\tformToolkit.adapt(lblNewLabel_3, true, true);\n\t\tlblNewLabel_3.setText(\"\");\n\t\tsashForm_1.setWeights(new int[] {19, 323});\n\t\t\n\t\tComposite composite_5 = new Composite(sashForm, SWT.NONE);\n\t\tcomposite_5.setToolTipText(\"\");\n\t\tcomposite_5.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tSashForm sashForm_2 = new SashForm(composite_5, SWT.NONE);\n\t\tformToolkit.adapt(sashForm_2);\n\t\tformToolkit.paintBordersFor(sashForm_2);\n\t\t\n\t\tLabel lblNewLabel = new Label(sashForm_2, SWT.BORDER | SWT.CENTER);\n\t\tformToolkit.adapt(lblNewLabel, true, true);\n\t\tlblNewLabel.setText(\"1/1\");\n\t\t\n\t\tLabel lblNewLabel_2 = new Label(sashForm_2, SWT.BORDER | SWT.CENTER);\n\t\tformToolkit.adapt(lblNewLabel_2, true, true);\n\t\tlblNewLabel_2.setText(\"\\u5927\\u5C0F\\uFF1A1366*728\");\n\t\t\n\t\tLabel lblNewLabel_1 = new Label(sashForm_2, SWT.CENTER);\n\t\tformToolkit.adapt(lblNewLabel_1, true, true);\n\t\tlblNewLabel_1.setText(\"\\u7F29\\u653E\\uFF1A100%\");\n\t\t\n\t\tLabel label = new Label(sashForm_2, SWT.NONE);\n\t\tlabel.setAlignment(SWT.RIGHT);\n\t\tformToolkit.adapt(label, true, true);\n\t\tlabel.setText(\"\\u5494\\u5693\\u5DE5\\u4F5C\\u5BA4\\u7248\\u6743\\u6240\\u6709\");\n\t\tsashForm_2.setWeights(new int[] {127, 141, 161, 490});\n\t\tsashForm.setWeights(new int[] {50, 346, 22});\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tMenuItem mntmNewItem = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmNewItem.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6587\\u4EF6\\u5B50\\u56FE\\u6807/\\u6587\\u4EF6.\\u65B0\\u5EFA.jpg\"));\n\t\tmntmNewItem.setText(\"\\u65B0\\u5EFA\");\n\t\t\n\t\tmntmNewItem_2 = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmNewItem_2.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\n\t\t\t\t//Label lblNewLabel_3 = new Label(composite_1, SWT.NONE);\n\t\t\t\t//Canvas c=new Canvas(shlFaststone,SWT.BALLOON);\n\t\t\t\t\n\t\t\t\tFileDialog dialog = new FileDialog(shlFaststone,SWT.OPEN); \n\t\t\t\tdialog.setFilterPath(System.getProperty(\"user_home\"));//设置初始路径\n\t\t\t\tdialog.setFilterNames(new String[] {\"文本文档(*txt)\",\"所有文档\"}); \n\t\t\t\tdialog.setFilterExtensions(new String[]{\"*.exe\",\"*.xls\",\"*.*\"});\n\t\t\t\tString path=dialog.open();\n\t\t\t\tString s=null;\n\t\t\t\tFile f=null;\n\t\t\t\tif(path==null||\"\".equals(path)) {\n\t\t\t\t\treturn ;\n\t\t\t\t}\n\t\t\t\ttry{\n\t\t\t f=new File(path);\n\t\t\t\tbyte[] bs=Fileutil.readFile(f);\n\t\t\t s=new String(bs,\"UTF-8\");\n\t\t\t\t}catch (Exception e1) {\n\t\t\t\t\t// TODO: handle exception\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\tMessageDialog.openError(shlFaststone, \"出错了\", \"打开\"+path+\"出错了\");\n\t\t\t\t\treturn ;\n\t\t\t\t}\n\t\t\t \n\t\t\t\ttext = new Text(composite_4, SWT.BORDER | SWT.WRAP\n\t\t\t\t\t\t| SWT.H_SCROLL | SWT.V_SCROLL | SWT.CANCEL\n\t\t\t\t\t\t| SWT.MULTI);\n\t\t\t\ttext.setText(s);\n\t\t\t\tcomposite_1.layout();\n\t\t\t\tshlFaststone.setText(shlFaststone.getText()+\"\\t\"+f.getName());\n\t\t\t\t\t\n\t\t\t\tFile f1=new File(path);\n\t\t\t\tImageData imageData;\n\t\t\t\ttry {\n\t\t\t\t\timageData = new ImageData( new FileInputStream( f1));\n\t\t\t\t\tImage image=new Image(shlFaststone.getDisplay(),imageData);\n\t\t\t\t\tlblNewLabel_3.setImage(image);\n\t\t\t\t} catch (FileNotFoundException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\t\t});\n\t\tmntmNewItem_2.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6587\\u4EF6\\u5B50\\u56FE\\u6807/\\u6587\\u4EF6.\\u6253\\u5F00.jpg\"));\n\t\tmntmNewItem_2.setText(\"\\u6253\\u5F00\");\n\t\t\n\t\tMenuItem mntmNewItem_1 = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmNewItem_1.setText(\"\\u4ECE\\u526A\\u8D34\\u677F\\u5BFC\\u5165\");\n\t\t\n\t\tMenuItem mntmNewItem_3 = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmNewItem_3.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6587\\u4EF6\\u5B50\\u56FE\\u6807/\\u6587\\u4EF6.\\u53E6\\u5B58\\u4E3A.jpg\"));\n\t\tmntmNewItem_3.setText(\"\\u53E6\\u5B58\\u4E3A\");\n\t\t\n\t\t mntmNewItem_5 = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmNewItem_5.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t boolean result=MessageDialog.openConfirm(shlFaststone,\"退出\",\"是否确认退出\");\n\t\t\t\t if(result) {\n\t\t\t\t\t System.exit(0);\n\t\t\t\t }\n\n\t\t\t}\n\t\t});\n\t\tmntmNewItem_5.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6587\\u4EF6\\u5B50\\u56FE\\u6807/\\u6587\\u4EF6.\\u4FDD\\u5B58.jpg\"));\n\t\tmntmNewItem_5.setText(\"\\u5173\\u95ED\");\n\t\tevent2=new Event();\n\t\tevent2.widget=mntmNewItem_5;\n\n\t\t\n\t\tMenuItem mntmNewSubmenu = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmNewSubmenu.setText(\"\\u6355\\u6349\");\n\t\t\n\t\tMenu menu_2 = new Menu(mntmNewSubmenu);\n\t\tmntmNewSubmenu.setMenu(menu_2);\n\t\t\n\t\tMenuItem mntmNewItem_6 = new MenuItem(menu_2, SWT.NONE);\n\t\tmntmNewItem_6.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349\\u6D3B\\u52A8\\u7A97\\u53E3.jpg\"));\n\t\tmntmNewItem_6.setText(\"\\u6355\\u6349\\u6D3B\\u52A8\\u7A97\\u53E3\");\n\t\t\n\t\tMenuItem mntmNewItem_7 = new MenuItem(menu_2, SWT.NONE);\n\t\tmntmNewItem_7.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349.\\u6355\\u6349\\u7A97\\u53E3\\u6216\\u5BF9\\u8C61.jpg\"));\n\t\tmntmNewItem_7.setText(\"\\u6355\\u6349\\u7A97\\u53E3\\u5BF9\\u8C61\");\n\t\t\n\t\tMenuItem mntmNewItem_8 = new MenuItem(menu_2, SWT.NONE);\n\t\tmntmNewItem_8.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349.jpg\"));\n\t\tmntmNewItem_8.setText(\"\\u6355\\u6349\\u77E9\\u5F62\\u533A\\u57DF\");\n\t\t\n\t\tMenuItem mntmNewItem_9 = new MenuItem(menu_2, SWT.NONE);\n\t\tmntmNewItem_9.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349.\\u624B\\u7ED8\\u533A\\u57DF.jpg\"));\n\t\tmntmNewItem_9.setText(\"\\u6355\\u6349\\u624B\\u7ED8\\u533A\\u57DF\");\n\t\t\n\t\tMenuItem mntmNewItem_10 = new MenuItem(menu_2, SWT.NONE);\n\t\tmntmNewItem_10.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349.\\u6574\\u4E2A\\u5C4F\\u5E55.jpg\"));\n\t\tmntmNewItem_10.setText(\"\\u6355\\u6349\\u6574\\u4E2A\\u5C4F\\u5E55\");\n\t\t\n\t\tMenuItem mntmNewItem_11 = new MenuItem(menu_2, SWT.NONE);\n\t\tmntmNewItem_11.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349\\u6EDA\\u52A8\\u7A97\\u53E3.jpg\"));\n\t\tmntmNewItem_11.setText(\"\\u6355\\u6349\\u6EDA\\u52A8\\u7A97\\u53E3\");\n\t\t\n\t\tMenuItem mntmNewItem_12 = new MenuItem(menu_2, SWT.NONE);\n\t\tmntmNewItem_12.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349.\\u56FA\\u5B9A\\u5927\\u5C0F\\u533A\\u57DF.jpg\"));\n\t\tmntmNewItem_12.setText(\"\\u6355\\u6349\\u56FA\\u5B9A\\u5927\\u5C0F\\u533A\\u57DF\");\n\t\t\n\t\tMenuItem menuItem_1 = new MenuItem(menu_2, SWT.NONE);\n\t\tmenuItem_1.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349.\\u91CD\\u590D\\u4E0A\\u6B21\\u6355\\u6349.jpg\"));\n\t\tmenuItem_1.setText(\"\\u91CD\\u590D\\u4E0A\\u6B21\\u6355\\u6349\");\n\t\t\n\t\tMenuItem menuItem_2 = new MenuItem(menu, SWT.CASCADE);\n\t\tmenuItem_2.setText(\"\\u7F16\\u8F91\");\n\t\t\n\t\tMenu menu_3 = new Menu(menuItem_2);\n\t\tmenuItem_2.setMenu(menu_3);\n\t\t\n\t\tMenuItem mntmNewItem_14 = new MenuItem(menu_3, SWT.NONE);\n\t\tmntmNewItem_14.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u5DE6\\u64A4\\u9500.jpg\"));\n\t\tmntmNewItem_14.setText(\"\\u64A4\\u9500\");\n\t\t\n\t\tMenuItem mntmNewItem_13 = new MenuItem(menu_3, SWT.NONE);\n\t\tmntmNewItem_13.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u53F3\\u64A4\\u9500.jpg\"));\n\t\tmntmNewItem_13.setText(\"\\u91CD\\u505A\");\n\t\t\n\t\tMenuItem mntmNewItem_15 = new MenuItem(menu_3, SWT.NONE);\n\t\tmntmNewItem_15.setText(\"\\u9009\\u62E9\\u5168\\u90E8\");\n\t\t\n\t\tMenuItem mntmNewItem_16 = new MenuItem(menu_3, SWT.NONE);\n\t\tmntmNewItem_16.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u7F16\\u8F91.\\u88C1\\u526A.jpg\"));\n\t\tmntmNewItem_16.setText(\"\\u88C1\\u526A\");\n\t\t\n\t\tMenuItem mntmNewItem_17 = new MenuItem(menu_3, SWT.NONE);\n\t\tmntmNewItem_17.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u526A\\u5207.jpg\"));\n\t\tmntmNewItem_17.setText(\"\\u526A\\u5207\");\n\t\t\n\t\tMenuItem mntmNewItem_18 = new MenuItem(menu_3, SWT.NONE);\n\t\tmntmNewItem_18.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u590D\\u5236.jpg\"));\n\t\tmntmNewItem_18.setText(\"\\u590D\\u5236\");\n\t\t\n\t\tMenuItem menuItem_4 = new MenuItem(menu_3, SWT.NONE);\n\t\tmenuItem_4.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u7C98\\u8D34.jpg\"));\n\t\tmenuItem_4.setText(\"\\u7C98\\u8D34\");\n\t\t\n\t\tMenuItem mntmNewItem_19 = new MenuItem(menu_3, SWT.NONE);\n\t\tmntmNewItem_19.setText(\"\\u5220\\u9664\");\n\t\t\n\t\tMenuItem menuItem_3 = new MenuItem(menu, SWT.CASCADE);\n\t\tmenuItem_3.setText(\"\\u7279\\u6548\");\n\t\t\n\t\tMenu menu_4 = new Menu(menuItem_3);\n\t\tmenuItem_3.setMenu(menu_4);\n\t\t\n\t\tMenuItem mntmNewItem_20 = new MenuItem(menu_4, SWT.NONE);\n\t\tmntmNewItem_20.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7279\\u6548.\\u6C34\\u5370.jpg\"));\n\t\tmntmNewItem_20.setText(\"\\u6C34\\u5370\");\n\t\t\n\t\tPanelPic ppn = new PanelPic();\n\t\tMenuItem mntmNewItem_21 = new MenuItem(menu_4, SWT.NONE);\n\t\tmntmNewItem_21.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tflag[0]=true;\n\t\t\t\tflag[1]=false;\n\n\t\t\t}\n\n\t\t});\n\t\t\n\t\tdown.addMouseListener(new MouseAdapter(){\n\t\t\tpublic void mouseDown(MouseEvent e)\n\t\t\t{\n\t\t\t\tmouseDown=true;\n\t\t\t\tpt=new Point(e.x,e.y);\n\t\t\t\tif(flag[1])\n\t\t\t\t{\n\t\t\t\t\trect=new Composite(down,SWT.BORDER);\n\t\t\t\t\trect.setLocation(e.x, e.y);\n\t\t\t\t\tn++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tpublic void mouseUp(MouseEvent e)\n\t\t\t{\n\t\t\t\tmouseDown=false;\n\t\t\t\tif(flag[1]&&dirty)\n\t\t\t\t{\n\t\t\t\t\trexx[n-1]=rect.getBounds();\n\t\t\t\t\trect.dispose();\n\t\t\t\t\tdown.redraw();\n\t\t\t\t\tdirty=false;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tdown.addMouseMoveListener(new MouseMoveListener(){\n\t\t\t@Override\n\t\t\tpublic void mouseMove(MouseEvent e) {\n if(mouseDown)\n {\n \t dirty=true;\n\t\t\t\tif(flag[0])\n\t\t\t {\n \t GC gc=new GC(down);\n gc.drawLine(pt.x, pt.y, e.x, e.y);\n list.add(new int[]{pt.x,pt.y,e.x,e.y});\n pt.x=e.x;pt.y=e.y;\n\t\t\t }\n else if(flag[1])\n {\n \t if(rect!=null)\n \t rect.setSize(rect.getSize().x+e.x-pt.x, rect.getSize().y+e.y-pt.y);\n// \t down.redraw();\n \t pt.x=e.x;pt.y=e.y;\n }\n }\n\t\t\t}\n\t\t\t\n\t\t});\n\t\tdown.addPaintListener(new PaintListener(){\n\t\t\t@Override\n\t\t\tpublic void paintControl(PaintEvent e) {\n\t\t\t\tfor(int i=0;i<list.size();i++)\n\t\t\t\t{\n\t\t\t\t\tint a[]=list.get(i);\n\t\t\t\t\te.gc.drawLine(a[0], a[1], a[2], a[3]);\n\t\t\t\t}\n\t\t\t\tfor(int i=0;i<n;i++)\n\t\t\t\t{\n\t\t\t\t\tif(rexx[i]!=null)\n\t\t\t\t\t\te.gc.drawRectangle(rexx[i]);\n\t\t\t\t}\n\t\t\t}});\n\n\t\t\n\t\tmntmNewItem_21.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7279\\u6548.\\u6587\\u5B57.jpg\"));\n\t\tmntmNewItem_21.setText(\"\\u753B\\u7B14\");\n\t\t\n\t\tMenuItem mntmNewSubmenu_1 = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmNewSubmenu_1.setText(\"\\u67E5\\u770B\");\n\t\t\n\t\tMenu menu_5 = new Menu(mntmNewSubmenu_1);\n\t\tmntmNewSubmenu_1.setMenu(menu_5);\n\t\t\n\t\tMenuItem mntmNewItem_24 = new MenuItem(menu_5, SWT.NONE);\n\t\tmntmNewItem_24.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u67E5\\u770B.\\u653E\\u5927.jpg\"));\n\t\tmntmNewItem_24.setText(\"\\u653E\\u5927\");\n\t\t\n\t\tMenuItem mntmNewItem_25 = new MenuItem(menu_5, SWT.NONE);\n\t\tmntmNewItem_25.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u67E5\\u770B.\\u7F29\\u5C0F.jpg\"));\n\t\tmntmNewItem_25.setText(\"\\u7F29\\u5C0F\");\n\t\t\n\t\tMenuItem mntmNewItem_26 = new MenuItem(menu_5, SWT.NONE);\n\t\tmntmNewItem_26.setText(\"\\u5B9E\\u9645\\u5C3A\\u5BF8\\uFF08100%\\uFF09\");\n\t\t\n\t\tMenuItem mntmNewItem_27 = new MenuItem(menu_5, SWT.NONE);\n\t\tmntmNewItem_27.setText(\"\\u9002\\u5408\\u7A97\\u53E3\");\n\t\t\n\t\tMenuItem mntmNewItem_28 = new MenuItem(menu_5, SWT.NONE);\n\t\tmntmNewItem_28.setText(\"100%\");\n\t\t\n\t\tMenuItem mntmNewItem_29 = new MenuItem(menu_5, SWT.NONE);\n\t\tmntmNewItem_29.setText(\"200%\");\n\t\t\n\t\tMenuItem mntmNewSubmenu_2 = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmNewSubmenu_2.setText(\"\\u8BBE\\u7F6E\");\n\t\t\n\t\tMenu menu_6 = new Menu(mntmNewSubmenu_2);\n\t\tmntmNewSubmenu_2.setMenu(menu_6);\n\t\t\n\t\tMenuItem menuItem_5 = new MenuItem(menu, SWT.CASCADE);\n\t\tmenuItem_5.setText(\"\\u5E2E\\u52A9\");\n\t\t\n\t\tMenu menu_7 = new Menu(menuItem_5);\n\t\tmenuItem_5.setMenu(menu_7);\n\t\t\n\t\tMenuItem menuItem_6 = new MenuItem(menu_7, SWT.NONE);\n\t\tmenuItem_6.setText(\"\\u7248\\u672C\");\n\t\t\n\t\tMenuItem mntmNewItem_23 = new MenuItem(menu, SWT.NONE);\n\t\tmntmNewItem_23.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u5DE6\\u64A4\\u9500.jpg\"));\n\t\t\n\t\tMenuItem mntmNewItem_30 = new MenuItem(menu, SWT.NONE);\n\t\tmntmNewItem_30.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u53F3\\u64A4\\u9500.jpg\"));\n\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(450, 300);\n\t\tshell.setText(\"SWT Application\");\n\t\t\n\t\tGroup group_1 = new Group(shell, SWT.NONE);\n\t\tgroup_1.setText(\"\\u65B0\\u4FE1\\u606F\\u586B\\u5199\");\n\t\tgroup_1.setBounds(0, 120, 434, 102);\n\t\t\n\t\tLabel label_4 = new Label(group_1, SWT.NONE);\n\t\tlabel_4.setBounds(10, 21, 61, 17);\n\t\tlabel_4.setText(\"\\u59D3\\u540D\");\n\t\t\n\t\tLabel label_5 = new Label(group_1, SWT.NONE);\n\t\tlabel_5.setText(\"\\u7528\\u6237\\u7535\\u8BDD\");\n\t\tlabel_5.setBounds(10, 46, 61, 17);\n\t\t\n\t\tLabel label_6 = new Label(group_1, SWT.NONE);\n\t\tlabel_6.setText(\"\\u5BC6\\u7801\");\n\t\tlabel_6.setBounds(10, 75, 61, 17);\n\t\t\n\t\ttext = new Text(group_1, SWT.BORDER);\n\t\ttext.setBounds(121, 21, 140, 17);\n\t\t\n\t\ttext_1 = new Text(group_1, SWT.BORDER);\n\t\ttext_1.setBounds(121, 46, 140, 17);\n\t\t\n\t\ttext_2 = new Text(group_1, SWT.BORDER);\n\t\ttext_2.setBounds(121, 75, 140, 17);\n\t\t\n\t\tButton btnNewButton = new Button(shell, SWT.NONE);\n\t\tbtnNewButton.setBounds(31, 228, 80, 27);\n\t\tbtnNewButton.setText(\"\\u63D0\\u4EA4\");\n\t\t\n\t\tButton btnNewButton_1 = new Button(shell, SWT.NONE);\n\t\tbtnNewButton_1.setBounds(288, 228, 80, 27);\n\t\tbtnNewButton_1.setText(\"\\u91CD\\u586B\");\n\t\t\n\t\tGroup group = new Group(shell, SWT.NONE);\n\t\tgroup.setText(\"\\u539F\\u5148\\u4FE1\\u606F\");\n\t\tgroup.setBounds(0, 10, 320, 102);\n\t\t\n\t\tLabel label = new Label(group, SWT.NONE);\n\t\tlabel.setBounds(10, 20, 61, 17);\n\t\tlabel.setText(\"\\u59D3\\u540D\");\n\t\t\n\t\tLabel lblNewLabel = new Label(group, SWT.NONE);\n\t\tlblNewLabel.setBounds(113, 20, 61, 17);\n\t\t\n\t\tLabel label_1 = new Label(group, SWT.NONE);\n\t\tlabel_1.setBounds(10, 43, 61, 17);\n\t\tlabel_1.setText(\"\\u6027\\u522B\");\n\t\t\n\t\tButton btnRadioButton = new Button(group, SWT.RADIO);\n\t\t\n\t\tbtnRadioButton.setBounds(90, 43, 97, 17);\n\t\tbtnRadioButton.setText(\"\\u7537\");\n\t\tButton btnRadioButton_1 = new Button(group, SWT.RADIO);\n\t\tbtnRadioButton_1.setBounds(208, 43, 97, 17);\n\t\tbtnRadioButton_1.setText(\"\\u5973\");\n\t\t\n\t\tLabel label_2 = new Label(group, SWT.NONE);\n\t\tlabel_2.setBounds(10, 66, 61, 17);\n\t\tlabel_2.setText(\"\\u7528\\u6237\\u7535\\u8BDD\");\n\t\t\n\t\tLabel lblNewLabel_1 = new Label(group, SWT.NONE);\n\t\tlblNewLabel_1.setBounds(113, 66, 61, 17);\n\t\t\n\t\tLabel label_3 = new Label(group, SWT.NONE);\n\t\tlabel_3.setBounds(10, 89, 61, 17);\n\t\tlabel_3.setText(\"\\u5BC6\\u7801\");\n\t\tLabel lblNewLabel_2 = new Label(group, SWT.NONE);\n\t\tlblNewLabel_2.setBounds(113, 89, 61, 17);\n\t\t\n\t\ttry {\n\t\t\tUserDao userDao=new UserDao();\n\t\t\tlblNewLabel_2.setText(User.getPassword());\n\t\t\tlblNewLabel.setText(User.getUserName());\n\t\t\n\t\t\t\n\n\t\t\n\t\t\ttry {\n\t\t\t\tList<User> userList=userDao.query();\n\t\t\t\tString results[][]=new String[userList.size()][5];\n\t\t\t\tlblNewLabel.setText(User.getUserName());\n\t\t\t\tlblNewLabel_1.setText(User.getSex());\n\t\t\t\tlblNewLabel_2.setText(User.getUserPhone());\n\t\t\t\tButton button = new Button(shell, SWT.NONE);\n\t\t\t\tbutton.setBounds(354, 0, 80, 27);\n\t\t\t\tbutton.setText(\"\\u8FD4\\u56DE\");\n\t\t\t\tbutton.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t\tpublic void widgetSelected(final SelectionEvent e){\n\t\t\t\t\t\tshell.dispose();\n\t\t\t\t\t\tbook book=new book();\n\t\t\t\t\t\tbook.open();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tfor(int i = 0; i < userList.size(); i++) {\n\t\t\t\t\t\tUser user1 = (User)userList.get(i);\t\n\t\t\t\t\tresults[i][0] = user1.getUserName();\n\t\t\t\t\tresults[i][1] = user1.getSex();\t\n\t\t\t\t\tresults[i][2] = user1.getPassword();\t\n\t\n\t\t\t\t\tif(user1.getSex().equals(\"男\"))\n\t\t\t\t\t\tbtnRadioButton.setSelection(true);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tbtnRadioButton_1.setSelection(true);\n\t\t\t\t\tlblNewLabel_1.setText(user1.getUserPhone());\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\tif(!text_1.getText().equals(\"\")&&!text.getText().equals(\"\")&&!text_2.getText().equals(\"\"))\n\t\t\tuserDao.updateUser(text_1.getText(), text.getText(), text_2.getText());\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t\n\t\tbtnNewButton.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(final SelectionEvent e){\n\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tuserDao.updateUser(text_1.getText(), text.getText(), text_2.getText());\n\t\t\t\t\tif(!text_1.getText().equals(\"\")&&!text_2.getText().equals(\"\")&&!text.getText().equals(\"\"))\n\t\t\t\t\t{shell.dispose();\n\t\t\t\t\tbook book=new book();\n\t\t\t\t\tbook.open();\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{JOptionPane.showMessageDialog(null,\"用户名或密码不能为空\",\"错误\",JOptionPane.PLAIN_MESSAGE);}\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\t});\n\t\tbtnNewButton_1.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(final SelectionEvent e){\n\t\t\t\t\ttext.setText(\"\");\n\t\t\t\t\ttext_1.setText(\"\");\n\t\t\t\t\ttext_2.setText(\"\");\n\t\t\t\n\t\t\t}\n\t\t});\n\t}", "private void createContents() {\n shell = new Shell(getParent(), SWT.BORDER | SWT.TITLE | SWT.APPLICATION_MODAL);\n shell.setSize(FORM_WIDTH, 700);\n shell.setText(getText());\n shell.setLayout(new GridLayout(1, false));\n\n TabFolder tabFolder = new TabFolder(shell, SWT.NONE);\n tabFolder.setLayoutData(TAB_GROUP_LAYOUT_DATA);\n\n // STRUCTURE PARAMETERS\n\n TabItem tbtmStructure = new TabItem(tabFolder, SWT.NONE);\n tbtmStructure.setText(\"Structure\");\n\n Composite grpStructure = new Composite(tabFolder, SWT.NONE);\n tbtmStructure.setControl(grpStructure);\n grpStructure.setLayout(TAB_GROUP_LAYOUT);\n grpStructure.setLayoutData(TAB_GROUP_LAYOUT_DATA);\n\n ParmDialogText.load(grpStructure, parms, \"meta\");\n ParmDialogText.load(grpStructure, parms, \"col\");\n ParmDialogText.load(grpStructure, parms, \"id\");\n ParmDialogChoices.load(grpStructure, parms, \"init\", Activation.values());\n ParmDialogChoices.load(grpStructure, parms, \"activation\", Activation.values());\n ParmDialogFlag.load(grpStructure, parms, \"raw\");\n ParmDialogFlag.load(grpStructure, parms, \"batch\");\n ParmDialogGroup cnn = ParmDialogText.load(grpStructure, parms, \"cnn\");\n ParmDialogGroup filters = ParmDialogText.load(grpStructure, parms, \"filters\");\n ParmDialogGroup strides = ParmDialogText.load(grpStructure, parms, \"strides\");\n ParmDialogGroup subs = ParmDialogText.load(grpStructure, parms, \"sub\");\n if (cnn != null) {\n if (filters != null) cnn.setGrouped(filters);\n if (strides != null) cnn.setGrouped(strides);\n if (subs != null) cnn.setGrouped(subs);\n }\n ParmDialogText.load(grpStructure, parms, \"lstm\");\n ParmDialogGroup wGroup = ParmDialogText.load(grpStructure, parms, \"widths\");\n ParmDialogGroup bGroup = ParmDialogText.load(grpStructure, parms, \"balanced\");\n if (bGroup != null && wGroup != null) {\n wGroup.setExclusive(bGroup);\n bGroup.setExclusive(wGroup);\n }\n\n // SEARCH CONTROL PARAMETERS\n\n TabItem tbtmSearch = new TabItem(tabFolder, SWT.NONE);\n tbtmSearch.setText(\"Training\");\n\n ScrolledComposite grpSearch0 = new ScrolledComposite(tabFolder, SWT.V_SCROLL);\n grpSearch0.setLayout(new FillLayout());\n grpSearch0.setLayoutData(TAB_GROUP_LAYOUT_DATA);\n tbtmSearch.setControl(grpSearch0);\n Composite grpSearch = new Composite(grpSearch0, SWT.NONE);\n grpSearch0.setContent(grpSearch);\n grpSearch.setLayout(TAB_GROUP_LAYOUT);\n grpSearch.setLayoutData(TAB_GROUP_LAYOUT_DATA);\n\n Enum<?>[] preferTypes = (this.modelType == TrainingProcessor.Type.CLASS ? RunStats.OptimizationType.values()\n : RunStats.RegressionType.values());\n ParmDialogChoices.load(grpSearch, parms, \"prefer\", preferTypes);\n ParmDialogChoices.load(grpSearch, parms, \"method\", Trainer.Type.values());\n ParmDialogText.load(grpSearch, parms, \"bound\");\n ParmDialogChoices.load(grpSearch, parms, \"lossFun\", LossFunctionType.values());\n ParmDialogText.load(grpSearch, parms, \"weights\");\n ParmDialogText.load(grpSearch, parms, \"iter\");\n ParmDialogText.load(grpSearch, parms, \"batchSize\");\n ParmDialogText.load(grpSearch, parms, \"testSize\");\n ParmDialogText.load(grpSearch, parms, \"maxBatches\");\n ParmDialogText.load(grpSearch, parms, \"earlyStop\");\n ParmDialogChoices.load(grpSearch, parms, \"regMode\", Regularization.Mode.values());\n ParmDialogText.load(grpSearch, parms, \"regFactor\");\n ParmDialogText.load(grpSearch, parms, \"seed\");\n ParmDialogChoices.load(grpSearch, parms, \"start\", WeightInit.values());\n ParmDialogChoices.load(grpSearch, parms, \"gradNorm\", GradientNormalization.values());\n ParmDialogChoices.load(grpSearch, parms, \"updater\", GradientUpdater.Type.values());\n ParmDialogText.load(grpSearch, parms, \"learnRate\");\n ParmDialogChoices.load(grpSearch, parms, \"bUpdater\", GradientUpdater.Type.values());\n ParmDialogText.load(grpSearch, parms, \"updateRate\");\n\n grpSearch.setSize(grpSearch.computeSize(FORM_WIDTH - 50, SWT.DEFAULT));\n\n // BOTTOM BUTTON BAR\n\n Composite grpButtonBar = new Composite(shell, SWT.NONE);\n grpButtonBar.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, true, false, 1, 1));\n grpButtonBar.setLayout(new FillLayout(SWT.HORIZONTAL));\n\n Button btnSave = new Button(grpButtonBar, SWT.NONE);\n btnSave.setText(\"Save\");\n btnSave.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent evt) {\n try {\n parms.save(parmFile);\n } catch (IOException e) {\n ShellUtils.showErrorBox(getParent(), \"Error Saving Parm File\", e.getMessage());\n }\n }\n });\n\n Button btnClose = new Button(grpButtonBar, SWT.NONE);\n btnClose.setText(\"Cancel\");\n btnClose.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent evt) {\n shell.close();\n }\n });\n\n Button btnOK = new Button(grpButtonBar, SWT.NONE);\n btnOK.setText(\"Save and Close\");\n btnOK.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent evt) {\n try {\n parms.save(parmFile);\n shell.close();\n } catch (IOException e) {\n ShellUtils.showErrorBox(getParent(), \"Error Saving Parm File\", e.getMessage());\n }\n }\n });\n\n }", "private void createContents() {\r\n\t\tshlOProgramie = new Shell(getParent().getDisplay(), SWT.DIALOG_TRIM\r\n\t\t\t\t| SWT.RESIZE);\r\n\t\tshlOProgramie.setBackground(SWTResourceManager.getColor(255, 255, 255));\r\n\t\tshlOProgramie.setText(\"O programie\");\r\n\t\tshlOProgramie.setSize(386, 221);\r\n\t\tint x = 386;\r\n\t\tint y = 221;\r\n\t\t// Get the resolution\r\n\t\tRectangle pDisplayBounds = shlOProgramie.getDisplay().getBounds();\r\n\r\n\t\t// This formulae calculate the shell's Left ant Top\r\n\t\tint nLeft = (pDisplayBounds.width - x) / 2;\r\n\t\tint nTop = (pDisplayBounds.height - y) / 2;\r\n\r\n\t\t// Set shell bounds,\r\n\t\tshlOProgramie.setBounds(nLeft, nTop, x, y);\r\n\t\tsetText(\"O programie\");\r\n\r\n\t\tbtnZamknij = new Button(shlOProgramie, SWT.PUSH | SWT.BORDER_SOLID);\r\n\t\tbtnZamknij.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseUp(MouseEvent e) {\r\n\t\t\t\tshlOProgramie.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnZamknij.setBounds(298, 164, 68, 23);\r\n\t\tbtnZamknij.setText(\"Zamknij\");\r\n\r\n\t\tText link = new Text(shlOProgramie, SWT.READ_ONLY);\r\n\t\tlink.setBackground(SWTResourceManager.getColor(230, 230, 250));\r\n\t\tlink.setBounds(121, 127, 178, 13);\r\n\t\tlink.setText(\"Kontakt: [email protected]\");\r\n\r\n\t\tCLabel lblNewLabel = new CLabel(shlOProgramie, SWT.BORDER\r\n\t\t\t\t| SWT.SHADOW_IN | SWT.SHADOW_OUT | SWT.SHADOW_NONE);\r\n\t\tlblNewLabel.setBackground(SWTResourceManager.getColor(230, 230, 250));\r\n\t\tlblNewLabel.setBounds(118, 20, 248, 138);\r\n\t\tlblNewLabel\r\n\t\t\t\t.setText(\" Kalkulator walut ver 0.0.2 \\r\\n -------------------------------\\r\\n Program umo\\u017Cliwiaj\\u0105cy pobieranie\\r\\n aktualnych kurs\\u00F3w walut ze strony nbp.pl\\r\\n\\r\\n Copyright by Wojciech Trocki.\\r\\n\");\r\n\r\n\t\tLabel lblNewLabel_1 = new Label(shlOProgramie, SWT.NONE);\r\n\t\tlblNewLabel_1.setBackground(SWTResourceManager.getColor(255, 255, 255));\r\n\t\tlblNewLabel_1.setImage(SWTResourceManager.getImage(\"images/about.gif\"));\r\n\t\tlblNewLabel_1.setBounds(10, 20, 100, 138);\r\n\t}", "public void createContents(){\n\t\t// Creates control for ScrolledCompositeController controlItemSCSCLC\n\t\tcontrolItemSCSCLC = new ScrolledCompositeController(\"controlItemSC\", coreController, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tsetDirtyManagement(false);\n\t\t\t\t\tgetComposite().setLayout(new MigLayout(\"wrap 2\",\"[align right]10[fill,grow]\",\"[]\"));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\t// Creates control for LabelController background$1LBL\n\t\tbackground$1LBL = new LabelController(\"background$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"control\", \"background\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateBackground(this);\n\t\t// Creates control for LabelController backgroundImage$1LBL\n\t\tbackgroundImage$1LBL = new LabelController(\"backgroundImage$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"control\", \"backgroundImage\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateBackgroundImage(this);\n\t\t// Creates control for LabelController bounds$1LBL\n\t\tbounds$1LBL = new LabelController(\"bounds$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"control\", \"bounds\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateBounds(this);\n\t\t// Creates control for LabelController capture$1LBL\n\t\tcapture$1LBL = new LabelController(\"capture$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"control\", \"capture\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateCapture(this);\n\t\t// Creates control for LabelController containerBackground$1LBL\n\t\tcontainerBackground$1LBL = new LabelController(\"containerBackground$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"containerBackground\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateContainerBackground(this);\n\t\t// Creates control for LabelController containerBackgroundImage$1LBL\n\t\tcontainerBackgroundImage$1LBL = new LabelController(\"containerBackgroundImage$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"containerBackgroundImage\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateContainerBackgroundImage(this);\n\t\t// Creates control for LabelController containerBounds$1LBL\n\t\tcontainerBounds$1LBL = new LabelController(\"containerBounds$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"containerBounds\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateContainerBounds(this);\n\t\t// Creates control for LabelController containerCapture$1LBL\n\t\tcontainerCapture$1LBL = new LabelController(\"containerCapture$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"containerCapture\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateContainerCapture(this);\n\t\t// Creates control for LabelController containerFocus$1LBL\n\t\tcontainerFocus$1LBL = new LabelController(\"containerFocus$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"containerFocus\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateContainerFocus(this);\n\t\t// Creates control for LabelController containerFont$1LBL\n\t\tcontainerFont$1LBL = new LabelController(\"containerFont$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"containerFont\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateContainerFont(this);\n\t\t// Creates control for LabelController containerForeground$1LBL\n\t\tcontainerForeground$1LBL = new LabelController(\"containerForeground$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"containerForeground\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateContainerForeground(this);\n\t\t// Creates control for LabelController containerLayoutData$1LBL\n\t\tcontainerLayoutData$1LBL = new LabelController(\"containerLayoutData$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"containerLayoutData\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateContainerLayoutData(this);\n\t\t// Creates control for LabelController containerLocation$1LBL\n\t\tcontainerLocation$1LBL = new LabelController(\"containerLocation$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"containerLocation\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateContainerLocation(this);\n\t\t// Creates control for LabelController containerMenu$1LBL\n\t\tcontainerMenu$1LBL = new LabelController(\"containerMenu$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"containerMenu\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateContainerMenu(this);\n\t\t// Creates control for LabelController containerRedraw$1LBL\n\t\tcontainerRedraw$1LBL = new LabelController(\"containerRedraw$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"containerRedraw\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateContainerRedraw(this);\n\t\t// Creates control for LabelController containerSize$1LBL\n\t\tcontainerSize$1LBL = new LabelController(\"containerSize$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"containerSize\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateContainerSize(this);\n\t\t// Creates control for LabelController containerStyle$1LBL\n\t\tcontainerStyle$1LBL = new LabelController(\"containerStyle$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"containerStyle\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateContainerStyle(this);\n\t\t// Creates control for LabelController editable$1LBL\n\t\teditable$1LBL = new LabelController(\"editable$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"editable\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateEditable(this);\n\t\t// Creates control for LabelController enabled$1LBL\n\t\tenabled$1LBL = new LabelController(\"enabled$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"widget\", \"enabled\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateEnabled(this);\n\t\t// Creates control for LabelController focus$1LBL\n\t\tfocus$1LBL = new LabelController(\"focus$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"control\", \"focus\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateFocus(this);\n\t\t// Creates control for LabelController font$1LBL\n\t\tfont$1LBL = new LabelController(\"font$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"control\", \"font\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateFont(this);\n\t\t// Creates control for LabelController foreground$1LBL\n\t\tforeground$1LBL = new LabelController(\"foreground$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"control\", \"foreground\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateForeground(this);\n\t\t// Creates control for LabelController layoutData$1LBL\n\t\tlayoutData$1LBL = new LabelController(\"layoutData$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"control\", \"layoutData\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateLayoutData(this);\n\t\t// Creates control for LabelController location$1LBL\n\t\tlocation$1LBL = new LabelController(\"location$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"control\", \"location\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateLocation(this);\n\t\t// Creates control for LabelController menu$1LBL\n\t\tmenu$1LBL = new LabelController(\"menu$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"control\", \"menu\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateMenu(this);\n\t\t// Creates control for LabelController orientation$1LBL\n\t\torientation$1LBL = new LabelController(\"orientation$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"orientation\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateOrientation(this);\n\t\t// Creates control for LabelController redraw$1LBL\n\t\tredraw$1LBL = new LabelController(\"redraw$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"control\", \"redraw\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateRedraw(this);\n\t\t// Creates control for LabelController size$1LBL\n\t\tsize$1LBL = new LabelController(\"size$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"control\", \"size\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateSize(this);\n\t\t// Creates control for LabelController style$1LBL\n\t\tstyle$1LBL = new LabelController(\"style$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"widget\", \"style\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateStyle(this);\n\t\t// Creates control for LabelController tabs$1LBL\n\t\ttabs$1LBL = new LabelController(\"tabs$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"tabs\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateTabs(this);\n\t\t// Creates control for LabelController text$1LBL\n\t\ttext$1LBL = new LabelController(\"text$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"text\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateText(this);\n\t\t// Creates control for LabelController textLimit$1LBL\n\t\ttextLimit$1LBL = new LabelController(\"textLimit$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"textLimit\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateTextLimit(this);\n\t\t// Creates control for LabelController toolTipText$1LBL\n\t\ttoolTipText$1LBL = new LabelController(\"toolTipText$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"widget\", \"toolTipText\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateToolTipText(this);\n\t\t// Creates control for LabelController visible$1LBL\n\t\tvisible$1LBL = new LabelController(\"visible$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"control\", \"visible\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateVisible(this);\n\t}", "protected void createContents() {\n\t\tshell = new Shell(SWT.CLOSE | SWT.MIN);// 取消最大化与拖拽放大功能\n\t\tshell.setImage(SWTResourceManager.getImage(WelcomPart.class, \"/images/MC.ico\"));\n\t\tshell.setBackgroundImage(SWTResourceManager.getImage(WelcomPart.class, \"/images/back.jpg\"));\n\t\tshell.setBackgroundMode(SWT.INHERIT_DEFAULT);\n\t\tshell.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\tshell.setSize(1157, 720);\n\t\tshell.setText(\"\\u56FE\\u4E66\\u67E5\\u8BE2\");\n\t\tshell.setLocation(Display.getCurrent().getClientArea().width / 2 - shell.getShell().getSize().x / 2,\n\t\t\t\tDisplay.getCurrent().getClientArea().height / 2 - shell.getSize().y / 2);\n\n\t\tMenu menu = new Menu(shell, SWT.BAR);\n\t\tshell.setMenuBar(menu);\n\n\t\tMenuItem menuItem = new MenuItem(menu, SWT.CASCADE);\n\t\tmenuItem.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/base.png\"));\n\t\tmenuItem.setText(\"\\u7A0B\\u5E8F\");\n\n\t\tMenu menu_1 = new Menu(menuItem);\n\t\tmenuItem.setMenu(menu_1);\n\n\t\tMenuItem menuI_main = new MenuItem(menu_1, SWT.NONE);\n\t\tmenuI_main.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/about.png\"));\n\t\tmenuI_main.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tAdmin_BookShow window = new Admin_BookShow();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenuI_main.setText(\"\\u4E3B\\u9875\");\n\n\t\tMenuItem menu_exit = new MenuItem(menu_1, SWT.NONE);\n\t\tmenu_exit.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/reset.png\"));\n\t\tmenu_exit.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tWelcomPart window = new WelcomPart();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu_exit.setText(\"\\u9000\\u51FA\");\n\n\t\tMenuItem menubook = new MenuItem(menu, SWT.CASCADE);\n\t\tmenubook.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/bookTypeManager.png\"));\n\t\tmenubook.setText(\"\\u56FE\\u4E66\\u7BA1\\u7406\");\n\n\t\tMenu menu_2 = new Menu(menubook);\n\t\tmenubook.setMenu(menu_2);\n\n\t\tMenuItem menu1_add = new MenuItem(menu_2, SWT.NONE);\n\t\tmenu1_add.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/add.png\"));\n\t\tmenu1_add.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBook_add window = new Book_add();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu1_add.setText(\"\\u6DFB\\u52A0\\u56FE\\u4E66\");\n\n\t\tMenuItem menu1_select = new MenuItem(menu_2, SWT.NONE);\n\t\tmenu1_select.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/search.png\"));\n\t\tmenu1_select.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t// 图书查询\n\t\t\t\tshell.close();\n\t\t\t\tBook_select window = new Book_select();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu1_select.setText(\"\\u67E5\\u8BE2\\u56FE\\u4E66\");\n\n\t\tMenuItem menu1_alter = new MenuItem(menu_2, SWT.NONE);\n\t\tmenu1_alter.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/modify.png\"));\n\t\tmenu1_alter.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBook_alter window = new Book_alter();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu1_alter.setText(\"\\u4FEE\\u6539\\u56FE\\u4E66\");\n\n\t\tMenuItem menuI1_delete = new MenuItem(menu_2, SWT.NONE);\n\t\tmenuI1_delete.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/exit.png\"));\n\t\tmenuI1_delete.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBook_del window = new Book_del();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenuI1_delete.setText(\"\\u5220\\u9664\\u56FE\\u4E66\");\n\n\t\tMenuItem menutype = new MenuItem(menu, SWT.CASCADE);\n\t\tmenutype.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/bookManager.png\"));\n\t\tmenutype.setText(\"\\u4E66\\u7C7B\\u7BA1\\u7406\");\n\n\t\tMenu menu_3 = new Menu(menutype);\n\t\tmenutype.setMenu(menu_3);\n\n\t\tMenuItem menu2_add = new MenuItem(menu_3, SWT.NONE);\n\t\tmenu2_add.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/add.png\"));\n\t\tmenu2_add.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBooktype_add window = new Booktype_add();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu2_add.setText(\"\\u6DFB\\u52A0\\u4E66\\u7C7B\");\n\n\t\tMenuItem menu2_alter = new MenuItem(menu_3, SWT.NONE);\n\t\tmenu2_alter.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/modify.png\"));\n\t\tmenu2_alter.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBooktype_alter window = new Booktype_alter();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu2_alter.setText(\"\\u4FEE\\u6539\\u4E66\\u7C7B\");\n\n\t\tMenuItem menu2_delete = new MenuItem(menu_3, SWT.NONE);\n\t\tmenu2_delete.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/exit.png\"));\n\t\tmenu2_delete.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBooktype_delete window = new Booktype_delete();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu2_delete.setText(\"\\u5220\\u9664\\u4E66\\u7C7B\");\n\n\t\tMenuItem menumark = new MenuItem(menu, SWT.CASCADE);\n\t\tmenumark.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/student.png\"));\n\t\tmenumark.setText(\"\\u501F\\u8FD8\\u8BB0\\u5F55\");\n\n\t\tMenu menu_4 = new Menu(menumark);\n\t\tmenumark.setMenu(menu_4);\n\n\t\tMenuItem menu3_borrow = new MenuItem(menu_4, SWT.NONE);\n\t\tmenu3_borrow.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/edit.png\"));\n\t\tmenu3_borrow.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tAdmin_borrowmark window = new Admin_borrowmark();\n\t\t\t\twindow.open();// 借书记录\n\t\t\t}\n\t\t});\n\t\tmenu3_borrow.setText(\"\\u501F\\u4E66\\u8BB0\\u5F55\");\n\n\t\tMenuItem menu3_return = new MenuItem(menu_4, SWT.NONE);\n\t\tmenu3_return.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/search.png\"));\n\t\tmenu3_return.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tAdmin_returnmark window = new Admin_returnmark();\n\t\t\t\twindow.open();// 还书记录\n\t\t\t}\n\t\t});\n\t\tmenu3_return.setText(\"\\u8FD8\\u4E66\\u8BB0\\u5F55\");\n\n\t\tMenuItem mntmhelp = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmhelp.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/about.png\"));\n\t\tmntmhelp.setText(\"\\u5173\\u4E8E\");\n\n\t\tMenu menu_5 = new Menu(mntmhelp);\n\t\tmntmhelp.setMenu(menu_5);\n\n\t\tMenuItem menu4_Info = new MenuItem(menu_5, SWT.NONE);\n\t\tmenu4_Info.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/me.png\"));\n\t\tmenu4_Info.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tAdmin_Info window = new Admin_Info();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu4_Info.setText(\"\\u8F6F\\u4EF6\\u4FE1\\u606F\");\n\n\t\ttable = new Table(shell, SWT.BORDER | SWT.FULL_SELECTION);\n\t\ttable.setFont(SWTResourceManager.getFont(\"黑体\", 10, SWT.NORMAL));\n\t\ttable.setLinesVisible(true);\n\t\ttable.setHeaderVisible(true);\n\t\ttable.setBounds(10, 191, 1119, 447);\n\n\t\tTableColumn tableColumn = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn.setWidth(29);\n\n\t\tTableColumn tableColumn_id = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_id.setWidth(110);\n\t\ttableColumn_id.setText(\"\\u56FE\\u4E66\\u7F16\\u53F7\");\n\n\t\tTableColumn tableColumn_name = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_name.setWidth(216);\n\t\ttableColumn_name.setText(\"\\u56FE\\u4E66\\u540D\\u79F0\");\n\n\t\tTableColumn tableColumn_author = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_author.setWidth(117);\n\t\ttableColumn_author.setText(\"\\u56FE\\u4E66\\u79CD\\u7C7B\");\n\n\t\tTableColumn tableColumn_pub = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_pub.setWidth(148);\n\t\ttableColumn_pub.setText(\"\\u4F5C\\u8005\");\n\n\t\tTableColumn tableColumn_stock = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_stock.setWidth(167);\n\t\ttableColumn_stock.setText(\"\\u51FA\\u7248\\u793E\");\n\n\t\tTableColumn tableColumn_sortid = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_sortid.setWidth(79);\n\t\ttableColumn_sortid.setText(\"\\u5E93\\u5B58\");\n\n\t\tTableColumn tableColumn_record = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_record.setWidth(247);\n\t\ttableColumn_record.setText(\"\\u767B\\u8BB0\\u65F6\\u95F4\");\n\n\t\tCombo combo_way = new Combo(shell, SWT.NONE);\n\t\tcombo_way.add(\"图书编号\");\n\t\tcombo_way.add(\"图书名称\");\n\t\tcombo_way.add(\"图书作者\");\n\t\tcombo_way.setFont(SWTResourceManager.getFont(\"黑体\", 12, SWT.NORMAL));\n\t\tcombo_way.setBounds(314, 157, 131, 28);\n\n\t\t// 遍历查询book表\n\t\tButton btnButton_select = new Button(shell, SWT.NONE);\n\t\tbtnButton_select.setImage(SWTResourceManager.getImage(Book_select.class, \"/images/search.png\"));\n\t\tbtnButton_select.setFont(SWTResourceManager.getFont(\"黑体\", 12, SWT.NORMAL));\n\t\tbtnButton_select.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tBook book = new Book();\n\t\t\t\tSelectbook selectbook = new Selectbook();\n\t\t\t\ttable.removeAll();\n\t\t\t\tif (combo_way.getText().equals(\"图书编号\")) {\n\t\t\t\t\tbook.setBook_id(text_select.getText().trim());\n\t\t\t\t\tString str[][] = selectbook.ShowAidBook(book);\n\t\t\t\t\tfor (int i = 1; i < str.length; i++) {\n\t\t\t\t\t\tTableItem item = new TableItem(table, SWT.NONE);\n\t\t\t\t\t\titem.setText(i + \".\");\n\t\t\t\t\t\titem.setText(str[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (combo_way.getText().equals(\"图书名称\")) {\n\t\t\t\t\tbook.setBook_name(\"%\" + text_select.getText().trim() + \"%\");\n\t\t\t\t\tString str[][] = selectbook.ShowAnameBook(book);\n\t\t\t\t\tfor (int i = 1; i < str.length; i++) {\n\t\t\t\t\t\tTableItem item = new TableItem(table, SWT.NONE);\n\t\t\t\t\t\titem.setText(i + \".\");\n\t\t\t\t\t\titem.setText(str[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (combo_way.getText().equals(\"图书作者\")) {\n\t\t\t\t\tbook.setBook_author(\"%\" + text_select.getText().trim() + \"%\");\n\t\t\t\t\tString str[][] = selectbook.ShowAauthorBook(book);\n\t\t\t\t\tfor (int i = 1; i < str.length; i++) {\n\t\t\t\t\t\tTableItem item = new TableItem(table, SWT.NONE);\n\t\t\t\t\t\titem.setText(i + \".\");\n\t\t\t\t\t\titem.setText(str[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (combo_way.getText().length() == 0) {\n\t\t\t\t\tString str[][] = selectbook.ShowAllBook();\n\t\t\t\t\tfor (int i = 1; i < str.length; i++) {\n\t\t\t\t\t\tTableItem item = new TableItem(table, SWT.NONE);\n\t\t\t\t\t\titem.setText(i + \".\");\n\t\t\t\t\t\titem.setText(str[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnButton_select.setBounds(664, 155, 98, 30);\n\t\tbtnButton_select.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\tbtnButton_select.setText(\"查询\");\n\n\t\ttext_select = new Text(shell, SWT.BORDER);\n\t\ttext_select.setBounds(472, 155, 186, 30);\n\n\t\tLabel lblNewLabel_way = new Label(shell, SWT.NONE);\n\t\tlblNewLabel_way.setForeground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\tlblNewLabel_way.setFont(SWTResourceManager.getFont(\"黑体\", 12, SWT.NORMAL));\n\t\tlblNewLabel_way.setBounds(314, 128, 107, 30);\n\t\tlblNewLabel_way.setText(\"\\u67E5\\u8BE2\\u65B9\\u5F0F\\uFF1A\");\n\n\t\tLabel lblNewLabel_1 = new Label(shell, SWT.NONE);\n\t\tlblNewLabel_1.setText(\"\\u56FE\\u4E66\\u67E5\\u8BE2\");\n\t\tlblNewLabel_1.setForeground(SWTResourceManager.getColor(255, 255, 255));\n\t\tlblNewLabel_1.setFont(SWTResourceManager.getFont(\"黑体\", 25, SWT.BOLD));\n\t\tlblNewLabel_1.setAlignment(SWT.CENTER);\n\t\tlblNewLabel_1.setBounds(392, 54, 266, 48);\n\n\t\tLabel lblNewLabel = new Label(shell, SWT.NONE);\n\t\tlblNewLabel.setText(\"\\u8F93\\u5165\\uFF1A\");\n\t\tlblNewLabel.setForeground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\tlblNewLabel.setFont(SWTResourceManager.getFont(\"黑体\", 12, SWT.NORMAL));\n\t\tlblNewLabel.setBounds(472, 129, 76, 20);\n\n\t}", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"SWT Application\");\r\n\t\t\r\n\t\tLabel label = new Label(shell, SWT.NONE);\r\n\t\tlabel.setBounds(44, 47, 90, 24);\r\n\t\tlabel.setText(\"充值金额:\");\r\n\t\t\r\n\t\ttext_balance = new Text(shell, SWT.BORDER);\r\n\t\ttext_balance.setBounds(156, 47, 198, 30);\r\n\t\t\r\n\t\tButton button = new Button(shell, SWT.NONE);\r\n\t\t//确认充值\r\n\t\tbutton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tString balance=text_balance.getText().trim();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tint i=dao.add(balance);\r\n\t\t\t\t\tif(i>0){\r\n\t\t\t\t\t\tswtUtil.showMessage(shell, \"成功提示\", \"充值成功\");\r\n\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tswtUtil.showMessage(shell, \"错误提示\", \"所充值不能为零\");\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (SQLException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton.setBounds(140, 131, 114, 34);\r\n\t\tbutton.setText(\"确认充值\");\r\n\r\n\t}", "protected abstract StructuredViewer createViewer(Shell shell);", "protected void createContents() {\n\t\tshlCarbAndRemainder = new Shell(Display.getDefault(), SWT.TITLE|SWT.CLOSE|SWT.BORDER);\n\t\tshlCarbAndRemainder.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tshlCarbAndRemainder.setSize(323, 262);\n\t\tshlCarbAndRemainder.setText(\"CARB and Remainder\");\n\t\t\n\t\tGroup grpCarbSetting = new Group(shlCarbAndRemainder, SWT.NONE);\n\t\tgrpCarbSetting.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tgrpCarbSetting.setFont(SWTResourceManager.getFont(\"Calibri\", 12, SWT.BOLD));\n\t\tgrpCarbSetting.setText(\"CARB Setting\");\n\t\t\n\t\tgrpCarbSetting.setBounds(10, 0, 295, 106);\n\t\t\n\t\tLabel lblCARBValue = new Label(grpCarbSetting, SWT.NONE);\n\t\tlblCARBValue.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tlblCARBValue.setBounds(10, 32, 149, 22);\n\t\tlblCARBValue.setText(\"CARB Value\");\n\t\t\n\t\tLabel lblAuthenticationPIN = new Label(grpCarbSetting, SWT.NONE);\n\t\tlblAuthenticationPIN.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tlblAuthenticationPIN.setBounds(10, 68, 149, 22);\n\t\tlblAuthenticationPIN.setText(\"Authentication PIN\");\n\t\t\n\t\tSpinner spinnerCARBValue = new Spinner(grpCarbSetting, SWT.BORDER);\n\t\tspinnerCARBValue.setBounds(206, 29, 72, 22);\n\t\t\n\t\ttextAuthenticationPIN = new Text(grpCarbSetting, SWT.BORDER|SWT.PASSWORD);\n\t\ttextAuthenticationPIN.setBounds(206, 65, 72, 21);\n\t\t\t\t\n\t\tGroup grpRemainder = new Group(shlCarbAndRemainder, SWT.NONE);\n\t\tgrpRemainder.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tgrpRemainder.setFont(SWTResourceManager.getFont(\"Calibri\", 12, SWT.BOLD));\n\t\tgrpRemainder.setText(\"Remainder\");\n\t\tgrpRemainder.setBounds(10, 112, 296, 106);\n\t\t\n\t\tButton btnInjectBolus = new Button(grpRemainder, SWT.NONE);\n\t\tbtnInjectBolus.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\tbtnInjectBolus.setBounds(183, 38, 103, 41);\n\t\tbtnInjectBolus.setText(\"INJECT BOLUS\");\n\t\t\n\t\tButton btnCancel = new Button(grpRemainder, SWT.NONE);\n\t\tbtnCancel.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshlCarbAndRemainder.close();\n\t\t\t}\n\t\t});\n\t\tbtnCancel.setBounds(10, 38, 80, 41);\n\t\tbtnCancel.setText(\"Cancel\");\n\t\t\n\t\tButton btnSnooze = new Button(grpRemainder, SWT.NONE);\n\t\tbtnSnooze.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\tbtnSnooze.setBounds(96, 38, 81, 41);\n\t\tbtnSnooze.setText(\"Snooze\");\n\n\t}", "public void createContents()\n\t{\n\t\tshell = new Shell();\n\t\tshell.setSize(450, 300);\n\t\tshell.setText(\"TTS - Task Tracker System\");\n\t\t\n\t\tbtnLogIn = new Button(shell, SWT.NONE);\n\t\tbtnLogIn.setBounds(349, 84, 75, 25);\n\t\tbtnLogIn.setText(\"Log In\");\n\t\tbtnLogIn.addSelectionListener(new SelectionAdapter()\n\t\t{\n\t\t\tpublic void widgetSelected(SelectionEvent arg0)\n\t\t\t{\n\t\t\t\tif (cboxUserDropDown.getText() != \"\"\n\t\t\t\t\t\t&& cboxUserDropDown.getSelectionIndex() >= 0)\n\t\t\t\t{\n\t\t\t\t\tString selectedUserName = cboxUserDropDown.getText();\n\t\t\t\t\tusers.setLoggedInUser(selectedUserName);\n\t\t\t\t\tshell.setVisible(false);\n\t\t\t\t\tdisplay.sleep();\n\t\t\t\t\tnew TaskMainViewWindow(AccessUsers.getLoggedInUser());\n\t\t\t\t\tdisplay.wake();\n\t\t\t\t\tshell.setVisible(true);\n\t\t\t\t\tshell.forceFocus();\n\t\t\t\t\tshell.setActive();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tbtnQuit = new Button(shell, SWT.CENTER);\n\t\tbtnQuit.setBounds(349, 227, 75, 25);\n\t\tbtnQuit.setText(\"Quit\");\n\t\tbtnQuit.addSelectionListener(new SelectionAdapter()\n\t\t{\n\t\t\tpublic void widgetSelected(SelectionEvent arg0)\n\t\t\t{\n\t\t\t\tshell.close();\n\t\t\t}\n\t\t});\n\t\t\n\t\tcboxUserDropDown = new Combo(shell, SWT.READ_ONLY);\n\t\tcboxUserDropDown.setBounds(146, 86, 195, 23);\n\t\t\n\t\tinitUserDropDown();\n\t\t\n\t\tlblNewLabel = new Label(shell, SWT.CENTER);\n\t\tlblNewLabel.setBounds(197, 21, 183, 25);\n\t\tlblNewLabel.setFont(new Font(display, \"Times\", 14, SWT.BOLD));\n\t\tlblNewLabel.setForeground(new Color(display, 200, 0, 0));\n\t\tlblNewLabel.setText(\"Task Tracker System\");\n\t\t\n\t\ticon = new Label(shell, SWT.BORDER);\n\t\ticon.setLocation(0, 0);\n\t\ticon.setSize(140, 111);\n\t\ticon.setImage(new Image(null, \"images/task.png\"));\n\t\t\n\t\tbtnCreateUser = new Button(shell, SWT.NONE);\n\t\tbtnCreateUser.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t\tshell.setEnabled(false);\n\t\t\t\tnew CreateUserWindow(users);\n\t\t\t\tshell.setEnabled(true);\n\t\t\t\tinitUserDropDown();\n\t\t\t\tshell.forceFocus();\n\t\t\t\tshell.setActive();\n\t\t\t}\n\t\t});\n\t\tbtnCreateUser.setBounds(349, 115, 75, 25);\n\t\tbtnCreateUser.setText(\"Create User\");\n\t\t\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(new Point(500, 360));\n\t\tshell.setMinimumSize(new Point(500, 360));\n\t\tshell.setText(\"SWT Application\");\n\t\tshell.setLayout(new GridLayout(2, false));\n\t\t\n\t\tLabel label = new Label(shell, SWT.NONE);\n\t\tlabel.setText(\"欢迎 \"+user.getName()+\" 同学使用学生成绩管理系统\");\n\t\tnew Label(shell, SWT.NONE);\n\t\t\n\t\tComposite compositeStdData = new Composite(shell, SWT.NONE);\n\t\tcompositeStdData.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));\n\t\tGridLayout gl_compositeStdData = new GridLayout(2, false);\n\t\tgl_compositeStdData.verticalSpacing = 15;\n\t\tcompositeStdData.setLayout(gl_compositeStdData);\n\t\t\n\t\tLabel labelStdData = new Label(compositeStdData, SWT.NONE);\n\t\tlabelStdData.setAlignment(SWT.CENTER);\n\t\tlabelStdData.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, true, 2, 1));\n\t\tlabelStdData.setText(\"成绩数据\");\n\t\t\n\t\tLabel labelStdDataNum = new Label(compositeStdData, SWT.NONE);\n\t\tlabelStdDataNum.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlabelStdDataNum.setText(\"学号:\");\n\t\t\n\t\ttextStdDataNum = new Text(compositeStdData, SWT.BORDER);\n\t\ttextStdDataNum.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\n\t\t\n\t\tLabel labelStdDataName = new Label(compositeStdData, SWT.NONE);\n\t\tlabelStdDataName.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlabelStdDataName.setText(\"姓名:\");\n\t\t\n\t\ttextStdDataName = new Text(compositeStdData, SWT.BORDER);\n\t\ttextStdDataName.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\n\t\t\n\t\tLabel labelStdDataLine = new Label(compositeStdData, SWT.SEPARATOR | SWT.HORIZONTAL);\n\t\tlabelStdDataLine.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, true, 2, 1));\n\t\tlabelStdDataLine.setText(\"New Label\");\n\t\t\n\t\tLabel labelCourseName = new Label(compositeStdData, SWT.NONE);\n\t\tlabelCourseName.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlabelCourseName.setText(\"课程名\");\n\t\t\n\t\tLabel labelScore = new Label(compositeStdData, SWT.NONE);\n\t\tlabelScore.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlabelScore.setText(\"成绩\");\n\t\t\n\t\ttextCourseName = new Text(compositeStdData, SWT.BORDER);\n\t\ttextCourseName.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\t\n\t\ttextScore = new Text(compositeStdData, SWT.BORDER);\n\t\ttextScore.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\t\n\t\tLabel labelStdDataFill = new Label(compositeStdData, SWT.NONE);\n\t\tlabelStdDataFill.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, true, 1, 1));\n\t\tnew Label(compositeStdData, SWT.NONE);\n\t\t\n\t\tComposite compositeStdOp = new Composite(shell, SWT.NONE);\n\t\tcompositeStdOp.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, true, 1, 1));\n\t\tGridLayout gl_compositeStdOp = new GridLayout(1, false);\n\t\tgl_compositeStdOp.verticalSpacing = 15;\n\t\tcompositeStdOp.setLayout(gl_compositeStdOp);\n\t\t\n\t\tLabel labelStdOP = new Label(compositeStdOp, SWT.NONE);\n\t\tlabelStdOP.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, true, 1, 1));\n\t\tlabelStdOP.setAlignment(SWT.CENTER);\n\t\tlabelStdOP.setText(\"操作菜单\");\n\t\t\n\t\tButton buttonStdOPFirst = new Button(compositeStdOp, SWT.NONE);\n\t\tbuttonStdOPFirst.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tbuttonStdOPFirst.setText(\"第一门课程\");\n\t\t\n\t\tButton buttonStdOPNext = new Button(compositeStdOp, SWT.NONE);\n\t\tbuttonStdOPNext.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tbuttonStdOPNext.setText(\"下一门课程\");\n\t\t\n\t\tButton buttonStdOPPrev = new Button(compositeStdOp, SWT.NONE);\n\t\tbuttonStdOPPrev.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tbuttonStdOPPrev.setText(\"上一门课程\");\n\t\t\n\t\tButton buttonStdOPLast = new Button(compositeStdOp, SWT.NONE);\n\t\tbuttonStdOPLast.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tbuttonStdOPLast.setText(\"最后一门课程\");\n\t\t\n\t\tCombo comboStdOPSele = new Combo(compositeStdOp, SWT.NONE);\n\t\tcomboStdOPSele.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, true, false, 1, 1));\n\t\tcomboStdOPSele.setText(\"课程名?\");\n\t\t\n\t\tLabel labelStdOPFill = new Label(compositeStdOp, SWT.NONE);\n\t\tlabelStdOPFill.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));\n\n\t}", "private void createContents() {\r\n\t\tshlAboutGoko = new Shell(getParent(), getStyle());\r\n\t\tshlAboutGoko.setSize(376, 248);\r\n\t\tshlAboutGoko.setText(\"About Goko\");\r\n\t\tshlAboutGoko.setLayout(new GridLayout(1, false));\r\n\r\n\t\tComposite composite_1 = new Composite(shlAboutGoko, SWT.NONE);\r\n\t\tcomposite_1.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));\r\n\t\tcomposite_1.setLayout(new GridLayout(1, false));\r\n\r\n\t\tLabel lblGokoIsA = new Label(composite_1, SWT.WRAP);\r\n\t\tGridData gd_lblGokoIsA = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_lblGokoIsA.widthHint = 350;\r\n\t\tlblGokoIsA.setLayoutData(gd_lblGokoIsA);\r\n\t\tlblGokoIsA.setText(\"Goko is an open source desktop application for CNC control and operation\");\r\n\r\n\t\tComposite composite_2 = new Composite(composite_1, SWT.NONE);\r\n\t\tcomposite_2.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\r\n\t\tcomposite_2.setLayout(new GridLayout(2, false));\r\n\r\n\t\tLabel lblAlphaVersion = new Label(composite_2, SWT.NONE);\r\n\t\tlblAlphaVersion.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));\r\n\t\tlblAlphaVersion.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.ITALIC));\r\n\t\tlblAlphaVersion.setText(\"Version\");\r\n\r\n\t\tLabel lblVersion = new Label(composite_2, SWT.NONE);\r\n\t\tlblVersion.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(composite_1, SWT.NONE);\r\n\r\n\t\tLabel lblDate = new Label(composite_2, SWT.NONE);\r\n\t\tlblDate.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));\r\n\t\tlblDate.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.ITALIC));\r\n\t\tlblDate.setText(\"Build\");\r\n\t\t\r\n\t\tLabel lblBuild = new Label(composite_2, SWT.NONE);\r\n\t\tlblBuild.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\r\n\t\t\t\t\r\n\t\tProperties prop = new Properties();\r\n\t\tClassLoader loader = Thread.currentThread().getContextClassLoader(); \r\n\t\tInputStream stream = loader.getResourceAsStream(\"/version.properties\");\r\n\t\ttry {\r\n\t\t\tprop.load(stream);\r\n\t\t\tString version = prop.getProperty(\"goko.version\");\r\n\t\t\tString build = prop.getProperty(\"goko.build.timestamp\");\r\n\t\t\tlblVersion.setText(version);\r\n\t\t\tlblBuild.setText(build);\t\r\n\t\t\t\r\n\t\t} catch (IOException e) {\r\n\t\t\tLOG.error(e);\r\n\t\t}\r\n\t\t\r\n\t\tComposite composite = new Composite(composite_1, SWT.NONE);\r\n\t\tcomposite.setLayout(new GridLayout(2, false));\r\n\r\n\t\tLabel lblMoreInformationOn = new Label(composite, SWT.NONE);\r\n\t\tGridData gd_lblMoreInformationOn = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_lblMoreInformationOn.widthHint = 60;\r\n\t\tlblMoreInformationOn.setLayoutData(gd_lblMoreInformationOn);\r\n\t\tlblMoreInformationOn.setText(\"Website :\");\r\n\r\n\t\tLink link = new Link(composite, SWT.NONE);\r\n\t\tlink.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseUp(MouseEvent event) {\r\n\t\t\t\tif (event.button == 1) { // Left button pressed & released\r\n\t\t Desktop desktop = Desktop.isDesktopSupported() ? Desktop.getDesktop() : null;\r\n\t\t if (desktop != null && desktop.isSupported(Desktop.Action.BROWSE)) {\r\n\t\t try {\r\n\t\t desktop.browse(URI.create(\"http://www.goko.fr\"));\r\n\t\t } catch (Exception e) {\r\n\t\t LOG.error(e);\r\n\t\t }\r\n\t\t }\r\n\t\t }\r\n\t\t\t}\r\n\t\t});\r\n\t\tlink.setText(\"<a>http://www.goko.fr</a>\");\r\n\t\t\r\n\t\tComposite composite_3 = new Composite(composite_1, SWT.NONE);\r\n\t\tcomposite_3.setLayout(new GridLayout(2, false));\r\n\t\t\r\n\t\tLabel lblForum = new Label(composite_3, SWT.NONE);\r\n\t\tGridData gd_lblForum = new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_lblForum.widthHint = 60;\r\n\t\tlblForum.setLayoutData(gd_lblForum);\r\n\t\tlblForum.setText(\"Forum :\");\r\n\t\t\r\n\t\tLink link_1 = new Link(composite_3, 0);\r\n\t\tlink_1.setText(\"<a>http://discuss.goko.fr</a>\");\r\n\t\tlink_1.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseUp(MouseEvent event) {\r\n\t\t\t\tif (event.button == 1) { // Left button pressed & released\r\n\t\t Desktop desktop = Desktop.isDesktopSupported() ? Desktop.getDesktop() : null;\r\n\t\t if (desktop != null && desktop.isSupported(Desktop.Action.BROWSE)) {\r\n\t\t try {\r\n\t\t desktop.browse(URI.create(\"http://discuss.goko.fr\"));\r\n\t\t } catch (Exception e) {\r\n\t\t LOG.error(e);\r\n\t\t }\r\n\t\t }\r\n\t\t }\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tComposite composite_4 = new Composite(composite_1, SWT.NONE);\r\n\t\tcomposite_4.setLayout(new GridLayout(2, false));\r\n\t\t\r\n\t\tLabel lblContact = new Label(composite_4, SWT.NONE);\r\n\t\tGridData gd_lblContact = new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_lblContact.widthHint = 60;\r\n\t\tlblContact.setLayoutData(gd_lblContact);\r\n\t\tlblContact.setText(\"Contact :\");\r\n\t\t\t \r\n\t\tLink link_2 = new Link(composite_4, 0);\r\n\t\tlink_2.setText(\"<a>\"+toAscii(\"636f6e7461637440676f6b6f2e6672\")+\"</a>\");\r\n\r\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(550, 400);\n\t\tshell.setText(\"Source A Antenna 1 Data\");\n\t\t\n\t\tButton btnNewButton_1 = new Button(shell, SWT.NONE);\n\t\tbtnNewButton_1.setFont(SWTResourceManager.getFont(\"Ubuntu\", 11, SWT.BOLD));\n\t\tbtnNewButton_1.setBounds(116, 10, 98, 30);\n\t\tbtnNewButton_1.setText(\"pol 1\");\n\t\t\n\t\tButton btnPol = new Button(shell, SWT.NONE);\n\t\tbtnPol.setText(\"pol 2\");\n\t\tbtnPol.setFont(SWTResourceManager.getFont(\"Ubuntu\", 11, SWT.BOLD));\n\t\tbtnPol.setBounds(220, 10, 98, 30);\n\t\t\n\t\tButton btnPol_1 = new Button(shell, SWT.NONE);\n\t\tbtnPol_1.setText(\"pol 3\");\n\t\tbtnPol_1.setFont(SWTResourceManager.getFont(\"Ubuntu\", 11, SWT.BOLD));\n\t\tbtnPol_1.setBounds(324, 10, 98, 30);\n\t\t\n\t\tButton btnPol_2 = new Button(shell, SWT.NONE);\n\t\tbtnPol_2.setText(\"pol 4\");\n\t\tbtnPol_2.setFont(SWTResourceManager.getFont(\"Ubuntu\", 11, SWT.BOLD));\n\t\tbtnPol_2.setBounds(428, 10, 98, 30);\n\t\t\n\t\tButton button_3 = new Button(shell, SWT.NONE);\n\t\tbutton_3.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t\tPlot_graph nw = new Plot_graph();\n\t\t\t\tnw.GraphScreen();\n\t\t\t}\n\t\t});\n\t\tbutton_3.setBounds(116, 46, 98, 30);\n\t\t\n\t\tButton button_4 = new Button(shell, SWT.NONE);\n\t\tbutton_4.setBounds(116, 83, 98, 30);\n\t\t\n\t\tButton button_5 = new Button(shell, SWT.NONE);\n\t\tbutton_5.setBounds(116, 119, 98, 30);\n\t\t\n\t\tButton button_6 = new Button(shell, SWT.NONE);\n\t\tbutton_6.setBounds(116, 155, 98, 30);\n\t\t\n\t\tButton button_7 = new Button(shell, SWT.NONE);\n\t\tbutton_7.setBounds(220, 155, 98, 30);\n\t\t\n\t\tButton button_8 = new Button(shell, SWT.NONE);\n\t\tbutton_8.setBounds(220, 119, 98, 30);\n\t\t\n\t\tButton button_9 = new Button(shell, SWT.NONE);\n\t\tbutton_9.setBounds(220, 83, 98, 30);\n\t\t\n\t\tButton button_10 = new Button(shell, SWT.NONE);\n\t\tbutton_10.setBounds(220, 46, 98, 30);\n\t\t\n\t\tButton button_11 = new Button(shell, SWT.NONE);\n\t\tbutton_11.setBounds(428, 155, 98, 30);\n\t\t\n\t\tButton button_12 = new Button(shell, SWT.NONE);\n\t\tbutton_12.setBounds(428, 119, 98, 30);\n\t\t\n\t\tButton button_13 = new Button(shell, SWT.NONE);\n\t\tbutton_13.setBounds(428, 83, 98, 30);\n\t\t\n\t\tButton button_14 = new Button(shell, SWT.NONE);\n\t\tbutton_14.setBounds(428, 46, 98, 30);\n\t\t\n\t\tButton button_15 = new Button(shell, SWT.NONE);\n\t\tbutton_15.setBounds(324, 46, 98, 30);\n\t\t\n\t\tButton button_16 = new Button(shell, SWT.NONE);\n\t\tbutton_16.setBounds(324, 83, 98, 30);\n\t\t\n\t\tButton button_17 = new Button(shell, SWT.NONE);\n\t\tbutton_17.setBounds(324, 119, 98, 30);\n\t\t\n\t\tButton button_18 = new Button(shell, SWT.NONE);\n\t\tbutton_18.setBounds(324, 155, 98, 30);\n\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(1200, 1100);\n\t\tshell.setText(\"Zagreb Montaža d.o.o\");\n\n\t\tfinal Composite cmpMenu = new Composite(shell, SWT.NONE);\n\t\tcmpMenu.setBackground(SWTResourceManager.getColor(119, 136, 153));\n\t\tcmpMenu.setBounds(0, 0, 359, 1061);\n\t\t\n\t\tFormToolkit formToolkit = new FormToolkit(Display.getDefault());\n\t\tfinal Section sctnCalculator = formToolkit.createSection(cmpMenu, Section.TWISTIE | Section.TITLE_BAR);\n\t\tsctnCalculator.setExpanded(false);\n\t\tsctnCalculator.setBounds(10, 160, 339, 23);\n\t\tformToolkit.paintBordersFor(sctnCalculator);\n\t\tsctnCalculator.setText(\"Kalkulator temperature preddgrijavanja\");\n\n\t\tfinal Section sctn10112ce = formToolkit.createSection(cmpMenu, Section.TREE_NODE | Section.TITLE_BAR);\n\t\tsctn10112ce.setBounds(45, 189, 304, 23);\n\t\tformToolkit.paintBordersFor(sctn10112ce);\n\t\tsctn10112ce.setText(\"1011-2 CE\");\n\t\tsctn10112ce.setVisible(false);\n\n\t\tfinal Section sctn10112cet = formToolkit.createSection(cmpMenu, Section.TREE_NODE | Section.TITLE_BAR);\n\t\tsctn10112cet.setBounds(45, 218, 304, 23);\n\t\tformToolkit.paintBordersFor(sctn10112cet);\n\t\tsctn10112cet.setText(\"1011-2 CET\");\n\t\tsctn10112cet.setVisible(false);\n\n\t\tfinal Section sctnAws = formToolkit.createSection(cmpMenu, Section.TREE_NODE | Section.TITLE_BAR);\n\t\tsctnAws.setBounds(45, 247, 304, 23);\n\t\tformToolkit.paintBordersFor(sctnAws);\n\t\tsctnAws.setText(\"AWS\");\n\t\tsctnAws.setVisible(false);\n\t\t\n\t\tfinal Composite composite10112ce = new Composite(shell, SWT.COLOR_DARK_GRAY);\n\t\t//composite10112ce.setBackground(SWTResourceManager.getColor(255, 255, 255));\n\t\tcomposite10112ce.setBounds(365, 0, 829, 1061);\n\t\tcomposite10112ce.setVisible(false);\n\t\t\n\t\tfinal Composite composite10112cet = new Composite(shell, SWT.COLOR_DARK_GRAY);\n\t\t//composite10112ce.setBackground(SWTResourceManager.getColor(255, 255, 255));\n\t\tcomposite10112cet.setBounds(365, 0, 829, 1061);\n\t\tcomposite10112cet.setVisible(false);\n\t\t\n\t\tfinal Composite compositeAws = new Composite(shell, SWT.COLOR_DARK_GRAY);\n\t\t//composite10112ce.setBackground(SWTResourceManager.getColor(255, 255, 255));\n\t\tcompositeAws.setBounds(365, 0, 829, 1061);\n\t\tcompositeAws.setVisible(false);\n\t\t\n\t\tsctnCalculator.addExpansionListener(new IExpansionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanged(ExpansionEvent arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanging(ExpansionEvent arg0) {\n\n\t\t\t\tif (sctnCalculator.isExpanded() == false) {\n\t\t\t\t\tsctn10112ce.setVisible(true);\n\t\t\t\t\tsctn10112cet.setVisible(true);\n\t\t\t\t\tsctnAws.setVisible(true);\n\n\t\t\t\t} else {\n\t\t\t\t\tsctn10112ce.setVisible(false);\n\t\t\t\t\tsctn10112cet.setVisible(false);\n\t\t\t\t\tsctnAws.setVisible(false);\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t});\n\n\t\tsctn10112ce.addExpansionListener(new IExpansionListener() {\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanging(ExpansionEvent arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanged(ExpansionEvent arg0) {\n\t\t\t\tif (sctn10112ce.isExpanded() == true) {\n\t\t\t\t\tsctn10112cet.setVisible(false);\n\t\t\t\t\tcompositeAws.setVisible(false);\n\t\t\t\t\tnew F10112ce(composite10112ce, cmpMenu.getStyle());\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tcomposite10112ce.setVisible(false);\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tsctn10112cet.addExpansionListener(new IExpansionListener() {\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanging(ExpansionEvent arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanged(ExpansionEvent arg0) {\n\t\t\t\tif (sctn10112cet.isExpanded() == true) {\n\t\t\t\t\tsctn10112ce.setVisible(false);\n\t\t\t\t\tcompositeAws.setVisible(false);\n\t\t\t\t\tnew F10112cet(composite10112cet, cmpMenu.getStyle());\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tcomposite10112ce.setVisible(false);\n\t\t\t}\n\t\t});\n\t\t\n\t\tsctnAws.addExpansionListener(new IExpansionListener() {\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanging(ExpansionEvent arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanged(ExpansionEvent arg0) {\n\t\t\t\tif (sctnAws.isExpanded() == true) {\n\t\t\t\t\tsctn10112ce.setVisible(false);\n\t\t\t\t\tsctn10112cet.setVisible(false);\n\t\t\t\t\tnew FAws(compositeAws, cmpMenu.getStyle());\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tcompositeAws.setVisible(false);\n\t\t\t}\n\t\t});\n\t}", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setLayout(new GridLayout(1, false));\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"SWT Application\");\r\n\t\t{\r\n\t\t\tfinal Button btnShowTheFake = new Button(shell, SWT.TOGGLE);\r\n\t\t\tbtnShowTheFake.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\r\n\t\t\t\t\tif (btnShowTheFake.getSelection()) {\r\n\t\t\t\t\t\tRectangle bounds = btnShowTheFake.getBounds();\r\n\t\t\t\t\t\tPoint pos = shell.toDisplay(bounds.x + 5, bounds.y + bounds.height);\r\n\t\t\t\t\t\ttooltip = showTooltip(shell, pos.x, pos.y);\r\n\t\t\t\t\t\tbtnShowTheFake.setText(\"Hide it\");\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (tooltip != null && !tooltip.isDisposed())\r\n\t\t\t\t\t\t\ttooltip.dispose();\r\n\t\t\t\t\t\tbtnShowTheFake.setText(\"Show The Fake Tooltip\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tbtnShowTheFake.setText(\"Show The Fake Tooltip\");\r\n\t\t}\r\n\t}", "@Override\r\n\tprotected String getView() {\n\t\treturn OBSView.PARTS_VIEW;\r\n\t}", "public void createPartControl(Composite parent)\n {\n if (Workbench.getInstance().isClosing()) return;\n \n super.createPartControl(parent);\n \n installProjectionSupport();\n installBracketInserter();\n installCaretMoveListener();\n installModuleCompletionHelper();\n installIdleTimer();\n installSyntaxValidationThread();\n installFoldReconciler();\n installTasksReconciler();\n installAnnotationListener();\n \n source = new SourceFile(\n PerlEditorPlugin.getDefault().getLog(),\n getViewer().getDocument());\n \n reconcile();\n }", "protected void createContents() {\n\t\tshlMenu = new Shell();\n\t\tshlMenu.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/File-delete-icon.png\"));\n\t\tshlMenu.setBackground(SWTResourceManager.getColor(255, 102, 0));\n\t\tshlMenu.setSize(899, 578);\n\t\tshlMenu.setText(\"MENU\");\n\t\t\n\t\tMenu menu = new Menu(shlMenu, SWT.BAR);\n\t\tshlMenu.setMenuBar(menu);\n\t\t\n\t\tMenuItem mnętmBookLists = new MenuItem(menu, SWT.NONE);\n\t\tmnętmBookLists.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call booklist frame \n\t\t\t\tBookListFrame window = new BookListFrame();\n\t\t\t\twindow.open();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tmnętmBookLists.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Business-Todo-List-icon.png\"));\n\t\tmnętmBookLists.setText(\"Book Lists\");\n\t\t\n\t\tMenuItem mnętmMemberList = new MenuItem(menu, SWT.NONE);\n\t\tmnętmMemberList.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call memberlistframe\n\t\t\t\tMemberListFrame window = new MemberListFrame();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmnętmMemberList.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Misc-User-icon.png\"));\n\t\tmnętmMemberList.setText(\"Member List\");\n\t\t\n\t\tMenuItem mnętmNewItem = new MenuItem(menu, SWT.NONE);\n\t\tmnętmNewItem.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call rent list\n\t\t\t\tRentListFrame rlf=new RentListFrame();\n\t\t\t\trlf.open();\n\t\t\t}\n\t\t});\n\t\tmnętmNewItem.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Time-And-Date-Calendar-icon.png\"));\n\t\tmnętmNewItem.setText(\"Rent List\");\n\t\t\n\t\tButton btnNewButton = new Button(shlMenu, SWT.NONE);\n\t\tbtnNewButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call booksettingsframe\n\t\t\t\tBookSettingsFrame window = new BookSettingsFrame();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setForeground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));\n\t\tbtnNewButton.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Printing-Books-icon.png\"));\n\t\tbtnNewButton.setBounds(160, 176, 114, 112);\n\t\t\n\t\tButton btnNewButton_1 = new Button(shlMenu, SWT.NONE);\n\t\tbtnNewButton_1.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call membersettingsframe\n\t\t\t\tMemberSettingsFrame window = new MemberSettingsFrame();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_1.setForeground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));\n\t\tbtnNewButton_1.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Add-User-icon.png\"));\n\t\tbtnNewButton_1.setBounds(367, 176, 114, 112);\n\t\t\n\t\tButton btnNewButton_2 = new Button(shlMenu, SWT.NONE);\n\t\tbtnNewButton_2.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tRentingFrame rf=new RentingFrame();\n\t\t\t\trf.open();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_2.setForeground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));\n\t\tbtnNewButton_2.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Business-Statistics-icon.png\"));\n\t\tbtnNewButton_2.setBounds(567, 176, 114, 112);\n\n\t}", "protected void buildEmptyView() {\n\n\t\t// build panel\n\t\tgContent.removeAll();\n\n\t\t// add helpfile\n\t\tgContent.add(new HelpViewer(\"troop.pages\"));\n\n\t\t// build it\n\t\tgContent.invalidate();\n\t\tgContent.revalidate();\n\t}", "@Override\r\n\tpublic void createControl(Composite parent) {\r\n\t\tpageBook = new PageBook(parent, SWT.NONE);\r\n\t\t\r\n\t\toutline = getViewer().createControl(pageBook);\r\n\t\tgetViewer().setContents(new Root(model));\r\n\t\tselectionSynchronizer.addViewer(getViewer());\r\n\t\t\r\n\t\toverview = new Canvas(pageBook, SWT.NONE);\r\n\t\tlws = new LightweightSystem(overview);\r\n\t\t\r\n IToolBarManager tbm = getSite().getActionBars().getToolBarManager();\r\n showOutlineAction = new Action() {\r\n public void run() {\r\n showPage(outline);\r\n }\r\n };\r\n showOutlineAction.setImageDescriptor(ImageDescriptor.createFromFile(\r\n \t\tDeploymentOutlinePage.class, \"icons/outline.gif\"));\r\n tbm.add(showOutlineAction);\r\n showOverviewAction = new Action() {\r\n public void run() {\r\n showPage(overview);\r\n }\r\n };\r\n showOverviewAction.setImageDescriptor(ImageDescriptor.createFromFile(\r\n \t\tDeploymentOutlinePage.class, \"icons/overview.gif\"));\r\n tbm.add(showOverviewAction);\r\n \r\n initializeOverview();\r\n \r\n showPage(outline);\r\n\t}", "@Override\r\n\tpublic void createContents(Composite viewArea, Map<String, Image> imageMap) {\n\t\tgraph = new Graph(viewArea, SWT.None);\r\n\t\tnodes = new LinkedList<GraphNode>();\r\n\t\tconnections = new LinkedList<GraphConnection>();\r\n\r\n\t\tString[] name = { \"Core\", \"Outline\", \"Package Explorer\", \"JUnit\",\r\n\t\t\t\t\"JavaDoc\", \"Debug\" };\r\n\t\tfor (int i = 0; i < name.length; i++) {\r\n\t\t\tnodes.add(new GraphNode(graph, SWT.None, name[i]));\r\n\t\t}\r\n\r\n\t\tconnections.add(CreateConnection(\"Core\", \"Outline\"));\r\n\t\tgraph.setLayoutAlgorithm(new SpringLayoutAlgorithm(\r\n\t\t\t\tLayoutStyles.NO_LAYOUT_NODE_RESIZING), true);\r\n\t\tgraph.addSelectionListener(new SelectionListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\r\n\t\t\t\tSystem.out.println(arg0);\r\n\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent arg0) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t}", "protected void createContents() {\n\t\tmainShell = new Shell();\n\t\tmainShell.addDisposeListener(new DisposeListener() {\n\t\t\tpublic void widgetDisposed(DisposeEvent arg0) {\n\t\t\t\tLastValueManager manager = LastValueManager.getInstance();\n\t\t\t\tmanager.setLastAppEngineDirectory(mGAELocation.getText());\n\t\t\t\tmanager.setLastProjectDirectory(mAppRootDir.getText());\n\t\t\t\tmanager.setLastPythonBinDirectory(txtPythonLocation.getText());\n\t\t\t\tmanager.save();\n\t\t\t}\n\t\t});\n\t\tmainShell.setSize(460, 397);\n\t\tmainShell.setText(\"Google App Engine Launcher\");\n\t\tmainShell.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tComposite mainComposite = new Composite(mainShell, SWT.NONE);\n\t\tmainComposite.setLayout(new GridLayout(1, false));\n\t\t\n\t\tComposite northComposite = new Composite(mainComposite, SWT.NONE);\n\t\tnorthComposite.setLayoutData(new GridData(SWT.FILL, SWT.TOP, false, false, 1, 1));\n\t\tGridLayout gl_northComposite = new GridLayout(1, false);\n\t\tgl_northComposite.verticalSpacing = 1;\n\t\tnorthComposite.setLayout(gl_northComposite);\n\t\t\n\t\tComposite pythonComposite = new Composite(northComposite, SWT.NONE);\n\t\tpythonComposite.setLayout(new GridLayout(2, false));\n\t\t\n\t\tLabel lblPython = new Label(pythonComposite, SWT.NONE);\n\t\tlblPython.setText(\"Python : \");\n\t\t\n\t\ttxtPythonLocation = new Text(pythonComposite, SWT.BORDER);\n\t\ttxtPythonLocation.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\t\ttxtPythonLocation.setText(\"/usr/bin/python2.7\");\n\t\t\n\t\tLabel lblGaeLocation = new Label(pythonComposite, SWT.NONE);\n\t\tlblGaeLocation.setText(\"GAE Location :\");\n\t\t\n\t\tmGAELocation = new Text(pythonComposite, SWT.BORDER);\n\t\tmGAELocation.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\t\tmGAELocation.setText(\"/home/zelon/Programs/google_appengine\");\n\t\t\n\t\tLabel lblProject = new Label(pythonComposite, SWT.NONE);\n\t\tlblProject.setText(\"Project : \");\n\t\t\n\t\tmAppRootDir = new Text(pythonComposite, SWT.BORDER);\n\t\tmAppRootDir.setSize(322, 27);\n\t\tmAppRootDir.setText(\"/home/zelon/workspaceIndigo/box.wimy.com\");\n\t\t\n\t\tComposite ActionComposite = new Composite(northComposite, SWT.NONE);\n\t\tActionComposite.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));\n\t\tActionComposite.setLayout(new GridLayout(2, true));\n\t\t\n\t\tButton btnTestServer = new Button(ActionComposite, SWT.NONE);\n\t\tGridData gd_btnTestServer = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\n\t\tgd_btnTestServer.widthHint = 100;\n\t\tbtnTestServer.setLayoutData(gd_btnTestServer);\n\t\tbtnTestServer.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmExecuter.startTestServer(getPythonLocation(), mGAELocation.getText(), mAppRootDir.getText(), 8080);\n\t\t\t}\n\t\t});\n\t\tbtnTestServer.setText(\"Test Server\");\n\t\t\n\t\tButton btnDeploy = new Button(ActionComposite, SWT.NONE);\n\t\tGridData gd_btnDeploy = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\n\t\tgd_btnDeploy.widthHint = 100;\n\t\tbtnDeploy.setLayoutData(gd_btnDeploy);\n\t\tbtnDeploy.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmExecuter.deploy(getPythonLocation(), mGAELocation.getText(), mAppRootDir.getText());\n\t\t\t}\n\t\t});\n\t\tbtnDeploy.setText(\"Deploy\");\n\t\tActionComposite.setTabList(new Control[]{btnTestServer, btnDeploy});\n\t\tnorthComposite.setTabList(new Control[]{ActionComposite, pythonComposite});\n\t\t\n\t\tComposite centerComposite = new Composite(mainComposite, SWT.NONE);\n\t\tGridData gd_centerComposite = new GridData(SWT.FILL, SWT.FILL, false, false, 1, 1);\n\t\tgd_centerComposite.heightHint = 200;\n\t\tcenterComposite.setLayoutData(gd_centerComposite);\n\t\tcenterComposite.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tlog = new StyledText(centerComposite, SWT.BORDER | SWT.V_SCROLL);\n\t\tlog.setAlignment(SWT.CENTER);\n\t}", "public PartsViewImpl() {\n }", "protected void createContents() {\n\t\tsetText(\"Termination\");\n\t\tsetSize(340, 101);\n\n\t}", "private void createContents() {\r\n shell = new Shell(getParent(), getStyle());\r\n shell.setSize(650, 300);\r\n shell.setText(getText());\r\n\r\n shell.setLayout(new FormLayout());\r\n\r\n lblSOName = new Label(shell, SWT.CENTER);\r\n lblSOName.setFont(SWTResourceManager.getFont(\"Segoe UI\", 11, SWT.NORMAL));\r\n FormData fd_lblSOName = new FormData();\r\n fd_lblSOName.bottom = new FormAttachment(0, 20);\r\n fd_lblSOName.right = new FormAttachment(100, -2);\r\n fd_lblSOName.top = new FormAttachment(0, 2);\r\n fd_lblSOName.left = new FormAttachment(0, 2);\r\n lblSOName.setLayoutData(fd_lblSOName);\r\n lblSOName.setText(soName);\r\n\r\n tableParams = new Table(shell, SWT.BORDER | SWT.FULL_SELECTION | SWT.H_SCROLL | SWT.V_SCROLL);\r\n tableParams.setFont(SWTResourceManager.getFont(\"Segoe UI\", 11, SWT.NORMAL));\r\n FormData fd_tableParams = new FormData();\r\n fd_tableParams.bottom = new FormAttachment(100, -40);\r\n fd_tableParams.right = new FormAttachment(100, -2);\r\n fd_tableParams.top = new FormAttachment(0, 22);\r\n fd_tableParams.left = new FormAttachment(0, 2);\r\n tableParams.setLayoutData(fd_tableParams);\r\n tableParams.setHeaderVisible(true);\r\n tableParams.setLinesVisible(true);\r\n fillInTable(tableParams);\r\n tableParams.addControlListener(new ControlAdapter() {\r\n\r\n @Override\r\n public void controlResized(ControlEvent e) {\r\n Table table = (Table)e.getSource();\r\n table.getColumn(0).setWidth((int)(table.getClientArea().width*nameSpace));\r\n table.getColumn(1).setWidth((int)(table.getClientArea().width*valueSpace));\r\n table.getColumn(2).setWidth((int)(table.getClientArea().width*hintSpace));\r\n }\r\n });\r\n tableParams.pack();\r\n //paramName.pack();\r\n //paramValue.pack();\r\n\r\n final TableEditor editor = new TableEditor(tableParams);\r\n //The editor must have the same size as the cell and must\r\n //not be any smaller than 50 pixels.\r\n editor.horizontalAlignment = SWT.LEFT;\r\n editor.grabHorizontal = true;\r\n editor.minimumWidth = 50;\r\n // editing the second column\r\n tableParams.addSelectionListener(new SelectionAdapter() {\r\n @Override\r\n public void widgetSelected(SelectionEvent e) {\r\n // Identify the selected row\r\n TableItem item = (TableItem) e.item;\r\n if (item == null) {\r\n return;\r\n }\r\n\r\n // The control that will be the editor must be a child of the Table\r\n IReplaceableParam<?> editedParam = (IReplaceableParam<?>)item.getData(DATA_VALUE_PARAM);\r\n if (editedParam != null) {\r\n // Clean up any previous editor control\r\n Control oldEditor = editor.getEditor();\r\n if (oldEditor != null) {\r\n oldEditor.dispose();\r\n }\r\n\r\n Control editControl = null;\r\n String cellText = item.getText(columnValueIndex);\r\n switch (editedParam.getType()) {\r\n case BOOLEAN:\r\n Combo cmb = new Combo(tableParams, SWT.READ_ONLY);\r\n String[] booleanItems = {Boolean.toString(true), Boolean.toString(false)};\r\n cmb.setItems(booleanItems);\r\n cmb.select(1);\r\n if (Boolean.parseBoolean(cellText)) {\r\n cmb.select(0);\r\n }\r\n editControl = cmb;\r\n cmb.addSelectionListener(new SelectionAdapter() {\r\n\r\n @Override\r\n public void widgetSelected(SelectionEvent se) {\r\n Combo text = (Combo) editor.getEditor();\r\n editor.getItem().setText(columnValueIndex, text.getText());\r\n }\r\n });\r\n break;\r\n case DATE:\r\n IReplaceableParam<LocalDateTime> calParam = (IReplaceableParam<LocalDateTime>)editedParam;\r\n LocalDateTime calToUse = calParam.getValue();\r\n Composite dateAndTime = new Composite(tableParams, SWT.NONE);\r\n RowLayout rl = new RowLayout();\r\n rl.wrap = false;\r\n dateAndTime.setLayout(rl);\r\n //Date cellDt;\r\n try {\r\n LocalDateTime locDT = LocalDateTime.parse(cellText, dtFmt);\r\n if (locDT != null) {\r\n calToUse = locDT;\r\n }\r\n /*cellDt = dateFmt.parse(cellText);\r\n if (cellDt != null) {\r\n calToUse.setTime(cellDt);\r\n }*/\r\n } catch (DateTimeParseException e1) {\r\n log.error(\"widgetSelected \", e1);\r\n }\r\n\r\n DateTime datePicker = new DateTime(dateAndTime, SWT.DATE | SWT.MEDIUM | SWT.DROP_DOWN);\r\n datePicker.setData(DATA_VALUE_PARAM, calParam);\r\n DateTime timePicker = new DateTime(dateAndTime, SWT.TIME | SWT.LONG);\r\n timePicker.setData(DATA_VALUE_PARAM, calParam);\r\n // for the date picker the months are zero-based, the first month is 0 the last is 11\r\n // for LocalDateTime the months range 1-12\r\n datePicker.setDate(calToUse.getYear(), calToUse.getMonthValue() - 1,\r\n calToUse.getDayOfMonth());\r\n timePicker.setTime(calToUse.getHour(), calToUse.getMinute(),\r\n calToUse.getSecond());\r\n\r\n datePicker.addSelectionListener(new SelectionAdapter() {\r\n\r\n @Override\r\n public void widgetSelected(SelectionEvent se) {\r\n DateTime source = (DateTime)se.getSource();\r\n IReplaceableParam<LocalDateTime> calParam1 = (IReplaceableParam<LocalDateTime>)source.getData(DATA_VALUE_PARAM);\r\n if (calParam1 != null) {\r\n LocalDateTime currDt = calParam1.getValue();\r\n // for the date picker the months are zero-based, the first month is 0 the last is 11\r\n // for LocalDateTime the months range 1-12\r\n calParam1.setValue(currDt.withYear(source.getYear()).withMonth(source.getMonth() + 1).withDayOfMonth(source.getDay()));\r\n String resultText = dtFmt.format(calParam1.getValue());\r\n log.debug(\"Result Text \" + resultText);\r\n editor.getItem().setText(columnValueIndex, resultText);\r\n } else {\r\n log.warn(\"widgetSelected param is null\");\r\n }\r\n }\r\n\r\n });\r\n timePicker.addSelectionListener(new SelectionAdapter() {\r\n\r\n @Override\r\n public void widgetSelected(SelectionEvent se) {\r\n DateTime source = (DateTime)se.getSource();\r\n IReplaceableParam<LocalDateTime> calParam1 = (IReplaceableParam<LocalDateTime>)source.getData(DATA_VALUE_PARAM);\r\n if (calParam1 != null) {\r\n LocalDateTime currDt = calParam1.getValue();\r\n calParam1.setValue(currDt.withHour(source.getHours()).withMinute(source.getMinutes()).withSecond(source.getSeconds()));\r\n String resultText = dtFmt.format(calParam1.getValue());\r\n log.debug(\"Result Text \" + resultText);\r\n editor.getItem().setText(columnValueIndex, resultText);\r\n } else {\r\n log.warn(\"widgetSelected param is null\");\r\n }\r\n }\r\n\r\n });\r\n dateAndTime.layout();\r\n editControl = dateAndTime;\r\n break;\r\n case INTEGER:\r\n Text intEditor = new Text(tableParams, SWT.NONE);\r\n intEditor.setText(item.getText(columnValueIndex));\r\n intEditor.selectAll();\r\n intEditor.addModifyListener(new ModifyListener() {\r\n @Override\r\n public void modifyText(ModifyEvent se) {\r\n Text text = (Text) editor.getEditor();\r\n Integer resultInt = null;\r\n try {\r\n resultInt = Integer.parseInt(text.getText());\r\n } catch (NumberFormatException nfe) {\r\n log.error(\"NFE \", nfe);\r\n }\r\n if (resultInt != null) {\r\n editor.getItem().setText(columnValueIndex, resultInt.toString());\r\n }\r\n }\r\n });\r\n editControl = intEditor;\r\n break;\r\n case STRING:\r\n default:\r\n Text newEditor = new Text(tableParams, SWT.NONE);\r\n newEditor.setText(item.getText(columnValueIndex));\r\n newEditor.setFont(tableParams.getFont());\r\n newEditor.selectAll();\r\n newEditor.addModifyListener(new ModifyListener() {\r\n @Override\r\n public void modifyText(ModifyEvent se) {\r\n Text text = (Text) editor.getEditor();\r\n editor.getItem().setText(columnValueIndex, text.getText());\r\n }\r\n });\r\n editControl = newEditor;\r\n break;\r\n }\r\n\r\n editControl.setFont(tableParams.getFont());\r\n editControl.setFocus();\r\n editor.setEditor(editControl, item, columnValueIndex);\r\n }\r\n }\r\n });\r\n\r\n\r\n btnOK = new Button(shell, SWT.NONE);\r\n btnOK.setFont(SWTResourceManager.getFont(\"Segoe UI\", 11, SWT.NORMAL));\r\n FormData fd_btnOK = new FormData();\r\n fd_btnOK.bottom = new FormAttachment(100, -7);\r\n fd_btnOK.right = new FormAttachment(40, 2);\r\n fd_btnOK.top = new FormAttachment(100, -35);\r\n fd_btnOK.left = new FormAttachment(15, 2);\r\n btnOK.setLayoutData(fd_btnOK);\r\n btnOK.setText(\"OK\");\r\n btnOK.addSelectionListener(new SelectionAdapter() {\r\n @Override\r\n public void widgetSelected(SelectionEvent e) {\r\n result = new DialogResult<>(SWT.OK, getParamMap());\r\n shell.close();\r\n }\r\n\r\n });\r\n shell.setDefaultButton(btnOK);\r\n\r\n btnCancel = new Button(shell, SWT.NONE);\r\n btnCancel.setFont(SWTResourceManager.getFont(\"Segoe UI\", 11, SWT.NORMAL));\r\n FormData fd_btnCancel = new FormData();\r\n fd_btnCancel.bottom = new FormAttachment(100, -7);\r\n fd_btnCancel.left = new FormAttachment(60, -2);\r\n fd_btnCancel.top = new FormAttachment(100, -35);\r\n fd_btnCancel.right = new FormAttachment(85, -2);\r\n btnCancel.setLayoutData(fd_btnCancel);\r\n btnCancel.setText(\"Cancel\");\r\n btnCancel.addSelectionListener(new SelectionAdapter() {\r\n @Override\r\n public void widgetSelected(SelectionEvent e) {\r\n result = new DialogResult<>(SWT.CANCEL, null);\r\n shell.close();\r\n }\r\n\r\n });\r\n tableParams.redraw();\r\n }", "protected Control createContents(Composite parent) {\n\t\tgetOverlayStore().load();\r\n\t\tgetOverlayStore().start();\r\n Composite composite = createContainer(parent);\r\n \r\n // The layout info for the preference page\r\n GridLayout gridLayout = new GridLayout();\r\n gridLayout.marginHeight = 0;\r\n gridLayout.marginWidth = 0;\r\n composite.setLayout(gridLayout);\r\n \r\n // A panel for the preference page\r\n Composite defPanel = new Composite(composite, SWT.NONE);\r\n GridLayout layout = new GridLayout();\r\n int numColumns = 2;\r\n layout.numColumns = numColumns;\r\n defPanel.setLayout(layout);\r\n GridData gridData =\r\n new GridData(GridData.FILL_BOTH | GridData.GRAB_HORIZONTAL | GridData.GRAB_VERTICAL);\r\n defPanel.setLayoutData(gridData);\r\n \r\n\r\n // Browser options\r\n\t\tGroup wrappingGroup= createGroup(numColumns, defPanel, \"Web Browser\");\r\n\t\tString labelText= \"Use tabbed browsing\";\r\n\t\tlabelText= \"Used tabbed browsing\";\r\n\t\taddCheckBox(wrappingGroup, labelText, CFMLPreferenceConstants.P_TABBED_BROWSER, 1);\r\n \r\n // File paths\r\n createFilePathGroup(defPanel);\r\n \r\n // Images tooltips\r\n\t\tGroup imageGroup= createGroup(numColumns, defPanel, \"Images\");\r\n\t\tlabelText= \"Show Image Tooltips (restart required)\";\r\n\t\taddCheckBox(imageGroup, labelText, CFMLPreferenceConstants.P_IMAGE_TOOLTIPS, 1);\r\n \t\t\r\n\t\t// default help url\r\n\t\tGroup helpGroup= createGroup(numColumns, defPanel, \"External Help Documentation\");\r\n\t\tlabelText= \"Default URL:\";\r\n\t\taddTextField(helpGroup, labelText, CFMLPreferenceConstants.P_DEFAULT_HELP_URL, 50, 0, null);\r\n\t\tlabelText= \"Use external broswer\";\r\n\t\taddCheckBox(helpGroup, labelText, CFMLPreferenceConstants.P_HELP_URL_USE_EXTERNAL_BROWSER, 1);\r\n \r\n // Template Sites\r\n \r\n // createTemplateSitesPathGroup(defPanel);\r\n\r\n\t\tinitializeFields();\r\n\t\tapplyDialogFont(defPanel);\r\n\r\n\t\treturn composite;\r\n }", "private void createContents() {\n\t\tshell = new Shell(getParent(), getStyle());\n\t\tshell.setSize(250, 150);\n\t\tshell.setText(getText());\n\t\tshell.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tComposite composite = new Composite(shell, SWT.NONE);\n\t\tcomposite.setLayoutData(BorderLayout.SOUTH);\n\t\tcomposite.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));\n\t\t\n\t\tComposite composite_1 = new Composite(shell, SWT.NONE);\n\t\tcomposite_1.setLayoutData(BorderLayout.CENTER);\n\t\tcomposite_1.setLayout(new GridLayout(4, false));\n\t\tnew Label(composite_1, SWT.NONE);\n\t\t\n\t\tLabel lblHour = new Label(composite_1, SWT.NONE);\n\t\tlblHour.setSize(0, 0);\n\t\tlblHour.setText(\"Hour\");\n\t\t\n\t\tLabel lblMin = new Label(composite_1, SWT.NONE);\n\t\tlblMin.setSize(0, 0);\n\t\tlblMin.setText(\"Min\");\n\t\t\n\t\tButton btnAm = new Button(composite_1, SWT.RADIO);\n\t\tbtnAm.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tampm=0;\n\t\t\t}\n\t\t});\n\t\tbtnAm.setSize(0, 0);\n\t\tbtnAm.setText(\"AM\");\n\t\t\n\t\tLabel lblStartTime = new Label(composite_1, SWT.NONE);\n\t\tlblStartTime.setSize(0, 0);\n\t\tlblStartTime.setText(\"Start Time:\");\n\t\t\n\t\tfinal Spinner hourSpinner = new Spinner(composite_1, SWT.BORDER);\n\t\thourSpinner.setSize(0, 0);\n\t\thourSpinner.setMaximum(12);\n\t\thourSpinner.setMinimum(1);\n\t\t\n\t\tfinal Spinner minSpinner = new Spinner(composite_1, SWT.BORDER);\n\t\tminSpinner.setSize(0, 0);\n\t\tminSpinner.setMaximum(59);\n\t\tminSpinner.setMinimum(0);\n\t\t\n\t\t\n\t\tButton btnPm = new Button(composite_1, SWT.RADIO);\n\t\tbtnPm.setSize(0, 0);\n\t\tbtnPm.setText(\"PM\");\n\t\t\n\t\tButton btnCancel = new Button(composite, SWT.NONE);\n\t\tbtnCancel.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t}\n\t\t});\n\t\tbtnCancel.setText(\"Cancel\");\n\t\t\n\t\tButton btnOk = new Button(composite, SWT.NONE);\n\t\tbtnOk.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\thour = Integer.valueOf(hourSpinner.getText());\n\t\t\t\tminute = Integer.valueOf(minSpinner.getText());\n\t\t\t\tparent.setHour(hour);\n\t\t\t\tSystem.out.println(\"print hour-->\"+hour+\". print parent.hour-->\"+parent.hour);\n\t\t\t\tSystem.out.println(parent.hour);\n\t\t\t\tparent.setMinute(minute);\n\t\t\t\tparent.setAmpm(ampm);\n\t\t\t\tshell.close();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnOk.setText(\"OK\");\n\t\t\n\t\t\n\n\t}", "protected void createContents() throws Exception\n\t{\n\t\tshell = new Shell();\n\t\tshell.setSize(755, 592);\n\t\tshell.setText(\"Impresor - Documentos v1.2\");\n\t\t\n\t\tthis.commClass.centrarVentana(shell);\n\t\t\n\t\tlistComandos = new List(shell, SWT.BORDER | SWT.H_SCROLL | SWT.COLOR_WHITE);\n\t\tlistComandos.setBounds(72, 22, 628, 498);\n\t\tlistComandos.setVisible(false);\n\n//Boton que carga los documentos\t\t\n\t\tButton btnLoaddocs = new Button(shell, SWT.NONE);\n\t\tbtnLoaddocs.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\tbtnLoaddocs.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseUp(MouseEvent arg0) {\n\t\t\t\tloadDocs(false, false);\n\t\t\t}\n\t\t});\n\t\tbtnLoaddocs.setBounds(10, 20, 200, 26);\n\t\tbtnLoaddocs.setText(\"Cargar documentos a imprimir\");\n\t\t\n//Browser donde se muestra el documento descargado\n\t\tbrowser = new Browser(shell, SWT.BORDER);\n\t\tbrowser.setBounds(10, 289, 726, 231);\n\t\tbrowser.addProgressListener(new ProgressListener() \n\t\t{\n\t\t\tpublic void changed(ProgressEvent event) {\n\t\t\t\t// Cuando cambia.\t\n\t\t\t}\n\t\t\tpublic void completed(ProgressEvent event) {\n\t\t\t\t/* Cuando se completo \n\t\t\t\t Se usa para parsear el documento una vez cargado, el documento\n\t\t\t\t puede ser un doc xml que contiene un mensaje de error\n\t\t\t\t o un doc html que dara error de parseo Xml,es decir,\n\t\t\t\t ante este error entendemos que se cargo bien el doc HTML.\n\t\t\t\t Paradojico verdad? */\n\t\t\t\tleerDocumentoCargado();\n\t\t\t}\n\t\t });\n\n///Boton para iniciar impresion\t\t\n\t\tButton btnIniPrintW = new Button(shell, SWT.NONE);\n\t\tbtnIniPrintW.addKeyListener(new KeyAdapter() {\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tiniciarImpresion(null);\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnIniPrintW.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tiniciarImpresion(null);\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnIniPrintW.setBounds(337, 532, 144, 26);\n\t\tbtnIniPrintW.setText(\"Iniciar impresion\");\n\t\t\n\t\tLabel label = new Label(shell, SWT.SEPARATOR | SWT.HORIZONTAL);\n\t\tlabel.setBounds(10, 52, 885, 2);\n\t\t\n\t\tButton btnSalir = new Button(shell, SWT.NONE);\n\t\tbtnSalir.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tshell.dispose();\n\t\t\t}\n\t\t});\n\t\tbtnSalir.addKeyListener(new KeyAdapter() {\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tshell.dispose();\n\t\t\t}\n\t\t});\n\t\tbtnSalir.setBounds(659, 532, 77, 26);\n\t\tbtnSalir.setText(\"Salir\");\n\t\t\n\t\tthreadLabel = new Label(shell, SWT.BORDER);\n\t\tthreadLabel.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\n\t\t\t\t//mostrar / ocultar el historial de mensajes\n\t\t\t\tMOCmsgHist();\n\t\t\t}\n\t\t});\n\t\tthreadLabel.setAlignment(SWT.CENTER);\n\t\tthreadLabel.setBackground(new Color(display, 255,255,255));\n\t\tthreadLabel.setBounds(10, 0, 891, 18);\n\t\tthreadLabel.setText(\"\");\n\t\t\n\t\tLabel label_1 = new Label(shell, SWT.SEPARATOR | SWT.HORIZONTAL);\n\t\tlabel_1.setBounds(10, 281, 726, 2);\n\n\t\ttablaDocs = new Table(shell, SWT.BORDER | SWT.FULL_SELECTION);\n\t\ttablaDocs.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t//PabloGo, 12 de julio de 2013\n\t\t\t\t//verifUltDocSelected(e);\n\t\t\t\tseleccionarItemMouse(e);\n\t\t\t}\n\t\t});\n\t\ttablaDocs.addKeyListener(new KeyAdapter() {\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tseleccionarItem(e);\n\t\t\t}\n\t\t});\n\t\ttablaDocs.setBounds(10, 52, 726, 215);\n\t\ttablaDocs.setHeaderVisible(true);\n\t\ttablaDocs.setLinesVisible(true);\n\t\tcrearColumnas(tablaDocs);\n\t\t\n//Label que muestra los mensajes\n\t\tmensajeTxt = new Label(shell, SWT.NONE);\n\t\tmensajeTxt.setAlignment(SWT.CENTER);\n\t\tmensajeTxt.setBounds(251, 146, 200, 26);\n\t\tmensajeTxt.setText(\"Espere...\");\n\t\t\n//Listado donde se muestran los documentos cargados\n\t\tlistaDocumentos = new List(shell, SWT.BORDER);\n\t\tlistaDocumentos.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t//PabloGo, 12 de julio de 2013\n\t\t\t\t//verifUltDocSelected(e);\n\t\t\t\tseleccionarItemMouse(e);\n\t\t\t}\n\t\t});\n\t\tlistaDocumentos.addKeyListener(new KeyAdapter() {\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tseleccionarItem(e);\n\t\t\t}\n\t\t});\n\t\tlistaDocumentos.setBounds(10, 82, 726, 77);\n\t\t\n\t\tButton btnShowPreview = new Button(shell, SWT.CHECK);\n\t\tbtnShowPreview.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseUp(MouseEvent e) {\n\t\t\t\tif (((Button)e.getSource()).getSelection()){\n\t\t\t\t\tmostrarPreview = true;\n\t\t\t\t}else{\n\t\t\t\t\tmostrarPreview = false;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnShowPreview.setBounds(215, 28, 118, 18);\n\t\tbtnShowPreview.setText(\"Mostrar preview\");\n\t\t\n\t\tButton btnAutoRefresh = new Button(shell, SWT.CHECK);\n\t\tbtnAutoRefresh.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseUp(MouseEvent e) {\n\t\t\t\tif (((Button)e.getSource()).getSelection()){\n\t\t\t\t\tautoRefresh = true;\n\t\t\t\t\tbeginTarea();\n\t\t\t\t}else{\n\t\t\t\t\tautoRefresh = false;\n\t\t\t\t\tponerMsg(\"Carga automática desactivada\");\n\t\t\t\t\tfinishTarea();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnAutoRefresh.setBounds(353, 28, 128, 18);\n\t\tbtnAutoRefresh.setText(\"Recarga Automática\");\n\t\t\n\t\ttareaBack(this, autoRefresh).start();\n\t\tloadDocs(false, false);\n\t}", "@Override\r\n\tpublic void buildPart() {\n\t\t\r\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\ttextualRepresentationEClass = createEClass(TEXTUAL_REPRESENTATION);\n\t\tcreateEReference(textualRepresentationEClass, TEXTUAL_REPRESENTATION__BASE_COMMENT);\n\t\tcreateEAttribute(textualRepresentationEClass, TEXTUAL_REPRESENTATION__LANGUAGE);\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.addShellListener(new ShellAdapter() {\n\t\t\t@Override\n\t\t\tpublic void shellActivated(ShellEvent e) {\n\t\t\t\tloadSettings();\n\t\t\t}\n\t\t});\n\t\tshell.setSize(450, 160);\n\t\tshell.setText(\"Settings\");\n\t\t\n\t\ttextUsername = new Text(shell, SWT.BORDER);\n\t\ttextUsername.setBounds(118, 10, 306, 21);\n\t\t\n\t\ttextPassword = new Text(shell, SWT.BORDER | SWT.PASSWORD);\n\t\ttextPassword.setBounds(118, 38, 306, 21);\n\t\t\n\t\tCLabel lblLogin = new CLabel(shell, SWT.NONE);\n\t\tlblLogin.setBounds(10, 10, 61, 21);\n\t\tlblLogin.setText(\"Login\");\n\t\t\n\t\tCLabel lblPassword = new CLabel(shell, SWT.NONE);\n\t\tlblPassword.setText(\"Password\");\n\t\tlblPassword.setBounds(10, 38, 61, 21);\n\t\t\n\t\tButton btnSave = new Button(shell, SWT.NONE);\n\t\tbtnSave.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tApplicationSettings as = new ApplicationSettings();\n\t\t as.savePassword(textPassword.getText());\n\t\t as.saveUsername(textUsername.getText());\n\t\t \n\t\t connectionOK = WSHandler.setAutoFillDailyReports(btnAutomaticDailyReport.getSelection());\n\t\t \n\t\t shell.close();\n\t\t if (!(parentDialog == null)) {\n\t\t \tparentDialog.reloadTable();\n\t\t }\n\t\t\t}\n\t\t});\n\t\tbtnSave.setBounds(10, 87, 414, 25);\n\t\tbtnSave.setText(\"Save\");\n\n\t}", "protected void createContents() {\n\t\tshell = new Shell(shell,SWT.SHELL_TRIM|SWT.APPLICATION_MODAL);\n\t\tshell.setImage(SWTResourceManager.getImage(\"C:\\\\Users\\\\Administrator\\\\Desktop\\\\GupiaoNo4\\\\Project\\\\GupiaoNo4\\\\data\\\\chaogushenqi.png\"));\n\t\tshell.setSize(467, 398);\n\t\tshell.setText(\"\\u5356\\u7A7A\");\n\t\t\n\t\ttext_code = new Text(shell, SWT.BORDER);\n\t\ttext_code.setBounds(225, 88, 73, 23);\n\t\t\n\t\ttext_uprice = new Text(shell, SWT.BORDER | SWT.READ_ONLY);\n\t\ttext_uprice.setBounds(225, 117, 73, 23);\n\t\t\n\t\ttext_downprice = new Text(shell, SWT.BORDER | SWT.READ_ONLY);\n\t\ttext_downprice.setBounds(225, 146, 73, 23);\n\t\t\n\t\ttext_price = new Text(shell, SWT.BORDER);\n\t\ttext_price.setBounds(225, 178, 73, 23);\n\t\t\n\t\ttext_num = new Text(shell, SWT.BORDER);\n\t\ttext_num.setBounds(225, 207, 73, 23);\n\t\t\n\t\t//下单,取消按钮\n\t\tButton btnNewButton = new Button(shell, SWT.NONE);\n\t\tbtnNewButton.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tpaceoder();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setBounds(116, 284, 58, 27);\n\t\tbtnNewButton.setText(\"\\u4E0B\\u5355\");\n\t\t\n\t\tButton btnNewButton_1 = new Button(shell, SWT.NONE);\n\t\tbtnNewButton_1.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tshell.dispose();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_1.setBounds(225, 284, 58, 27);\n\t\tbtnNewButton_1.setText(\"\\u53D6\\u6D88\");\n\t\t\n\t\tLabel lbl_code = new Label(shell, SWT.NONE);\n\t\tlbl_code.setBounds(116, 91, 60, 17);\n\t\tlbl_code.setText(\"股票代码:\");\n\t\t\n\t\tLabel lbl_upprice = new Label(shell, SWT.NONE);\n\t\tlbl_upprice.setBounds(116, 120, 60, 17);\n\t\tlbl_upprice.setText(\"涨停价格:\");\n\t\t\n\t\tLabel lbl_downprice = new Label(shell, SWT.NONE);\n\t\tlbl_downprice.setBounds(116, 152, 60, 17);\n\t\tlbl_downprice.setText(\"跌停价格:\");\n\t\t\n\t\tLabel lbl_price = new Label(shell, SWT.NONE);\n\t\tlbl_price.setBounds(116, 181, 60, 17);\n\t\tlbl_price.setText(\"委托价格:\");\n\t\t\n\t\tLabel lbl_num = new Label(shell, SWT.NONE);\n\t\tlbl_num.setBounds(116, 210, 60, 17);\n\t\tlbl_num.setText(\"委托数量:\");\n\t\t\n\t\tLabel lbl_date = new Label(shell, SWT.NONE);\n\t\tlbl_date.setBounds(116, 243, 61, 17);\n\t\tlbl_date.setText(\"日 期:\");\n\t\t\n\t\ttext_dateTime = new DateTime(shell, SWT.BORDER);\n\t\ttext_dateTime.setBounds(225, 237, 88, 24);\n\t\t\n\t\tlbl_notice = new Label(shell, SWT.BORDER);\n\t\tlbl_notice.setBounds(316, 333, 125, 17);\n\t\t\n\t\tif (information == null) {\n\n\t\t\tfinal Label lbl_search = new Label(shell, SWT.NONE);\n\t\t\tlbl_search.addMouseListener(new MouseAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseDown(MouseEvent e) {\n\n\t\t\t\t\tlbl_searchEvent();\n\t\t\t\t}\n\t\t\t});\n\t\t\tlbl_search.addMouseTrackListener(new MouseTrackAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseEnter(MouseEvent e) {\n\t\t\t\t\tlbl_search.setBackground(Display.getCurrent()\n\t\t\t\t\t\t\t.getSystemColor(SWT.COLOR_GREEN));\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseExit(MouseEvent e) {\n\t\t\t\t\tlbl_search\n\t\t\t\t\t\t\t.setBackground(Display\n\t\t\t\t\t\t\t\t\t.getCurrent()\n\t\t\t\t\t\t\t\t\t.getSystemColor(\n\t\t\t\t\t\t\t\t\t\t\tSWT.COLOR_TITLE_INACTIVE_BACKGROUND_GRADIENT));\n\t\t\t\t}\n\t\t\t});\n\t\t\tlbl_search\n\t\t\t\t\t.setImage(SWTResourceManager\n\t\t\t\t\t\t\t.getImage(\"C:\\\\Users\\\\Administrator\\\\Desktop\\\\GupiaoNo4\\\\Project\\\\GupiaoNo4\\\\data\\\\检查.png\"));\n\t\t\tlbl_search.setBounds(354, 91, 18, 18);\n\n\t\t\ttext_place = new Text(shell, SWT.BORDER);\n\t\t\ttext_place.setBounds(304, 88, 32, 23);\n\n\t\t} else {\n\t\t\ttrade_shortsell();// 显示文本框内容\n\t\t}\n\t\t\n\t}", "protected void createContents() {\n shell = new Shell();\n shell.setSize(1024, 650);\n shell.setText(\"GMToolsTD\");\n shell.setLayout(new GridLayout());\n\n\n /* Création du menu principal */\n Menu menuPrincipal = new Menu(shell, SWT.BAR);\n shell.setMenuBar(menuPrincipal);\n\n MenuItem mntmModule = new MenuItem(menuPrincipal, SWT.CASCADE);\n mntmModule.setText(\"Module\");\n\n Menu menuModule = new Menu(mntmModule);\n mntmModule.setMenu(menuModule);\n\n mntmSpoolUsage = new MenuItem(menuModule, SWT.NONE);\n mntmSpoolUsage.setText(\"Spool Usage\");\n\n mntmUser = new MenuItem(menuModule, SWT.NONE);\n mntmUser.setText(\"User Information\");\n\n new MenuItem(menuModule, SWT.SEPARATOR);\n\n mntmConfig = new MenuItem(menuModule, SWT.NONE);\n mntmConfig.setText(\"Configuration\");\n\n new MenuItem(menuModule, SWT.SEPARATOR);\n\n mntmExit = new MenuItem(menuModule, SWT.NONE);\n mntmExit.setText(\"Exit\");\n\n MenuItem mntmHelp = new MenuItem(menuPrincipal, SWT.CASCADE);\n mntmHelp.setText(\"Help\");\n\n Menu menuAbout = new Menu(mntmHelp);\n mntmHelp.setMenu(menuAbout);\n\n mntmAbout = new MenuItem(menuAbout, SWT.NONE);\n mntmAbout.setText(\"About\");\n\n\n /* Creation main screen elements */\n pageComposite = new Composite(shell, SWT.NONE);\n pageComposite.setLayout(new GridLayout(2,false));\n gridData = new GridData();\n gridData.horizontalAlignment = SWT.FILL;\n gridData.grabExcessHorizontalSpace = true;\n gridData.verticalAlignment = SWT.FILL;\n gridData.grabExcessVerticalSpace = true;\n pageComposite.setLayoutData(gridData);\n\n\n grpConnexion = new Group(pageComposite, SWT.NONE );\n grpConnexion.setText(\"Connection\");\n grpConnexion.setLayout(new GridLayout(2,false));\n gridData = new GridData();\n gridData.heightHint = 110;\n grpConnexion.setLayoutData(gridData);\n\n\n Label lblServer = new Label(grpConnexion, SWT.NONE);\n lblServer.setText(\"Server :\");\n\n textServer = new Text(grpConnexion, SWT.NONE);\n textServer.setLayoutData(new GridData(110,20));\n\n Label lblUsername = new Label(grpConnexion, SWT.NONE);\n lblUsername.setSize(65, 20);\n lblUsername.setText(\"Username :\");\n\n textUsername = new Text(grpConnexion,SWT.NONE);\n textUsername.setLayoutData(new GridData(110,20));\n\n Label lblPassword = new Label(grpConnexion, SWT.NONE);\n lblPassword.setSize(65, 20);\n lblPassword.setText(\"Password :\");\n\n textPassword = new Text(grpConnexion, SWT.PASSWORD);\n textPassword.setLayoutData(new GridData(110,20));\n\n btnConnect = new Button(grpConnexion, SWT.NONE);\n btnConnect.setLayoutData(new GridData(SWT.RIGHT,SWT.CENTER, false, false));\n btnConnect.setText(\"Connect\");\n\n btnDisconnect = new Button(grpConnexion, SWT.NONE);\n btnDisconnect.setEnabled(false);\n btnDisconnect.setText(\"Disconnect\");\n\n\n\n groupInfo = new Group(pageComposite, SWT.NONE);\n groupInfo.setText(\"Information\");\n groupInfo.setLayout(new GridLayout(1, false));\n gridData = new GridData();\n gridData.horizontalAlignment = SWT.FILL;\n gridData.grabExcessHorizontalSpace = true;\n gridData.heightHint = 110;\n groupInfo.setLayoutData(gridData);\n\n textInformation = new Text(groupInfo, SWT.READ_ONLY | SWT.H_SCROLL | SWT.V_SCROLL | SWT.MULTI);\n gridData = new GridData();\n gridData.horizontalAlignment = SWT.FILL;\n gridData.grabExcessHorizontalSpace = true;\n gridData.verticalAlignment = SWT.FILL;\n gridData.grabExcessVerticalSpace = true;\n textInformation.setLayoutData(gridData);\n\n\n // renseignement des informations provenant de config\n textServer.setText(conf.getValueConf(conf.SERVER_TD));\n textUsername.setText(conf.getValueConf(conf.USERNAME_TD));\n textPassword.setText(\"\");\n\n\n mntmSpoolUsage.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent e) {\n majAffichage(AFFICHE_SPOOL);\n }\n });\n\n\n mntmUser.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent selectionEvent) {\n majAffichage(AFFICHE_USER);\n }\n });\n\n mntmConfig.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent selectionEvent) {\n majAffichage(AFFICHE_CONFIG);\n }\n });\n\n mntmAbout.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent selectionEvent) {\n MessageBox messageBox = new MessageBox(shell, SWT.ICON_INFORMATION);\n messageBox.setText(\"About...\");\n messageBox.setMessage(\"Not implemented yet ...\");\n messageBox.open();\n }\n });\n\n mntmExit.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent selectionEvent) {\n // afficher un message box avec du blabla\n shell.close();\n\n }\n });\n\n btnConnect.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent e) {\n // connexion Teradata\n btnConnect.setEnabled(false);\n entryServer = textServer.getText();\n entryUsername = textUsername.getText();\n entryPassword = textPassword.getText();\n\n new Thread(new Runnable() {\n public void run() {\n try {\n\n tdConnect = new TDConnexion(entryServer, entryUsername, entryPassword, conf);\n majInformation(MESSAGE_INFORMATION,nomModuleConnexion,\"Connexion OK\");\n connexionStatut = true;\n } catch ( SQLException err) {\n majInformation(MESSAGE_ERROR,nomModuleConnexion,\"Connexion KO : \"+err.getMessage());\n connexionStatut = false;\n } catch (ClassNotFoundException err) {\n majInformation(MESSAGE_ERROR,nomModuleConnexion,\"Error ClassNotFoundException : \"+err.getMessage());\n connexionStatut = false;\n }\n if (connexionStatut) {\n try {\n nbrAMP = tdConnect.requestNumberAMP();\n } catch (Exception err) {\n majInformation(MESSAGE_ERROR,nomModuleConnexion,\"Calculation of AMPs KO : \"+err.getMessage());\n connexionStatut = false;\n tdConnect.deconnexion();\n }\n }\n\n Display.getDefault().asyncExec(new Runnable() {\n public void run() {\n\n if (connexionStatut) {\n activationON();\n\n textServer.setEnabled(false);\n textUsername.setEnabled(false);\n textPassword.setEnabled(false);\n\n btnConnect.setEnabled(false);\n btnDisconnect.setEnabled(true);\n } else {\n btnConnect.setEnabled(true);\n }\n }\n });\n }\n }).start();\n\n\n\n\n }\n });\n\n\n btnDisconnect.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent e) {\n manageDisconnection();\n }\n });\n\n\n //creating secondary screen\n ecranUser = new EcranUser(this);\n ecranSpool = new EcranSpool(this);\n ecranConfig = new EcranConfig(this);\n\n\n // update of the information message (log)\n new Thread(new Runnable() {\n public void run() {\n try {\n while (true) {\n if (!listMessageInfo.isEmpty()) {\n Display.getDefault().asyncExec(new Runnable() {\n public void run() {\n refreshInformation();\n }\n });\n }\n try {\n Thread.sleep(500);\n } catch (Exception e) {\n //nothing to do\n }\n }\n } catch (Exception e) {\n //What to do when the while send an error ?\n }\n }\n }).start();\n\n }", "protected void createContents(Display display) {\n\t\tshell = new Shell(display, SWT.CLOSE | SWT.TITLE | SWT.MIN);\n\t\tshell.setSize(539, 648);\n\t\tshell.setText(\"SiSi - Security-aware Event Log Generator\");\n\t\tshell.setImage(new Image(shell.getDisplay(), \"imgs/shell.png\"));\n\t\tshell.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tMenu menu = new Menu(shell, SWT.BAR);\n\t\tshell.setMenuBar(menu);\n\t\t\n\t\tMenuItem mntmNewSubmenu = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmNewSubmenu.setText(\"File\");\n\t\t\n\t\tMenu menu_1 = new Menu(mntmNewSubmenu);\n\t\tmntmNewSubmenu.setMenu(menu_1);\n\t\t\n\t\tMenuItem mntmOpenFile = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmOpenFile.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tFileDialog dialog = new FileDialog(shell, SWT.OPEN);\n\n\t\t\t\tString[] filterNames = new String[] { \"PNML\", \"All Files (*)\" };\n\t\t\t\tString[] filterExtensions = new String[] { \"*.pnml\", \"*\" };\n\t\t\t\tdialog.setFilterPath(System.getProperty(\"user.dir\"));\n\n\t\t\t\tdialog.setFilterNames(filterNames);\n\t\t\t\tdialog.setFilterExtensions(filterExtensions);\n\n\t\t\t\tString path = dialog.open();\n\t\t\t\tif( path != null ) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tgenerateConfigCompositeFor(path);\n\t\t\t\t\t} catch (ParserConfigurationException | SAXException | IOException exception) {\n\t\t\t\t\t\terrorMessageBox(\"Could not load File.\", exception);\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tmntmOpenFile.setImage(new Image(shell.getDisplay(), \"imgs/open.png\"));\n\t\tmntmOpenFile.setText(\"Open File...\");\n\t\t\n\t\tMenuItem mntmOpenExample = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmOpenExample.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tgenerateConfigCompositeFor(\"examples/kbv.pnml\");\n\t\t\t\t\t} catch (ParserConfigurationException | SAXException | IOException exception) {\n\t\t\t\t\t\terrorMessageBox(\"Could not load Example.\", exception);\n\t\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tmntmOpenExample.setImage(new Image(shell.getDisplay(), \"imgs/example.png\"));\n\t\tmntmOpenExample.setText(\"Open Example\");\n\t\t\n\t\tMenuItem mntmNewItem = new MenuItem(menu_1, SWT.SEPARATOR);\n\t\tmntmNewItem.setText(\"Separator1\");\n\t\t\n\t\tMenuItem mntmExit = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmExit.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.getDisplay().dispose();\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t});\n\t\tmntmExit.setImage(new Image(shell.getDisplay(), \"imgs/exit.png\"));\n\t\tmntmExit.setText(\"Exit\");\n\t\t\n\t\tmainComposite = new ScrolledComposite(shell, SWT.H_SCROLL | SWT.V_SCROLL);\n\t\tmainComposite.setExpandHorizontal(true);\n\t\tmainComposite.setExpandVertical(true);\n\t\t\n\t\tactiveComposite = new Composite(mainComposite, SWT.NONE);\n\t\tGridLayout gl_activeComposite = new GridLayout(1, true);\n\t\tgl_activeComposite.marginWidth = 10;\n\t\tgl_activeComposite.marginHeight = 10;\n\t\tactiveComposite.setLayout(gl_activeComposite);\n\t\t\n\t\tLabel lblWelcomeToSisi = new Label(activeComposite, SWT.NONE);\n\t\tlblWelcomeToSisi.setFont(SWTResourceManager.getFont(\"Segoe UI\", 30, SWT.BOLD));\n\t\tGridData gd_lblWelcomeToSisi = new GridData(SWT.CENTER, SWT.CENTER, true, false, 1, 1);\n\t\tgd_lblWelcomeToSisi.verticalIndent = 50;\n\t\tlblWelcomeToSisi.setLayoutData(gd_lblWelcomeToSisi);\n\t\tlblWelcomeToSisi.setText(\"Welcome to SiSi!\");\n\t\t\n\t\tLabel lblSecurityawareEvent = new Label(activeComposite, SWT.NONE);\n\t\tlblSecurityawareEvent.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, true, false, 1, 1));\n\t\tlblSecurityawareEvent.setText(\"- A security-aware Event Log Generator -\");\n\t\t\n\t\tLabel lblToGetStarted = new Label(activeComposite, SWT.NONE);\n\t\tlblToGetStarted.setFont(SWTResourceManager.getFont(\"Segoe UI\", 11, SWT.ITALIC));\n\t\tGridData gd_lblToGetStarted = new GridData(SWT.CENTER, SWT.CENTER, true, false, 1, 1);\n\t\tgd_lblToGetStarted.verticalIndent = 150;\n\t\tlblToGetStarted.setLayoutData(gd_lblToGetStarted);\n\t\tlblToGetStarted.setText(\"To get started load a file or an example\");\n\t\t\n\t\tmainComposite.setContent(activeComposite);\n\t\tmainComposite.setMinSize(activeComposite.computeSize(SWT.DEFAULT, SWT.DEFAULT));\n\t}", "void createMainContent() {\n appContent = new DashboardMain(this);\n }", "private void createPageContent() \n\t{\n\t\tGridLayout gl = new GridLayout(4, true);\n gl.verticalSpacing = 10;\n\t\t\n\t\tGridData gd;\n\t\tfinal Label wiz1Label = new Label(shell, SWT.NONE);\n\t\twiz1Label.setText(\"Enter Fields\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 4;\n\t\twiz1Label.setLayoutData(gd);\n\t\twiz1Label.pack();\n\t\tText nameInput = new Text(shell, SWT.BORDER);\n\t\tnameInput.setMessage(\"Name\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tnameInput.setLayoutData(gd);\n\t\tnameInput.pack();\n\t\t//Component\n\t\tText componentInput = new Text(shell, SWT.BORDER);\n\t\tcomponentInput.setMessage(\"Component\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\tcomponentInput.setLayoutData(gd);\n\t\tcomponentInput.pack();\n\t\t//school\n\t\tText schoolInput = new Text(shell, SWT.BORDER);\n\t\tschoolInput.setMessage(\"School\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tschoolInput.setLayoutData(gd);\n\t\tschoolInput.pack();\n\t\t//range\n\t\tText rangeInput = new Text(shell, SWT.BORDER);\n\t\trangeInput.setMessage(\"Range\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\trangeInput.setLayoutData(gd);\n\t\trangeInput.pack();\n\t\t//Effect\n\t\tText effectInput = new Text(shell, SWT.BORDER);\n\t\teffectInput.setMessage(\"Effect\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 4;\n\t\teffectInput.setLayoutData(gd);\n\t\teffectInput.pack();\n\t\t//castingtime\n\t\tText castimeInput = new Text(shell, SWT.BORDER);\n\t\tcastimeInput.setMessage(\"Casting Time\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tcastimeInput.setLayoutData(gd);\n\t\tcastimeInput.pack();\n\t\t//materialcomponent\n\t\tText materialInput = new Text(shell, SWT.BORDER);\n\t\tmaterialInput.setMessage(\"Material Component\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\tmaterialInput.setLayoutData(gd);\n\t\tmaterialInput.pack();\n\t\t//Savingthrow\n\t\tText savthrowInput = new Text(shell, SWT.BORDER);\n\t\tsavthrowInput.setMessage(\"Saving Throw\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tsavthrowInput.setLayoutData(gd);\n\t\tsavthrowInput.pack();\n\t\t//Focus\n\t\tText focusInput = new Text(shell, SWT.BORDER);\n\t\tfocusInput.setMessage(\"Focus\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tfocusInput.setLayoutData(gd);\n\t\tfocusInput.pack();\n\t\t//Duration\n\t\tText durationInput = new Text(shell, SWT.BORDER);\n\t\tdurationInput.setMessage(\"Duration\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\tdurationInput.setLayoutData(gd);\n\t\tdurationInput.pack();\n\t\t//spellresistance\n\t\tLabel resistanceLabel = new Label(shell, SWT.NONE);\n\t\tresistanceLabel.setText(\"Can Spell Be Resisted\");\n\t\tgd = new GridData(GridData.CENTER, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 1;\n\t\tresistanceLabel.setLayoutData(gd);\n\t\tresistanceLabel.pack();\n\t\tButton resistanceInput = new Button(shell, SWT.CHECK);\n\t\tgd = new GridData(GridData.CENTER, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 1;\n\t\tresistanceInput.setLayoutData(gd);\n\t\tresistanceInput.pack();\n\t\t//level\n\t\tText levelInput = new Text(shell, SWT.BORDER);\n\t\tlevelInput.setMessage(\"Level\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tlevelInput.setLayoutData(gd);\n\t\tlevelInput.pack();\n\t\t//Damage\n\t\tText damageInput = new Text(shell, SWT.BORDER);\n\t\tdamageInput.setMessage(\"Damage\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 1;\n\t\tdamageInput.setLayoutData(gd);\n\t\tdamageInput.pack();\n\t\t//DamageAlternative\n\t\tText damagealterInput = new Text(shell, SWT.BORDER);\n\t\tdamagealterInput.setMessage(\"Damage Alternative\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\tdamagealterInput.setLayoutData(gd);\n\t\tdamagealterInput.pack();\n\t\n\t\t//description\n\t\t\n\t\tText descriptionInput = new Text(shell, SWT.WRAP | SWT.V_SCROLL);\n\t\tdescriptionInput.setText(\"Description (Optional)\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 4;\n\t\tgd.verticalSpan = 15;\n\t\tdescriptionInput.setLayoutData(gd);\n\t\tdescriptionInput.pack();\n\t\tLabel blank = new Label(shell, SWT.NONE);\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, true);\n\t\tgd.horizontalSpan = 4;\n\t\tblank.setLayoutData(gd);\n\t\tblank.pack();\n\t\tButton save = new Button(shell, SWT.PUSH);\n\n\t\tsave.setText(\"Save\");\n\t\tsave.addListener(SWT.Selection, new Listener()\n\t\t{\n\t\t\tpublic void handleEvent(Event event)\n\t\t\t{\n\t\t\t\tBoolean checkfault = false;\n\t\t\t\tLinkedHashMap<String, String> a = new LinkedHashMap<String, String>();\n\t\t\t\tif(nameInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tnameInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\tif(componentInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tcomponentInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\tif(schoolInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tschoolInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(castimeInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tcastimeInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(levelInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tlevelInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\tif(checkfault)\n\t\t\t\t{\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\ta.put(\"NAME\", nameInput.getText());\n\t\t\t\ta.put(\"COMPONENTS\", componentInput.getText());\n\t\t\t\ta.put(\"SCHOOL\", schoolInput.getText());\n\t\t\t\ta.put(\"CASTINGTIME\", castimeInput.getText());\n\t\t\t\ta.put(\"LEVEL\", levelInput.getText());\n\t\t\t\tif(resistanceInput.getSelection())\n\t\t\t\t{\n\t\t\t\t\ta.put(\"SPELLRESISTANCE\", \"YES\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ta.put(\"SPELLRESISTANCE\", \"NO\");\n\t\t\t\t}\n\t\t\t\tif(!materialInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"MATERIALCOMPONENT\", materialInput.getText());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(!savthrowInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"SAVINGTHROW\", savthrowInput.getText());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(!focusInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"FOCUS\", focusInput.getText());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(!durationInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"DURATION\", durationInput.getText());\n\t\t\t\t}\n\t\t\t\tif(!damageInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"DAMAGE\", damageInput.getText());\n\t\t\t\t}\n\t\t\t\tif(!damagealterInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"DAMAGEALTERNATE\", damagealterInput.getText());\n\t\t\t\t}\n\t\t\t\tif(!rangeInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"RANGE\", rangeInput.getText());\n\t\t\t\t}\n\t\t\t\tif(!effectInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"EFFECT\", effectInput.getText());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\ta.put(\"DESCRIPTION\", descriptionInput.getText());\n\t\t\t\tnewspell = new SpellEntity(a);\n\t\t\t\tMain.gameState.abilities.put(newspell.getName(), newspell);\n\t\t\t\tMain.gameState.customContent.put(newspell.getName(), newspell);\n\t\t\t\tshell.close();\n\t\t\t}\n\t\t}\n\t\t);\n\t\tgd = new GridData(GridData.FILL, GridData.CENTER, false, false);\n\t\tgd.horizontalSpan = 1;\n\t\tsave.setLayoutData(gd);\n\t\tsave.pack();\n\t\tshell.setLayout(gl);\n\t\tshell.layout();\n\t\tshell.pack();\n//\t\t//wizard\n//\t\t\t\tfinal Composite wizPanel = new Composite(shell, SWT.BORDER);\n//\t\t\t\twizPanel.setBounds(0,0,WIDTH, HEIGHT);\n//\t\t\t\tfinal StackLayout wizLayout = new StackLayout();\n//\t\t\t\twizPanel.setLayout(wizLayout);\n//\t\t\t\t\n//\t\t\t\t//Page1 -- Name\n//\t\t\t\tfinal Composite wizpage1 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\twizpage1.setBounds(0,0,WIDTH,HEIGHT);\n//\t\t\t\t\n//\t\t\t\tfinal Label wiz1Label = new Label(wizpage1, SWT.NONE);\n//\t\t\t\twiz1Label.setText(\"Enter Name (required)\");\n//\t\t\t\twiz1Label.pack();\n//\t\t\t\tfinal Text wizpage1text = new Text(wizpage1, SWT.BORDER);\n//\t\t\t\twizpage1text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage1text.setText(\"FireBall\");\n//\t\t\t\tButton next1 = createNextButton(wizpage1);//TODO cancel and previous button\n//\t\t\t\tcreateBackButton(wizpage1, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage1, wizPanel, wizLayout);\n//\t\t\t\tnext1.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage1text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellname = wizpage1text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tSystem.out.println(\"PANIC: ITEM WIZARD PAGE 1 OUT\");\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz1Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t\t);\n//\t\t\t\t\n//\t\t\t\twizPages.add(wizpage1);\n//\t\t\t\t//Page2 -- component\n//\t\t\t\tfinal Composite wizpage2 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz2Label = new Label(wizpage2, SWT.NONE);\n//\t\t\t\twiz2Label.setText(\"Enter Component: (required)\");\n//\t\t\t\twiz2Label.pack();\n//\t\t\t\tfinal Text wizpage2text = new Text(wizpage2, SWT.BORDER);\n//\t\t\t\twizpage2text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage2text.setText(\"Fire\");\n//\t\t\t\tButton next2 = createNextButton(wizpage2);\n//\t\t\t\tcreateBackButton(wizpage2, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage2, wizPanel, wizLayout);\n//\t\t\t\tnext2.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage2text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellcomp = wizpage2text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz2Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage2);\n//\t\t\t\t//Page3 -- School\n//\t\t\t\tfinal Composite wizpage3 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz3Label = new Label(wizpage3, SWT.NONE);\n//\t\t\t\twiz3Label.setText(\"Enter School: (required)\");\n//\t\t\t\twiz3Label.pack();\n//\t\t\t\tfinal Text wizpage3text = new Text(wizpage3, SWT.BORDER);\n//\t\t\t\twizpage3text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage3text.setText(\"Descruction\");\n//\t\t\t\tButton next3 = createNextButton(wizpage3);\n//\t\t\t\tcreateBackButton(wizpage3, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage3, wizPanel, wizLayout);\n//\t\t\t\tnext3.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage3text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellschool = wizpage3text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz3Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage3);\n//\t\t\t\t//Page4 -- Range\n//\t\t\t\tfinal Composite wizpage4 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz4Label = new Label(wizpage4, SWT.NONE);\n//\t\t\t\twiz4Label.setText(\"Enter Range: (required)\");\n//\t\t\t\twiz4Label.pack();\n//\t\t\t\tfinal Text wizpage4text = new Text(wizpage4, SWT.BORDER);\n//\t\t\t\twizpage4text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage4text.setText(\"50 feet\");\n//\t\t\t\tButton next4 = createNextButton(wizpage4);\n//\t\t\t\tcreateBackButton(wizpage4, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage4, wizPanel, wizLayout);\n//\t\t\t\tnext4.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage4text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellrange = wizpage4text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz4Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage4);\n//\t\t\t\t//Page5 -- effect\n//\t\t\t\tfinal Composite wizpage5 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz5Label = new Label(wizpage5, SWT.NONE);\n//\t\t\t\twiz5Label.setText(\"Enter Effect: (required)\");\n//\t\t\t\twiz5Label.pack();\n//\t\t\t\tfinal Text wizpage5text = new Text(wizpage5, SWT.BORDER);\n//\t\t\t\twizpage5text.setBounds(50, 50, 250, 150);\n//\t\t\t\twizpage5text.setText(\"No effect\");\n//\t\t\t\tButton next5 = createNextButton(wizpage5);\n//\t\t\t\tcreateBackButton(wizpage5, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage5, wizPanel, wizLayout);\n//\t\t\t\tnext5.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage5text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspelleffect = wizpage5text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz5Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage5);\n//\t\t\t\t//Page6 -- casting time\n//\t\t\t\tfinal Composite wizpage6 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz6Label = new Label(wizpage6, SWT.NONE);\n//\t\t\t\twiz6Label.setText(\"Enter Casting Time: (required)\");\n//\t\t\t\twiz6Label.pack();\n//\t\t\t\tfinal Text wizpage6text = new Text(wizpage6, SWT.BORDER);\n//\t\t\t\twizpage6text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage6text.setText(\"1 turn\");\n//\t\t\t\tButton next6 = createNextButton(wizpage6);\n//\t\t\t\tcreateBackButton(wizpage6, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage6, wizPanel, wizLayout);\n//\t\t\t\tnext6.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage5text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellcastime = wizpage6text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz6Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage6);\n//\t\t\t\t//Page7 -- Material Component\n//\t\t\t\tfinal Composite wizpage7 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz7Label = new Label(wizpage7, SWT.NONE);\n//\t\t\t\twiz7Label.setText(\"Enter Material Component: (required)\");\n//\t\t\t\twiz7Label.pack();\n//\t\t\t\tfinal Text wizpage7text = new Text(wizpage7, SWT.BORDER);\n//\t\t\t\twizpage7text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage7text.setText(\"None\");\n//\t\t\t\tButton next7 = createNextButton(wizpage7);\n//\t\t\t\tcreateBackButton(wizpage7, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage7, wizPanel, wizLayout);\n//\t\t\t\tnext7.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage7text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellmaterial = wizpage7text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz7Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage7);\n//\t\t\t\t//Page8 -- saving throw\n//\t\t\t\tfinal Composite wizpage8 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz8Label = new Label(wizpage8, SWT.NONE);\n//\t\t\t\twiz8Label.setText(\"Enter Saving Throw: (required)\");\n//\t\t\t\twiz8Label.pack();\n//\t\t\t\tfinal Text wizpage8text = new Text(wizpage8, SWT.BORDER);\n//\t\t\t\twizpage8text.setBounds(50, 50, 200, 100);\n//\t\t\t\twizpage8text.setText(\"Will negate XX\");\n//\t\t\t\tButton next8 = createNextButton(wizpage8);\n//\t\t\t\tcreateBackButton(wizpage8, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage8, wizPanel, wizLayout);\n//\t\t\t\tnext8.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage8text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellsaving = wizpage8text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz8Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage8);\n//\t\t\t\t//Page9 -- Focus\n//\t\t\t\tfinal Composite wizpage9 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz9Label = new Label(wizpage9, SWT.NONE);\n//\t\t\t\twiz9Label.setText(\"Enter Focus: (required)\");\n//\t\t\t\twiz9Label.pack();\n//\t\t\t\tfinal Text wizpage9text = new Text(wizpage9, SWT.BORDER);\n//\t\t\t\twizpage9text.setBounds(50, 50, 200, 100);\n//\t\t\t\twizpage9text.setText(\"A dart\");\n//\t\t\t\tButton next9 = createNextButton(wizpage9);\n//\t\t\t\tcreateBackButton(wizpage9, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage9, wizPanel, wizLayout);\n//\t\t\t\tnext9.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage9text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellfocus = wizpage9text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz9Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage9);\n//\t\t\t\t//Page10 -- Duration\n//\t\t\t\tfinal Composite wizpage10 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz10Label = new Label(wizpage10, SWT.NONE);\n//\t\t\t\twiz10Label.setText(\"Enter Duration: (required)\");\n//\t\t\t\twiz10Label.pack();\n//\t\t\t\tfinal Text wizpage10text = new Text(wizpage10, SWT.BORDER);\n//\t\t\t\twizpage10text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage10text.setText(\"5 Turns\");\n//\t\t\t\tButton next10 = createNextButton(wizpage10);\n//\t\t\t\tcreateBackButton(wizpage10, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage10, wizPanel, wizLayout);\n//\t\t\t\tnext10.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage10text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellduration = wizpage10text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz10Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage10);\n//\t\t\t\t//Page11 -- Level\n//\t\t\t\tfinal Composite wizpage11 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz11Label = new Label(wizpage11, SWT.NONE);\n//\t\t\t\twiz11Label.setText(\"Enter Level (required)\");\n//\t\t\t\twiz11Label.pack();\n//\t\t\t\tfinal Text wizpage11text = new Text(wizpage11, SWT.BORDER);\n//\t\t\t\twizpage11text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage11text.setText(\"1\");\n//\t\t\t\tButton next11 = createNextButton(wizpage11);\n//\t\t\t\tcreateBackButton(wizpage11, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage11, wizPanel, wizLayout);\n//\t\t\t\tnext11.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage11text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\ttry\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tif(Integer.parseInt(wizpage11text.getText()) >= 0)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspelllevel = String.valueOf(Integer.parseInt(wizpage11text.getText()));\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twiz11Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\tcatch(NumberFormatException a)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twiz11Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz11Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage11);\n//\t\t\t\t//Page12 -- resistance\n//\t\t\t\tfinal Composite wizpage12 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz12Label = new Label(wizpage12, SWT.NONE);\n//\t\t\t\twiz12Label.setText(\"Enter Spell resistance: (Yes/No)\");\n//\t\t\t\twiz12Label.pack();\n//\t\t\t\tfinal Text wizpage12text = new Text(wizpage12, SWT.BORDER);\n//\t\t\t\twizpage12text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage12text.setText(\"Yes\");\n//\t\t\t\tButton next12 = createNextButton(wizpage12);\n//\t\t\t\tcreateBackButton(wizpage12, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage12, wizPanel, wizLayout);\n//\t\t\t\tnext12.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage12text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellresistance = wizpage12text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz12Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage12);\n//\t\t\t\t//Page13 - Description\n//\t\t\t\tfinal Composite wizpage13 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tLabel wiz13Label = new Label(wizpage13, SWT.NONE);\n//\t\t\t\twiz13Label.setText(\"Enter Description (Optional)\");\n//\t\t\t\twiz13Label.pack(); \n//\t\t\t\tfinal Text wizpage13text = new Text(wizpage13, SWT.BORDER);\n//\t\t\t\twizpage13text.setBounds(50, 50, 300, 200);\n//\t\t\t\twizpage13text.setText(\"Description here\");\n//\t\t\t\tButton next13 = createNextButton(wizpage13);\n//\t\t\t\tcreateBackButton(wizpage13, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage13, wizPanel, wizLayout);\n//\t\t\t\tnext13.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage13text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellscript = wizpage13text.getText();\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellscript = \"<empty>\";\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\tCreateVerificationPage(wizPanel, wizLayout);\n//\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\n//\t\t\t\t\t\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage13);\n//\t\t\t\t\n//\t\t\t\twizLayout.topControl = wizpage1;\n//\t\t\t\twizPanel.layout();\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setModified(true);\n\t\tshell.setSize(512, 300);\n\t\tshell.setText(\"SWT Application\");\n\t\tshell.setLayout(null);\n\n\t\tLabel label = new Label(shell, SWT.SEPARATOR | SWT.VERTICAL);\n\t\tlabel.setBounds(253, 26, 2, 225);\n\n\t\tcomboCarBrandBuy = new Combo(shell, SWT.READ_ONLY);\n\t\tcomboCarBrandBuy.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tlabel_1.setText(\"Selected\");\n\t\t\t}\n\t\t});\n\t\tcomboCarBrandBuy.setItems(new String[] {\"Maruti\", \"Fiat\", \"Tata\", \"Ford\", \"Honda\", \"Hyundai\"});\n\t\tcomboCarBrandBuy.setBounds(87, 33, 123, 23);\n\t\tcomboCarBrandBuy.setText(\"--select--\");\n\n\t\tLabel lblCarBrand = new Label(shell, SWT.NONE);\n\t\tlblCarBrand.setAlignment(SWT.RIGHT);\n\t\tlblCarBrand.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlblCarBrand.setBounds(12, 38, 71, 15);\n\t\tlblCarBrand.setText(\"Car Brand :\");\n\n\t\ttextCarNameBuy = new Text(shell, SWT.BORDER);\n\t\ttextCarNameBuy.setBounds(87, 67, 123, 21);\n\n\t\tLabel lblCarName = new Label(shell, SWT.NONE);\n\t\tlblCarName.setAlignment(SWT.RIGHT);\n\t\tlblCarName.setText(\"Car Name :\");\n\t\tlblCarName.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlblCarName.setBounds(12, 70, 71, 15);\n\n\t\tcomboCarModelBuy = new Combo(shell, SWT.READ_ONLY);\n\t\tcomboCarModelBuy.setItems(new String[] {\"2015\", \"2014\", \"2013\", \"2012\", \"2011\", \"2010\", \"2009\", \"2008\", \"2007\", \"2006\", \"2005\", \"2004\", \"2003\", \"2002\", \"2001\", \"2000\"});\n\t\tcomboCarModelBuy.setBounds(87, 99, 91, 23);\n\t\tcomboCarModelBuy.setText(\"--select--\");\n\n\t\tLabel lblModelYear = new Label(shell, SWT.NONE);\n\t\tlblModelYear.setAlignment(SWT.RIGHT);\n\t\tlblModelYear.setText(\"Model :\");\n\t\tlblModelYear.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlblModelYear.setBounds(12, 105, 71, 15);\n\n\t\tButton buttonBuy = new Button(shell, SWT.NONE);\n\t\tbuttonBuy.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\n\t\t\t\tString carName = textCarNameBuy.getText();\n\t\t\t\tString carModel = comboCarModelBuy.getText();\n\n\t\t\t\tif(comboCarBrandBuy.getText().equalsIgnoreCase(\"maruti\")){\n\t\t\t\t\tmarutiMap.put(carName, carModel);\n\t\t\t\t}\n\n\t\t\t\tlabel_1.setText(\"Added to Inventory\");\n\t\t\t\tSystem.out.println(marutiMap);\n\t\t\t}\n\t\t});\n\t\tbuttonBuy.setBounds(87, 138, 63, 25);\n\t\tbuttonBuy.setText(\"BUY\");\n\n\t\tlabel_1 = new Label(shell, SWT.BORDER | SWT.HORIZONTAL | SWT.CENTER);\n\t\tlabel_1.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\tlabel_1.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_LIGHT_SHADOW));\n\t\tlabel_1.setBounds(73, 198, 137, 19);\n\n\t\tLabel lblStatus = new Label(shell, SWT.NONE);\n\t\tlblStatus.setBounds(22, 198, 45, 15);\n\t\tlblStatus.setText(\"Status :\");\n\n\t\tLabel label_2 = new Label(shell, SWT.NONE);\n\t\tlabel_2.setText(\"Car Brand :\");\n\t\tlabel_2.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlabel_2.setAlignment(SWT.RIGHT);\n\t\tlabel_2.setBounds(280, 38, 71, 15);\n\n\t\tcomboCarBrandSell = new Combo(shell, SWT.READ_ONLY);\n\t\tcomboCarBrandSell.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\n\t\t\t\tString carBrand = comboCarBrandSell.getText();\n\t\t\t\tcomboCarNameSell.clearSelection();\n\t\t\t\t\n\t\t\t\tif(carBrand.equalsIgnoreCase(\"maruti\")){\n\t\t\t\t\tSet<String> keyList = marutiMap.keySet();\n\t\t\t\t\tint i=0;\n\t\t\t\t\tfor(String key : keyList){\n\t\t\t\t\t\tcarNames.add(key);\n\t\t\t\t\t\t//comboCarNameSell.setItem(i, key);\n\t\t\t\t\t\t//i++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tString[] strArray = (String[]) carNames.toArray(new String[0]);\n\t\t\t\tSystem.out.println();\n\t\t\t\tcomboCarNameSell.setItems(strArray);\n\n\t\t\t}\n\t\t});\n\t\tcomboCarBrandSell.setItems(new String[] {\"Maruti\", \"Fiat\", \"Tata\", \"Ford\", \"Honda\", \"Hyundai\"});\n\t\tcomboCarBrandSell.setBounds(355, 33, 123, 23);\n\t\tcomboCarBrandSell.setText(\"--select--\");\n\n\t\tLabel label_3 = new Label(shell, SWT.NONE);\n\t\tlabel_3.setText(\"Car Name :\");\n\t\tlabel_3.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlabel_3.setAlignment(SWT.RIGHT);\n\t\tlabel_3.setBounds(280, 70, 71, 15);\n\n\t\tLabel label_4 = new Label(shell, SWT.NONE);\n\t\tlabel_4.setText(\"Model :\");\n\t\tlabel_4.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlabel_4.setAlignment(SWT.RIGHT);\n\t\tlabel_4.setBounds(280, 105, 71, 15);\n\n\t\tCombo comboCarModelSell = new Combo(shell, SWT.READ_ONLY);\n\t\tcomboCarModelSell.setItems(new String[] {\"2015\", \"2014\", \"2013\", \"2012\", \"2011\", \"2010\", \"2009\", \"2008\", \"2007\", \"2006\", \"2005\", \"2004\", \"2003\", \"2002\", \"2001\", \"2000\"});\n\t\tcomboCarModelSell.setBounds(355, 99, 91, 23);\n\t\tcomboCarModelSell.setText(\"--select--\");\n\n\t\tButton buttonSell = new Button(shell, SWT.NONE);\n\t\tbuttonSell.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tlabel_5.setText(\"Sold Successfully\");\n\t\t\t}\n\t\t});\n\t\tbuttonSell.setText(\"SELL\");\n\t\tbuttonSell.setBounds(355, 138, 63, 25);\n\n\t\tlabel_5 = new Label(shell, SWT.BORDER | SWT.HORIZONTAL | SWT.CENTER);\n\t\tlabel_5.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\tlabel_5.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_LIGHT_SHADOW));\n\t\tlabel_5.setBounds(341, 198, 137, 19);\n\n\t\tLabel label_6 = new Label(shell, SWT.NONE);\n\t\tlabel_6.setText(\"Status :\");\n\t\tlabel_6.setBounds(290, 198, 45, 15);\n\n\t\tcomboCarNameSell = new Combo(shell, SWT.READ_ONLY);\n\t\tcomboCarNameSell.setItems(new String[] {});\n\t\tcomboCarNameSell.setBounds(355, 65, 123, 23);\n\t\tcomboCarNameSell.setText(\"--select--\");\n\n\t}", "public void createPartControl(Composite parent) {\n\n\t\tGridLayout gridLayout = new GridLayout();\n\t\tgridLayout.marginWidth = 0;\n\t\tgridLayout.marginHeight = 0;\n\t\tparent.setLayout(gridLayout);\n\n\t\t// create a ShashForm\n\t\tthis.sashForm = new SashForm(parent, SWT.VERTICAL);\n\t\tthis.sashForm.setLayout(new GridLayout(2, false));\n\n\t\t// create a table viewer\n\t\tcreateTableViewer(this.sashForm);\n\n\t\t// create a report form to go with the table viewer\n\t\tcreateReportForm(this.sashForm);\n\n\t\tthis.sashForm.setLayoutData(new GridData(GridData.FILL_BOTH));\n\n\t\t// layout the text field below the tree viewer\n\t\tGridData layoutData = new GridData();\n\t\tlayoutData.grabExcessHorizontalSpace = true;\n\t\tlayoutData.grabExcessVerticalSpace = true;\n\t\tlayoutData.horizontalAlignment = GridData.FILL;\n\t\tlayoutData.verticalAlignment = GridData.FILL;\n\n\t}", "private JPanel createContentPanel() {\n JPanel panel = new JPanel();\n panel.setLayout(new MigLayout());\n panel.setPreferredSize(new Dimension(400, 300));\n panel.setOpaque(true);\n panel.setBorder(BorderFactory.createTitledBorder(\n localization.get(\"AttributesTitle\")));\n\n roomNameField = LabeledComponent\n .textField(localization.get(\"RoomNameLabel\"),\n new InfoPanelDocListener(this, new SetName()));\n roomNameField.addToPanel(panel);\n\n includeField = LabeledComponent\n .textField(localization.get(\"IncludeLabel\"),\n new InfoPanelDocListener(this, new SetInclude()));\n includeField.addToPanel(panel);\n\n inheritField = LabeledComponent\n .textField(localization.get(\"InheritLabel\"),\n new InfoPanelDocListener(this, new SetInherit()));\n inheritField.addToPanel(panel);\n\n buildStreetNameField(panel);\n\n buildAddEditStreetsButton(panel);\n\n buildColorSelector(panel);\n\n shortDescriptionField = LabeledComponent\n .textField(localization.get(\"ShortDescLabel\"),\n new InfoPanelDocListener(this, new SetShort()));\n panel.add(shortDescriptionField.getLabel());\n panel.add(shortDescriptionField.getComponent(), \"span, grow, wrap\");\n\n determinateField = LabeledComponent\n .textField(localization.get(\"DeterminateLabel\"),\n new InfoPanelDocListener(this, new SetDeterminate()));\n determinateField.addToPanel(panel);\n\n lightField = LabeledComponent\n .textField(localization.get(\"LightLabel\"),\n new InfoPanelDocListener(this, new SetLight()));\n lightField.addToPanel(panel);\n\n longDescriptionField = LabeledComponent\n .textArea(localization.get(\"LongDescLabel\"),\n new InfoPanelDocListener(this, new SetLong()));\n panel.add(longDescriptionField.getLabel(), \"wrap\");\n panel.add(longDescriptionField.getComponent(), \"span, grow\");\n\n return panel;\n }", "private void buildview() {\n\t\tCssLayout cd= new CssLayout();\n\t\t\n\t\t//table.setSizeFull();\n\t\t\t\n\t\t\ttable.setContainerDataSource(container);\n\t\t\ttable.setVisibleColumns(new Object[]{\"Name\",\"Component\",\"Indication\",\"Comment\",\"MethodofAdministration\"});\n\t\t\ttable.setColumnHeader(\"MethodofAdministration\", \"Method of Administration\");\n\t\t\t\n\t\t\ttable.setWidth(\"100%\");\n\t\t\tcd.addComponent(table);\n\t\t\tcd.setSizeFull();\n\t\t\tsetContent(cd);\n\t\t\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tcontrolEClass = createEClass(CONTROL);\n\t\tcreateEReference(controlEClass, CONTROL__MIDI);\n\t\tcreateEAttribute(controlEClass, CONTROL__BACKGROUND);\n\t\tcreateEAttribute(controlEClass, CONTROL__CENTERED);\n\t\tcreateEAttribute(controlEClass, CONTROL__COLOR);\n\t\tcreateEAttribute(controlEClass, CONTROL__H);\n\t\tcreateEAttribute(controlEClass, CONTROL__INVERTED);\n\t\tcreateEAttribute(controlEClass, CONTROL__INVERTED_X);\n\t\tcreateEAttribute(controlEClass, CONTROL__INVERTED_Y);\n\t\tcreateEAttribute(controlEClass, CONTROL__LOCAL_OFF);\n\t\tcreateEAttribute(controlEClass, CONTROL__NAME);\n\t\tcreateEAttribute(controlEClass, CONTROL__NUMBER);\n\t\tcreateEAttribute(controlEClass, CONTROL__NUMBER_X);\n\t\tcreateEAttribute(controlEClass, CONTROL__NUMBER_Y);\n\t\tcreateEAttribute(controlEClass, CONTROL__OSC_CS);\n\t\tcreateEAttribute(controlEClass, CONTROL__OUTLINE);\n\t\tcreateEAttribute(controlEClass, CONTROL__RESPONSE);\n\t\tcreateEAttribute(controlEClass, CONTROL__SCALEF);\n\t\tcreateEAttribute(controlEClass, CONTROL__SCALET);\n\t\tcreateEAttribute(controlEClass, CONTROL__SECONDS);\n\t\tcreateEAttribute(controlEClass, CONTROL__SIZE);\n\t\tcreateEAttribute(controlEClass, CONTROL__TEXT);\n\t\tcreateEAttribute(controlEClass, CONTROL__TYPE);\n\t\tcreateEAttribute(controlEClass, CONTROL__W);\n\t\tcreateEAttribute(controlEClass, CONTROL__X);\n\t\tcreateEAttribute(controlEClass, CONTROL__Y);\n\n\t\tlayoutEClass = createEClass(LAYOUT);\n\t\tcreateEReference(layoutEClass, LAYOUT__TABPAGE);\n\t\tcreateEAttribute(layoutEClass, LAYOUT__MODE);\n\t\tcreateEAttribute(layoutEClass, LAYOUT__ORIENTATION);\n\t\tcreateEAttribute(layoutEClass, LAYOUT__VERSION);\n\n\t\tmidiEClass = createEClass(MIDI);\n\t\tcreateEAttribute(midiEClass, MIDI__CHANNEL);\n\t\tcreateEAttribute(midiEClass, MIDI__DATA1);\n\t\tcreateEAttribute(midiEClass, MIDI__DATA2F);\n\t\tcreateEAttribute(midiEClass, MIDI__DATA2T);\n\t\tcreateEAttribute(midiEClass, MIDI__TYPE);\n\t\tcreateEAttribute(midiEClass, MIDI__VAR);\n\n\t\ttabpageEClass = createEClass(TABPAGE);\n\t\tcreateEReference(tabpageEClass, TABPAGE__CONTROL);\n\t\tcreateEAttribute(tabpageEClass, TABPAGE__NAME);\n\n\t\ttopEClass = createEClass(TOP);\n\t\tcreateEReference(topEClass, TOP__LAYOUT);\n\t}", "protected abstract Content newContent();", "protected Composite createContent(Composite parent) {\n\t\tComposite c = new Composite(parent, SWT.NONE);\n\t\tc.setLayout(new FillLayout());\n\t\treturn c;\n\t}", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setImage(SWTResourceManager.getImage(mainFrame.class, \"/imgCompand/main/logo.png\"));\r\n\t\tshell.setSize(935, 650);\r\n\t\tshell.setMinimumSize(920, 650);\r\n\t\tcenter(shell);\r\n\t\tshell.setText(\"三合一\");\r\n\t\tshell.setLayout(new GridLayout(8, false));\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tLabel label = new Label(shell, SWT.NONE);\r\n\t\tlabel.setText(\"面单图片:\");\r\n\t\t\r\n\t\ttext_mdtp = new Text(shell, SWT.BORDER);\r\n\t\ttext_mdtp.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tButton btnNewButton = new Button(shell, SWT.NONE);\r\n\t\tbtnNewButton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tDirectoryDialog dd=new DirectoryDialog(shell); \r\n\t\t\t\tdd.setMessage(\"setMessage\"); \r\n\t\t\t\tdd.setText(\"选择保存面单图片的文件夹\"); \r\n\t\t\t\tdd.setFilterPath(\"C://\"); \r\n\t\t\t\tString mdtp=dd.open();\r\n\t\t\t\tif(mdtp!=null){\r\n\t\t\t\t\ttext_mdtp.setText(mdtp);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridData gd_btnNewButton = new GridData(SWT.LEFT, SWT.CENTER, false, false, 2, 1);\r\n\t\tgd_btnNewButton.widthHint = 95;\r\n\t\tbtnNewButton.setLayoutData(gd_btnNewButton);\r\n\t\tbtnNewButton.setText(\"浏览\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlblNewLabel = new Label(shell, SWT.NONE);\r\n\t\tGridData gd_lblNewLabel = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_lblNewLabel.widthHint = 87;\r\n\t\tlblNewLabel.setLayoutData(gd_lblNewLabel);\r\n\t\tlblNewLabel.setText(\"身份证图片:\");\r\n\t\t\r\n\t\ttext_sfztp = new Text(shell, SWT.BORDER);\r\n\t\ttext_sfztp.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tbtnNewButton_1 = new Button(shell, SWT.NONE);\r\n\t\tbtnNewButton_1.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tDirectoryDialog dd=new DirectoryDialog(shell); \r\n\t\t\t\tdd.setMessage(\"setMessage\"); \r\n\t\t\t\tdd.setText(\"选择保存身份证图片的文件夹\"); \r\n\t\t\t\tdd.setFilterPath(\"C://\"); \r\n\t\t\t\tString sfztp=dd.open();\r\n\t\t\t\tif(sfztp!=null){\r\n\t\t\t\t\ttext_sfztp.setText(sfztp);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridData gd_btnNewButton_1 = new GridData(SWT.LEFT, SWT.CENTER, false, false, 2, 1);\r\n\t\tgd_btnNewButton_1.widthHint = 95;\r\n\t\tbtnNewButton_1.setLayoutData(gd_btnNewButton_1);\r\n\t\tbtnNewButton_1.setText(\"浏览\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlabel_1 = new Label(shell, SWT.NONE);\r\n\t\tlabel_1.setText(\"小票图片:\");\r\n\t\t\r\n\t\ttext_xptp = new Text(shell, SWT.BORDER);\r\n\t\ttext_xptp.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tbutton = new Button(shell, SWT.NONE);\r\n\t\tbutton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tDirectoryDialog dd=new DirectoryDialog(shell); \r\n\t\t\t\tdd.setText(\"选择保存小票图片的文件夹\"); \r\n\t\t\t\tdd.setFilterPath(\"C://\"); \r\n\t\t\t\tString xptp=dd.open();\r\n\t\t\t\tif(xptp!=null){\r\n\t\t\t\t\ttext_xptp.setText(xptp);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridData gd_button = new GridData(SWT.LEFT, SWT.CENTER, false, false, 2, 1);\r\n\t\tgd_button.widthHint = 95;\r\n\t\tbutton.setLayoutData(gd_button);\r\n\t\tbutton.setText(\"浏览\");\r\n\t\t\r\n\t\tlabel_2 = new Label(shell, SWT.NONE);\r\n\t\tlabel_2.setText(\" \");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlblNewLabel_1 = new Label(shell, SWT.NONE);\r\n\t\tlblNewLabel_1.setText(\" \");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlabel_5 = new Label(shell, SWT.NONE);\r\n\t\tlabel_5.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));\r\n\t\tlabel_5.setText(\"三合一导入模板下载,请点击........\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tbutton_1 = new Button(shell, SWT.NONE);\r\n\t\tGridData gd_button_1 = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_button_1.widthHint = 95;\r\n\t\tbutton_1.setLayoutData(gd_button_1);\r\n\t\tbutton_1.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\ttry{\r\n\t\t\t\t\tDirectoryDialog dd=new DirectoryDialog(shell); \r\n\t\t\t\t\tdd.setText(\"请选择文件保存的位置\"); \r\n\t\t\t\t\tdd.setFilterPath(\"C://\"); \r\n\t\t\t\t\tString saveFile=dd.open(); \r\n\t\t\t\t\tif(saveFile!=null){\r\n\t\t\t\t\t\tboolean flg = FileUtil.downloadLocal(saveFile, \"/template.xls\", \"三合一导入模板.xls\");\r\n\t\t\t\t\t\tif(flg){\r\n\t\t\t\t\t\t\tMessageDialog.openInformation(shell, \"系统提示\", \"模板下载成功!保存路径为:\"+saveFile+\"/三合一导入模板.xls\");\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\tMessageDialog.openError(shell, \"系统提示\", \"模板下载失败!\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t }catch(Exception ex){\r\n\t\t\t\t\t System.out.print(\"创建失败\");\r\n\t\t\t\t } \r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton_1.setText(\"导入模板\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlabel_4 = new Label(shell, SWT.NONE);\r\n\t\tlabel_4.setText(\"合成信息:\");\r\n\t\t\r\n\t\ttext = new Text(shell, SWT.BORDER);\r\n\t\ttext.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tbtnexecl = new Button(shell, SWT.NONE);\r\n\t\tbtnexecl.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tFileDialog filedia = new FileDialog(shell, SWT.SINGLE);\r\n\t\t\t\tString filepath = filedia.open()+\"\";\r\n\t\t\t\ttext.setText(filepath.replace(\"null\",\"\"));\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridData gd_btnexecl = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_btnexecl.widthHint = 95;\r\n\t\tbtnexecl.setLayoutData(gd_btnexecl);\r\n\t\tbtnexecl.setText(\"导入execl\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlabel_3 = new Label(shell, SWT.NONE);\r\n\t\tlabel_3.setText(\"合成图片:\");\r\n\t\t\r\n\t\ttext_hctp = new Text(shell, SWT.BORDER);\r\n\t\ttext_hctp.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tbtnNewButton_2 = new Button(shell, SWT.NONE);\r\n\t\tbtnNewButton_2.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tDirectoryDialog dd=new DirectoryDialog(shell); \r\n\t\t\t\tdd.setText(\"选择合成图片将要保存的文件夹\"); \r\n\t\t\t\tdd.setFilterPath(\"C://\"); \r\n\t\t\t\tString hctp=dd.open();\r\n\t\t\t\tif(hctp!=null){\r\n\t\t\t\t\ttext_hctp.setText(hctp);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridData gd_btnNewButton_2 = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_btnNewButton_2.widthHint = 95;\r\n\t\tbtnNewButton_2.setLayoutData(gd_btnNewButton_2);\r\n\t\tbtnNewButton_2.setText(\"保存位置\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlabel_6 = new Label(shell, SWT.NONE);\r\n\t\tlabel_6.setText(\"进度:\");\r\n\t\t\r\n\t\tprogressBar = new ProgressBar(shell, SWT.NONE);\r\n\t\tGridData gd_progressBar = new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_progressBar.widthHint = 524;\r\n\t\tprogressBar.setMinimum(0);\r\n\t\tprogressBar.setMaximum(100);\r\n\t\tprogressBar.setLayoutData(gd_progressBar);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tbtn_doCompImg = new Button(shell, SWT.NONE);\r\n\t\tbtn_doCompImg.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\t//导入信息\r\n\t\t\t\tdrxx = text.getText();\r\n\t\t\t\t//保存路径\r\n\t\t\t\thctp = text_hctp.getText();\r\n\t\t\t\t//面单图片路径\r\n\t\t\t\tmdtp = text_mdtp.getText();\r\n\t\t\t\t//身份证图片路径\r\n\t\t\t\tsfztp = text_sfztp.getText();\r\n\t\t\t\t//小票图片路径\r\n\t\t\t\txptp = text_xptp.getText();\r\n\t\t\t\t//清空信息框\r\n\t\t\t\ttext_info.setText(\"\");\r\n\t\t\t\tif(!drxx.equals(\"\")&&!hctp.equals(\"\")&&!mdtp.equals(\"\")&&!sfztp.equals(\"\")&&!xptp.equals(\"\")){\r\n\t\t\t\t\t(new IncresingOperator()).start();\r\n\t\t\t\t}else{\r\n\t\t\t\t\tMessageDialog.openWarning(shell, \"系统提示\",\"各路径选项不能为空!\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridData gd_btn_doCompImg = new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_btn_doCompImg.widthHint = 95;\r\n\t\tbtn_doCompImg.setLayoutData(gd_btn_doCompImg);\r\n\t\tbtn_doCompImg.setText(\"立即合成\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\ttext_info = new Text(shell, SWT.BORDER | SWT.V_SCROLL | SWT.MULTI);\r\n\t\tGridData gd_text_info = new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1);\r\n\t\tgd_text_info.heightHint = 217;\r\n\t\ttext_info.setLayoutData(gd_text_info);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\r\n\t}", "@Override\r\n\tpublic void createPages() {\r\n\t\t// Creates the model from the editor input\r\n\t\t//\r\n\t\t\r\n\t\tcreateModel();\r\n\r\n\t\t// Only creates the other pages if there is something that can be edited\r\n\t\t//\r\n\t\t// if (!getEditingDomain().getResourceSet().getResources().isEmpty()) {\r\n\t\tif (editorModel != null) {\r\n\t\t\t// Create a page for the selection tree view.\r\n\t\t\t//\r\n\r\n\t\t\t/*\r\n\t\t\t * Tree tree = new Tree(getContainer(), SWT.MULTI); selectionViewer\r\n\t\t\t * = new TreeViewer(tree); setCurrentViewer(selectionViewer);\r\n\t\t\t * \r\n\t\t\t * selectionViewer.setContentProvider(new\r\n\t\t\t * AdapterFactoryContentProvider(adapterFactory));\r\n\t\t\t * selectionViewer.setLabelProvider(new\r\n\t\t\t * AdapterFactoryLabelProvider(adapterFactory));\r\n\t\t\t * selectionViewer.setInput(editingDomain.getResourceSet());\r\n\t\t\t * selectionViewer.setSelection(new\r\n\t\t\t * StructuredSelection(editingDomain\r\n\t\t\t * .getResourceSet().getResources().get(0)), true);\r\n\t\t\t * \r\n\t\t\t * new AdapterFactoryTreeEditor(selectionViewer.getTree(),\r\n\t\t\t * adapterFactory);\r\n\t\t\t * \r\n\t\t\t * createContextMenuFor(selectionViewer);\r\n\t\t\t */\r\n\t\t\tComposite parent = getContainer();\r\n\t\t\tformToolkit = new FormToolkit(parent.getDisplay());\r\n\t\t\tform = formToolkit.createForm(parent);\r\n//\t\t\tform.setText(\"SETTINGS - View and modify setting values in \"\r\n//\t\t\t\t\t+ editorModel.getName() + \".\");\r\n\t\t\tComposite client = form.getBody();\r\n\t\t\t// client.setBackground(Display.getCurrent().getSystemColor(\r\n\t\t\t// SWT.COLOR_WHITE));\r\n\t\t\tclient.setLayout(new FillLayout());\r\n\t\t\tfeatureViewer = new FeatureViewer(client);\r\n\r\n\t\t\tfeatureViewer.setContentProvider(new FeatureViewerContentProvider(\r\n\t\t\t\t\teditingDomain.getCommandStack(), this));\r\n\t\t\tfeatureViewer.setInput(editorModel);\r\n\t\t\tfeatureViewer.setLabelProvider(new FeatureViewerLabelProvider(CrmlBuilder.getResourceModelRoot()));\r\n\t\t\t// featureViewer.refresh();\r\n\r\n\t\t\tfeatureViewer.addSelectionChangedListener(new ISelectionChangedListener(){\r\n\t\t\t\t\r\n\t\t\t\tpublic void selectionChanged(SelectionChangedEvent event) {\r\n\t\t\t\t\tIStructuredSelection selection = (IStructuredSelection) event\r\n\t\t\t\t\t.getSelection();\r\n\r\n\t\t\t\t\tsetSelection(selection);\r\n\t\t\t\t\t\r\n\t\t\t\t/*\tISelection convertSelection = convertSelectionToMainModel(selection);\r\n\t\t\t\t\tSelectionChangedEvent newEvent = new SelectionChangedEvent(\r\n\t\t\t\t\t\t\tConfmlEditor.this, convertSelection);\r\n\t\t\t\t\tfireSelection(newEvent);*/\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t});\r\n\t\t\t\r\n\t\t\tgetSite().setSelectionProvider(featureViewer);\r\n\t\t\t// create pop up menu actions\r\n\t\t\tresetToDefaults = new ResetToDefaultAction(featureViewer);\r\n\t\t\tmoveUpAction = new MoveUpAction(featureViewer,this);\r\n\t\t\tmoveDownAction = new MoveDownAction(featureViewer,this);\r\n\t\t\tduplicateAction = new DuplicateSequencesAction(featureViewer,this);\r\n\t\t\topenDataConfmlAction = new OpenDataConfmlAction(featureViewer);\r\n\t\t\topenConfmlAction = new OpenConfmlAction(featureViewer);\r\n\t\t\topenImplAction = new OpenImplementationAction(featureViewer);\r\n\t\t\t\r\n\t\t\tIWorkbenchWindow window = getSite().getWorkbenchWindow();\r\n\t\t\tresetToDefaults.init(window);\r\n\t\t\tmoveUpAction.init(window);\r\n\t\t\tmoveDownAction.init(window);\r\n\t\t\tduplicateAction.init(window);\r\n\t\t\topenDataConfmlAction.init(window);\r\n\t\t\topenConfmlAction.init(window);\r\n\t\t\topenImplAction.init(window);\r\n\t\t\tdisableActions();\r\n\t\t\t\r\n\t\t\t// create pop up menu with actions\r\n\t\t\tcontextMenuListener = contextMenuListener(form);\r\n\t\t\tmenuManager = new MenuManager();\r\n\t\t\tmenuManager.addMenuListener(contextMenuListener);\r\n\t\t\tmenuManager.setRemoveAllWhenShown(true);\r\n\t\t\tMenu menu = menuManager.createContextMenu(form);\r\n\t\t\tform.setMenu(menu);\r\n\t\t\t\r\n\t\t\tint pageIndex = addPage(form);\r\n\t\t\tsetPageText(pageIndex, getString(\"_UI_SelectionPage_label\"));\r\n\r\n\t\t\tgetSite().getShell().getDisplay().asyncExec(new Runnable() {\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\tsetActivePage(0);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\t// featureViewer.addDirtyButtonListener(new MouseListener() {\r\n\t\t//\r\n\t\t// public void mouseDoubleClick(MouseEvent e) {\r\n\t\t//\r\n\t\t// }\r\n\t\t//\r\n\t\t// public void mouseDown(MouseEvent e) {\r\n\t\t// LeafGroup selectedGroup = getSelectedGroup();\r\n\t\t// if (selectedGroup != null\r\n\t\t// && !(selectedGroup instanceof SummaryLeafGroup)) {\r\n\t\t// UIGroup group = createDirtyForGroup(selectedGroup);\r\n\t\t// settingsViewer.setInput(group);\r\n\t\t// refreshAndHandleWidgetState();\r\n\t\t// // settingsViewer.refresh();\r\n\t\t// dirtySorting = true;\r\n\t\t// errorSorting = false;\r\n\t\t// notesSorting = false;\r\n\t\t// }\r\n\t\t// }\r\n\t\t//\r\n\t\t// public void mouseUp(MouseEvent e) {\r\n\t\t//\r\n\t\t// }\r\n\t\t//\r\n\t\t// });\r\n\r\n\t\t// Ensures that this editor will only display the page's tab\r\n\t\t// area if there are more than one page\r\n\t\t//\r\n\t\tgetContainer().addControlListener(new ControlAdapter() {\r\n\t\t\tboolean guard = false;\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void controlResized(ControlEvent event) {\r\n\t\t\t\tif (!guard) {\r\n\t\t\t\t\tguard = true;\r\n\t\t\t\t\thideTabs();\r\n\t\t\t\t\tguard = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n//\t\tgetSite().getShell().getDisplay().asyncExec(new Runnable() {\r\n//\t\t\tpublic void run() {\r\n//\t\t\t\tupdateProblemIndication();\r\n//\t\t\t}\r\n//\t\t});\r\n\t\t\r\n\t\tupdateErrors();\r\n\t}", "private void addViews() {\n\t}", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"带进度条的表\");\r\n\t\tshell.setLayout(new FillLayout());\r\n\r\n\t\tTable table = new Table(shell, SWT.BORDER);\r\n\t\ttable.setHeaderVisible(true);\r\n\t\ttable.setLinesVisible(true);\r\n\r\n//\t\t两列\r\n\t\tfor (int i = 0; i < 2; i++) {\r\n\t\t\tnew TableColumn(table, SWT.NONE);\r\n\t\t}\r\n\t\ttable.getColumn(0).setText(\"Task\");\r\n\t\ttable.getColumn(1).setText(\"Progress\");\r\n\r\n//\t\t四十行\r\n\t\tfor (int i = 0; i < 40; i++) {\r\n\t\t\tTableItem item = new TableItem(table, SWT.NONE);\r\n\t\t\titem.setText(\"Task \" + i);\r\n//\t\t\t行数为5的倍数时添加进度条\r\n\t\t\tif (i % 5 == 0) {\r\n\t\t\t\tProgressBar bar = new ProgressBar(table, SWT.NONE);\r\n\t\t\t\tbar.setSelection(i); // 进度条显示的百分比\r\n\t\t\t\tTableEditor editor = new TableEditor(table);\r\n\t\t\t\teditor.grabHorizontal = editor.grabVertical = true; // 宽度高度同表格\r\n\t\t\t\teditor.setEditor(bar, item, 1); // 在表格上方显示进度条\r\n\t\t\t}\r\n\t\t}\r\n\t\ttable.getColumn(0).pack();\r\n\t\ttable.getColumn(1).setWidth(128);\r\n\r\n\t\tshell.pack();\r\n\t}", "@Override\n\tpublic void createPartControl(Composite parent) {\n\t\tComposite top = new Composite(parent, SWT.NONE);\n\t\tFillLayout layout = new FillLayout(SWT.HORIZONTAL);\n\t\tlayout.marginHeight = 10;\n\t\ttop.setLayout(layout);\n\n\t\t// TabFolder\n\t\tCTabFolder tabFolder = new CTabFolder(top, SWT.BORDER);\n\t\ttabFolder.setSelectionBackground(Display.getCurrent().getSystemColor(\n\t\t\t\tSWT.COLOR_TITLE_INACTIVE_BACKGROUND_GRADIENT));\n\t\tGridLayout tabLayout = new GridLayout();\n\t\ttabLayout.marginHeight = 10;\n\t\ttabLayout.marginWidth = 10;\n\t\ttabLayout.verticalSpacing = 20;\n\t\ttabLayout.numColumns = 1;\n\t\ttabFolder.setLayout(tabLayout);\n\n\t\tnew MQTTTab(tabFolder, SWT.NONE, connection, eventService);\n\n\t\t// Tab Options\n\t\tnew OptionsTab(tabFolder, SWT.NONE, connection);\n\n\t\t// select the first tab by default\n\t\ttabFolder.setSelection(0);\n\t}", "private void createContents() throws SQLException {\n\t\tshell = new Shell(getParent(), SWT.SHELL_TRIM);\n\t\tshell.setImage(user.getIcondata().BaoduongIcon);\n\t\tshell.setLayout(new GridLayout(2, false));\n\t\tsetText(\"Tạo Công việc (Đợt Bảo dưỡng)\");\n\t\tshell.setSize(777, 480);\n\t\tnew FormTemplate().setCenterScreen(shell);\n\n\t\tFill_ItemData fi = new Fill_ItemData();\n\n\t\tSashForm sashForm = new SashForm(shell, SWT.NONE);\n\t\tsashForm.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 2, 1));\n\n\t\tSashForm sashForm_3 = new SashForm(sashForm, SWT.VERTICAL);\n\n\t\tSashForm sashForm_2 = new SashForm(sashForm_3, SWT.NONE);\n\t\tComposite composite = new Composite(sashForm_2, SWT.NONE);\n\t\tcomposite.setLayout(new GridLayout(2, false));\n\n\t\tLabel label_2 = new Label(composite, SWT.NONE);\n\t\tlabel_2.setText(\"Tên đợt Bảo dưỡng*:\");\n\n\t\ttext_Tendot_Baoduong = new Text(composite, SWT.BORDER);\n\t\ttext_Tendot_Baoduong.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\n\t\tLabel label_3 = new Label(composite, SWT.NONE);\n\t\tGridData gd_label_3 = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);\n\t\tgd_label_3.verticalIndent = 3;\n\t\tlabel_3.setLayoutData(gd_label_3);\n\t\tlabel_3.setText(\"Loại phương tiện:\");\n\n\t\tcombo_Loaiphuongtien = new Combo(composite, SWT.READ_ONLY);\n\t\tcombo_Loaiphuongtien.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tif (ViewAndEdit_MODE_dsb != null) {\n\t\t\t\t\tFill_ItemData f = new Fill_ItemData();\n\t\t\t\t\tif ((int) combo_Loaiphuongtien.getData(combo_Loaiphuongtien.getText()) == f.getInt_Xemay()) {\n\t\t\t\t\t\tViewAndEdit_MODE_dsb.setLOAI_PHUONG_TIEN(f.getInt_Xemay());\n\t\t\t\t\t\ttree_PTTS.removeAll();\n\t\t\t\t\t} else if ((int) combo_Loaiphuongtien.getData(combo_Loaiphuongtien.getText()) == f.getInt_Oto()) {\n\t\t\t\t\t\tViewAndEdit_MODE_dsb.setLOAI_PHUONG_TIEN(f.getInt_Oto());\n\t\t\t\t\t\ttree_PTTS.removeAll();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tcombo_Loaiphuongtien.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, false, 1, 1));\n\t\tfi.setComboBox_LOAIPHUONGTIEN_Phuongtien_Giaothong(combo_Loaiphuongtien, 0);\n\n\t\tLabel label_4 = new Label(composite, SWT.NONE);\n\t\tGridData gd_label_4 = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);\n\t\tgd_label_4.verticalIndent = 3;\n\t\tlabel_4.setLayoutData(gd_label_4);\n\t\tlabel_4.setText(\"Mô tả:\");\n\n\t\ttext_Mota = new Text(composite, SWT.BORDER | SWT.WRAP | SWT.V_SCROLL | SWT.MULTI);\n\t\ttext_Mota.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, true, 1, 1));\n\t\tnew Label(composite, SWT.NONE);\n\n\t\tbtnNgunSaCha = new Button(composite, SWT.NONE);\n\t\tGridData gd_btnNgunSaCha = new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1);\n\t\tgd_btnNgunSaCha.widthHint = 85;\n\t\tbtnNgunSaCha.setLayoutData(gd_btnNgunSaCha);\n\t\tbtnNgunSaCha.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tChonNguonSuachua_Baoduong cnsb = new ChonNguonSuachua_Baoduong(shell, SWT.DIALOG_TRIM, user);\n\t\t\t\t\tcnsb.open();\n\t\t\t\t\tnsb = cnsb.getResult();\n\t\t\t\t\tif (ViewAndEdit_MODE_dsb == null) {\n\t\t\t\t\t\tfillNguonSuachuaBaoduong(nsb);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tif (nsb == null) {\n\t\t\t\t\t\tMessageBox m = new MessageBox(shell, SWT.ICON_QUESTION | SWT.YES | SWT.NO | SWT.CLOSE);\n\t\t\t\t\t\tm.setText(\"Xóa dữ liệu cũ?\");\n\t\t\t\t\t\tm.setMessage(\"Bạn muốn xóa dữ liệu cũ?\");\n\t\t\t\t\t\tint rc = m.open();\n\t\t\t\t\t\tswitch (rc) {\n\t\t\t\t\t\tcase SWT.CANCEL:\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase SWT.YES:\n\t\t\t\t\t\t\tViewAndEdit_MODE_dsb.setMA_NGUONSUACHUA_BAODUONG(-1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase SWT.NO:\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tViewAndEdit_MODE_dsb.setMA_NGUONSUACHUA_BAODUONG(nsb.getMA_NGUONSUACHUA_BAODUONG());\n\t\t\t\t\t}\n\t\t\t\t\tcontroler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG()\n\t\t\t\t\t\t\t.update_DOT_THUCHIEN_SUACHUA_BAODUONG(ViewAndEdit_MODE_dsb);\n\t\t\t\t\tfillNguonSuachuaBaoduong(ViewAndEdit_MODE_dsb);\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnNgunSaCha.setText(\"Liên hệ\");\n\t\tbtnNgunSaCha.setImage(user.getIcondata().PhoneIcon);\n\n\t\tComposite composite_1 = new Composite(sashForm_2, SWT.NONE);\n\t\tcomposite_1.setLayout(new GridLayout(2, false));\n\n\t\tLabel lblSXut = new Label(composite_1, SWT.NONE);\n\t\tlblSXut.setText(\"Số đề xuất: \");\n\n\t\ttext_Sodexuat = new Text(composite_1, SWT.NONE);\n\t\ttext_Sodexuat.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_Sodexuat.setEditable(false);\n\t\ttext_Sodexuat.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblNgyThng = new Label(composite_1, SWT.NONE);\n\t\tlblNgyThng.setText(\"Ngày tháng: \");\n\n\t\ttext_NgaythangVanban = new Text(composite_1, SWT.NONE);\n\t\ttext_NgaythangVanban.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_NgaythangVanban.setEditable(false);\n\t\ttext_NgaythangVanban.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblnV = new Label(composite_1, SWT.NONE);\n\t\tlblnV.setText(\"Đơn vị: \");\n\n\t\ttext_Donvi = new Text(composite_1, SWT.NONE);\n\t\ttext_Donvi.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_Donvi.setEditable(false);\n\t\ttext_Donvi.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblNgyXL = new Label(composite_1, SWT.NONE);\n\t\tlblNgyXL.setText(\"Ngày xử lý:\");\n\n\t\ttext_Ngaytiepnhan = new Text(composite_1, SWT.NONE);\n\t\ttext_Ngaytiepnhan.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_Ngaytiepnhan.setEditable(false);\n\t\ttext_Ngaytiepnhan.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblNgyGiao = new Label(composite_1, SWT.NONE);\n\t\tlblNgyGiao.setText(\"Ngày giao:\");\n\n\t\ttext_Ngaygiao = new Text(composite_1, SWT.NONE);\n\t\ttext_Ngaygiao.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_Ngaygiao.setEditable(false);\n\t\ttext_Ngaygiao.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblTrchYu = new Label(composite_1, SWT.NONE);\n\t\tGridData gd_lblTrchYu = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);\n\t\tgd_lblTrchYu.verticalIndent = 3;\n\t\tlblTrchYu.setLayoutData(gd_lblTrchYu);\n\t\tlblTrchYu.setText(\"Ghi chú: \");\n\n\t\ttext_Trichyeu = new Text(composite_1, SWT.NONE);\n\t\ttext_Trichyeu.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_Trichyeu.setEditable(false);\n\t\tGridData gd_text_Trichyeu = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1);\n\t\tgd_text_Trichyeu.heightHint = 27;\n\t\ttext_Trichyeu.setLayoutData(gd_text_Trichyeu);\n\t\tnew Label(composite_1, SWT.NONE);\n\n\t\tbtnThemDexuat = new Button(composite_1, SWT.NONE);\n\t\tbtnThemDexuat.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tInsert_dx = null;\n\t\t\t\t\tif (ViewAndEdit_MODE_dsb != null\n\t\t\t\t\t\t\t&& ViewAndEdit_MODE_dsb.getMA_DOT_THUCHIEN_SUACHUA_BAODUONG() > 0) {\n\t\t\t\t\t\tInsert_dx = controler.getControl_DEXUAT().get_DEXUAT(ViewAndEdit_MODE_dsb);\n\t\t\t\t\t}\n\t\t\t\t\tif (Insert_dx != null) {\n\t\t\t\t\t\tTAPHOSO ths = controler.getControl_TAPHOSO().get_TAP_HO_SO(Insert_dx.getMA_TAPHOSO());\n\t\t\t\t\t\tTaphoso_View thsv = new Taphoso_View(shell, SWT.DIALOG_TRIM, user, ths, false);\n\t\t\t\t\t\tthsv.open();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tNhapDeXuat ndx = new NhapDeXuat(shell, SWT.DIALOG_TRIM, user);\n\t\t\t\t\t\tndx.open();\n\t\t\t\t\t\tInsert_dx = ndx.result;\n\t\t\t\t\t\tif (Insert_dx == null)\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tfillDexuat(Insert_dx);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (ViewAndEdit_MODE_dsb == null)\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\tif (ViewAndEdit_MODE_dsb.getMA_DOT_THUCHIEN_SUACHUA_BAODUONG() <= 0)\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\tint Ma_Quatrinh_Dexuat_thuchien = getMaQuantrinhDexuatThuchien(Insert_dx);\n\t\t\t\t\t\tif (Ma_Quatrinh_Dexuat_thuchien <= 0)\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\tboolean ict = controler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG()\n\t\t\t\t\t\t\t\t.update_DOT_THUCHIEN_SUACHUA_BAODUONG_Update_QUATRINH_DEXUAT_THUCHIEN(\n\t\t\t\t\t\t\t\t\t\tViewAndEdit_MODE_dsb, Ma_Quatrinh_Dexuat_thuchien);\n\t\t\t\t\t\tif (ict) {\n\t\t\t\t\t\t\tMessageBox m = new MessageBox(shell, SWT.ICON_WORKING);\n\t\t\t\t\t\t\tm.setText(\"Hoàn tất\");\n\t\t\t\t\t\t\tm.setMessage(\"Thêm Đề xuất Hoàn tất\");\n\t\t\t\t\t\t\tm.open();\n\t\t\t\t\t\t\tfillDexuat(Insert_dx);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} catch (NullPointerException | SQLException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnThemDexuat.setImage(user.getIcondata().DexuatIcon);\n\t\tbtnThemDexuat.setLayoutData(new GridData(SWT.FILL, SWT.BOTTOM, false, false, 1, 1));\n\t\tbtnThemDexuat.setText(\"Thêm Hồ sơ\");\n\t\tsashForm_2.setWeights(new int[] { 1000, 618 });\n\n\t\tSashForm sashForm_1 = new SashForm(sashForm_3, SWT.NONE);\n\t\ttree_PTTS = new Tree(sashForm_1, SWT.BORDER | SWT.FULL_SELECTION | SWT.MULTI);\n\t\ttree_PTTS.setLinesVisible(true);\n\t\ttree_PTTS.setHeaderVisible(true);\n\t\ttree_PTTS.addListener(SWT.Selection, new Listener() {\n\t\t\t@Override\n\t\t\tpublic void handleEvent(Event arg0) {\n\t\t\t\tTreeItem[] til = tree_PTTS.getSelection();\n\t\t\t\tif (til.length > 0) {\n\t\t\t\t\tRow_PTTSthamgia_Baoduong pttg = (Row_PTTSthamgia_Baoduong) til[0].getData();\n\t\t\t\t\tsetHinhthuc_Baoduong(pttg.getHtbd());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\ttree_PTTS.addListener(SWT.SetData, new Listener() {\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\tif (tree_PTTS.getItems().length > 0) {\n\t\t\t\t\tcombo_Loaiphuongtien.setEnabled(false);\n\t\t\t\t} else {\n\t\t\t\t\tcombo_Loaiphuongtien.setEnabled(true);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tTreeColumn trclmnStt = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnStt.setWidth(50);\n\t\ttrclmnStt.setText(\"Stt\");\n\n\t\tTreeColumn trclmnTnMT = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnTnMT.setWidth(100);\n\t\ttrclmnTnMT.setText(\"Tên, mô tả\");\n\n\t\tTreeColumn trclmnHngSnXut = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnHngSnXut.setWidth(100);\n\t\ttrclmnHngSnXut.setText(\"Hãng sản xuất\");\n\n\t\tTreeColumn trclmnDngXe = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnDngXe.setWidth(100);\n\t\ttrclmnDngXe.setText(\"Dòng xe\");\n\n\t\tTreeColumn trclmnBinS = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnBinS.setWidth(100);\n\t\ttrclmnBinS.setText(\"Biển số\");\n\n\t\tTreeColumn trclmnNgySDng = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnNgySDng.setWidth(100);\n\t\ttrclmnNgySDng.setText(\"Ngày sử dụng\");\n\n\t\tTreeColumn trclmnMPhngTin = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnMPhngTin.setWidth(90);\n\t\ttrclmnMPhngTin.setText(\"Mã PTTS\");\n\n\t\tMenu menu = new Menu(tree_PTTS);\n\t\ttree_PTTS.setMenu(menu);\n\n\t\tMenuItem mntmThmPhngTin = new MenuItem(menu, SWT.NONE);\n\t\tmntmThmPhngTin.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tThem_PTGT();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tmntmThmPhngTin.setText(\"Thêm phương tiện tài sản\");\n\n\t\tMenuItem mntmXoa = new MenuItem(menu, SWT.NONE);\n\t\tmntmXoa.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tdelete();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t});\n\t\tmntmXoa.setText(\"Xóa\");\n\n\t\tTreeColumn trclmnThayNht = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayNht.setWidth(70);\n\t\ttrclmnThayNht.setText(\"Thay nhớt\");\n\n\t\tTreeColumn trclmnThayLcNht = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayLcNht.setWidth(100);\n\t\ttrclmnThayLcNht.setText(\"Thay lọc nhớt\");\n\n\t\tTreeColumn trclmnThayLcGi = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayLcGi.setWidth(100);\n\t\ttrclmnThayLcGi.setText(\"Thay lọc gió\");\n\n\t\tTreeColumn trclmnThayLcNhin = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayLcNhin.setWidth(100);\n\t\ttrclmnThayLcNhin.setText(\"Thay lọc nhiên liệu\");\n\n\t\tTreeColumn trclmnThayDuPhanh = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayDuPhanh.setWidth(100);\n\t\ttrclmnThayDuPhanh.setText(\"Thay Dầu phanh - ly hợp\");\n\n\t\tTreeColumn trclmnThayDuHp = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayDuHp.setWidth(100);\n\t\ttrclmnThayDuHp.setText(\"Thay Dầu hộp số\");\n\n\t\tTreeColumn trclmnThayDuVi = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayDuVi.setWidth(100);\n\t\ttrclmnThayDuVi.setText(\"Thay Dầu vi sai\");\n\n\t\tTreeColumn trclmnLcGiGin = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnLcGiGin.setWidth(100);\n\t\ttrclmnLcGiGin.setText(\"Lọc gió giàn lạnh\");\n\n\t\tTreeColumn trclmnThayDuTr = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayDuTr.setWidth(100);\n\t\ttrclmnThayDuTr.setText(\"Thay dầu trợ lực lái\");\n\n\t\tTreeColumn trclmnBoDngKhcs = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnBoDngKhcs.setWidth(100);\n\t\ttrclmnBoDngKhcs.setText(\"Bảo dưỡng khác\");\n\n\t\tExpandBar expandBar = new ExpandBar(sashForm_1, SWT.V_SCROLL);\n\t\texpandBar.setForeground(SWTResourceManager.getColor(SWT.COLOR_LIST_FOREGROUND));\n\n\t\tExpandItem xpndtmLoiHnhBo = new ExpandItem(expandBar, SWT.NONE);\n\t\txpndtmLoiHnhBo.setText(\"Loại hình bảo dưỡng\");\n\n\t\tComposite grpHnhThcBo = new Composite(expandBar, SWT.NONE);\n\t\txpndtmLoiHnhBo.setControl(grpHnhThcBo);\n\t\tgrpHnhThcBo.setLayout(new GridLayout(1, false));\n\n\t\tbtnDaudongco = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnDaudongco.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnDaudongco.setText(\"Dầu động cơ\");\n\n\t\tbtnLocdaudongco = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnLocdaudongco.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnLocdaudongco.setText(\"Lọc dầu động cơ\");\n\n\t\tbtnLocgio = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnLocgio.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnLocgio.setText(\"Lọc gió\");\n\n\t\tbtnLocnhienlieu = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnLocnhienlieu.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnLocnhienlieu.setText(\"Lọc nhiên liệu\");\n\n\t\tbtnDauphanh_lyhop = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnDauphanh_lyhop.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnDauphanh_lyhop.setText(\"Dầu phanh và dầu ly hợp\");\n\n\t\tbtnDauhopso = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnDauhopso.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnDauhopso.setText(\"Dầu hộp số\");\n\n\t\tbtnDauvisai = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnDauvisai.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnDauvisai.setText(\"Dầu vi sai\");\n\n\t\tbtnLocgiogianlanh = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnLocgiogianlanh.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnLocgiogianlanh.setText(\"Lọc gió giàn lạnh\");\n\n\t\tbtnDautroluclai = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnDautroluclai.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnDautroluclai.setText(\"Dầu trợ lực lái\");\n\n\t\tbtnBaoduongkhac = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnBaoduongkhac.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnBaoduongkhac.setText(\"Bảo dưỡng khác\");\n\t\txpndtmLoiHnhBo.setHeight(xpndtmLoiHnhBo.getControl().computeSize(SWT.DEFAULT, SWT.DEFAULT).y);\n\n\t\tExpandItem xpndtmLinH = new ExpandItem(expandBar, SWT.NONE);\n\t\txpndtmLinH.setText(\"Liên hệ\");\n\n\t\tComposite composite_2 = new Composite(expandBar, SWT.NONE);\n\t\txpndtmLinH.setControl(composite_2);\n\t\tcomposite_2.setLayout(new GridLayout(2, false));\n\n\t\tLabel lblTnLinH = new Label(composite_2, SWT.NONE);\n\t\tlblTnLinH.setText(\"Tên liên hệ: \");\n\n\t\ttext_Tenlienhe = new Text(composite_2, SWT.BORDER);\n\t\ttext_Tenlienhe.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblGiiThiu = new Label(composite_2, SWT.NONE);\n\t\tGridData gd_lblGiiThiu = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);\n\t\tgd_lblGiiThiu.verticalIndent = 3;\n\t\tlblGiiThiu.setLayoutData(gd_lblGiiThiu);\n\t\tlblGiiThiu.setText(\"Giới thiệu: \");\n\n\t\ttext_Gioithieu = new Text(composite_2, SWT.BORDER);\n\t\ttext_Gioithieu.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));\n\n\t\tLabel lblLinH = new Label(composite_2, SWT.NONE);\n\t\tGridData gd_lblLinH = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);\n\t\tgd_lblLinH.verticalIndent = 3;\n\t\tlblLinH.setLayoutData(gd_lblLinH);\n\t\tlblLinH.setText(\"Liên hệ: \");\n\n\t\ttext_Lienhe = new Text(composite_2, SWT.BORDER);\n\t\ttext_Lienhe.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));\n\t\txpndtmLinH.setHeight(120);\n\t\tsashForm_1.setWeights(new int[] { 543, 205 });\n\t\tsashForm_3.setWeights(new int[] { 170, 228 });\n\t\tsashForm.setWeights(new int[] { 1000 });\n\n\t\tbtnLuu = new Button(shell, SWT.NONE);\n\t\tbtnLuu.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tif (dataCreate != null) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tTaoMoi_DotSuachua_Baoduong();\n\t\t\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tupdateField();\n\t\t\t\t\t}\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tprivate void TaoMoi_DotSuachua_Baoduong() throws SQLException {\n\t\t\t\tif (checkTextNotNULL()) {\n\t\t\t\t\tDOT_THUCHIEN_SUACHUA_BAODUONG dsb = getDOT_SUACHUA_BAODUONG();\n\t\t\t\t\tint key = controler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG()\n\t\t\t\t\t\t\t.InsertDOT_THUCHIEN_SUACHUA_BAODUONG(dsb, null, null);\n\t\t\t\t\tdsb.setMA_DOT_THUCHIEN_SUACHUA_BAODUONG(key);\n\t\t\t\t\tif (key >= 0) {\n\t\t\t\t\t\tif (nsb != null)\n\t\t\t\t\t\t\tdsb.setMA_NGUONSUACHUA_BAODUONG(nsb.getMA_NGUONSUACHUA_BAODUONG());\n\t\t\t\t\t\tcontroler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG().update_DOT_THUCHIEN_SUACHUA_BAODUONG(dsb);\n\t\t\t\t\t\tint Ma_Quatrinh_Dexuat_thuchien = getMaQuantrinhDexuatThuchien(Insert_dx);\n\t\t\t\t\t\tif (Ma_Quatrinh_Dexuat_thuchien > 0)\n\t\t\t\t\t\t\tcontroler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG()\n\t\t\t\t\t\t\t\t\t.update_DOT_THUCHIEN_SUACHUA_BAODUONG_Update_QUATRINH_DEXUAT_THUCHIEN(dsb,\n\t\t\t\t\t\t\t\t\t\t\tMa_Quatrinh_Dexuat_thuchien);\n\t\t\t\t\t\tTreeItem[] til = tree_PTTS.getItems();\n\t\t\t\t\t\tif (til.length > 0) {\n\t\t\t\t\t\t\tfor (TreeItem ti : til) {\n\t\t\t\t\t\t\t\tdsb.setMA_DOT_THUCHIEN_SUACHUA_BAODUONG(key);\n\t\t\t\t\t\t\t\tRow_PTTSthamgia_Baoduong rp = (Row_PTTSthamgia_Baoduong) ti.getData();\n\t\t\t\t\t\t\t\tcontroler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG_TAISAN()\n\t\t\t\t\t\t\t\t\t\t.set_DOT_THUCHIEN_SUACHUA_TAISAN(dsb, rp);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tshowMessage_Succes();\n\t\t\t\t\t\tshell.dispose();\n\t\t\t\t\t\tGiaoViec gv = new GiaoViec(user);\n\t\t\t\t\t\tgv.open();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tshowMessage_Fail();\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tshowMessage_FillText();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tprivate DOT_THUCHIEN_SUACHUA_BAODUONG getDOT_SUACHUA_BAODUONG() {\n\t\t\t\tDOT_THUCHIEN_SUACHUA_BAODUONG dsb = new DOT_THUCHIEN_SUACHUA_BAODUONG();\n\t\t\t\tdsb.setTEN_DOT_THUCHIEN_SUACHUA_BAODUONG(text_Tendot_Baoduong.getText());\n\t\t\t\tdsb.setLOAI_PHUONG_TIEN(\n\t\t\t\t\t\tInteger.valueOf((int) combo_Loaiphuongtien.getData(combo_Loaiphuongtien.getText())));\n\t\t\t\tdsb.setSUACHUA_BAODUONG(fi.getInt_Baoduong());\n\t\t\t\tdsb.setMO_TA(text_Mota.getText());\n\t\t\t\treturn dsb;\n\t\t\t}\n\n\t\t});\n\t\tGridData gd_btnLu = new GridData(SWT.RIGHT, SWT.CENTER, true, false, 1, 1);\n\t\tgd_btnLu.widthHint = 75;\n\t\tbtnLuu.setLayoutData(gd_btnLu);\n\t\tbtnLuu.setText(\"Xong\");\n\n\t\tbtnDong = new Button(shell, SWT.NONE);\n\t\tbtnDong.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tif (ViewAndEdit_MODE_dsb != null) {\n\t\t\t\t\t\tupdateField();\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// if (Insert_dx != null)\n\t\t\t\t\t\t// controler.getControl_DEXUAT().delete_DEXUAT(Insert_dx);\n\t\t\t\t\t}\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\tshell.dispose();\n\t\t\t}\n\t\t});\n\t\tGridData gd_btnDong = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\n\t\tgd_btnDong.widthHint = 75;\n\t\tbtnDong.setLayoutData(gd_btnDong);\n\t\tbtnDong.setText(\"Đóng\");\n\t\tinit_loadMODE();\n\t\tinit_CreateMode();\n\t}", "private void createContents(final Shell shell) {\r\n GridData data;\r\n\r\n final int colCount = 5;\r\n\r\n shell.setLayout(new GridLayout(colCount, true));\r\n\r\n // \"refresh\" button\r\n Button refresh = new Button(shell, SWT.PUSH);\r\n refresh.setText(\"Refresh\");\r\n data = new GridData(GridData.HORIZONTAL_ALIGN_CENTER);\r\n data.widthHint = 80;\r\n refresh.setLayoutData(data);\r\n refresh.addSelectionListener(new SelectionAdapter() {\r\n @Override\r\n public void widgetSelected(SelectionEvent e) {\r\n updateDeviceImage(shell);\r\n }\r\n });\r\n\r\n // \"rotate\" button\r\n Button rotate = new Button(shell, SWT.PUSH);\r\n rotate.setText(\"Rotate\");\r\n data = new GridData(GridData.HORIZONTAL_ALIGN_CENTER);\r\n data.widthHint = 80;\r\n rotate.setLayoutData(data);\r\n rotate.addSelectionListener(new SelectionAdapter() {\r\n @Override\r\n public void widgetSelected(SelectionEvent e) {\r\n if (mRawImage != null) {\r\n mRawImage = mRawImage.getRotated();\r\n updateImageDisplay(shell);\r\n \r\n mRotateCount++;\r\n if (mRotateCount >= 4) mRotateCount = 0;\r\n }\r\n }\r\n });\r\n\r\n // \"done\" button\r\n Button done = new Button(shell, SWT.PUSH);\r\n done.setText(\"Done\");\r\n data = new GridData(GridData.HORIZONTAL_ALIGN_CENTER);\r\n data.widthHint = 80;\r\n done.setLayoutData(data);\r\n done.addSelectionListener(new SelectionAdapter() {\r\n @Override\r\n public void widgetSelected(SelectionEvent e) {\r\n shell.close();\r\n }\r\n });\r\n\r\n // title/\"capturing\" label\r\n mBusyLabel = new Label(shell, SWT.NONE);\r\n mBusyLabel.setText(\"Preparing...\");\r\n data = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING);\r\n data.horizontalSpan = colCount;\r\n mBusyLabel.setLayoutData(data);\r\n\r\n // space for the image\r\n mImageLabel = new Label(shell, SWT.BORDER);\r\n data = new GridData(GridData.HORIZONTAL_ALIGN_CENTER);\r\n data.horizontalSpan = colCount;\r\n mImageLabel.setLayoutData(data);\r\n Display display = shell.getDisplay();\r\n mImageLabel.setImage(createPlaceHolderArt(\r\n display, 50, 50, display.getSystemColor(SWT.COLOR_BLUE)));\r\n TouchController tc = new TouchController(mDevice, mScaled);\r\n tc.setTouchListener(new TouchListener() {\r\n public void onClick() {\r\n try {\r\n Thread.sleep(1000);\r\n } catch (InterruptedException e) {\r\n }\r\n updateDeviceImage(shell);\r\n }\r\n });\r\n mImageLabel.addMouseListener(tc);\r\n mImageLabel.addMouseMoveListener(tc);\r\n\r\n\r\n shell.setDefaultButton(done);\r\n }", "private void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\r\n\t\tshell.setSize(500, 400);\r\n\t\tshell.setText(\"SWT Application\");\r\n\t\tshell.setLayout(new FormLayout());\r\n\t\t\r\n\t\tSERVER_COUNTRY locale = SERVER_COUNTRY.DE;\r\n\t\tString username = JOptionPane.showInputDialog(\"Username\");\r\n\t\tString password = JOptionPane.showInputDialog(\"Password\");\r\n\t\tBot bot = new Bot(username, password, locale);\r\n\t\t\r\n\t\tGroup grpActions = new Group(shell, SWT.NONE);\r\n\t\tgrpActions.setText(\"Actions\");\r\n\t\tgrpActions.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\r\n\t\tgrpActions.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\r\n\t\tgrpActions.setForeground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\r\n\t\tgrpActions.setLayout(new GridLayout(5, false));\r\n\t\tFormData fd_grpActions = new FormData();\r\n\t\tfd_grpActions.left = new FormAttachment(0, 203);\r\n\t\tfd_grpActions.right = new FormAttachment(100, -10);\r\n\t\tfd_grpActions.top = new FormAttachment(0, 10);\r\n\t\tfd_grpActions.bottom = new FormAttachment(0, 152);\r\n\t\tgrpActions.setLayoutData(fd_grpActions);\r\n\t\t\r\n\t\tConsole = new Text(shell, SWT.BORDER | SWT.READ_ONLY | SWT.V_SCROLL | SWT.MULTI);\r\n\t\tFormData fd_Console = new FormData();\r\n\t\tfd_Console.left = new FormAttachment(grpActions, 0, SWT.LEFT);\r\n\t\tfd_Console.right = new FormAttachment(100, -10);\r\n\t\tConsole.setLayoutData(fd_Console);\r\n\r\n\t\t\r\n\t\tButton Feed = new Button(grpActions, SWT.CHECK);\r\n\t\tFeed.setSelection(true);\r\n\t\tFeed.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tfeed = !feed;\r\n\t\t\t\tConsole.append(\"\\nTest\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tFeed.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tFeed.setText(\"Feed\");\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tButton Drink = new Button(grpActions, SWT.CHECK);\r\n\t\tDrink.setSelection(true);\r\n\t\tDrink.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tdrink = !drink;\r\n\t\t\t}\r\n\t\t});\r\n\t\tDrink.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tDrink.setText(\"Drink\");\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tButton Stroke = new Button(grpActions, SWT.CHECK);\r\n\t\tStroke.setSelection(true);\r\n\t\tStroke.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tstroke = !stroke;\r\n\t\t\t}\r\n\t\t});\r\n\t\tStroke.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tStroke.setText(\"Stroke\");\r\n\t\t\r\n\t\t\r\n\t\t//STATIC\r\n\t\tLabel lblNewLabel_0 = new Label(grpActions, SWT.NONE);\r\n\t\tlblNewLabel_0.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tlblNewLabel_0.setImage(SWTResourceManager.getImage(MainWindow.class, \"/PNGs/feed.png\"));\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tLabel lblNewLabel_1 = new Label(grpActions, SWT.NONE);\r\n\t\tlblNewLabel_1.setImage(SWTResourceManager.getImage(MainWindow.class, \"/PNGs/drink.png\"));\r\n\t\tlblNewLabel_1.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\t\r\n\t\tGroup grpBreeds = new Group(shell, SWT.NONE);\r\n\t\tgrpBreeds.setText(\"Breeds\");\r\n\t\tgrpBreeds.setLayout(new GridLayout(1, false));\r\n\t\t\r\n\t\tFormData fd_grpBreeds = new FormData();\r\n\t\tfd_grpBreeds.top = new FormAttachment(0, 10);\r\n\t\tfd_grpBreeds.bottom = new FormAttachment(100, -10);\r\n\t\tfd_grpBreeds.right = new FormAttachment(0, 180);\r\n\t\tfd_grpBreeds.left = new FormAttachment(0, 10);\r\n\t\tgrpBreeds.setLayoutData(fd_grpBreeds);\r\n\t\t\r\n\t\tButton Defaults = new Button(grpBreeds, SWT.RADIO);\r\n\t\tDefaults.setText(\"Defaults\");\r\n\t\t//END STATIC\r\n\t\t\r\n\t\tbot.account.api.requests.setTimeout(200);\r\n\t\tbot.logger.printlevel = 1;\t\r\n\t\t\r\n\t\tReturn<HashMap<Integer,Breed>> b = bot.getBreeds();\t\t\r\n\t\tif(!b.sucess) {\r\n\t\t\tConsole.append(\"\\nERROR!\");\r\n\t\t\tSystem.exit(-1);\r\n\t\t}\t\t\r\n\t\t\r\n\t\t\r\n\r\n\t\tIterator<Breed> iterator = b.data.values().iterator();\r\n\t\tHashMap<String, java.awt.Button> buttons = new HashMap<String, Button>();\r\n\t\t\r\n\t\twhile(iterator.hasNext()) {\r\n\t\t\tBreed breed = iterator.next();\r\n\t\t\t\r\n\t\t\tString name = breed.name;\r\n\t\t\t\r\n\t\t\tButton btn = new Button(grpBreeds, SWT.RADIO);\r\n\t\t\tbtn.setText(name);\r\n\t\t\t\r\n\t\t\tbuttons.put(name, btn);\r\n\t\t\t\r\n\t\t\t//\tTODO - Für jeden Breed wird ein Button erstellt:\r\n\t\t\t//\tButton [HIER DER BREED NAME] = new Button(grpBreeds, SWT.RADIO); <-- Dass geht nicht so wirklich so\r\n\t\t\t//\tDefaults.setText(\"[BREED NAME]\");\r\n\t\t}\r\n\t\t\r\n\t\t// um ein button mit name <name> zu bekommen: Button whatever = buttons.get(<name>);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tButton btnStartBot = new Button(shell, SWT.NONE);\r\n\t\tfd_Console.top = new FormAttachment(0, 221);\r\n\t\tbtnStartBot.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tConsole.setText(\"Starting bot... \");\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t/*TODO\r\n\t\t\t\tBreed[] breeds = new Breed[b.data.size()];\r\n\t\t\t\t\r\n\t\t\t\tIterator<Breed> br = b.data.values().iterator();\r\n\t\t\t\t\r\n\t\t\t\tfor(int i = 0; i < b.data.size(); i++) {\r\n\t\t\t\t\tbreeds[i] = br.next();\r\n\t\t\t\t};\r\n\t\t\t\tBreed s = (Breed) JOptionPane.showInputDialog(null, \"Choose breed\", \"breed selector\", JOptionPane.PLAIN_MESSAGE, null, breeds, \"default\");\r\n\t\t\t\tEND TODO*/\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t//Breed breed, boolean drink, boolean stroke, boolean groom, boolean carrot, boolean mash, boolean suckle, boolean feed, boolean sleep, boolean centreMission, long timeout, Bot bot, Runnable onEnd\r\n\t\t\t\tReturn<BasicBreedTasksAsync> ret = bot.basicBreedTasks(0, drink, stroke, groom, carrot, mash, suckle, feed, sleep, mission, 500, new Runnable() {\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"FINISHED!\", \"Bot\", JOptionPane.PLAIN_MESSAGE);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\tbot.logout();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t});\r\n\t\t\t\t\r\n\t\t\t\tif(!ret.sucess) {\r\n\t\t\t\t\tConsole.append(\"ERROR\");\r\n\t\t\t\t\tSystem.exit(-1);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tret.data.start();\r\n\t\t\t\t\r\n\t\t\t\t//TODO\r\n\t\t\t\twhile(ret.data.running()) {\r\n\t\t\t\t\tSleeper.sleep(5000);\r\n\t\t\t\t\tif(ret.data.getProgress() == 1)\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tConsole.append(\"progress: \" + (ret.data.getProgress() * 100) + \"%\");\r\n\t\t\t\t\tConsole.append(\"ETA: \" + (ret.data.getEta() / 1000) + \"sec.\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tFormData fd_btnStartBot = new FormData();\r\n\t\tfd_btnStartBot.left = new FormAttachment(grpActions, 0, SWT.LEFT);\r\n\t\tbtnStartBot.setLayoutData(fd_btnStartBot);\r\n\t\tbtnStartBot.setText(\"Start Bot\");\r\n\t\t\r\n\t\tButton btnStopBot = new Button(shell, SWT.NONE);\r\n\t\tfd_btnStartBot.top = new FormAttachment(btnStopBot, 0, SWT.TOP);\r\n\t\tbtnStopBot.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tConsole.append(\"Stopping bot...\");\r\n\t\t\t\tbot.logout();\r\n\t\t\t}\r\n\t\t});\r\n\t\tFormData fd_btnStopBot = new FormData();\r\n\t\tfd_btnStopBot.right = new FormAttachment(grpActions, 0, SWT.RIGHT);\r\n\t\tbtnStopBot.setLayoutData(fd_btnStopBot);\r\n\t\tbtnStopBot.setText(\"Stop Bot\");\r\n\t\t\t\r\n\t\t\r\n\t\tProgressBar progressBar = new ProgressBar(shell, SWT.NONE);\r\n\t\tfd_Console.bottom = new FormAttachment(progressBar, -6);\r\n\t\tfd_btnStopBot.bottom = new FormAttachment(progressBar, -119);\r\n\t\t\r\n\t\tFormData fd_progressBar = new FormData();\r\n\t\tfd_progressBar.left = new FormAttachment(grpBreeds, 23);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//STATIC\r\n\t\tLabel lblNewLabel_2 = new Label(grpActions, SWT.NONE);\r\n\t\tlblNewLabel_2.setImage(SWTResourceManager.getImage(MainWindow.class, \"/PNGs/stroke.png\"));\r\n\t\tlblNewLabel_2.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\t\r\n\t\tButton Groom = new Button(grpActions, SWT.CHECK);\r\n\t\tGroom.setSelection(true);\r\n\t\tGroom.setSelection(true);\r\n\t\tGroom.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tgroom = !groom;\r\n\t\t\t}\r\n\t\t});\r\n\t\tGroom.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tGroom.setText(\"Groom\");\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tButton Treat = new Button(grpActions, SWT.CHECK);\r\n\t\tTreat.setSelection(true);\r\n\t\tTreat.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tcarrot = !carrot;\r\n\t\t\t}\r\n\t\t});\r\n\t\tTreat.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tTreat.setText(\"Treat\");\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tButton Mash = new Button(grpActions, SWT.CHECK);\r\n\t\tMash.setSelection(true);\r\n\t\tMash.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tmash = !mash;\r\n\t\t\t}\r\n\t\t});\r\n\t\tMash.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tMash.setText(\"Mash\");\r\n\t\t\r\n\t\tLabel lblNewLabel_3 = new Label(grpActions, SWT.NONE);\r\n\t\tlblNewLabel_3.setImage(SWTResourceManager.getImage(MainWindow.class, \"/PNGs/groom.png\"));\r\n\t\tlblNewLabel_3.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tLabel lblNewLabel_4 = new Label(grpActions, SWT.NONE);\r\n\t\tlblNewLabel_4.setImage(SWTResourceManager.getImage(MainWindow.class, \"/PNGs/carotte.png\"));\r\n\t\tlblNewLabel_4.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tLabel lblNewLabel_5 = new Label(grpActions, SWT.NONE);\r\n\t\tlblNewLabel_5.setImage(SWTResourceManager.getImage(MainWindow.class, \"/PNGs/mash.png\"));\r\n\t\tlblNewLabel_5.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\t\r\n\t\tButton btnSleep = new Button(grpActions, SWT.CHECK);\r\n\t\tbtnSleep.setSelection(true);\r\n\t\tbtnSleep.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tsleep = !sleep;\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnSleep.setText(\"Sleep\");\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tButton btnMission = new Button(grpActions, SWT.CHECK);\r\n\t\tbtnMission.setSelection(true);\r\n\t\tbtnMission.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tmission = !mission;\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnMission.setText(\"Mission\");\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\r\n\t}" ]
[ "0.73335195", "0.6840024", "0.68376434", "0.6791247", "0.6565195", "0.65635043", "0.6548234", "0.64823693", "0.6479975", "0.64742506", "0.64499956", "0.64439386", "0.6440782", "0.64174914", "0.6348693", "0.6298088", "0.62598044", "0.62359047", "0.6225611", "0.6224184", "0.6204536", "0.6201202", "0.6193327", "0.617737", "0.6176661", "0.6165001", "0.61562645", "0.6128625", "0.6125014", "0.6112006", "0.6090695", "0.6074285", "0.60513973", "0.6044321", "0.60428655", "0.6038578", "0.6035112", "0.60275024", "0.6026189", "0.6024927", "0.6019273", "0.60170346", "0.6016818", "0.6016355", "0.60084736", "0.5991551", "0.5984341", "0.59787786", "0.5974247", "0.5969989", "0.59611297", "0.5958609", "0.5950286", "0.59469694", "0.59272933", "0.5924945", "0.5924196", "0.5919187", "0.59173614", "0.590546", "0.58903694", "0.5886245", "0.5885807", "0.5875267", "0.5872437", "0.5863239", "0.58396566", "0.57942903", "0.579387", "0.5793203", "0.5782374", "0.57804954", "0.5766149", "0.5750231", "0.5748263", "0.5744111", "0.5741439", "0.5738251", "0.573582", "0.57330453", "0.572877", "0.5725326", "0.5717745", "0.5700127", "0.5687127", "0.5685595", "0.568015", "0.56796664", "0.5676707", "0.56615984", "0.56563824", "0.56546736", "0.56508505", "0.56460375", "0.56426185", "0.5635452", "0.5632927", "0.5621177", "0.56102705", "0.560446" ]
0.5657165
90
This is the path where the file's name you want to take.
public static void main(String[] args) { String path = "D:\\workplace\\IDEA\\ECIPCSweb\\excel\\grade"; getFile(path); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "String getFileName();", "String getFileName();", "String getFileName();", "String getFileName();", "String getFileName();", "java.lang.String getFilePath();", "java.lang.String getFilename();", "java.lang.String getFilename();", "String getFilepath();", "public String filename() {\n\t int sep = fullPath.lastIndexOf(pathSeparator);\n\t return fullPath.substring(sep + 1);\n\t }", "public String getName() { return FilePathUtils.getFileName(getPath()); }", "String getFilename();", "String getFilePath();", "protected String getFileNamePath()\n {\n String sep = System.getProperty(\"file.separator\", \"/\");\n// String path = System.getProperty(\"user.dir\", \".\");\n\n String filename = getPath() + sep + \"sec.dat\";\n\n return filename;\n }", "public String getFileName();", "public String getFileName();", "public static String getFileName() {\n File base = new File(\"C:/Users/Steve/IdeaProjects/MiniJavaCompiler/samples/clean/\");\n File file = new File(inputFile);\n String relativePath = base.toURI().relativize(file.toURI()).getPath();\n return relativePath;\n }", "public String getFileName ();", "private String getUploadFileName() {\r\n\t\tJFileChooser fc = new JFileChooser(\"./\");\r\n\t\tint returnVal = fc.showOpenDialog(this);\r\n\t\tif (returnVal != JFileChooser.APPROVE_OPTION) {\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\t\tFile quizFile = fc.getSelectedFile();\r\n\t\treturn quizFile.getAbsolutePath();\r\n\t}", "String getFileName(String filePath) {\n\t\tint lastSlash = savedFilePath.lastIndexOf(\"\\\\\");\n\t\tint dotPos = savedFilePath.lastIndexOf(\".\");\n\t\tString fileName = savedFilePath.substring(lastSlash+1,dotPos);\n\t\treturn fileName;\n\t}", "public String filename() {\n int dot = fullPath.lastIndexOf(extensionSeparator);\n int sep = fullPath.lastIndexOf(pathSeparator);\n return fullPath.substring(sep + 1, dot);\n }", "private String getPDFFileName(){\r\n String[] split = inputFilePath.split(\"\\\\\\\\\");\r\n\r\n return split[split.length-1].split(\"\\\\.\")[0];\r\n }", "String getFullWorkfileName();", "public String fullFileName () {\n\t\tif (directory == null || directory.equals(\"\"))\n\t\t\treturn fileName;\n\t\telse\n\t\t\treturn directory + File.separator + fileName;\t//add a '\\' in the path\n\t}", "@Override\n\tpublic String getFilename() {\n\t\treturn this.path.getFileName().toString();\n\t}", "public String getName() {\n return _file.getAbsolutePath();\n }", "public String getFilename();", "@Override\n protected String getFileName() {\n return path;\n }", "Path getFilePath();", "private String getFullPath()\n\t{\n\t\tif (libraryName.equals(\"\"))\n\t\t{\n\t\t\treturn fileName;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn libraryName + \"/\" + fileName;\n\t\t}\n\t}", "public String getFileName()\r\n\t{\r\n\t\treturn settings.getFileName();\r\n\t}", "public String getOriginalFileName();", "private String nakedFileName() {\n return f.getName().split(\"\\\\.\")[0];\n }", "public String path(File f) {\r\n int sep = f.toString().lastIndexOf(\"\\\\\");\r\n return f.toString().substring(0, sep);\r\n }", "private String getFilename(String path) {\r\n\t\tint slashHere = path.lastIndexOf('/');\r\n\t\tif (slashHere == -1) {\r\n\t\t\treturn path;\r\n\t\t} else {\r\n\t\t\treturn path.substring(slashHere + 1);\r\n\t\t}\r\n\t}", "private static String getEntryName(File source, File file) throws IOException {\n\t\tint index = source.getAbsolutePath().length() + 1;\n\t\tString path = file.getCanonicalPath();\n\n\t\treturn path.substring(index);\n\t}", "public final String path() {\n return string(preparePath(concat(path, SLASH, name)));\n }", "public String getFilename() {\n\treturn file.getFilename();\n }", "private String fileName(ModuleReference mref) {\n URI uri = mref.location().orElse(null);\n if (uri != null) {\n if (uri.getScheme().equalsIgnoreCase(\"file\")) {\n Path file = Path.of(uri);\n return file.getFileName().toString();\n } else {\n return uri.toString();\n }\n } else {\n return \"<unknown>\";\n }\n }", "public String getFileName()\n {\n return getString(\"FileName\");\n }", "String getPathName();", "String getPathName();", "String displayableFileName(String path) {\n String result = \"\";\n StringTokenizer tok = new StringTokenizer(path, \"\\\\/\");\n while (tok.hasMoreTokens()) {\n result = tok.nextToken();\n }\n return result;\n }", "public String getFileName() {\n\t\t\n\t\tString result = null;\n\t\t\n\t\tif(this.exists() && !this.isDirectory())\n\t\t\tresult = this.get(this.lenght - 1);\n\t\t\n\t\treturn result;\n\t}", "protected String getFileName()\n {\n return new StringBuilder()\n .append(getInfoAnno().filePrefix())\n .append(getName())\n .append(getInfoAnno().fileSuffix())\n .toString();\n }", "public abstract String getFileName();", "@Nullable public String getFileName() {\n return getSourceLocation().getFileName();\n }", "public String GetFileName() {\r\n\treturn fileName;\r\n }", "public String getName()\n {\n return( file );\n }", "public String getFileName() {\n\t\treturn file.getFileName();\n\t}", "public abstract String getFileLocation();", "private static String getFileName(String graphFileName) {\n\t\t// the folder of the workspace\n\t\tString userDir = System.getProperty(\"user.dir\");\n\t\t// the graphs are in the resources folder\n\t\tString resourcesFolder = \"\\\\src\\\\test\\\\resources\\\\\";\n\t\tuserDir = userDir.concat(resourcesFolder);\n\t\t\n\t\t// the name of the file containing the graph, eg: examplegraph.gv\n\t\t// The graph can be selected here!\n\t\tuserDir = userDir.concat(graphFileName);\n\n\t\treturn userDir;\n\t}", "public String getFilePath() {\n\t\treturn Constants.CSV_DIR+getFileName();\n\t}", "public String filename(File f) {\r\n int dot = f.toString().lastIndexOf(\".\");\r\n int sep = f.toString().lastIndexOf(\"\\\\\");\r\n return f.toString().substring(sep + 1, dot);\r\n }", "public final String getFileName() {\n\t\treturn m_info.getFileName();\n\t}", "public abstract String getFullPath();", "public static String fileName(File file)\n {\n if (file == Configuration.STD_OUT)\n {\n return \"standard output\";\n }\n else\n {\n try\n {\n return file.getCanonicalPath();\n }\n catch (IOException ex)\n {\n return file.getPath();\n }\n }\n }", "private String getFile() {\r\n\t\tJFileChooser fileChooser = new JFileChooser(FileSystemView.getFileSystemView().getHomeDirectory());\r\n\t\tfileChooser.setDialogTitle(\"Choose a file to open: \");\r\n\t\tfileChooser.setFileSelectionMode(JFileChooser.FILES_ONLY);\r\n\t\tint success = fileChooser.showOpenDialog(null);\r\n\t\tif (success == JFileChooser.APPROVE_OPTION) {\r\n\t\t\tFile selectedFile = fileChooser.getSelectedFile();\r\n\t\t\tString fileName = selectedFile.getName();\r\n\t\t\treturn fileName;\r\n\t\t}\r\n\t\treturn \"\";\r\n\t}", "String getFile();", "String getFile();", "String getFile();", "private String getFileName(String path)\n\t{\n\t\tFile file = new File(path);\n\t\tString name = file.getName();\n\t\treturn name.replace(\".\", \"_\");\n\t}", "public static String setFilePath() {\r\n\t\tJFileChooser fc = new JFileChooser(\".\"); // start at current directory\r\n\t\tint returnVal = fc.showOpenDialog(null);\r\n\t\tif(returnVal == JFileChooser.APPROVE_OPTION) {\r\n\t\t\tFile file = fc.getSelectedFile();\r\n\t\t\tString pathName = file.getAbsolutePath();\r\n\t\t\treturn pathName;\r\n\t\t}\r\n\t\telse\r\n\t\t\treturn \"\";\r\n\t}", "public String getPath() {\n if (fileType == HTTP) {\n return fileName.substring(0, fileName.lastIndexOf(\"/\"));\n } else {\n return fileName.substring(0, fileName.lastIndexOf(File.separator));\n }\n }", "public String getName() {\n return dtedDir + \"/\" + filename;\n }", "private String getFileName(String url) {\n // get the begin and end index of name which will be between the\n //last \"/\" and \".\"\n int beginIndex = url.lastIndexOf(\"/\")+1;\n int endIndex = url.lastIndexOf(\".\");\n return url.substring(beginIndex, endIndex);\n \n }", "public String getPath() {\n\t\treturn file.getPath();\n\t}", "private String getFileName() {\n\t\t// retornamos el nombre del fichero\n\t\treturn this.fileName;\n\t}", "public String getFileName() {\n return getCellContent(FILE).split(FILE_LINE_SEPARATOR)[0];\n }", "public String getFileName() {\n\t\treturn file.getName();\n\t}", "public String getPathName()\n {\n return getString(\"PathName\");\n }", "public String getFileName() {\n return String.format(\"%s%o\", this.fileNamePrefix, getIndex());\n }", "private String getFileName()\r\n {\r\n DateFormat format = new SimpleDateFormat(\"yyyy-MM-dd__HH_mm\");\r\n \r\n String ret = new String();\r\n ret += preferences.getPreference(UserPreferences.SAVE_LOCATION_PROP);\r\n ret += format.format(new Date());\r\n \r\n String notationStr = notation.getText().trim();\r\n if (!notationStr.isEmpty()) \r\n {\r\n ret += \"__\" + notationStr.replaceAll(\" \\t/\\\\:\", \"_\");\r\n }\r\n \r\n ret += \".csv\";\r\n \r\n return ret;\r\n }", "public static String filename(String fullPath) {\n int dot = fullPath.lastIndexOf(\".\");\n int sep = fullPath.lastIndexOf(\"/\");\n return fullPath.substring(sep + 1, dot);\n }", "public String getPathName();", "public final String getFileNamePath() {\n\t\treturn this.fileNamePath;\n\t}", "private String getFilename() {\r\n\t\treturn (String) txtFlnm.getValue();\r\n\t}", "Path getModBookFilePath();", "public String getFileChosen() \n {\n return fileName.getText();\n }", "public final String getFilename() {\n return properties.get(FILENAME_PROPERTY);\n }", "public String filename (){\r\n\t\t\treturn _filename;\r\n\t\t}", "private static String getFilePath(int storyId) {\n return DaoUtils.storageDirectoryName() + File.separator + \"story\" + storyId + \".txt\";\n }", "public String getFileName() {\r\n \t\tif (isFileOpened()) {\r\n \t\t\treturn curFile.getName();\r\n \t\t} else {\r\n \t\t\treturn \"\";\r\n \t\t}\r\n \t}", "public String getMainFilePath() {\n return primaryFile.getAbsolutePath();\n //return code[0].file.getAbsolutePath();\n }", "String getPath();", "String getPath();", "String getPath();", "String getPath();", "String getPath();", "public String getFileName(){\r\n\t\treturn linfo != null ? linfo.getFileName() : \"\";\r\n\t}", "private static String getSourceFile() {\n\t\tFileChooser fileChooser = new FileChooser(System.getProperty(\"user.home\"),\n\t\t\t\t\"Chose json file containing satellite data!\", \"json\");\n\t\tFile file = fileChooser.getFile();\n\t\tif (file == null) {\n\t\t\tSystem.exit(-42);\n\t\t}\n\t\treturn file.getAbsolutePath();\n\t}", "private String createScreenshotFilePath() {\n String fileName = new SimpleDateFormat(FILE_NAME_FORMAT).format(new Date());\n String filePath = MainMenu.PUBLIC_EXTERNAL_PICTURES_ORION_PATH + fileName;\n return filePath;\n }" ]
[ "0.7593034", "0.7593034", "0.7593034", "0.7593034", "0.7593034", "0.7593034", "0.7593034", "0.7593034", "0.7593034", "0.7451177", "0.7451177", "0.7451177", "0.7451177", "0.7451177", "0.7449116", "0.73763615", "0.73763615", "0.7326478", "0.72946864", "0.7271456", "0.7269558", "0.72537667", "0.71274155", "0.7121069", "0.7121069", "0.7081721", "0.70720005", "0.7057882", "0.7052059", "0.70075125", "0.7005559", "0.69956046", "0.69927996", "0.69433326", "0.6907609", "0.6904048", "0.68724424", "0.6847877", "0.6824109", "0.68238807", "0.6806412", "0.6720017", "0.6704103", "0.66920877", "0.66845626", "0.6684323", "0.66732746", "0.6667509", "0.66673434", "0.6645721", "0.6645721", "0.662091", "0.65941924", "0.6591152", "0.65815324", "0.6580157", "0.65775645", "0.6529949", "0.6515495", "0.6514008", "0.6507869", "0.64899343", "0.6471598", "0.64684284", "0.646109", "0.6440587", "0.64394855", "0.64313555", "0.64313555", "0.64313555", "0.6431172", "0.6430391", "0.6430146", "0.64277655", "0.6425491", "0.6415957", "0.6413362", "0.6411901", "0.6409242", "0.6401674", "0.6387533", "0.6377324", "0.63714486", "0.6365685", "0.6363744", "0.6358558", "0.635782", "0.6354102", "0.6352238", "0.63509077", "0.6347786", "0.6343568", "0.6338099", "0.633724", "0.633724", "0.633724", "0.633724", "0.633724", "0.6334488", "0.6334122", "0.632262" ]
0.0
-1
get file list where the path has
public static List<String> getFile(String path){ File file = new File(path); // get the folder list File[] array = file.listFiles(); List<String> fileName = new ArrayList<>(); for(int i=0;i<array.length;i++){ if(array[i].isFile()){ // only take file name fileName.add(array[i].getName()); }else if(array[i].isDirectory()){ getFile(array[i].getPath()); } } return fileName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Path> getFiles();", "public List listFiles(String path);", "public List<String> getFiles();", "List<String> getListPaths();", "List<String> getFiles(String path) throws IOException;", "java.util.List<java.lang.String>\n getPathsList();", "private List<String> getFiles(String path){\n workDir = Environment.getExternalStorageDirectory().getAbsolutePath() + path;\n List<String> files = new ArrayList<String>();\n File file = new File(workDir);\n File[] fs = file.listFiles();\n for(File f:fs)\n if (f.isFile())\n files.add(String.valueOf(f).substring(workDir.length()));\n return files;\n }", "public List<String> getListFilePath() throws AncestryException {\n\t\tList<String> listFormKey = new ArrayList<String>();\n\t\tConnection con = null;\n\t\tString sql = \"\";\n\t\ttry {\n\t\t\tsql = \"SELECT filepath FROM \" + management + \" WHERE step =4 GROUP BY filepath ORDER BY filepath\";\n\t\t\tcon = db.getConnectByProject(project);\n\t\t\tlistFormKey = JdbcHelper.queryToSingleList(con, sql , true);\n\t\t} catch (Exception e) {\n\t\t\tthrow new AncestryException(\"getListFilePath : \" + e.toString() ,e);\n\t\t}\n\t\tfinally {\n\t\t\tJdbcHelper.close(con);\n\t\t}\n\t\treturn listFormKey;\n\t}", "public String[] list() {\n String[] list = _file.list();\n if (list == null) {\n return null;\n }\n for (int i = list.length; i-- > 0; ) {\n if (new File(_file, list[i]).isDirectory() && !list[i].endsWith(\"/\")) {\n list[i] += \"/\";\n }\n }\n return list;\n }", "public abstract List<String> getFiles( );", "public static List<String> getFiles(String path) {\n\t try {\n\t\t\tURI uri = getResource(path).toURI();\n\t\t String absPath = getResource(\"..\").getPath();\n\t\t\tPath myPath;\n\t\t\tif (uri.getScheme().equals(\"jar\")) {\n\t\t\t FileSystem fileSystem = FileSystems.newFileSystem(uri, Collections.<String, Object>emptyMap());\n\t\t\t myPath = fileSystem.getPath(path);\n\t\t\t \n\t\t\t} else {\n\t\t\t myPath = Paths.get(uri);\n\t\t\t}\n\t\t\t\n\t\t\t List<String> l = Files.walk(myPath)\t\n\t\t\t \t\t\t\t\t .map(filePath -> pathAbs2Rel(absPath, filePath))\n\t\t\t \t .collect(Collectors.toList());\n\t\t\t return l;\n\t\t} catch (URISyntaxException | IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t return null;\n\t \n\t}", "public abstract List<String> path();", "List<IDirectory> getSourcePath();", "Path getRequestListFilePath();", "java.util.List<entities.Torrent.FileInfo>\n getFilesList();", "java.util.List<ds.hdfs.generated.FileMetadata> \n getFilesList();", "java.util.List<java.lang.String>\n getSourcepathList();", "public List<File> getFiles();", "private ArrayList<String> getTrackPathList() {\n String MEDIA_TRACKS_PATH = \"CuraContents/tracks\";\n File fileTracks = new File(Environment.getExternalStorageDirectory(), MEDIA_TRACKS_PATH);\n if (fileTracks.isDirectory()) {\n File[] listTracksFile = fileTracks.listFiles();\n ArrayList<String> trackFilesPathList = new ArrayList<>();\n for (File file1 : listTracksFile) {\n trackFilesPathList.add(file1.getAbsolutePath());\n }\n return trackFilesPathList;\n }\n return null;\n }", "private void get_file_List() {\n\tString file_name=null;\r\n\tfor (int i = 0; i < listOfFiles.length; i++) \r\n\t {\r\n\t \r\n\t if (listOfFiles[i].isFile()) \r\n\t {\r\n\t\t file_name = listOfFiles[i].getName();\r\n\t if (file_name.endsWith(\".xml\") || file_name.endsWith(\".XML\"))\r\n\t {\r\n\t file_list.add(file_name) ;\r\n\t }\r\n\t }\r\n\t }\r\n\t\r\n}", "public List<Resource> getFileLocations() throws IOException;", "java.util.List<java.lang.String>\n getSourcepathList();", "public List<String> paths(String path) throws SystemException;", "private File[] getFiles() {\n\n if (mPPTFilePath == null) {\n mPPTFilePath = getArguments().getString(PPTPathString);\n }\n\n String Path = mPPTFilePath;\n File mFile = new File(Path);\n if (mFile.exists() && mFile.isDirectory() && mFile.listFiles()!=null) {\n\n return mFile.listFiles();\n } else {\n Log.d(TAG, \"File==null\");\n return null;\n }\n }", "java.util.List<java.lang.String>\n getFileNamesList();", "public List<Path> getAllPaths();", "private List<File> getSearchFiles() {\n\t\tif (searchDirs == null || searchDirs.size() <= 0) {\n\n\t\t\tsearchDirs = new ArrayList<File>();\n\t\t\t\n\t\t\tsearchDirs.add(StorageUtils.getLocalCacheDir(this));\n//\t\t\tsearchDirs.add(StorageUtils.getExternalCacheDir(this));\n\t\t\tsearchDirs.add(StorageUtils.getFavorDir(this));\n\t\t}\n\t\treturn searchDirs;\n\t}", "public List<File> getListing(){\n\t return getFileList(new File(defaultPath));\n }", "java.util.List<java.lang.String>\n getFileNamesList();", "public ArrayList<String> getFiles() {\n\n\t\tif (m_db == null)\n\t\t\treturn new ArrayList<String>();\n\n\t\t//\n\t\t// query database\n\t\t//\n\t\tCursor cursor = m_db.query(FILE_TABLE_NAME,\n\t\t\t\tnew String[] { FILE_FIELD_PATH }, null, null, null, null, null);\n\n\t\t//\n\t\t// construct array list\n\t\t//\n\t\tArrayList<String> list = new ArrayList<String>();\n\n\t\t//\n\t\t// collect result set\n\t\t//\n\t\tcollectResultSet(cursor, list);\n\n\t\t//\n\t\t// close cursor\n\t\t//\n\t\tcursor.close();\n\n\t\t//\n\t\t// done\n\t\t//\n\t\treturn list;\n\t}", "private static ArrayList<String> getImagesInFileSystem() {\n\t\t// get file list in database\n\t\tArrayList<String> fileNameList = new ArrayList<String>();\n\t\t\n\t\tFile folder = new File(IMAGE_DIRECTORY);\n\t File[] listOfFiles = folder.listFiles();\n\t \n\t for (File currFile : listOfFiles) {\n\t if (currFile.isFile() && !currFile.getName().startsWith(\".\")) {\n\t \t fileNameList.add(currFile.getName());\n\t }\n\t }\n\t \n\t return fileNameList;\n\t}", "private ArrayList<String> getImagesPathList() {\n String MEDIA_IMAGES_PATH = \"CuraContents/images\";\n File fileImages = new File(Environment.getExternalStorageDirectory(), MEDIA_IMAGES_PATH);\n if (fileImages.isDirectory()) {\n File[] listImagesFile = fileImages.listFiles();\n ArrayList<String> imageFilesPathList = new ArrayList<>();\n for (File file1 : listImagesFile) {\n imageFilesPathList.add(file1.getAbsolutePath());\n }\n return imageFilesPathList;\n }\n return null;\n }", "public abstract List<LocalFile> getAllFiles();", "public String[] getListOfFiles() {\n\t\treturn listOfFiles;\n\t}", "public ArrayList<String> getList(String path) throws Exception {\n\t\t\t\n\t\t\tSmbFile file = new SmbFile(path, new NtlmPasswordAuthentication(null, user, pass));\n\t\t\tArrayList<String> fileList = new ArrayList<String>();\n\t\t\t\n\t\t\tSmbFile[] fArr = file.listFiles();\n\t\t\t\n\t\t\tfor(int a=0;a<fArr.length;a++) {\n\t\t\t\tif(accept(fArr[a]) == true) {\n\t\t\t\t\tfileList.add(fArr[a].getName());\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn fileList;\n\t\t}", "public ArrayList<File> getFileList(File file){\r\n\t\tFile dir = new File(file.getParent());\r\n\t\r\n\t\tString filename = file.getName();\r\n\t\t//get all files with the same beginning and end\r\n\t\tint index = filename.indexOf(\"Version\");\r\n\t\tString stringStart = filename.substring(0, index-1);\r\n\t\t\r\n\t\tArrayList<File> files = new ArrayList<File>();\r\n\t\t\r\n\t\tfor(File f:dir.listFiles()){\r\n\t\t\tif(f.getName().contains(stringStart))files.add(f);\r\n\t\t}\r\n\t\t\r\n\t\treturn files;\t\r\n\t}", "List<File> list(String directory) throws FindException;", "List<String> getFileSystemEntries(String path) throws IOException;", "private static String files()\n\t{\n\t\tString path = dirpath + \"\\\\Server\\\\\";\n\t\tFile folder = new File(path);\n\t\tFile[] listOfFiles = folder.listFiles();\n\t\tString msg1 = \"\";\n\n\t\tfor (int i = 0; i < listOfFiles.length; i++)\n\t\t{\n\t\t\tif (listOfFiles[i].isFile())\n\t\t\t{\n\t\t\t\tmsg1 = msg1 + \"&\" + listOfFiles[i].getName();\n\t\t\t}\n\t\t}\n\t\tmsg1 = msg1 + \"#\" + path + \"\\\\\";\n\t\treturn msg1;\n\t}", "protected abstract ArrayList<String> getFileNamesByPath(\n\t\t\tfinal String path);", "public Vector<String> listFiles()\n {\n Vector<String> fileNames = new Vector<String>();\n\n File[] files = fileLocation.listFiles();\n\n for (File file : files)\n {\n fileNames.add(file.getName());\n }\n\n return fileNames;\n }", "public List<String> getPaths() {\n List<String> result;\n synchronized (this.paths) {\n result = this.paths;\n }\n return result;\n }", "public File[] listFiles() {\n\n\t\tFileFilter Ff = f -> true;\n\t\treturn this.listFiles(Ff);\n\t}", "private static File[] filesMiner(String path) {\n try {\n File directoryPath = new File(path);\n FileFilter onlyFile = new FileFilter() {\n @Override\n public boolean accept(File pathname) {\n return pathname.isFile();\n }\n }; // filter directories\n return directoryPath.listFiles(onlyFile);\n } catch (Exception e) {\n System.err.println(UNKNOWN_ERROR_WHILE_ACCESSING_FILES);\n return null;\n }\n\n }", "List<String> getFiles(String path, String searchPattern) throws IOException;", "public String[] listFilesString() {\n\t\tFile[] FL = listFiles();\n\t\treturn FU.listFilesString(FL);\n\t}", "List<File> getSystemDescriptionFiles();", "List<String> getConfigFilePaths();", "File[] getFilesInFolder(String path) {\n return new File(path).listFiles();\n }", "public void getFiles()\n\t{\n\t\tif(fileList.size() == 0)\n\t\t{\n\t\t\tSystem.out.println(\"There is no file or file not found\");\n\t\t}\n\t\tfor(int i = 0; i < fileList.size(); i++)\n\t\t{\n\t\t\tSystem.out.println(\"File is at: \" + fileList.get(i));\n\t\t}\n\t}", "protected File[] getFiles() {\r\n DirectoryScanner scanner = new DirectoryScanner(rootDir,true,\"*.xml\");\r\n List<File> files = scanner.list();\r\n return files.toArray(new File[files.size()]);\r\n }", "java.util.List<java.lang.String>\n getProcessorpathList();", "public File[] CreateListFiles() {\n\t\tif (!Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) {\n\t\t\tToast.makeText(this, \"Error! No SDCARD Found!\", Toast.LENGTH_LONG).show();\n\t\t} else {\n\t\t\tfile = new File(Environment.getExternalStorageDirectory(), File.separator + \"/MelanomaPics/\" + File.separator + MelanomaActivity.pacientSelected);\n\t\t\tfile.mkdirs();\n\t\t}\n\t\t// pega todas as imagens do diretorio MelanomaPics e coloca dentro de\n\t\t// uma lista\n\t\tif (file.isDirectory()) {\n\t\t\tlistFile = file.listFiles();\n\t\t}\n\t\treturn listFile;\n\t}", "private List<File> getFileList(File root){\n\t List<File> returnable = new ArrayList<File>();\n\t if(root.exists()){\n\t\t for(File currentSubFile : root.listFiles()){\n\t\t\t if(currentSubFile.isDirectory()){\n\t\t\t\t returnable.addAll(getFileList(currentSubFile));\n\t\t\t } else {\n\t\t\t\t returnable.add(currentSubFile);\n\t\t\t }\n\t\t }\n\t }\n\t return returnable;\n }", "abstract public List<S> getPath();", "public File[] getFiles() {\n waitPainted(-1);\n Component list = getFileList();\n if(list instanceof JList) {\n ListModel<?> listModel = ((JList)list).getModel();\n File[] result = new File[listModel.getSize()];\n for (int i = 0; i < listModel.getSize(); i++) {\n result[i] = (File) listModel.getElementAt(i);\n }\n return result;\n } else if(list instanceof JTable){\n TableModel listModel = ((JTable)list).getModel();\n File[] result = new File[listModel.getRowCount()];\n for (int i = 0; i < listModel.getRowCount(); i++) {\n result[i] = (File) listModel.getValueAt(i, 0);\n }\n return result;\n } else\n throw new IllegalStateException(\"Wrong component type\");\n }", "public ArrayList<String> getPath() {\n return list;\n }", "private File[] getFilesInDirectory() {\n\t\t//Show Directory Dialog\n\t\tDirectoryChooser dc = new DirectoryChooser();\n\t\tdc.setTitle(\"Select Menu File Directory\");\n\t\tString folderPath = dc.showDialog(menuItemImport.getParentPopup().getScene().getWindow()).toString();\n\t\t\n\t\t//Update Folder location text\n\t\ttxtFolderLocation.setText(\"Import Folder: \" + folderPath);\n\t\t//Now return a list of all the files in the directory\n\t\tFile targetFolder = new File(folderPath);\n\t\t\n\t\treturn targetFolder.listFiles(); //TODO: This returns the names of ALL files in a dir, including subfolders\n\t}", "public ArrayList<String> getFiles() {\n\t\t// Sort list\n\t\tCollections.sort(this.files);\n\t\t\n\t\treturn this.files;\n\t}", "public void listFiles(String path) {\r\n String files;\r\n File folder = new File(path);\r\n File[] listOfFiles = folder.listFiles();\r\n\r\n for (int i = 0; i < listOfFiles.length; i++) {\r\n\r\n if (listOfFiles[i].isFile()) {\r\n files = listOfFiles[i].getName();\r\n if (files.endsWith(\".png\") || files.endsWith(\".PNG\")\r\n || files.endsWith(\".gif\") || files.endsWith(\".GIF\")) {\r\n //System.out.println(files);\r\n pathList.add(path+\"\\\\\");\r\n fileList.add(files);\r\n }\r\n }\r\n \r\n else {\r\n listFiles(path+\"\\\\\"+listOfFiles[i].getName());\r\n }\r\n }\r\n }", "private List<String> returnFiles(int selection) {\n\t\tString path = System.getProperty(\"user.dir\");\n\t\tList<String> allImages = new ArrayList<String>();\n\t\tpath += this.setFolderPath(selection);\n\t\tFile[] files = new File(path).listFiles();\n\n\t\tfor (File file : files) {\n\t\t\tif (file.isFile() && isCorrectFile(file)) {\n\t\t\t\tallImages.add(file.getAbsolutePath());\n\t\t\t}\n\t\t}\n\t\treturn allImages;\n\t}", "java.util.List<java.lang.String>\n getClasspathList();", "private String[] getFileNames() {\n\t\tFile directory = new File(this.getClass().getClassLoader()\n\t\t\t\t.getResource(\"data\").getFile());\n\t\tList<String> fileNames = new ArrayList<String>();\n\n\t\tfor (File file : directory.listFiles())\n\t\t\tfileNames.add(file.getName());\n\n\t\treturn fileNames.toArray(new String[fileNames.size()]);\n\t}", "protected List<String> getFileNames(@NonNull ConfigQuery query, @NonNull T context) {\n val paths = interpolateVarStrings(getPaths(), query);\n log.trace(\"{} retrieving filenames for paths: {}\", this, paths);\n return paths.stream()\n .flatMap(name -> maybeListDirectory(name, context))\n .distinct()\n .collect(Collectors.toList());\n }", "java.util.List<java.lang.String>\n getClasspathList();", "private void getDirectoryContents() {\n\t File directory = Utilities.prepareDirectory(\"Filtering\");\n\t if(directory.exists()) {\n\t FilenameFilter filter = new FilenameFilter() {\n\t public boolean accept(File dir, String filename) {\n\t return filename.contains(\".pcm\") || filename.contains(\".wav\");\n\t }\n\t };\n\t fileList = directory.list(filter);\n\t }\n\t else {\n\t fileList = new String[0];\n\t }\n\t}", "public static List<String> getFilesFromDirectory(){\n File wordTextFolder = new File(FOLDER_OF_TEXT_FILES.toString());\n File[] filesInsideFolder = wordTextFolder.listFiles();\n List<String> paths = new ArrayList<>();\n String name;\n\n for (File txtFile : filesInsideFolder){\n paths.add( txtFile.getPath() );\n name = txtFile.getName();\n name = name.substring(0, name.lastIndexOf('.'));\n\n if(name.length() > Table.maxFileNameLength){\n Table.setMaxFileNameLength(name.length());\n }\n }\n return paths;\n }", "public static List<String> getAllFileNames() {\n List<String> fileNames = new ArrayList();\n\n String sql = \"SELECT fileName FROM files;\";\n\n try (Connection conn = DatabaseOperations.connect();\n Statement stmt = conn.createStatement();\n ResultSet rs = stmt.executeQuery(sql)) {\n while (rs.next()) {\n fileNames.add(rs.getString(\"fileName\"));\n }\n return fileNames;\n } catch (SQLException e) {\n System.out.println(\"getAllFileIDs: \" + e.getMessage());\n }\n return null;\n }", "private List<DMTFile> listFilesRecursive(String path) {\n\t\tList<DMTFile> list = new ArrayList<DMTFile>();\n\t\tDMTFile file = getFile(path); //Get the real file\n\t\t\n\t\tif (null != file ){ //It checks if the file exists\n\t\t\tif (! file.isDirectory()){\n\t\t\t\tlist.add(file);\n\t\t\t} else {\n\t\t\t\tDMTFile[] files = listFilesWithoutConsoleMessage(file.getPath());\n\t\t\t\tfor (int x = 0; x < files.length; x++) {\n\t\t\t\t\tDMTFile childFile = files[x];\t\t \n\t\t\t\t\tif (childFile.isDirectory()){\n\t\t\t\t\t\tlist.addAll(listFilesRecursive(childFile.getPath()));\t\t\t\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlist.add(childFile);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t}", "List<String> getFiles(String path, String searchPattern, String searchOption) throws IOException;", "private List<String> scoutForFiles(FileType fileType, Path path) {\n\t\tfinal List<String> filesFound = new ArrayList<>();\n\n\t\t// Create a stream of Paths for the contents of the directory\n\t\ttry (Stream<Path> walk = Files.walk(path)) {\n\n\t\t\t// Filter the stream to find only Paths that match the filetype we are looking\n\t\t\tfilesFound.addAll(walk.map(x -> x.toString())\n\t\t\t\t.filter(f -> f.endsWith(fileType.suffix)).collect(Collectors.toList()));\n\t\t} catch (IOException e) {\n\t\t\tthrow new MessagePassableException(EventKey.ERROR_EXTERNAL_DIR_NOT_READABLE, e, path.toString());\n\t\t}\n\n\t\treturn filesFound;\n\t}", "java.util.List<entities.Torrent.FileInfo>\n getFileInfoList();", "@Override\n public String getFileList() {\n StringBuilder string = null;\n //if (parentFile.isDirectory()) {\n File parentFile = currentDir;\n string = new StringBuilder();\n for (File childFile : parentFile.listFiles()) {\n try {\n //TODO: Verify that Paths.get() is retrieving a valid path relative to the project's location.\n Path file = Paths.get(childFile.getPath());\n\n BasicFileAttributes attr = Files.readAttributes(file, BasicFileAttributes.class);\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"M\");\n String month = dateFormat.format(attr.creationTime().toMillis());\n dateFormat.applyPattern(\"d\");\n String dayOfMonth = dateFormat.format(attr.creationTime().toMillis());\n dateFormat.applyPattern(\"y\");\n String year = dateFormat.format(attr.creationTime().toMillis());\n\n char fileType = childFile.isDirectory() ? 'd' : '-'; //'-' represents a file.\n string.append(String.format(\"%srw-r--r--\", fileType)); //Linux style permissions\n string.append(\"\\t\");\n string.append(\"1\"); //?\n string.append(\" \");\n string.append(\"0\"); //?\n string.append(\"\\t\");\n string.append(\"0\"); //?\n string.append(\"\\t\");\n string.append(childFile.length()); //Length\n string.append(\" \");\n string.append(month); //Month\n string.append(\" \");\n string.append(dayOfMonth); //Day\n string.append(\" \");\n string.append(\" \");\n string.append(year); //Year\n string.append(\" \");\n string.append(childFile.getName());\n string.append(System.getProperty(\"line.separator\"));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n //}\n\n String format = \"%S\\t%d %d\\t%d\\t%d %S %d %d %S\";\n //return \"-rw-r--r-- 1 0 0 1073741824000 Feb 19 2016 1000GB.zip\";\n if (!string.equals(null)) {\n return string.toString();\n } else {\n return \"Error when creating file list.\";\n }\n }", "@Override\r\n\tpublic String[] list(String path) {\n\t\treturn null;\r\n\t}", "private static String[] findFiles(String dirpath) {\n\t\tString fileSeparator = System.getProperty(\"file.separator\");\n\t\tVector<String> fileListVector = new Vector<String>();\n\t\tFile targetDir = null;\n\t\ttry {\n\t\t\ttargetDir = new File(dirpath);\n\t\t\tif (targetDir.isDirectory())\n\t\t\t\tfor (String val : targetDir.list(new JavaFilter()))\n\t\t\t\t\tfileListVector.add(dirpath + fileSeparator + val);\n\t\t} catch(Exception e) {\n\t\t\tlogger.error(e);\n\t\t\tSystem.exit(1);\n\t\t}\n\t\t\n\t\tString fileList = \"\";\n\t\tfor (String filename : fileListVector) {\n\t\t\tString basename = filename.substring(filename.lastIndexOf(fileSeparator) + 1);\n\t\t\tfileList += \"\\t\" + basename;\n\t\t}\n\t\tif (fileList.equals(\"\")) \n\t\t\tfileList += \"none.\";\n\t\tlogger.trace(\"Unpackaged source files found in dir \" + dirpath + fileSeparator + \": \" + fileList);\n\t\t\n\t\treturn (String[]) fileListVector.toArray(new String[fileListVector.size()]);\n\t}", "public static String[] getFilePaths(String path, String parameter){\n\t\tString[] filePaths=null;\n\t\tif(parameter.trim().equals(\"-f\")){\n\t\t\tfilePaths=new String[1];\n\t\t\tfilePaths[0]=path;\n\t\t}\n\t\telse if(parameter.trim().equals(\"-d\")){\n\t\t\tfilePaths=new File(path).list();\n\t\t\tif(filePaths==null){\n\t\t\t\tfilePaths=new String[0];\n\t\t\t}\n\t\t\tString[] tmp=new String[filePaths.length];\n\t\t\tfor(int i=0;i<tmp.length;i++){\n\t\t\t\ttmp[i]=path+'/'+filePaths[i];\n\t\t\t}\n\t\t\tfilePaths=tmp;\n\t\t}\n\t\treturn filePaths;\n\t}", "protected abstract String[] getFolderList() throws IOException;", "protected ArrayList<String> getCheckedFiles()\n {\n SparseBooleanArray items = fileList.getCheckedItemPositions();\n ArrayList<String> files = new ArrayList<String>();\n \n for (int i = 0; i < items.size(); i++)\n {\n if (items.valueAt(i))\n {\n files\n .add(fileList.getItemAtPosition(items.keyAt(i)).toString());\n }\n }\n \n return files;\n }", "public String[] GetAllFileNames() {\n \tFile dir = new File(fileStorageLocation.toString());\n \tString[] matchingFiles = dir.list(new FilenameFilter() {\n \t public boolean accept(File dir, String name) {\n \t return name.startsWith(\"1_\");\n \t }\n \t});\n \t\n \tfor (int i=0; i < matchingFiles.length; i++)\n \t{\n \t\tmatchingFiles[i] = matchingFiles[i].replaceFirst(\"1_\", \"\");\n \t}\n \t\n return matchingFiles;\n }", "public ArrayList<String> getDirFiles(String filePath){\n ArrayList<String> results = new ArrayList<String>();\n File[] files = new File(filePath).listFiles();\n\n for (File file : files){\n if (file.isFile()) {\n results.add(file.getName());\n }\n }\n return results;\n }", "public String[] getComboBoxList(String path) {\r\n\t\t// We setup the path to search.\r\n\t\tFile file = new File(path);\r\n\t\tFile[] files = file.listFiles(File::isDirectory);\r\n\r\n\t\t// We initialise the length of String[] to the length of all the files.\r\n\t\t// This way, we prevent any OutOfBounds exceptions as the maximum length is the\r\n\t\t// length of all the files.\r\n\t\tString[] directories = new String[files.length];\r\n\r\n\t\t// We add the directories to the String[].\r\n\t\tfor (int i = 0; i < files.length; i++) {\r\n\t\t\tdirectories[i] = files[i].getName().toString();\r\n\t\t}\r\n\r\n\t\treturn directories;\r\n\t}", "public abstract List<File> listFiles() throws AccessException;", "public abstract List<String> getControlledPaths();", "List<String> getDirectories(String path) throws IOException;", "public List<String> getListOfZipFiles()\n {\n \treturn fileList;\n }", "public List<Path> getPaths() {\n return _thePaths;\n }", "public List<String> list(String path) throws IOException {\n Path destionationPath = new Path(path);\n\n List<String> childsList = new ArrayList<>();\n FileStatus[] childElements = hdfs.listStatus(destionationPath);\n Arrays.stream(childElements).forEach(child -> childsList.add(child.getPath().getName()));\n return childsList;\n }", "public abstract List<String> getDirs( );", "public List getAllLogFileNames() {\n File folder = new File(path);\n File[] listOfFiles = folder.listFiles();\n List<String> fileList = new ArrayList<>();\n\n for (int i = 0; i < listOfFiles.length; i++) {\n if (listOfFiles[i].isFile()) {\n String fileName = listOfFiles[i].getName();\n if ((!fileName.contains(\".tar\")) && (!fileName.contains(\".zip\")) && (!fileName.contains(\".gz\")) && (!fileName.contains(\".lck\")))\n fileList.add(fileName);\n }\n }\n return fileList;\n }", "@Override\n\tpublic String[] query() {\n\t\t// Return an array of (decoded) filenames\n\t\tif (!serviceDir.exists()) {\n\t\t\treturn new String[0];\n\t\t}\n\t\tFile[] files = serviceDir.listFiles();\n\t\tString[] addrs = new String[files.length];\n\t\tfor (int i = 0; i < addrs.length; ++i) {\n\t\t\taddrs[i] = decode(files[i].getName());\n\t\t}\n\t\treturn addrs;\n\t}", "public List<String> getDownloadableFiles() throws IOException {\n List<String> fileNameList = new ArrayList<>();\n Files.walk(Paths.get(this.sharedFolder)).forEach(ruta -> {\n if (Files.isRegularFile(ruta)) {\n fileNameList.add(ruta.getFileName().toString());\n }\n });\n return fileNameList;\n }", "public File[] elements() {\n File plik = new File(katalog);\n katalog = plik.getAbsolutePath();\n if (katalog.endsWith(\".\")) {\n katalog = katalog.substring(0, katalog.length() - 1);\n }\n return plik.listFiles();\n }", "java.util.List<java.lang.String>\n getSourceFileList();", "private List<String> processDirectory(Path path) {\n\t\treturn null;\r\n\t}", "public File[] getFiles(String mkey) {\n\t\tFile last;\n\t\tint i = 0;\n\t\tArrayList<File> v = new ArrayList<>();\n\t\twhile (true) {\n\t\t\tlast = getFile(mkey + i);\n\t\t\ti++;\n\t\t\tif (last == null)\n\t\t\t\tbreak;\n\t\t\tv.add(last);\n\t\t}\n\t\tif (v.size() != 0) {\n\t\t\tFile[] path = new File[v.size()];\n\t\t\treturn v.toArray(path);\n\t\t} else {\n\t\t\treturn (File[]) getDefault(mkey);\n\t\t}\n\t}", "public void getPeerFiles(){\n\t\t\n\t\tFile[] files = new File(path).listFiles();\n\t\tfor (File file : files) {\n\t\t\tfileNames.add(file.getName());\n\t\t}\n\t\tSystem.out.println(\"Number of Files Registerd to the server - \"+fileNames.size());\n\t\tSystem.out.println(\"To search for file give command: get <Filename>\");\n\t\tSystem.out.println(\"To refresh type command: refresh\");\n\t\tSystem.out.println(\"To disconnect type command: disconnect\");\n\t}", "public ArrayList<ArrayList<String>> getPathList() {\r\n\t\treturn pathList;\r\n\t}", "public List<File> listCacheDirs() {\n List<File> cacheDirs = new ArrayList<File>();\n File file = new File(parent);\n if(file.exists()) {\n File[] files = file.listFiles(new FileFilter() {\n @Override\n public boolean accept(File pathname) {\n // TODO Auto-generated method stub\n return pathname.isDirectory() && \n pathname.getName().startsWith(CacheDirectory.cacheDirNamePrefix(identity));\n }\n \n });\n cacheDirs = Arrays.asList(files);\n }\n return cacheDirs;\n }", "public String getSubtitlesFileListPath() {\r\n\t\tif(isExistSubtitlesFileList())\r\n\t\t\treturn ArrayUtils.toStringComma(getSubtitlesFileList());\r\n\t\treturn \"\";\r\n\t}", "public String[] getFiles() throws Exception\n {\n if (dir == null)\n {\n throw new Exception(\"No directory specified for filelist.\");\n }\n\n if (filenames.size() == 0)\n {\n throw new Exception(\"No files specified for filelist.\");\n }\n\n String[] result = new String[filenames.size()];\n filenames.copyInto(result);\n return result;\n }" ]
[ "0.8245559", "0.79034746", "0.77342176", "0.7681433", "0.76792824", "0.7580073", "0.7530918", "0.75308937", "0.7515597", "0.75028586", "0.7473728", "0.7352647", "0.73034835", "0.7287184", "0.72718817", "0.72632426", "0.7261538", "0.72613406", "0.7217563", "0.720906", "0.7206263", "0.7205838", "0.71770173", "0.71272033", "0.7082974", "0.7081294", "0.706298", "0.7057004", "0.7042813", "0.70297897", "0.70255023", "0.698121", "0.6980171", "0.6968281", "0.69610524", "0.6950794", "0.6922455", "0.68991876", "0.6871244", "0.6801532", "0.6795148", "0.67906433", "0.6784531", "0.67726934", "0.6752956", "0.6752031", "0.6750197", "0.6738061", "0.673353", "0.6726007", "0.6722706", "0.6708396", "0.6696583", "0.66910547", "0.6685744", "0.66824335", "0.66758335", "0.66503173", "0.6626276", "0.66228104", "0.66173834", "0.66105866", "0.6607192", "0.66050786", "0.6595838", "0.65910584", "0.6584491", "0.6582277", "0.65802944", "0.6575017", "0.65724576", "0.6571503", "0.65707666", "0.6541816", "0.6539126", "0.6536996", "0.653678", "0.6530545", "0.65236264", "0.65218955", "0.65203494", "0.65095466", "0.64943904", "0.64918804", "0.64877754", "0.64872074", "0.64862436", "0.6483433", "0.6480382", "0.6474429", "0.6472379", "0.6467994", "0.6467619", "0.64626706", "0.64621764", "0.6460334", "0.6459524", "0.64494175", "0.64490587", "0.6438298" ]
0.6854402
39
/mean m = new mean(); m.pub(); m.pro(); m.def(); m.pri();
public static void main(String[] args){ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double mean() {\n return StdStats.mean(stats);\r\n }", "private void fnMeanSale() {\n }", "public double mean() {\r\n\t\treturn mean;\r\n\t}", "public double sum() {\n/* 196 */ return this.mean * this.count;\n/* */ }", "public double mean() {\n\t\treturn mean;\n\t}", "public double mean() {\n\t\treturn mean;\n\t}", "public T mean();", "static void avg(){\r\n\t\tSystem.out.println(\"Hi Avg\");\r\n\t}", "MeanWithClusterProbAggregator() {\n // NO-OP.\n }", "public void setMean(double mean) {\n this.mean = mean;\n }", "@Test\n public void testMean() {\n System.out.println(\"mean\");\n NegativeBinomialDistribution instance = new NegativeBinomialDistribution(3, 0.3);\n instance.rand();\n assertEquals(7, instance.mean(), 1E-7);\n }", "@Override\n\tpublic double mean() {\n\t\treturn 0;\n\t}", "public static void main(String[] args) {\n\t\tstudet st=new studet();\r\n score sc=new score();\r\n st.c=80;\r\n st.html=85;\r\n st.java=90;\r\n System.out.println(\"学生平局成绩是\"+ sc.getAvg(st));//实例化的对象来调用它的方法,最后把参数传给他\t\t\r\n\t}", "public double mean()\n {\n return StdStats.mean(open);\n// return StdStats.sum(open) / count;\n }", "public BestMeanConvergence() {\n }", "protected MeanVar(int n, double mean, double s) {\n\t\tthis.n = n;\n\t\tthis.mean = mean;\n\t\tthis.s = s;\n\t}", "public String getMean()\n {\n return mean;\n }", "public double mean() {\n return mean;\n }", "public MMAge(){\n\t\t\n\t}", "public double getMean() {\n return mean;\n }", "public double mean() {\n return mu;\n }", "public static void main(String[] args) {\n A a1= new A();\n double d1= a1.average(123,345,67,89);\n double d2= a1.average(123,34,56,78,11,22,90,45,67,81);\n System.out.println(\"Avg 1\" +d1);\n System.out.println(\"Avg 2\" +d2);\n \n P p1= new R();\n p1= new Q();\n p1= new P();\n if (p1 instanceof R)\n {\n \tSystem.out.println(\"AA\");\n }\n else if (p1 instanceof Q)\n {\n \tSystem.out.println(\"BB\");\n }\n else\n \tSystem.out.println(\"CC\");\n \n \n Outer o= new Outer(100);\n Outer.Inner i= o.new Inner(200);\n i.sum();\n\t}", "public Double getMean() {\n return mean;\n }", "@Override\n\tpublic double getMean() {\n\t\treturn 1/this.lambda;\n\t}", "public double mean() {\n/* 179 */ Preconditions.checkState((this.count != 0L));\n/* 180 */ return this.mean;\n/* */ }", "private void analyze() {\n\t\tdouble org = 0;\n\t\tdouble avgIndPerDoc = 0;\n\t\tdouble avgTotalPerDoc = 0;\n\n\t\tfor (Instance instance : instanceProvider.getInstances()) {\n\n\t\t\tint g = 0;\n\t\t\tSet<AbstractAnnotation> orgM = new HashSet<>();\n\n//\t\t\torgM.addAll(instance.getGoldAnnotations().getAnnotations());\n//\t\t\tg += instance.getGoldAnnotations().getAnnotations().size();\n\n\t\t\tfor (AbstractAnnotation instance2 : instance.getGoldAnnotations().getAnnotations()) {\n\n\t\t\t\tResult r = new Result(instance2);\n\n\t\t\t\t{\n////\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(r.getTrend());\n//\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(r.getInvestigationMethod());\n////\t\t\t\t\tList<AbstractAnnotation> aa = new ArrayList<>(\n////\t\t\t\t\t\t\tr.getDefinedExperimentalGroups().stream().map(a -> a.get()).collect(Collectors.toList()));\n//\n//\t\t\t\t\torgM.addAll(aa);\n//\t\t\t\t\tg += aa.size();\n\t\t\t\t}\n\n\t\t\t\t{\n\t\t\t\t\t/**\n\t\t\t\t\t * props of exp\n\t\t\t\t\t */\n\t\t\t\t\tfor (DefinedExperimentalGroup instance3 : r.getDefinedExperimentalGroups()) {\n\n//\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(instance3.getOrganismModel());\n//\t\t\t\t\tList<AbstractAnnotation> aa = new ArrayList<>(instance3.getTreatments());\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(instance3.getInjury());\n\n\t\t\t\t\t\tList<AbstractAnnotation> ab = Arrays.asList(instance3.getInjury());\n\n\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n\t\t\t\t\t\t\t\t.filter(i -> i != null).flatMap(i -> i.getDeliveryMethods().stream())\n\t\t\t\t\t\t\t\t.filter(i -> i != null).collect(Collectors.toList());\n\n\t\t\t\t\t\taa.addAll(instance3.getTreatments().stream().filter(i -> i != null)\n\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Treatment(et))\n\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getDeliveryMethod()).filter(i -> i != null)\n\t\t\t\t\t\t\t\t.collect(Collectors.toList()));\n\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).flatMap(i -> i.getAnaesthetics().stream())\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).collect(Collectors.toList());\n\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getInjuryDevice()).filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.collect(Collectors.toList());\n\n\t\t\t\t\t\t// List<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getInjuryLocation()).filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.collect(Collectors.toList());\n\n\t\t\t\t\t\torgM.addAll(aa);\n\t\t\t\t\t\tg += aa.size();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tavgIndPerDoc += orgM.size();\n\t\t\tavgTotalPerDoc += g;\n\n\t\t\torg += ((double) orgM.size()) / (g == 0 ? 1 : g);\n//\t\t\tSystem.out.println(((double) orgM.size()) / g);\n\n\t\t}\n\t\tSystem.out.println(\"avgTotalPerDoc = \" + avgTotalPerDoc / instanceProvider.getInstances().size());\n\t\tSystem.out.println(\"avgIndPerDoc = \" + avgIndPerDoc / instanceProvider.getInstances().size());\n\t\tSystem.out.println(\"org = \" + org);\n\t\tSystem.out.println(\"avg. org = \" + (org / instanceProvider.getInstances().size()));\n\t\tSystem.out.println(new DecimalFormat(\"0.00\").format(avgTotalPerDoc / instanceProvider.getInstances().size())\n\t\t\t\t+ \" & \" + new DecimalFormat(\"0.00\").format(avgIndPerDoc / instanceProvider.getInstances().size())\n\t\t\t\t+ \" & \" + new DecimalFormat(\"0.00\").format(org / instanceProvider.getInstances().size()));\n\t\tSystem.exit(1);\n\n\t\tStats.countVariables(0, instanceProvider.getInstances());\n\n\t\tint count = 0;\n\t\tfor (SlotType slotType : EntityType.get(\"Result\").getSlots()) {\n\n\t\t\tif (slotType.isExcluded())\n\t\t\t\tcontinue;\n\t\t\tcount++;\n\t\t\tSystem.out.println(slotType.name);\n\n\t\t}\n\t\tSystem.out.println(count);\n\t\tSystem.exit(1);\n\t}", "public final double getMean()\r\n\t{\r\n\t\treturn mean;\r\n\t}", "public double mean() { \n return StdStats.mean(result);\n\n }", "double agression();", "private AvgExpression() {\n }", "double average();", "private void updateMean() {\r\n double tmp = 0.0;\r\n for (Tweet t : members) {\r\n tmp += t.getDateLong();\r\n }\r\n tmp = tmp / (double) members.size();\r\n this.mean = tmp;\r\n }", "public GaussianNormailizerFeature(ArrayList<EssayInstance> trainingSample, Features base, String baseName, Type type) {\n means = new HashMap<>();\n stddev = new HashMap<>();\n this.baseFeature = base;\n this.baseName = baseName;\n this.name = baseName + \"_\" + type.toString().toLowerCase() + \"_gaussiannorm_task\";\n this.type = type;\n HashMap<Integer, int[]> docs = new HashMap<>();\n // compute the sums\n for (EssayInstance instance : trainingSample) {\n double value = getBaseValue(instance);\n if (!means.containsKey(instance.set)) means.put(instance.set, new double[]{value});\n else means.get(instance.set)[0] += value;\n\n if (!docs.containsKey(instance.set)) docs.put(instance.set, new int[]{1});\n else docs.get(instance.set)[0]++;\n }\n // convert to mean\n for (Integer i : means.keySet()) means.get(i)[0] /= docs.get(i)[0];\n // compute standard deviation\n for (EssayInstance instance : trainingSample) {\n double value = getBaseValue(instance);\n double dev = means.get(instance.set)[0] - value;\n dev *= dev;\n if (!stddev.containsKey(instance.set))\n stddev.put(instance.set, new double[]{dev});\n else stddev.get(instance.set)[0] += dev;\n }\n // normalize the stddev\n for (Integer i : stddev.keySet()) stddev.get(i)[0] = Math.sqrt(stddev.get(i)[0] / (docs.get(i)[0] - 1));\n // debug\n if (EssayScoring.DEBUG) {\n List<Integer> tasks = new ArrayList<>(means.keySet());\n Collections.sort(tasks);\n for (Integer task : tasks) {\n System.out.println(\"Feature \" + baseName + \" for task/set \" + task + \":\");\n System.out.println(\"\\tx: \" + means.get(task)[0]);\n System.out.println(\"\\ts: \" + stddev.get(task)[0]);\n }\n }\n }", "public static void main(String[] args)\r\n\t{\n\t\r\n\t\tson s=new son();\r\n\t\ts.mul();\r\n\t\ts.add();\r\n\t\ts.A();\r\n\t\t\r\n\r\n\t}", "public static void main(String[] args) {\n PercolationStats ps = new PercolationStats(200,100);\r\n System.out.println(ps.mean());\r\n System.out.println(ps.stddev());\r\n System.out.println(ps.confidenceLo());\r\n System.out.println(ps.confidenceHi());\r\n }", "public abstract double getLikelihood(String command);", "public static void main(String[] args) {\n // TODO code application logic here\n ArrayList<Integer> ints=new input().getInts(10);\n //PT -- stuff?\n calculates stuff=new calculates(ints);\n System.out.printf(\"Minimun Value is %d \\n\",(int)stuff.getMin());\n System.out.printf(\"Maximun Value is %d \\n\",(int)stuff.getMax());\n System.out.printf(\"Average Value is %f \\n\",stuff.getAvg());\n \n }", "private void calculateMean(float total){\r\n float averageBonds = total/accountInTotal;\r\n float averageAER = (averageBonds-startingBonds)/(startingBonds/100);\r\n\r\n Account averageAccount = new Account(startingBonds,averageBonds,averageAER);\r\n System.out.println(averageAccount.toString());\r\n\r\n }", "public MeanVar(double[] data) {\n\t\tfor (int i = 0; i < data.length; i++)\n\t\t\taddValue(data[i]);\n\t}", "public static void main(String[] args) {\n\r\n Avenger[] avg = new Avenger[5];\r\n\r\n for (int i = 0; i < 5; i++) {\r\n avg[i] = new Avenger();\r\n\r\n }\r\n for (int i = 0; i < 5; i++) {\r\n avg[i].getDetails();\r\n }\r\n for (int i = 0; i < 5; i++) {\r\n avg[i].displayDetails();\r\n }\r\n }", "double getAvgControl();", "public static void main(String[] args) {\n\t\tAggregateSummaryStatistics aggregate = new AggregateSummaryStatistics();\n\t\tSummaryStatistics setOneStats = aggregate.createContributingStatistics();\n\t\tSummaryStatistics setTwoStats = aggregate.createContributingStatistics();\n\n\t\t \n\t\tfor( int i = 1; i <= 10; i++) {\n\t\t\tsetOneStats.addValue(i);\n\t\t\tsetTwoStats.addValue(i);\n\t\t}\n\t\t\n\t\t// Full sample data is reported by the aggregate\n\t\tdouble totalSampleSum = aggregate.getSum();\n\t\tSystem.out.println(\"totalSampleSum=\"+totalSampleSum);\n\t\tSystem.out.println(\"Count=\"+aggregate.getN());\n\t\tSystem.out.println(\"mean=\"+aggregate.getMean());\n\t\tSystem.out.println(\"std=\"+aggregate.getStandardDeviation());\n\t\t\n\t}", "public void calculateMMage() {\n\t\t\n\t}", "public MultivariateGaussianDM() {\n\t}", "private void calculateAvg() {\n\t\tDescriptiveStatistics stats = new DescriptiveStatistics();\n\t\tfor (QueryInfo oneQ : this.maxQueries) {\n\t\t\tstats.addValue(oneQ.getGapCount() * oneQ.getFrequency());\n\t\t}\n\t\tthis.avgGain = stats.getMean();\n\t\tthis.medianGain = stats.getPercentile(50);\n\t\tthis.quartiles = stats.getPercentile(75);\n\t}", "public AverageOperation(BlockGenerator bg){\n\t\tb1 = bg;\n\t}", "public static void main(String[] args) {\n\t\tSIngleD obj=new SIngleD();\r\n\t\tobj.rollno();\r\n\t\tobj.total();\r\n\t\tobj.average();\r\n\t\tobj.percentage();\r\n\t\tobj.result();\r\n\t}", "public AVL() {\n\n }", "public static void main(String[] args) {\n\t\tPerson John = new Person(\"John\",1957);\r\n\t\tJohn.display();\r\n\t\tJohn.Senority();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tresult obj = new result();\n\t\tobj.setstudent(\"penny\", 30);\n\t\tobj.setmarks(95, 85);\n\t\tobj.calculate();\n\t\tobj.showstudent();\n\t\tobj.showmarks();\n\t\tobj.showresult();\n\n\t}", "public void getAvg()\n {\n this.avg = sum/intData.length;\n }", "public int getAvgExecs()\n/* */ {\n/* 55 */ return this.avgExecs;\n/* */ }", "public double getFitness(){\n return averageFitness;\n }", "public interface Aggregator {\n /**\n * Determines the final class recognized\n * @param confidence Confidence values produced by a recognizer\n * (one confidence value per class)\n * @return The final prediction given by a classifier\n */\n public Prediction apply( double[] confidence );\n\n}", "public void mpgCalculations() {\n\n }", "public static void main(String[] args) {\n\t\tPercolationStats pstat = new PercolationStats(Integer.parseInt(args[0]), Integer.parseInt(args[1]));\n\t\tSystem.out.println(\"mean = \" + pstat.mean());\n\t\tSystem.out.println(\"stddev = \" + pstat.stddev());\n\t\tSystem.out.println(\"95% confidence interval = [\" + pstat.confidenceLo() + \", \" + pstat.confidenceHi() + \"]\");\n\t}", "public static void main(String[] args) {PercolationStats ps = new PercolationStats(10,10); \n//\t\tSystem. out .println( ps .mean());\n//\t\tps = new PercolationStats(20,10);\n//\t\tSystem. out .println( ps.confidenceLow());\n//\t\t\n\t\tint[] number = { 50, 100, 200,400};\n\t\tfor ( int i : number)\n\t\t{\n\t\t\tdouble start = System.nanoTime();\n\t\t\tPercolationStats ps = new PercolationStats(i,100); \n\t\t\tdouble end = System.nanoTime();\n\t\t\tdouble time = (end-start)/1e9;\n\t\t\t//System.out.printf(\"n = %d, mean: %1.4f, time: %1.4f\\n\",i, ps.mean(),time);\n\t\t}\n\n\t}", "@Test\n public void testGetMeanRate() {\n System.out.println(\"getMeanRate\");\n RateList instance = new RateList();\n Rate r2 = new Rate(4);\n Rate r3 = new Rate(3);\n Rate r4 = new Rate(5);\n instance.registerRate(r2);\n instance.registerRate(r3);\n instance.registerRate(r4);\n double expResult = 4.0;\n double result = instance.getMeanRate();\n assertEquals(expResult, result, 0.0);\n }", "public double mean() {\n\t\treturn StdStats.mean(results); \n\t}", "public void calculate() //default method\n {\n int average;\n average= (a+b+c)/3;\n System.out.println(\"the average of 3 numbers is :\"+average); // printing average\n }", "public static void main (String [] args)\n {\n\tSystem.out.println (getClassName (\"jsim.jrun.BatchMeansAgent103\"));\n\tSystem.out.println (getInstanceID (\"jsim.jrun.BatchMeansAgent103\"));\n\n }", "public HyperExponentialStream (double m, double sd)\n {\n\tsuper();\n\n\tMean = m;\n\tStandardDeviation = sd;\n\n\tdouble cv, z;\n\tcv = StandardDeviation/Mean;\n\tz = cv*cv;\n\tp = 0.5*(1.0-Math.sqrt((z-1.0)/(z+1.0)));\n }", "public StStatutesub() {\n }", "public static void main(String[] args) {\nBeta b=new Beta();\nb.marks();\n\n\n\t}", "public static void main(String[] args) {\nAbs a=new Abs();\r\na.k();\r\na.m();\r\na.n();\r\n\t}", "public Student(int num, double avg) {\n\t\tstuNum = num;\n\t\tgpa = avg;\n\t}", "public MeanVar(double value) {\n\t\taddValue(value);\n\t}", "void aprovarAnalise();", "public static void main(String[] args) {\n Medicine m[]=new Medicine[10];\n double i=Math.random()*3;\n int r=(int)i;\n r=r+1;\n System.out.println(r);\n switch(r)\n {\n \t case 1:m[0]=new Medicine();\n \t m[0].displayLabel();\n m[1]=new Tablet();\n m[1].displayLabel();\n break;\n \n \t case 2:m[2]=new Medicine();\n \t m[2].displayLabel();\n m[3]=new Syrup();\n m[3].displayLabel();\n break;\n \n \t case 3:m[4]=new Medicine();\n \t m[4].displayLabel();\n m[5]=new Ointment();\n m[5].displayLabel();\n }\n\t}", "public double mean(){\n return StdStats.mean(percentage);\n }", "public static void main(String[] args) {\r\n double d = 3.5;\r\n int i = 2;\r\n System.out.println(d/i);\r\n MovingAverage movingAverage = new A0346MovingAveragefromDataStream().new MovingAverage(3);\r\n System.out.println(movingAverage.next(1));\r\n System.out.println(movingAverage.next(10));\r\n System.out.println(movingAverage.next(3));\r\n System.out.println(movingAverage.next(5));\r\n }", "public static void main(String[] args) {\n persegi_panjang pp = new persegi_panjang();\r\n pp.lebar=30;\r\n pp.panjang=50;\r\n Segitiga s = new Segitiga();\r\n s.alas=20;\r\n s.tinggi=40;\r\n Persegi p = new Persegi();\r\n p.sisi=40;\r\n lingkaran l= new lingkaran();\r\n l.jari=20;\r\n \r\npp.luas();\r\npp.keliling();\r\np.luas();\r\np.keliling();\r\ns.luas();\r\ns.keliling();\r\nl.luas();\r\nl.keliling();\r\n}", "public static void main(String[] args) {\n PercolationStats percolationStats = new PercolationStats(2, 10000);\n System.out.println(percolationStats.mean());\n System.out.println(percolationStats.stddev());\n }", "public Pam() { //you dont need anything in this bc its only relvent for the class Alignment \n\n }", "public static void main(String[] args) {\n int list[]={1,2,3,4,5,5,6,7,7,7,8,7};\n int result = new NumberFreq().popular(list);\n //calling class\n System.out.println(result);\n System.out.println(\"Just testing\");\n \n }", "public void showAverage() {\n System.out.println(\"Average: \" + createStream().average());\n }", "public Average(String name) {\n super(name);\n }", "public static void main(String[] args) {\n\t\tnem cpu = new nem();\r\n\t\t//creaye an object of inner class Processor using outer class\r\n\t\tnem.Processor processor = cpu.new Processor();\r\n\t\t//create an object of inner class RAM using outer class Multiarray\r\n\t\t\r\n\t\tnem.RAM ram = cpu.new RAM();\r\n\t\tSystem.out.println(\"\" + processor.getCache());\r\n\t\tSystem.out.println(\"\" + ram.getClockSpeed());\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public Run() {\n setChildClass(AverageProfile.class);\n }", "public double getMean(){\n\t\treturn (double)sampleSize * type1Size / populationSize;\n\t}", "@Override\n\tpublic Object clone() {\n\t\treturn new MeanVar(n, mean, s);\n\t}", "private DiscretePotentialOperations() {\r\n\t}", "void statistics();", "@Override\n\tpublic double avg() {\n\t\treturn total()/4.0;\n\t}", "public static void main(String[] args) {\n\n\t\taggergationtoCalc ag = new aggergationtoCalc();\n\t\tag.aggregation();\n\t\t\n\t\t//calculation c = new calculation();\n\t\t\n\t\t//c.calmethod();\n\t\t\n\t}", "public static void main(String[] args) {\n\n\n Penuim penuim = new Penuim(\"QQ\",3);\n// penuim.introduction();\n penuim.sleep();\n penuim.eat();\n System.out.println(\"QQ age is \"+penuim.getAge());\n penuim.setAge(12);\n System.out.println(\"QQ age is \"+penuim.getAge());\n\n\n }", "public double mean() {\n return StdStats.mean(this.openSites);\n }", "public Quantity<Q> getAverage() {\n return average;\n }", "public SmallStatistic() {\n\n }", "@Override\n\tvoid averageDistance() {\n\t\t\n\t}", "@Override\n public void run() {\n while (P == null) {\n P = (Student[])perdavimas.read();\n }\n System.out.println(P[0].getFaculcy());\n //Rasom duomenis\n for (Student a : P) {\n rasymas.write(a.Average);\n }\n }", "@Test\r\n public void testGetAverage() {\r\n System.out.println(\"getAverage\");\r\n Student instance = new Student();\r\n double expResult = 0.0;\r\n double result = instance.getAverage();\r\n assertEquals(expResult, result, 0.0);\r\n \r\n }", "void total() {\r\n t=m1+m2+m3;\r\n per=t/3;\r\n System.out.println(\"total :\"+t);\r\n System.out.println(\"persentage:\"+per);\r\n \r\n \r\n }", "public static void main(String[] args) {\n\t\t\n\t\tSystem.out.println(\"Access from inside Mexico class \");\n\t\t\n\t\t//System.out.println(us2.mainState);\n\t\t//System.out.println(us2.school); error because it is protected\n\t\t//System.out.println(us2.capitalCity);error because it is private\n\t\t\n\t\t//when USA is default \n\t\t//i can not access USA class\n\t\t//USA us3=new USA();\n\t\t// System.out.println(us3.mainState);\n\t\t\n\t\t\n\t\tMySonMath son=new MySonMath();\n\t\tson.add1();\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tCal c = new Cal();\n\t\tc.setOperands(10, 20, 30);\n\t\tSystem.out.println(c.sum());\n\t\tSystem.out.println(c.avg());\n\t}", "public void createMarkovModel (){\n int sum;\n //System.out.print(\"swag\\n\\n\");\n for (int b =0; b<3;b++){\n sum=0;\n for (int c= 0; c<9;c++){\n sum+=popSsquare.get(b).get(c);\n System.out.print(popSsquare.get(b).get(c)+\"\\t\");\n }\n System.out.println(sum+\"\\n\");\n for (int d=0; d<9;d++){\n markovSModel.get(b).set(d, (double) (popSsquare.get(b).get(d))/sum);\n System.out.print(markovSModel.get(b).get(d)+\"\\t\");\n }\n System.out.println(\"\\n\");\n }\n }", "public abstract double experience();", "private void estadoInicial(){\n double referencias[] = new double[sigmas.length];\n for(int i=0;i<sigmas.length;i++){\n referencias[i] = (ppl.limiteSuperiorR(i+1)+ppl.limiteInferiorR(i+1))/2;\n System.out.printf(\"limS:%g, limI:%g, Referencias[%d] = %g\\n\",ppl.limiteSuperiorR(i+1),ppl.limiteInferiorR(i+1),i,referencias[i]);\n }\n\n double Zc = ppl.Z(referencias[0],referencias[1]);\n TActual = Zc*0.2;\n System.out.printf(\"TActual:T%g \\n\",TActual);\n\n estadoMejor = new Estado(\n iteracionActual, \n TActual, \n referencias,\n Zc);\n\n calcularSoluciones(estadoMejor);\n calcularProbabilidadAceptacion(estadoMejor);\n\n historialEstados.add(estadoMejor);\n }", "void example14() {\n\t\t\n\t\t// original data: a bunch of ints\n\t\t\n\t\tIndexedDataSource<SignedInt32Member> list =\n\t\t\t\tnom.bdezonia.zorbage.storage.Storage.allocate(G.INT32.construct(), 100);\n\t\t\n\t\t// a procedure to transforms ints to doubles\n\t\t\n\t\tProcedure2<SignedInt32Member,Float64Member> intToDblProc =\n\t\t\t\tnew Procedure2<SignedInt32Member, Float64Member>()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void call(SignedInt32Member a, Float64Member b) {\n\t\t\t\tb.setV(a.v());\n\t\t\t}\n\t\t};\n\t\t\t\t\n\t\t// a procedure to transforms doubles to ints\n\t\t\n\t\tProcedure2<Float64Member,SignedInt32Member> dblToIntProc =\n\t\t\t\tnew Procedure2<Float64Member,SignedInt32Member>()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void call(Float64Member a, SignedInt32Member b) {\n\t\t\t\tb.setV((int) a.v());\n\t\t\t}\n\t\t};\n\t\t\n\t\t// the definition of the transformed data source\n\t\t\n\t\tIndexedDataSource<Float64Member> xformer = \n\t\t\t\tnew TransformedDataSource<>(G.INT32, list, intToDblProc, dblToIntProc);\n\n\t\t// now calculate some results. Notice that Mean can't normally be used on\n\t\t// integer data\n\t\t\n\t\t// not possible: Integers do not have the correct type of division operator\n\t\t\n\t\t// SignedInt32Member resI = G.INT32.construct();\n\t\t\n\t\t// Mean.compute(G.INT32, list, resI);\n\t\t\n\t\t// with the transformer we can calc mean\n\n\t\tFloat64Member result = G.DBL.construct();\n\t\t\n\t\tMean.compute(G.DBL, xformer, result);\n\t}", "public KMeans() {\n }", "int getLikelihoodValue();" ]
[ "0.6019883", "0.6010078", "0.6003441", "0.5991346", "0.5983548", "0.5983548", "0.59771734", "0.5948124", "0.59362006", "0.592913", "0.5917523", "0.5895856", "0.5883264", "0.58818924", "0.587349", "0.58701116", "0.5858457", "0.5831754", "0.5787407", "0.57357556", "0.5727158", "0.5725093", "0.57068384", "0.566563", "0.5662591", "0.5618729", "0.558337", "0.55577785", "0.5556265", "0.5518765", "0.5511367", "0.5510648", "0.5507143", "0.5494313", "0.54745257", "0.54602957", "0.5459638", "0.5458608", "0.5455603", "0.54490167", "0.5423596", "0.5417708", "0.5408217", "0.5401299", "0.5391566", "0.53532475", "0.5350101", "0.5323331", "0.53175217", "0.53003585", "0.52939343", "0.5285276", "0.5284035", "0.52805907", "0.5279417", "0.5271205", "0.5266293", "0.5263608", "0.5261008", "0.5258841", "0.52473766", "0.52467513", "0.52358204", "0.52296555", "0.5217632", "0.52133226", "0.52107525", "0.52010745", "0.51938957", "0.5186048", "0.5183279", "0.51810145", "0.51800185", "0.51787317", "0.5171207", "0.51702356", "0.5168708", "0.51676387", "0.51541066", "0.5151539", "0.5145918", "0.51406205", "0.5139688", "0.51385653", "0.5137629", "0.5136869", "0.51367784", "0.51358944", "0.51356983", "0.5132397", "0.5129336", "0.5125748", "0.5124781", "0.51190054", "0.511544", "0.51142615", "0.51114094", "0.5108857", "0.5104131", "0.510162", "0.5101388" ]
0.0
-1
Methods for reading and creating reports on ExpressinExperiments. Reports are typically updated either on demand or after an analysis; and retrieval is usually from the web interface.
public interface ExpressionExperimentReportService { /** * Invalidate the cached 'report' for the experiment with the given id. If it is not cached nothing happens. * * @param id the id of the entity to evict */ void evictFromCache( Long id ); /** * Generate a value object that contain summary information about links, biomaterials, and datavectors * * @param id the id of the ee to generate summary for * @return details VO */ ExpressionExperimentDetailsValueObject generateSummary( Long id ); /** * Generates reports on ALL experiments, including 'private' ones. This should only be run by administrators as it * takes a while to run. */ @Secured({ "GROUP_AGENT" }) Collection<ExpressionExperimentDetailsValueObject> generateSummaryObjects(); void getAnnotationInformation( Collection<ExpressionExperimentDetailsValueObject> vos ); void populateEventInformation( Collection<ExpressionExperimentDetailsValueObject> vos ); /** * Fills in link analysis and differential expression analysis summaries, and other info from the report. * * @param vos value objects */ void populateReportInformation( Collection<ExpressionExperimentDetailsValueObject> vos ); /** * retrieves a collection of cached value objects containing summary information * * @param ids the ids of ees for which the summary objects should be retrieved. * @return a collection of cached value objects */ @SuppressWarnings("unused") // Possible external use Collection<ExpressionExperimentDetailsValueObject> retrieveSummaryObjects( Collection<Long> ids ); /** * Recalculates the batch effect and batch confound information for datasets that have been updated * in the last 24 hours. */ @SuppressWarnings("unused") // Used by scheduler @Secured({ "GROUP_AGENT" }) void recalculateBatchInfo(); /** * Recalculates the batch effect and batch confound information for the given dataset. * @param ee the experiment to recalculate the batch properties for. */ @Secured({ "GROUP_AGENT" }) void recalculateExperimentBatchInfo( ExpressionExperiment ee ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void generateReport()\n\t{\n\t\tlong time=System.currentTimeMillis();\n\t\tString reportPath=System.getProperty(\"user.dir\")+\"//automationReport//Report\"+time+\".html\";\n\t\t\n\t\thtmlreporter=new ExtentHtmlReporter(reportPath);\n\t\textent=new ExtentReports();\n\t\textent.attachReporter(htmlreporter);\n\t\t\n\t\tString username=System.getProperty(\"user.name\");\n\t\tString osname=System.getProperty(\"os.name\");\n\t\tString browsername=CommonFunction.readPropertyFile(\"Browser\");\n\t\tString env=CommonFunction.readPropertyFile(\"Enviornment\");\n\t\t\n\t\t\n\t\textent.setSystemInfo(\"User Name\", username);\n\t\textent.setSystemInfo(\"OS Name\", osname);\n\t\textent.setSystemInfo(\"Browser Name\", browsername);\n\t\textent.setSystemInfo(\"Enviornment\", env);\n\t\t\n\t\t\n\t\thtmlreporter.config().setDocumentTitle(\"Automation Report\");\n\t\thtmlreporter.config().setTheme(Theme.STANDARD);\n\t\thtmlreporter.config().setChartVisibilityOnOpen(true);\n \n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public static ExtentReports extentReportGenerator() \n\t{\n\tString path=System.getProperty(\"user.dir\")+\"\\\\reports\\\\index.html\";\n//\tExtentSparkReporter reporter=new ExtentSparkReporter(path);\n//\t\treporter.config().setEncoding(\"utf-8\");\n//\t\treporter.config().setReportName(\"Automation Test Results\");\n//\t\treporter.config().setDocumentTitle(\"Automation Reports\");\n//\t\treporter.config().setTheme(Theme.STANDARD);\n\t\t\n\t\tExtentHtmlReporter htmlReporter = new ExtentHtmlReporter(path);\t\n\t\thtmlReporter.setAppendExisting(true);\n\t\thtmlReporter.config().setEncoding(\"utf-8\");\n\t\thtmlReporter.config().setDocumentTitle(\"Automation Reports\");\n\t\thtmlReporter.config().setReportName(\"Automation Test Results\");\n\t\thtmlReporter.config().setTheme(Theme.STANDARD);\n\t\tLocale.setDefault(Locale.ENGLISH);\n\t\t\n\t\textent=new ExtentReports();\n\t\textent.attachReporter(htmlReporter);\n\t\textent.setSystemInfo(\"Tester\", \"Sonu\");\n\t\t\n\t\t\n\t\t\n\t\treturn extent;\n\t}", "private void startReport() {\r\n // initialize the HtmlReporter\r\n htmlReporter = new ExtentHtmlReporter(System.getProperty(\"user.dir\")\r\n + jsonConfig.get(\"extentReportPath\") + \"testReport.html\");\r\n\r\n //initialize ExtentReports and attach the HtmlReporter\r\n extent = new ExtentReports();\r\n extent.attachReporter(htmlReporter);\r\n\r\n //To add system or environment info by using the setSystemInfo method.\r\n extent.setSystemInfo(\"OS\", (String) jsonConfig.get(\"osValue\"));\r\n switch ((String) jsonConfig.get(\"browserToBeUsed\")) {\r\n case \"FF\":\r\n extent.setSystemInfo(\"Browser\", \"Firefox\");\r\n break;\r\n case \"CH\":\r\n extent.setSystemInfo(\"Browser\", \"Chrome\");\r\n break;\r\n case \"IE\":\r\n extent.setSystemInfo(\"Browser\", \"Internet Explorer\");\r\n break;\r\n }\r\n\r\n //configuration items to change the look and feel\r\n //add content, manage tests etc\r\n htmlReporter.config().setChartVisibilityOnOpen(true);\r\n htmlReporter.config().setDocumentTitle(\"Test Report\");\r\n htmlReporter.config().setReportName(\"Test Report\");\r\n htmlReporter.config().setTestViewChartLocation(ChartLocation.TOP);\r\n htmlReporter.config().setTheme(Theme.STANDARD);\r\n htmlReporter.config().setTimeStampFormat(\"EEEE, MMMM dd, yyyy, hh:mm a '('zzz')'\");\r\n }", "public static ExtentReports getInstance() {\n\t\t\n\t\tExtentReports extent;\n\t\tString Path=System.getProperty(\"user.dir\")+\"//Reports//report.html\";\n\t\t//String Path = \"//Users//atomar//Desktop//report-demo.html\";\n\t\textent = new ExtentReports(Path, false);\n\t\t\n\n\t\treturn extent;\n\t\n//\t\tDateFormat df = new SimpleDateFormat(\"dd/MM/yy HH:mm:ss\");\n//\t\tDate dateobj = new Date();\n//\t\tString reportname=\"SmokeTest\"+ df.format(dateobj).replaceAll(\" \", \"_\").replaceAll(\"/\", \"_\").replace(\":\", \"_\");\n//\t\t\t\t\n//\t\t\n//\t\tString Path=System.getProperty(\"user.dir\");\n//\t\tPath=Path+\"/Reports\";\n//\t\t Path=Path+\"/\"+reportname+\".html\";\n\t\t \n\t\t//String Path = \"E:\\\\Office\\\\JobSupport\\\\Inkbox_UITestFramework\\\\Inkbox_UITestFramework\\\\Reports\\\\report-demo.html\";\n//\t\textent = new ExtentReports(launchDriver.getReportPath(), false);\n//\t\tSystem.out.println(\"Report path :\"+launchDriver.getReportPath());\n//\n//\t\treturn extent;\n\t}", "@BeforeTest\n\tpublic void startReport() {\n\t\textent = new ExtentReports(System.getProperty(\"user.dir\")+\"//extent-reports//myreport.html\",true);\n\t\textent.addSystemInfo(\"Host Name\", \"LocalHost\");\n\t\textent.addSystemInfo(\"Environment\", \"QA\");\n\t\textent.addSystemInfo(\"User Name\", \"Prasanta\");\n\t\textent.loadConfig(new File(System.getProperty(\"user.dir\")+\"//ReportsConfig.xml\"));\n\t}", "public static void CreateReport() {\n\t\tString fileName = new SimpleDateFormat(\"'Rest_Country_Report_'YYYYMMddHHmm'.html'\").format(new Date());\n\t\tString path = \"Report/\" + fileName;\n\t\treport = new ExtentReports(path);\n\t}", "public synchronized static ExtentReports getReporter(String filePath) {\n\t\t if (report == null) {\r\n\t\t \treport = new ExtentReports(path.concat(\"Report\\\\Purchase_Admin_Report.html\"));\r\n\t\t \r\n\t\t report\r\n\t\t .addSystemInfo(\"Host Name\", \"Priti\") //Environment Setup For Report\r\n\t\t .addSystemInfo(\"Environment\", \"QA\");\r\n\t\t }\r\n\t\t \r\n\t\t return report;\r\n\t\t}", "@Test\r\n\tpublic void extendReports() throws IOException {\n\t\tString File = \"./Reports/report.html\";\r\n\t\tExtentHtmlReporter html = new ExtentHtmlReporter(File);\r\n\t\thtml.setAppendExisting(true);\r\n\t\t//to write on the created html file\r\n\t\tExtentReports extents = new ExtentReports();\r\n\t\textents.attachReporter(html);\r\n\t\t\r\n\t\tExtentTest createAccountTest = extents.createTest(\"TC001\", \"CreateAccount\");\r\n\t\tcreateAccountTest.pass(\"username entered\", MediaEntityBuilder.createScreenCaptureFromPath(\"./../snaps/img1.png\").build());\r\n\t\textents.flush();\r\n\t\t\r\n\r\n\t}", "public static ExtentReports getReportInstance() {\n\t\tif (report == null) {\n\n\t\t\tString reportName = \"HTMLreport_\" + getTimeStamp() + \".html\";\n\t\t\tExtentHtmlReporter htmlReporter = new ExtentHtmlReporter(System.getProperty(\"user.dir\") +\n\t\t\t\t\t\"\\\\src\\\\test\\\\resources\\\\test_result\\\\\" + reportName);\n\t\t\n\t\t\treport = new ExtentReports();\n\t\t\treport.attachReporter(htmlReporter);\n\n\t\t\treport.setSystemInfo(\"OS\", \"Windows 10\");\n\t\t\treport.setSystemInfo(\"Environment\", \"UAT\");\n\t\t\treport.setSystemInfo(\"Browsers\", \"Chrome and Edge\");\n\n\t\t\thtmlReporter.config().setDocumentTitle(\"Identify New Bikes - HTML Report\");\n\t\t\thtmlReporter.config().setReportName(\"UI Test Report\");\n\t\t\thtmlReporter.config().setTimeStampFormat(\"MMM dd, yyyy HH:mm:ss\");\n\t\t}\n\n\t\treturn report;\n\t}", "Report createReport();", "@BeforeTest\n\tpublic void startReport() {\n\t\t// ExtentReports(String filePath,Boolean replaceExisting)\n\t\t// filepath - path of the file, in .htm or .html format - path where your report\n\t\t// needs to generate.\n\t\t// replaceExisting - Setting to overwrite (TRUE) the existing file or append to\n\t\t// it\n\t\t// True (default): the file will be replaced with brand new markup, and all\n\t\t// existing data will be lost. Use this option to create a brand new report\n\t\t// False: existing data will remain, new tests will be appended to the existing\n\t\t// report. If the the supplied path does not exist, a new file will be created.\n\t\textent = new ExtentReports(System.getProperty(\"user.dir\") + \"/test-output/ExtentReport.html\", true);\n\t\t// extent.addSystemInfo(\"Environment\",\"Environment Name\")\n\t\textent.addSystemInfo(\"Host Name\", \"SoftwareTestingMaterial\").addSystemInfo(\"Environment\", \"Automation Testing\")\n\t\t\t\t.addSystemInfo(\"User Name\", \"Rajkumar SM\");\n\t}", "public static ExtentReports createInstance() {\n\n\t\tExtentHtmlReporter htmlReporter = new ExtentHtmlReporter(Constants.EXTENTREPORT_PATH+\"---\"+ScreenShot.timeStamp()+\".html\");\n\t\thtmlReporter.config().setTestViewChartLocation(ChartLocation.BOTTOM);\n\t\thtmlReporter.config().setChartVisibilityOnOpen(true);\n\t\thtmlReporter.config().setTheme(Theme.DARK);\n\t\thtmlReporter.config().setReportName(\"Functional Report\");\n\t\thtmlReporter.config().setEncoding(\"utf-8\");\n\t\thtmlReporter.config().setDocumentTitle(\"AutoMation Report\");\n\n\t\thtmlReporter.config().setTimeStampFormat(\"EEEE, MMMM dd, yyyy, hh:mm a '('zzz')'\");\n\n\t\textent = new ExtentReports();\n\t\textent.attachReporter(htmlReporter);\n\t\textent.setSystemInfo(\"OS\", \"Windows\");\n\t\textent.setSystemInfo(\"AUT\", \"QA\");\n\n\t\treturn extent;\n\t}", "public static void setReport()\n {\n ExtentHtmlReporter htmlReporter = new ExtentHtmlReporter(\"\\\\C:\\\\Users\\\\shir halevi\\\\Desktop\\\\qaexpert\\\\buyMe\\\\reports\\\\extent.html\");\n htmlReporter.setAppendExisting(true);\n extent = new ExtentReports();\n extent.attachReporter(htmlReporter);\n test = extent.createTest(\"BuyMeSanityTestWeb\", \"This is a BuyMe Sanity Test Web\");\n extent.setSystemInfo(\"Tester\", \"Shir\");\n test.log(Status.INFO, \"@Before class\");\n }", "public Report getReport();", "@SuppressWarnings(\"deprecation\")\n\tpublic static ExtentReports getInstance()\n\t{\n\t\tif (Log.extent == null)\n\t\t{\n\t\t\ttry\n\t\t\t{\n//\t\t\t\tString systime = Genericmethod.getTimeStampValue().replace(\":\", \"-\");\n\t\t\t\tLog.extent = new ExtentReports(\"Automation_Report//SLAUTOMATE_Report_Transcripts.html\", false, DisplayOrder.OLDEST_FIRST);\n\t\t\t}\n\t\t\tcatch (Exception e1)\n\t\t\t{\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\ttry\n\t\t\t{\n\t\t\t\tFileInputStream fs;\n\t\t\t\tfs = new FileInputStream(System.getProperty(\"user.dir\")+\"\\\\src\\\\main\\\\java\\\\com\\\\test\\\\automation\\\\uIAutomation\\\\config\\\\config.properties\");\n\t\t\t\tconfig = new Properties();\n\t\t\t\tconfig.load(fs);\n\t\t\t\tString envirment = config.getProperty(\"Environment\");\n\t\t\t\tString release = config.getProperty(\"Release\");\n\t\t\t\tString browserType = config.getProperty(\"BrowserType\");\n\t\t\t\tTimeZone timeZone = TimeZone.getDefault();\n\t\t\t\tString TimeZonename = timeZone.getDisplayName();\n\t\t\t\tString gitBranch = config.getProperty(\"GitBranch\");\n\t\t\t\tString url = config.getProperty(\"TestURL\");\n\t\t\t\t/*String style = \".test { border: 2px solid #00BFFF; }\"\n\t\t\t\t\t\t+ \"body, .test .right span, .collapsible-header { background: #cce5ff; }\"\n\t\t\t\t\t\t+ \".cat-other { border-color: white !important; color: white; }\"\n\t\t\t\t\t\t+ \".panel-lead { font-size:14px }\" + \"nav .right { color: #324259; }\"\n\t\t\t\t\t\t+ \"span.label.info { font-size: 16px; font-weight: 400; padding: 3px 5px; }\";\n\t\t\t\t\n\t\t\t\tLog.extent.config().documentTitle(\"Straighterline Automation Report\").reportName(\"Straighterline\")\n\t\t\t\t\t\t.insertCustomStyles(style).reportHeadline(\"Automation Report\");*/\n\t\t\t\t\n\t\t\t\tLog.extent.addSystemInfo(\"Selenium Version\", \"2.53.1\").addSystemInfo(\"Testing Environment\", envirment)\n\t\t\t\t\t\t.addSystemInfo(\"Release\", release).addSystemInfo(\"Test URL\", url)\n\t\t\t\t\t\t.addSystemInfo(\"TimeZone\", TimeZonename).addSystemInfo(\"Git branch\", gitBranch)\n\t\t\t\t\t\t.addSystemInfo(\"Browser type\", browserType)\n\t\t\t\t\t\t.addSystemInfo(\"User Name\", \"delaPlex\").addSystemInfo(\"Host Name\", \"QMC185-delaPlex\");\n\t\t\t} \n\t\t\tcatch (Exception e) \n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn Log.extent;\n\t}", "public void readAndWrite() throws Exception {\r\n File reportExcelFile = new File(reportFileName);\r\n if (!reportExcelFile.exists()) {\r\n throw new FileNotFoundException(\r\n \"Report Excel file not found in path.\");\r\n }\r\n\r\n File resultExcelFile = new File(resultFileName);\r\n if (!resultExcelFile.exists()) {\r\n throw new FileNotFoundException(\r\n \"Expected Result Excel file not found in path.\");\r\n }\r\n\r\n ReadResultExcelFile.getInstance().preCheckExcelXLSFile(reportExcelFile,\r\n reportFileMapIndex, true);\r\n ReadResultExcelFile.getInstance().preCheckExcelXLSFile(resultExcelFile,\r\n resultFileMapIndex, false);\r\n\r\n ReadResultExcelFile.getInstance().getResultExcelXLSData(\r\n resultExcelFile, resultFileMapIndex);\r\n writeColumnHeader();\r\n ReadResultExcelFile.getInstance().generateExcelFromReportData(\r\n reportExcelFile, resultExcelFile, reportFileMapIndex);\r\n\r\n }", "@GET\n @Path(\"/report\")\n @NotAuthenticated\n public Response getReport() {\n \n try {\n File design = opalRuntime.getFileSystem().getLocalFile(resolveFileInFileSystem(\"/report-templates/\" + name + \".rptdesign\"));\n if(!design.exists()) {\n return Response.status(Status.NOT_FOUND).build();\n }\n File reports = opalRuntime.getFileSystem().getLocalFile(resolveFileInFileSystem(\"/reports/\" + name));\n if(!reports.exists()) {\n if(!reports.mkdirs()) {\n return Response.serverError().build();\n }\n }\n File report = new File(reports, name + \"-\" + System.currentTimeMillis() + \".pdf\");\n reportService.render(\"PDF\", null, design.getAbsolutePath(), report.getAbsolutePath());\n if(report.exists()) {\n return Response.ok().build();\n } else {\n return Response.serverError().build();\n }\n } catch(Exception e) {\n e.printStackTrace();\n return Response.serverError().build();\n }\n }", "public void loadReports() throws EngineException {\n File folder = new File(reportsPath);\n for (String file : Objects.requireNonNull(folder.list())) {\n if (!file.endsWith(\".rptdesign\")) {\n continue;\n }\n\n reports.put(file.replace(\".rptdesign\", \"\"),\n birtEngine.openReportDesign(folder.getAbsolutePath() + File.separator + file));\n\n }\n }", "@BeforeSuite\r\n\t public void setExtent() \r\n\t {\n\t htmlReporter = new ExtentHtmlReporter(System.getProperty(\"user.dir\") + \"/test-output/myReport.html\");\r\n\r\n\t htmlReporter.config().setDocumentTitle(\"Automation Report\");\t // Tile of report\r\n\t htmlReporter.config().setReportName(\"REIMBURSIFY ANDROID\"); // Name of the report\r\n\t htmlReporter.config().setReportName(\"Regression Testing\"); // Name of the report\r\n\r\n\t htmlReporter.config().setTheme(Theme.STANDARD);\r\n\t \r\n\t extent = new ExtentReports();\r\n\t extent.attachReporter(htmlReporter);\r\n\t \r\n\t // Passing General information\r\n\t extent.setSystemInfo(\"Host name\", \"Reim Demo Runner\");\r\n\t extent.setSystemInfo(\"Environemnt\", \"QA\");\r\n\t// extent.setSystemInfo(\"User\", \"Sharmila\");\r\n\t extent.setSystemInfo(\"iOS\", \"13.6\");\r\n\t extent.setSystemInfo(\"Application Version\", \"QA Version 3.3.15\");\r\n\t extent.setSystemInfo(\"Type of Testing\", \"E2E Test\");\r\n\t }", "public void generateReport(List<XmlSuite> xmlSuites, List<ISuite>suites, \r\n\t\tString outputDirectory){//creating a method that takes three arguments,\r\n\t//to generate a report, arguments list requirements, \r\n\t//using a mechanism called List, which gets the array input\r\n\t//script will go back to xml suites, and look for \"suites\" which are the classes we created\r\n\t//we will create an xml file to contain all the classes within our test cases\r\n\t//PASS, FAIL, or SKIP will be string outputs; String outputDirectory\r\n\t//XML Suite: big time testing based on testing type\r\n\t//ISuite: pages we are working on; classes created to perform action; under test folder\r\n\t\r\n\textent = new ExtentReports(outputDirectory + File.separator\r\n\t\t\t+ \"Extent.html\", true);\r\n\t//creating an object for extent report, creating a virtual object to save all output to save all results\r\n\t//as a string, file seperator is not needed, it doesn't matter how u received the result\r\n\t//seperate them and consolidate the results\r\n\t//telling you how to save the file name, html is easy to open on any device and lightweight\r\n\t//outputDirectory: SKIP, PASS, FAIL\r\n\t//the reason for boolean option: if yu receive results, generate report//if yu dont then dont generate\r\n\tfor(ISuite suite : suites){//for loop is created\r\n\t\t//map obtains a key value, not duplicate, and then maps it to one location, which is the\r\n\t\t//extent report\r\n\t\t//an interface in java, between key value and location (between status and extent report)\r\n\t\t//will make sure how to map and seperate results under each class\r\n\t\tMap<String, ISuiteResult>result = suite.getResults();\r\n\t\r\n\tfor(ISuiteResult r : result.values()){\r\n\t\tITestContext context =r.getTestContext();//for each of the classes, create log status\r\n\t\t//test context: script that we are running, results from it\r\n\t\t//: is a conditional operator, which lists the conditions, which lists out the conditions\r\n\t\t//script should be able to run \r\n\t\t//one suite, or multiple suites in one shot\r\n\t\t//making context\r\n\t\t\r\n\t\t\r\n\t\tbuildTestNo(context.getPassedTests(), LogStatus.PASS);\r\n\t\tbuildTestNo(context.getFailedTests(), LogStatus.FAIL);\r\n\t\t//retrieving status using results/context\r\n\t\tbuildTestNo(context.getSkippedTests(), LogStatus.SKIP);\r\n\t\t\t\r\n\t}\r\n}\r\nextent.flush();//take results and place on html file\r\nextent.close();\r\n\r\n}", "public nl.webservices.www.soap.InsolvencyReport[] getReports() {\n return reports;\n }", "public void initData() throws IOException {\n\t\textent.loadConfig(new File(extentReportFile));\n\t\tchromedriverPath = driverData.getPropertyValue(\"chromeDriverPath\");\n\t\tfirefoxdriverPath = driverData.getPropertyValue(\"geckoDriverPath\");\n\t\tchromedriverKey = driverData.getPropertyValue(\"chromeDriverKey\");\n\t\tfirefoxdriverKey = driverData.getPropertyValue(\"geckoDriverKey\");\n\t\tapplicationUrl = testData.getPropertyValue(\"applicationURL\");\n\t\tapplicationPassword = testData.getPropertyValue(\"applicationPassword\");\n\t\tscreenShotPath = testData.getPropertyValue(\"screenshotPath\");\n\t\tdateFormat = testData.getPropertyValue(\"dateFormat\");\n\t}", "@BeforeTest\n\tpublic void StartReportbeforeTest() {\n\t\textent = new ExtentReports(System.getProperty(\"user.dir\") + \"/test-output/casestudy_Reports.html\", true);\n\t\textent.addSystemInfo(\"Host Name\", \"TestMeApp\");\n\t\textent.addSystemInfo(\"Environment\", \"Selenium Testing\");\n\t\textent.addSystemInfo(\"User Name\", \"Group-1\");\n\n\t\tdriver = UtilityClass.getDriver(\"chrome\");\n\t\tdriver.manage().window().maximize();\n\t\tdriver.get(\"http://10.232.237.143:443/TestMeApp\");\n\n\t}", "@BeforeTest\n\tpublic void config() {\n\t\tString path=System.getProperty(\"user.dir\")+\"\\\\reports\\\\index.html\"; //after + we want new path to add to it\n\t\tExtentSparkReporter reporter=new ExtentSparkReporter(path);// this is responsible for creating report\n\t\treporter.config().setReportName(\"Web Automation Akhil\");\n\t\treporter.config().setDocumentTitle(\"Test Results\");\n\t\t\n\t\tExtentReports extent=new ExtentReports();// this is main class for Tracking the things.\n\t\textent.attachReporter(reporter); // Here is link of config with main class\n\t\textent.setSystemInfo(\"Tester\", \"Akhilesh Rawat\");\n\t}", "private void generateReports() {\r\n\t\tLOGGER.debug(\"Report generation trigerred\");\r\n\t\tgenerateIncomingReport();\r\n\t\tgenerateOutgoingReport();\r\n\t\tgenerateIncomingRankingReport();\r\n\t\tgenerateOutgoingRankingReport();\r\n\t\tLOGGER.debug(\"Report generation completed\");\r\n\t}", "@Parameters({ \"report_name\" })\n\t@BeforeSuite\n\tpublic void setUp() {\n\t\tString reportName = \"Report-\" + getCurrentDateNTime(\"yyyy-MM-dd-HH-mm-ss\");\n\t\t//String reportFileName = reportName + \".html\";\n\t\tString reportFileName = \"TestExecutionReport.html\";\n\t\treports = new ExtentReports(\"./ExecutionReport/\" + reportFileName, true);\n\t\treports.loadConfig(new File(\"extent-config.xml\"));\n\t}", "public void getReportManually() {\n File reportDir = new File(KOOM.getInstance().getReportDir());\n for (File report : reportDir.listFiles()) {\n //Upload the report or do something else.\n }\n }", "public void ExtentRepoter() {\n\t\treporter = new ExtentHtmlReporter(\"./Reports/learn_automation1.html\");\n\n\t}", "public static IReport createReport(InputStream in) throws ArfException {\r\n \treturn new Report(Report.getAssetReportCollection(in));\r\n }", "public UserOuterClass.ExperimentInfo getExperiments(int index) {\n if (experimentsBuilder_ == null) {\n return experiments_.get(index);\n } else {\n return experimentsBuilder_.getMessage(index);\n }\n }", "void createReport(Report report);", "public void setReports(nl.webservices.www.soap.InsolvencyReport[] reports) {\n this.reports = reports;\n }", "UserOuterClass.ExperimentInfo getExperiments(int index);", "public List<ReportDTO> getAllReports() {\r\n\r\n\t\tdateConverter = new DateConverter();\r\n\r\n\t\tList<Report> reports = (List<Report>) reportsRepository.findAll();\r\n\t\tList<ReportDTO> reportDTOs = new ArrayList<>();\r\n\r\n\t\tfor (Report report : reports) {\r\n\t\t\tReportDTO reportDTO = new ReportDTO();\r\n\t\t\treportDTO.setId(report.getId());\r\n\t\t\treportDTO.setCustomerName(report.getCustomer().getCustomerName());\r\n\t\t\treportDTO.setPlace(report.getPlace());\r\n\t\t\treportDTO.setOrderNumber(report.getOrderNumber());\r\n\t\t\treportDTO.setQualityLevel(report.getQualityLevel().getValue());\r\n\t\t\treportDTO.setTypeOfTesting(report.getTypeOfTesting());\r\n\t\t\treportDTO.setReportNumber(report.getReportNumber());\r\n\t\t\treportDTO.setExaminatedObject(report.getExaminatedObject());\r\n\t\t\treportDTO.setMeasuringEquipment(\r\n\t\t\t\t\treport.getMeasuringEquipment().getName() + \" \" + report.getMeasuringEquipment().getDeviceCode());\r\n\t\t\treportDTO.setTechnicalDocument(\r\n\t\t\t\t\treport.getTechnicalDocument().getNumber() + \" \" + report.getTechnicalDocument().getTitle());\r\n\r\n\t\t\treportDTO.setExaminationDate(dateConverter.createDateToString(report.getExaminationDate()));\r\n\t\t\treportDTO.setPerformer(report.getPerformer().getFirstName() + \" \" + report.getPerformer().getLastName());\r\n\t\t\treportDTO.setAprover(report.getPerformer().getFirstName() + \" \" + report.getPerformer().getLastName());\r\n\r\n\t\t\tList<ResultsOfExamination> resultsOfExaminations = resultsOfExaminationRepository.findByReport(report);\r\n\t\t\tList<ResultOfExaminationDTO> resultOfExaminationDTOs = new ArrayList<>();\r\n\r\n\t\t\tfor (ResultsOfExamination resultsOfExamination : resultsOfExaminations) {\r\n\t\t\t\tResultOfExaminationDTO resultOfExaminationDTO = new ResultOfExaminationDTO();\r\n\t\t\t\tresultOfExaminationDTO.setElementNumber(resultsOfExamination.getElementNumber());\r\n\t\t\t\tresultOfExaminationDTO\r\n\t\t\t\t\t\t.setDistanceFromReferencePoint(resultsOfExamination.getDistanceFromReferencePoint());\r\n\t\t\t\tresultOfExaminationDTO.setIndicationLength(resultsOfExamination.getIndicationLength());\r\n\t\t\t\tresultOfExaminationDTO.setImperfectionSymbol(resultsOfExamination.getImperfectionSymbol());\r\n\t\t\t\tresultOfExaminationDTO.setRemarks(resultsOfExamination.getRemarks());\r\n\t\t\t\tresultOfExaminationDTO.setResult(resultsOfExamination.getResult());\r\n\t\t\t\tresultOfExaminationDTOs.add(resultOfExaminationDTO);\r\n\t\t\t\treportDTO.setResultsOfExaminationtsList(resultOfExaminationDTOs);\r\n\t\t\t}\r\n\r\n\t\t\treportDTOs.add(reportDTO);\r\n\r\n\t\t}\r\n\t\treturn reportDTOs;\r\n\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\thtmlReporter = new ExtentHtmlReporter(\"C:\\\\Users\\\\Suresh Mylam\\\\eclipse-workspace\\\\TestNG_Listners\\\\Reports\\\\TestReport.html\");\r\n\t\textent = new ExtentReports();\r\n\t\textent.attachReporter(htmlReporter);\r\n\t\ttest= extent.createTest(\"TEst123\");\r\n\t\ttest.pass(\"pass\");\r\n\t\ttest.fail(\"fail\");\r\n\t\ttest.info(\"info\");\r\n\t\textent.flush();\r\n\t\tSystem.out.println(\"Done\");\r\n\r\n\t}", "abstract ImmutableMap<String, ReportFiles> reports();", "public void onStart(ITestContext testContext) {\n\t\tString timeStamp = LocalDateTime.now().format(DateTimeFormatter.ofPattern(\"yyyy_MM_dd_HH_mm_ss\"));\n\t\tString reportName= \"NetBanking_Report_\"+timeStamp+\".html\";\n\t\textent = new ExtentReports();\n\t\tspark = new ExtentSparkReporter(\"./test-output/\"+reportName);\n\t\ttry {\n\t\t\tspark.loadXMLConfig(\"./extent-config.xml\");\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\textent.attachReporter(spark);\n\t\textent.setSystemInfo(\"Host name\", \"localHost\");\n\t\textent.setSystemInfo(\"Environment\", \"QA\");\n\t\textent.setSystemInfo(\"user\", \"Ashis\");\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public abstract void getReport(java.io.Writer writer);", "@java.lang.Override\n public UserOuterClass.ExperimentInfo getExperiments(int index) {\n return experiments_.get(index);\n }", "@BeforeClass\r\n\tpublic void initiate()\r\n\t{\r\n\t\treporter = new ExtentHtmlReporter(\"./Reports/TestReport.html\");\r\n\t\textent = new ExtentReports();\r\n\t\textent.attachReporter(reporter);\r\n\t}", "public static void generateReport() {\n PrintImpl printer = new PrintImpl(realtorLogImpl, propertyLogImpl);\n printer.generateReport(REQUESTS_FILE);\n }", "@Nested\n public final JDependReports getReports() {\n return reports;\n }", "com.google.cloud.osconfig.v1alpha.VulnerabilityReport getVulnerabilityReports(int index);", "public abstract void parseReport();", "public void showReport() throws FileNotFoundException{\n String reportName = \"configuration_site\";\n String reportDefFileName=\"report/defination\"+File.separator+reportName+\".jasper\";\n \n try {\n \t\n \t//Get a stream to read the file\n // InputStream is = new FileInputStream(reportDefFileName);\n \n //Fill the report with parameter, connection and the stream reader \n JasperPrint jp = JasperFillManager.fillReport(reportDefFileName, null, conn);\n \n //Viewer for JasperReport\n JRViewer jv = new JRViewer(jp);\n \n //Insert viewer to a JFrame to make it showable\n JFrame jf = new JFrame();\n jf.getContentPane().add(jv);\n jf.validate();\n jf.setVisible(true);\n jf.setSize(new Dimension(800,600));\n jf.setLocation(300,100);\n jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n } catch (JRException ex) {\n ex.printStackTrace();\n }\n }", "public String[] getReports()\n {\n return null;\n }", "@Test\n public void testWizardReport() {\n testReporterConfig(Reporter.ALL_2017_4_24, \"WizardReport.txt\");\n }", "@AfterClass\n\t/* Executa a leitura das configuracoes do extends report */\n\tpublic static void writeExtentReport() {\n\t\tReporter.loadXMLConfig(new File(\"src/test/resources/configs/extension-config.xml\"));\n\t\t\n\t\t/* Informa qual o sistema foi utilizado para efetuar os testes */\n\t\tReporter.setSystemInfo(\"OS\", \"Windows10\");\n\t\t\n\t\t/* Informa o nome do analista no relatorio */\n\t\tReporter.setSystemInfo(\"Tester Name\", \"Wilker\");\n\t\t\n\t}", "@Override\n public void generateReport(final List<XmlSuite> xmlSuites,\n final List<ISuite> suites, final String outputDirectory) {\n try {\n for (ISuite suite : suites) {\n html = new HtmlCanvas();\n html.html().head();\n\n writeCss();\n html.title().content(\"Fedora API Test Suite Report\")._head()\n .body();\n html.h1().content(\"Fedora API Test Suite Summary\");\n\n html.h2().content(\"for \" + TestParameters.get().getImplementationName() + \" \" +\n TestParameters.get().getImplementationVersion());\n\n // Getting the results for the said suite\n final Map<String, ISuiteResult> suiteResults = suite.getResults();\n final ISuiteResult suiteResult = suiteResults.get(\"Fedora API Specification Tests\");\n\n if (suiteResult == null) {\n throw new RuntimeException(\"Unable to find expected test-suite: \" +\n \"'Fedora API Specification Tests', configured in the <suite> tag of 'testng.xml'!\");\n }\n\n final ITestContext tc = suiteResult.getTestContext();\n passedTests = tc.getPassedTests();\n failedTests = tc.getFailedTests();\n skippedTests = tc.getSkippedTests();\n\n // Display results summary\n displayResultsSummary();\n\n //Display methods summary\n makeMethodSummaryTable();\n\n // Add footer\n displayFooter();\n\n // send html to a file\n createWriter(html.toHtml());\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public GenerateReport() {\n initComponents();\n displayLogs();\n }", "public void displayReport() {\n\t\treport = new ReportFrame(fitnessProg);\n\t\treport.buildReport();\n\t\treport.setVisible(true);\n\t}", "public void clearReports()\n {\n reports.clear();\n }", "public Report(Employee employee, int numberOfReports){\n this.employee=employee;\n this.numberOfReports=numberOfReports;\n }", "boolean generateReport();", "protected abstract JRAbstractExporter<?, ?, ?, ?> createExporter(JasperReportsConfiguration jContext, JRExportProgressMonitor monitor, File file);", "public static void main(String[] args) {\n Module module = ActivatorToolBox.simpleLink(new BaseDBActivator(),\n new ConfigurationActivator(),\n new StandaloneModeActivator(),\n new ModuleHealActivator(),\n new StateServiceActivator(),\n new ChartBaseActivator(),\n new SchedulerActivator(),\n new ReportBaseActivator(),\n new RestrictionActivator(),\n new ReportActivator(),\n new WriteActivator());\n SimpleWork.supply(CommonOperator.class, new CommonOperatorImpl());\n String envpath = \"//Applications//FineReport10_325//webapps//webroot//WEB-INF\";\n SimpleWork.checkIn(envpath);\n I18nResource.getInstance();\n module.start();\n\n\n ResultWorkBook rworkbook = null;\n try {\n // read the workbook\n TemplateWorkBook workbook = TemplateWorkBookIO.readTemplateWorkBook(\"//doc//Primary//Parameter//Parameter.cpt\");\n // get the parameters and set value\n Parameter[] parameters = workbook.getParameters();\n parameters[0].setValue(\"华东\");\n // define a parameter map to execute the workbook\n java.util.Map parameterMap = new java.util.HashMap();\n for (int i = 0; i < parameters.length; i++) {\n parameterMap.put(parameters[i].getName(), parameters[i]\n .getValue());\n }\n\n FileOutputStream outputStream;\n\n // unaltered export to xls\n outputStream = new FileOutputStream(new File(\"//Users//susie//Downloads//ExcelExport.xls\"));\n ExcelExporter excel = new ExcelExporter();\n excel.setVersion(true);\n excel.export(outputStream, workbook.execute(parameterMap,new WriteActor()));\n\n // unaltered export to xlsx\n outputStream = new FileOutputStream(new File(\"//Users//susie//Downloads//ExcelExport.xlsx\"));\n StreamExcel2007Exporter excel1 = new StreamExcel2007Exporter();\n excel.export(outputStream, workbook.execute(parameterMap,new WriteActor()));\n\n // full page export to xls\n outputStream = new FileOutputStream(new File(\"//Users//susie//Downloads//PageExcelExport.xls\"));\n PageExcelExporter page = new PageExcelExporter(ReportUtils.getPaperSettingListFromWorkBook(workbook.execute(parameterMap,new WriteActor())));\n page.setVersion(true);\n page.export(outputStream, workbook.execute(parameterMap,new WriteActor()));\n\n // full page export to xlsx\n outputStream = new FileOutputStream(new File(\"//Users//susie//Downloads//PageExcelExport.xlsx\"));\n PageExcel2007Exporter page1 = new PageExcel2007Exporter(ReportUtils.getPaperSettingListFromWorkBook(rworkbook));\n page1.export(outputStream, workbook.execute(parameterMap,new WriteActor()));\n\n // page to sheet export to xls\n outputStream = new FileOutputStream(new File(\"//Users//susie//Downloads//PageSheetExcelExport.xls\"));\n PageToSheetExcelExporter sheet = new PageToSheetExcelExporter(ReportUtils.getPaperSettingListFromWorkBook(workbook.execute(parameterMap,new WriteActor())));\n sheet.setVersion(true);\n sheet.export(outputStream, workbook.execute(parameterMap,new WriteActor()));\n\n // page to sheet export to xlsx\n outputStream = new FileOutputStream(new File(\"//Users//susie//Downloads//PageSheetExcelExport.xlsx\"));\n PageToSheetExcel2007Exporter sheet1 = new PageToSheetExcel2007Exporter(ReportUtils.getPaperSettingListFromWorkBook(rworkbook));\n sheet1.export(outputStream, workbook.execute(parameterMap,new WriteActor()));\n\n // Large data volume export to xls\n outputStream = new FileOutputStream(new File(\"//Users//susie//Downloads//LargeExcelExport.zip\"));\n LargeDataPageExcelExporter large = new LargeDataPageExcelExporter(ReportUtils.getPaperSettingListFromWorkBook(workbook.execute(parameterMap,new WriteActor())), true);\n\n // Large data volume export to xlsx\n // outputStream = new FileOutputStream(new File(\"//Users//susie//Downloads//LargeExcelExport.xlsx\"));\n // LargeDataPageExcel2007Exporter large = new LargeDataPageExcel2007Exporter(ReportUtils.getPaperSettingListFromWorkBook(rworkbook), true);\n large.export(outputStream, workbook.execute(parameterMap,new WriteActor()));\n\n outputStream.close();\n module.stop();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void clearReports()\n\t{\n\t\treports.clear();\n\t}", "public void experimentAndPlotter(){\n\t\tLearningAgentFactory qLearningFactory = new LearningAgentFactory() {\n\n\t\t\tpublic String getAgentName() {\n\t\t\t\treturn \"LR = 1\";\n\t\t\t}\n\n\n\t\t\tpublic LearningAgent generateAgent() {\n\t\t\t\treturn new QLearning(domain, 0.99, hashingFactory, 0., 1.);\n\t\t\t}\n\t\t};\n\n\t\tLearningAgentFactory qLearningFactory2 = new LearningAgentFactory() {\n\n\t\t\tpublic String getAgentName() {\n\t\t\t\treturn \"LR = 0.5\";\n\t\t\t}\n\n\n\t\t\tpublic LearningAgent generateAgent() {\n\t\t\t\treturn new QLearning(domain, 0.99, hashingFactory, 0., 0.5);\n\t\t\t}\n\t\t};\n\n\n\t\tLearningAlgorithmExperimenter exp = new LearningAlgorithmExperimenter(\n\t\t\tenv, 10, 50, qLearningFactory, qLearningFactory2);\n\t\texp.setUpPlottingConfiguration(500, 250, 2, 1000,\n\t\t\t\tTrialMode.MOST_RECENT_AND_AVERAGE,\n\t\t\t\tPerformanceMetric.STEPS_PER_EPISODE,\n\t\t\t\tPerformanceMetric.AVERAGE_EPISODE_REWARD);\n\n\t\texp.startExperiment();\n\t\texp.writeStepAndEpisodeDataToCSV(\"expData\");\n\n\t}", "public String generalReport() throws Exception{\r\n\t\tForm16MisReportModel model = new Form16MisReportModel();\r\n\t\tmodel.initiate(context, session);\r\n\t\tmodel.generateReport(request, response, bulkForm16);\r\n\t\tmodel.terminate();\r\n\t\treturn null;\r\n\t}", "public MarkupDocument getReport ()\n\t{\n\t\tif (markupDocument == null)\n\t\t\tinterprete ();\n\t\treturn markupDocument;\n\t}", "public static void runReport(HttpServletRequest request,HttpServletResponse response)throws IOException{\n\n\t\tAsePool connectionPool = null;\n\n\t\tConnection conn = null;\n\n\t\tString reportUser = null;\n\n\t\tString sql = null;\n\n\t\tboolean debug = false;\n\n\t\tAseUtil aseUtil = null;\n\n\t\tWebSite website = null;\n\n\t\ttry{\n\t\t\taseUtil = new AseUtil();\n\n\t\t\tHttpSession session = request.getSession(true);\n\n\t\t\treportUser = Encrypter.decrypter((String)session.getAttribute(\"aseUserName\"));\n\n\t\t\tint i = 0;\n\t\t\tint j = 0;\n\n\t\t\tString junk = \"\";\n\n\t\t\t// step 0\n\t\t\tconnectionPool = AsePool.getInstance();\n\t\t\tconn = connectionPool.getConnection();\n\n\t\t\twebsite = new WebSite();\n\t\t\tString campus = website.getRequestParameter(request,\"c\",\"\");\t\t// parm1\n\t\t\tString alpha = website.getRequestParameter(request,\"a\",\"\");\t\t\t// parm2\n\t\t\tString num = website.getRequestParameter(request,\"n\",\"\");\t\t\t// parm3\n\t\t\tString type = website.getRequestParameter(request,\"t\",\"\");\t\t\t// parm4\n\t\t\tString user = website.getRequestParameter(request,\"u\",\"\");\t\t\t// parm5\n\t\t\tString historyid = website.getRequestParameter(request,\"h\",\"\");\t// parm6\n\t\t\tint route = website.getRequestParameter(request,\"r\",0);\t\t\t\t// parm7\n\t\t\tString p8 = website.getRequestParameter(request,\"p8\",\"\");\t\t\t// any value\n\t\t\tString p9 = website.getRequestParameter(request,\"p9\",\"\");\t\t\t// any value\n\n\t\t\tif (campus == null || campus.length() == 0)\n\t\t\t\tcampus = Encrypter.decrypter((String)session.getAttribute(\"aseCampus\"));\n\n\t\t\tif (user == null || user.length() == 0)\n\t\t\t\tuser = Encrypter.decrypter((String)session.getAttribute(\"aseUserName\"));\n\n\t\t\tString campusName = CampusDB.getCampusNameOkina(conn,campus);\n\n\t\t\tString reportFolder = aseUtil.getReportFolder();\n\t\t\tString outputFolder = aseUtil.getReportOutputFolder(campus +\"/\");\n\n\t\t\tString logoFile = aseUtil.getCampusLogo(campus);\n\t\t\tString reportFileName = outputFolder + user + \".pdf\";\n\n\t\t\tString reportType = \"generic\";\n\t\t\tString reportTitle = \"\";\n\t\t\tString colsWidth = \"\";\n\t\t\tString headerColumns = \"\";\n\t\t\tString dataColumns = \"\";\n\n\t\t\tString where = \"\";\n\t\t\tString order = \"\";\n\t\t\tString grouping = null;\n\t\t\tString savedGrouping = null;\n\t\t\tString groupedValue = null;\n\t\t\tString footer = null;\n\t\t\tString reportSubTitle = null;\n\n\t\t\tString sWhere = \"\";\n\n\t\t\tString parm1 = \"\";\t\t// campus or FORUM src\n\t\t\tString parm2 = \"\";\t\t// alpha or FORUM status\n\t\t\tString parm3 = \"\";\t\t// num\n\t\t\tString parm4 = \"\";\t\t// type\n\t\t\tString parm5 = \"\";\t\t// user\n\t\t\tString parm6 = \"\";\t\t//\thistoryid\n\t\t\tString parm7 = \"\";\t\t//\troute\n\t\t\tString parm8 = \"\";\t\t//\n\t\t\tString parm9 = \"\";\t\t//\n\n\t\t\tint psIndex = 0;\n\n\t\t\tString aseReport = (String)session.getAttribute(\"aseReport\");\n\n\t\t\tif (aseReport != null && aseReport.length() > 0){\n\n\t\t\t\tResourceBundle reportBundle = ResourceBundle.getBundle(\"ase.central.reports.\" + aseReport);\n\t\t\t\tif (reportBundle != null){\n\n\t\t\t\t\tBundleDB bundle = new BundleDB();\n\n\t\t\t\t\treportType = bundle.getBundle(reportBundle,\"reportType\",\"\");\n\t\t\t\t\treportTitle = bundle.getBundle(reportBundle,\"reportTitle\",\"\");\n\t\t\t\t\tcolsWidth = bundle.getBundle(reportBundle,\"colsWidth\",\"\");\n\t\t\t\t\theaderColumns = bundle.getBundle(reportBundle,\"headerColumns\",\"\");\n\t\t\t\t\tdataColumns = bundle.getBundle(reportBundle,\"dataColumns\",\"\");\n\t\t\t\t\tsql = bundle.getBundle(reportBundle,\"sql\",\"\");\n\t\t\t\t\tgrouping = bundle.getBundle(reportBundle,\"grouping\",\"\");\n\t\t\t\t\tfooter = bundle.getBundle(reportBundle,\"footer\",\"\");\n\t\t\t\t\treportSubTitle = bundle.getBundle(reportBundle,\"reportSubTitle\",\"\");\n\n\t\t\t\t\twhere = bundle.getBundle(reportBundle,\"where\",\"\");\n\t\t\t\t\tif (where != null && where.length() > 0){\n\t\t\t\t\t\twhere = where.replace(\"_EQUALS_\",\"=\");\n\t\t\t\t\t}\n\n\t\t\t\t\torder = bundle.getBundle(reportBundle,\"order\",\"\");\n\t\t\t\t\tparm1 = bundle.getBundle(reportBundle,\"parm1\",\"\");\t// campus, src\n\t\t\t\t\tparm2 = bundle.getBundle(reportBundle,\"parm2\",\"\");\t// alpha\n\t\t\t\t\tparm3 = bundle.getBundle(reportBundle,\"parm3\",\"\");\t// num\n\t\t\t\t\tparm4 = bundle.getBundle(reportBundle,\"parm4\",\"\");\t// type\n\t\t\t\t\tparm5 = bundle.getBundle(reportBundle,\"parm5\",\"\");\t// userid\n\t\t\t\t\tparm6 = bundle.getBundle(reportBundle,\"parm6\",\"\");\t// history\n\t\t\t\t\tparm7 = bundle.getBundle(reportBundle,\"parm7\",\"\");\t// route\n\t\t\t\t\tparm8 = bundle.getBundle(reportBundle,\"parm8\",\"\");\n\t\t\t\t\tparm9 = bundle.getBundle(reportBundle,\"parm9\",\"\"); // any single value\n\n\t\t\t\t\tbundle = null;\n\n\t\t\t\t} // reportBundle\n\n\t\t\t\tif (reportTitle != null && colsWidth != null && headerColumns != null && dataColumns != null && sql != null){\n\t\t\t\t\tPdfPTable table = null;\n\t\t\t\t\tPhrase phrase = null;\n\t\t\t\t\tPdfPCell cell = null;\n\n\t\t\t\t\tBaseColor campusColor = null;\n\n\t\t\t\t\tString[] aColsWidth = colsWidth.split(\",\");\n\t\t\t\t\tString[] aDataColumns = dataColumns.split(\",\");\n\n\t\t\t\t\t// define colum width\n\t\t\t\t\tint columns = aDataColumns.length;\n\n\t\t\t\t\tfloat[] fColsWidth = new float[aDataColumns.length];\n\n\t\t\t\t\tfor(i=0; i<columns; i++){\n\t\t\t\t\t\tfColsWidth[i] = Float.valueOf(aColsWidth[i]).floatValue();\n\t\t\t\t\t}\n\n\t\t\t\t\t//---------------------------------------------------\n\t\t\t\t\t// define campus color; for grouping, use a different color\n\t\t\t\t\t//---------------------------------------------------\n\t\t\t\t\tif (reportType.equals(Constant.FORUM)){\n\t\t\t\t\t\tcampusColor = (BaseColor)campusColorMap.get(Constant.CAMPUS_TTG);\n\t\t\t\t\t}\n\t\t\t\t\telse if (reportType.equals(\"ApprovalRouting\")){\n\t\t\t\t\t\tcampusColor = (BaseColor)campusColorMap.get(Constant.CAMPUS_TTG);\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tif (campus != null && campus.length() > 0 && campusColorMap.containsKey(campus))\n\t\t\t\t\t\t\tcampusColor = (BaseColor)campusColorMap.get(campus);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (campusColor == null)\n\t\t\t\t\t\tcampusColor = BaseColor.LIGHT_GRAY;\n\n\t\t\t\t\t// step 1 of 5\n\t\t\t\t\tDocument document = new Document(PageSize.LETTER.rotate());\n\n\t\t\t\t\t// step 2 of 5\n\t\t\t\t\tPdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(reportFileName));\n\t\t\t\t\tTableHeader event = new TableHeader();\n\t\t\t\t\twriter.setPageEvent(event);\n\t\t\t\t\twriter.setPageEvent(new Watermark(\"Curriculum Central\"));\n\n\t\t\t\t\tint leading = 18;\n\n\t\t\t\t\t// step 3 of 5\n\t\t\t\t\tdocument.open();\n\t\t\t\t\tdocument.newPage();\n\n\t\t\t\t\t// create table with user column count\n\t\t\t\t\ttable = new PdfPTable(fColsWidth);\n\t\t\t\t\ttable.setWidthPercentage(100f);\n\t\t\t\t\ttable.setHorizontalAlignment(Element.ALIGN_LEFT);\n\t\t\t\t\ttable.getDefaultCell().setBorder(PdfPCell.NO_BORDER);\n\t\t\t\t\ttable.getDefaultCell().setUseAscender(true);\n\t\t\t\t\ttable.getDefaultCell().setUseDescender(true);\n\n\t\t\t\t\t//---------------------------------------------------\n\t\t\t\t\t//formulate sql statement\n\t\t\t\t\t//---------------------------------------------------\n\t\t\t\t\tif (reportType.equals(Constant.FORUM)){\n\t\t\t\t\t\tparm1 = website.getRequestParameter(request,\"src\",\"\");\n\t\t\t\t\t\tif (parm1 != null && parm1.length() > 0){\n\t\t\t\t\t\t\tsWhere = \" src=? \";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tparm2 = website.getRequestParameter(request,\"status\",\"\");\n\t\t\t\t\t\tif (parm2 != null && parm2.length() > 0){\n\t\t\t\t\t\t\tif (sWhere.length() > 0)\n\t\t\t\t\t\t\t\tsWhere += \" AND \";\n\n\t\t\t\t\t\t\tsWhere += \" status=? \";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if (reportType.equals(\"ApprovalRouting\")){\n\t\t\t\t\t\tif (parm1 != null && parm1.length() > 0 && campus != null && campus.length() > 0){\n\t\t\t\t\t\t\tif (sWhere.length() > 0)\n\t\t\t\t\t\t\t\tsWhere += \" AND \";\n\n\t\t\t\t\t\t\tsWhere += \" c.campus=? \";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (parm7 != null && parm7.length() > 0 && (route > 0 || route == -999)){\n\t\t\t\t\t\t\tif (sWhere.length() > 0)\n\t\t\t\t\t\t\t\tsWhere += \" AND \";\n\n\t\t\t\t\t\t\tif (route == -999)\n\t\t\t\t\t\t\t\tsWhere += \" c.route>? \";\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tsWhere += \" c.route=? \";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if (reportType.equals(\"SystemSettings\")){\n\t\t\t\t\t\tif (parm1 != null && parm1.length() > 0 && campus != null && campus.length() > 0){\n\t\t\t\t\t\t\tif (sWhere.length() > 0)\n\t\t\t\t\t\t\t\tsWhere += \" AND \";\n\n\t\t\t\t\t\t\tsWhere += \" campus=? \";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (parm9 != null && parm9.length() > 0){\n\t\t\t\t\t\t\tif (sWhere.length() > 0)\n\t\t\t\t\t\t\t\tsWhere += \" AND \";\n\n\t\t\t\t\t\t\tsWhere += \" \" + parm9 + \"=? \";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tif (parm1 != null && parm1.length() > 0 && campus != null && campus.length() > 0){\n\t\t\t\t\t\t\tsWhere = \" campus=? \";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (parm2 != null && parm2.length() > 0 && alpha != null && alpha.length() > 0){\n\t\t\t\t\t\t\tif (sWhere.length() > 0)\n\t\t\t\t\t\t\t\tsWhere += \" AND \";\n\n\t\t\t\t\t\t\tsWhere += \" alpha=? \";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (parm3 != null && parm3.length() > 0 && num != null && num.length() > 0){\n\t\t\t\t\t\t\tif (sWhere.length() > 0)\n\t\t\t\t\t\t\t\tsWhere += \" AND \";\n\n\t\t\t\t\t\t\tsWhere += \" num=? \";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (parm4 != null && parm4.length() > 0 && type != null && type.length() > 0){\n\t\t\t\t\t\t\tif (sWhere.length() > 0)\n\t\t\t\t\t\t\t\tsWhere += \" AND \";\n\n\t\t\t\t\t\t\tsWhere += \" type=? \";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (parm5 != null && parm5.length() > 0 && user != null && user.length() > 0){\n\t\t\t\t\t\t\tif (sWhere.length() > 0)\n\t\t\t\t\t\t\t\tsWhere += \" AND \";\n\n\t\t\t\t\t\t\tsWhere += \" userid=? \";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (parm6 != null && parm6.length() > 0 && historyid != null && historyid.length() > 0){\n\t\t\t\t\t\t\tif (sWhere.length() > 0)\n\t\t\t\t\t\t\t\tsWhere += \" AND \";\n\n\t\t\t\t\t\t\tsWhere += \" historyid=? \";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (parm7 != null && parm7.length() > 0 && route > 0){\n\t\t\t\t\t\t\tif (sWhere.length() > 0)\n\t\t\t\t\t\t\t\tsWhere += \" AND \";\n\n\t\t\t\t\t\t\tsWhere += \" route=? \";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} // reportType\n\n\t\t\t\t\t//---------------------------------------------------\n\t\t\t\t\t// final formulation of SQL\n\t\t\t\t\t//---------------------------------------------------\n\t\t\t\t\tif (where.length()==0 && sWhere.length()>0)\n\t\t\t\t\t\twhere = \" WHERE \" + sWhere;\n\t\t\t\t\telse{\n\t\t\t\t\t\twhere = \" WHERE \" + where;\n\n\t\t\t\t\t\tif (sWhere.length()>0)\n\t\t\t\t\t\t\twhere += \" AND \" + sWhere;\n\t\t\t\t\t}\n\n\t\t\t\t\t// prevent empty where\n\t\t\t\t\tif (where.trim().toUpperCase().equals(\"WHERE\"))\n\t\t\t\t\t\twhere = \"\";\n\n\t\t\t\t\tif (order.length() > 0)\n\t\t\t\t\t\torder = \" ORDER BY \" + order;\n\n\t\t\t\t\t// prevent empty order\n\t\t\t\t\tif (order.trim().toUpperCase().equals(\"ORDER BY\"))\n\t\t\t\t\t\torder = \"\";\n\n\t\t\t\t\tsql = sql + where + order;\n\n\t\t\t\t\tdebug = false;\n\n\t\t\t\t\tif (debug){\n\t\t\t\t\t\tlogger.info(\"campus: \" + campus);\n\t\t\t\t\t\tlogger.info(\"alpha: \" + alpha);\n\t\t\t\t\t\tlogger.info(\"num: \" + num);\n\t\t\t\t\t\tlogger.info(\"type: \" + type);\n\t\t\t\t\t\tlogger.info(\"user: \" + user);\n\t\t\t\t\t\tlogger.info(\"historyid: \" + historyid);\n\t\t\t\t\t\tlogger.info(\"route: \" + route);\n\t\t\t\t\t\tlogger.info(\"p8: \" + p8);\n\t\t\t\t\t\tlogger.info(\"p9: \" + p9);\n\t\t\t\t\t\tlogger.info(\"reportFolder: \" + reportFolder);\n\t\t\t\t\t\tlogger.info(\"logoFile: \" + logoFile);\n\t\t\t\t\t\tlogger.info(\"reportFileName: \" + reportFileName);\n\t\t\t\t\t\tlogger.info(\"reportType: \" + reportType);\n\t\t\t\t\t\tlogger.info(\"reportTitle: \" + reportTitle);\n\t\t\t\t\t\tlogger.info(\"colsWidth: \" + reportTitle);\n\t\t\t\t\t\tlogger.info(\"headerColumns: \" + headerColumns);\n\t\t\t\t\t\tlogger.info(\"dataColumns: \" + dataColumns);\n\t\t\t\t\t\tlogger.info(\"grouping: \" + grouping);\n\t\t\t\t\t\tlogger.info(\"footer: \" + footer);\n\t\t\t\t\t\tlogger.info(\"reportSubTitle: \" + reportSubTitle);\n\t\t\t\t\t\tlogger.info(\"order: \" + order);\n\t\t\t\t\t\tlogger.info(\"parm1: \" + parm1);\n\t\t\t\t\t\tlogger.info(\"parm2: \" + parm2);\n\t\t\t\t\t\tlogger.info(\"parm3: \" + parm3);\n\t\t\t\t\t\tlogger.info(\"parm4: \" + parm4);\n\t\t\t\t\t\tlogger.info(\"parm5: \" + parm5);\n\t\t\t\t\t\tlogger.info(\"parm6: \" + parm6);\n\t\t\t\t\t\tlogger.info(\"parm7: \" + parm7);\n\t\t\t\t\t\tlogger.info(\"parm8: \" + parm8);\n\t\t\t\t\t\tlogger.info(\"parm9: \" + parm9);\n\t\t\t\t\t\tlogger.info(\"aseReport: \" + aseReport);\n\t\t\t\t\t\tlogger.info(\"sql: \" + sql);\n\t\t\t\t\t}\n\n\t\t\t\t\t//---------------------------------------------------\n\t\t\t\t\t// Add the first header row (step 4 of 5)\n\t\t\t\t\t//---------------------------------------------------\n\t\t\t\t\tFont f = new Font();\n\n\t\t\t\t\tdrawTitleRow(table,reportTitle,campusColor,f,BaseColor.WHITE,columns,Element.ALIGN_CENTER);\n\n\t\t\t\t\t//---------------------------------------------------\n\t\t\t\t\t// customized subtitles\n\t\t\t\t\t//---------------------------------------------------\n\t\t\t\t\tif (reportType.equals(Constant.FORUM)){\n\t\t\t\t\t\treportSubTitle = parm1 + \" Report\";\n\t\t\t\t\t}\n\t\t\t\t\telse if (reportType.equals(\"ApprovalRouting\")){\n\t\t\t\t\t\tif (route == -999)\n\t\t\t\t\t\t\treportSubTitle = \"Approval Routing\";\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\treportSubTitle = \"Approval Routing - \" + ApproverDB.getRoutingFullNameByID(conn,campus,route);\n\t\t\t\t\t}\n\t\t\t\t\telse if (reportType.equals(\"SystemSettings\")){\n\t\t\t\t\t\treportSubTitle = \"System Settings - \" + p9;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (reportSubTitle != null && reportSubTitle.length() > 0){\n\t\t\t\t\t\tdrawTitleRow(table,reportSubTitle,campusColor,f,BaseColor.WHITE,columns,Element.ALIGN_CENTER);\n\t\t\t\t\t}\n\n\t\t\t\t\t//---------------------------------------------------\n\t\t\t\t\t// table header\n\t\t\t\t\t//---------------------------------------------------\n\t\t\t\t\tdrawHeaderRow(table,campusColor,columns,headerColumns,f);\n\n\t\t\t\t\ttable.getDefaultCell().setBackgroundColor(null);\n\n\t\t\t\t\ttable.setHeaderRows(2);\n\n\t\t\t\t\t//---------------------------------------------------\n\t\t\t\t\t// get the data\n\t\t\t\t\t//---------------------------------------------------\n\t\t\t\t\tPreparedStatement ps = conn.prepareStatement(sql);\n\n\t\t\t\t\tif (reportType.equals(Constant.FORUM)){\n\t\t\t\t\t\tif (parm1 != null && parm1.length() > 0)\n\t\t\t\t\t\t\tps.setString(1,parm1);\n\n\t\t\t\t\t\tif (parm2 != null && parm2.length() > 0)\n\t\t\t\t\t\t\tps.setString(2,parm2);\n\t\t\t\t\t}\n\t\t\t\t\telse if (reportType.equals(\"ApprovalRouting\")){\n\t\t\t\t\t\tif (parm1 != null && parm1.length() > 0 && campus != null && campus.length() > 0)\n\t\t\t\t\t\t\tps.setString(++psIndex,campus);\n\n\t\t\t\t\t\tif (parm7 != null && parm7.length() > 0 && (route > 0 || route == -999)){\n\t\t\t\t\t\t\tif (route == -999)\n\t\t\t\t\t\t\t\tps.setInt(++psIndex,0);\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tps.setInt(++psIndex,route);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if (reportType.equals(\"SystemSettings\")){\n\t\t\t\t\t\tif (parm1 != null && parm1.length() > 0 && campus != null && campus.length() > 0)\n\t\t\t\t\t\t\tps.setString(++psIndex,campus);\n\n\t\t\t\t\t\tif (p9 != null && p9.length() > 0)\n\t\t\t\t\t\t\tps.setString(++psIndex,p9);\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tif (parm1 != null && parm1.length() > 0 && campus != null && campus.length() > 0)\n\t\t\t\t\t\t\tps.setString(++psIndex,campus);\n\n\t\t\t\t\t\tif (parm2 != null && parm2.length() > 0 && alpha != null && alpha.length() > 0)\n\t\t\t\t\t\t\tps.setString(++psIndex,alpha);\n\n\t\t\t\t\t\tif (parm3 != null && parm3.length() > 0 && num != null && num.length() > 0)\n\t\t\t\t\t\t\tps.setString(++psIndex,num);\n\n\t\t\t\t\t\tif (parm4 != null && parm4.length() > 0 && type != null && type.length() > 0)\n\t\t\t\t\t\t\tps.setString(++psIndex,type);\n\n\t\t\t\t\t\tif (parm5 != null && parm5.length() > 0 && user != null && user.length() > 0)\n\t\t\t\t\t\t\tps.setString(++psIndex,user);\n\n\t\t\t\t\t\tif (parm6 != null && parm6.length() > 0 && historyid != null && historyid.length() > 0)\n\t\t\t\t\t\t\tps.setString(++psIndex,historyid);\n\n\t\t\t\t\t\tif (parm7 != null && parm7.length() > 0 && route > 0)\n\t\t\t\t\t\t\tps.setInt(++psIndex,route);\n\n\t\t\t\t\t} // reportType\n\n\t\t\t\t\tResultSet rs = ps.executeQuery();\n\t\t\t\t\twhile(rs.next()){\n\n\t\t\t\t\t\tevent.setHeader(reportTitle,campusName,user);\n\n\t\t\t\t\t\tif (grouping != null && grouping.length() > 0){\n\t\t\t\t\t\t\tgroupedValue = AseUtil.nullToBlank(rs.getString(grouping));\n\t\t\t\t\t\t\tif (savedGrouping == null || !savedGrouping.equals(groupedValue)){\n\t\t\t\t\t\t\t\tsavedGrouping = groupedValue;\n\t\t\t\t\t\t\t\tdrawTitleRow(table,\n\t\t\t\t\t\t\t\t\t\t\t\tsavedGrouping.toUpperCase(),\n\t\t\t\t\t\t\t\t\t\t\t\tcampusColor,\n\t\t\t\t\t\t\t\t\t\t\t\tf,\n\t\t\t\t\t\t\t\t\t\t\t\tBaseColor.BLACK,\n\t\t\t\t\t\t\t\t\t\t\t\tcolumns,\n\t\t\t\t\t\t\t\t\t\t\t\tElement.ALIGN_LEFT);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} // grouping\n\n\t\t\t\t\t\tif (j % 2 == 0)\n\t\t\t\t\t\t\ttable.getDefaultCell().setBackgroundColor(ASE_ODD_ROW_COLOR);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\ttable.getDefaultCell().setBackgroundColor(ASE_EVEN_ROW_COLOR);\n\n\t\t\t\t\t\tfor (i=0;i<columns;i++){\n\n\t\t\t\t\t\t\tif (!aDataColumns[i].equals(Constant.BLANK)){\n\t\t\t\t\t\t\t\tif (aDataColumns[i].indexOf(\"date\") > -1){\n\t\t\t\t\t\t\t\t\tjunk = aseUtil.ASE_FormatDateTime(rs.getString(aDataColumns[i]),Constant.DATE_DATE_MDY);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\tjunk = aseUtil.nullToBlank(rs.getString(aDataColumns[i]));\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\tjunk = \"\";\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tjunk = junk.replace(\"<p>\",\"\")\n\t\t\t\t\t\t\t\t\t\t.replace(\"</p>\",\"\\n\")\n\t\t\t\t\t\t\t\t\t\t.replace(\"<br>\",\"\\n\")\n\t\t\t\t\t\t\t\t\t\t.replace(\"<br/>\",\"\\n\")\n\t\t\t\t\t\t\t\t\t\t.replace(\"<br />\",\"\\n\")\n\t\t\t\t\t\t\t\t\t\t.replace(\"&nbsp;\",\" \")\n\t\t\t\t\t\t\t\t\t\t;\n\n\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t//phrase = new Phrase();\n\t\t\t\t\t\t\t\t//phrase.add(createPhrase(junk,false));\n\n\t\t\t\t\t\t\t\t//OR\n\n\t\t\t\t\t\t\t\t// this version cuts does not parse html\n\t\t\t\t\t\t\t\tphrase = new Phrase(leading, new Chunk(junk, FontFactory.getFont(FontFactory.TIMES_ROMAN, dataFontSize, Font.NORMAL, BaseColor.BLACK)));\n\t\t\t\t\t\t\t\tcell = new PdfPCell(phrase);\n\n\t\t\t\t\t\t\t\t// OR\n\n\t\t\t\t\t\t\t\t// this version is having problems with a stylesheet or font message\n\t\t\t\t\t\t\t\t//cell = new PdfPCell(processElement(junk, DATACOLOR, Font.NORMAL));\n\n\t\t\t\t\t\t\t\t// OR\n\n\t\t\t\t\t\t\t\t// this version is having problems with a stylesheet or font message.\n\t\t\t\t\t\t\t\t// also cuts off multiline data\n\t\t\t\t\t\t\t\t//cell = processElement(junk);\n\n\t\t\t\t\t\t\t\tcell.setFixedHeight(20);\n\t\t\t\t\t\t\t\tcell.setPaddingRight(10);\n\t\t\t\t\t\t\t\ttable.addCell(cell);\n\t\t\t\t\t\t\t} catch(IllegalArgumentException e){\n\t\t\t\t\t\t\t\tlogger.fatal(\"ReportGeneric - runReport 1: \" + e.toString());\n\t\t\t\t\t\t\t} catch(Exception e){\n\t\t\t\t\t\t\t\tlogger.fatal(\"ReportGeneric - runReport 2: \" + e.toString());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t++j;\n\t\t\t\t\t} // while\n\n\t\t\t\t\tif (j==0){\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\tphrase = new Phrase();\n\t\t\t\t\t\t\tphrase.add(createPhrase(\"no date found for requested report\",false));\n\t\t\t\t\t\t\tcell = new PdfPCell(phrase);\n\t\t\t\t\t\t\tcell.setFixedHeight(20);\n\t\t\t\t\t\t\tcell.setPaddingRight(10);\n\t\t\t\t\t\t\tcell.setColspan(columns);\n\t\t\t\t\t\t\ttable.addCell(cell);\n\t\t\t\t\t\t} catch(IllegalArgumentException e){\n\t\t\t\t\t\t\tlogger.fatal(\"ReportGeneric - runReport 1: \" + e.toString());\n\t\t\t\t\t\t} catch(Exception e){\n\t\t\t\t\t\t\tlogger.fatal(\"ReportGeneric - runReport 2: \" + e.toString());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tdocument.add(table);\n\n\t\t\t\t\t// footer\n\t\t\t\t\tif (reportType.equals(Constant.FORUM)){\n\n\t\t\t\t\t\tList list = new List();\n\n\t\t\t\t\t\tjunk = \"CLOSED - tickets combined with another item because of similarity in the work that is needed, or the work that is no longer necessary.\";\n\t\t\t\t\t\tphrase = new Phrase(leading, new Chunk(junk, FontFactory.getFont(FontFactory.TIMES_ROMAN, dataFontSize, Font.NORMAL, BaseColor.BLACK)));\n\t\t\t\t\t\tlist.add(new ListItem(phrase));\n\n\t\t\t\t\t\tjunk = \"COMPLETED - this status is set after development has been completed, and user confirms that CC is working as expected.\";\n\t\t\t\t\t\tphrase = new Phrase(leading, new Chunk(junk, FontFactory.getFont(FontFactory.TIMES_ROMAN, dataFontSize, Font.NORMAL, BaseColor.BLACK)));\n\t\t\t\t\t\tlist.add(new ListItem(phrase));\n\n\t\t\t\t\t\tjunk = \"MONITORING - either a problem cannot be recreated or a fix was implemented without a way to recreate the problem.\";\n\t\t\t\t\t\tphrase = new Phrase(leading, new Chunk(junk, FontFactory.getFont(FontFactory.TIMES_ROMAN, dataFontSize, Font.NORMAL, BaseColor.BLACK)));\n\t\t\t\t\t\tlist.add(new ListItem(phrase));\n\n\t\t\t\t\t\tjunk = \"REQUIREMENTS - an enhancement or bug fix requiring additional specification prior to development.\";\n\t\t\t\t\t\tphrase = new Phrase(leading, new Chunk(junk, FontFactory.getFont(FontFactory.TIMES_ROMAN, dataFontSize, Font.NORMAL, BaseColor.BLACK)));\n\t\t\t\t\t\tlist.add(new ListItem(phrase));\n\n\t\t\t\t\t\tjunk = \"RESEARCH - the development team is unclear of the reported ticket or requset and requires time to better understand what has taken place and possible recommendation for the user.\";\n\t\t\t\t\t\tphrase = new Phrase(leading, new Chunk(junk, FontFactory.getFont(FontFactory.TIMES_ROMAN, dataFontSize, Font.NORMAL, BaseColor.BLACK)));\n\t\t\t\t\t\tlist.add(new ListItem(phrase));\n\n\t\t\t\t\t\tjunk = \"REVIEW - items the development team required additional time to understand.\";\n\t\t\t\t\t\tphrase = new Phrase(leading, new Chunk(junk, FontFactory.getFont(FontFactory.TIMES_ROMAN, dataFontSize, Font.NORMAL, BaseColor.BLACK)));\n\t\t\t\t\t\tlist.add(new ListItem(phrase));\n\n\t\t\t\t\t\tjunk = \"UAT - user acceptance testing (UAT) is the process where user(s) confirms that a fix or enhancement was completed as requested. If all goes well, the work is moved to production; otherwise, the work goes back for more requirements.\";\n\t\t\t\t\t\tphrase = new Phrase(leading, new Chunk(junk, FontFactory.getFont(FontFactory.TIMES_ROMAN, dataFontSize, Font.NORMAL, BaseColor.BLACK)));\n\t\t\t\t\t\tlist.add(new ListItem(phrase));\n\n\t\t\t\t\t\tdocument.add(list);\n\n\t\t\t\t\t}\n\n\t\t\t\t\t// step 5 of 5\n\t\t\t\t\tdocument.close();\n\n\t\t\t\t\t// with report ready, open in browser\n\t\t\t\t\twritePDF(request,response,reportFileName);\n\n\t\t\t\t} // not null report fields\n\n\t\t\t} // aseReport\n\n\t\t} catch(SQLException ex){\n\t\t\tlogger.fatal(\"ReportGeneric - runReport 3: \" + ex.toString());\n\t\t} catch(IllegalArgumentException ex){\n\t\t\tlogger.fatal(\"ReportGeneric - runReport - 4: \" + ex.toString());\n\t\t} catch(Exception ex){\n\t\t\tlogger.fatal(\"ReportGeneric - runReport 5: \" + ex.toString());\n\t\t} finally {\n\t\t\tconnectionPool.freeConnection(conn,\"ReportGeneric\",reportUser);\n\n\t\t\ttry{\n\t\t\t\tif (conn != null){\n\t\t\t\t\tconn.close();\n\t\t\t\t\tconn = null;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(Exception e){\n\t\t\t\tlogger.fatal(\"Tables: campusOutlines - \" + e.toString());\n\t\t\t}\n\n\t\t\taseUtil = null;\n\t\t\twebsite = null;\n\t\t}\n\t}", "@BeforeSuite\n public void setUp() {\n htmlReporter = new ExtentHtmlReporter(\"Reports.html\");\n // create ExtentReports and attach reporter(s)\n extent = new ExtentReports();\n extent.attachReporter(htmlReporter);\n }", "@Override\n\tpublic List<String> installReport(String interTye, AppDisRecomReq req,\n\t\t\tAppDisResponse resp) throws AppDisException {\n\t\treturn null;\n\t}", "@Override\n\tpublic List<String> installReport(String interTye, AppDisRecomReq req,\n\t\t\tAppDisResponse resp) throws AppDisException {\n\t\treturn null;\n\t}", "@RequestMapping(method = RequestMethod.GET, value = \"/getReports\")\r\n public List<Reports> getReports() {\r\n\r\n List<Reports> results = reportsRepository.getReportsByDate();\r\n return results;\r\n\r\n }", "void populateReportInformation( Collection<ExpressionExperimentDetailsValueObject> vos );", "public void registerReports() throws Exception{\n \tGenericPatientSummary ps = new GenericPatientSummary();\n \tps.delete();\n \tps.setup();\n }", "public ArrayList<ArrayList<Double>> getReportsFromServer(LocalDate date)\n {\n\t //Go to DB and ask for reports of a specific date\n\t return null;\n }", "@BeforeSuite(alwaysRun=true,description=\"test\")\r\n\tpublic void extentReportSetup() \r\n\t{\r\n\t\tSystem.out.println(\"===== I am Befor Test Method==== \");\r\n\t\t\r\n\t\thtmlReporter = new ExtentHtmlReporter(reporterPath);\r\n\t\thtmlReporter.config().setDocumentTitle(\"Free Job Portal\");\r\n\t\thtmlReporter.config().setReportName(\"ExtentReporter\");\r\n\t\thtmlReporter.config().setTheme(Theme.STANDARD);\r\n\t\t\r\n\t\treporter = new ExtentReports();\r\n\t\treporter.attachReporter(htmlReporter);\r\n\t\t\r\n\t\treporter.setSystemInfo(\"Host\",\"localhost\");\r\n\t\treporter.setSystemInfo(\"OS\",System.getProperty(\"OS\"));\r\n\t\treporter.setSystemInfo(\"User\",\"Sekhar\");\r\n\t}", "public void runReport(String sReportFile)\n {\n }", "public Collection<Experiment> getExperiments();", "public void summaryReport() {\r\n\r\n\t\tString strTimeStamp = new SimpleDateFormat(\"yyyy-MM-dd-HH-mm-ss\").format(new Date());\r\n\t\tString reportPath = new File(\"Report\").getAbsolutePath();\r\n\t\tint stepPassed = 0;\r\n\t\tint stepFailed = 0;\r\n\t\tString cssData = \"\";\r\n\r\n\t\ttry {\r\n\t\t\tString cssPath = new File(\"Report\\\\Style\\\\style.css\").getAbsolutePath();\r\n\t\t\tbufferedReader = new BufferedReader(new FileReader(cssPath));\r\n\r\n\t\t\tStringBuilder stringBuilder = new StringBuilder();\r\n\t\t\tString line = bufferedReader.readLine();\r\n\t\t\twhile (line != null) {\r\n\t\t\t\tstringBuilder.append(line);\r\n\t\t\t\tstringBuilder.append(System.lineSeparator());\r\n\t\t\t\tline = bufferedReader.readLine();\r\n\t\t\t}\r\n\t\t\tcssData = stringBuilder.toString();\r\n\t\t} catch (Exception ex) {\r\n\t\t\tLog.error(\"Exception occure in reading file\" + ex.getMessage());\r\n\t\t\tex.printStackTrace();\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tbufferedReader.close();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tLog.error(\"Exception occure in reading file\");\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\tFile HTMLDir = new File(reportPath + \"\\\\HTMLReport\");\r\n\t\tif (!HTMLDir.exists()) {\r\n\t\t\ttry {\r\n\t\t\t\tHTMLDir.mkdir();\r\n\t\t\t} catch (SecurityException ex) {\r\n\t\t\t\tLog.error(\"Error in creating HTMLReport directory\" + ex.getMessage());\r\n\t\t\t\t// log.error(\"Error in creating Detail directory\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tString htmlname = HTMLDir + \"\\\\\" + strTimeStamp + \".html\";\r\n\t\tString logoPath = new File(\"Report\\\\Style\\\\logo.png\").getAbsolutePath();\r\n\t\tfor (ReportBean reportValue : GlobalVariables.getReportList()) {\r\n\t\t\tif (reportValue.getStatus().equalsIgnoreCase(\"Failed\")) {\r\n\t\t\t\tstepFailed++;\r\n\t\t\t} else if (reportValue.getStatus().equalsIgnoreCase(\"Passed\")) {\r\n\t\t\t\tstepPassed++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tstrBufferReportAppend = new StringBuffer();\r\n\t\ttry {\r\n\t\t\tbufferedWriter = new BufferedWriter(new FileWriter(htmlname));\r\n\t\t} catch (IOException e) {\r\n\t\t\tLog.error(\"Error in wrinting the file\" + e.getMessage());\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tstrBufferReportAppend.append(\r\n\t\t\t\t\"<html><head><script type=\\\"text/javascript\\\" src=\\\"https://www.gstatic.com/charts/loader.js\\\"></script>\");\r\n\t\tstrBufferReportAppend.append(\"<script src=\\\"https://www.google.com/jsapi\\\"></script>\");\r\n\t\tstrBufferReportAppend.append(\"<style>\" + cssData);\r\n\t\tstrBufferReportAppend.append(\"</style>\");\r\n\t\tstrBufferReportAppend.append(\"</head><body>\");\r\n\t\tstrBufferReportAppend.append(\"<table class=\\\"width100\\\">\");\r\n\t\tstrBufferReportAppend.append(\"<tr><td>\");\r\n\t\tstrBufferReportAppend.append(\"<table class=\\\"width100\\\">\");\r\n\t\tstrBufferReportAppend.append(\"<tr><td><img src=file:\\\\\\\\\" + logoPath + \"></td>\" + \"<td class=\\\"headertext\\\">\"\r\n\t\t\t\t+ reportHeader + \"</td>\");\r\n\r\n\t\tstrBufferReportAppend.append(\"</tr></table><hr></hr>\");\r\n\t\tstrBufferReportAppend.append(\"</td></tr>\");\r\n\t\tstrBufferReportAppend.append(\"<tr><td>\");\r\n\t\tstrBufferReportAppend.append(\"<table class=\\\"width100\\\">\");\r\n\t\tstrBufferReportAppend.append(\"<tr><td class=\\\"width50\\\">\");\r\n\t\tstrBufferReportAppend.append(\"<table cellpadding=3 cellspacing=1>\");\r\n\t\tstrBufferReportAppend\r\n\t\t.append(\"<tr><td class=\\\"width50 bold\\\">Execution Start Time</td><td class=\\\"width50 bold\\\">\"\r\n\t\t\t\t+ GlobalVariables.getStrStartTime() + \"</td></tr>\");\r\n\t\tstrBufferReportAppend\r\n\t\t.append(\"<tr><td class=\\\"width50 bold\\\">Execution End Time</td><td class=\\\"width50 bold\\\">\"\r\n\t\t\t\t+ GlobalVariables.getStrEndTime() + \"</td></tr>\");\r\n\t\tstrBufferReportAppend\r\n\t\t\t\t.append(\"<tr><td class=\\\"width50 bold\\\">Total TestSteps Executed</td><td class=\\\"width50 bold\\\">\"\r\n\t\t\t\t\t\t+ (stepFailed + stepPassed) + \"</td></tr>\");\r\n\t\tstrBufferReportAppend.append(\r\n\t\t\t\t\"<tr><td class=\\\"width50 green\\\">Passed</td><td class=\\\"width50 green\\\">\" + stepPassed + \"</td></tr>\");\r\n\t\tstrBufferReportAppend.append(\r\n\t\t\t\t\"<tr><td class=\\\"width50 red\\\">Failed</td><td class=\\\"width50 red\\\">\" + stepFailed + \"</td></tr>\");\r\n\t\tstrBufferReportAppend.append(\"</table></td>\");\r\n\t\tstrBufferReportAppend.append(\"<td class=\\\"width50\\\">\");\r\n\t\tstrBufferReportAppend.append(\"<table>\");\r\n\t\tstrBufferReportAppend.append(\"<tr><td class=\\\"width25\\\">\");\r\n\t\tstrBufferReportAppend.append(\"</td>\");\r\n\t\tstrBufferReportAppend.append(\"<td class=\\\"width25\\\">\");\r\n\t\tstrBufferReportAppend.append(\"<script type=\\\"text/javascript\\\">\");\r\n\t\tstrBufferReportAppend.append(\"google.charts.load('current', {'packages':['corechart']});\");\r\n\t\tstrBufferReportAppend.append(\"google.charts.setOnLoadCallback(drawDetailsChart);\");\r\n\t\tstrBufferReportAppend.append(\"function drawDetailsChart() {\");\r\n\t\tstrBufferReportAppend.append(\"var data = new google.visualization.DataTable();\");\r\n\t\tstrBufferReportAppend.append(\"data.addColumn('string', 'Test Execution Detail Graph');\");\r\n\t\tstrBufferReportAppend.append(\"data.addColumn('number', 'Count');\");\r\n\t\tstrBufferReportAppend.append(\"data.addRows([\");\r\n\t\tstrBufferReportAppend.append(\"['Passed',\" + stepPassed + \"],\");\r\n\t\tstrBufferReportAppend.append(\"['Failed',\" + stepFailed + \"]]);\");\r\n\t\tstrBufferReportAppend\r\n\t\t\t\t.append(\"var options = {'title':'Test Step Details Graph',colors: ['#12C909', '#C3100A'],pieHole: 0.3,\");\r\n\t\tstrBufferReportAppend.append(\"'width':300,\");\r\n\t\tstrBufferReportAppend.append(\"'height':170};\");\r\n\t\tstrBufferReportAppend\r\n\t\t\t\t.append(\"var chart = new google.visualization.PieChart(document.getElementById('detailsChart_div'));\");\r\n\t\tstrBufferReportAppend.append(\"chart.draw(data, options); } </script>\");\r\n\t\tstrBufferReportAppend.append(\"<div id=\\\"detailsChart_div\\\"></div>\");\r\n\t\tstrBufferReportAppend.append(\"</td></tr></table>\");\r\n\t\tstrBufferReportAppend.append(\"</td></tr></table><hr></hr></td></tr>\");\r\n\t}", "@JsonIgnore\n @Override\n public List<Experiment> getExperiments()\n {\n if (getFetchOptions() != null && getFetchOptions().hasExperiments())\n {\n return experiments;\n }\n else\n {\n throw new NotFetchedException(\"Experiments have not been fetched.\");\n }\n }", "private void initExcelReport() {\n DocumentItem documentItem = new DocumentItem(\"Source Node ID\", \"File Name\", \"Target Destination Folder\", \"Target Node ID\", null, \"Target Node Status\", \"Message\", null, null);\n ExcelUtil.addMigrationRow(jobParameters.getMigrationReport(), \"Date Time\", \"Source Node Status\", \"Source Destination Folder\", documentItem);\n ExcelUtil.addErrorRow(jobParameters.getErrorReport(), \"Date Time\", \"Source Node Status\", \"Source Destination Folder\", documentItem);\n }", "@RequestMapping(value = \"/report\", method = RequestMethod.POST)\n\t@ResponseBody\n\tString getReport(HttpServletRequest request, HttpServletResponse response) {\n\n\t\t// Get the Logged in User\n\t\tString name = getLoggedUser();\n\n\t\tString email = request.getParameter(\"email\");\n\t\tRetrieveItems ri = new RetrieveItems(env);\n\t\tList<WorkItem> theList = ri.getItemsDataSQLReport(name);\n\t\tWriteExcel writeExcel = new WriteExcel();\n\t\tSendMessages sm = new SendMessages(env);\n\t\tjava.io.InputStream is = writeExcel.exportExcel(theList);\n\n\t\ttry {\n\t\t\tsm.sendReport(is, email);\n\t\t}catch (IOException e) {\n\t\t\te.getStackTrace();\n\t\t}\n\t\treturn \"Report is created\";\n\t}", "public HashMap<String, String> getReports(){\n HashMap<String, String> reports = new HashMap<>();\n reports.put(KEY_REPORTS, pref.getString(KEY_REPORTS, null));\n return reports;\n }", "public interface ReportService {\n /**\n * Some constants using in reports\n */\n String[] dashboardSheetNames = {\"Level And Quantity\", \"Level And Trainers\", \"Training And Quantity\"};\n String[] levelAndQuantityColumns = {\"Level\", \"Course Name\", \"Group Name\"};\n String[] levelAndTrainersColumns = {\"Trainer\", \"Course Name and Level\"};\n String[] trainingAndQuantityColumns = {\"Course Name\", \"Group Name\", \"Amount of Employees\"};\n String groupsNotFound = \"No groups to report\";\n String levelException = \"Can't find Level for Id \";\n\n /**\n * @return full attendance report of all courses and their groups\n * @throws IOException if any exception during XSSFWorkbook.write()\n * @see org.apache.poi.xssf.usermodel.XSSFWorkbook\n */\n ByteArrayInputStream getAttendanceExcel() throws IOException;\n\n /**\n * @return attendance report of all groups of current user\n * @param user user object, to get user information\n * @throws IOException if any exception during XSSFWorkbook.write()\n * @see org.apache.poi.xssf.usermodel.XSSFWorkbook\n */\n ByteArrayInputStream getAttendanceExcel(User user) throws IOException;\n\n /**\n * @return attendance report of particular group\n * @param groupId id, to find group in database\n * @throws IOException if any exception during XSSFWorkbook.write()\n * @see org.apache.poi.xssf.usermodel.XSSFWorkbook\n */\n ByteArrayInputStream getAttendanceExcel(Integer groupId) throws IOException;\n\n /**\n * @return dashboard report of all courses, their groups, and users\n * @throws IOException if any exception during XSSFWorkbook.write()\n * @see org.apache.poi.xssf.usermodel.XSSFWorkbook\n */\n ByteArrayInputStream getDashboardExcel() throws IOException;\n}", "DocumentData getPreviewReport(String documentId,\n String filename, String mimetype) throws IOException;", "public static void main(String[] args){\n \n String loginResponse = \"\";\n String jSessionID = \"\";\n String jsonData = \"\";\n String csvData = \"\";\n String writeToFileOutput = \"\";\n // Change the baseURL to your own jira server's address and port number\n // Note: adding \"rest/\" at the end may not be necessary in your \n // environment\n String baseURL = \"http://ec2-18-235-248-253.compute-1.amazonaws.com:2990/jira/rest/\";\n String loginURL = \"auth/1/session\";\n String biExportURL = \"getbusinessintelligenceexport/1.0/message\";\n // The analysisStartData and analysisEndDate specify an inclusive\n // period over time over which you want to extract issues that \n // have been either added or updated.\n String analysisStartDate = \"01-DEC-18\";\n String analysisEndDate = \"31-DEC-18\";\n // The loginUserName and loginPassWord are the credentials for a user\n // who has permission to view the issues that you wish to export.\n String loginUserName = \"admin\";\n String loginPassWord = \"admin\";\n boolean errorsOccurred = false;\n String exportDirectory = \"./downloads/\";\n \n if(!errorsOccurred)\n {\n loginResponse = loginToJira(baseURL, loginURL, loginUserName, loginPassWord);\n if(loginResponse == \"ERROR\") { errorsOccurred = true; }\n }\n if(!errorsOccurred)\n {\n jSessionID = parseJSessionID(loginResponse);\n if(jSessionID == \"ERROR\") { errorsOccurred = true; }\n }\n if(!errorsOccurred)\n {\n jsonData = getJsonData(baseURL, biExportURL, jSessionID, analysisStartDate, analysisEndDate);\n if(jsonData == \"ERROR\") { errorsOccurred = true; }\n }\n if(!errorsOccurred)\n {\n csvData = formatAsCSV(jsonData);\n if(csvData == \"ERROR\") { errorsOccurred = true; }\n }\n if(!errorsOccurred)\n {\n writeToFileOutput = writeToFile(csvData, exportDirectory);\n if(writeToFileOutput == \"ERROR\") { errorsOccurred = true; }\n }\n if(!errorsOccurred)\n {\n System.out.println(\"SUCCESS\");\n } else {\n System.out.println(\"FAILURE\");\n }\n }", "public static void generate(Experiments experiments, Protocols protocols, File outputFile) throws Exception {\n\n OmicsDataMarshaller mm = new OmicsDataMarshaller();\n\n Database database = new Database();\n database.setDescription(ARRAYEXPRESS_DESCRIPTION);\n database.setName(DATABASE_NAME);\n database.setReleaseDate(experiments.getRetrieved().toString());\n Entries entries = new Entries();\n\n try{\n Map<String, uk.ac.ebi.ddi.arrayexpress.reader.model.protocols.Protocol> protocolMap = createProtocolMap(protocols);\n if (experiments != null && experiments.getExperiment() != null && outputFile != null) {\n\n experiments.getExperiment().stream().forEach( ex -> {\n\n if(ex.getUser() != null && ex.getUser().contains(BigInteger.valueOf(1))){\n Entry entry = new Entry();\n\n entry.setId(ex.getAccession());\n entry.setName(ex.getName());\n entry.setDescription(ex.getDescription());\n\n //Add Dates\n if(ex.getReleasedate() != null && !ex.getReleasedate().toString().isEmpty())\n entry.addDate(Field.PUBLICATION.getName(),ex.getReleasedate().toString());\n if(ex.getLastupdatedate() != null && !ex.getLastupdatedate().isEmpty())\n entry.addDate(Field.PUBLICATION_UPDATED.getName(),ex.getLastupdatedate());\n if(ex.getSubmissiondate() != null && !ex.getSubmissiondate().isEmpty())\n entry.addDate(Field.SUBMISSION_DATE.getName(),ex.getSubmissiondate());\n\n //Add Protocol information as additional fields\n\n Map<Integer, Protocol> sampleProtocol = new TreeMap<Integer, Protocol>();\n Map<Integer, Protocol> dataProtocol = new TreeMap<Integer, Protocol>();\n\n for(uk.ac.ebi.ddi.arrayexpress.reader.model.experiments.Protocol protocolId: ex.getProtocol()){\n Protocol protocol = protocolMap.get(protocolId.getAccession());\n if(protocol != null){\n if(protocol.getSoftware() != null && !protocol.getSoftware().isEmpty()){\n entry.addAdditionalField(Field.SOFTWARE_INFO.getName(), protocol.getSoftware());\n }\n if(protocol.getHardware() != null && !protocol.getHardware().isEmpty()){\n entry.addAdditionalField(Field.INSTRUMENT.getName(), protocol.getHardware());\n }\n Constants.Protocols protocolConstant = Constants.Protocols.getByType(protocol.getType());\n if(protocolConstant != null && protocol.getText() != null && !protocol.getText().isEmpty())\n if(protocolConstant.getField() == Field.SAMPLE)\n sampleProtocol.put(protocolConstant.getLevel(), protocol);\n else if(protocolConstant.getField() == Field.DATA)\n dataProtocol.put(protocolConstant.getLevel(), protocol);\n\n }\n }\n\n if(!sampleProtocol.isEmpty()){\n String sampleProtocolStr = \"\";\n for(Protocol sampleProtcolValue: sampleProtocol.values())\n sampleProtocolStr = sampleProtocolStr + \" \" + Constants.Protocols.getByType(sampleProtcolValue.getType()).getName() + \" - \" + ArrayExpressUtils.refineProtocol(sampleProtcolValue.getText()) + \"\\n\";\n sampleProtocolStr = sampleProtocolStr.trim();\n entry.addAdditionalField(Field.SAMPLE.getName(), sampleProtocolStr);\n }\n\n if(!dataProtocol.isEmpty()){\n String dataProtocolStr = \"\";\n for(Protocol dataProtcolValue: dataProtocol.values())\n dataProtocolStr = dataProtocolStr + \" \" + Constants.Protocols.getByType(dataProtcolValue.getType()).getName() + \" - \" + ArrayExpressUtils.refineProtocol(dataProtcolValue.getText()) + \"\\n\";\n dataProtocolStr = dataProtocolStr.trim();\n entry.addAdditionalField(Field.DATA.getName(), dataProtocolStr);\n }\n\n if(ex.getExperimentalfactor() != null){\n for(Experimentalfactor factor: ex.getExperimentalfactor()){\n if(factor != null && factor.getName() != null && ArrayExpressUtils.cotainsValue(Constants.CELL_TYPE, factor.getName())){\n String[] values = ArrayExpressUtils.refineValues(factor.getValue());\n for(String value: values)\n entry.addAdditionalField(Field.CELL_TYPE_FIELD.getName(), value);\n }\n if(factor != null && factor.getName() != null && ArrayExpressUtils.cotainsValue(Constants.TISSUE, factor.getName())){\n String[] values = ArrayExpressUtils.refineValues(factor.getValue());\n for(String value: values)\n entry.addAdditionalField(Field.TISSUE_FIELD.getName(), value);\n }\n }\n }\n\n if(ex.getSampleattribute() != null){\n for(Sampleattribute sample: ex.getSampleattribute()){\n if(sample != null && sample.getValue() != null && ArrayExpressUtils.cotainsValue(Constants.DISEASE, sample.getCategory())){\n String[] values = ArrayExpressUtils.refineValues(sample.getValue());\n for(String value: values)\n entry.addAdditionalField(Field.DISEASE_FIELD.getName(), value);\n }\n }\n }\n\n entry.addAdditionalField(Field.LINK.getName(), Constants.ARRAYEXPRESS_URL + entry.getId());\n\n for(String type: ex.getExperimenttype()){\n if(type != null && !type.isEmpty())\n entry.addAdditionalField(Field.OMICS.getName(), Constants.ArrayExpressType.getByType(type).getOmicsType());\n entry.addAdditionalField(Field.SUBMITTER_KEYWORDS.getName(), type);\n }\n\n if(ex.getProvider() != null && !ex.getProvider().isEmpty()){\n for(Provider provider: ex.getProvider()){\n if(provider != null && provider.getContact() != null && !provider.getContact().isEmpty()){\n entry.addAdditionalField(Field.SUBMITTER.getName(), provider.getContact());\n if(provider.getEmail() != null && !provider.getEmail().isEmpty()){\n entry.addAdditionalField(Field.SUBMITTER_EMAIL.getName(), provider.getEmail());\n }\n }\n }\n }\n if(ex.getBibliography() != null && !ex.getBibliography().isEmpty()){\n for(Bibliography biblio: ex.getBibliography()){\n if(biblio != null && biblio.getAccession() != null && !biblio.getAccession().isEmpty()){\n entry.addCrossReferenceValue(Field.PUBMED.getName(), biblio.getAccession());\n }\n }\n }\n for(Sampleattribute sampleattribute: ex.getSampleattribute()){\n if(sampleattribute != null && sampleattribute.getCategory() != null){\n if(sampleattribute.getCategory().equalsIgnoreCase(Constants.ORGANISM_TAG))\n entry.addAdditionalField(Field.SPECIE_FIELD.getName(), sampleattribute.getValue());\n }\n }\n\n if(ex.getSecondaryaccession() != null && !ex.getSecondaryaccession().isEmpty()){\n ex.getSecondaryaccession().stream().forEach( accession ->{\n if(accession != null && accession.isEmpty())\n entry.addAdditionalField(Field.SECONDARY_ACCESSION.getName(), accession);\n });\n }\n\n entry.addAdditionalField(Field.REPOSITORY.getName(), \"ArrayExpress\");\n\n entries.addEntry(entry);\n\n }else{\n logger.error(\"Project \" + ex.getAccession() + \" is still private, not generating EB-eye XML.\");\n }\n\n });\n database.setEntryCount(entries.getEntry().size());\n\n database.setEntries(entries);\n mm.marshall(database, new FileWriter(outputFile));\n }\n }catch(Exception e){\n logger.debug(e.getMessage());\n }\n }", "public edu.hm.hafner.analysis.parser.jcreport.Report createReport(final ReaderFactory readerFactory)\n throws ParsingException {\n SecureDigester digester = new SecureDigester(JcReportParser.class);\n\n String report = \"report\";\n digester.addObjectCreate(report, edu.hm.hafner.analysis.parser.jcreport.Report.class);\n digester.addSetProperties(report);\n\n String file = \"report/file\";\n digester.addObjectCreate(file, File.class);\n digester.addSetProperties(file, \"package\", \"packageName\");\n digester.addSetProperties(file, \"src-dir\", \"srcdir\");\n digester.addSetProperties(file);\n digester.addSetNext(file, \"addFile\", File.class.getName());\n\n String item = \"report/file/item\";\n digester.addObjectCreate(item, Item.class);\n digester.addSetProperties(item);\n digester.addSetProperties(item, \"finding-type\", \"findingtype\");\n digester.addSetProperties(item, \"end-line\", \"endline\");\n digester.addSetProperties(item, \"end-column\", \"endcolumn\");\n digester.addSetNext(item, \"addItem\", Item.class.getName());\n\n try (Reader reader = readerFactory.create()) {\n return digester.parse(reader);\n }\n catch (IOException | SAXException e) {\n throw new ParsingException(e);\n }\n }", "@BeforeSuite\r\n\tpublic void setUpSuite()\r\n\t{\n\t\t\r\n\t\t Reporter.log(\"*****************Setting up reports and test started********************\", true);\r\n\t\t exceldata = new ExcelDataProvider();\r\n\t\t configreader = new ConfigReader();\r\n\t\t \r\n\t\tExtentHtmlReporter extent = new ExtentHtmlReporter(new File(System.getProperty(\"user.dir\") + \"/Reports/SampleFramwork.html\"));\r\n\t\treport = new ExtentReports();\r\n\t\treport.attachReporter(extent);\r\n\t\t Reporter.log(\"******************All configurations done********************\", true);\r\n\t}", "@RequestMapping(method = RequestMethod.GET)\n public ModelAndView getReportPage() {\n ModelAndView modelAndView = new ModelAndView();\n modelAndView.setViewName(\"report\");\n modelAndView.addObject(\"performers\", reportService.getAllPerformers());\n return modelAndView;\n }", "public String getCognosDatasetReport(String reportName, String requestNumber){\r\n\t\tlog.info(\"Connecting to USAS - Cognos Server to get \" + reportName + \" report for Request Number [\"+requestNumber+\"].\");\r\n\t\tString reportPath = \"\";\r\n\t\tif(reportName.equalsIgnoreCase(\"recruitment\"))\r\n\t\t\treportPath = properties.getRecruitmentReportPath();\r\n\t\telse if(reportName.equalsIgnoreCase(\"appointment\"))\r\n\t\t\treportPath = properties.getAppointmentReportPath();\r\n\t\telse\r\n\t\t\treturn \"Incorrect report name. Correct URL syntax: /usas/report/{reportName}/{requestNumber}\";\r\n\t\tPrompt prompt = new Prompt(properties.getReportPromptRequest(), requestNumber, requestNumber);\r\n\r\n\t\tCognosReport report = new CognosReport(reportName, reportPath, properties.getReportFormatDataSet(), prompt);\r\n\r\n\t\tString response = client.processReportDataRequest(report).getResponse();\r\n\t\tif(client.getUsasResponse().getResponseCode() != 200){\r\n\t\t\tresponse = client.getUsasResponse().getErrorMessage();\r\n\t\t}\t\t\r\n\t\treturn response;\r\n\t}", "public static Report createEntity() {\n\t\tReport report = new Report()\n\t\t\t\t.fromIsoCode(DEFAULT_FROM_ISO_CODE)\n\t\t\t\t.toIsoCode(DEFAULT_TO_ISO_CODE)\n\t\t\t\t.total(DEFAULT_TOTAL)\n\t\t\t\t.lastUpdated(DEFAULT_LAST_UPDATED);\n\t\treturn report;\n\t}", "void printReport();", "public void detailReport() {\r\n\t\tint testStepId = 1;\r\n\t\tstrBufferReportAppend.append(\r\n\t\t\t\t\"<tr><td><table class=\\\"width100\\\"><tr><td><div class=\\\"headertext1 bold\\\">Test Execution Detail Report</div></td></tr>\");\r\n\t\tstrBufferReportAppend.append(\r\n\t\t\t\t\"<tr><td><div class=\\\"headertext1 bold\\\">Execution Browser Name: \"+ GlobalVariables.getBrowserName() + \"</div></td></tr>\");\r\n\t\tstrBufferReportAppend.append(\r\n\t\t\t\t\"<tr><td><div class=\\\"headertext1 bold\\\">Test Case Name: \"+ GlobalVariables.getTestCaseName() + \"</div></td></tr>\");\r\n\t\t\r\n\t\t\r\n\t\tstrBufferReportAppend.append(\"<tr><td>\");\r\n\t\tstrBufferReportAppend\r\n\t\t\t\t.append(\"<table colspan=3 border=0 cellpadding=3 cellspacing=1 class=\\\"reporttable width100\\\">\");\r\n\t\tstrBufferReportAppend.append(\"<tr><th class=\\\"auto-style1\\\">Test Step No</th>\" + \"<th class=\\\"auto-style2\\\">Action</th>\"\r\n\t\t\t\t+ \"<th class=\\\"auto-style3\\\">Actual Result</th>\" + \"<th class=\\\"auto-style4\\\">Status</th></tr>\");\r\n\t\tfor (ReportBean reportValue : GlobalVariables.getReportList()) {\r\n\r\n\t\t\tif (reportValue.getStatus().equalsIgnoreCase(\"Passed\")) {\r\n\r\n\t\t\t\tstrBufferReportAppend.append(\"<tr>\" + \"<td class=\\\"auto-style1 blue\\\">\" + testStepId++ + \"</td>\"// teststepid\r\n\t\t\t\t\t\t+ \"<td class=\\\"auto-style2 blue\\\">\" + reportValue.getStrAction() + \"</td>\"\r\n\t\t\t\t\t\t+ \"<td class=\\\"auto-style3 blue\\\">\" + reportValue.getResult() + \"</td>\"\r\n\t\t\t\t\t\t+ \"<td class=\\\"auto-style4 green\\\">\" + reportValue.getStatus() + \"</td></tr>\");\r\n\t\t\t} else if (reportValue.getStatus().equalsIgnoreCase(\"Failed\")) {\r\n\t\t\t\tstrBufferReportAppend.append(\"<tr>\" + \"<td class=\\\"auto-style1 blue\\\">\" + testStepId++ + \"</td>\"// teststepid\r\n\t\t\t\t\t\t+ \"<td class=\\\"auto-style2 blue\\\">\" + reportValue.getStrAction() + \"</td>\"\r\n\t\t\t\t\t\t+ \"<td class=\\\"auto-style3 blue\\\">\" + reportValue.getResult() + \"</td>\"\r\n\t\t\t\t\t\t+ \"<td class=\\\"auto-style4 red\\\">\" + reportValue.getStatus() + \"</td></tr>\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tstrBufferReportAppend.append(\"</table>\");\r\n\t\tstrBufferReportAppend.append(\"</td></tr>\");\r\n\t\tstrBufferReportAppend.append(\"</table></td></tr></table></body></html>\");\r\n\t}", "public ActionReport getActionReport();", "private static GetReportsResponse getReport(Analyticsreporting service) throws IOException {\n // Create the DateRange object.\n DateRange dateRange = new DateRange();\n dateRange.setStartDate(\"7DaysAgo\");\n dateRange.setEndDate(\"today\");\n\n // Create the Metrics object.\n Metric sessions = new Metric()\n .setExpression(\"ga:sessions\")\n .setAlias(\"sessions\");\n\n //Create the Dimensions object.\n Dimension browser = new Dimension()\n .setName(\"ga:browser\");\n\n // Create the ReportRequest object.\n ReportRequest request = new ReportRequest()\n .setViewId(VIEW_ID)\n .setDateRanges(Arrays.asList(dateRange))\n .setDimensions(Arrays.asList(browser))\n .setMetrics(Arrays.asList(sessions));\n\n ArrayList<ReportRequest> requests = new ArrayList<ReportRequest>();\n requests.add(request);\n\n // Create the GetReportsRequest object.\n GetReportsRequest getReport = new GetReportsRequest()\n .setReportRequests(requests);\n\n // Call the batchGet method.\n GetReportsResponse response = service.reports().batchGet(getReport).execute();\n\n // Return the response.\n return response;\n }", "public Report() {\n\t\tsuper();\n\t}", "abstract public void report();", "public static void main(String[] args) throws ParserConfigurationException, SAXException, IOException {\n\t\ttry {\n\n\t\t\tGenerateReport re=new GenerateReport();//\n\t\t\tre.generateExcelReport(\"report.xlsx\");\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\te.getLocalizedMessage();\n\t\t\te.getMessage();\n\t\t\tSystem.out.println(e.getLocalizedMessage());\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\n\t}", "@Test\n\tpublic void generateSpecialInstructionsReport(){\n\t\t\t\tWebDriver driver = new FirefoxDriver();\n\t\t\t\t// Alternatively the same thing can be done like this\n\t\t // driver.get(\"http://www.google.com\");\n\t\t\t\tdriver.navigate().to(determineUrl());\n\t\t\t\t// Find the text input element by its name\n\t\t\t\tWebElement user_name = driver.findElement(By.id(\"user_email\"));\n\t\t\t\tuser_name.sendKeys(user);\n\t\t\t\t\n\t\t\t\tWebElement password = driver.findElement(By.id(\"user_password\"));\n\t\t\t\tpassword.sendKeys(password_login);\n\t\t\t\tpassword.submit();\n\t\t\t\t\n\t\t\t\tWebElement select_venue = driver.findElement(By.id(\"change_venue\"));\n\t\t\t\tselect_venue.sendKeys(venue);\n\t\t\t\tselect_venue.submit();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tWebElement report = driver.findElement(By.linkText(\"Reporting\"));\n\t\t\t\treport.click();\n\t\t\t\t\n\t\t\t\tWebElement select_report = driver.findElement(By.id(\"report_type_chooser\"));\n\t\t\t\tselect_report.sendKeys(\"Special Instructions Report\");\n\t\t\t\tWebElement select_event = driver.findElement(By.id(\"report_event\"));\n\t\t\t\tselect_event.sendKeys(event);\n\t\t\t\tselect_event.submit();\n\t\t\t\tdriver.close();\n\t\t\n\t}", "public String getReport() {\n return reportDoc.toString();\n }", "public void generateReport() {\n ReportGenerator rg = ui.getReportGenerator();\n if (rg == null || !rg.isVisible()) {\n ui.openReportGenerator();\n rg = ui.getReportGenerator();\n }\n Image img = getImage();\n if (img == null) {\n return;\n }\n rg.addImage(img, \"Plot\");\n }", "void createReport() {\n\n // report about purple flowers\n println(\"\\nPurple flower distribution: \");\n for (int i = 0; i < 6; i++) {\n println(i + (i==5?\"+\":\"\") + \": \" + numPurpleFlowers[i]);\n }\n // report about missing treasures\n println(\"Missing treasure count: \" + missingTreasureCount);\n\n println(\"\\nGenerated \" + caveGenCount + \" sublevels.\");\n println(\"Total run time: \" + (System.currentTimeMillis()-startTime)/1000.0 + \"s\");\n\n out.close();\n }", "public void generateReport(ReportGenerationData data)throws ChangeApplicationException;", "protected void processReport( HttpServletRequest request ) throws Exception\n \t{\n \t\tFile reportDocFile = new File( this.reportDocumentName );\n \t\t// String reportDesignName = ParameterAccessor.getReport( request );\n \t\tFile reportDesignDocFile = new File( reportDesignName );\n \n \t\tif ( reportDesignDocFile != null && reportDesignDocFile.exists( )\n \t\t\t\t&& reportDesignDocFile.isFile( ) && reportDocFile != null\n \t\t\t\t&& reportDocFile.exists( ) && reportDocFile.isFile( )\n \t\t\t\t&& \"get\".equalsIgnoreCase( request.getMethod( ) ) ) //$NON-NLS-1$\n \t\t{\n \t\t\tif ( reportDesignDocFile.lastModified( ) > reportDocFile\n \t\t\t\t\t.lastModified( )\n \t\t\t\t\t|| ParameterAccessor.isOverwrite( request ) )\n \t\t\t{\n \t\t\t\treportDocFile.delete( );\n \t\t\t}\n \t\t}\n \t}", "@Test\n\tpublic void testBasicReportExecution() \n\t{\n\t\tString testTeam = \"USA\";\n\t\t\n\t\ttry \n\t\t{\n\t\t\tReportParameters rp = new ReportParameters();\n\t\t\t\n\t\t\trp.addSupportedParameter(ParameterInfo.START_DATE_PARAM);\n\t\t\trp.addSupportedParameter(ParameterInfo.END_DATE_PARAM);\n\t\t\trp.addSupportedParameter(ParameterInfo.AGENT_NAMES_PARAM);\n\t\t\trp.addSupportedParameter(ParameterInfo.TEAM_NAMES_PARAM);\n\t\t\trp.addSupportedParameter(ParameterInfo.USER_GRAIN_PARAM);\n\t\t\trp.addSupportedParameter(ParameterInfo.TIME_GRAIN_PARAM);\n\t\t\trp.addSupportedParameter(ParameterInfo.NUM_DRIVERS_PARAM);\n\t\t\trp.addSupportedParameter(ParameterInfo.REPORT_TYPE_PARAM);\n\t\t\trp.addSupportedParameter(ParameterInfo.SOURCE_PARAM);\n\t\t\t\n\t\t\tassertTrue(\"Set stack report\", rp.setReportType(ReportTypes.STACK_REPORT));\n\t\t\t//assertTrue(\"Add agent to report\", rp.addAgentName(testAgent));\n\t\t\tassertTrue(\"Add team to report\", rp.addTeamName(testTeam));\n\t\t\tassertTrue(\"Set report start date\", rp.setStartDate(\"2014-01-01 00:00:00\"));\n\t\t\tassertTrue(\"Set report end date\", rp.setEndDate(\"2014-03-01 23:59:59\"));\n\t\t\tassertTrue(\"Set user granularity for stack report\", rp.setUserGrain(UserGrains.TEAM_GRANULARITY));\n\t\t\tassertTrue(\"Set report source\", rp.setSource(\"JUnit\"));\n\t\t\t\n\t\t\t//report needs roster members\n\t\t\tReport report = proc.startReport(testReportClassName, rp);\n\t\t\tArrayList<String[]> actualResults = report.getData();\n\t\t\t\n\t\t\tassertNotNull(\"Non-null result set\", actualResults);\n\t\t\tassertTrue(\"Check that result set is non zero size\", actualResults.size() > 0);\n\t\t\tassertTrue(\"Check that result set is expected size\", actualResults.size() == 1);\n\t\t\t\n\t\t\tassertEquals(\"Correct team membership\", testTeam, actualResults.get(0)[0]);\n\t\t} \n\t\tcatch (ClassNotFoundException e) \n\t\t{\n\t\t\te.printStackTrace();\n\t\t\tassertFalse(\"Exception executing report\", true);\n\t\t}\n\t}", "@BeforeClass\n\tpublic void setup() {\n\t\treport2 = new ExtentReports(\"./Reports/ElfuScripts.html\");\n\n\t}" ]
[ "0.6251191", "0.62073314", "0.6129261", "0.60676265", "0.5999684", "0.59453535", "0.5878098", "0.5859392", "0.5789451", "0.57328546", "0.57285285", "0.5692863", "0.56587493", "0.55219984", "0.5428996", "0.5420103", "0.5397417", "0.5325786", "0.5314184", "0.53087205", "0.5256513", "0.5252517", "0.5230685", "0.52129483", "0.51932716", "0.5169229", "0.51610774", "0.5106226", "0.50975114", "0.5096208", "0.5095121", "0.50918233", "0.50697917", "0.5049056", "0.50484836", "0.50426936", "0.5037457", "0.5023906", "0.50012803", "0.49998212", "0.49885353", "0.49853736", "0.49483535", "0.4946945", "0.49469125", "0.49448365", "0.49388215", "0.49304447", "0.49259928", "0.491918", "0.4893863", "0.48834682", "0.4882547", "0.48812214", "0.4875265", "0.4855872", "0.48419833", "0.48385707", "0.4827746", "0.48208857", "0.48166674", "0.4814296", "0.4809963", "0.4809963", "0.48027888", "0.47978166", "0.4770858", "0.47664082", "0.4765287", "0.47547156", "0.47520322", "0.4750671", "0.4747113", "0.47423363", "0.473911", "0.47368953", "0.47264522", "0.4719272", "0.4718747", "0.4716887", "0.4708783", "0.47078094", "0.47003406", "0.46998745", "0.46935308", "0.46902648", "0.46892232", "0.46784204", "0.46782", "0.46698293", "0.46627027", "0.46620673", "0.4658287", "0.46497044", "0.46434513", "0.4636013", "0.46349183", "0.4634664", "0.46341953", "0.46329752" ]
0.4803798
64
Invalidate the cached 'report' for the experiment with the given id. If it is not cached nothing happens.
void evictFromCache( Long id );
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void invalidate(String id);", "public void removeReCaseReportReg(final String id);", "void deleteTrackerCache(final Integer id);", "public void clearReports()\n {\n reports.clear();\n }", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete CaseReport : {}\", id);\n caseReportRepository.deleteById(id);\n }", "void invalidateCache();", "private void invalidateCache() {\n\t}", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete StockReport : {}\", id);\n\n stockReportRepository.deleteById(id);\n }", "public void clearReports()\n\t{\n\t\treports.clear();\n\t}", "public void setReportID(String id) {\r\n\t\tsetValue(Params.REPORT_ID, id);\r\n\t}", "public static CrashReport getReportByID(String id) \r\n\t\t\tthrows IllegalArgumentException {\r\n\t\treturn getReportByID(id, null);\r\n\t}", "public void invalidateCaches() {\n cfgCache.invalidateAll();\n analysisCache.invalidateAll();\n }", "@Override\n\tpublic void invalidateCache() {\n\t\t\n\t}", "private void deleteReport(int reportID){\n\t\ttry {\n\t\t\tStatement stmt = conn.createStatement();\n\t\t\tstmt.executeUpdate(\"DELETE FROM report_times WHERE report_id=\"+reportID);\n\t\t\tstmt.executeUpdate(\"DELETE FROM reports WHERE id=\"+reportID);\n\t\t} catch (SQLException e) {\n\t\t}\n\t}", "void clearUsageReports();", "public void invalidate() {\n boolean hasLock = false;\n while (!hasLock) {\n synchronized (this) {\n if (!lock) {\n lock = true;\n hasLock = true;\n }\n }\n if (!hasLock) try {\n Thread.sleep(1000);\n } catch (Exception e) {\n }\n }\n try {\n if (cacheFile.exists()) cacheFile.delete();\n } finally {\n lock = false;\n }\n }", "public void setReportId(String reportId) {\r\n this.reportId = reportId;\r\n }", "void rejectRequest(@NonNull final Long id) throws ReviewReportNotFoundException;", "public void clear() {\n myReported.clear();\n }", "private void cleanReporter(){\n File file = new File(\"test-report.html\");\n file.delete();\n\n }", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete CustomerStatusReportDtl : {}\", id);\n customerStatusReportDtlRepository.delete(id);\n }", "public void clearCache();", "protected void invalidateCache() {\r\n\tcurrentFilesFresh = false;\r\n }", "public synchronized static void invalidate(String url){\n\t\tLog.i(\"FILEBANK\", \"Invalidating \"+hashURL(url));\n\t\tnew File(context.getCacheDir(), hashURL(url)).delete();\n\t}", "public final void invalidate()\n\t{\n\t\tresource = null;\n\t}", "@Override\n public void removeFromCache(String sensorID) {\n }", "public void cancelReport() {\n }", "private void invalidateCache() {\n\t\tLog.d(TAG, \"invalidateCache() is removing in-memory cache\");\n\t\tpackageMapping.clear();\n\t\tvalidCache = false;\n\t}", "public Report id(Long id) {\n this.id = id;\n return this;\n }", "void verifyOrCreateReport(String reportId);", "@ServiceMethod(returns = ReturnType.SINGLE)\n void invalidate(String resourceGroupName, String cacheName, String storageTargetName, Context context);", "void invalidateCache( Path project );", "void removeReview(@NonNull final Long id) throws ReviewReportNotFoundException;", "@RequestMapping(value = \"/i\", method = RequestMethod.GET)\n\tpublic ModelAndView doUniqueReport(ModelAndView modelAndView, @RequestParam(\"id\") final String reportId) {\n\n\t\tLOGGER.debug(\"doUniqueReport : Received unique report request to download PDF report\" + reportId);\n\t\tLOGGER.info(\"doUniqueReport : Received unique report request to download PDF report\" + reportId);\n\n\t\tboolean isValidUser = true;\n\n\t\tList<User> userList = null;\n\t\tUser user = null;\n\t\tList<Assessment> assessmentList = null;\n\t\tList<Suggestion> suggestionList = null;\n\n\t\tassessmentList = assessmentServices.findByReportId(reportId);\n\t\tLOGGER.info(\"assessmentList \" + assessmentList.toString());\n\t\tLOGGER.info(\"assessmentList.get(0).getUserId() \" + assessmentList.get(0).getUserId());\n\t\tuserList = userServices.findByUserId(assessmentList.get(0).getUserId());\n\t\tLOGGER.info(\"@@@@@@@@@@@@@@userList \" + userList.toString());\n\n\t\tif (userList.isEmpty() || userList == null) {\n\t\t\tisValidUser = false;\n\t\t} else {\n\t\t\tuser = userList.get(0);\n\t\t}\n\n\t\tif (isValidUser) {\n\n\t\t\tList statements = suggestionServices.findUserAssessmentStatement(user.getUserId());\n\n\t\t\tLOGGER.info(\"assessmentList dateData \" + assessmentList.get(0).getDate());\n\t\t\tstatementReportDao dataprovider = new statementReportDao();\n\n\t\t\tJRDataSource datasource = dataprovider.getDataSource(user, statements, assessmentList.get(0).getDate());\n\n\t\t\tLOGGER.info(\"datasource \" + datasource.toString());\n\n\t\t\tMap<String, Object> parameterMap = new HashMap<String, Object>();\n\t\t\tparameterMap.put(\"datasource\", datasource);\n\n\t\t\tmodelAndView = new ModelAndView(\"ilm_statement_pdfReport\", parameterMap);\n\t\t} else {\n\t\t\t// modelAndView.addObject(\"errorMessage\", \"No data found\");\n\t\t\tModelAndView mav = new ModelAndView(\"/404\");\n\t\t}\n\n\t\treturn modelAndView;\n\t}", "public void removeBitmapFromSoftCache(final String id) {\n\n\t\ttry {\n\t\t\tsoftCache.remove(id);\n\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\n\t\t}\n\n\t}", "@DELETE\n public Response cancelStorageReport(){\n log.debug(\"Cancelling storage report\");\n\n try {\n String responseText = resource.cancelStorageReport();\n return responseOk(responseText);\n } catch (Exception e) {\n return responseBad(e);\n }\n }", "void clearCache();", "void clearCache();", "void invalidate(String pathString);", "@ServiceMethod(returns = ReturnType.SINGLE)\n void invalidate(String resourceGroupName, String cacheName, String storageTargetName);", "public void setReportId(Long reportId) {\n this.reportId = reportId;\n }", "public static void done(String id)\n {\n if(measurements.containsKey(id))\n {\n String timeDifference = \"\";\n\n for(int i = 0; i < logPatterns.get(0).getLength() + logPatterns.get(1).getLength() + 1; i++)\n {\n timeDifference = timeDifference.concat(\" \");\n }\n\n timeDifference = timeDifference + logPointer + \" Done '\" + measurements.get(id).getMessage() + \"' in '\" + (System.currentTimeMillis() - measurements.get(id).getTimestamp()) + \"ms'\";\n\n System.out.println(timeDifference);\n\n measurements.remove(id);\n }\n }", "public void endCalculation(Long id) {\r\n panel.remove(progressBarMap.remove(id));\r\n revalidate();\r\n }", "@Override\n public void clearCache() {\n }", "public void invalidateCache(){\n\t\tfor (Realm realm : realms) {\n\t\t\tif(realm instanceof IClearableRealmCache){\n\t\t\t\tIClearableRealmCache ar = (IClearableRealmCache)realm;\n\t\t\t\tar.clearAllCaches();\n\t\t} \n\t\t\t\n\t\t}\n\t}", "public void stopTracking(String id) {\n mStartTimes.remove(id);\n }", "private int setReportId(Long reportBaseId, int id) {\n\n ContentValues contentValues = new ContentValues();\n\n contentValues.put(ReportEntry.COLUMN_REPORT_ID, id);\n\n return getContext().getContentResolver().update(\n ReportEntry.buildReportUriNoNetworkSync(reportBaseId),\n contentValues,\n null,\n null);\n }", "public HWatch onWatch(String id)\r\n {\r\n if (!cache.initialized()) \r\n throw new IllegalStateException(Cache.NOT_INITIALIZED);\r\n\r\n if (LOG_WATCH.isTraceOn())\r\n LOG_WATCH.trace(\"onWatch \" + id);\r\n\r\n try\r\n {\r\n synchronized(watches) { return (HWatch) watches.get(id); }\r\n }\r\n catch (RuntimeException e)\r\n {\r\n e.printStackTrace();\r\n throw e;\r\n }\r\n }", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete BenchCommentHistory : {}\", id);\n benchCommentHistoryRepository.delete(id);\n }", "public void deleteMeasure(int idMeasure) {\n System.out.println(\"Measure deleted with id: \" + idMeasure);\n // ( table, whereClause, whereArgs )\n database.delete(\n SensorMeasureSQLiteOpenHelper.MEASURES_TABLE,\n SensorMeasureSQLiteOpenHelper.SensorMeasureColumns._ID + \" = \" + idMeasure,\n null); // WHERE args\n }", "public void clearCache(DataSetHandle dataSet) throws BirtException\n\t{\n\t\tDataSessionContext context;\n\t\tDataRequestSession requestSession = null;\n\t\ttry\n\t\t{\n\t\t\tcontext = new DataSessionContext(DataSessionContext.MODE_DIRECT_PRESENTATION,\n\t\t\t\t\tdataSet.getModuleHandle(),\n\t\t\t\t\tnull);\n\t\t\trequestSession = DataRequestSession.newSession(context);\n\n\t\t\tIModelAdapter modelAdaptor = requestSession.getModelAdaptor();\n\t\t\tDataSourceHandle dataSource = dataSet.getDataSource();\n\n\t\t\tIBaseDataSourceDesign sourceDesign = modelAdaptor.adaptDataSource(dataSource);\n\t\t\tIBaseDataSetDesign dataSetDesign = modelAdaptor.adaptDataSet(dataSet);\n\n\t\t\trequestSession.clearCache(sourceDesign, dataSetDesign);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tif (requestSession != null)\n\t\t\t{\n\t\t\t\trequestSession.shutdown();\n\t\t\t}\n\t\t}\n\t}", "private void removeReport(HttpServletRequest req) {\n int id = Integer.parseInt(req.getParameter(\"id\"));\n try {\n ReportMapper.removeReport(id);\n } catch (PolygonException ex) {\n req.getSession().setAttribute(\"errorMsg\", ex.getMessage());\n }\n }", "public void deleteReport()\n\t{\n\t\tloading.setVisibility(View.VISIBLE);\n\n\t\tParseQuery<ParseObject> query = ParseQuery.getQuery(\"DCIncident\");\n\t\tquery.getInBackground(incident.getId(), new GetCallback<ParseObject>() \n\t\t{\n\t\t\tpublic void done(ParseObject object, ParseException e) \n\t\t\t{\n\t\t\t\tif (e == null) \n\t\t\t\t{\t\t\n\t\t\t\t\tobject.deleteInBackground(new DeleteCallback()\n\t\t\t\t\t{\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void done(ParseException e) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tIntent returnIntent = new Intent();\n\t\t\t\t\t\t\treturnIntent.putExtra(\"reportPosition\", reportPosition);\n\t\t\t\t\t\t\tsetResult(RESULT_OK, returnIntent);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Report is deleted, go back to previous screen\n\t\t\t\t\t\t\tloading.setVisibility(View.INVISIBLE);\n\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t\toverridePendingTransition(R.anim.slide_right_main,\tR.anim.slide_right_sub);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "public void recoverAsset(int id) {\n asset asset = getAssetById(id);\n asset.setAssignmentStatus(\"Recovered\");\n saveOrUpdate(asset);\n }", "void reset(int id);", "public final static void removeTimers ( Integer id ) {\n\t\tString key = getKey( id ) ;\n\t\tcache.remove(key);\n\t}", "void invalidate(String key);", "public void invalidate() {}", "public abstract void clearCache();", "@Programmatic\n public void invalidateCache(final Class<?> cls) {\n\n if(!cache.isInitialized()) {\n // could be called by JRebel plugin, before we are up-and-running\n // just ignore.\n return;\n }\n final Class<?> substitutedType = classSubstitutor.getClass(cls);\n\n if(substitutedType.isAnonymousClass()) {\n // JRebel plugin might call us... just ignore 'em.\n return;\n }\n\n ObjectSpecification spec = loadSpecification(substitutedType, IntrospectionState.TYPE_AND_MEMBERS_INTROSPECTED);\n while(spec != null) {\n final Class<?> type = spec.getCorrespondingClass();\n cache.remove(type.getName());\n if(spec.containsDoOpFacet(ObjectSpecIdFacet.class)) {\n // umm. Some specs do not have an ObjectSpecIdFacet...\n recache(spec);\n }\n spec = spec.superclass();\n }\n }", "@Override\r\n\tpublic boolean deletetdfy(Long id) throws Exception {\n\t\treturn false;\r\n\t}", "public void removeJbdSendRecordHist(final String id);", "@Override\n\t@CacheEvict(value=CacheName.CACHE_PERSONINFO, key=\"'key_'+#cacheId\")\n\tpublic void removeCacheById(Integer cacheId) {\n\t\t\n\t}", "public void removeBitmapFromLocalStorage(final String id) {\n\n\t\ttry {\n\n\t\t\tFile f = new File(Constants.CACHE_DIR_PATH + id);\n\t\t\tif (f.exists()) {\n\t\t\t\tf.delete();\n\t\t\t}\n\t\t\tf = null;\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\n\t\t}\n\n\t}", "private boolean updateReport(int reportID, HttpServletRequest request){\n\t\ttry {\n\t\t\tint totalTime = 0;\n\t\t\tString[] act_sub_values = new String[ReportGenerator.act_sub_names.length];\n\t\t\tString[] lower_activity_values = new String[ReportGenerator.lower_activities.length];\n\t\t\tfor (int i = 0; i<ReportGenerator.act_sub_names.length; i++) {\n\t\t\t\tString value = request.getParameter(ReportGenerator.act_sub_names[i]);\n\t\t\t\tif (!value.equals(\"\")) {\n\t\t\t\t\tact_sub_values[i] = value;\n\t\t\t\t\tif(!checkInt(value)){\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\ttotalTime += Integer.parseInt(value);\n\t\t\t\t}else {\n\t\t\t\t\tact_sub_values[i] = \"0\";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor (int i = 0; i<ReportGenerator.lower_activities.length; i++) {\n\t\t\t\tString value = request.getParameter(ReportGenerator.lower_activities_names[i]);\n\t\t\t\tif (!value.equals(\"\")) {\n\t\t\t\t\tlower_activity_values[i] = value;\n\t\t\t\t\tif(!checkInt(value)){\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\ttotalTime += Integer.parseInt(value);\n\t\t\t\t} else {\n\t\t\t\t\tlower_activity_values[i] = \"0\";\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\tDate date = new Date(cal.getTimeInMillis());\n\n\t\t\tStatement stmt = conn.createStatement();\n\t\t\tstmt.executeUpdate(\"UPDATE reports SET date='\"+date.toString()+\"',total_time=\"+totalTime+\" WHERE id=\"+reportID);\n\t\t\tstmt.executeUpdate(\"DELETE FROM report_times WHERE report_id=\"+reportID);\n\t\t\tstmt.close();\n\n\t\t\tString q = \"INSERT INTO report_times (report_id, \";\n\t\t\tfor (int i = 0; i<ReportGenerator.act_sub_names.length; i++) {\n\t\t\t\tString valueStr = ReportGenerator.act_sub_names[i];\n\t\t\t\tq += valueStr+\",\";\n\t\t\t}\n\n\t\t\tfor (int i = 0; i<ReportGenerator.lower_activities.length-1; i++) {\n\t\t\t\tString valueStr = ReportGenerator.lower_activities[i];\n\t\t\t\tq += valueStr+\",\";\n\t\t\t}\n\t\t\tq += ReportGenerator.lower_activities[ReportGenerator.lower_activities.length-1];\n\n\t\t\tq += \") VALUES (\"+reportID+\",\";\n\t\t\tfor (int i = 0; i<ReportGenerator.act_sub_names.length; i++) {\n\t\t\t\tString valueStr = act_sub_values[i];\n\t\t\t\tq += valueStr+\",\";\n\t\t\t}\n\n\t\t\tfor (int i = 0; i<ReportGenerator.lower_activities.length-1; i++) {\n\t\t\t\tString valueStr = lower_activity_values[i];\n\t\t\t\tq += valueStr+\",\";\n\t\t\t}\n\t\t\tq += lower_activity_values[lower_activity_values.length-1]+\");\";\n\t\t\tStatement stmt2 = conn.createStatement();\n\t\t\tstmt2.executeUpdate(q);\n\t\t\tstmt2.close();\n\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"SQLException: \" + e.getMessage());\n\t\t\tSystem.out.println(\"SQLState: \" + e.getSQLState());\n\t\t\tSystem.out.println(\"VendorError: \" + e.getErrorCode());\n\t\t}\n\t\treturn true;\n\t}", "public static void invalidateCache() {\n\t\tclassCache = new HashMap();\n\t}", "private void updateExpenseLineItemReportId(Long reportBaseId, int newReportId) {\n Cursor cursor = getContext().getContentResolver().query(\n ReportEntry.buildReportExpense(reportBaseId),\n null, null, null, null\n );\n\n if(cursor.getCount() > 0) {\n cursor.moveToFirst();\n do {\n ContentValues contentValues = new ContentValues();\n contentValues.put(ExpenseEntry.COLUMN_REPORT_ID, newReportId);\n long expenseBaseId = cursor.getLong(cursor.getColumnIndex(\n ExpenseEntry._ID\n ));\n\n getContext().getContentResolver().update(\n ExpenseEntry.buildExpenseUri(expenseBaseId),\n contentValues,\n null, null\n );\n\n } while(cursor.moveToNext());\n }\n cursor.close();\n }", "void resetCacheCounters();", "private void printUpdateReport(int reportID){\n\t\ttry {\n\t\t\tStatement stmt = conn.createStatement();\n\t\t\tString query = \"select reports.week, reports.total_time, reports.signed, \";\n\t\t\tString q = \"\";\n\t\t\tfor (int i = 0; i<ReportGenerator.act_sub_names.length; i++) {\n\t\t\t\tString valueStr = \"report_times.\" + ReportGenerator.act_sub_names[i];\n\t\t\t\tq += valueStr+\",\";\n\t\t\t}\n\t\t\tfor (int i = 0; i<ReportGenerator.lower_activities.length-1; i++) {\n\t\t\t\tString valueStr = ReportGenerator.lower_activities[i];\n\t\t\t\tq += valueStr+\",\";\n\t\t\t}\n\t\t\tq += ReportGenerator.lower_activities[ReportGenerator.lower_activities.length-1];\n\t\t\tquery += q;\n\n\t\t\tquery += \", reports.user_group_id, reports.date, users.username, groups.name from reports\";\n\t\t\tString inner = \" inner join report_times on reports.id = report_times.report_id\";\t\t\t\n\t\t\tString inner1 = \" inner join user_group on reports.user_group_id = user_group.id\";\n\t\t\tString inner2 = \" inner join users on user_group.user_id = users.id\";\n\t\t\tString inner3 = \" inner join groups on user_group.group_id = groups.id\";\n\t\t\tString end = \" where reports.id = \" + reportID;\n\t\t\tquery += inner;\n\t\t\tquery += inner1;\n\t\t\tquery += inner2;\n\t\t\tquery += inner3;\n\t\t\tquery += end;\n\t\t\tResultSet rs = stmt.executeQuery(query);\n\t\t\tif(rs.first()){\t\t\t\t\n\t\t\t\tout.println(\"<div class='floati'>\");\n\t\t\t\tout.println(ReportGenerator.updateReport(rs,reportID));\n\t\t\t\tout.println(\"</div>\");\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"SQLException: \" + e.getMessage());\n\t\t\tSystem.out.println(\"SQLState: \" + e.getSQLState());\n\t\t\tSystem.out.println(\"VendorError: \" + e.getErrorCode());\n\t\t}\n\t}", "public void deleteEmployeeTimeInfoById(int id) {\r\n\t\tOptional<TimeInformation> employeeTime = repository.findById(id); \r\n\t\tif(employeeTime.isPresent()) {\r\n\t\t\trepository.deleteById(id);\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t}", "public void Del(String id) {\n\t\tsql = \"delete from throw_history where throw_history_id='\"+id+\"'\";\n\t\tdao.executeUpdate(sql);\n\t\tSystem.out.println(\"=del===\"+sql);\n\t}", "@CacheEvict(allEntries = true, cacheNames = { \"airly_now\", \"history\" })\n @Scheduled(fixedDelay = 30000)\n public void reportCacheEvict() {\n }", "public void clear() {\n cache.clear();\n }", "private void requestDeleteReport() throws ERTRestApiException, JSONException {\n final Cursor cursor = getReportStatusCursor(SyncStatus.DELETED_REPORT);\n\n if(cursor.getCount() != 0) {\n cursor.moveToFirst();\n\n\n do {\n final Long reportBaseId = cursor.getLong(\n cursor.getColumnIndex(ReportEntry._ID));\n ExpenseReport expenseReport = Utility.createExpenseReportFromCursor\n (cursor);\n final int reportId = expenseReport.getId();\n\n // update the status of delete to true in the mean time\n // if there is an error from the server, the delete\n // status should be changed to false\n ContentValues contentValues = new ContentValues();\n contentValues.put(ReportEntry.COLUMN_IS_DELETED, \"true\");\n getContext().getContentResolver().update(\n ReportEntry.buildReportUriNoNetworkSync(reportId),\n contentValues,\n null,\n null\n );\n\n ERTRestApi.apiDeleteReport(\n reportId,\n new ERTRestApi.ERTRestApiListener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n\n // delete all expense line items\n Cursor expenseLineItemCursor = getContext().getContentResolver().query(\n ReportContract.ReportEntry.buildReportExpense(reportBaseId),\n null, null, null, null\n );\n int expenseLineItemDeleteCount = 0;\n if(expenseLineItemCursor.getCount() > 0) {\n expenseLineItemCursor.moveToFirst();\n do {\n expenseLineItemDeleteCount += getContext().getContentResolver().delete(\n ExpenseEntry.buildExpenseUri(expenseLineItemCursor.getInt(expenseLineItemCursor.getColumnIndex(ExpenseEntry._ID))),\n null, null\n );\n } while (expenseLineItemCursor.moveToNext());\n }\n expenseLineItemCursor.close();\n Log.i(LOG_TAG, \"Deleted \" + expenseLineItemDeleteCount + \" expense line items\");\n\n getContext().getContentResolver().delete(\n ReportEntry.buildReportUriNoNetworkSync\n (reportBaseId),\n null,\n null\n );\n Log.d(LOG_TAG, \"Report \" + reportBaseId + \" \" +\n \"deleted\");\n }\n },\n new ERTRestApi.ERTRestApiErrorListener() {\n @Override\n public void onErrorResponse(ERTRestApi\n .ERTRestApiError error) {\n // try delete again\n /*updateReportSyncStatus(reportBaseId,\n SyncStatus.DELETED_REPORT);*/\n\n // the delete failed, put the report back in\n // the list\n ContentValues contentValues = new\n ContentValues();\n contentValues.put(ReportEntry\n .COLUMN_IS_DELETED, \"false\");\n getContext().getContentResolver().update(\n ReportEntry\n .buildReportUriNoNetworkSync\n (reportId),\n contentValues,\n null,\n null\n );\n\n Log.e(LOG_TAG, error.getMessage());\n }\n }\n );\n\n updateReportSyncStatus(reportBaseId,SyncStatus.SYNC_IN_PROGRESS);\n\n } while (cursor.moveToNext());\n\n }\n cursor.close();\n }", "public void invalidateCache(String serviceName) {\n\t\tif (instance.cacheManager != null) {\n\t\t\tlogger.info(\"Invalidating cache for the service \" + serviceName);\n\t\t\tinstance.cacheManager.invalidate(serviceName);\n\t\t}\n\t}", "@Override\n\tpublic int resetById(int id) {\n\t\treturn customerBrowseMapper.resetById(id);\n\t}", "protected void cancelReports() {\n ACRA.getErrorReporter().deletePendingNonApprovedReports(false);\n }", "public void refresh() {\n OfficerDailyReportService officerService = new OfficerDailyReportService(sessionBean.getCompanyId());\n getClientDailyReports().clear();\n EquipmentService equipService = new EquipmentService(sessionBean.getCompanyId());\n HashMap<Integer, ClientEquipment> clientEquipHash = new HashMap<Integer, ClientEquipment>();\n try {\n if (sessionBean.getClients() != null) {\n ArrayList<Integer> clientIds = new ArrayList<Integer>();\n for (int c = 0; c < sessionBean.getClients().size(); c++) {\n clientIds.add(sessionBean.getClients().get(c).getClientId());\n }\n getClientDailyReports().addAll(officerService.getDailyReportsForClientsWithText(clientIds, numberOfDaysToGoBack, false));\n\n ArrayList<OfficerDailyReport> reports = getClientDailyReports();\n \n HashMap<Integer, Integer> clientEquipmentIds = new HashMap<Integer, Integer>();\n for (int c = 0; c < reports.size(); c++) {\n clientEquipmentIds.put(reports.get(c).getClientEquipmentId(), reports.get(c).getClientEquipmentId());\n }\n \n ArrayList<Integer> fetchClientEquipIds = new ArrayList<Integer>();\n Iterator<Integer> keyIterator = clientEquipmentIds.keySet().iterator();\n while (keyIterator.hasNext()) {\n fetchClientEquipIds.add(keyIterator.next());\n }\n ArrayList<ClientEquipment> equip = equipService.getClientEquipmentByIds(fetchClientEquipIds);\n for (int e = 0; e < equip.size(); e++) {\n clientEquipHash.put(equip.get(e).getClientEquipmentId(), equip.get(e));\n }\n \n for (int r = 0; r < getClientDailyReports().size(); r++) {\n getClientDailyReports().get(r).setClientEquipment(clientEquipHash.get(getClientDailyReports().get(r).getClientEquipmentId()));\n }\n logInLogOut = LogInLogOut.generateData(clientDailyReports, sessionBean.getCompanyId());\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public static boolean clear(String id) {\n if(doDelete(id) == 200) return true;\n else return false;\n }", "void deleteTrackerAssignedOld(final Integer id);", "public void clearCache()\n/* */ {\n/* 330 */ if (!this.clearLocalCacheOnly) {\n/* 331 */ for (Painter p : this.painters) {\n/* 332 */ if ((p instanceof AbstractPainter)) {\n/* 333 */ AbstractPainter ap = (AbstractPainter)p;\n/* 334 */ ap.clearCache();\n/* */ }\n/* */ }\n/* */ }\n/* 338 */ super.clearCache();\n/* */ }", "public void deleteAnalysis(long id){\n try{\n analysisDAO.deleteAnalysisById(id);\n } catch (PersistenceException e){\n e.printStackTrace();\n }\n }", "@Override\n @CacheEvict(value=AccountingPeriod.CACHE_NAME,allEntries=true)\n public void clearCache() {\n }", "public void delete(Long id) {\n log.debug(\"Request to delete ActivityEstimation : {}\", id);\n activityEstimationRepository.deleteById(id);\n }", "public void invalidateDefinitionFromStore(Credentials credentials, String streamId) {\n try {\n StreamDefnCache.invalidateStreamDefinition(credentials, streamId);\n } catch (Exception e) {\n return;\n }\n }", "public void reportError (String id) throws IOException;", "private void clearExpiredFiles(long checkpointId) throws IOException {\n NavigableMap<Long, List<Path>> outOfDateMetas = expiredFiles.headMap(checkpointId, true);\n for (List<Path> paths : outOfDateMetas.values()) {\n for (Path meta : paths) {\n fileSystem.delete(meta, true);\n }\n }\n outOfDateMetas.clear();\n }", "public void delete(Long id) {\n log.debug(\"Request to delete Exam : {}\", id);\n examRepository.deleteById(id);\n }", "public native void invalidateCache() /*-{\r\n var self = [email protected]::getOrCreateJsObj()();\r\n self.invalidateCache();\r\n }-*/;", "void onReportDeleted(Report report);", "public synchronized void restart() {\n printReport();\n printGlobalOpsPerSec();\n metrics.clear();\n intervalStartedAt = null;\n startedAt = null;\n\n reportStream.println(\"\");\n reportStream.println(\"Metrics have been reset\");\n reportStream.println(\"\");\n }", "public Report updateReportContent(@NonNull String reportId, @NonNull UpdateReportContentRequest updateReportContentRequest) throws IOException, PowerBiClientException {\n Response<Report> res = reportsService.updateReportContent(reportId, updateReportContentRequest).execute();\n return ClientUtils.buildAndSendResponseBody(res);\n }", "public String getReportId() {\r\n return reportId;\r\n }", "void deleteTrackerPrefs(final Integer id);", "public void deleteReport(ReportBase report)\r\n throws PersistenceException;", "public void deletePendingReports() {\r\n String[] filesList = getCrashReportFilesList();\r\n if (filesList != null) {\r\n for (String fileName : filesList) {\r\n new File(mContext.getFilesDir(), fileName).delete();\r\n }\r\n }\r\n }", "public void clear() {\n this.cache.clear();\n }", "@Test\n public void clear() {\n cache.put(1, \"a\");\n cache.put(2, \"b\");\n changesOf(0, 0, 2, 0);\n cache.clear();\n changesOf(0, 0, 0, 0);\n }", "public Result deleteStudyReport(String identifier) {\n UserSession session = getAuthenticatedSession(DEVELOPER, WORKER);\n \n reportService.deleteStudyReport(session.getStudyIdentifier(), identifier);\n \n return okResult(\"Report deleted.\");\n }", "public int rebindReport(@NonNull String reportId, @NonNull RebindReportRequest rebindReportRequest) throws IOException, PowerBiClientException {\n Response<Void> res = reportsService.rebindReport(reportId, rebindReportRequest).execute();\n return ClientUtils.buildAndSendResponseCode(res);\n }" ]
[ "0.6379166", "0.58464944", "0.56363666", "0.5603933", "0.55767405", "0.552759", "0.550549", "0.54958534", "0.54611", "0.53565115", "0.522921", "0.5204716", "0.51783437", "0.51453495", "0.5114379", "0.5060717", "0.5002891", "0.49860296", "0.49739867", "0.49542618", "0.49503052", "0.49395856", "0.4928035", "0.4914048", "0.49085435", "0.49034923", "0.48875958", "0.48757312", "0.48713848", "0.48576397", "0.4846152", "0.48393983", "0.48155314", "0.48135728", "0.48031145", "0.48029292", "0.47978708", "0.47978708", "0.47969794", "0.47930568", "0.47833708", "0.47830594", "0.475822", "0.4746563", "0.4742469", "0.47339928", "0.47301403", "0.4729905", "0.47298658", "0.47259912", "0.46973822", "0.46880558", "0.46859837", "0.46823692", "0.46783164", "0.4676922", "0.46767393", "0.4674233", "0.46602544", "0.46459895", "0.464357", "0.4642451", "0.46328574", "0.46319517", "0.46275905", "0.46226242", "0.46195737", "0.46107525", "0.46059126", "0.46048835", "0.45975393", "0.45968816", "0.45928597", "0.45884523", "0.4584109", "0.45559317", "0.45539317", "0.4552006", "0.45493272", "0.45432392", "0.45404464", "0.4535644", "0.45328182", "0.45324844", "0.4531768", "0.4526109", "0.45196456", "0.45170513", "0.45160148", "0.45106664", "0.4479735", "0.44749966", "0.4474755", "0.4467254", "0.44628334", "0.44621494", "0.44613826", "0.4458193", "0.44564876", "0.44562432" ]
0.5882572
1
Generate a value object that contain summary information about links, biomaterials, and datavectors
ExpressionExperimentDetailsValueObject generateSummary( Long id );
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<ChargeSummary> value();", "public void getValues(){\r\n //Get Values \r\n int k=0;\r\n String[] var;\r\n String evar;\r\n \r\n for (int i=0; i<linkVector.size(); i++){\r\n var= (String[]) linkVector.elementAt(i);\r\n evar=var[1];\r\n try { \r\n varContextField= varContextFields[linkIndex[k]]; \r\n switch (linkType[k++]){\r\n case DOUBLE: varContextField.setDouble(varContextObject,getDouble(evar)); break;\r\n case ARRAYDOUBLE: varContextField.set(varContextObject,getDoubleArray(evar)); break;\r\n case ARRAYDOUBLE2D: varContextField.set(varContextObject,getDoubleArray2D(evar)); break;\r\n case STRING: varContextField.set(varContextObject,getString(evar)); break; \r\n }\r\n \r\n } catch (java.lang.IllegalAccessException e) {\r\n System.out.println(\"Error Step: getting a value \" + e);\r\n } \r\n } \r\n }", "public String toString()\n {\n return \"Label: \" + label + \", Value: \" + value + \", List: \"+linkString()\n + \", Edges: \" + edgeString() + \", Visited: \" + visited + \", Previous: \"\n + previous.getLabel() + \", Distance From Source: \" + distanceFromSource;\n }", "public String toString() {\n StringBuilder sb = new StringBuilder();\n return sb.append(summary).append(\" is \").append(getValueDescription()).toString();\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getBias() != null)\n sb.append(\"Bias: \").append(getBias()).append(\",\");\n if (getExplainability() != null)\n sb.append(\"Explainability: \").append(getExplainability()).append(\",\");\n if (getModelQuality() != null)\n sb.append(\"ModelQuality: \").append(getModelQuality()).append(\",\");\n if (getModelDataQuality() != null)\n sb.append(\"ModelDataQuality: \").append(getModelDataQuality());\n sb.append(\"}\");\n return sb.toString();\n }", "public String toString() {\n return \"\" + \"Magic=\" + Magic // NOI18N\n + \", Version=\" + Version // NOI18N\n + \", Reserved=\" + Reserved // NOI18N\n + \", StringsOffset=\" + StringsOffset // NOI18N\n + \", NumEntries=\" + NumEntries // NOI18N\n + \", NumBuckets=\" + NumBuckets // NOI18N\n + \", MaxValueLength=\" + MaxValueLength; // NOI18N\n }", "public Item2Vector<Summary> getSummaries() { return summaries; }", "org.hl7.fhir.SampledData getValueSampledData();", "public ModelInfo generateInfo() { \n ModelInfo info = new ModelInfo();\n \n // Store basic info\n info.author = Author;\n info.citation = Citation;\n info.description = Description;\n info.property = Property;\n info.training = Model.TrainingStats.NumberTested + \" entries: \" + TrainingSet;\n info.notes = Notes;\n info.trainTime = new SimpleDateFormat(\"dMMMyy HH:mm z\").format(Model.getTrainTime());\n \n // Store units or class names\n if (Model instanceof AbstractClassifier) {\n info.classifier = true;\n info.units = \"\";\n AbstractClassifier clfr = (AbstractClassifier) Model;\n boolean started = false;\n for (String name : clfr.getClassNames()) {\n if (started) {\n info.units += \";\";\n }\n info.units += name;\n started = true;\n }\n } else {\n info.classifier = false;\n info.units = Units;\n }\n \n // Store names of models\n info.dataType = Dataset.printDescription(true);\n info.modelType = Model.printDescription(true);\n \n // Store validation performance data\n info.valMethod = Model.getValidationMethod();\n if (Model.isValidated()) {\n info.valScore = Model.ValidationStats.getStatistics();\n }\n \n return info;\n }", "public String toString()\n\t{\n\t\treturn DESCRIPTIONS[value];\n\t}", "@Override\n\tvoid putData() {\n\t\tSystem.out.println(\"Brand : \"+brand);\n\t\tSystem.out.println(\"Model : \"+model);\n\t\tSystem.out.println(\"Year of manufacture : \"+year_of_manufacture);\n\t\tSystem.out.println(\"CC : \"+cc);\n\t}", "public String toString(){\r\n\t\tString aux = \"\";\r\n\t\tString ending = \",\";\r\n\t\tfor (int i=0; i<numInputAttributes; i++){\r\n\t\t\tif (i == numInputAttributes-1 &&\r\n\t\t\t\t\tnumOutputAttributes == 0) ending = \"\";\r\n\t\t\tswitch(Attributes.getInputAttribute(i).getType()){\r\n\t\t\tcase Attribute.NOMINAL:\r\n\t\t\t\taux += nominalValues[0][i]; \r\n\t\t\t\tbreak;\r\n\t\t\tcase Attribute.INTEGER:\r\n\t\t\t\taux += (new Integer((int)realValues[0][i])).toString();\r\n\t\t\t\tbreak;\r\n\t\t\tcase Attribute.REAL:\r\n\t\t\t\taux += (new Double (realValues[0][i])).toString();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\taux += ending;\r\n\t\t}\r\n\t\tending = \",\";\r\n\t\tfor (int i=0; i<numOutputAttributes; i++){\r\n\t\t\tif (i == numOutputAttributes-1) ending = \"\";\r\n\t\t\tswitch(Attributes.getOutputAttribute(i).getType()){\r\n\t\t\tcase Attribute.NOMINAL:\r\n\t\t\t\taux += nominalValues[1][i]; \r\n\t\t\t\tbreak;\r\n\t\t\tcase Attribute.INTEGER:\r\n\t\t\t\taux += (new Integer((int)realValues[1][i])).toString();\r\n\t\t\t\tbreak;\r\n\t\t\tcase Attribute.REAL:\r\n\t\t\t\taux += (new Double(realValues[1][i])).toString();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\taux += ending;\r\n\t\t} \r\n\t\treturn aux;\r\n\t}", "public String toString() {\n return label + \"(\" + MathUtil.doubleString(value, 1) + \")\\tweight: \" + MathUtil.doubleString(weight, 2) + \"\\tFeatureVector: \" + featureVector.toString();\n }", "public String getSummary();", "@Override\n\tpublic Double metricValue() {\n\t\tthis.totalSampleSize = (int) Math.min(MAX_FQURIS_PER_TLD, (Math.round((double) totalURIs * POPULATION_PERCENTAGE)));\n\t\tList<String> lstUrisToDeref = new ArrayList<String>(totalSampleSize);\t\n\n\t\t\n\t\tfor(Tld tld : this.tldsReservoir.getItems()){\n\t\t\t//Work out ratio for the number of maximum TLDs in Reservior\n//\t\t\tdouble totalRatio = ((double) tldCount.get(tld.getUri())) * POPULATION_PERCENTAGE; // ratio between the total number of URIs of a TLD in a dataset against the overall total number of URIs\n//\t\t\tdouble representativeRatio = totalRatio / ((double) totalURIs * POPULATION_PERCENTAGE); // the ratio of the URIs of a TLD against the population sample for all URIs in a dataset\n//\t\t\tlong maxRepresentativeSample = Math.round(representativeRatio * (double) MAX_FQURIS_PER_TLD); // how big should the final reservior for a TLD be wrt the representative ratio\n\t\t\t\n\t\t\tlong maxRepresentativeSample = Math.round(((double) this.totalSampleSize / (double) totalURIs) * ((double) tldCount.get(tld.getUri())));\n\t\t\t// Re-sample the sample to have the final representative sample\n\t\t\tif (maxRepresentativeSample > 0){\n\t\t\t\tReservoirSampler<String> _tmpRes = new ReservoirSampler<String>((int)maxRepresentativeSample, true);\n\t\t\t\n\t\t\t\tfor(String uri : tld.getfqUris().getItems()){\n\t\t\t\t\t_tmpRes.add(uri);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tlstUrisToDeref.addAll(_tmpRes.getItems());\n\t\t\t}\n\t\t}\n\t\tdouble metricValue = 0.0;\n\t\t\n\t\tthis.totalNumberOfURIs = (lstUrisToDeref.size() + this.nonSemanticResources);\n\t\t\n\t\tthis.totalCorrectReportedTypes = this.checkForMisreportedContentType(lstUrisToDeref);\n\t\tmetricValue = (double)this.totalCorrectReportedTypes / this.totalNumberOfURIs;\n\t\t\n\t\treturn metricValue;\n\t}", "private void createValue()\n\t{\n\t\ttry\n\t\t{\n\t\t\tm_usage = ((DERBitString)new ASN1InputStream(\n\t\t\t\t\t new ByteArrayInputStream(getDEROctets())).readObject()).intValue();\n\t\t} catch (Exception a_e)\n\t\t{\n\t\t\tthrow new RuntimeException(\"Could not read key usage from byte array!\");\n\t\t}\n\t}", "protected Value() {\n flags = 0;\n num = null;\n str = null;\n object_labels = getters = setters = null;\n excluded_strings = included_strings = null;\n functionPartitions = null;\n functionTypeSignatures = null;\n var = null;\n hashcode = 0;\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getBitrate() != null)\n sb.append(\"Bitrate: \").append(getBitrate()).append(\",\");\n if (getBitstreamMode() != null)\n sb.append(\"BitstreamMode: \").append(getBitstreamMode()).append(\",\");\n if (getCodingMode() != null)\n sb.append(\"CodingMode: \").append(getCodingMode()).append(\",\");\n if (getDialogueIntelligence() != null)\n sb.append(\"DialogueIntelligence: \").append(getDialogueIntelligence()).append(\",\");\n if (getDownmixControl() != null)\n sb.append(\"DownmixControl: \").append(getDownmixControl()).append(\",\");\n if (getDynamicRangeCompressionLine() != null)\n sb.append(\"DynamicRangeCompressionLine: \").append(getDynamicRangeCompressionLine()).append(\",\");\n if (getDynamicRangeCompressionRf() != null)\n sb.append(\"DynamicRangeCompressionRf: \").append(getDynamicRangeCompressionRf()).append(\",\");\n if (getDynamicRangeControl() != null)\n sb.append(\"DynamicRangeControl: \").append(getDynamicRangeControl()).append(\",\");\n if (getLoRoCenterMixLevel() != null)\n sb.append(\"LoRoCenterMixLevel: \").append(getLoRoCenterMixLevel()).append(\",\");\n if (getLoRoSurroundMixLevel() != null)\n sb.append(\"LoRoSurroundMixLevel: \").append(getLoRoSurroundMixLevel()).append(\",\");\n if (getLtRtCenterMixLevel() != null)\n sb.append(\"LtRtCenterMixLevel: \").append(getLtRtCenterMixLevel()).append(\",\");\n if (getLtRtSurroundMixLevel() != null)\n sb.append(\"LtRtSurroundMixLevel: \").append(getLtRtSurroundMixLevel()).append(\",\");\n if (getMeteringMode() != null)\n sb.append(\"MeteringMode: \").append(getMeteringMode()).append(\",\");\n if (getSampleRate() != null)\n sb.append(\"SampleRate: \").append(getSampleRate()).append(\",\");\n if (getSpeechThreshold() != null)\n sb.append(\"SpeechThreshold: \").append(getSpeechThreshold()).append(\",\");\n if (getStereoDownmix() != null)\n sb.append(\"StereoDownmix: \").append(getStereoDownmix()).append(\",\");\n if (getSurroundExMode() != null)\n sb.append(\"SurroundExMode: \").append(getSurroundExMode());\n sb.append(\"}\");\n return sb.toString();\n }", "public String toString() {\n return \"[\" + this.getNoLink() + \"|\" + this.getValue() + \"|\" + this.getYesLink() + \"]\";\n }", "@Override\n\tpublic String getDesription() {\n\t\treturn \"structure based process similarity metric using Jaccard coefficient\";\n\t}", "@Override\r\n\tpublic String toString() {\r\n\t\treturn type+\"(\"+id+\",\"+\"(\"+value+\")\"+\")\";\r\n\t}", "java.lang.String getSummary();", "Values values();", "@Override\r\n\t\tpublic String toString() {\n\t\t\treturn \" \" + wt + \"- \" + val;\r\n\t\t}", "public abstract String getDescription(Object value);", "@Override\r\n public String toString() {\r\n return this.objectName + \"{Name: \" + this.getName() + \", index: \" + this.getIndexList() + \", Measured m/z: \" + this.getMeasureValues() + \", Intensities: \" + this.getItensityValues() + \"}\";\r\n }", "public void createValue() {\n value = new AES_GetBusa_Lib_1_0.AES_GetBusa_Request();\n }", "double[] getReferenceValues();", "@Override\r\n public String toString() {\r\n final StringBuilder strBuild = new StringBuilder();\r\n \r\n AttributeUtil.appendIfNotNull(strBuild, getName());\r\n strBuild.append(EIDASValues.ATTRIBUTE_TUPLE_SEP.toString());\r\n AttributeUtil.appendIfNotNull(strBuild, String.valueOf(isRequired()));\r\n strBuild.append(EIDASValues.ATTRIBUTE_TUPLE_SEP.toString());\r\n strBuild.append('[');\r\n \r\n if (isEmptyValue()) {\r\n if (!isEmptyComplexValue()) {\r\n AttributeUtil.appendIfNotNull(strBuild, AttributeUtil.mapToString(\r\n getComplexValue(), EIDASValues.ATTRIBUTE_VALUE_SEP.toString()));\r\n }\r\n } else {\r\n AttributeUtil.appendIfNotNull(\r\n strBuild,\r\n AttributeUtil.listToString(getValue(),\r\n EIDASValues.ATTRIBUTE_VALUE_SEP.toString()));\r\n }\r\n \r\n strBuild.append(']');\r\n strBuild.append(EIDASValues.ATTRIBUTE_TUPLE_SEP.toString());\r\n AttributeUtil.appendIfNotNull(strBuild, getStatus());\r\n strBuild.append(EIDASValues.ATTRIBUTE_SEP.toString());\r\n \r\n return strBuild.toString();\r\n }", "List<Pair<String, byte[]>> generateSample(Object descriptor);", "@Override\r\n public String toString() {\r\n StringBuilder builder = new StringBuilder(DEFAULT_DATA_DTO_SIZE);\r\n builder.append(\"{'name':'\").append(name).append(\",'value':\").append(value).append(\"},\");\r\n return builder.toString();\r\n }", "public NodeInfo(long value, double weight, int maxSocialProofTypeSize) {\n this.value = value;\n this.nodeMetadata = EMPTY_NODE_META_DATA;\n this.weight = weight;\n this.numVisits = 1;\n this.socialProofs = new SmallArrayBasedLongToDoubleMap[maxSocialProofTypeSize];\n }", "public NodeInfo(long value, int[][] nodeMetadata, double weight, int maxSocialProofTypeSize) {\n this.value = value;\n this.nodeMetadata = nodeMetadata;\n this.weight = weight;\n this.numVisits = 1;\n this.socialProofs = new SmallArrayBasedLongToDoubleMap[maxSocialProofTypeSize];\n }", "@Override\n public Object getData() {\n return blockValues.toString();\n }", "@Override\n public String toString() {\n\tStringBuilder output = new StringBuilder();\n\tif (ontology != null) {\n\t output.append(\"\\nKnowledgebase Metrics\\nInstances: \")\n\t\t .append(countIndividuals()).append(\"\\nTotal Instances: \")\n\t\t .append(countTotalIndividuals())\n\t\t .append(\"\\nClass Richness: \").append(getClassRichness())\n\t\t .append(\"\\nAverage Population: \")\n\t\t .append(getAveragePopulation())\n\t\t .append(\"\\nInstance Coverage: \")\n\t\t .append(getInstanceCoverage()).append(\"\\n\");\n\t}\n\treturn output.toString();\n }", "public String toString() {\n\t\t// WRITE YOUR CODE HERE!\n\t\tStringBuffer buffer = new StringBuffer();\n\t\tbuffer.append(\"Virtual dataset with \" +attributes.length+\" attribute(s) and \"+map.length+\" row(s)\"+ System.lineSeparator());\n\t\tbuffer.append(\"Dataset is a view over weather-nominal.csv\"+System.lineSeparator());\n\t\tbuffer.append(\"Row indices in this dataset (w.r.t its source dataset) [\");\n\n\t\tfor(int i = 0; i < map.length; i++){\n\t\t\tbuffer.append(map[i]);\n\t\t\tif(i!=map.length-1)\n\t\t\t\tbuffer.append(\",\");\n\t\t}\n\t\tbuffer.append(\"]\").append(System.lineSeparator());\n\t\tfor(int i =0; i<attributes.length; i++){\n\t\t\tbuffer.append(attributes[i]);\n\t\t\tbuffer.append(System.lineSeparator());\n\t\t}\n\t\treturn buffer.toString();\n\t}", "public String summaryInfo() {\n DecimalFormat form2 = new DecimalFormat(\"#,##0.0##\");\n String result = \"\";\n result += \"----- Summary for \" + getName() + \" -----\"; \n result += \"\\nNumber of Icosahedrons: \" + (numberOfIcosahedrons());\n result += \"\\nTotal Surface Area: \" \n + form2.format(totalSurfaceArea());\n result += \"\\nTotal Volume: \" + form2.format(totalVolume()); \n result += \"\\nAverage Surface Area: \" \n + form2.format(averageSurfaceArea());\n result += \"\\nAverage Volume: \" + form2.format(averageVolume());\n result += \"\\nAverage Surface/Volume Ratio: \" \n + form2.format(averageSurfaceToVolumeRatio());\n \n return result;\n }", "public void dumpValue() {\n // an implementation is only needed for very large hashrecords\n }", "public String toString(){\n\t\tStringBuilder s = new StringBuilder(\"\");\n\t\ts.append(\"\\nMD2 Model details\\n\");\n\t\ts.append(\"\\tThere are \" + numFrames + \" key framess\\n\");\n\t\ts.append(\"\\tThere are \"+ point.length + \" points (XYZ coordinates)\\n\");\n\t\ts.append(\"\\tFor rendering there are \" + glComannd.length + \" triangle strips/fans\\n\");\n\t\ts.append(\"\\t and these have \" + glVertex.length + \" vertex definitions\\n\");\n\t\ts.append(\"\\tThere are \" + state.length + \" animation sequences\\n\");\n\t\ts.append(\"Estimated memory used \" + memUsage() + \" bytes for model excluding texture.\");\n\n\t\treturn new String(s);\n\t}", "public String toString() {\n/* 106 */ return \"m= \" + this.b + \", n= \" + this.a + \", skipMSBP= \" + this.c + \", data.length= \" + ((this.d != null) ? (\"\" + this.d.length) : \"(null)\");\n/* */ }", "gov.nih.nlm.ncbi.www.MedlineSiDocument.MedlineSi.Type.Value xgetValue();", "public String getDesc() {\r\n return \"Randomly generated values for the scatter chart\";\r\n }", "@Override\n\t\tpublic String toString() {\n\t\t\treturn u + \" and \" + v + \" with weight \" + weight;\n\t\t}", "@Override public String toString() {\n return \"\" + \"Value=\" + Value; // NOI18N\n }", "private Collector<Double, DescriptiveStatistics, DescriptiveStatistics> descStatsCollector() {\n\n return Collector.of(DescriptiveStatistics::new,\n DescriptiveStatistics::addValue,\n (s1, s2) -> DoubleStream.concat(DoubleStream.of(s1.getValues()),\n DoubleStream.of(s1.getValues()))\n .collect(DescriptiveStatistics::new,\n DescriptiveStatistics::addValue,\n (ds1, ds2) -> DoubleStream.of(s2.getValues())\n .forEach(s1::addValue)));\n }", "private JsonNode jsonSummary(ObjectMapper mapper) {\n ObjectNode summary = mapper.createObjectNode();\n summary.put(\"packages\", catalog.getPackages().size());\n summary.put(\"sources\", catalog.getSources().size());\n summary.put(\"cycles\", catalog.getCycles().size());\n summary.put(\"cycleSegments\", catalog.getCycleSegments().size());\n return summary;\n }", "public interface TestData {\n RawCard RAW_FLAMEWAVE_INVOKER =\n ImmutableRawCard.builder()\n .name(\"Flamewave Invoker\")\n .rarity(\"Uncommon\")\n .cmc(3.0)\n .text(\"{7}{R}: Flamewave Invoker deals 5 damage to target player or planeswalker.\")\n .manaCost(\"{2}{R}\")\n .colorIdentity(ImmutableSet.of(\"R\"))\n .colors(ImmutableSet.of(\"Red\"))\n .types(ImmutableSet.of(\"Creature\"))\n .build();\n\n RawCard RAW_CANOPY_SPIDER =\n ImmutableRawCard.builder()\n .name(\"Canopy Spider\")\n .rarity(\"Common\")\n .cmc(2.0)\n .text(\"Reach (This creature can block creatures with flying.)\")\n .manaCost(\"{1}{G}\")\n .colorIdentity(ImmutableSet.of(\"G\"))\n .colors(ImmutableSet.of(\"Green\"))\n .types(ImmutableSet.of(\"Creature\"))\n .build();\n\n RawCardToCardMapper MAPPER = new RawCardToCardMapper();\n\n Card MAPPED_FLAMEWAVE_INVOKER = MAPPER.convert(RAW_FLAMEWAVE_INVOKER);\n Card MAPPED_CANOPY_SPIDER = MAPPER.convert(RAW_CANOPY_SPIDER);\n}", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getInstanceTypes() != null)\n sb.append(\"InstanceTypes: \").append(getInstanceTypes()).append(\",\");\n if (getTargetCapacity() != null)\n sb.append(\"TargetCapacity: \").append(getTargetCapacity()).append(\",\");\n if (getTargetCapacityUnitType() != null)\n sb.append(\"TargetCapacityUnitType: \").append(getTargetCapacityUnitType()).append(\",\");\n if (getSingleAvailabilityZone() != null)\n sb.append(\"SingleAvailabilityZone: \").append(getSingleAvailabilityZone()).append(\",\");\n if (getRegionNames() != null)\n sb.append(\"RegionNames: \").append(getRegionNames()).append(\",\");\n if (getInstanceRequirementsWithMetadata() != null)\n sb.append(\"InstanceRequirementsWithMetadata: \").append(getInstanceRequirementsWithMetadata()).append(\",\");\n if (getMaxResults() != null)\n sb.append(\"MaxResults: \").append(getMaxResults()).append(\",\");\n if (getNextToken() != null)\n sb.append(\"NextToken: \").append(getNextToken());\n sb.append(\"}\");\n return sb.toString();\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"Material [kd=\" + kd + \", ks=\" + ks + \", kr=\" + kr + \", kt=\" + kt + \", nShininess=\" + nShininess + \"]\";\n\t}", "@Override\n public void construct() {\n Metric metric =\n new CPU_Utilization(1) {\n @Override\n public MetricFlowUnit gather(Queryable queryable) {\n return MetricFlowUnit.generic();\n }\n };\n Symptom earthSymptom =\n new Symptom(1) {\n @Override\n public SymptomFlowUnit operate() {\n return SymptomFlowUnit.generic();\n }\n\n @Override\n public String name() {\n return EARTH_KEY;\n }\n };\n Symptom moonSymptom =\n new Symptom(1) {\n @Override\n public SymptomFlowUnit operate() {\n return SymptomFlowUnit.generic();\n }\n\n public String name() {\n return MOON_KEY;\n }\n };\n\n Metric skyLabCpu =\n new CPU_Utilization(1) {\n @Override\n public MetricFlowUnit gather(Queryable queryable) {\n return MetricFlowUnit.generic();\n }\n };\n Symptom skyLabsSymptom =\n new Symptom(1) {\n @Override\n public SymptomFlowUnit operate() {\n return SymptomFlowUnit.generic();\n }\n\n public String name() {\n return SKY_LABS_KEY;\n }\n };\n\n addLeaf(metric);\n addLeaf(skyLabCpu);\n earthSymptom.addAllUpstreams(Collections.singletonList(metric));\n moonSymptom.addAllUpstreams(Collections.singletonList(earthSymptom));\n skyLabsSymptom.addAllUpstreams(\n new ArrayList<Node<?>>() {\n {\n add(earthSymptom);\n add(moonSymptom);\n add(skyLabCpu);\n }\n });\n\n metric.addTag(LOCUS_KEY, EARTH_KEY);\n earthSymptom.addTag(LOCUS_KEY, EARTH_KEY);\n moonSymptom.addTag(LOCUS_KEY, MOON_KEY);\n skyLabCpu.addTag(LOCUS_KEY, SKY_LABS_KEY);\n skyLabsSymptom.addTag(LOCUS_KEY, SKY_LABS_KEY);\n }", "protected StringBuffer getAttributes()\r\n\t{\r\n\t\t// Output buffer\r\n\t\tStringBuffer transformBuff\t= new StringBuffer();\r\n\t\t// The various transformation buffers.\r\n\t\tStringBuffer rotateBuff\t\t= new StringBuffer();\r\n\t\tStringBuffer translateBuff\t= new StringBuffer();\r\n\t\tStringBuffer scaleBuff \t\t= new StringBuffer();\r\n\r\n\t\t\r\n\t\t// now let's calculate our transformation information if any.\r\n\t\t////////////////// Rotate the object ////////////\r\n\t\t// you may want to play with this if it doesn't work\r\n\t\t// Transformation a followed by tranformation b is not the\r\n\t\t// same as transformation b followed by transformation a.\r\n\t\t// Page 65 SVG Essentials, J. David Eisenberg, O'Reilly Press.\r\n\t\tif (Rotation != 0.0)\r\n\t\t{\r\n\t\t\trotateBuff.append(\"rotate(\");\r\n\t\t\trotateBuff.append(Rotation + \" \");\r\n\t\t\t// Blocks are rotated around their insertion point.\r\n\t\t\trotateBuff.append(Anchor.toTransformCoordinate());\r\n\t\t\trotateBuff.append(\") \");\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\r\n\r\n\t\t///////////////// Scale the object //////////////\r\n\t\tif ((xScale != 1.0) || (yScale != 1.0))\r\n\t\t{\r\n\t\t\tscaleBuff.append(\" scale(\"+xScale);\r\n\t\t\tif (xScale != yScale)\r\n\t\t\t\tscaleBuff.append(\",\"+yScale);\r\n\t\t\tscaleBuff.append(\")\");\r\n\t\t\t\r\n\t\t\t// Now we have to compensate for any scaling in the y axis \r\n\t\t\t// because Dxf scales objects from the lower left corner of\r\n\t\t\t// the drawing and SVG scales from the top left.\r\n\t\t\t//\r\n\t\t\t// This requires a little explanation as it took some time \r\n\t\t\t// to work out exactly what is going on between DXF and SVG.\r\n\t\t\t//\r\n\t\t\t// Blocks in AutoCAD have their own space. When you choose \r\n\t\t\t// an insertion point for a block you are telling the block\r\n\t\t\t// that it's new origin is the insert point, not the drawing's\r\n\t\t\t// origin.\r\n\t\t\t//\r\n\t\t\t// Dxf2Svg reads the blocks section of the DXF and interprets the\r\n\t\t\t// entities within a block literally and converts them into \r\n\t\t\t// XML entities with the insert point as their origin.\r\n\t\t\t// \r\n\t\t\t// Now DXF's drawing origin is in the bottom lefthand corner of the page.\r\n\t\t\t// SVG's origin is the top left hand corner. That means that all blocks \r\n\t\t\t// are drawn in reference to the lower left corner. We have already converted\r\n\t\t\t// the blocks entities to assume that the origin is SVG style (top left)\r\n\t\t\t// so when we try to specify an insert point in SVG, we have a problem. The\r\n\t\t\t// references are from different corners of the page.\r\n\t\t\t//\r\n\t\t\t// To compensate blocks have two points; an Anchor like all other graphic \r\n\t\t\t// objects and a Virtual DXF Coordinate (VDC). The VDC is basically\r\n\t\t\t// the x, and y values from the DXF file, converted to USR_UNITS.\r\n\t\t\t// That's all. It is not converted to SVG space. \r\n\t\t\t// \r\n\t\t\t// First you \r\n\t\t\t// must imagine that you are overlaying SVG space (0,0 top left) on top\r\n\t\t\t// of DXF space (0,0 bottom left). To get objects to appear in the same\r\n\t\t\t// location as they did in the DXF you must move that insertion point\r\n\t\t\t// up above the SVG y = 0 line (so y becomes negative in SVG).\r\n\t\t\t// This requires knowing the height of \r\n\t\t\t// the drawing which SvgUtil.java can provide. Once you know the height\r\n\t\t\t// you find out how subtract the anchor's y coordinate from the height\r\n\t\t\t// thus in effect you are flipping between the two drawing spaces.\r\n\t\t\t//\r\n\t\t\t// Inserting an object is easy now; just use the VDC as the anchor and \r\n\t\t\t// reference the block within a &lt;g&gt; tag. If you want to scale\r\n\t\t\t// that object, things get a little more complicated. The y\r\n\t\t\t// value is in the negative 'y' range of the SVG space. Any scaling of\r\n\t\t\t// that object will be in reference to that point.\r\n\t\t\t//\r\n\t\t\t// So to get the object to appear in it's original position we must move\r\n\t\t\t// it further up into negative y SVG space by the distance it would \r\n\t\t\t// have grown during transformation. I.e. if the object grew by 25% or\r\n\t\t\t// 1.25 in AutoCAD, and the object is 1 inch in height then the growth\r\n\t\t\t// through scaling is 1 * (1.25 -1) or 1 * 0.25 or 0.25 inches.\r\n\t\t\t//\r\n\t\t\t// Now we need to now the distance of the VDC from the SVG object's\r\n\t\t\t// origin. That should be the height of the drawing, but to be sure \r\n\t\t\t// add the absolute value of the distance from SVG y = 0 to the object's\r\n\t\t\t// origin in negative y SVG space, and add it to the distance from \r\n\t\t\t// SVG y = 0 to the VDC y coordinate. Now if you multiply that distance\r\n\t\t\t// by the above 0.25, and subtract that from the SVG origin point\r\n\t\t\t// in negative SVG y space you will have compensated for the shift of \r\n\t\t\t// due to scaling.\r\n\t\t\t//\r\n\t\t\t// We don't need to do anything with the x value because it is \r\n\t\t\t// just the VDC x value, which has a one-to-one relationship to\r\n\t\t\t// SVG space except that it is not in SVG space, but in DXF space.\r\n\t\t\t//\r\n\t\t\t// I'm sorry this would have benifited from a picture so perhaps you\r\n\t\t\t// should browse through the paper documentation as there is a diagram\r\n\t\t\t// that I used to formulate the algorithm.\r\n\t\t\t\r\n\t\t\t//double VDCx = virtualDxfPoint.getX();\r\n\t\t\tdouble VDCy = virtualDxfPoint.getY();\r\n\t\t\t//double Ax\t= Anchor.getX();\r\n\t\t\tdouble Ay\t= Anchor.getY();\r\n\t\t\t\r\n\t\t\t////////////////////////////////\r\n\t\t\t//VDCx = VDCx;\r\n\t\t\tVDCy = VDCy - ((Ay + Math.abs(VDCy))*(yScale -1));\r\n\t\t\t////////////////////////////////\r\n\r\n\t\t\t// We do not need to set the x value for this point. I don't know why.\r\n\t\t\t//virtualDxfPoint.setXUU(VDCx);\r\n\t\t\tvirtualDxfPoint.setYUU(VDCy);\r\n\t\t}\r\n\t\t\r\n\t\t// We do this last because we might have adjusted the virtualDxfPoint's y \r\n\t\t// value, but the transformation is best done after the rotation and it seems\r\n\t\t// before the scale. \r\n\t\ttranslateBuff.append(\"translate(\");\r\n\t\ttranslateBuff.append(virtualDxfPoint.toTransformCoordinate());\r\n\t\ttranslateBuff.append(\")\");\r\n\t\t\r\n\t\t\r\n\t\t// Put all three parts together now.\r\n\t\ttransformBuff.append(\" transform=\\\"\");\r\n\t\t// Can only do this with Java 1.4\r\n\t\t// The transformation ordering can be changed here.\r\n\t\ttransformBuff.append(rotateBuff);\r\n\t\ttransformBuff.append(translateBuff);\r\n\t\ttransformBuff.append(scaleBuff);\t// this may be an empty buffer.\r\n\t\t// closing quote on the transformation string.\r\n\t\ttransformBuff.append(\"\\\"\");\r\n\t\ttransformBuff.append(getAdditionalAttributes());\r\n\t\t\r\n\t\treturn transformBuff;\r\n\t}", "public org.jboss.com.sun.org.omg.CORBA.ValueDefPackage.FullValueDescription meta(String x)\n {\n org.omg.CORBA.portable.InputStream _in = null;\n try\n {\n org.omg.CORBA.portable.OutputStream _out = _request(\"meta\", true);\n org.jboss.com.sun.org.omg.CORBA.RepositoryIdHelper.write(_out, x);\n _in = _invoke(_out);\n org.jboss.com.sun.org.omg.CORBA.ValueDefPackage.FullValueDescription __result = org.jboss.com.sun.org.omg.CORBA.ValueDefPackage.FullValueDescriptionHelper\n .read(_in);\n return __result;\n }\n catch (org.omg.CORBA.portable.ApplicationException _ex)\n {\n _in = _ex.getInputStream();\n String _id = _ex.getId();\n throw new org.omg.CORBA.MARSHAL(_id);\n }\n catch (org.omg.CORBA.portable.RemarshalException _rm)\n {\n return meta(x);\n }\n finally\n {\n _releaseReply(_in);\n }\n }", "public DataImpl getData() {\n RealTupleType domain = overlay.getDomainType();\n TupleType range = overlay.getRangeType();\n \n float[][] setSamples = nodes;\n float r = color.getRed() / 255f;\n float g = color.getGreen() / 255f;\n float b = color.getBlue() / 255f;\n float[][] rangeSamples = new float[3][setSamples[0].length];\n Arrays.fill(rangeSamples[0], r);\n Arrays.fill(rangeSamples[1], g);\n Arrays.fill(rangeSamples[2], b);\n \n FlatField field = null;\n try {\n GriddedSet fieldSet = new Gridded2DSet(domain,\n setSamples, setSamples[0].length, null, null, null, false);\n FunctionType fieldType = new FunctionType(domain, range);\n field = new FlatField(fieldType, fieldSet);\n field.setSamples(rangeSamples);\n }\n catch (VisADException exc) { exc.printStackTrace(); }\n catch (RemoteException exc) { exc.printStackTrace(); }\n return field;\n }", "HashMap<Value, HashSet<Value>> getLayerDatasetDescriptions();", "@Override\n public String toString() {\n return material;\n }", "public com.sun.org.omg.CORBA.ValueDefPackage.FullValueDescription meta (String x)\n {\n org.omg.CORBA.portable.InputStream _in = null;\n try {\n org.omg.CORBA.portable.OutputStream _out = _request (\"meta\", true);\n com.sun.org.omg.CORBA.RepositoryIdHelper.write (_out, x);\n _in = _invoke (_out);\n com.sun.org.omg.CORBA.ValueDefPackage.FullValueDescription __result = com.sun.org.omg.CORBA.ValueDefPackage.FullValueDescriptionHelper.read (_in);\n return __result;\n } catch (org.omg.CORBA.portable.ApplicationException _ex) {\n _in = _ex.getInputStream ();\n String _id = _ex.getId ();\n throw new org.omg.CORBA.MARSHAL (_id);\n } catch (org.omg.CORBA.portable.RemarshalException _rm) {\n return meta (x);\n } finally {\n _releaseReply (_in);\n }\n }", "@Override\n\tpublic String data() {\n\t\treturn \"\" + rehashes + \" \" + loadingFactor;\n\t}", "protected abstract String listLearnValues();", "public String toString() {\n\t String outPut = \"byteValue(): \" + byteValue()\n\t \t\t+ \"\\nshortValue(): \" + shortValue()\n\t \t\t+ \"\\nintValue(): \" + intValue()\n\t \t\t+ \"\\nlongValue(): \" + longValue()\n\t \t\t+ \"\\nfloatValue(): \" + floatValue()\n\t \t\t+ \"\\ndoubleValue(): \" + doubleValue();\n\t \n\t return outPut;\n }", "@Override\n public byte[] getValue() {\n return MetricUtils.concat2(topologyId, getTag(), sampleRate).getBytes();\n }", "public String getSummary() {\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\r\n\t\tsb.append( \"<html> Carrying <b>\");\r\n\t\tsb.append( getEquipmentCount() );\r\n\t\tsb.append( \"</b> weighing <b>\" );\r\n\t\tsb.append( getEquipmentWeight() );\r\n\t\tsb.append( \"</b>lbs</html>\");\r\n\t\treturn sb.toString();\r\n\t}", "public String summaryInfo() {\r\n \r\n DecimalFormat df = new DecimalFormat(\"#,##0.0##\");\r\n String result = \"\";\r\n result = \"----- Summary for \" + getName() + \" -----\";\r\n result += \"\\nNumber of Ellipsoid Objects: \" + list.size();\r\n result += \"\\nTotal Volume: \" + df.format(totalVolume()) + \" cubic units\";\r\n result += \"\\nTotal Surface Area: \" + df.format(totalSurfaceArea()) \r\n + \" square units\";\r\n result += \"\\nAverage Volume: \" + df.format(averageVolume()) \r\n + \" cubic units\";\r\n result += \"\\nAverage Surface Area: \" + df.format(averageSurfaceArea()) \r\n + \" square units\";\r\n \r\n return result;\r\n }", "public MaterialData getContents() {\n/* 57 */ switch (getData()) {\n/* */ case 1:\n/* 59 */ return new MaterialData(Material.RED_ROSE);\n/* */ case 2:\n/* 61 */ return new MaterialData(Material.YELLOW_FLOWER);\n/* */ case 3:\n/* 63 */ return new Tree(TreeSpecies.GENERIC);\n/* */ case 4:\n/* 65 */ return new Tree(TreeSpecies.REDWOOD);\n/* */ case 5:\n/* 67 */ return new Tree(TreeSpecies.BIRCH);\n/* */ case 6:\n/* 69 */ return new Tree(TreeSpecies.JUNGLE);\n/* */ case 7:\n/* 71 */ return new MaterialData(Material.RED_MUSHROOM);\n/* */ case 8:\n/* 73 */ return new MaterialData(Material.BROWN_MUSHROOM);\n/* */ case 9:\n/* 75 */ return new MaterialData(Material.CACTUS);\n/* */ case 10:\n/* 77 */ return new MaterialData(Material.DEAD_BUSH);\n/* */ case 11:\n/* 79 */ return new LongGrass(GrassSpecies.FERN_LIKE);\n/* */ } \n/* 81 */ return null;\n/* */ }", "public String toString() {\r\n\t\treturn modifier + \" \" + value + \" \" + measure;\r\n\t}", "@Secured({ \"GROUP_AGENT\" })\n Collection<ExpressionExperimentDetailsValueObject> generateSummaryObjects();", "private Values(){}", "public org.omg.uml.behavioralelements.commonbehavior.Instance getValue();", "@DISPID(18)\n\t// = 0x12. The runtime will prefer the VTID if present\n\t@VTID(29)\n\t@ReturnValue(type = NativeType.Dispatch)\n\tcom4j.Com4jObject buildSummaryGraph(\n\t\t\t@Optional @DefaultValue(\"\") java.lang.String xAxisField,\n\t\t\t@Optional @DefaultValue(\"\") java.lang.String groupByField,\n\t\t\t@Optional @DefaultValue(\"\") java.lang.String sumOfField,\n\t\t\t@Optional @DefaultValue(\"0\") int maxCols,\n\t\t\t@Optional @MarshalAs(NativeType.VARIANT) java.lang.Object filter,\n\t\t\t@Optional @DefaultValue(\"0\") boolean forceRefresh,\n\t\t\t@Optional @DefaultValue(\"0\") boolean showFullPath);", "public Map getValues()\n\t\t{\n\t\t\treturn m_structuredArtifact;\n\n\t\t}", "public String toString() {\r\n String modelString =\r\n \"value=\"\r\n + getValue()\r\n + \", \"\r\n + \"extent=\"\r\n + getExtent()\r\n + \", \"\r\n + \"min=\"\r\n + getMinimum()\r\n + \", \"\r\n + \"max=\"\r\n + getMaximum()\r\n + \", \"\r\n + \"adj=\"\r\n + getValueIsAdjusting();\r\n\r\n return getClass().getName() + \"[\" + modelString + \"]\";\r\n }", "public AXValue getDescription() {\n return description;\n }", "public String toString() {\r\n\t\treturn pDesc + \" \" + pWeight + \" lbs\";\r\n\t\t\t\t\r\n\t\t}", "@Override\n\tpublic String toString() {\n\t\treturn value;\n\t}", "public String toString() {\n String s = \"\";\n try {\n s += get_nodeid()+\"\\t\";\n //s += \" [nodeid=0x\"+Long.toHexString(get_nodeid())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += get_counter()+\"\\t\";\n //s += \" [counter=0x\"+Long.toHexString(get_counter())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \"\"+get_p_sendts()+\"\\t\";\n //s += \" [p_sendts=0x\"+Long.toHexString(get_p_sendts())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \"\"+get_receivets()+\"\\t\";\n //s += \" [receivets=0x\"+Long.toHexString(get_receivets())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \"\"+Float.toString(get_virtual_clk())+\"\\t\";\n //s += \" [virtual_clk=\"+Float.toString(get_virtual_clk())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \"\"+Float.toString(get_skew_cmp())+\"\\t\";\n //s += \" [skew_cmp=\"+Float.toString(get_skew_cmp())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \"\"+Float.toString(get_offset_cmp())+\"\";\n //s += \" [offset_cmp=\"+Float.toString(get_offset_cmp())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n return s;\n }", "@Override\n //Method for getting output from String declaration\n //First set of accessor/mutator that returns value as String\n public String toString(){\n return \"[\"+name+\",\"+type+\",\"+value+\"]\";\n }", "@Override\n public String toString() {\n return value();\n }", "public List<ProbeValue> getValues() {\n\treturn attributes;\n }", "@Override\n\tpublic String toString() {\n\t\treturn String.format(\"%s:%s\", type, value);\n\t}", "@Override\n public String toString() {\n return getClass().getSimpleName() + \"[\" + value + \"]\";\n }", "@Override\n public String toString() {\n return \"V\"+this.VS_ID+\"\\tNodes: \"+getNodes()[0]+\" & \"+getNodes()[1]+\"\\t\"+\"DC\\t\"+getValue()+\" V\";\n }", "public void createValue() {\n value = new GisInfoCaptureDO();\n }", "@Override\r\n public String dumpOf ()\r\n {\r\n StringBuilder sb = new StringBuilder();\r\n\r\n if (evaluation != null) {\r\n sb.append(String.format(\" evaluation=%s%n\", evaluation));\r\n }\r\n\r\n Shape physical = (getShape() != null) ? getShape().getPhysicalShape() : null;\r\n if (physical != null) {\r\n sb.append(String.format(\" physical=%s%n\", physical));\r\n }\r\n\r\n if (forbiddenShapes != null) {\r\n sb.append(String.format(\" forbiddenShapes=%s%n\", forbiddenShapes));\r\n }\r\n\r\n if (timeRational != null) {\r\n sb.append(String.format(\" rational=%s%n\", timeRational));\r\n }\r\n\r\n return sb.toString();\r\n }", "public interface INutritionInformation extends IStructuredValue{\r\n\t\r\n\t\r\n\t/**\r\n\t * The number of grams of protein.\r\n\t *\r\n\t */\r\n\t\r\n\tpublic Mass getProteinContent() throws ClassCastException;\r\n\t\r\n\tpublic void setProteinContent(Mass value) throws ClassCastException;\r\n\t/**\r\n\t * The number of grams of sugar.\r\n\t *\r\n\t */\r\n\t\r\n\tpublic Mass getSugarContent() throws ClassCastException;\r\n\t\r\n\tpublic void setSugarContent(Mass value) throws ClassCastException;\r\n\t/**\r\n\t * The number of grams of unsaturated fat.\r\n\t *\r\n\t */\r\n\t\r\n\tpublic Mass getUnsaturatedFatContent() throws ClassCastException;\r\n\t\r\n\tpublic void setUnsaturatedFatContent(Mass value) throws ClassCastException;\r\n\t/**\r\n\t * The number of calories.\r\n\t *\r\n\t */\r\n\t\r\n\tpublic Energy getCalories() throws ClassCastException;\r\n\t\r\n\tpublic void setCalories(Energy value) throws ClassCastException;\r\n\t/**\r\n\t * The number of grams of saturated fat.\r\n\t *\r\n\t */\r\n\t\r\n\tpublic Mass getSaturatedFatContent() throws ClassCastException;\r\n\t\r\n\tpublic void setSaturatedFatContent(Mass value) throws ClassCastException;\r\n\t/**\r\n\t * The serving size, in terms of the number of volume or mass.\r\n\t *\r\n\t */\r\n\t\r\n\tpublic String getServingSize() throws ClassCastException;\r\n\t\r\n\tpublic void setServingSize(String value) throws ClassCastException;\r\n\t/**\r\n\t * The number of grams of fiber.\r\n\t *\r\n\t */\r\n\t\r\n\tpublic Mass getFiberContent() throws ClassCastException;\r\n\t\r\n\tpublic void setFiberContent(Mass value) throws ClassCastException;\r\n\t/**\r\n\t * The number of grams of carbohydrates.\r\n\t *\r\n\t */\r\n\t\r\n\tpublic Mass getCarbohydrateContent() throws ClassCastException;\r\n\t\r\n\tpublic void setCarbohydrateContent(Mass value) throws ClassCastException;\r\n\t/**\r\n\t * The number of grams of fat.\r\n\t *\r\n\t */\r\n\t\r\n\tpublic Mass getFatContent() throws ClassCastException;\r\n\t\r\n\tpublic void setFatContent(Mass value) throws ClassCastException;\r\n\t/**\r\n\t * The number of grams of trans fat.\r\n\t *\r\n\t */\r\n\t\r\n\tpublic Mass getTransFatContent() throws ClassCastException;\r\n\t\r\n\tpublic void setTransFatContent(Mass value) throws ClassCastException;\r\n\t/**\r\n\t * The number of milligrams of cholesterol.\r\n\t *\r\n\t */\r\n\t\r\n\tpublic Mass getCholesterolContent() throws ClassCastException;\r\n\t\r\n\tpublic void setCholesterolContent(Mass value) throws ClassCastException;\r\n\t/**\r\n\t * The number of milligrams of sodium.\r\n\t *\r\n\t */\r\n\t\r\n\tpublic Mass getSodiumContent() throws ClassCastException;\r\n\t\r\n\tpublic void setSodiumContent(Mass value) throws ClassCastException;\r\n}", "public String toString(){\n\t\treturn \"Bernouli distribution [probability = \" + getProbability() + \"]\";\n\t}", "@Override\n public String toString(){\n return this.getValue();\n }", "public godot.wire.Wire.Plane.Builder getPlaneValueBuilder() {\n return getPlaneValueFieldBuilder().getBuilder();\n }", "public Instance(double values[],InstanceAttributes ats){\r\n\t\tAttribute curAt,allat[];\r\n\t\tint inOut,in,out,undef;\r\n\t\t\r\n\t\t//initialise structures\r\n\t\tanyMissingValue = new boolean[3];\r\n\t\tanyMissingValue[0] = false; \r\n\t\tanyMissingValue[1] = false;\r\n\t\tanyMissingValue[2] = false;\r\n\t\tif(ats==null){\r\n\t\t\tnumInputAttributes = Attributes.getInputNumAttributes();\r\n\t\t\tnumOutputAttributes = Attributes.getOutputNumAttributes();\r\n\t\t\tnumUndefinedAttributes = Attributes.getNumAttributes() - (numInputAttributes+numOutputAttributes);\r\n\t\t}else{\r\n\t\t\tnumInputAttributes = ats.getInputNumAttributes();\r\n\t\t\tnumOutputAttributes = ats.getOutputNumAttributes();\r\n\t\t\tnumUndefinedAttributes = ats.getNumAttributes() - (numInputAttributes+numOutputAttributes);\r\n\t\t}\r\n\t\tintNominalValues = new int[3][];\r\n\t\tnominalValues = new String[3][];\r\n\t\trealValues = new double[3][];\r\n\t\tmissingValues = new boolean[3][];\r\n\t\tnominalValues[0] = new String[numInputAttributes];\r\n\t\tnominalValues[1] = new String[numOutputAttributes];\r\n\t\tnominalValues[2] = new String[numUndefinedAttributes];\r\n\t\tintNominalValues[0] = new int[numInputAttributes];\r\n\t\tintNominalValues[1] = new int[numOutputAttributes];\r\n\t\tintNominalValues[2] = new int[numUndefinedAttributes];\r\n\t\trealValues[0] = new double[numInputAttributes];\r\n\t\trealValues[1] = new double[numOutputAttributes];\r\n\t\trealValues[2] = new double[numUndefinedAttributes];\r\n\t\tmissingValues[0] = new boolean[numInputAttributes];\r\n\t\tmissingValues[1] = new boolean[numOutputAttributes];\r\n\t\tmissingValues[2] = new boolean[numUndefinedAttributes];\r\n\r\n\t\tfor(int i=0;i<numInputAttributes;i++) missingValues[0][i]=false; \r\n\t\tfor(int i=0;i<numOutputAttributes;i++) missingValues[1][i]=false; \r\n\t\tfor(int i=0;i<numUndefinedAttributes; i++) missingValues[2][i]=false;\r\n\t\t\r\n\t\t//take the correct set of Attributes\r\n\t\tif(ats!=null){\r\n\t\t\tallat = ats.getAttributes();\r\n\t\t}else{\r\n\t\t\tallat = Attributes.getAttributes();\r\n\t\t}\r\n\r\n\t\t//fill the data structures\r\n\t\tin = out = undef = 0;\r\n\t\tfor(int i=0;i<values.length;i++){\r\n\t\t\tcurAt = allat[i];\r\n\t\t\tinOut = 2;\r\n\t\t\tif(curAt.getDirectionAttribute()==Attribute.INPUT)\r\n\t\t\t\tinOut = 0;\r\n\t\t\telse if(curAt.getDirectionAttribute()==Attribute.OUTPUT)\r\n\t\t\t\tinOut = 1;\r\n\t\t\t\r\n\t\t\t//is it missing?\r\n\t\t\tif(new Double(values[i]).isNaN()){\r\n\t\t\t\tif(inOut==0){\r\n\t\t\t\t\tmissingValues[inOut][in] = true;\r\n\t\t\t\t\tanyMissingValue[inOut] = true;\r\n\t\t\t\t\tin++;\r\n\t\t\t\t}else if(inOut==1){\r\n\t\t\t\t\tmissingValues[inOut][out] = true;\r\n\t\t\t\t\tanyMissingValue[inOut] = true;\r\n\t\t\t\t\tout++;\r\n\t\t\t\t}else{\r\n\t\t\t\t\tmissingValues[inOut][undef] = true;\r\n\t\t\t\t\tanyMissingValue[inOut] = true;\r\n\t\t\t\t\tundef++;\r\n\t\t\t\t}\r\n\t\t\t}else if(!(curAt.getType()==Attribute.NOMINAL)){ //is numerical?\r\n\t\t\t\tif(inOut==0){\r\n\t\t\t\t\trealValues[inOut][in] = values[i];\r\n\t\t\t\t\tin++;\r\n\t\t\t\t}else if(inOut==1){\r\n\t\t\t\t\trealValues[inOut][out] = values[i];\r\n\t\t\t\t\tout++;\r\n\t\t\t\t}else{\r\n\t\t\t\t\trealValues[inOut][undef] = values[i];\r\n\t\t\t\t\tundef++;\r\n\t\t\t\t}\r\n\t\t\t}else{ //is nominal\r\n\t\t\t\tif(inOut==0){\r\n\t\t\t\t\tintNominalValues[inOut][in] = (int)values[i];\r\n\t\t\t\t\trealValues[inOut][in] = values[i];\r\n\t\t\t\t\tnominalValues[inOut][in] = curAt.getNominalValue((int)values[i]);\r\n\t\t\t\t\tin++;\r\n\t\t\t\t}else if(inOut==1){\r\n\t\t\t\t\tintNominalValues[inOut][out] = (int)values[i];\r\n\t\t\t\t\trealValues[inOut][out] = values[i];\r\n\t\t\t\t\tnominalValues[inOut][out] = curAt.getNominalValue((int)values[i]);\r\n\t\t\t\t\tout++;\r\n\t\t\t\t}else{\r\n\t\t\t\t\tintNominalValues[inOut][undef] = (int)values[i];\r\n\t\t\t\t\trealValues[inOut][undef] = values[i];\r\n\t\t\t\t\tnominalValues[inOut][undef] = curAt.getNominalValue((int)values[i]);\r\n\t\t\t\t\tundef++;\r\n\t\t\t\t}\r\n\t\t\t}\t\t\t\r\n\t\t}\r\n\t}", "public Data() {\n\t\tif (flag == 0) {\n\t\t\tflag = 1;\n\t\t\tfloat def = 0;\n\t\t\tfor (int i = 0; i < 4; i++) {\n\n\t\t\t\tlocation.add(def);\n\t\t\t\tstate.add(0);\n\t\t\t\tboardsize.add(0);\n\n\t\t\t\tsystemid.add(\"\");\n\t\t\t\ttime.add(0);\n\t\t\t\tname.add(\"\");\n\t\t\t}\n\n\t\t\tball.add(def);\n\t\t\tball.add(def);\n\n\t\t\tballsize = 0;\n\t\t}\n\t}", "public void initializeStructure(){\n\t\tif ( !this.isRegistered()){\n\t\t\tthrow new Error(\"Can't initialize structure for unregistered SOS2Primitive\");\n\t\t}\n\t\tMatrix matrix=parentComponent.matrix;\n\t\tint col=0;\n\t\t// First create a variable for the x value itself but have it contribute nothing to the objective \n\t\tMatrixVariable newVariable=new MatrixVariable(0,0,1.0,LPX.LPX_FR,LPX.LPX_CV,matrix.numCols(),ObjectiveType.SOS2DUMMY);\n\t\tnewVariable.setTag(objType+label+\"_x\");\n\t\tmatrix.addVariable(newVariable);\n\t\tregisterVariable(newVariable,col);\n\t\tcol++;\n\t\t// Now create the weighting variables \n\t\tfor(int i=0;i<xVals.length;i++){\n\t\t\tnewVariable=new MatrixVariable(yVals[i],\n\t\t\t\t\t0.0,1.0,\n\t\t\t\t\tLPX.LPX_DB,LPX.LPX_CV,matrix.numCols(),objType);\n\t\t\tnewVariable.setTag(objType+label+\"y\"+i);\n\t\t\tmatrix.addVariable(newVariable);\n\t\t\tregisterVariable(newVariable,col);\n\t\t\tcol++;\n\t\t}\n\t\t// Now the binary variables\n\t\tfor(int i=0;i<(xVals.length-1);i++){\n\t\t\tnewVariable=new MatrixVariable(0,\n\t\t\t\t\t0.0,1.0,\n\t\t\t\t\tLPX.LPX_DB,LPX.LPX_IV,matrix.numCols(),ObjectiveType.SOS2DUMMY);\n\t\t\tnewVariable.setTag(label+\"b\"+i);\n\t\t\tmatrix.addVariable(newVariable);\n\t\t\tregisterVariable(newVariable,col);\n\t\t\tcol++;\n\t\t}\t\t\n\t}", "@Override\n public String toString() {\n return \"\" + this.value;\n }", "public abstract Value getReferenceValue();", "public java.lang.String getNewValues_description(){\n return localNewValues_description;\n }", "public interface DataNode\r\n{\r\n /** @return type name of this data node */\r\n public String get_type_name();\r\n /** @return the bits of this data node */\r\n public String get_bitsequence_value() ;\r\n \r\n /** @return size of this data in bits*/\r\n public int get_bit_size(); \r\n \r\n /** @return size of this data as an integer (for expresion evaluation\r\n * purpose */\r\n public int get_int_value() throws Exception;\r\n \r\n /** @return the number of bits this type takes */ \r\n public int get_fieldsize();\r\n \r\n /** set the expression for number of bits this type takes*/\r\n public void set_fieldsize(AST fieldsize);\r\n \r\n /** set valid ok nok */\r\n public void set_verify_then_else(AST verify_ast,AST then_ast , AST else_ast) throws Exception;\r\n \r\n /** sets the contaxt for evaluation of expressions for this data node*/\r\n public void set_context(VariableSymbolTable context);\r\n \r\n /** print a human readable form of this node */\r\n public String print();\r\n \r\n /** print with formatting \r\n * 0 = print() [debug formatted]\r\n * 1 = as string [useful to write to a file]\r\n * 2 = debug with strings [similar to 0, but with strings instad of bytes]\r\n * @return Formatted output ready to be printed\r\n */\r\n public String print(int format);\r\n public void set_name(String name);\r\n public String get_name();\r\n \r\n /** returns the maximum size this object can accept (hold) or -1 for infinity */\r\n public int get_max_accept() throws Exception;\r\n public void assign(DataNodeAbstract rhs) throws Exception;\r\n public void populate(BdplFile rhs) throws Exception;\r\n \r\n}", "private String linkString()\n {\n Iterator<DSAGraphNode<E>> iter = links.iterator();\n String outputString = \"\";\n DSAGraphNode<E> node = null;\n while (iter.hasNext())\n {\n node = iter.next();\n outputString = (outputString + node.getLabel() + \", \");\n }\n return outputString;\n }", "public AllOOneDataStructure() {\n map = new HashMap<>();\n vals = new HashMap<>();\n maxKey = minKey = \"\";\n max = min = 0;\n }", "public String getVals(){\n return (\"a: \" + a + \"\\nr: \" + r + \"\\nb: \" + b + \"\\ng: \" + g);\n }", "@Override\n public String toString()\n {\n\n String str = String.format(\"%5d %-20s %2c %11.2f\",id,name,rarity,value);\n\n return str;\n }", "public String toString() {\r\n\t\tString result = \" \" + StunConstants.getAttributeName(type) \r\n\t\t\t+ \"=[\" + Conversion.hexString(type)\r\n\t\t\t+ \"] valueLen=[\" + length \r\n\t\t\t+ \"] value=[\" + Conversion.hexString(value) + \"] padding=[\" + padding + \"]\";\r\n\t\treturn result;\r\n\t}", "public SolutionAttributes(String name, String type, double lbound,double ubound, \n\t\t\tdouble granularity, double rateOfEvolution, double value, String dfault, String flag, String unit){\n\t\tthis.name = name;\n\t\tthis.type = type;\n\t\tthis.lbound = lbound;\n\t\tthis.ubound = ubound;\n\t\tthis.granularity = granularity;\n\t\tthis.rateOfEvolution = rateOfEvolution;\n\t\tthis.value = value;\n\t\tthis.dfault = dfault;\n\t\tthis.flag = flag;\n\t\tthis.unit = unit;\n\t}", "private void generateMetadataFile(LinkedHashMap<?, ?> components) {\n JSONObject jsonObject = new JSONObject();\n jsonObject.put(KIND, image.isCompositeImage() ? \"Composite\" : \"Cell\");\n jsonObject.put(ORG, image.getOrgName());\n jsonObject.put(NAME, image.getCellName());\n jsonObject.put(VERSION, image.getCellVersion());\n jsonObject.put(\"zeroScalingRequired\", image.isZeroScaling());\n jsonObject.put(\"autoScalingRequired\", image.isAutoScaling());\n\n JSONObject componentsJsonObject = new JSONObject();\n components.forEach((key, componentValue) -> {\n LinkedHashMap attributeMap = ((BMap) componentValue).getMap();\n String componentName = ((BString) attributeMap.get(\"name\")).stringValue();\n JSONObject componentJson = new JSONObject();\n\n JSONObject labelsJsonObject = new JSONObject();\n if (attributeMap.containsKey(LABELS)) {\n ((BMap<?, ?>) attributeMap.get(LABELS)).getMap().forEach((labelKey, labelValue) ->\n labelsJsonObject.put(labelKey.toString(), labelValue.toString()));\n }\n componentJson.put(\"labels\", labelsJsonObject);\n\n JSONObject cellDependenciesJsonObject = new JSONObject();\n JSONObject compositeDependenciesJsonObject = new JSONObject();\n JSONArray componentDependenciesJsonArray = new JSONArray();\n if (attributeMap.containsKey(DEPENDENCIES)) {\n LinkedHashMap<?, ?> dependencies = ((BMap<?, ?>) attributeMap.get(DEPENDENCIES)).getMap();\n if (dependencies.containsKey(CELLS)) {\n LinkedHashMap<?, ?> cellDependencies = ((BMap) dependencies.get(CELLS)).getMap();\n extractDependencies(cellDependenciesJsonObject, cellDependencies, CELL);\n }\n if (dependencies.containsKey(COMPOSITES)) {\n LinkedHashMap<?, ?> compositeDependencies = ((BMap) dependencies.get(COMPOSITES)).getMap();\n extractDependencies(compositeDependenciesJsonObject, compositeDependencies, COMPOSITE);\n }\n if (dependencies.containsKey(COMPONENTS)) {\n BValueArray componentsArray = ((BValueArray) dependencies.get(COMPONENTS));\n IntStream.range(0, (int) componentsArray.size()).forEach(componentIndex -> {\n LinkedHashMap component = ((BMap) componentsArray.getBValue(componentIndex)).getMap();\n componentDependenciesJsonArray.put(((BString) component.get(\"name\")).stringValue());\n });\n }\n }\n JSONObject dependenciesJsonObject = new JSONObject();\n dependenciesJsonObject.put(CELLS, cellDependenciesJsonObject);\n dependenciesJsonObject.put(COMPOSITES, compositeDependenciesJsonObject);\n dependenciesJsonObject.put(COMPONENTS, componentDependenciesJsonArray);\n componentJson.put(\"dependencies\", dependenciesJsonObject);\n\n componentsJsonObject.put(componentName, componentJson);\n });\n image.getComponentNameToComponentMap().forEach((componentName, component) -> {\n JSONObject componentJsonObject = componentsJsonObject.getJSONObject(componentName);\n componentJsonObject.put(\"dockerImage\", component.getSource());\n componentJsonObject.put(\"isDockerPushRequired\", component.isDockerPushRequired());\n });\n jsonObject.put(\"components\", componentsJsonObject);\n\n String targetFileNameWithPath =\n OUTPUT_DIRECTORY + File.separator + CELLERY + File.separator + METADATA_FILE_NAME;\n try {\n writeToFile(jsonObject.toString(), targetFileNameWithPath);\n } catch (IOException e) {\n String errMsg = \"Error occurred while generating metadata file \" + targetFileNameWithPath;\n log.error(errMsg, e);\n throw new BallerinaException(errMsg);\n }\n }" ]
[ "0.5541127", "0.5479812", "0.54270214", "0.53972447", "0.5383768", "0.52781224", "0.5238584", "0.52238995", "0.51903", "0.5134853", "0.51124096", "0.51087326", "0.50801975", "0.50716305", "0.50530577", "0.5051694", "0.50239575", "0.5023193", "0.501374", "0.5005271", "0.5000772", "0.49941877", "0.49846655", "0.49822086", "0.49797434", "0.49679646", "0.49602443", "0.4949878", "0.4947738", "0.49407047", "0.4937282", "0.4913891", "0.490458", "0.4904239", "0.48990068", "0.48971447", "0.48949504", "0.4889767", "0.4888675", "0.48883593", "0.48873702", "0.4885077", "0.4879638", "0.4873563", "0.4872967", "0.4862306", "0.48612824", "0.48543838", "0.48534644", "0.48305762", "0.48231912", "0.48181725", "0.48149627", "0.48137203", "0.48097962", "0.4808462", "0.48058352", "0.47971952", "0.47940895", "0.47900164", "0.47899848", "0.47850615", "0.47831094", "0.4783027", "0.47826317", "0.4781002", "0.47777635", "0.47775504", "0.4776572", "0.47759557", "0.47708762", "0.476962", "0.4769611", "0.4767761", "0.47638538", "0.47582835", "0.47501466", "0.4747433", "0.4742066", "0.47404116", "0.47311056", "0.4729429", "0.47280252", "0.47265077", "0.47262594", "0.47223687", "0.4717978", "0.47144297", "0.47107613", "0.47099203", "0.4709585", "0.4702094", "0.47020242", "0.47012666", "0.47007015", "0.46998528", "0.46980387", "0.46973222", "0.46970484", "0.46918926" ]
0.5304631
5
Generates reports on ALL experiments, including 'private' ones. This should only be run by administrators as it takes a while to run.
@Secured({ "GROUP_AGENT" }) Collection<ExpressionExperimentDetailsValueObject> generateSummaryObjects();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface ExpressionExperimentReportService {\n\n /**\n * Invalidate the cached 'report' for the experiment with the given id. If it is not cached nothing happens.\n *\n * @param id the id of the entity to evict\n */\n void evictFromCache( Long id );\n\n /**\n * Generate a value object that contain summary information about links, biomaterials, and datavectors\n *\n * @param id the id of the ee to generate summary for\n * @return details VO\n */\n ExpressionExperimentDetailsValueObject generateSummary( Long id );\n\n /**\n * Generates reports on ALL experiments, including 'private' ones. This should only be run by administrators as it\n * takes a while to run.\n */\n @Secured({ \"GROUP_AGENT\" })\n Collection<ExpressionExperimentDetailsValueObject> generateSummaryObjects();\n\n void getAnnotationInformation( Collection<ExpressionExperimentDetailsValueObject> vos );\n\n void populateEventInformation( Collection<ExpressionExperimentDetailsValueObject> vos );\n\n /**\n * Fills in link analysis and differential expression analysis summaries, and other info from the report.\n *\n * @param vos value objects\n */\n void populateReportInformation( Collection<ExpressionExperimentDetailsValueObject> vos );\n\n /**\n * retrieves a collection of cached value objects containing summary information\n *\n * @param ids the ids of ees for which the summary objects should be retrieved.\n * @return a collection of cached value objects\n */\n @SuppressWarnings(\"unused\")\n // Possible external use\n Collection<ExpressionExperimentDetailsValueObject> retrieveSummaryObjects( Collection<Long> ids );\n\n /**\n * Recalculates the batch effect and batch confound information for datasets that have been updated\n * in the last 24 hours.\n */\n @SuppressWarnings(\"unused\") // Used by scheduler\n @Secured({ \"GROUP_AGENT\" })\n void recalculateBatchInfo();\n\n /**\n * Recalculates the batch effect and batch confound information for the given dataset.\n * @param ee the experiment to recalculate the batch properties for.\n */\n @Secured({ \"GROUP_AGENT\" })\n void recalculateExperimentBatchInfo( ExpressionExperiment ee );\n}", "private void generateReports() {\r\n\t\tLOGGER.debug(\"Report generation trigerred\");\r\n\t\tgenerateIncomingReport();\r\n\t\tgenerateOutgoingReport();\r\n\t\tgenerateIncomingRankingReport();\r\n\t\tgenerateOutgoingRankingReport();\r\n\t\tLOGGER.debug(\"Report generation completed\");\r\n\t}", "public static void generateReport()\n\t{\n\t\tlong time=System.currentTimeMillis();\n\t\tString reportPath=System.getProperty(\"user.dir\")+\"//automationReport//Report\"+time+\".html\";\n\t\t\n\t\thtmlreporter=new ExtentHtmlReporter(reportPath);\n\t\textent=new ExtentReports();\n\t\textent.attachReporter(htmlreporter);\n\t\t\n\t\tString username=System.getProperty(\"user.name\");\n\t\tString osname=System.getProperty(\"os.name\");\n\t\tString browsername=CommonFunction.readPropertyFile(\"Browser\");\n\t\tString env=CommonFunction.readPropertyFile(\"Enviornment\");\n\t\t\n\t\t\n\t\textent.setSystemInfo(\"User Name\", username);\n\t\textent.setSystemInfo(\"OS Name\", osname);\n\t\textent.setSystemInfo(\"Browser Name\", browsername);\n\t\textent.setSystemInfo(\"Enviornment\", env);\n\t\t\n\t\t\n\t\thtmlreporter.config().setDocumentTitle(\"Automation Report\");\n\t\thtmlreporter.config().setTheme(Theme.STANDARD);\n\t\thtmlreporter.config().setChartVisibilityOnOpen(true);\n \n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public static void generateReport() {\n PrintImpl printer = new PrintImpl(realtorLogImpl, propertyLogImpl);\n printer.generateReport(REQUESTS_FILE);\n }", "private void getAllExercises() {\n getView().disableUI();\n\n // get all exercises\n doGetExercises();\n }", "public void generateReport()\r\n {\r\n ProfilerGUI reportGUI = new ProfilerGUI(map,mapCountTracker);\r\n //reportGUI.\r\n }", "private void _generatePublications() {\n for (int i = 0; i < publications_.size(); i++) {\n _generateAPublication( (PublicationInfo) publications_.get(i));\n if(globalVersionTrigger){\n \t PublicationInfo pub = (PublicationInfo) publications_.get(i);\n \t writer_log.addPropertyInstance(pub.id, RDF.type.getURI(), ontology+\"#Publication\", true);\n \t writer_log.addPropertyInstance(pub.id, ontology+\"#name\", pub.name, false);\n \t for(String author : (ArrayList<String>) pub.authors){\n \t\t writer_log.addPropertyInstance(pub.id, ontology+\"#author\", author, true); \n \t }\n }\n }\n }", "public void runExperiment(boolean saveAgentData, boolean saveMarketMakerData, boolean saveBidsData) throws AdXException, IOException {\n String agentsResults = \"\";\n String marketMakerResults = \"\";\n String bidsLogs = \"\";\n Logging.log(\"[experiment]\" + \"\\n\\t reserve = \" + this.reserve + \"\\n\\t numberOfImpressions = \" + this.numberOfImpressions + \"\\n\\t demandDiscountFactor = \"\n + this.demandDiscountFactor);\n for (int g = 0; g < this.numberOfGames; g++) {\n // Run simulator.\n Simulator simulator = new Simulator(this.simAgents, this.reserve, this.numberOfImpressions, this.demandDiscountFactor);\n // Get statistics.\n Statistics statistics = simulator.run();\n agentsResults += statistics.oneLineAgentsSummary(1, g);\n marketMakerResults += statistics.oneLineMarketMakerSummary(1, g, this.numberOfImpressions);\n bidsLogs += statistics.getStatisticsBids().logBidsToCSV(1);\n // Logging.log(\"Result Agents: \" + statistics.oneLineAgentsSummary(1, g));\n // Logging.log(\"Result Market Maker: \" + statistics.oneLineMarketMakerSummary(1, g, this.numberOfImpressions));\n }\n // Save results to .csv files.\n if (saveAgentData) {\n // Results from the agent point of view.\n Files.createDirectories(Paths.get(this.resultsDirectory + \"agents/\"));\n PrintWriter writerAgentsResults = new PrintWriter(this.resultsDirectory + \"agents/\" + this.resultsFileName + \".csv\", \"UTF-8\");\n writerAgentsResults.println(agentsResults);\n writerAgentsResults.close();\n }\n if (saveMarketMakerData) {\n // Results from the market maker point of view.\n Files.createDirectories(Paths.get(this.resultsDirectory + \"marketmaker/\"));\n PrintWriter writerMarketMakerResults = new PrintWriter(this.resultsDirectory + \"marketmaker/\" + this.resultsFileName + \".csv\", \"UTF-8\");\n writerMarketMakerResults.println(marketMakerResults);\n writerMarketMakerResults.close();\n }\n // Log of bids.\n if (saveBidsData) {\n Files.createDirectories(Paths.get(this.resultsDirectory + \"bidlogs/\"));\n PrintWriter writerBidsLog = new PrintWriter(this.resultsDirectory + \"bidlogs/\" + this.resultsFileName + \".csv\", \"UTF-8\");\n writerBidsLog.println(bidsLogs);\n writerBidsLog.close();\n }\n\n }", "public void getReportManually() {\n File reportDir = new File(KOOM.getInstance().getReportDir());\n for (File report : reportDir.listFiles()) {\n //Upload the report or do something else.\n }\n }", "@Transactional(propagation = Propagation.REQUIRED, value = \"jamiTransactionManager\", readOnly = true)\n public Iterator<Experiment> iterateAll() {\n return new IntactQueryResultIterator<Experiment>((ExperimentService) ApplicationContextProvider.getBean(\"experimentService\"));\n }", "public void doEverything() throws isisicatclient.IcatException_Exception {\n DropEverything();\r\n //Create the super admin group - edit the search string.\r\n CreateFacilityAdmins(\"User[name='uows/13574']\");\r\n //Create the public tables and steps\r\n CreatePublicTables();\r\n CreatePublicSteps();\r\n \r\n //Create lower powered data ingestors - (does not add anyone to this group)\r\n CreateDataIngestors();\r\n \r\n //Create rules for instrument scientists\r\n CreateInstumentScientistRules();\r\n \r\n //Create rules for investigators on their own data\r\n CreateInvestigationUserRules();\r\n CreateCoInvestigatorRules();\r\n CreatePIDelegationRules();\r\n \r\n //Create public data rules\r\n CreatePublicUmembargoedDataRules();\r\n CreatePublicCalibrationRules();\r\n \r\n //Create rules to make DOI-ed data readable to DOI-readers (a special web account)\r\n CreateDOIRules();\r\n \r\n //Create special rules for public subsets of data\r\n CreateSimpleDataBaseRules(\"Disordered Materials Published Data\");\r\n \r\n \r\n System.out.println(\"Done\");\r\n\r\n }", "public GenerateReport() {\n initComponents();\n displayLogs();\n }", "@Override\n public void runOneExperiment(int numGoods, int numBidders, int k, double p, String distribution, SqlDB dbLogger) throws Exception {\n if (!dbLogger.checkIfRowExists(\"singleton_\" + distribution, numGoods, numBidders, p)) {\n System.out.print(\"\\t Adding data... \");\n HashMap<String, DescriptiveStatistics> stats = new HashMap<String, DescriptiveStatistics>();\n for (int i = 0; i < RunParameters.numTrials; i++) {\n // Generate Singleton random market.\n SingletonMarket<Goods, Bidder<Goods>> M = this.getSingletonMarket(numGoods, numBidders, p, distribution);\n // Optimal Utilitarian Allocation.\n MarketAllocation<Market<Goods, Bidder<Goods>>, Goods, Bidder<Goods>> utilitarianMaxAlloc = new WelfareMaxAllocationILP<Market<Goods, Bidder<Goods>>, Goods, Bidder<Goods>>().Solve(M);\n double optimalWelfare = utilitarianMaxAlloc.getValue();\n // Optimal Egalitarian Allocation.\n MarketAllocation<Market<Goods, Bidder<Goods>>, Goods, Bidder<Goods>> egalitarianMaxAlloc = new EgalitarianMaxAllocationILP<Market<Goods, Bidder<Goods>>, Goods, Bidder<Goods>>().Solve(M);\n double optimalEgalitarian = (double) egalitarianMaxAlloc.getNumberOfWinners();\n // Obtain statistics from all algorithms.\n this.populateStats(stats, new SingletonEVP(M).Solve(), \"ev\", optimalWelfare, optimalEgalitarian);\n this.populateStats(stats, this.getRevMaxMarketPrices(M, Allocations.GreedyWelfare), \"gw\", optimalWelfare, optimalEgalitarian);\n this.populateStats(stats, this.getRevMaxMarketPrices(M, Allocations.GreedyEgalitarian), \"ge\", optimalWelfare, optimalEgalitarian);\n this.populateStats(stats, this.getRevMaxMarketPrices(M, Allocations.OptimalWelfare), \"ow\", optimalWelfare, optimalEgalitarian);\n this.populateStats(stats, this.getRevMaxMarketPrices(M, Allocations.OptimalEgalitarian), \"oe\", optimalWelfare, optimalEgalitarian);\n this.populateStats(stats, this.getRevMaxMarketPrices(M, Allocations.WaterFall), \"wf\", optimalWelfare, optimalEgalitarian);\n this.populateStats(stats, this.getRevMaxMarketPrices(M, Allocations.MaxBidder), \"mb\", optimalWelfare, optimalEgalitarian);\n }\n System.out.println(\"done!\");\n dbLogger.saveSingleton(\"singleton_\" + distribution, numGoods, numBidders, p, stats);\n } else {\n System.out.println(\"\\t Already have data \");\n }\n }", "public void generarReporteEvaluacionProveedors(String sAccionBusqueda,List<EvaluacionProveedor> evaluacionproveedorsParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"EvaluacionProveedor\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"EvaluacionProveedorMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"EvaluacionProveedorMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"EvaluacionProveedor\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Evaluacion Proveedores\");\t\t\r\n\t\tparameters.put(\"busquedapor\", EvaluacionProveedorConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\tclasses.add(new Classe(DetalleEvaluacionProveedor.class));\r\n\t\t\t\r\n\t\t\t//ARCHITECTURE\r\n\t\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\t\t\r\n\t\t\t\ttry\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tEvaluacionProveedorLogic evaluacionproveedorLogicAuxiliar=new EvaluacionProveedorLogic();\r\n\t\t\t\t\tevaluacionproveedorLogicAuxiliar.setDatosCliente(evaluacionproveedorLogic.getDatosCliente());\t\t\t\t\r\n\t\t\t\t\tevaluacionproveedorLogicAuxiliar.setEvaluacionProveedors(evaluacionproveedorsParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\tevaluacionproveedorLogicAuxiliar.cargarRelacionesLoteForeignKeyEvaluacionProveedorWithConnection(); //deepLoadsWithConnection(false, DeepLoadType.INCLUDE, classes, \"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tevaluacionproveedorsParaReportes=evaluacionproveedorLogicAuxiliar.getEvaluacionProveedors();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//evaluacionproveedorLogic.getNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//for (EvaluacionProveedor evaluacionproveedor:evaluacionproveedorsParaReportes) {\r\n\t\t\t\t\t//\tevaluacionproveedorLogic.deepLoad(evaluacionproveedor, false, DeepLoadType.INCLUDE, classes);\r\n\t\t\t\t\t//}\t\t\t\t\t\t\r\n\t\t\t\t\t//evaluacionproveedorLogic.commitNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t} catch(Exception e) {\r\n\t\t\t\t\tthrow e;\r\n\t\t\t\t\t\r\n\t\t\t\t} finally {\r\n\t\t\t\t\t//evaluacionproveedorLogic.closeNewConnexionToDeep();\r\n\t\t\t\t}\r\n\t\t\t} else if(Constantes.ISUSAEJBREMOTE) {\r\n\t\t\t} else if(Constantes.ISUSAEJBHOME) {\r\n\t\t\t}\r\n\t\t\t//ARCHITECTURE\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\r\n\t\t\tInputStream reportFileDetalleEvaluacionProveedor = AuxiliarReportes.class.getResourceAsStream(\"DetalleEvaluacionProveedorDetalleRelacionesDesign.jasper\");\r\n\t\t\tparameters.put(\"subreport_detalleevaluacionproveedor\", reportFileDetalleEvaluacionProveedor);\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourceEvaluacionProveedor=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tEvaluacionProveedorConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tEvaluacionProveedorConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourceEvaluacionProveedor=new JRBeanArrayDataSource(EvaluacionProveedorJInternalFrame.TraerEvaluacionProveedorBeans(evaluacionproveedorsParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourceEvaluacionProveedor);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+EvaluacionProveedorConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+EvaluacionProveedorConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(EvaluacionProveedorBean.TraerEvaluacionProveedorBeans(evaluacionproveedorsParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReporteEvaluacionProveedors(sAccionBusqueda,sTipoArchivoReporte,evaluacionproveedorsParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalEvaluacionProveedors(sAccionBusqueda,sTipoArchivoReporte,evaluacionproveedorsParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoEvaluacionProveedorActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReporteEvaluacionProveedors(sAccionBusqueda,sTipoArchivoReporte,evaluacionproveedorsParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalEvaluacionProveedors(sAccionBusqueda,sTipoArchivoReporte,evaluacionproveedorsParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesEvaluacionProveedors(sAccionBusqueda,sTipoArchivoReporte,evaluacionproveedorsParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesEvaluacionProveedors(sAccionBusqueda,sTipoArchivoReporte,evaluacionproveedorsParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void list_privateWithoutViewPrivate() throws Exception {\n\t\tif (JavastravaApplicationConfig.STRAVA_ALLOWS_CHALLENGES_ENDPOINT) {\r\n\t\t\tsuper.list_privateWithoutViewPrivate();\r\n\t\t}\r\n\t}", "@Test\r\n\tpublic void extendReports() throws IOException {\n\t\tString File = \"./Reports/report.html\";\r\n\t\tExtentHtmlReporter html = new ExtentHtmlReporter(File);\r\n\t\thtml.setAppendExisting(true);\r\n\t\t//to write on the created html file\r\n\t\tExtentReports extents = new ExtentReports();\r\n\t\textents.attachReporter(html);\r\n\t\t\r\n\t\tExtentTest createAccountTest = extents.createTest(\"TC001\", \"CreateAccount\");\r\n\t\tcreateAccountTest.pass(\"username entered\", MediaEntityBuilder.createScreenCaptureFromPath(\"./../snaps/img1.png\").build());\r\n\t\textents.flush();\r\n\t\t\r\n\r\n\t}", "private void userReport() {\n reportText.appendText(\"Report of appointments per User\\n\\n\");\n for (User user: Data.getUsers()) {\n reportText.appendText(\"\\n\\nUser: \" + user.getUsername() + \"\\n\");\n for (Appointment appointment: Data.getAppointments()) {\n if (appointment.getUser() == user.getId()) {\n reportText.appendText(\"Appointment ID: \" + appointment.getId() +\n \" \\tTitle: \" + appointment.getTitle() +\n \"\\tType: \" + appointment.getType() +\n \"\\tDescription: \" + appointment.getDescription() +\n \"\\tStart: \" + appointment.getStart() +\n \"\\tEnd: \" + appointment.getEnd() +\n \"\\tCustomer: \" + appointment.getCustomer() + \"\\n\");\n }\n System.out.println(\"\\n\\n\");\n }\n }\n\n }", "private void writeFinalReports() {\n\t\tSystem.out.println(\"Printing data to output files ...\");\n\t\twritePropertyData();\n\t\twriteClassData();\n\t\tSystem.out.println(\"Finished printing data.\");\n\t}", "public void experimentAndPlotter(){\n\t\tLearningAgentFactory qLearningFactory = new LearningAgentFactory() {\n\n\t\t\tpublic String getAgentName() {\n\t\t\t\treturn \"LR = 1\";\n\t\t\t}\n\n\n\t\t\tpublic LearningAgent generateAgent() {\n\t\t\t\treturn new QLearning(domain, 0.99, hashingFactory, 0., 1.);\n\t\t\t}\n\t\t};\n\n\t\tLearningAgentFactory qLearningFactory2 = new LearningAgentFactory() {\n\n\t\t\tpublic String getAgentName() {\n\t\t\t\treturn \"LR = 0.5\";\n\t\t\t}\n\n\n\t\t\tpublic LearningAgent generateAgent() {\n\t\t\t\treturn new QLearning(domain, 0.99, hashingFactory, 0., 0.5);\n\t\t\t}\n\t\t};\n\n\n\t\tLearningAlgorithmExperimenter exp = new LearningAlgorithmExperimenter(\n\t\t\tenv, 10, 50, qLearningFactory, qLearningFactory2);\n\t\texp.setUpPlottingConfiguration(500, 250, 2, 1000,\n\t\t\t\tTrialMode.MOST_RECENT_AND_AVERAGE,\n\t\t\t\tPerformanceMetric.STEPS_PER_EPISODE,\n\t\t\t\tPerformanceMetric.AVERAGE_EPISODE_REWARD);\n\n\t\texp.startExperiment();\n\t\texp.writeStepAndEpisodeDataToCSV(\"expData\");\n\n\t}", "public void generateReport(List<XmlSuite> xmlSuites, List<ISuite>suites, \r\n\t\tString outputDirectory){//creating a method that takes three arguments,\r\n\t//to generate a report, arguments list requirements, \r\n\t//using a mechanism called List, which gets the array input\r\n\t//script will go back to xml suites, and look for \"suites\" which are the classes we created\r\n\t//we will create an xml file to contain all the classes within our test cases\r\n\t//PASS, FAIL, or SKIP will be string outputs; String outputDirectory\r\n\t//XML Suite: big time testing based on testing type\r\n\t//ISuite: pages we are working on; classes created to perform action; under test folder\r\n\t\r\n\textent = new ExtentReports(outputDirectory + File.separator\r\n\t\t\t+ \"Extent.html\", true);\r\n\t//creating an object for extent report, creating a virtual object to save all output to save all results\r\n\t//as a string, file seperator is not needed, it doesn't matter how u received the result\r\n\t//seperate them and consolidate the results\r\n\t//telling you how to save the file name, html is easy to open on any device and lightweight\r\n\t//outputDirectory: SKIP, PASS, FAIL\r\n\t//the reason for boolean option: if yu receive results, generate report//if yu dont then dont generate\r\n\tfor(ISuite suite : suites){//for loop is created\r\n\t\t//map obtains a key value, not duplicate, and then maps it to one location, which is the\r\n\t\t//extent report\r\n\t\t//an interface in java, between key value and location (between status and extent report)\r\n\t\t//will make sure how to map and seperate results under each class\r\n\t\tMap<String, ISuiteResult>result = suite.getResults();\r\n\t\r\n\tfor(ISuiteResult r : result.values()){\r\n\t\tITestContext context =r.getTestContext();//for each of the classes, create log status\r\n\t\t//test context: script that we are running, results from it\r\n\t\t//: is a conditional operator, which lists the conditions, which lists out the conditions\r\n\t\t//script should be able to run \r\n\t\t//one suite, or multiple suites in one shot\r\n\t\t//making context\r\n\t\t\r\n\t\t\r\n\t\tbuildTestNo(context.getPassedTests(), LogStatus.PASS);\r\n\t\tbuildTestNo(context.getFailedTests(), LogStatus.FAIL);\r\n\t\t//retrieving status using results/context\r\n\t\tbuildTestNo(context.getSkippedTests(), LogStatus.SKIP);\r\n\t\t\t\r\n\t}\r\n}\r\nextent.flush();//take results and place on html file\r\nextent.close();\r\n\r\n}", "java.util.List<UserOuterClass.ExperimentInfo> \n getExperimentsList();", "public void startAllReporter() {\n compositeReporter.startAll();\n }", "UserOuterClass.ExperimentInfo getExperiments(int index);", "@LogMethod\r\n private void publishData()\r\n {\r\n log(\"Prepare visit map to check PTID counts in study navigator.\");\r\n navigateToFolder(getProjectName(), TEST_ASSAY_FLDR_STUDY1);\r\n _studyHelper.goToManageVisits().goToImportVisitMap();\r\n setFormElement(Locator.name(\"content\"),\r\n \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n\" +\r\n \"<visitMap xmlns=\\\"http://labkey.org/study/xml\\\">\\n\" +\r\n \" <visit label=\\\"Test Visit\\\" typeCode=\\\"X\\\" sequenceNum=\\\"301.0\\\" maxSequenceNum=\\\"302.0\\\"/>\\n\" +\r\n \"</visitMap>\");\r\n clickButton(\"Import\");\r\n\r\n log(\"Publishing the data as the PI\");\r\n\r\n //impersonate the PI\r\n impersonate(TEST_ASSAY_USR_PI1);\r\n navigateToFolder(getProjectName(), TEST_ASSAY_FLDR_LAB1);\r\n clickAndWait(Locator.linkWithText(TEST_ASSAY));\r\n clickAndWait(Locator.linkWithText(\"view results\"));\r\n\r\n //select all the data rows and click publish\r\n DataRegionTable table = new DataRegionTable(\"Data\", this);\r\n table.checkAllOnPage();\r\n table.clickHeaderButton(\"Copy to Study\");\r\n\r\n //the target study selected before was Study2, but the PI is not an editor there\r\n //so ensure that system has correctly caught this fact and now asks the PI to\r\n //select a different study, and lists only those studies in which the PI is\r\n //an editor\r\n\r\n //ensure warning\r\n assertTextPresent(\"WARNING: You do not have permissions to copy to one or more of the selected run's associated studies.\");\r\n\r\n //ensure that Study2 and Study 3 are not available in the target study drop down\r\n assertElementNotPresent(Locator.xpath(\"//select[@name='targetStudy']/option[.='\" +\r\n getTargetStudyOptionText(TEST_ASSAY_FLDR_STUDY2) + \"']\"));\r\n assertElementNotPresent(Locator.xpath(\"//select[@name='targetStudy']/option[.='\" +\r\n getTargetStudyOptionText(TEST_ASSAY_FLDR_STUDY3) + \"']\"));\r\n\r\n //Study1 is the only one left, so it should be there and already be selected\r\n assertElementPresent(Locator.xpath(\"//select[@name='targetStudy']/option[.='\" +\r\n getTargetStudyOptionText(TEST_ASSAY_FLDR_STUDY1) + \"']\"));\r\n\r\n // Make sure the selected study is Study1\r\n selectOptionByText(Locator.xpath(\"//select[@name='targetStudy']\"), getTargetStudyOptionText(TEST_ASSAY_FLDR_STUDY1));\r\n\r\n clickButton(\"Next\");\r\n assertTextPresent(\"Copy to \" + TEST_ASSAY_FLDR_STUDY1 + \" Study: Verify Results\");\r\n\r\n setFormElement(Locator.name(\"visitId\"), \"301.5\");\r\n clickButton(\"Copy to Study\");\r\n\r\n log(\"Verifying that the data was published\");\r\n _customizeViewsHelper.openCustomizeViewPanel();\r\n _customizeViewsHelper.addColumn(\"QCState\", \"QC State\");\r\n _customizeViewsHelper.applyCustomView();\r\n assertTextPresent(\r\n \"Pending Review\",\r\n TEST_RUN1_COMMENTS,\r\n \"2000-01-01\");\r\n clickTab(\"Overview\");\r\n clickAndWait(Locator.linkWithText(\"Study Navigator\"));\r\n\r\n log(\"Test participant counts and row counts in study overview\");\r\n String[] row2 = new String[]{TEST_ASSAY, \"8\", \"1\", \"1\", \"1\", \"1\", \"1\", \"1\", \"2\"};\r\n assertTableRowsEqual(\"studyOverview\", 1, new String[][]{row2});\r\n // Manually click the checkbox -- normal checkCheckbox() method doesn't seem to work for checkbox that reloads using onchange event\r\n clickAndWait(Locator.checkboxByNameAndValue(\"visitStatistic\", \"RowCount\"));\r\n row2 = new String[]{TEST_ASSAY, \"8 / 9\", \"1 / 1\", \"1 / 1\", \"1 / 1\", \"1 / 1\", \"1 / 1\", \"1 / 1\", \"2 / 3\"};\r\n assertTableRowsEqual(\"studyOverview\", 1, new String[][]{row2});\r\n doAndWaitForPageToLoad(() -> uncheckCheckbox(Locator.checkboxByNameAndValue(\"visitStatistic\", \"ParticipantCount\")));\r\n row2 = new String[]{TEST_ASSAY, \"9\", \"1\", \"1\", \"1\", \"1\", \"1\", \"1\", \"3\"};\r\n assertTableRowsEqual(\"studyOverview\", 1, new String[][]{row2});\r\n\r\n clickAndWait(Locator.linkWithText(\"9\"));\r\n\r\n assertElementPresent(Locator.linkWithText(\"999320885\"), 1);\r\n assertElementPresent(Locator.linkWithText(\"999320885\"), 1);\r\n assertTextPresent(\r\n \"301.0\",\r\n \"9.0\",\r\n \"8.0\",\r\n TEST_RUN1_COMMENTS,\r\n TEST_RUN2_COMMENTS,\r\n TEST_RUN1,\r\n TEST_RUN2,\r\n \"2000-06-06\",\r\n TEST_ASSAY_RUN_PROP1,\r\n \"18\");\r\n\r\n // test recall\r\n navigateToFolder(getProjectName(), TEST_ASSAY_FLDR_LAB1);\r\n clickAndWait(Locator.linkWithText(TEST_ASSAY));\r\n waitAndClickAndWait(Locator.linkWithText(\"view copy-to-study history\"));\r\n\r\n // Set a filter so that we know we're recalling SecondRun\r\n DataRegionTable region = new DataRegionTable(\"query\", this);\r\n region.setFilter(\"Comment\", \"Starts With\", \"3 row(s) were copied to a study from the assay\");\r\n doAndWaitForPageToLoad(() -> region.detailsLink(region.getRowIndex(\"Assay/Protocol\", TEST_ASSAY)).click());\r\n\r\n DataRegionTable copyStudy = new DataRegionTable(\"Dataset\", this);\r\n copyStudy.checkAll();\r\n doAndWaitForPageToLoad(() ->\r\n {\r\n copyStudy.clickHeaderButton(\"Recall Rows\");\r\n acceptAlert();\r\n });\r\n assertTextPresent(\"row(s) were recalled to the assay: \" + TEST_ASSAY);\r\n\r\n // Set a filter so that we know we're looking at the copy event for SecondRun again\r\n region.setFilter(\"Comment\", \"Starts With\", \"3 row(s) were copied to a study from the assay\");\r\n\r\n // verify audit entry was adjusted\r\n doAndWaitForPageToLoad(() -> region.detailsLink(region.getRowIndex(\"Assay/Protocol\", TEST_ASSAY)).click());\r\n assertTextPresent(\"All rows that were previously copied in this event have been recalled\");\r\n\r\n stopImpersonating();\r\n }", "public Collection<Experiment> getExperiments();", "public void reports_TM() throws InterruptedException\n {\n\t System.out.println(\"---*** Reports.reports_TM() ***---\");\n\t if(driver.findElements(By.linkText(\"Reports\")).size()>0)\n\t {\n\t\t clickreports.click();\n\t\t Thread.sleep(1000);\n\t\t if(driver.findElements(By.linkText(\"My reports\")).size()>0)\n\t\t {\n\t\t\t myreportlink.click();\n\t\t\t Thread.sleep(2000);\n\t\t\t String logname = driver.findElement(By.xpath(\"//span[@class='userInfo']\")).getText();\n\t\t\t\tSystem.out.println(\"Loged in user is \" +logname);\n\t\t\t\tswitch(logname)\n\t\t\t\t {\n\t\t\t\t case \"Teammanager Demo2\":\n\t Req_detail();\n\t Large_Req_detail();\n\t Req_Multiple_vol();\n\t feedbacklink.click();\n\t Thread.sleep(1000);\n\t Feedback_req();\n\t Request_type();\n\t timelink.click();\n\t Thread.sleep(1000);\n\t timesheet_report();\n\t userlink.click();\n\t Thread.sleep(1000);\n\t user_details();\n\t user_mappings();\n\t SLAlink.click();\n\t Thread.sleep(1000);\n\t SLA_Report();\n\t auditlink.click();\n\t Thread.sleep(1000);\n\t tracking_Report();\n\t knowlink.click();\n\t Thread.sleep(1000);\n\t know_doc_Report();\n\t if(countreports.size()!=11)\n\t\t {\n\t\t\t System.out.println(\"INCORRECT reports displaying for Team manager\");\n\t\t }\n\t\t else\n\t\t {\n\t\t\t System.out.println(\"Correct reports displaying for Team manager\");\n\t\t }\n\t break;\n\t\tcase \"Analyst Demo2\":\n\t\t Req_detail();\n\t\t\t feedbacklink.click();\n\t\t\t Thread.sleep(1000);\n\t\t\t my_timesheet_report();\n\t\t\t if(countreports.size()!=2)\n\t\t\t {\n\t\t\t\t System.out.println(\"INCORRECT reports displaying for Analyst\");\n\t\t\t }\n\t\t\t else\n\t\t\t {\n\t\t\t\t System.out.println(\"Correct reports displaying for Analyst\");\n\t\t\t }\n\t\t\t break;\n\t\t\t }\n\t\t }\n\t\t else\n\t\t {\n\t\t\t System.out.println(\"\\n\" + \"My Reports is not present\");\n\t\t }\n\t }\n\t else\n\t {\n\t\t System.out.println(\"\\n\" + \"Reports module not present\");\n\t }\n\t }", "public void generateReport() {\n ReportGenerator rg = ui.getReportGenerator();\n if (rg == null || !rg.isVisible()) {\n ui.openReportGenerator();\n rg = ui.getReportGenerator();\n }\n Image img = getImage();\n if (img == null) {\n return;\n }\n rg.addImage(img, \"Plot\");\n }", "public void ExecuteTests() throws IOException{\r\n\t\t\r\n\t\tAutomationSuiteRunnerImpl testcaseinfo = new AutomationSuiteRunnerImpl();\r\n\t\ttestcaseinfo.GetTestCaseInformation();\r\n\t\tTestsBrowserList = testcaseinfo.getTestsBrowserList();\r\n\t\tTestsClassesList = testcaseinfo.getTestsClassesList();\r\n\t\tClassesMethodList = testcaseinfo.getClassesMethodList();\r\n\t\tTestsParamList = testcaseinfo.getTestsParamList();\r\n\t\tTestNGConfig = testcaseinfo.getTestNGConfig();\r\n\t\tList<XmlSuite> suites = new ArrayList<XmlSuite>();\r\n\t\t\r\n\t\tlogger.info(\"Generating TestNG.xml file\");\r\n\t\t\r\n\t\t/**\r\n\t\t * The below code creates testNG xmlSuite and sets the configuration\r\n\t\t */\r\n\t\tXmlSuite suite = new XmlSuite();\r\n\t\tsuite.setName(TestNGConfig.get(\"AutomationSuiteName\"));\r\n\t\t\r\n\t\tif(TestNGConfig.get(\"ParallelMode\").toString().equalsIgnoreCase(\"True\")) {\r\n\t\t\tsuite.setParallel(XmlSuite.ParallelMode.TESTS);\r\n\t\t\tsuite.setThreadCount(Integer.parseInt(TestNGConfig.get(\"ThreadCount\")));\r\n\t\t}\r\n\t\telse {\r\n\r\n\t\t\tsuite.setParallel(XmlSuite.ParallelMode.NONE);\r\n\t\t}\r\n\t\t\r\n\t\tsuite.setVerbose(Integer.parseInt(TestNGConfig.get(\"Verbose\")));\r\n\t\tif(TestNGConfig.get(\"PreserveOrder\").toString().equalsIgnoreCase(\"True\"))\r\n\t\t\tsuite.setPreserveOrder(Boolean.TRUE);\r\n\t\telse \r\n\t\t\tsuite.setPreserveOrder(Boolean.FALSE);\r\n\t\t\r\n\t\t\r\n\t\t//suite.addListener(\"frameworkcore.ReportingClass.ListenersImpl\");\r\n\t\t\r\n\t\t/**\r\n\t\t * The below code assigns the Test classes/mathods/parameters to the TestNG Suite\r\n\t\t */\r\n\t\tfor (String key : TestsBrowserList.keySet()){\r\n\t\t\tArrayList<XmlClass> classes = new ArrayList<XmlClass>();\r\n\t\t\tXmlTest test = new XmlTest(suite);\r\n\t\t\ttest.setName(key.toString());\r\n\t\t\tHashMap<String,String> browserinfo = new HashMap<String,String>();\r\n\t\t\tbrowserinfo.put(\"BrowserName\", TestsBrowserList.get(key).toString());\r\n\t\t\ttest.setParameters(browserinfo);\r\n\t\t\tSetParameters(test);\r\n\t\t\tCollection<String> classvalues = TestsClassesList.get(key);\r\n\t\t\tfor(String testclass : classvalues){\r\n\t\t\t\tXmlClass testClass = new XmlClass();\r\n\t\t testClass.setName(testclass);\r\n\t\t Collection<String> methodvalues = ClassesMethodList.get(testclass);\r\n\t\t ArrayList<XmlInclude> methodsToRun = new ArrayList<XmlInclude>();\r\n\t\t for(String method: methodvalues){\r\n\t\t \tif(method.toLowerCase().contains(\"tag\")||method.toLowerCase().contains(\"ignore\"))\r\n\t\t \t\tlogger.info(\"Method \" + method + \" will not run\" );\r\n\t\t \telse\r\n\t\t \t\tmethodsToRun.add(new XmlInclude(method));\r\n\t\t }\r\n\t\t testClass.setIncludedMethods(methodsToRun);\r\n\t\t \r\n\t\t classes.add(testClass);\r\n\t\t\t}\r\n\t\t\ttest.setXmlClasses(classes);\r\n\t\t}\r\n\t\t\r\n\t\tsuites.add(suite);\r\n\t\t\r\n\t\t/**\r\n\t\t * Writing the TestNG.xml information to a file\r\n\t\t */\r\n\t\t FileWriter writer;\r\n\t\t File TestNGFile = new File(\"TestNG.xml\");\r\n\t\t if(TestNGFile.exists())\t\t\t\t\t\t// Delete TestNG if exists\r\n\t\t\t TestNGFile.delete();\r\n\t\t \r\n\t\t\twriter = new FileWriter(TestNGFile);\r\n\t\t\t writer.write(suite.toXml());\r\n\t\t writer.flush();\r\n\t\t writer.close();\r\n\t\t logger.info(\"TestNG file Generated Successfully\");\r\n\t\t\r\n\t\tTestNG tng = new TestNG();\r\n\t\ttng.setXmlSuites(suites);\r\n\t\ttng.run(); \r\n\t\t\r\n\t}", "@Test\n public void testDisabledByExperiment() throws IOException {\n List<String> experiments = options.getExperiments();\n experiments.remove(DataflowElementExecutionTracker.TIME_PER_ELEMENT_EXPERIMENT);\n options.setExperiments(experiments);\n tracker = DataflowElementExecutionTracker.create(counters, options);\n\n NameContext step = createStep(\"A\");\n tracker.enter(step);\n tracker.exit();\n tracker.takeSample(10);\n assertThat(getCounter(step), nullValue());\n }", "boolean generateReport();", "public List<ExperimentData> getExperimentData() throws PortalException, AiravataAPIInvocationException;", "void createReport() {\n\n // report about purple flowers\n println(\"\\nPurple flower distribution: \");\n for (int i = 0; i < 6; i++) {\n println(i + (i==5?\"+\":\"\") + \": \" + numPurpleFlowers[i]);\n }\n // report about missing treasures\n println(\"Missing treasure count: \" + missingTreasureCount);\n\n println(\"\\nGenerated \" + caveGenCount + \" sublevels.\");\n println(\"Total run time: \" + (System.currentTimeMillis()-startTime)/1000.0 + \"s\");\n\n out.close();\n }", "@Override\r\n\tpublic void list_private() throws Exception {\n\t\tif (JavastravaApplicationConfig.STRAVA_ALLOWS_CHALLENGES_ENDPOINT) {\r\n\t\t\tsuper.list_private();\r\n\t\t}\r\n\t}", "@Test\r\n\tpublic void driverTop5MoreVisitedPrivateExhibitions() {\r\n\r\n\t\tfinal Object testingData[][] = {\r\n\r\n\t\t\t// testingData[i][0] -> usernamed of the logged Actor.\r\n\t\t\t// testingData[i][1] -> expected Exception.\r\n\r\n\t\t\t{\r\n\t\t\t\t// + 1) An administrator displays the statistics\r\n\t\t\t\t\"admin\", null\r\n\t\t\t}, {\r\n\t\t\t\t// - 2) An unauthenticated actor tries to display the statistics\r\n\t\t\t\tnull, IllegalArgumentException.class\r\n\t\t\t}, {\r\n\t\t\t\t// - 3) A visitor displays the statistics\r\n\t\t\t\t\"visitor1\", IllegalArgumentException.class\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tfor (int i = 0; i < testingData.length; i++) {\r\n\r\n\t\t\tthis.startTransaction();\r\n\r\n\t\t\tthis.templateTop5MoreVisitedPrivateExhibitions((String) testingData[i][0], (Class<?>) testingData[i][1]);\r\n\r\n\t\t\tthis.rollbackTransaction();\r\n\t\t\tthis.entityManager.clear();\r\n\t\t}\r\n\r\n\t}", "private void _generate() {\n System.out.println(\"Started...\");\n try {\n log_ = new PrintStream(new FileOutputStream(System.getProperty(\"user.dir\") +\n \"\\\\\" + LOG_FILE));\n //writer_.start(); \n\t for (int i = 0; i < instances_[CS_C_UNIV].num; i++) {\n\t _generateUniv(i + startIndex_);\n\t }\n \n //writer_.end();\n log_.close();\n }\n catch (IOException e) {\n System.out.println(\"Failed to create log file!\");\n }\n System.out.println(\"Completed!\");\n }", "private void exportDataAsList() {\n\t\t// TODO (BH): This is nearly a copy of the\n\t\t// printCollectedOverviewReport() method and should be cleaned up\n\t\tFileWriter wr = null;\n\t\ttry {\n\t\t\tfinal RapidClubAdminClient app = (RapidClubAdminClient) ApplicationManager.getApplication();\n\t\t\tfinal RapidBeansLocale locale = app.getCurrentLocale();\n\n\t\t\t// determine report output file\n\t\t\tFile overviewFile = null;\n\t\t\tif (app.getSettingsRapidClubAdmin().getReportfolder() != null) {\n\t\t\t\toverviewFile = new File(app.getSettingsRapidClubAdmin().getReportfolder(),\n\t\t\t\t\t\t\"SammeldruckAbrechnungszeitraum_\" + getBillingPeriod().getIdString() + \".txt\");\n\t\t\t} else {\n\t\t\t\toverviewFile = File.createTempFile(\n\t\t\t\t\t\t\"SammeldruckAbrechnungszeitraum_\" + getBillingPeriod().getIdString() + \"_\", \".txt\");\n\t\t\t}\n\n\t\t\tfinal Department[] departments = this.getSelectedDepartmentsWithTrainingsLists();\n\t\t\tfinal List<Department> depList = new ArrayList<Department>();\n\t\t\tfinal Collection<Trainer> trainers = new TreeSet<Trainer>();\n\t\t\tfor (Department dep : departments) {\n\t\t\t\tdepList.add(dep);\n\t\t\t\tfor (Trainer tr : dep.getTrainers()) {\n\t\t\t\t\tif (!trainers.contains(tr)) {\n\t\t\t\t\t\ttrainers.add(tr);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\twr = new FileWriter(overviewFile);\n\n\t\t\tfor (Trainer tr : trainers) {\n\t\t\t\tfinal List<Trainer> trs = new ArrayList<Trainer>();\n\t\t\t\ttrs.add(tr);\n\t\t\t\twr.write(Overview2.asString(trs, depList, locale));\n\t\t\t\twr.write(PlatformHelper.getLineFeed());\n\t\t\t\twr.write(PlatformHelper.getLineFeed());\n\t\t\t}\n\n\t\t\t// pop up the evidence report\n\t\t\tif (PlatformHelper.getOsfamily() == OperatingSystemFamily.windows) {\n\t\t\t\tRuntime.getRuntime().exec(\"cmd.exe /C \" + overviewFile.getAbsolutePath());\n\t\t\t} else {\n\t\t\t\tApplicationManager.getApplication()\n\t\t\t\t\t\t.messageInfo(\"Automatic Pop-Up not yet implemented for operating system\\n\\\"\"\n\t\t\t\t\t\t\t\t+ PlatformHelper.getOsName() + \"\\\".\\n\" + \"Please open file\\n\\\"\"\n\t\t\t\t\t\t\t\t+ overviewFile.getAbsolutePath() + \"\\\"\\nyourself.\");\n\t\t\t}\n\n\t\t\tif (this.getBillingPeriod().getDateExportFirst() == null) {\n\t\t\t\tthis.getBillingPeriod().setDateExportFirst(Date.from(Instant.now()));\n\t\t\t\tthis.validateAndUpdateButtons(this.getPropEditor(\"dateExportFirst\"));\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tthrow new RapidBeansRuntimeException(e);\n\t\t} finally {\n\t\t\tif (wr != null) {\n\t\t\t\ttry {\n\t\t\t\t\twr.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new RapidBeansRuntimeException(e);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void newExperiment() {\n // default value is negative because newGeneration() increase this value\n // and really start in 0\n currentGeneration = -1;\n this.newGeneration();\n DataCollector collector;\n for (String keyCollector : collectors.keySet()) {\n collector = collectors.get(keyCollector);\n if (!collector.getName().endsWith(HistoricalData.EXPERIMENT)) {\n collectors.remove(collector.getName());\n }\n }\n }", "@java.lang.Override\n public UserOuterClass.ExperimentInfo getExperiments(int index) {\n return experiments_.get(index);\n }", "@Override\n public void generateReport(final List<XmlSuite> xmlSuites,\n final List<ISuite> suites, final String outputDirectory) {\n try {\n for (ISuite suite : suites) {\n html = new HtmlCanvas();\n html.html().head();\n\n writeCss();\n html.title().content(\"Fedora API Test Suite Report\")._head()\n .body();\n html.h1().content(\"Fedora API Test Suite Summary\");\n\n html.h2().content(\"for \" + TestParameters.get().getImplementationName() + \" \" +\n TestParameters.get().getImplementationVersion());\n\n // Getting the results for the said suite\n final Map<String, ISuiteResult> suiteResults = suite.getResults();\n final ISuiteResult suiteResult = suiteResults.get(\"Fedora API Specification Tests\");\n\n if (suiteResult == null) {\n throw new RuntimeException(\"Unable to find expected test-suite: \" +\n \"'Fedora API Specification Tests', configured in the <suite> tag of 'testng.xml'!\");\n }\n\n final ITestContext tc = suiteResult.getTestContext();\n passedTests = tc.getPassedTests();\n failedTests = tc.getFailedTests();\n skippedTests = tc.getSkippedTests();\n\n // Display results summary\n displayResultsSummary();\n\n //Display methods summary\n makeMethodSummaryTable();\n\n // Add footer\n displayFooter();\n\n // send html to a file\n createWriter(html.toHtml());\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void execute() throws IOException, InterruptedException {\n\n if (FindBugs.noAnalysis)\n throw new UnsupportedOperationException(\"This FindBugs invocation was started without analysis capabilities\");\n\n Profiler profiler = bugReporter.getProjectStats().getProfiler();\n\n try {\n // Get the class factory for creating classpath/codebase/etc.\n classFactory = ClassFactory.instance();\n\n // The class path object\n createClassPath();\n\n progress.reportNumberOfArchives(project.getFileCount() + project.getNumAuxClasspathEntries());\n profiler.start(this.getClass());\n\n // The analysis cache object\n createAnalysisCache();\n\n // Create BCEL compatibility layer\n createAnalysisContext(project, appClassList, analysisOptions.sourceInfoFileName);\n\n // Discover all codebases in classpath and\n // enumerate all classes (application and non-application)\n buildClassPath();\n\n\n // Build set of classes referenced by application classes\n buildReferencedClassSet();\n\n // Create BCEL compatibility layer\n setAppClassList(appClassList);\n\n // Configure the BugCollection (if we are generating one)\n FindBugs.configureBugCollection(this);\n\n // Enable/disabled relaxed reporting mode\n FindBugsAnalysisFeatures.setRelaxedMode(analysisOptions.relaxedReportingMode);\n FindBugsDisplayFeatures.setAbridgedMessages(analysisOptions.abridgedMessages);\n\n // Configure training databases\n FindBugs.configureTrainingDatabases(this);\n\n // Configure analysis features\n configureAnalysisFeatures();\n\n // Create the execution plan (which passes/detectors to execute)\n createExecutionPlan();\n\n for (Plugin p : detectorFactoryCollection.plugins()) {\n for (ComponentPlugin<BugReporterDecorator> brp\n : p.getComponentPlugins(BugReporterDecorator.class)) {\n if (brp.isEnabledByDefault() && !brp.isNamed(explicitlyDisabledBugReporterDecorators)\n || brp.isNamed(explicitlyEnabledBugReporterDecorators))\n bugReporter = BugReporterDecorator.construct(brp, bugReporter);\n }\n }\n if (!classScreener.vacuous()) {\n bugReporter = new DelegatingBugReporter(bugReporter) {\n\n @Override\n public void reportBug(@Nonnull BugInstance bugInstance) {\n String className = bugInstance.getPrimaryClass().getClassName();\n String resourceName = className.replace('.', '/') + \".class\";\n if (classScreener.matches(resourceName)) {\n this.getDelegate().reportBug(bugInstance);\n }\n }\n };\n }\n\n if (executionPlan.isActive(NoteSuppressedWarnings.class)) {\n SuppressionMatcher m = AnalysisContext.currentAnalysisContext().getSuppressionMatcher();\n bugReporter = new FilterBugReporter(bugReporter, m, false);\n }\n\n if (appClassList.size() == 0) {\n if (analysisOptions.noClassOk) {\n System.err.println(\"No classfiles specified; output will have no warnings\");\n } else {\n throw new NoClassesFoundToAnalyzeException(classPath);\n }\n }\n\n // Analyze the application\n analyzeApplication();\n } catch (CheckedAnalysisException e) {\n IOException ioe = new IOException(\"IOException while scanning codebases\");\n ioe.initCause(e);\n throw ioe;\n } catch (OutOfMemoryError e) {\n System.err.println(\"Out of memory\");\n System.err.println(\"Total memory: \" + Runtime.getRuntime().maxMemory() / 1000000 + \"M\");\n System.err.println(\" free memory: \" + Runtime.getRuntime().freeMemory() / 1000000 + \"M\");\n\n for (String s : project.getFileList()) {\n System.err.println(\"Analyzed: \" + s);\n }\n for (String s : project.getAuxClasspathEntryList()) {\n System.err.println(\" Aux: \" + s);\n }\n throw e;\n } finally {\n clearCaches();\n profiler.end(this.getClass());\n profiler.report();\n }\n }", "@java.lang.Override\n public java.util.List<UserOuterClass.ExperimentInfo> getExperimentsList() {\n return experiments_;\n }", "@AfterClass\n\tpublic static void generateReport() {\n\t\tCucumberReportingConfig.reportConfig();\n\t\n\t}", "public void runExperiment() {\n\t\tevaluator = new Evaluator(trainingSet);\n\t\tevaluator.evaluateClassifiers(classifiers);\n\t}", "public static void runReport(HttpServletRequest request,HttpServletResponse response)throws IOException{\n\n\t\tAsePool connectionPool = null;\n\n\t\tConnection conn = null;\n\n\t\tString reportUser = null;\n\n\t\tString sql = null;\n\n\t\tboolean debug = false;\n\n\t\tAseUtil aseUtil = null;\n\n\t\tWebSite website = null;\n\n\t\ttry{\n\t\t\taseUtil = new AseUtil();\n\n\t\t\tHttpSession session = request.getSession(true);\n\n\t\t\treportUser = Encrypter.decrypter((String)session.getAttribute(\"aseUserName\"));\n\n\t\t\tint i = 0;\n\t\t\tint j = 0;\n\n\t\t\tString junk = \"\";\n\n\t\t\t// step 0\n\t\t\tconnectionPool = AsePool.getInstance();\n\t\t\tconn = connectionPool.getConnection();\n\n\t\t\twebsite = new WebSite();\n\t\t\tString campus = website.getRequestParameter(request,\"c\",\"\");\t\t// parm1\n\t\t\tString alpha = website.getRequestParameter(request,\"a\",\"\");\t\t\t// parm2\n\t\t\tString num = website.getRequestParameter(request,\"n\",\"\");\t\t\t// parm3\n\t\t\tString type = website.getRequestParameter(request,\"t\",\"\");\t\t\t// parm4\n\t\t\tString user = website.getRequestParameter(request,\"u\",\"\");\t\t\t// parm5\n\t\t\tString historyid = website.getRequestParameter(request,\"h\",\"\");\t// parm6\n\t\t\tint route = website.getRequestParameter(request,\"r\",0);\t\t\t\t// parm7\n\t\t\tString p8 = website.getRequestParameter(request,\"p8\",\"\");\t\t\t// any value\n\t\t\tString p9 = website.getRequestParameter(request,\"p9\",\"\");\t\t\t// any value\n\n\t\t\tif (campus == null || campus.length() == 0)\n\t\t\t\tcampus = Encrypter.decrypter((String)session.getAttribute(\"aseCampus\"));\n\n\t\t\tif (user == null || user.length() == 0)\n\t\t\t\tuser = Encrypter.decrypter((String)session.getAttribute(\"aseUserName\"));\n\n\t\t\tString campusName = CampusDB.getCampusNameOkina(conn,campus);\n\n\t\t\tString reportFolder = aseUtil.getReportFolder();\n\t\t\tString outputFolder = aseUtil.getReportOutputFolder(campus +\"/\");\n\n\t\t\tString logoFile = aseUtil.getCampusLogo(campus);\n\t\t\tString reportFileName = outputFolder + user + \".pdf\";\n\n\t\t\tString reportType = \"generic\";\n\t\t\tString reportTitle = \"\";\n\t\t\tString colsWidth = \"\";\n\t\t\tString headerColumns = \"\";\n\t\t\tString dataColumns = \"\";\n\n\t\t\tString where = \"\";\n\t\t\tString order = \"\";\n\t\t\tString grouping = null;\n\t\t\tString savedGrouping = null;\n\t\t\tString groupedValue = null;\n\t\t\tString footer = null;\n\t\t\tString reportSubTitle = null;\n\n\t\t\tString sWhere = \"\";\n\n\t\t\tString parm1 = \"\";\t\t// campus or FORUM src\n\t\t\tString parm2 = \"\";\t\t// alpha or FORUM status\n\t\t\tString parm3 = \"\";\t\t// num\n\t\t\tString parm4 = \"\";\t\t// type\n\t\t\tString parm5 = \"\";\t\t// user\n\t\t\tString parm6 = \"\";\t\t//\thistoryid\n\t\t\tString parm7 = \"\";\t\t//\troute\n\t\t\tString parm8 = \"\";\t\t//\n\t\t\tString parm9 = \"\";\t\t//\n\n\t\t\tint psIndex = 0;\n\n\t\t\tString aseReport = (String)session.getAttribute(\"aseReport\");\n\n\t\t\tif (aseReport != null && aseReport.length() > 0){\n\n\t\t\t\tResourceBundle reportBundle = ResourceBundle.getBundle(\"ase.central.reports.\" + aseReport);\n\t\t\t\tif (reportBundle != null){\n\n\t\t\t\t\tBundleDB bundle = new BundleDB();\n\n\t\t\t\t\treportType = bundle.getBundle(reportBundle,\"reportType\",\"\");\n\t\t\t\t\treportTitle = bundle.getBundle(reportBundle,\"reportTitle\",\"\");\n\t\t\t\t\tcolsWidth = bundle.getBundle(reportBundle,\"colsWidth\",\"\");\n\t\t\t\t\theaderColumns = bundle.getBundle(reportBundle,\"headerColumns\",\"\");\n\t\t\t\t\tdataColumns = bundle.getBundle(reportBundle,\"dataColumns\",\"\");\n\t\t\t\t\tsql = bundle.getBundle(reportBundle,\"sql\",\"\");\n\t\t\t\t\tgrouping = bundle.getBundle(reportBundle,\"grouping\",\"\");\n\t\t\t\t\tfooter = bundle.getBundle(reportBundle,\"footer\",\"\");\n\t\t\t\t\treportSubTitle = bundle.getBundle(reportBundle,\"reportSubTitle\",\"\");\n\n\t\t\t\t\twhere = bundle.getBundle(reportBundle,\"where\",\"\");\n\t\t\t\t\tif (where != null && where.length() > 0){\n\t\t\t\t\t\twhere = where.replace(\"_EQUALS_\",\"=\");\n\t\t\t\t\t}\n\n\t\t\t\t\torder = bundle.getBundle(reportBundle,\"order\",\"\");\n\t\t\t\t\tparm1 = bundle.getBundle(reportBundle,\"parm1\",\"\");\t// campus, src\n\t\t\t\t\tparm2 = bundle.getBundle(reportBundle,\"parm2\",\"\");\t// alpha\n\t\t\t\t\tparm3 = bundle.getBundle(reportBundle,\"parm3\",\"\");\t// num\n\t\t\t\t\tparm4 = bundle.getBundle(reportBundle,\"parm4\",\"\");\t// type\n\t\t\t\t\tparm5 = bundle.getBundle(reportBundle,\"parm5\",\"\");\t// userid\n\t\t\t\t\tparm6 = bundle.getBundle(reportBundle,\"parm6\",\"\");\t// history\n\t\t\t\t\tparm7 = bundle.getBundle(reportBundle,\"parm7\",\"\");\t// route\n\t\t\t\t\tparm8 = bundle.getBundle(reportBundle,\"parm8\",\"\");\n\t\t\t\t\tparm9 = bundle.getBundle(reportBundle,\"parm9\",\"\"); // any single value\n\n\t\t\t\t\tbundle = null;\n\n\t\t\t\t} // reportBundle\n\n\t\t\t\tif (reportTitle != null && colsWidth != null && headerColumns != null && dataColumns != null && sql != null){\n\t\t\t\t\tPdfPTable table = null;\n\t\t\t\t\tPhrase phrase = null;\n\t\t\t\t\tPdfPCell cell = null;\n\n\t\t\t\t\tBaseColor campusColor = null;\n\n\t\t\t\t\tString[] aColsWidth = colsWidth.split(\",\");\n\t\t\t\t\tString[] aDataColumns = dataColumns.split(\",\");\n\n\t\t\t\t\t// define colum width\n\t\t\t\t\tint columns = aDataColumns.length;\n\n\t\t\t\t\tfloat[] fColsWidth = new float[aDataColumns.length];\n\n\t\t\t\t\tfor(i=0; i<columns; i++){\n\t\t\t\t\t\tfColsWidth[i] = Float.valueOf(aColsWidth[i]).floatValue();\n\t\t\t\t\t}\n\n\t\t\t\t\t//---------------------------------------------------\n\t\t\t\t\t// define campus color; for grouping, use a different color\n\t\t\t\t\t//---------------------------------------------------\n\t\t\t\t\tif (reportType.equals(Constant.FORUM)){\n\t\t\t\t\t\tcampusColor = (BaseColor)campusColorMap.get(Constant.CAMPUS_TTG);\n\t\t\t\t\t}\n\t\t\t\t\telse if (reportType.equals(\"ApprovalRouting\")){\n\t\t\t\t\t\tcampusColor = (BaseColor)campusColorMap.get(Constant.CAMPUS_TTG);\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tif (campus != null && campus.length() > 0 && campusColorMap.containsKey(campus))\n\t\t\t\t\t\t\tcampusColor = (BaseColor)campusColorMap.get(campus);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (campusColor == null)\n\t\t\t\t\t\tcampusColor = BaseColor.LIGHT_GRAY;\n\n\t\t\t\t\t// step 1 of 5\n\t\t\t\t\tDocument document = new Document(PageSize.LETTER.rotate());\n\n\t\t\t\t\t// step 2 of 5\n\t\t\t\t\tPdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(reportFileName));\n\t\t\t\t\tTableHeader event = new TableHeader();\n\t\t\t\t\twriter.setPageEvent(event);\n\t\t\t\t\twriter.setPageEvent(new Watermark(\"Curriculum Central\"));\n\n\t\t\t\t\tint leading = 18;\n\n\t\t\t\t\t// step 3 of 5\n\t\t\t\t\tdocument.open();\n\t\t\t\t\tdocument.newPage();\n\n\t\t\t\t\t// create table with user column count\n\t\t\t\t\ttable = new PdfPTable(fColsWidth);\n\t\t\t\t\ttable.setWidthPercentage(100f);\n\t\t\t\t\ttable.setHorizontalAlignment(Element.ALIGN_LEFT);\n\t\t\t\t\ttable.getDefaultCell().setBorder(PdfPCell.NO_BORDER);\n\t\t\t\t\ttable.getDefaultCell().setUseAscender(true);\n\t\t\t\t\ttable.getDefaultCell().setUseDescender(true);\n\n\t\t\t\t\t//---------------------------------------------------\n\t\t\t\t\t//formulate sql statement\n\t\t\t\t\t//---------------------------------------------------\n\t\t\t\t\tif (reportType.equals(Constant.FORUM)){\n\t\t\t\t\t\tparm1 = website.getRequestParameter(request,\"src\",\"\");\n\t\t\t\t\t\tif (parm1 != null && parm1.length() > 0){\n\t\t\t\t\t\t\tsWhere = \" src=? \";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tparm2 = website.getRequestParameter(request,\"status\",\"\");\n\t\t\t\t\t\tif (parm2 != null && parm2.length() > 0){\n\t\t\t\t\t\t\tif (sWhere.length() > 0)\n\t\t\t\t\t\t\t\tsWhere += \" AND \";\n\n\t\t\t\t\t\t\tsWhere += \" status=? \";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if (reportType.equals(\"ApprovalRouting\")){\n\t\t\t\t\t\tif (parm1 != null && parm1.length() > 0 && campus != null && campus.length() > 0){\n\t\t\t\t\t\t\tif (sWhere.length() > 0)\n\t\t\t\t\t\t\t\tsWhere += \" AND \";\n\n\t\t\t\t\t\t\tsWhere += \" c.campus=? \";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (parm7 != null && parm7.length() > 0 && (route > 0 || route == -999)){\n\t\t\t\t\t\t\tif (sWhere.length() > 0)\n\t\t\t\t\t\t\t\tsWhere += \" AND \";\n\n\t\t\t\t\t\t\tif (route == -999)\n\t\t\t\t\t\t\t\tsWhere += \" c.route>? \";\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tsWhere += \" c.route=? \";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if (reportType.equals(\"SystemSettings\")){\n\t\t\t\t\t\tif (parm1 != null && parm1.length() > 0 && campus != null && campus.length() > 0){\n\t\t\t\t\t\t\tif (sWhere.length() > 0)\n\t\t\t\t\t\t\t\tsWhere += \" AND \";\n\n\t\t\t\t\t\t\tsWhere += \" campus=? \";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (parm9 != null && parm9.length() > 0){\n\t\t\t\t\t\t\tif (sWhere.length() > 0)\n\t\t\t\t\t\t\t\tsWhere += \" AND \";\n\n\t\t\t\t\t\t\tsWhere += \" \" + parm9 + \"=? \";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tif (parm1 != null && parm1.length() > 0 && campus != null && campus.length() > 0){\n\t\t\t\t\t\t\tsWhere = \" campus=? \";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (parm2 != null && parm2.length() > 0 && alpha != null && alpha.length() > 0){\n\t\t\t\t\t\t\tif (sWhere.length() > 0)\n\t\t\t\t\t\t\t\tsWhere += \" AND \";\n\n\t\t\t\t\t\t\tsWhere += \" alpha=? \";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (parm3 != null && parm3.length() > 0 && num != null && num.length() > 0){\n\t\t\t\t\t\t\tif (sWhere.length() > 0)\n\t\t\t\t\t\t\t\tsWhere += \" AND \";\n\n\t\t\t\t\t\t\tsWhere += \" num=? \";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (parm4 != null && parm4.length() > 0 && type != null && type.length() > 0){\n\t\t\t\t\t\t\tif (sWhere.length() > 0)\n\t\t\t\t\t\t\t\tsWhere += \" AND \";\n\n\t\t\t\t\t\t\tsWhere += \" type=? \";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (parm5 != null && parm5.length() > 0 && user != null && user.length() > 0){\n\t\t\t\t\t\t\tif (sWhere.length() > 0)\n\t\t\t\t\t\t\t\tsWhere += \" AND \";\n\n\t\t\t\t\t\t\tsWhere += \" userid=? \";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (parm6 != null && parm6.length() > 0 && historyid != null && historyid.length() > 0){\n\t\t\t\t\t\t\tif (sWhere.length() > 0)\n\t\t\t\t\t\t\t\tsWhere += \" AND \";\n\n\t\t\t\t\t\t\tsWhere += \" historyid=? \";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (parm7 != null && parm7.length() > 0 && route > 0){\n\t\t\t\t\t\t\tif (sWhere.length() > 0)\n\t\t\t\t\t\t\t\tsWhere += \" AND \";\n\n\t\t\t\t\t\t\tsWhere += \" route=? \";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} // reportType\n\n\t\t\t\t\t//---------------------------------------------------\n\t\t\t\t\t// final formulation of SQL\n\t\t\t\t\t//---------------------------------------------------\n\t\t\t\t\tif (where.length()==0 && sWhere.length()>0)\n\t\t\t\t\t\twhere = \" WHERE \" + sWhere;\n\t\t\t\t\telse{\n\t\t\t\t\t\twhere = \" WHERE \" + where;\n\n\t\t\t\t\t\tif (sWhere.length()>0)\n\t\t\t\t\t\t\twhere += \" AND \" + sWhere;\n\t\t\t\t\t}\n\n\t\t\t\t\t// prevent empty where\n\t\t\t\t\tif (where.trim().toUpperCase().equals(\"WHERE\"))\n\t\t\t\t\t\twhere = \"\";\n\n\t\t\t\t\tif (order.length() > 0)\n\t\t\t\t\t\torder = \" ORDER BY \" + order;\n\n\t\t\t\t\t// prevent empty order\n\t\t\t\t\tif (order.trim().toUpperCase().equals(\"ORDER BY\"))\n\t\t\t\t\t\torder = \"\";\n\n\t\t\t\t\tsql = sql + where + order;\n\n\t\t\t\t\tdebug = false;\n\n\t\t\t\t\tif (debug){\n\t\t\t\t\t\tlogger.info(\"campus: \" + campus);\n\t\t\t\t\t\tlogger.info(\"alpha: \" + alpha);\n\t\t\t\t\t\tlogger.info(\"num: \" + num);\n\t\t\t\t\t\tlogger.info(\"type: \" + type);\n\t\t\t\t\t\tlogger.info(\"user: \" + user);\n\t\t\t\t\t\tlogger.info(\"historyid: \" + historyid);\n\t\t\t\t\t\tlogger.info(\"route: \" + route);\n\t\t\t\t\t\tlogger.info(\"p8: \" + p8);\n\t\t\t\t\t\tlogger.info(\"p9: \" + p9);\n\t\t\t\t\t\tlogger.info(\"reportFolder: \" + reportFolder);\n\t\t\t\t\t\tlogger.info(\"logoFile: \" + logoFile);\n\t\t\t\t\t\tlogger.info(\"reportFileName: \" + reportFileName);\n\t\t\t\t\t\tlogger.info(\"reportType: \" + reportType);\n\t\t\t\t\t\tlogger.info(\"reportTitle: \" + reportTitle);\n\t\t\t\t\t\tlogger.info(\"colsWidth: \" + reportTitle);\n\t\t\t\t\t\tlogger.info(\"headerColumns: \" + headerColumns);\n\t\t\t\t\t\tlogger.info(\"dataColumns: \" + dataColumns);\n\t\t\t\t\t\tlogger.info(\"grouping: \" + grouping);\n\t\t\t\t\t\tlogger.info(\"footer: \" + footer);\n\t\t\t\t\t\tlogger.info(\"reportSubTitle: \" + reportSubTitle);\n\t\t\t\t\t\tlogger.info(\"order: \" + order);\n\t\t\t\t\t\tlogger.info(\"parm1: \" + parm1);\n\t\t\t\t\t\tlogger.info(\"parm2: \" + parm2);\n\t\t\t\t\t\tlogger.info(\"parm3: \" + parm3);\n\t\t\t\t\t\tlogger.info(\"parm4: \" + parm4);\n\t\t\t\t\t\tlogger.info(\"parm5: \" + parm5);\n\t\t\t\t\t\tlogger.info(\"parm6: \" + parm6);\n\t\t\t\t\t\tlogger.info(\"parm7: \" + parm7);\n\t\t\t\t\t\tlogger.info(\"parm8: \" + parm8);\n\t\t\t\t\t\tlogger.info(\"parm9: \" + parm9);\n\t\t\t\t\t\tlogger.info(\"aseReport: \" + aseReport);\n\t\t\t\t\t\tlogger.info(\"sql: \" + sql);\n\t\t\t\t\t}\n\n\t\t\t\t\t//---------------------------------------------------\n\t\t\t\t\t// Add the first header row (step 4 of 5)\n\t\t\t\t\t//---------------------------------------------------\n\t\t\t\t\tFont f = new Font();\n\n\t\t\t\t\tdrawTitleRow(table,reportTitle,campusColor,f,BaseColor.WHITE,columns,Element.ALIGN_CENTER);\n\n\t\t\t\t\t//---------------------------------------------------\n\t\t\t\t\t// customized subtitles\n\t\t\t\t\t//---------------------------------------------------\n\t\t\t\t\tif (reportType.equals(Constant.FORUM)){\n\t\t\t\t\t\treportSubTitle = parm1 + \" Report\";\n\t\t\t\t\t}\n\t\t\t\t\telse if (reportType.equals(\"ApprovalRouting\")){\n\t\t\t\t\t\tif (route == -999)\n\t\t\t\t\t\t\treportSubTitle = \"Approval Routing\";\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\treportSubTitle = \"Approval Routing - \" + ApproverDB.getRoutingFullNameByID(conn,campus,route);\n\t\t\t\t\t}\n\t\t\t\t\telse if (reportType.equals(\"SystemSettings\")){\n\t\t\t\t\t\treportSubTitle = \"System Settings - \" + p9;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (reportSubTitle != null && reportSubTitle.length() > 0){\n\t\t\t\t\t\tdrawTitleRow(table,reportSubTitle,campusColor,f,BaseColor.WHITE,columns,Element.ALIGN_CENTER);\n\t\t\t\t\t}\n\n\t\t\t\t\t//---------------------------------------------------\n\t\t\t\t\t// table header\n\t\t\t\t\t//---------------------------------------------------\n\t\t\t\t\tdrawHeaderRow(table,campusColor,columns,headerColumns,f);\n\n\t\t\t\t\ttable.getDefaultCell().setBackgroundColor(null);\n\n\t\t\t\t\ttable.setHeaderRows(2);\n\n\t\t\t\t\t//---------------------------------------------------\n\t\t\t\t\t// get the data\n\t\t\t\t\t//---------------------------------------------------\n\t\t\t\t\tPreparedStatement ps = conn.prepareStatement(sql);\n\n\t\t\t\t\tif (reportType.equals(Constant.FORUM)){\n\t\t\t\t\t\tif (parm1 != null && parm1.length() > 0)\n\t\t\t\t\t\t\tps.setString(1,parm1);\n\n\t\t\t\t\t\tif (parm2 != null && parm2.length() > 0)\n\t\t\t\t\t\t\tps.setString(2,parm2);\n\t\t\t\t\t}\n\t\t\t\t\telse if (reportType.equals(\"ApprovalRouting\")){\n\t\t\t\t\t\tif (parm1 != null && parm1.length() > 0 && campus != null && campus.length() > 0)\n\t\t\t\t\t\t\tps.setString(++psIndex,campus);\n\n\t\t\t\t\t\tif (parm7 != null && parm7.length() > 0 && (route > 0 || route == -999)){\n\t\t\t\t\t\t\tif (route == -999)\n\t\t\t\t\t\t\t\tps.setInt(++psIndex,0);\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tps.setInt(++psIndex,route);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if (reportType.equals(\"SystemSettings\")){\n\t\t\t\t\t\tif (parm1 != null && parm1.length() > 0 && campus != null && campus.length() > 0)\n\t\t\t\t\t\t\tps.setString(++psIndex,campus);\n\n\t\t\t\t\t\tif (p9 != null && p9.length() > 0)\n\t\t\t\t\t\t\tps.setString(++psIndex,p9);\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tif (parm1 != null && parm1.length() > 0 && campus != null && campus.length() > 0)\n\t\t\t\t\t\t\tps.setString(++psIndex,campus);\n\n\t\t\t\t\t\tif (parm2 != null && parm2.length() > 0 && alpha != null && alpha.length() > 0)\n\t\t\t\t\t\t\tps.setString(++psIndex,alpha);\n\n\t\t\t\t\t\tif (parm3 != null && parm3.length() > 0 && num != null && num.length() > 0)\n\t\t\t\t\t\t\tps.setString(++psIndex,num);\n\n\t\t\t\t\t\tif (parm4 != null && parm4.length() > 0 && type != null && type.length() > 0)\n\t\t\t\t\t\t\tps.setString(++psIndex,type);\n\n\t\t\t\t\t\tif (parm5 != null && parm5.length() > 0 && user != null && user.length() > 0)\n\t\t\t\t\t\t\tps.setString(++psIndex,user);\n\n\t\t\t\t\t\tif (parm6 != null && parm6.length() > 0 && historyid != null && historyid.length() > 0)\n\t\t\t\t\t\t\tps.setString(++psIndex,historyid);\n\n\t\t\t\t\t\tif (parm7 != null && parm7.length() > 0 && route > 0)\n\t\t\t\t\t\t\tps.setInt(++psIndex,route);\n\n\t\t\t\t\t} // reportType\n\n\t\t\t\t\tResultSet rs = ps.executeQuery();\n\t\t\t\t\twhile(rs.next()){\n\n\t\t\t\t\t\tevent.setHeader(reportTitle,campusName,user);\n\n\t\t\t\t\t\tif (grouping != null && grouping.length() > 0){\n\t\t\t\t\t\t\tgroupedValue = AseUtil.nullToBlank(rs.getString(grouping));\n\t\t\t\t\t\t\tif (savedGrouping == null || !savedGrouping.equals(groupedValue)){\n\t\t\t\t\t\t\t\tsavedGrouping = groupedValue;\n\t\t\t\t\t\t\t\tdrawTitleRow(table,\n\t\t\t\t\t\t\t\t\t\t\t\tsavedGrouping.toUpperCase(),\n\t\t\t\t\t\t\t\t\t\t\t\tcampusColor,\n\t\t\t\t\t\t\t\t\t\t\t\tf,\n\t\t\t\t\t\t\t\t\t\t\t\tBaseColor.BLACK,\n\t\t\t\t\t\t\t\t\t\t\t\tcolumns,\n\t\t\t\t\t\t\t\t\t\t\t\tElement.ALIGN_LEFT);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} // grouping\n\n\t\t\t\t\t\tif (j % 2 == 0)\n\t\t\t\t\t\t\ttable.getDefaultCell().setBackgroundColor(ASE_ODD_ROW_COLOR);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\ttable.getDefaultCell().setBackgroundColor(ASE_EVEN_ROW_COLOR);\n\n\t\t\t\t\t\tfor (i=0;i<columns;i++){\n\n\t\t\t\t\t\t\tif (!aDataColumns[i].equals(Constant.BLANK)){\n\t\t\t\t\t\t\t\tif (aDataColumns[i].indexOf(\"date\") > -1){\n\t\t\t\t\t\t\t\t\tjunk = aseUtil.ASE_FormatDateTime(rs.getString(aDataColumns[i]),Constant.DATE_DATE_MDY);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\tjunk = aseUtil.nullToBlank(rs.getString(aDataColumns[i]));\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\tjunk = \"\";\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tjunk = junk.replace(\"<p>\",\"\")\n\t\t\t\t\t\t\t\t\t\t.replace(\"</p>\",\"\\n\")\n\t\t\t\t\t\t\t\t\t\t.replace(\"<br>\",\"\\n\")\n\t\t\t\t\t\t\t\t\t\t.replace(\"<br/>\",\"\\n\")\n\t\t\t\t\t\t\t\t\t\t.replace(\"<br />\",\"\\n\")\n\t\t\t\t\t\t\t\t\t\t.replace(\"&nbsp;\",\" \")\n\t\t\t\t\t\t\t\t\t\t;\n\n\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t//phrase = new Phrase();\n\t\t\t\t\t\t\t\t//phrase.add(createPhrase(junk,false));\n\n\t\t\t\t\t\t\t\t//OR\n\n\t\t\t\t\t\t\t\t// this version cuts does not parse html\n\t\t\t\t\t\t\t\tphrase = new Phrase(leading, new Chunk(junk, FontFactory.getFont(FontFactory.TIMES_ROMAN, dataFontSize, Font.NORMAL, BaseColor.BLACK)));\n\t\t\t\t\t\t\t\tcell = new PdfPCell(phrase);\n\n\t\t\t\t\t\t\t\t// OR\n\n\t\t\t\t\t\t\t\t// this version is having problems with a stylesheet or font message\n\t\t\t\t\t\t\t\t//cell = new PdfPCell(processElement(junk, DATACOLOR, Font.NORMAL));\n\n\t\t\t\t\t\t\t\t// OR\n\n\t\t\t\t\t\t\t\t// this version is having problems with a stylesheet or font message.\n\t\t\t\t\t\t\t\t// also cuts off multiline data\n\t\t\t\t\t\t\t\t//cell = processElement(junk);\n\n\t\t\t\t\t\t\t\tcell.setFixedHeight(20);\n\t\t\t\t\t\t\t\tcell.setPaddingRight(10);\n\t\t\t\t\t\t\t\ttable.addCell(cell);\n\t\t\t\t\t\t\t} catch(IllegalArgumentException e){\n\t\t\t\t\t\t\t\tlogger.fatal(\"ReportGeneric - runReport 1: \" + e.toString());\n\t\t\t\t\t\t\t} catch(Exception e){\n\t\t\t\t\t\t\t\tlogger.fatal(\"ReportGeneric - runReport 2: \" + e.toString());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t++j;\n\t\t\t\t\t} // while\n\n\t\t\t\t\tif (j==0){\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\tphrase = new Phrase();\n\t\t\t\t\t\t\tphrase.add(createPhrase(\"no date found for requested report\",false));\n\t\t\t\t\t\t\tcell = new PdfPCell(phrase);\n\t\t\t\t\t\t\tcell.setFixedHeight(20);\n\t\t\t\t\t\t\tcell.setPaddingRight(10);\n\t\t\t\t\t\t\tcell.setColspan(columns);\n\t\t\t\t\t\t\ttable.addCell(cell);\n\t\t\t\t\t\t} catch(IllegalArgumentException e){\n\t\t\t\t\t\t\tlogger.fatal(\"ReportGeneric - runReport 1: \" + e.toString());\n\t\t\t\t\t\t} catch(Exception e){\n\t\t\t\t\t\t\tlogger.fatal(\"ReportGeneric - runReport 2: \" + e.toString());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tdocument.add(table);\n\n\t\t\t\t\t// footer\n\t\t\t\t\tif (reportType.equals(Constant.FORUM)){\n\n\t\t\t\t\t\tList list = new List();\n\n\t\t\t\t\t\tjunk = \"CLOSED - tickets combined with another item because of similarity in the work that is needed, or the work that is no longer necessary.\";\n\t\t\t\t\t\tphrase = new Phrase(leading, new Chunk(junk, FontFactory.getFont(FontFactory.TIMES_ROMAN, dataFontSize, Font.NORMAL, BaseColor.BLACK)));\n\t\t\t\t\t\tlist.add(new ListItem(phrase));\n\n\t\t\t\t\t\tjunk = \"COMPLETED - this status is set after development has been completed, and user confirms that CC is working as expected.\";\n\t\t\t\t\t\tphrase = new Phrase(leading, new Chunk(junk, FontFactory.getFont(FontFactory.TIMES_ROMAN, dataFontSize, Font.NORMAL, BaseColor.BLACK)));\n\t\t\t\t\t\tlist.add(new ListItem(phrase));\n\n\t\t\t\t\t\tjunk = \"MONITORING - either a problem cannot be recreated or a fix was implemented without a way to recreate the problem.\";\n\t\t\t\t\t\tphrase = new Phrase(leading, new Chunk(junk, FontFactory.getFont(FontFactory.TIMES_ROMAN, dataFontSize, Font.NORMAL, BaseColor.BLACK)));\n\t\t\t\t\t\tlist.add(new ListItem(phrase));\n\n\t\t\t\t\t\tjunk = \"REQUIREMENTS - an enhancement or bug fix requiring additional specification prior to development.\";\n\t\t\t\t\t\tphrase = new Phrase(leading, new Chunk(junk, FontFactory.getFont(FontFactory.TIMES_ROMAN, dataFontSize, Font.NORMAL, BaseColor.BLACK)));\n\t\t\t\t\t\tlist.add(new ListItem(phrase));\n\n\t\t\t\t\t\tjunk = \"RESEARCH - the development team is unclear of the reported ticket or requset and requires time to better understand what has taken place and possible recommendation for the user.\";\n\t\t\t\t\t\tphrase = new Phrase(leading, new Chunk(junk, FontFactory.getFont(FontFactory.TIMES_ROMAN, dataFontSize, Font.NORMAL, BaseColor.BLACK)));\n\t\t\t\t\t\tlist.add(new ListItem(phrase));\n\n\t\t\t\t\t\tjunk = \"REVIEW - items the development team required additional time to understand.\";\n\t\t\t\t\t\tphrase = new Phrase(leading, new Chunk(junk, FontFactory.getFont(FontFactory.TIMES_ROMAN, dataFontSize, Font.NORMAL, BaseColor.BLACK)));\n\t\t\t\t\t\tlist.add(new ListItem(phrase));\n\n\t\t\t\t\t\tjunk = \"UAT - user acceptance testing (UAT) is the process where user(s) confirms that a fix or enhancement was completed as requested. If all goes well, the work is moved to production; otherwise, the work goes back for more requirements.\";\n\t\t\t\t\t\tphrase = new Phrase(leading, new Chunk(junk, FontFactory.getFont(FontFactory.TIMES_ROMAN, dataFontSize, Font.NORMAL, BaseColor.BLACK)));\n\t\t\t\t\t\tlist.add(new ListItem(phrase));\n\n\t\t\t\t\t\tdocument.add(list);\n\n\t\t\t\t\t}\n\n\t\t\t\t\t// step 5 of 5\n\t\t\t\t\tdocument.close();\n\n\t\t\t\t\t// with report ready, open in browser\n\t\t\t\t\twritePDF(request,response,reportFileName);\n\n\t\t\t\t} // not null report fields\n\n\t\t\t} // aseReport\n\n\t\t} catch(SQLException ex){\n\t\t\tlogger.fatal(\"ReportGeneric - runReport 3: \" + ex.toString());\n\t\t} catch(IllegalArgumentException ex){\n\t\t\tlogger.fatal(\"ReportGeneric - runReport - 4: \" + ex.toString());\n\t\t} catch(Exception ex){\n\t\t\tlogger.fatal(\"ReportGeneric - runReport 5: \" + ex.toString());\n\t\t} finally {\n\t\t\tconnectionPool.freeConnection(conn,\"ReportGeneric\",reportUser);\n\n\t\t\ttry{\n\t\t\t\tif (conn != null){\n\t\t\t\t\tconn.close();\n\t\t\t\t\tconn = null;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(Exception e){\n\t\t\t\tlogger.fatal(\"Tables: campusOutlines - \" + e.toString());\n\t\t\t}\n\n\t\t\taseUtil = null;\n\t\t\twebsite = null;\n\t\t}\n\t}", "public final void generateAll() {\n ConsoleUtils.display(\">> Generate Rest test...\");\n\n List<IUpdater> updaters = this.getAdapter().getRestUpdatersTest();\n this.processUpdater(updaters);\n\n Iterable<EntityMetadata> entities =\n this.getAppMetas().getEntities().values();\n\n for (final EntityMetadata entity : entities) {\n if (entity.getOptions().containsKey(\"rest\") \n && !entity.isInternal() \n && !entity.getFields().isEmpty()) {\n\n ConsoleUtils.display(\">>> Generate Rest test for \" \n + entity.getName());\n\n this.getDatamodel().put(\n TagConstant.CURRENT_ENTITY, entity.getName());\n\n updaters = this.getAdapter()\n .getRestEntityUpdatersTest(entity);\n this.processUpdater(updaters);\n }\n }\n }", "@JsonIgnore\n @Override\n public List<Experiment> getExperiments()\n {\n if (getFetchOptions() != null && getFetchOptions().hasExperiments())\n {\n return experiments;\n }\n else\n {\n throw new NotFetchedException(\"Experiments have not been fetched.\");\n }\n }", "@Test (groups = {\"regressionTest\"})\n public void testPrivateQueries() {\n test = extent.createTest(\"Verify Private Query Button\");\n driver.manage().timeouts().implicitlyWait(time_to_wait, TimeUnit.SECONDS);//this is global so no need to mention multiple times\n try {\n login.doLogin(test);\n test.createNode(\"Clicking on Help Button\");\n //test.log(Status.INFO, \"Clicking on Help Button\");\n WebElement helpButton = driver.findElement(By.cssSelector(\".explore-quiries-inner\"));\n highlightHelper.highLightElement(driver, helpButton);\n helpButton.click();\n\n test.createNode(\"Clicking on Private Query Button\");\n //test.log(Status.INFO, \"Clicking on Private Query Button\");\n WebElement privateQueryButton = driver.findElement(By.id(\"scrollable-auto-tab-1\"));\n highlightHelper.highLightElement(driver, privateQueryButton);\n privateQueryButton.click();\n } catch (Exception e) {\n test.createNode(\"Exception (\" + e.toString() + \") found\").fail(e);\n Assert.assertTrue(false);\n }\n test.createNode(\"Verified Private Query Successfully\");\n }", "private boolean getBuildAction(Run<?, ?> run, FilePath workspace) throws IOException, InterruptedException{\n GatlingReportArchiver archiver = new GatlingReportArchiver();\n List<BuildSimulation> simulations = archiver.saveFullReports(run, this.logger, workspace);\n if (simulations.size() == 0){\n return false;\n }\n\n\n List<SimulationReport> simulationReportList = new ArrayList<SimulationReport>();\n Map<String, NodeSimulationData> simulationData;\n\n for (BuildSimulation sim : simulations){\n\n List<SimulationConfig> simConfig = getGatlingSimData(workspace, sim.getSimulationName());\n for (SimulationConfig sc : simConfig){\n this.logger.println(\"[PuppetGatling] - Here are the Gatling Simulation Results for \" + sim.getSimulationName() + \": \" + sc.getSimulationName() + \", \"\n + sc.getNumberInstances() + \", \" + sc.getNumberRepetitions());\n }\n\n FilePath statsJs = new FilePath(sim.getSimulationDirectory(), \"js/stats.js\");\n\n this.logger.println(\"[PuppetGatling] - The stats javascript file is: \" + statsJs);\n\n // new hash with data ready to be calculated\n // This could be where I pass in the appropriate SimulationConfig data structure\n // so it can be added the Map simulationData\n simulationData = getGroupCalculations(statsJs);\n\n SimulationMetrics metrics = new SimulationMetrics(run, logger, workspace, sim.getSimulationName());\n\n SimulationReport simulationReport = generateSimulationReport(new SimulationReport(),\n simulationData, workspace, sim.getSimulationName(), simConfig,\n metrics);\n simulationReportList.add(simulationReport);\n }\n\n PuppetGatlingBuildAction customAction =\n new PuppetGatlingBuildAction(run, simulations, simulationReportList);\n run.addAction(customAction);\n return true;\n }", "public static void main(String[] args){\n \n String loginResponse = \"\";\n String jSessionID = \"\";\n String jsonData = \"\";\n String csvData = \"\";\n String writeToFileOutput = \"\";\n // Change the baseURL to your own jira server's address and port number\n // Note: adding \"rest/\" at the end may not be necessary in your \n // environment\n String baseURL = \"http://ec2-18-235-248-253.compute-1.amazonaws.com:2990/jira/rest/\";\n String loginURL = \"auth/1/session\";\n String biExportURL = \"getbusinessintelligenceexport/1.0/message\";\n // The analysisStartData and analysisEndDate specify an inclusive\n // period over time over which you want to extract issues that \n // have been either added or updated.\n String analysisStartDate = \"01-DEC-18\";\n String analysisEndDate = \"31-DEC-18\";\n // The loginUserName and loginPassWord are the credentials for a user\n // who has permission to view the issues that you wish to export.\n String loginUserName = \"admin\";\n String loginPassWord = \"admin\";\n boolean errorsOccurred = false;\n String exportDirectory = \"./downloads/\";\n \n if(!errorsOccurred)\n {\n loginResponse = loginToJira(baseURL, loginURL, loginUserName, loginPassWord);\n if(loginResponse == \"ERROR\") { errorsOccurred = true; }\n }\n if(!errorsOccurred)\n {\n jSessionID = parseJSessionID(loginResponse);\n if(jSessionID == \"ERROR\") { errorsOccurred = true; }\n }\n if(!errorsOccurred)\n {\n jsonData = getJsonData(baseURL, biExportURL, jSessionID, analysisStartDate, analysisEndDate);\n if(jsonData == \"ERROR\") { errorsOccurred = true; }\n }\n if(!errorsOccurred)\n {\n csvData = formatAsCSV(jsonData);\n if(csvData == \"ERROR\") { errorsOccurred = true; }\n }\n if(!errorsOccurred)\n {\n writeToFileOutput = writeToFile(csvData, exportDirectory);\n if(writeToFileOutput == \"ERROR\") { errorsOccurred = true; }\n }\n if(!errorsOccurred)\n {\n System.out.println(\"SUCCESS\");\n } else {\n System.out.println(\"FAILURE\");\n }\n }", "public void setExperiments(Collection<Experiment> experiments);", "public void sendEmailForAccessionReports(Exchange exchange) {\n logger.info(\"accession reports email started \");\n producerTemplate.sendBodyAndHeader(RecapConstants.EMAIL_Q, getEmailPayLoadForAccession(exchange), RecapConstants.EMAIL_FOR, RecapConstants.ACCESSION_REPORTS);\n }", "@Test(priority = 1, groups= {\"regression\",\"smoke\"})\r\n\tpublic void PrintHospitals()\r\n\t{\r\n\t\tlogger= report.createTest(\"Printing Hospitals as per requirement\");\r\n\t\tDisplayHospitalNames hp=Base.nextPage1();\r\n\t\thp.selectLocation();\r\n\t\thp.selectHospital();\r\n\t\thp.applyFilters();\r\n\t\thp.hospitals();\r\n\t\thp.Back();\r\n\t}", "public void runTests() throws Exception {\n\t\tArrayList<KaidaComposer> als = getCrossOverPermutationTest();\r\n//\t\tArrayList<KaidaComposer> als = getMutationProbabilityTests();\r\n\t\t\r\n\t\tsynchronized (results) {\r\n\t\t\tresults.clear();\r\n\t\t\tfor (KaidaComposer al : als) {\r\n\t\t\t\tresults.add(new TestRunGenerationStatistics(nrOfContests,nrOfGenerations,al.getLabel(),al));\t\r\n\t\t\t}\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tsetProgress(0f);\r\n\t\t\r\n\t\ttry {\r\n\t\t\tfor (int runs = 0; runs < nrOfContests; runs++) {\r\n\t\t\t//run the test n times\r\n\t\t\t\r\n\t\t\t\tSystem.out.println(\"\\nContest Nr. \" + runs + \" started\");\r\n\t\t\t\tTimer t = new Timer(\"Contest Nr. \" + runs);\r\n\t\t\t\tt.start();\r\n\t\t\t\t\r\n\t\t\t\tfor (KaidaComposer algorithm : als) {\r\n\t\t\t\t\talgorithm.restartOrTakeOver();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tfor (int g = 0; g < nrOfGenerations; g++) {\r\n\t\t\t\t\t//do one evolution step\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor (KaidaComposer algorithm : als) {\r\n\t\t\t\t\t\tif (algorithm.isCycleCompleted()) {\r\n\t\t\t\t\t\t\talgorithm.startNextCycle();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\talgorithm.doOneEvolutionCycle();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tt.stopAndPrint();\r\n\t\t\t\tt.start(\"Adding to results\");\r\n\t\t\t\tsynchronized (results) {\r\n\t\t\t\t\tfor (int z=0; z < als.size(); z++) {\r\n\t\t\t\t\t\tresults.get(z).addTestRun(als.get(z).getGenerations().getRange(0,nrOfGenerations));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tt.stopAndPrint();\r\n\t\t\t\tt.start(\"Calculating statistics\");\r\n\t\t\t\tsynchronized (results) {\r\n\t\t\t\t\tfor (int z=0; z < als.size(); z++) {\r\n\t\t\t\t\t\tresults.get(z).calculateStats();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tt.stopAndPrint();\r\n\t\t\t\t\r\n\t\t\t\tsetProgress((double)runs/(double)(nrOfContests-1));\r\n\t\t\t\t\r\n\t\t\t\tif (pause!=0) {\r\n\t\t\t\t\tsleep(pause);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (isPleasePause()) break;\r\n\t\t\t}\r\n\t\t\tsynchronized (results) {\r\n\t\t\t\tfor (int z=0; z < als.size(); z++) { //als.size()\r\n\t\t\t\t\tresults.get(z).calculateStats();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tsetProgress(1.0f);\r\n\t\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\t//fail(\"al threw some Exception\");\r\n\t\t\tSystem.exit(1);\r\n\t\t}\r\n\t\t\r\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tString filePath = env.getProperty(\"export.file.path\");\n\t\t\t\tFileSystem fileSystem = FileSystems.getDefault();\n\t\t\t\t// log.debug(\"FILE SYSTEM -----\" + fileSystem);\n\n\t\t\t\t// if(StringUtils.isNotEmpty(empId)) {\n\t\t\t\t// filePath += \"/\" + empId;\n\t\t\t\t// }\n\t\t\t\tPath path = fileSystem.getPath(filePath);\n\t\t\t\t// log.debug(\"PATH----------\" + path);\n\t\t\t\t// path = path.resolve(String.valueOf(empId));\n\t\t\t\tif (!Files.exists(path)) {\n\t\t\t\t\tPath newEmpPath = Paths.get(filePath);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tFiles.createDirectory(newEmpPath);\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while creating path \" + newEmpPath);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfilePath += \"/\" + exportFileName;\n\t\t\t\t// log.debug(\"NEW EXCEL_FILE PATH TO EXPORT----------\" + filePath);\n\n\t\t\t\t// create workbook\n\t\t\t\tXSSFWorkbook xssfWorkbook = new XSSFWorkbook();\n\t\t\t\t// create worksheet with title\n\t\t\t\tXSSFSheet xssfSheet = xssfWorkbook.createSheet(\"EMPLOYEE_REPORT\");\n\n\t\t\t\tRow headerRow = xssfSheet.createRow(0);\n\n\t\t\t\tfor (int i = 0; i < EMP_HEADER.length; i++) {\n\t\t\t\t\tCell cell = headerRow.createCell(i);\n\t\t\t\t\tcell.setCellValue(EMP_HEADER[i]);\n\t\t\t\t}\n\n\t\t\t\tint rowNum = 1;\n\n\t\t\t\tfor (EmployeeDTO transaction : content) {\n\n\t\t\t\t\tlog.info(\"Entered into EMP-FOR Loop--------->\");\n\n\t\t\t\t\tRow dataRow = xssfSheet.createRow(rowNum++);\n\n\t\t\t\t\tdataRow.createCell(0).setCellValue(transaction.getEmpId());\n\t\t\t\t\tdataRow.createCell(1).setCellValue(transaction.getName());\n\t\t\t\t\tdataRow.createCell(2).setCellValue(transaction.getDesignation());\n\t\t\t\t\tdataRow.createCell(3).setCellValue(transaction.getManagerName());\n\t\t\t\t\tdataRow.createCell(4).setCellValue(transaction.getProjectName());\n\t\t\t\t\tdataRow.createCell(5).setCellValue(transaction.getSiteName());\n\t\t\t\t\tdataRow.createCell(6).setCellValue(transaction.getActive());\n\t\t\t\t}\n\n\t\t\t\tfor (int i = 0; i < EMP_HEADER.length; i++) {\n\t\t\t\t\txssfSheet.autoSizeColumn(i);\n\t\t\t\t}\n\t\t\t\t// log.info(exportFileName + \" Excel file was created successfully !!!\");\n\t\t\t\tstatusMap.put(exportFileName, \"COMPLETED\");\n\n\t\t\t\t// String fName = \"F:\\\\Export\\\\Employee.xlsx\";\n\t\t\t\tFileOutputStream fileOutputStream = null;\n\t\t\t\ttry {\n\t\t\t\t\tfileOutputStream = new FileOutputStream(filePath);\n\t\t\t\t\txssfWorkbook.write(fileOutputStream);\n\t\t\t\t\tfileOutputStream.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tlog.error(\"Error while flushing/closing !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t}\n\t\t\t\tlock.unlock();\n\t\t\t}", "public java.util.List<UserOuterClass.ExperimentInfo> getExperimentsList() {\n if (experimentsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(experiments_);\n } else {\n return experimentsBuilder_.getMessageList();\n }\n }", "public void printAllComputers( ) { \n\t\tint i=1;\n\t\tfor (Computer temp : computers ) {\n\n\t\t\tSystem.out.println(\"Computer number : \"+i);\n\t\t\ttemp.printComputerSummary();\n\t\t\ti++;\n\n\t\t}\n\t}", "public static void setReport()\n {\n ExtentHtmlReporter htmlReporter = new ExtentHtmlReporter(\"\\\\C:\\\\Users\\\\shir halevi\\\\Desktop\\\\qaexpert\\\\buyMe\\\\reports\\\\extent.html\");\n htmlReporter.setAppendExisting(true);\n extent = new ExtentReports();\n extent.attachReporter(htmlReporter);\n test = extent.createTest(\"BuyMeSanityTestWeb\", \"This is a BuyMe Sanity Test Web\");\n extent.setSystemInfo(\"Tester\", \"Shir\");\n test.log(Status.INFO, \"@Before class\");\n }", "public void setExperiments(List<Experiment> experiments)\n {\n this.experiments = experiments;\n }", "private void analyze() {\n\t\tdouble org = 0;\n\t\tdouble avgIndPerDoc = 0;\n\t\tdouble avgTotalPerDoc = 0;\n\n\t\tfor (Instance instance : instanceProvider.getInstances()) {\n\n\t\t\tint g = 0;\n\t\t\tSet<AbstractAnnotation> orgM = new HashSet<>();\n\n//\t\t\torgM.addAll(instance.getGoldAnnotations().getAnnotations());\n//\t\t\tg += instance.getGoldAnnotations().getAnnotations().size();\n\n\t\t\tfor (AbstractAnnotation instance2 : instance.getGoldAnnotations().getAnnotations()) {\n\n\t\t\t\tResult r = new Result(instance2);\n\n\t\t\t\t{\n////\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(r.getTrend());\n//\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(r.getInvestigationMethod());\n////\t\t\t\t\tList<AbstractAnnotation> aa = new ArrayList<>(\n////\t\t\t\t\t\t\tr.getDefinedExperimentalGroups().stream().map(a -> a.get()).collect(Collectors.toList()));\n//\n//\t\t\t\t\torgM.addAll(aa);\n//\t\t\t\t\tg += aa.size();\n\t\t\t\t}\n\n\t\t\t\t{\n\t\t\t\t\t/**\n\t\t\t\t\t * props of exp\n\t\t\t\t\t */\n\t\t\t\t\tfor (DefinedExperimentalGroup instance3 : r.getDefinedExperimentalGroups()) {\n\n//\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(instance3.getOrganismModel());\n//\t\t\t\t\tList<AbstractAnnotation> aa = new ArrayList<>(instance3.getTreatments());\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(instance3.getInjury());\n\n\t\t\t\t\t\tList<AbstractAnnotation> ab = Arrays.asList(instance3.getInjury());\n\n\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n\t\t\t\t\t\t\t\t.filter(i -> i != null).flatMap(i -> i.getDeliveryMethods().stream())\n\t\t\t\t\t\t\t\t.filter(i -> i != null).collect(Collectors.toList());\n\n\t\t\t\t\t\taa.addAll(instance3.getTreatments().stream().filter(i -> i != null)\n\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Treatment(et))\n\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getDeliveryMethod()).filter(i -> i != null)\n\t\t\t\t\t\t\t\t.collect(Collectors.toList()));\n\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).flatMap(i -> i.getAnaesthetics().stream())\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).collect(Collectors.toList());\n\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getInjuryDevice()).filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.collect(Collectors.toList());\n\n\t\t\t\t\t\t// List<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getInjuryLocation()).filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.collect(Collectors.toList());\n\n\t\t\t\t\t\torgM.addAll(aa);\n\t\t\t\t\t\tg += aa.size();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tavgIndPerDoc += orgM.size();\n\t\t\tavgTotalPerDoc += g;\n\n\t\t\torg += ((double) orgM.size()) / (g == 0 ? 1 : g);\n//\t\t\tSystem.out.println(((double) orgM.size()) / g);\n\n\t\t}\n\t\tSystem.out.println(\"avgTotalPerDoc = \" + avgTotalPerDoc / instanceProvider.getInstances().size());\n\t\tSystem.out.println(\"avgIndPerDoc = \" + avgIndPerDoc / instanceProvider.getInstances().size());\n\t\tSystem.out.println(\"org = \" + org);\n\t\tSystem.out.println(\"avg. org = \" + (org / instanceProvider.getInstances().size()));\n\t\tSystem.out.println(new DecimalFormat(\"0.00\").format(avgTotalPerDoc / instanceProvider.getInstances().size())\n\t\t\t\t+ \" & \" + new DecimalFormat(\"0.00\").format(avgIndPerDoc / instanceProvider.getInstances().size())\n\t\t\t\t+ \" & \" + new DecimalFormat(\"0.00\").format(org / instanceProvider.getInstances().size()));\n\t\tSystem.exit(1);\n\n\t\tStats.countVariables(0, instanceProvider.getInstances());\n\n\t\tint count = 0;\n\t\tfor (SlotType slotType : EntityType.get(\"Result\").getSlots()) {\n\n\t\t\tif (slotType.isExcluded())\n\t\t\t\tcontinue;\n\t\t\tcount++;\n\t\t\tSystem.out.println(slotType.name);\n\n\t\t}\n\t\tSystem.out.println(count);\n\t\tSystem.exit(1);\n\t}", "private void reportAggregatingAccess() {\n delegate.forEach(this::reportKeyAndValue);\n }", "public void generarReportePagosAutorizadoss(String sAccionBusqueda,List<PagosAutorizados> pagosautorizadossParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"PagosAutorizados\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"PagosAutorizadosMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"PagosAutorizadosMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"PagosAutorizados\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Pagos Autorizadoses\");\t\t\r\n\t\tparameters.put(\"busquedapor\", PagosAutorizadosConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourcePagosAutorizados=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tPagosAutorizadosConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tPagosAutorizadosConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourcePagosAutorizados=new JRBeanArrayDataSource(PagosAutorizadosJInternalFrame.TraerPagosAutorizadosBeans(pagosautorizadossParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourcePagosAutorizados);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+PagosAutorizadosConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+PagosAutorizadosConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(PagosAutorizadosBean.TraerPagosAutorizadosBeans(pagosautorizadossParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReportePagosAutorizadoss(sAccionBusqueda,sTipoArchivoReporte,pagosautorizadossParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalPagosAutorizadoss(sAccionBusqueda,sTipoArchivoReporte,pagosautorizadossParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoPagosAutorizadosActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReportePagosAutorizadoss(sAccionBusqueda,sTipoArchivoReporte,pagosautorizadossParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalPagosAutorizadoss(sAccionBusqueda,sTipoArchivoReporte,pagosautorizadossParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesPagosAutorizadoss(sAccionBusqueda,sTipoArchivoReporte,pagosautorizadossParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesPagosAutorizadoss(sAccionBusqueda,sTipoArchivoReporte,pagosautorizadossParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}", "public String generateReport() {\n throw new UnsupportedOperationException(\"ERROR: generateReport() Not yet implemented.\");\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tString filePath = env.getProperty(\"export.file.path\");\n\t\t\t\tFileSystem fileSystem = FileSystems.getDefault();\n\t\t\t\tif (StringUtils.isNotEmpty(empId)) {\n\t\t\t\t\tfilePath += \"/\" + empId;\n\t\t\t\t}\n\t\t\t\tPath path = fileSystem.getPath(filePath);\n\t\t\t\t// path = path.resolve(String.valueOf(empId));\n\t\t\t\tif (!Files.exists(path)) {\n\t\t\t\t\tPath newEmpPath = Paths.get(filePath);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tFiles.createDirectory(newEmpPath);\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while creating path \" + newEmpPath);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfilePath += \"/\" + exportFileName;\n\t\t\t\ttry {\n\t\t\t\t\t// initialize FileWriter object\n\t\t\t\t\tlog.debug(\"filePath = \" + filePath + \", isAppend=\" + isAppend);\n\t\t\t\t\tfileWriter = new FileWriter(filePath, isAppend);\n\t\t\t\t\tString siteName = null;\n\n\t\t\t\t\t// initialize CSVPrinter object\n\t\t\t\t\tcsvFilePrinter = new CSVPrinter(fileWriter, csvFileFormat);\n\t\t\t\t\tif (!isAppend) {\n\t\t\t\t\t\t// Create CSV file header\n\t\t\t\t\t\tcsvFilePrinter.printRecord(CONSOLIDATED_REPORT_FILE_HEADER);\n\t\t\t\t\t}\n\t\t\t\t\tfor (ReportResult transaction : content) {\n\t\t\t\t\t\tif (StringUtils.isEmpty(siteName) || !siteName.equalsIgnoreCase(transaction.getSiteName())) {\n\t\t\t\t\t\t\tcsvFilePrinter.printRecord(\"\");\n\t\t\t\t\t\t\tcsvFilePrinter\n\t\t\t\t\t\t\t\t\t.printRecord(\"CLIENT - \" + projName + \" SITE - \" + transaction.getSiteName());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tList record = new ArrayList();\n\t\t\t\t\t\tlog.debug(\"Writing transaction record for site :\" + transaction.getSiteName());\n\t\t\t\t\t\trecord.add(transaction.getSiteName());\n\t\t\t\t\t\trecord.add(transaction.getLocatinName());\n\t\t\t\t\t\trecord.add(transaction.getAssignedJobCount());\n\t\t\t\t\t\trecord.add(transaction.getCompletedJobCount());\n\t\t\t\t\t\trecord.add(transaction.getOverdueJobCount());\n\t\t\t\t\t\trecord.add(transaction.getTat());\n\t\t\t\t\t\tcsvFilePrinter.printRecord(record);\n\t\t\t\t\t}\n\t\t\t\t\tlog.info(exportFileName + \" CSV file was created successfully !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"COMPLETED\");\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlog.error(\"Error in CsvFileWriter !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t} finally {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfileWriter.flush();\n\t\t\t\t\t\tfileWriter.close();\n\t\t\t\t\t\tcsvFilePrinter.close();\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while flushing/closing fileWriter/csvPrinter !!!\");\n\t\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tlock.unlock();\n\t\t\t}", "public static void main(String[] args) {\n\t\tList<String> productionIssues = AllTestMethodNames.getTestSuiteProductionIssuesMethods(product);\n\t\tList<String> obsolete = AllTestMethodNames.getTestSuiteObsoleteMethods(product);\n\t\tproductionIssues.addAll(obsolete);\n\t\tList<String> productionIssuesAndObsoleteTestCases = productionIssues;\n\n\t\tList<String> logNew;\n\t\tList<String> logOld;\n\t\tLogAnalyzer tool;\n\n\t\tinitializeToolPaths();\n\t\tlogNew = LogAnalyzerReader.readJenkinsLogFromFile(LOG_ANALYZER_LOG_NEW);\n\t\tlogOld = LogAnalyzerReader.readJenkinsLogFromFile(LOG_ANALYZER_LOG_OLD);\n\t\ttool = new LogAnalyzer(logNew);\n\t\tcreateFullReport(tool, logOld, productionIssuesAndObsoleteTestCases);\n\n\t\t// generate xml file with test cases which were started during an automation run but never finished\n\t\t// createXMLWithUnfinishedTestCases(tool, productionIssuesAndObsoleteTestCases);\n\n\t\t// generate xml file with test cases which were not started at all because for instance test run failed before finishing. (eg Java Heap)\n\t\t// Place log contents of complete full recent run into C:\\Automation_artifacts\\LogAnalyzer\\LogAnalyzer-LogOld.log\n\t\t// createXMLWithTestCasesThatNeverStartedFromLog(tool, logOld, productionIssuesAndObsoleteTestCases);\n\n\t\t// Change to which group test cases belong to.\n\t\t// Options below will add additional group to the @Test(groups = {\"\"}) the test cases belong to or if non exist then it will add a new one. This will make the change in the\n\t\t// source code.\n\t\t// In the test case file each test case is separated by a new line, 2 test case file would be ex:\n\t\t// c158643\n\t\t// c256486\n\t\t// Uncomment the option you want below. Place testCaseList.txt file containing test cases needing update in C:\\Automation_artifacts\\LogAnalyzer\\ directory.\n\t\t// Update the product variable value above if its different than cpm\n\n\t\t// AllTestMethodNames.addTestCaseToObsoleteTestCasesGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\", product);\n\t\t// AllTestMethodNames.addTestCaseToProductionIssuesGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\", product);\n\t\t// AllTestMethodNames.addTestCaseToExternalExecGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\", product);\n\t\t// AllTestMethodNames.addTestCaseToDateTimeChangeGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\",product);\n\t\t// AllTestMethodNames.addTestCaseToCustomGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\", \"EnterCustomGroupNameHere\", product); // enter your custom group name as the 2nd parameter.\n\n\t\t// Remove to which group test cases belong to.\n\t\t// AllTestMethodNames.removeTestCaseFromObsoleteTestCasesGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\", product);\n\t\t// AllTestMethodNames.removeTestCaseFromProductionIssuesGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\", product);\n\t\t// AllTestMethodNames.removeTestCaseFromExternalExecGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\", product);\n\t\t// AllTestMethodNames.removeTestCaseFromDateTimeChangeGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\", product);\n\t\t// AllTestMethodNames.removeTestCaseFromCustomGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\",\"EnterCustomGroupNameHere\", product ); // enter your custom group name as the 2nd parameter.\n\n\t}", "public void experimenterAndPlotter() {\n\t\tfinal RewardFunction rf = new GoalBasedRF(this.goalCondition, 5., -0.1);\n\n\t\t/**\n\t\t * Create factories for Q-learning agent and SARSA agent to compare\n\t\t */\n\n\t\tLearningAgentFactory qLearningFactory = new LearningAgentFactory() {\n\n\t\t\t@Override\n\t\t\tpublic String getAgentName() {\n\t\t\t\treturn \"Q-learning\";\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic LearningAgent generateAgent() {\n\t\t\t\treturn new QLearning(domain, rf, tf, 0.99, hashingFactory, 0.3,\n\t\t\t\t\t\t0.1);\n\t\t\t}\n\t\t};\n\n\t\tLearningAgentFactory sarsaLearningFactory = new LearningAgentFactory() {\n\n\t\t\t@Override\n\t\t\tpublic String getAgentName() {\n\t\t\t\treturn \"SARSA\";\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic LearningAgent generateAgent() {\n\t\t\t\treturn new SarsaLam(domain, rf, tf, 0.99, hashingFactory, 0.0,\n\t\t\t\t\t\t0.1, 1.);\n\t\t\t}\n\t\t};\n\n\t\tStateGenerator sg = new ConstantStateGenerator(this.initialState);\n\n\t\tLearningAlgorithmExperimenter exp = new LearningAlgorithmExperimenter(\n\t\t\t\t(SADomain) this.domain, rf, sg, 10, 100, qLearningFactory,\n\t\t\t\tsarsaLearningFactory);\n\n\t\texp.setUpPlottingConfiguration(500, 250, 2, 1000,\n\t\t\t\tTrialMode.MOSTRECENTANDAVERAGE,\n\t\t\t\tPerformanceMetric.CUMULATIVESTEPSPEREPISODE,\n\t\t\t\tPerformanceMetric.AVERAGEEPISODEREWARD);\n\n\t\texp.startExperiment();\n\n\t\texp.writeStepAndEpisodeDataToCSV(\"expData\");\n\n\t}", "public ExportResults()\n\t{\n\t\tthis.evalNaiveBayesList = new ArrayList<Evaluation>();\n\t\tthis.evalSMOList = new ArrayList<Evaluation>();\n\t}", "public static ExtentReports extentReportGenerator() \n\t{\n\tString path=System.getProperty(\"user.dir\")+\"\\\\reports\\\\index.html\";\n//\tExtentSparkReporter reporter=new ExtentSparkReporter(path);\n//\t\treporter.config().setEncoding(\"utf-8\");\n//\t\treporter.config().setReportName(\"Automation Test Results\");\n//\t\treporter.config().setDocumentTitle(\"Automation Reports\");\n//\t\treporter.config().setTheme(Theme.STANDARD);\n\t\t\n\t\tExtentHtmlReporter htmlReporter = new ExtentHtmlReporter(path);\t\n\t\thtmlReporter.setAppendExisting(true);\n\t\thtmlReporter.config().setEncoding(\"utf-8\");\n\t\thtmlReporter.config().setDocumentTitle(\"Automation Reports\");\n\t\thtmlReporter.config().setReportName(\"Automation Test Results\");\n\t\thtmlReporter.config().setTheme(Theme.STANDARD);\n\t\tLocale.setDefault(Locale.ENGLISH);\n\t\t\n\t\textent=new ExtentReports();\n\t\textent.attachReporter(htmlReporter);\n\t\textent.setSystemInfo(\"Tester\", \"Sonu\");\n\t\t\n\t\t\n\t\t\n\t\treturn extent;\n\t}", "public void ExtentRepoter() {\n\t\treporter = new ExtentHtmlReporter(\"./Reports/learn_automation1.html\");\n\n\t}", "private void printReport() {\n\t\tSystem.out.println(getReport());\n\t}", "public void testStatistics(){\n Profile profile = new Profile(\"id1\");\n GeoLocation uni_loc = new GeoLocation(0.0, 0.0);\n ArrayList<Trial> trials = new ArrayList<>();\n\n for (int i=1; i<101; i++){\n TrialIntCount trial = new TrialIntCount(\"\"+i, uni_loc, profile, 0);\n if (i<40 && i%2==0){\n trial.setCount(i);\n\n trials.add(trial);\n } else if (i>= 40 && i<80 && i%3==0){\n trial.setCount(i);\n\n trials.add(trial);\n } else if ( i >= 80 && i%5==0) {\n trial.setCount(i);\n TrialIntCount trial2 = new TrialIntCount(\"1\"+i, uni_loc, profile, 0);\n trial2.setCount(i);\n\n trials.add(trial);\n trials.add(trial2);\n }\n }\n\n this.exp = new Experiment(\"foo\");\n this.exp.addTrials(trials);\n\n assertEquals(\"removeDupes does not work\", 37, this.exp.removeDupes().length);\n assertEquals(\"frequencies does not work\", 15, exp.frequencies().length);\n assertEquals(\"median does not work\", \"46.5\", exp.getMedian());\n assertEquals(\"Q1 does not work\", \"23.00\", exp.getQ1());\n assertEquals(\"Q3 does not work\", \"76.50\", exp.getQ3());\n assertEquals(\"std does not work\", \"30.39\", exp.getStd());\n assertEquals(\"mean does not work\", \"49.05\", exp.getMean());\n\n }", "void clearUsageReports();", "public void displayReport() {\n\t\treport = new ReportFrame(fitnessProg);\n\t\treport.buildReport();\n\t\treport.setVisible(true);\n\t}", "@Test\n\tpublic void testAllExampleGenerations() {\n\t\ttry {\n\t\t\tOdfHelper.main(null);\n\t\t} catch (Exception ex) {\n\t\t\tLOG.log(Level.SEVERE, null, ex);\n\t\t\tAssert.fail(ex.toString());\n\t\t}\n\t}", "public void report() {\n\t\tfor (Plant p : plants) {\r\n\t\t\tp.list();\r\n\t\t}\r\n\t\tfor (Fish f: fishes) {\r\n\t\t\tf.list();\r\n\t\t}\r\n\t}", "private void printResults() {\n\t\tfor (Test test : tests) {\n\t\t\ttest.printResults();\n\t\t}\n\t}", "@AfterClass\n\t/* Executa a leitura das configuracoes do extends report */\n\tpublic static void writeExtentReport() {\n\t\tReporter.loadXMLConfig(new File(\"src/test/resources/configs/extension-config.xml\"));\n\t\t\n\t\t/* Informa qual o sistema foi utilizado para efetuar os testes */\n\t\tReporter.setSystemInfo(\"OS\", \"Windows10\");\n\t\t\n\t\t/* Informa o nome do analista no relatorio */\n\t\tReporter.setSystemInfo(\"Tester Name\", \"Wilker\");\n\t\t\n\t}", "public Collection findPublicPresentations(Agent viewer, String toolId, String showHidden);", "public void generarReporteLiquidacionImpuestoImpors(String sAccionBusqueda,List<LiquidacionImpuestoImpor> liquidacionimpuestoimporsParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"LiquidacionImpuestoImpor\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"LiquidacionImpuestoImporMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"LiquidacionImpuestoImporMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"LiquidacionImpuestoImpor\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Liquidacion Impuesto Impores\");\t\t\r\n\t\tparameters.put(\"busquedapor\", LiquidacionImpuestoImporConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\tclasses.add(new Classe(DetalleLiquidacionImpuestoImpor.class));\r\n\t\t\t\r\n\t\t\t//ARCHITECTURE\r\n\t\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\t\t\r\n\t\t\t\ttry\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tLiquidacionImpuestoImporLogic liquidacionimpuestoimporLogicAuxiliar=new LiquidacionImpuestoImporLogic();\r\n\t\t\t\t\tliquidacionimpuestoimporLogicAuxiliar.setDatosCliente(liquidacionimpuestoimporLogic.getDatosCliente());\t\t\t\t\r\n\t\t\t\t\tliquidacionimpuestoimporLogicAuxiliar.setLiquidacionImpuestoImpors(liquidacionimpuestoimporsParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\tliquidacionimpuestoimporLogicAuxiliar.cargarRelacionesLoteForeignKeyLiquidacionImpuestoImporWithConnection(); //deepLoadsWithConnection(false, DeepLoadType.INCLUDE, classes, \"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tliquidacionimpuestoimporsParaReportes=liquidacionimpuestoimporLogicAuxiliar.getLiquidacionImpuestoImpors();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//liquidacionimpuestoimporLogic.getNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//for (LiquidacionImpuestoImpor liquidacionimpuestoimpor:liquidacionimpuestoimporsParaReportes) {\r\n\t\t\t\t\t//\tliquidacionimpuestoimporLogic.deepLoad(liquidacionimpuestoimpor, false, DeepLoadType.INCLUDE, classes);\r\n\t\t\t\t\t//}\t\t\t\t\t\t\r\n\t\t\t\t\t//liquidacionimpuestoimporLogic.commitNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t} catch(Exception e) {\r\n\t\t\t\t\tthrow e;\r\n\t\t\t\t\t\r\n\t\t\t\t} finally {\r\n\t\t\t\t\t//liquidacionimpuestoimporLogic.closeNewConnexionToDeep();\r\n\t\t\t\t}\r\n\t\t\t} else if(Constantes.ISUSAEJBREMOTE) {\r\n\t\t\t} else if(Constantes.ISUSAEJBHOME) {\r\n\t\t\t}\r\n\t\t\t//ARCHITECTURE\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\r\n\t\t\tInputStream reportFileDetalleLiquidacionImpuestoImpor = AuxiliarReportes.class.getResourceAsStream(\"DetalleLiquidacionImpuestoImporDetalleRelacionesDesign.jasper\");\r\n\t\t\tparameters.put(\"subreport_detalleliquidacionimpuestoimpor\", reportFileDetalleLiquidacionImpuestoImpor);\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourceLiquidacionImpuestoImpor=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tLiquidacionImpuestoImporConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tLiquidacionImpuestoImporConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourceLiquidacionImpuestoImpor=new JRBeanArrayDataSource(LiquidacionImpuestoImporJInternalFrame.TraerLiquidacionImpuestoImporBeans(liquidacionimpuestoimporsParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourceLiquidacionImpuestoImpor);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+LiquidacionImpuestoImporConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+LiquidacionImpuestoImporConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(LiquidacionImpuestoImporBean.TraerLiquidacionImpuestoImporBeans(liquidacionimpuestoimporsParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReporteLiquidacionImpuestoImpors(sAccionBusqueda,sTipoArchivoReporte,liquidacionimpuestoimporsParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalLiquidacionImpuestoImpors(sAccionBusqueda,sTipoArchivoReporte,liquidacionimpuestoimporsParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoLiquidacionImpuestoImporActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReporteLiquidacionImpuestoImpors(sAccionBusqueda,sTipoArchivoReporte,liquidacionimpuestoimporsParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalLiquidacionImpuestoImpors(sAccionBusqueda,sTipoArchivoReporte,liquidacionimpuestoimporsParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesLiquidacionImpuestoImpors(sAccionBusqueda,sTipoArchivoReporte,liquidacionimpuestoimporsParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesLiquidacionImpuestoImpors(sAccionBusqueda,sTipoArchivoReporte,liquidacionimpuestoimporsParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}", "String showAllPublications() {\n\n PrintModelVisitor printVisitor = new PrintModelVisitor();\n visitPublications(mBooks, printVisitor);\n visitPublications(mMagazines, printVisitor);\n\n return printVisitor.getPublications();\n }", "public static void main(String[] args) {\n\n\n for (int i = 0; i < 3; i++) {\n System.out.println(\"\\n********* TEST \" + (i+1) + \" *********\");\n experimentOne(false);\n experimentOne(true);\n\n experimentTwo(false);\n experimentTwo(true);\n\n experimentThree(false);\n experimentThree(true);\n }\n }", "public static void main(String[] args)\n\t{\n\n\t\tAnalyzer analyzer = new Analyzer()\n\t\t.withProblemClass(MOEAExperimentProblem.class)\n\t\t.includeAllMetrics()\n\t\t.showStatisticalSignificance();\n\n\t\tNondominatedPopulation result= new Executor()\n\t\t\t.withProblemClass(MOEAExperimentProblem.class)\n\t\t\t.withAlgorithm(\"NSGAII\")\n\t\t\t.withMaxEvaluations(20000)\n\t\t\t.withProperty(\"populationSize\", 100)\n\t\t\t//.withInstrumenter(instrumenter)\n\t\t\t.run();\n\n\t\tint n=0;\n\t\tfor (Solution solution : result)\n\t\t{\n\t\t\tSystem.out.println(\"Solution \" + n + \": \" + solution.getObjective(0) + \" \" + solution.getObjective(1));\t\n\t\t\tn++;\n\t\t}\n\t\t/*Accumulator accumulator = instrumenter.getLastAccumulator();\n\t\tfor (int i=0; i<accumulator.size(\"NFE\"); i++) {\n\t\t\tSystem.out.println(accumulator.get(\"NFE\", i) + \"\\t\" +\n\t\t\taccumulator.get(\"GenerationalDistance\", i));\n\t\t}*/\n\n\n\t\t/*this runs in some sort of analysis mode..\n\t\tExecutor executor = new Executor()\n\t\t\t.withProblemClass(MOEAExperimentProblem.class)\n\t\t\t.withMaxEvaluations(10000);\n\n\t\tanalyzer.addAll(\"NSGAII\",\n\t\texecutor.withAlgorithm(\"NSGAII\").runSeeds(50));\n\t\ttry\n\t\t{\n\t\t\tanalyzer.printAnalysis();\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tSystem.out.println(\"error with analysis\");\n\t\t\te.printStackTrace();\n\t\t}*/\n\n\t}", "public static void main(String[] args) throws IOException {\n\n new ReportGenerator(new InMemoryPersonProvider(\"src/main/resources/domain/people.txt\"))\n .generateReport(\"PersonsComposition\");\n\n }", "public void generateReport(){\n String fileOutput = \"\";\n fileOutput += allCustomers()+\"\\n\";\n fileOutput += getNoAccounts()+\"\\n\";\n fileOutput += getTotalDeposits()+\"\\n\";\n fileOutput += accountsOfferingLoans()+\"\\n\";\n fileOutput += accountsReceivingLoans()+\"\\n\";\n fileOutput += customersOfferingLoans()+\"\\n\";\n fileOutput += customersReceivingLoans()+\"\\n\";\n System.out.println(fileOutput);\n writeToFile(fileOutput);\n }", "@VisibleForTesting\n void reportOnce() {\n additionalAttributes = additionalAttributesSupplier.get();\n if (additionalAttributes == null) {\n additionalAttributes = Collections.emptyMap();\n }\n\n metricRegistry.getGauges().forEach(this::reportGauge);\n\n metricRegistry.getCounters().forEach(this::reportCounter);\n\n metricRegistry.getMeters().forEach(this::reportMeter);\n\n metricRegistry.getHistograms().forEach(this::reportHistogram);\n\n metricRegistry.getTimers().forEach(this::reportTimer);\n }", "public void userAppointmentsReport() {\n reportLabel.setText(\"\");\n reportLabel1.setText(\"\");\n reportLabel2.setText(\"\");\n reportLabel3.setText(\"\");\n reportsList = DBReports.getUserAppointments();\n System.out.println(reportsList.toArray().length);\n StringBuilder sb = new StringBuilder();\n sb.append(\"Appointments Added By User Report:\" + \"\\n\");\n\n reportsList.forEach(r -> sb.append(\"\\n\" + r.getUserName().toUpperCase() + \"\\n\" +\n r.getAppointmentCount() + \" appointments scheduled for \" + r.getCustomerCount() + \" customers\\n\"));\n reportLabel.setText(sb.toString());\n }", "void printReport();", "@Override\r\n\tpublic void testPrivateWithNoViewPrivateScope() throws Exception {\n\t\tif (JavastravaApplicationConfig.STRAVA_ALLOWS_CHALLENGES_ENDPOINT) {\r\n\t\t\tsuper.testPrivateWithNoViewPrivateScope();\r\n\t\t}\r\n\t}", "public void getAllResults()\n {\n for(String module: modules.keySet())\n {\n getResults(module);\n }\n }", "private void doResearch() {\n\t\tSystem.out.println(\"Students must do research\");\n\t}", "UserOuterClass.ExperimentInfoOrBuilder getExperimentsOrBuilder(\n int index);", "public void run() {\n \n m_StartBut.setEnabled(false);\n m_StopBut.setEnabled(true);\n if (m_ResultsPanel != null) {\n\tm_ResultsPanel.setExperiment(null);\n }\n try {\n\tif (m_ExpCopy instanceof RemoteExperiment) {\n\t // add a listener\n\t System.err.println(\"Adding a listener\");\n\t ((RemoteExperiment)m_ExpCopy).\n\t addRemoteExperimentListener(new RemoteExperimentListener() {\n\t\tpublic void remoteExperimentStatus(RemoteExperimentEvent e) {\n\t\t if (e.m_statusMessage) {\n\t\t statusMessage(e.m_messageString);\n\t\t }\n\t\t if (e.m_logMessage) {\n\t\t logMessage(e.m_messageString);\n\t\t }\n\t\t if (e.m_experimentFinished) {\n\t\t m_RunThread = null;\n\t\t m_StartBut.setEnabled(true);\n\t\t m_StopBut.setEnabled(false);\n\t\t statusMessage(NOT_RUNNING);\n\t\t }\n\t\t}\n\t });\n\t}\n\tlogMessage(\"Started\");\n\tstatusMessage(\"Initializing...\");\n\tm_ExpCopy.initialize();\n\tint errors = 0;\n\tif (!(m_ExpCopy instanceof RemoteExperiment)) {\n\t statusMessage(\"Iterating...\");\n\t while (m_RunThread != null && m_ExpCopy.hasMoreIterations()) {\n\t try {\n\t String current = \"Iteration:\";\n\t if (m_ExpCopy.getUsePropertyIterator()) {\n\t\tint cnum = m_ExpCopy.getCurrentPropertyNumber();\n\t\tString ctype = m_ExpCopy.getPropertyArray().getClass().getComponentType().getName();\n\t\tint lastDot = ctype.lastIndexOf('.');\n\t\tif (lastDot != -1) {\n\t\t ctype = ctype.substring(lastDot + 1);\n\t\t}\n\t\tString cname = \" \" + ctype + \"=\"\n\t\t + (cnum + 1) + \":\"\n\t\t + m_ExpCopy.getPropertyArrayValue(cnum).getClass().getName();\n\t\tcurrent += cname;\n\t }\n\t String dname = ((File) m_ExpCopy.getDatasets()\n\t\t\t .elementAt(m_ExpCopy.getCurrentDatasetNumber()))\n\t\t.getName();\n\t current += \" Dataset=\" + dname\n\t\t+ \" Run=\" + (m_ExpCopy.getCurrentRunNumber());\n\t statusMessage(current);\n\t m_ExpCopy.nextIteration();\n\t } catch (Exception ex) {\n\t errors ++;\n\t logMessage(ex.getMessage());\n\t ex.printStackTrace();\n\t boolean continueAfterError = false;\n\t if (continueAfterError) {\n\t\tm_ExpCopy.advanceCounters(); // Try to keep plowing through\n\t } else {\n\t\tm_RunThread = null;\n\t }\n\t }\n\t }\n\t statusMessage(\"Postprocessing...\");\n\t m_ExpCopy.postProcess();\n\t if (m_RunThread == null) {\n\t logMessage(\"Interrupted\");\n\t } else {\n\t logMessage(\"Finished\");\n\t }\n\t if (errors == 1) {\n\t logMessage(\"There was \" + errors + \" error\");\n\t } else {\n\t logMessage(\"There were \" + errors + \" errors\");\n\t }\n\t statusMessage(NOT_RUNNING);\n\t} else {\n\t statusMessage(\"Remote experiment running...\");\n\t ((RemoteExperiment)m_ExpCopy).runExperiment();\n\t}\n } catch (Exception ex) {\n\tex.printStackTrace();\n\tSystem.err.println(ex.getMessage());\n\tstatusMessage(ex.getMessage());\n } finally {\n\tif (m_ResultsPanel != null) {\n\t m_ResultsPanel.setExperiment(m_ExpCopy);\n\t}\n\tif (!(m_ExpCopy instanceof RemoteExperiment)) {\n\t m_RunThread = null;\n\t m_StartBut.setEnabled(true);\n\t m_StopBut.setEnabled(false);\n\t System.err.println(\"Done...\");\n\t}\n }\n }", "@Test\n\tpublic void driverDashboard() {\n\t\tfinal Object testingData[][] = {\n\t\t\t{\n\t\t\t\t\"admin\", null\n\t\t\t}, {\n\t\t\t\t\"user1\", IllegalAccessException.class\n\t\t\t}, {\n\t\t\t\tnull, IllegalAccessException.class\n\t\t\t}\n\t\t};\n\t\tfor (int i = 0; i < testingData.length; i++)\n\t\t\tthis.templateDashboard((String) testingData[i][0], (Class<?>) testingData[i][1]);\n\t}", "@Secured({ \"GROUP_AGENT\" })\n void recalculateExperimentBatchInfo( ExpressionExperiment ee );", "private void startReport() {\r\n // initialize the HtmlReporter\r\n htmlReporter = new ExtentHtmlReporter(System.getProperty(\"user.dir\")\r\n + jsonConfig.get(\"extentReportPath\") + \"testReport.html\");\r\n\r\n //initialize ExtentReports and attach the HtmlReporter\r\n extent = new ExtentReports();\r\n extent.attachReporter(htmlReporter);\r\n\r\n //To add system or environment info by using the setSystemInfo method.\r\n extent.setSystemInfo(\"OS\", (String) jsonConfig.get(\"osValue\"));\r\n switch ((String) jsonConfig.get(\"browserToBeUsed\")) {\r\n case \"FF\":\r\n extent.setSystemInfo(\"Browser\", \"Firefox\");\r\n break;\r\n case \"CH\":\r\n extent.setSystemInfo(\"Browser\", \"Chrome\");\r\n break;\r\n case \"IE\":\r\n extent.setSystemInfo(\"Browser\", \"Internet Explorer\");\r\n break;\r\n }\r\n\r\n //configuration items to change the look and feel\r\n //add content, manage tests etc\r\n htmlReporter.config().setChartVisibilityOnOpen(true);\r\n htmlReporter.config().setDocumentTitle(\"Test Report\");\r\n htmlReporter.config().setReportName(\"Test Report\");\r\n htmlReporter.config().setTestViewChartLocation(ChartLocation.TOP);\r\n htmlReporter.config().setTheme(Theme.STANDARD);\r\n htmlReporter.config().setTimeStampFormat(\"EEEE, MMMM dd, yyyy, hh:mm a '('zzz')'\");\r\n }", "public List<ReportDTO> getAllReports() {\r\n\r\n\t\tdateConverter = new DateConverter();\r\n\r\n\t\tList<Report> reports = (List<Report>) reportsRepository.findAll();\r\n\t\tList<ReportDTO> reportDTOs = new ArrayList<>();\r\n\r\n\t\tfor (Report report : reports) {\r\n\t\t\tReportDTO reportDTO = new ReportDTO();\r\n\t\t\treportDTO.setId(report.getId());\r\n\t\t\treportDTO.setCustomerName(report.getCustomer().getCustomerName());\r\n\t\t\treportDTO.setPlace(report.getPlace());\r\n\t\t\treportDTO.setOrderNumber(report.getOrderNumber());\r\n\t\t\treportDTO.setQualityLevel(report.getQualityLevel().getValue());\r\n\t\t\treportDTO.setTypeOfTesting(report.getTypeOfTesting());\r\n\t\t\treportDTO.setReportNumber(report.getReportNumber());\r\n\t\t\treportDTO.setExaminatedObject(report.getExaminatedObject());\r\n\t\t\treportDTO.setMeasuringEquipment(\r\n\t\t\t\t\treport.getMeasuringEquipment().getName() + \" \" + report.getMeasuringEquipment().getDeviceCode());\r\n\t\t\treportDTO.setTechnicalDocument(\r\n\t\t\t\t\treport.getTechnicalDocument().getNumber() + \" \" + report.getTechnicalDocument().getTitle());\r\n\r\n\t\t\treportDTO.setExaminationDate(dateConverter.createDateToString(report.getExaminationDate()));\r\n\t\t\treportDTO.setPerformer(report.getPerformer().getFirstName() + \" \" + report.getPerformer().getLastName());\r\n\t\t\treportDTO.setAprover(report.getPerformer().getFirstName() + \" \" + report.getPerformer().getLastName());\r\n\r\n\t\t\tList<ResultsOfExamination> resultsOfExaminations = resultsOfExaminationRepository.findByReport(report);\r\n\t\t\tList<ResultOfExaminationDTO> resultOfExaminationDTOs = new ArrayList<>();\r\n\r\n\t\t\tfor (ResultsOfExamination resultsOfExamination : resultsOfExaminations) {\r\n\t\t\t\tResultOfExaminationDTO resultOfExaminationDTO = new ResultOfExaminationDTO();\r\n\t\t\t\tresultOfExaminationDTO.setElementNumber(resultsOfExamination.getElementNumber());\r\n\t\t\t\tresultOfExaminationDTO\r\n\t\t\t\t\t\t.setDistanceFromReferencePoint(resultsOfExamination.getDistanceFromReferencePoint());\r\n\t\t\t\tresultOfExaminationDTO.setIndicationLength(resultsOfExamination.getIndicationLength());\r\n\t\t\t\tresultOfExaminationDTO.setImperfectionSymbol(resultsOfExamination.getImperfectionSymbol());\r\n\t\t\t\tresultOfExaminationDTO.setRemarks(resultsOfExamination.getRemarks());\r\n\t\t\t\tresultOfExaminationDTO.setResult(resultsOfExamination.getResult());\r\n\t\t\t\tresultOfExaminationDTOs.add(resultOfExaminationDTO);\r\n\t\t\t\treportDTO.setResultsOfExaminationtsList(resultOfExaminationDTOs);\r\n\t\t\t}\r\n\r\n\t\t\treportDTOs.add(reportDTO);\r\n\r\n\t\t}\r\n\t\treturn reportDTOs;\r\n\r\n\t}", "@Test (priority=2)\n\tpublic void ReportingTest()\n\t{\n\t\tReportingPOM ReportPOM = new ReportingPOM(driver);\t\n\t\tReportPOM.clickReporting();\n\t\tWait = properties.getProperty(\"implicitWait\");\n\t\tReportPOM.clickFollowedStudents();\n\t\tscreenShot.captureScreenShot(\"17\");\t\n\t\t//Enter student name in keyword\t\n\t\tReportPOM.keyword(\"Kritika\");\n\t\t//Click on search button\t\n\t\tReportPOM.clicksearchbutton();\t\n\t\tscreenShot.captureScreenShot(\"18\");\n\t\t//Click on >> icon of the student name\n\t\tReportPOM.ClickArrow(); \t\n\t\tscreenShot.captureScreenShot(\"19\");\n\t\t//Click on course >> icon\n\t\tReportPOM.Clickcoursearrow();\n\t\tscreenShot.captureScreenShot(\"20\");\t\n\t\t// Click on quiz icon\n\t\tReportPOM.Clickquizicon(); \n\t\tscreenShot.captureScreenShot(\"21\");\n\t\t//Click on send email\n\t\tReportPOM.Clicknotification(); \n\t\t// Click on correct test\n\t\tReportPOM.Clickcorrecttest(); \n\t\tscreenShot.captureScreenShot(\"22\");\n\t\t//Click on course link \n\t\tReportPOM.ClickCourseName(); \n\t\tscreenShot.captureScreenShot(\"23\");\n\n\t}", "private ReportGenerationUtil() {\n\t\t\n\t}", "@java.lang.Override\n public int getExperimentsCount() {\n return experiments_.size();\n }", "@Override\n public void getAllSystemsInSession() {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"getAllSystemsInSession\");\n }\n\n List<SystemInSession> listOfSiS = null;\n EntityManager em = EntityManagerService.provideEntityManager();\n if (Role.isLoggedUserAdmin() || Role.isLoggedUserProjectManager() || Role.isLoggedUserMonitor()) {\n choosenInstitutionForAdmin = (Institution) Component.getInstance(CHOOSEN_INSTITUTION_FOR_ADMIN);\n\n if (choosenInstitutionForAdmin != null) {\n listOfSiS = SystemInSession.getSystemsInSessionForCompanyForSession(em, choosenInstitutionForAdmin);\n } else {\n listOfSiS = SystemInSession.getSystemsInSessionForActivatedTestingSession();\n }\n } else {\n listOfSiS = SystemInSession.getSystemsInSessionForCompanyForSession(em,\n Institution.getLoggedInInstitution());\n }\n foundSystemsInSession = listOfSiS;\n }", "public void registerReports() throws Exception{\n \tGenericPatientSummary ps = new GenericPatientSummary();\n \tps.delete();\n \tps.setup();\n }" ]
[ "0.5993814", "0.5716391", "0.5598181", "0.53700334", "0.5354377", "0.5318973", "0.52860016", "0.52685136", "0.5203687", "0.5190864", "0.5158434", "0.5095912", "0.50954473", "0.5061216", "0.5030569", "0.50280905", "0.4999598", "0.4985859", "0.49707857", "0.496569", "0.4951967", "0.49486148", "0.49481127", "0.4933778", "0.49268353", "0.4926168", "0.4910118", "0.4904943", "0.4894156", "0.48905873", "0.488456", "0.48830816", "0.48813462", "0.4860279", "0.4856812", "0.48361444", "0.48357195", "0.47954354", "0.4790187", "0.4767483", "0.4763991", "0.4763173", "0.47511956", "0.47307765", "0.4728999", "0.47254142", "0.4723293", "0.47227484", "0.47168458", "0.47093338", "0.47065386", "0.47050935", "0.47043875", "0.47016525", "0.47014263", "0.46886373", "0.46871912", "0.4679547", "0.46733624", "0.46721616", "0.46673793", "0.46607113", "0.46589065", "0.46518907", "0.46437284", "0.46287432", "0.46247795", "0.46213838", "0.46181282", "0.46151698", "0.46124706", "0.4591695", "0.45910904", "0.45866212", "0.4582017", "0.45746037", "0.45707867", "0.45691335", "0.45684233", "0.45660004", "0.45610872", "0.45584604", "0.45571703", "0.45540875", "0.45531783", "0.45510346", "0.45457006", "0.45451668", "0.4541945", "0.45392808", "0.45336208", "0.45329556", "0.45325506", "0.45305005", "0.45294583", "0.45276856", "0.45261464", "0.4525575", "0.4523705", "0.45171657" ]
0.5963746
1
Fills in link analysis and differential expression analysis summaries, and other info from the report.
void populateReportInformation( Collection<ExpressionExperimentDetailsValueObject> vos );
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void generateReports() {\r\n\t\tLOGGER.debug(\"Report generation trigerred\");\r\n\t\tgenerateIncomingReport();\r\n\t\tgenerateOutgoingReport();\r\n\t\tgenerateIncomingRankingReport();\r\n\t\tgenerateOutgoingRankingReport();\r\n\t\tLOGGER.debug(\"Report generation completed\");\r\n\t}", "public abstract void parseReport();", "public void summaryReport() {\r\n\r\n\t\tString strTimeStamp = new SimpleDateFormat(\"yyyy-MM-dd-HH-mm-ss\").format(new Date());\r\n\t\tString reportPath = new File(\"Report\").getAbsolutePath();\r\n\t\tint stepPassed = 0;\r\n\t\tint stepFailed = 0;\r\n\t\tString cssData = \"\";\r\n\r\n\t\ttry {\r\n\t\t\tString cssPath = new File(\"Report\\\\Style\\\\style.css\").getAbsolutePath();\r\n\t\t\tbufferedReader = new BufferedReader(new FileReader(cssPath));\r\n\r\n\t\t\tStringBuilder stringBuilder = new StringBuilder();\r\n\t\t\tString line = bufferedReader.readLine();\r\n\t\t\twhile (line != null) {\r\n\t\t\t\tstringBuilder.append(line);\r\n\t\t\t\tstringBuilder.append(System.lineSeparator());\r\n\t\t\t\tline = bufferedReader.readLine();\r\n\t\t\t}\r\n\t\t\tcssData = stringBuilder.toString();\r\n\t\t} catch (Exception ex) {\r\n\t\t\tLog.error(\"Exception occure in reading file\" + ex.getMessage());\r\n\t\t\tex.printStackTrace();\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tbufferedReader.close();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tLog.error(\"Exception occure in reading file\");\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\tFile HTMLDir = new File(reportPath + \"\\\\HTMLReport\");\r\n\t\tif (!HTMLDir.exists()) {\r\n\t\t\ttry {\r\n\t\t\t\tHTMLDir.mkdir();\r\n\t\t\t} catch (SecurityException ex) {\r\n\t\t\t\tLog.error(\"Error in creating HTMLReport directory\" + ex.getMessage());\r\n\t\t\t\t// log.error(\"Error in creating Detail directory\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tString htmlname = HTMLDir + \"\\\\\" + strTimeStamp + \".html\";\r\n\t\tString logoPath = new File(\"Report\\\\Style\\\\logo.png\").getAbsolutePath();\r\n\t\tfor (ReportBean reportValue : GlobalVariables.getReportList()) {\r\n\t\t\tif (reportValue.getStatus().equalsIgnoreCase(\"Failed\")) {\r\n\t\t\t\tstepFailed++;\r\n\t\t\t} else if (reportValue.getStatus().equalsIgnoreCase(\"Passed\")) {\r\n\t\t\t\tstepPassed++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tstrBufferReportAppend = new StringBuffer();\r\n\t\ttry {\r\n\t\t\tbufferedWriter = new BufferedWriter(new FileWriter(htmlname));\r\n\t\t} catch (IOException e) {\r\n\t\t\tLog.error(\"Error in wrinting the file\" + e.getMessage());\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tstrBufferReportAppend.append(\r\n\t\t\t\t\"<html><head><script type=\\\"text/javascript\\\" src=\\\"https://www.gstatic.com/charts/loader.js\\\"></script>\");\r\n\t\tstrBufferReportAppend.append(\"<script src=\\\"https://www.google.com/jsapi\\\"></script>\");\r\n\t\tstrBufferReportAppend.append(\"<style>\" + cssData);\r\n\t\tstrBufferReportAppend.append(\"</style>\");\r\n\t\tstrBufferReportAppend.append(\"</head><body>\");\r\n\t\tstrBufferReportAppend.append(\"<table class=\\\"width100\\\">\");\r\n\t\tstrBufferReportAppend.append(\"<tr><td>\");\r\n\t\tstrBufferReportAppend.append(\"<table class=\\\"width100\\\">\");\r\n\t\tstrBufferReportAppend.append(\"<tr><td><img src=file:\\\\\\\\\" + logoPath + \"></td>\" + \"<td class=\\\"headertext\\\">\"\r\n\t\t\t\t+ reportHeader + \"</td>\");\r\n\r\n\t\tstrBufferReportAppend.append(\"</tr></table><hr></hr>\");\r\n\t\tstrBufferReportAppend.append(\"</td></tr>\");\r\n\t\tstrBufferReportAppend.append(\"<tr><td>\");\r\n\t\tstrBufferReportAppend.append(\"<table class=\\\"width100\\\">\");\r\n\t\tstrBufferReportAppend.append(\"<tr><td class=\\\"width50\\\">\");\r\n\t\tstrBufferReportAppend.append(\"<table cellpadding=3 cellspacing=1>\");\r\n\t\tstrBufferReportAppend\r\n\t\t.append(\"<tr><td class=\\\"width50 bold\\\">Execution Start Time</td><td class=\\\"width50 bold\\\">\"\r\n\t\t\t\t+ GlobalVariables.getStrStartTime() + \"</td></tr>\");\r\n\t\tstrBufferReportAppend\r\n\t\t.append(\"<tr><td class=\\\"width50 bold\\\">Execution End Time</td><td class=\\\"width50 bold\\\">\"\r\n\t\t\t\t+ GlobalVariables.getStrEndTime() + \"</td></tr>\");\r\n\t\tstrBufferReportAppend\r\n\t\t\t\t.append(\"<tr><td class=\\\"width50 bold\\\">Total TestSteps Executed</td><td class=\\\"width50 bold\\\">\"\r\n\t\t\t\t\t\t+ (stepFailed + stepPassed) + \"</td></tr>\");\r\n\t\tstrBufferReportAppend.append(\r\n\t\t\t\t\"<tr><td class=\\\"width50 green\\\">Passed</td><td class=\\\"width50 green\\\">\" + stepPassed + \"</td></tr>\");\r\n\t\tstrBufferReportAppend.append(\r\n\t\t\t\t\"<tr><td class=\\\"width50 red\\\">Failed</td><td class=\\\"width50 red\\\">\" + stepFailed + \"</td></tr>\");\r\n\t\tstrBufferReportAppend.append(\"</table></td>\");\r\n\t\tstrBufferReportAppend.append(\"<td class=\\\"width50\\\">\");\r\n\t\tstrBufferReportAppend.append(\"<table>\");\r\n\t\tstrBufferReportAppend.append(\"<tr><td class=\\\"width25\\\">\");\r\n\t\tstrBufferReportAppend.append(\"</td>\");\r\n\t\tstrBufferReportAppend.append(\"<td class=\\\"width25\\\">\");\r\n\t\tstrBufferReportAppend.append(\"<script type=\\\"text/javascript\\\">\");\r\n\t\tstrBufferReportAppend.append(\"google.charts.load('current', {'packages':['corechart']});\");\r\n\t\tstrBufferReportAppend.append(\"google.charts.setOnLoadCallback(drawDetailsChart);\");\r\n\t\tstrBufferReportAppend.append(\"function drawDetailsChart() {\");\r\n\t\tstrBufferReportAppend.append(\"var data = new google.visualization.DataTable();\");\r\n\t\tstrBufferReportAppend.append(\"data.addColumn('string', 'Test Execution Detail Graph');\");\r\n\t\tstrBufferReportAppend.append(\"data.addColumn('number', 'Count');\");\r\n\t\tstrBufferReportAppend.append(\"data.addRows([\");\r\n\t\tstrBufferReportAppend.append(\"['Passed',\" + stepPassed + \"],\");\r\n\t\tstrBufferReportAppend.append(\"['Failed',\" + stepFailed + \"]]);\");\r\n\t\tstrBufferReportAppend\r\n\t\t\t\t.append(\"var options = {'title':'Test Step Details Graph',colors: ['#12C909', '#C3100A'],pieHole: 0.3,\");\r\n\t\tstrBufferReportAppend.append(\"'width':300,\");\r\n\t\tstrBufferReportAppend.append(\"'height':170};\");\r\n\t\tstrBufferReportAppend\r\n\t\t\t\t.append(\"var chart = new google.visualization.PieChart(document.getElementById('detailsChart_div'));\");\r\n\t\tstrBufferReportAppend.append(\"chart.draw(data, options); } </script>\");\r\n\t\tstrBufferReportAppend.append(\"<div id=\\\"detailsChart_div\\\"></div>\");\r\n\t\tstrBufferReportAppend.append(\"</td></tr></table>\");\r\n\t\tstrBufferReportAppend.append(\"</td></tr></table><hr></hr></td></tr>\");\r\n\t}", "private void initExcelReport() {\n DocumentItem documentItem = new DocumentItem(\"Source Node ID\", \"File Name\", \"Target Destination Folder\", \"Target Node ID\", null, \"Target Node Status\", \"Message\", null, null);\n ExcelUtil.addMigrationRow(jobParameters.getMigrationReport(), \"Date Time\", \"Source Node Status\", \"Source Destination Folder\", documentItem);\n ExcelUtil.addErrorRow(jobParameters.getErrorReport(), \"Date Time\", \"Source Node Status\", \"Source Destination Folder\", documentItem);\n }", "private void SummaryReport()\n {\n System.out.println(\"\\n\\n***********************************************************************\");\n System.out.println(\"* CodeScanner Summary Report\");\n System.out.println(\"*\");\n System.out.println(\"* Run Date: \" + new SimpleDateFormat(\"yyyy.MM.dd HH:mm:ss\").format(new Date()));\n System.out.println(\"* Yaml File: \" + confFileName);\n System.out.println(\"* Code Path: \" + startPath);\n System.out.println(\"*\");\n System.out.println(\"* Dir include pattern: \" + dirIncludePattern.toString());\n System.out.println(\"* Dir exclude pattern: \" + dirExcludePattern.toString());\n System.out.println(\"* Directories scanned: \" + dirCount);\n System.out.println(\"* Directories matched: \" + dirMatchCount);\n System.out.println(\"* Dir Line matched: \" + dirLineMatchCount);\n System.out.println(\"*\");\n System.out.println(\"* File include pattern: \" + fileIncludePattern.toString());\n System.out.println(\"* File exclude pattern: \" + fileExcludePattern.toString());\n System.out.println(\"* Files scanned: \" + fileCount);\n System.out.println(\"* Files matched: \" + fileMatchCount);\n System.out.println(\"* Files Line matched: \" + fileLineMatchCount);\n System.out.println(\"*\");\n System.out.println(\"* Line replace pattern: \" + lineFindReplace.toString());\n System.out.println(\"* Line include pattern: \" + lineIncludePattern.toString());\n System.out.println(\"* Line exclude pattern: \" + lineExcludePattern.toString());\n System.out.println(\"* Lines replaced: \" + totalReplaceCount);\n System.out.println(\"* Lines scanned: \" + totalLineCount);\n System.out.println(\"* Lines matched: \" + lineMatchCount);\n System.out.println(\"*\");\n System.out.println(\"* Distinct Matching URLs Found\");\n\n for (String url : distinctURLs.values())\n {\n String ipAddress = \"\";\n try\n {\n InetAddress address = InetAddress.getByName(new URL(\"https://\" + url).getHost());\n ipAddress = address.getHostAddress();\n\n }\n catch(Exception ex)\n {\n ipAddress = \"not found\";\n }\n\n System.out.println(\"* \" + url + \" (\" + ipAddress + \")\");\n }\n\n System.out.println(\"*\");\n System.out.println(\"***********************************************************************\");\n }", "private void generateReport( Locale locale, LinkcheckModel linkcheckModel )\n {\n getSink().head();\n getSink().text( i18n.getString( \"linkcheck-report\", locale, \"report.linkcheck.name\" ) );\n getSink().head_();\n \n getSink().body();\n \n if ( linkcheckModel == null )\n {\n getSink().section1();\n getSink().sectionTitle1();\n getSink().text( getName( locale ) );\n getSink().sectionTitle1_();\n \n getSink().paragraph();\n getSink().rawText( i18n.getString( \"linkcheck-report\", locale, \"report.linkcheck.empty\" ) );\n getSink().paragraph_();\n \n getSink().section1_();\n \n getSink().body_();\n getSink().flush();\n getSink().close();\n \n return;\n }\n \n // Overview\n getSink().section1();\n getSink().sectionTitle1();\n getSink().text( getName( locale ) );\n getSink().sectionTitle1_();\n \n getSink().paragraph();\n getSink().rawText( i18n.getString( \"linkcheck-report\", locale, \"report.linkcheck.overview\" ) );\n getSink().paragraph_();\n \n getSink().section1_();\n \n //Statistics\n generateSummarySection( locale, linkcheckModel );\n \n //Details\n generateDetailsSection( locale, linkcheckModel );\n \n getSink().body_();\n getSink().flush();\n getSink().close();\n }", "private void GetDetailAnalysisText() {\n\t\tMap<Integer, ArrayList<ReportPluDayComboModifier>> combMap = getCombItemMap(this.comb);\n\n\t\tComparatorPluDayItem comparatorPluDayItem = new ComparatorPluDayItem();\n\t\tCollections.sort(reportPluDayItems, comparatorPluDayItem);\n//\t\tList<ReportPluDayItem> cop = new ArrayList<ReportPluDayItem>();\n\t\tint allQty = 0;\n\t\tBigDecimal allAmount = BH.getBD(ParamConst.DOUBLE_ZERO);\n//\t\t\tboolean showMainCategory = true;\n//\t\t\tint mainCategoryId = 0;\n\t\tboolean lastLinePrinted = false;\n//\t\tBigDecimal categoryAmount = BH.getBD(ParamConst.DOUBLE_ZERO);\n//\t\tString name = \"\";\n//\t\tint id = 0;\n\t\tMap<Integer, ReportPluDayItem> map = new HashMap<Integer, ReportPluDayItem>();\n\t\tfor (int j = 0; j < reportPluDayItems.size(); j++) {\n\n\t\t\tReportPluDayItem reportPluDayItem = reportPluDayItems.get(j);\n\t\t\t//ObjectFactory.getInstance().getReportPluDayItem(reportPluDayItem);\n\t\t\tif(map.containsKey(reportPluDayItem.getItemMainCategoryId().intValue())){\n\t\t\t\tReportPluDayItem amountReportPluDayItem = map.get(reportPluDayItem.getItemMainCategoryId().intValue());\n\t\t\t\tBigDecimal amount = BH.add(BH.getBD(amountReportPluDayItem.getItemAmount()), BH.getBD(reportPluDayItem.getItemAmount()), false);\n\t\t\t\tamountReportPluDayItem.setItemAmount(amount.toString());\n\t\t\t}else{\n\t\t\t\tReportPluDayItem rr = new ReportPluDayItem();\n\t\t\t\trr.setItemMainCategoryId(reportPluDayItem.getItemMainCategoryId());\n\t\t\t\trr.setItemMainCategoryName(reportPluDayItem.getItemMainCategoryName());\n\t\t\t\trr.setItemAmount(BH.formatMoney(reportPluDayItem.getItemAmount()));\n\t\t\t\tmap.put(reportPluDayItem.getItemMainCategoryId().intValue(), rr);\n\t\t\t}\n//\t\t\t\tif(mainCategoryId == 0 || mainCategoryId == reportPluDayItem.getItemMainCategoryId().intValue()){\n//\t\t\t\t\tcategoryAmount = BH.add(categoryAmount,\n//\t\t\t\t\t\t\tBH.getBD(reportPluDayItem.getItemAmount()), true);\n//\t\t\t\t\tname = reportPluDayItem.getItemMainCategoryName();\n//\t\t\t\t\tid = reportPluDayItem.getItemMainCategoryId().intValue();\n//\n//\t\t\t\t\tif(mainCategoryId == 0)\n//\t\t\t\t\t\tmainCategoryId = id;\n//\n//\t\t\t\t\tif( j == reportPluDayItems.size() - 1){\n//\t\t\t\t\t\tReportPluDayItem rr = new ReportPluDayItem();\n//\t\t\t\t\t\trr.setItemMainCategoryId(id);\n//\t\t\t\t\t\trr.setItemMainCategoryName(name);\n//\t\t\t\t\t\trr.setItemAmount(categoryAmount.toString());\n//\t\t\t\t\t\tcop.add(rr);\n//\t\t\t\t\t}\n//\t\t\t\t}else{\n//\t\t\t\t\tReportPluDayItem rr = new ReportPluDayItem();\n//\t\t\t\t\trr.setItemMainCategoryId(id);\n//\t\t\t\t\trr.setItemMainCategoryName(name);\n//\t\t\t\t\trr.setItemAmount(categoryAmount.toString());\n//\t\t\t\t\tcop.add(rr);\n//\t\t\t\t\tname = reportPluDayItem.getItemMainCategoryName();\n//\t\t\t\t\tid = reportPluDayItem.getItemMainCategoryId().intValue();\n//\t\t\t\t\tmainCategoryId = id;\n//\t\t\t\t\tcategoryAmount = BH.getBD(ParamConst.DOUBLE_ZERO);\n//\t\t\t\t\tcategoryAmount = BH.add(categoryAmount,\n//\t\t\t\t\t\t\tBH.getBD(reportPluDayItem.getItemAmount()), true);\n//\n//\t\t\t\t}\n\t\t}\n\n\t\tIterator<Map.Entry<Integer, ReportPluDayItem>> entries = map.entrySet().iterator();\n\t\tboolean isFirst = true;\n\t\twhile (entries.hasNext()){\n\t\t\tMap.Entry<Integer, ReportPluDayItem> entry = entries.next();\n\t\t\tif(!isFirst){\n\t\t\t\tthis.addHortionalLine(this.charSize);\n\t\t\t}\n\t\t\tisFirst = false;\n\t\t\tReportPluDayItem amontReportPluDayItem = entry.getValue();\n\t\t\tthis.AddItem(amontReportPluDayItem.getItemMainCategoryName(), \"\", \"\", BH.formatMoney(amontReportPluDayItem.getItemAmount()).toString(), 1);\n\t\t\tthis.addHortionalLine(this.charSize);\n\t\t\tfor (int j = 0; j < reportPluDayItems.size(); j++) {\n\n\t\t\t\tReportPluDayItem reportPluDayItem = reportPluDayItems.get(j);\n\t\t\t\tif (amontReportPluDayItem.getItemMainCategoryId().intValue() == reportPluDayItem.getItemMainCategoryId().intValue()) {\n\t\t\t\t\t// Print comb modifier\n\t\t\t\t\tint itmId = reportPluDayItem.getItemDetailId().intValue();\n\t\t\t\t\tArrayList<ReportPluDayComboModifier> comItems = combMap.get(itmId);\n\t\t\t\t\tif (comItems != null && comItems.size() > 0) {\n\n\t\t\t\t\t\tint mm = 0;\n\t\t\t\t\t\tthis.AddItem(\" \"+reportPluDayItem.getItemName(), BH.formatMoney(reportPluDayItem.getItemPrice()),\n\t\t\t\t\t\t\t\treportPluDayItem.getItemCount().toString(),\n\t\t\t\t\t\t\t\tBH.formatThree(reportPluDayItem.getItemAmount()), 1);\n\t\t\t\t\t\tlastLinePrinted = false;\n\t\t\t\t\t\tthis.addHortionalLine(this.charSize);\n\t\t\t\t\t\tfor (mm = 0; mm < comItems.size(); mm++) {\n\t\t\t\t\t\t\tReportPluDayComboModifier pluModifier = comItems.get(mm);\n\t\t\t\t\t\t\tint count = pluModifier.getModifierCount().intValue() - pluModifier.getVoidModifierCount().intValue() - pluModifier.getBillVoidCount().intValue();\n\t\t\t\t\t\t\tif (count > 0) {\n\t\t\t\t\t\t\t\tBigDecimal modifierAmount = BH.mul(BH.getBD(1.00), BH.getBD(pluModifier.getModifierPrice()), true);\n\t\t\t\t\t\t\t\tBigDecimal modifierPrice = BH.mul(BH.getBD(1.00), BH.getBD(pluModifier.getModifierItemPrice()), true);\n\t\t\t\t\t\t\t\tthis.AddItem(\" (\" + pluModifier.getModifierName() + \")\",\n\t\t\t\t\t\t\t\t\t\t\"(\" + BH.formatThree(modifierPrice.toString()) + \")\", \"(\" + String.valueOf(count) + \")\", \"(\" + BH.formatThree(modifierAmount.toString())+ \")\", 1);\n\t\t\t\t\t\t\t\tlastLinePrinted = false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (mm == comItems.size() && mm > 0) {\n\t\t\t\t\t\t\tif (!lastLinePrinted)\n\t\t\t\t\t\t\t\tthis.addHortionalLine(this.charSize);\n\t\t\t\t\t\t\tlastLinePrinted = true;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tthis.AddItem(\" \"+reportPluDayItem.getItemName(), BH.formatMoney(reportPluDayItem.getItemPrice()),\n\t\t\t\t\t\t\t\treportPluDayItem.getItemCount().toString(), \"\" + BH.formatMoney(reportPluDayItem.getItemAmount()), 1);\n\t\t\t\t\t\tlastLinePrinted = false;\n\t\t\t\t\t}\n\t\t\t\t\t//END Comb modifier print\n\t\t\t\t\tallQty += reportPluDayItem.getItemCount();\n\t\t\t\t\tallAmount = BH.add(allAmount,\n\t\t\t\t\t\t\tBH.getBD(reportPluDayItem.getItemAmount()), true);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n//\t\tfor(ReportPluDayItem category : cop) {\n//\t\t\t\tif(cop.indexOf(category) != 0){\n//\t\t\t\t\tthis.addHortionalLine(this.charSize);\n//\t\t\t\t}\n//\t\t\t\tthis.AddItem(category.getItemMainCategoryName(), \"\", \"\", category.getItemAmount(), 1);\n//\t\t\t\tthis.addHortionalLine(this.charSize);\n//\t\t\t\tfor (int j = 0; j < reportPluDayItems.size(); j++) {\n//\n//\t\t\t\t\tReportPluDayItem reportPluDayItem = reportPluDayItems.get(j);\n////\t\t\t\t\tif (mainCategoryId != reportPluDayItem.getItemMainCategoryId().intValue()) {\n////\t\t\t\t\t\tif (mainCategoryId != 0) {\n////\t\t\t\t\t\t\tif (!lastLinePrinted)\n////\t\t\t\t\t\t\t\tthis.addHortionalLine(this.charSize);\n////\t\t\t\t\t\t\tlastLinePrinted = true;\n////\t\t\t\t\t\t}\n////\t\t\t\t\t\tmainCategoryId = reportPluDayItem.getItemMainCategoryId().intValue();\n////\t\t\t\t\t\tshowMainCategory = true;\n////\t\t\t\t\t}\n////\t\t\t\t\tif (showMainCategory) {\n////\t\t\t\t\t\tthis.AddItem(reportPluDayItem.getItemMainCategoryName(), \"\", \"\", \"\", 1);\n////\t\t\t\t\t\tthis.addHortionalLine(this.charSize);\n////\t\t\t\t\t\tshowMainCategory = false;\n////\t\t\t\t\t\tlastLinePrinted = true;\n////\t\t\t\t\t}\n//\t\t\t\t\tif (category.getItemMainCategoryId().intValue() == reportPluDayItem.getItemMainCategoryId().intValue()) {\n//\t\t\t\t\t\t//Bob: Print comb modifier\n//\t\t\t\t\t\tint itmId = reportPluDayItem.getItemDetailId().intValue();\n//\t\t\t\t\t\tArrayList<ReportPluDayComboModifier> comItems = combMap.get(itmId);\n//\t\t\t\t\t\tif (comItems != null && comItems.size() > 0) {\n//\n//\t\t\t\t\t\t\tint mm = 0;\n//\t\t\t\t\t\t\tthis.AddItem(\" \"+reportPluDayItem.getItemName(), reportPluDayItem.getItemPrice(),\n//\t\t\t\t\t\t\t\t\treportPluDayItem.getItemCount().toString(),\n//\t\t\t\t\t\t\t\t\treportPluDayItem.getItemAmount(), 1);\n//\t\t\t\t\t\t\tlastLinePrinted = false;\n//\t\t\t\t\t\t\tthis.addHortionalLine(this.charSize);\n//\t\t\t\t\t\t\tfor (mm = 0; mm < comItems.size(); mm++) {\n//\t\t\t\t\t\t\t\tReportPluDayComboModifier pluModifier = comItems.get(mm);\n//\t\t\t\t\t\t\t\tint count = pluModifier.getModifierCount().intValue() - pluModifier.getVoidModifierCount().intValue() - pluModifier.getBillVoidCount().intValue();\n//\t\t\t\t\t\t\t\tif (count > 0) {\n//\t\t\t\t\t\t\t\t\tBigDecimal modifierAmount = BH.mul(BH.getBD(1.00), BH.getBD(pluModifier.getModifierPrice()), true);\n//\t\t\t\t\t\t\t\t\tBigDecimal modifierPrice = BH.mul(BH.getBD(1.00), BH.getBD(pluModifier.getModifierItemPrice()), true);\n//\t\t\t\t\t\t\t\t\tthis.AddItem(\" (\" + pluModifier.getModifierName() + \")\",\n//\t\t\t\t\t\t\t\t\t\t\t\"(\" + modifierPrice.toString() + \")\", \"(\" + String.valueOf(count) + \")\", \"(\" + modifierAmount.toString() + \")\", 1);\n//\t\t\t\t\t\t\t\t\tlastLinePrinted = false;\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\tif (mm == comItems.size() && mm > 0) {\n//\t\t\t\t\t\t\t\tif (!lastLinePrinted)\n//\t\t\t\t\t\t\t\t\tthis.addHortionalLine(this.charSize);\n//\t\t\t\t\t\t\t\tlastLinePrinted = true;\n//\t\t\t\t\t\t\t}\n//\n//\t\t\t\t\t\t} else {\n//\n//\t\t\t\t\t\t\tthis.AddItem(\" \"+reportPluDayItem.getItemName(), reportPluDayItem.getItemPrice(),\n//\t\t\t\t\t\t\t\t\treportPluDayItem.getItemCount().toString(), \"\" + reportPluDayItem.getItemAmount(), 1);\n//\t\t\t\t\t\t\tlastLinePrinted = false;\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t//END Comb modifier print\n//\t\t\t\t\t\tallQty += reportPluDayItem.getItemCount();\n//\t\t\t\t\t\tallAmount = BH.add(allAmount,\n//\t\t\t\t\t\t\t\tBH.getBD(reportPluDayItem.getItemAmount()), true);\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t}\n\t\tif (allQty != 0) {\n\t\t\tthis.addHortionalLine(this.charSize);\n\t\t\tthis.AddItem(PrintService.instance.getResources().getString(R.string.total), \"\", allQty + \"\", BH.formatMoney(allAmount.toString()), 1);\n\t\t}\n\n\n\t}", "public void detailReport() {\r\n\t\tint testStepId = 1;\r\n\t\tstrBufferReportAppend.append(\r\n\t\t\t\t\"<tr><td><table class=\\\"width100\\\"><tr><td><div class=\\\"headertext1 bold\\\">Test Execution Detail Report</div></td></tr>\");\r\n\t\tstrBufferReportAppend.append(\r\n\t\t\t\t\"<tr><td><div class=\\\"headertext1 bold\\\">Execution Browser Name: \"+ GlobalVariables.getBrowserName() + \"</div></td></tr>\");\r\n\t\tstrBufferReportAppend.append(\r\n\t\t\t\t\"<tr><td><div class=\\\"headertext1 bold\\\">Test Case Name: \"+ GlobalVariables.getTestCaseName() + \"</div></td></tr>\");\r\n\t\t\r\n\t\t\r\n\t\tstrBufferReportAppend.append(\"<tr><td>\");\r\n\t\tstrBufferReportAppend\r\n\t\t\t\t.append(\"<table colspan=3 border=0 cellpadding=3 cellspacing=1 class=\\\"reporttable width100\\\">\");\r\n\t\tstrBufferReportAppend.append(\"<tr><th class=\\\"auto-style1\\\">Test Step No</th>\" + \"<th class=\\\"auto-style2\\\">Action</th>\"\r\n\t\t\t\t+ \"<th class=\\\"auto-style3\\\">Actual Result</th>\" + \"<th class=\\\"auto-style4\\\">Status</th></tr>\");\r\n\t\tfor (ReportBean reportValue : GlobalVariables.getReportList()) {\r\n\r\n\t\t\tif (reportValue.getStatus().equalsIgnoreCase(\"Passed\")) {\r\n\r\n\t\t\t\tstrBufferReportAppend.append(\"<tr>\" + \"<td class=\\\"auto-style1 blue\\\">\" + testStepId++ + \"</td>\"// teststepid\r\n\t\t\t\t\t\t+ \"<td class=\\\"auto-style2 blue\\\">\" + reportValue.getStrAction() + \"</td>\"\r\n\t\t\t\t\t\t+ \"<td class=\\\"auto-style3 blue\\\">\" + reportValue.getResult() + \"</td>\"\r\n\t\t\t\t\t\t+ \"<td class=\\\"auto-style4 green\\\">\" + reportValue.getStatus() + \"</td></tr>\");\r\n\t\t\t} else if (reportValue.getStatus().equalsIgnoreCase(\"Failed\")) {\r\n\t\t\t\tstrBufferReportAppend.append(\"<tr>\" + \"<td class=\\\"auto-style1 blue\\\">\" + testStepId++ + \"</td>\"// teststepid\r\n\t\t\t\t\t\t+ \"<td class=\\\"auto-style2 blue\\\">\" + reportValue.getStrAction() + \"</td>\"\r\n\t\t\t\t\t\t+ \"<td class=\\\"auto-style3 blue\\\">\" + reportValue.getResult() + \"</td>\"\r\n\t\t\t\t\t\t+ \"<td class=\\\"auto-style4 red\\\">\" + reportValue.getStatus() + \"</td></tr>\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tstrBufferReportAppend.append(\"</table>\");\r\n\t\tstrBufferReportAppend.append(\"</td></tr>\");\r\n\t\tstrBufferReportAppend.append(\"</table></td></tr></table></body></html>\");\r\n\t}", "public GenerateReport() {\n initComponents();\n displayLogs();\n }", "private void initSummary() {\n entry = databaseHandler.getExperimentInfo(experimentNumber);\n\n // set transmission settings summary\n TextView transmissionSettingsText = findViewById(R.id.transmission_settings);\n String transmissionSettingsOverview = \"Number of messages: \" + entry.get(DatabaseHandler.NUMBER_OF_MESSAGES) +\n \"\\nTime between messages: \" + entry.get(DatabaseHandler.TIME_BETWEEN_MSGS) +\n \"\\nMessage length: \" + entry.get(DatabaseHandler.MSG_LENGTH) +\n \"\\nAuto increment: \" + entry.get(DatabaseHandler.AUTO_INCREMENT);\n transmissionSettingsText.setText(transmissionSettingsOverview);\n\n multipliers[5] = Integer.parseInt(entry.get(DatabaseHandler.NUMBER_OF_MESSAGES));\n multipliers[6] = Integer.parseInt(entry.get(DatabaseHandler.TIME_BETWEEN_MSGS));\n\n // set environment settings summary\n TextView environmentSettingsText = findViewById(R.id.environment_settings);\n String environmentSettingsOverview = \"Description: \" + entry.get(DatabaseHandler.DESCRIPTION) +\n \"\\nTarget Distance: \" + entry.get(DatabaseHandler.TARGET_DISTANCE) + \" m\" +\n \"\\nHeight of Sender: \" + entry.get(DatabaseHandler.SENDER_HEIGHT) + \" m\" +\n \"\\nHeight of Receiver: \" + entry.get(DatabaseHandler.RECEIVER_HEIGHT) + \" m\" +\n \"\\nEnvironment: \" + entry.get(DatabaseHandler.ENVIRONMENT);\n environmentSettingsText.setText(environmentSettingsOverview);\n\n // set LoRa settings summary\n TextView loraSettingsText = findViewById(R.id.lora_settings);\n arrayResourceIds = new int[]{R.array.frequency_array, R.array.bandwidth_array, R.array.SF_array, R.array.CR_array, R.array.power_array};\n String loraSettingsOverview = \"Frequencies: \" + decodeConfigByte(0, Byte.parseByte(entry.get(DatabaseHandler.FREQUENCIES))) +\n \"\\nBandwidths: \" + decodeConfigByte(1, Byte.parseByte(entry.get(DatabaseHandler.BANDWIDTHS))) +\n \"\\nSpreading factors: \" + decodeConfigByte(2, Byte.parseByte(entry.get(DatabaseHandler.SPREADING_FACTORS))) +\n \"\\nCoding rates: \" + decodeConfigByte(3, Byte.parseByte(entry.get(DatabaseHandler.CODING_RATES))) +\n \"\\nPowers: \" + decodeConfigByte(4, Byte.parseByte(entry.get(DatabaseHandler.POWERS)));\n loraSettingsText.setText(loraSettingsOverview);\n\n // set experiment duration information\n TextView experimentText = findViewById(R.id.exp);\n int totalMsgs = 1;\n duration = 1;\n iterations = 1;\n\n for (int i = 0; i < multipliers.length; i++) {\n if (i == multipliers.length - 1) {\n duration = totalMsgs * multipliers[i];\n break;\n }\n if (i < 5)\n iterations *= multipliers[i];\n totalMsgs *= multipliers[i];\n }\n duration += 5 * iterations; // add the 8 seconds between experiment iterations (hardcoded on boards)\n databaseHandler.setValueInExpInfo(Integer.toString(iterations), \"number_of_iterations\", experimentNumber);\n databaseHandler.setValueInExpInfo(Integer.toString(duration), \"duration\", experimentNumber);\n\n String experiment = \"Total messages: \" + totalMsgs +\n \"\\nIterations: \" + iterations +\n \"\\nDuration: \" + duration + \" s\";\n experimentText.setText(experiment);\n\n // initialize other stuff\n hoursEdit = findViewById(R.id.hours_edit);\n minutesEdit = findViewById(R.id.minutes_edit);\n secondsEdit = findViewById(R.id.seconds_edit);\n }", "private void report() {\n\t\t\n\t}", "public void initializeData() {\n _currentDataAll = _purityReportData.getAll();\n }", "public void getReportData(WalkInReport report) {\n\t\tnewReport2 = report;\n\t\tnewReport2.clearConclusions();\n\t\tfor(int i=0;i<newReport2.table.size();i++) {\n\t\t\tSample newBacteroidesSample = newReport2.table.get(i);\n\t\t\ttable.getItems().add(newBacteroidesSample);\n\t\t\taddConclusionNumber(newBacteroidesSample);\n\t\t}\n\t}", "abstract public void report();", "public void makeReport()\n\t{\n\t\tif (currentStage[currentSlice-1] > 1)\n\t\t{\n\t\t\tResultsTable rt = new ResultsTable();\n\t\t\tfor (int j=0;j<popSequence.N;j++)\n\t\t\t{\n\t\t\t\tpop = popSequence.PopList[j];\n\t\t\t\tint N = pop.N;\n\t\t\t\tfor (int i=0;i<N;i++)\n\t\t\t\t{\n\t\t\t\t\trt.incrementCounter();\n\t\t\t\t\tBalloon bal;\n\t\t\t\t\tbal = (Balloon)(pop.BallList.get(i));\n\t\t\t\t\tbal.mass_geometry();\n\t\t\t\t\trt.addValue(\"X\",bal.x0);\n\t\t\t\t\trt.addValue(\"Y\",bal.y0);\n\t\t\t\t\trt.addValue(\"Z\",j);\n\t\t\t\t\trt.addValue(\"ID\",bal.id);\n\t\t\t\t\trt.addValue(\"AREA\",bal.area);\n\t\t\t\t\trt.addValue(\"Ixx\",bal.Ixx);\n\t\t\t\t\trt.addValue(\"Iyy\",bal.Iyy);\n\t\t\t\t\trt.addValue(\"Ixy\",bal.Ixy);\n\t\t\t\t\trt.addValue(\"Lx\",bal.lx);\n\t\t\t\t\trt.addValue(\"Ly\",bal.ly);\n\t\t\t\t}\n\t\t\t}\n\t\t\trt.show(\"Report\");\n\t\t\tcurrentSlice = i1.getCurrentSlice();\n\t\t\tipWallSegment = (i1.getStack()).getProcessor(i1.getCurrentSlice());\n\t\t\tpop = popSequence.PopList[currentSlice-1];\n\t\t}\n\t}", "public void registerReports() throws Exception{\n \tGenericPatientSummary ps = new GenericPatientSummary();\n \tps.delete();\n \tps.setup();\n }", "private void printReport() {\n\t\t\tSystem.out.println(\"Processed \" + this.countItems + \" items:\");\n\t\t\tSystem.out.println(\" * Labels: \" + this.countLabels);\n\t\t\tSystem.out.println(\" * Descriptions: \" + this.countDescriptions);\n\t\t\tSystem.out.println(\" * Aliases: \" + this.countAliases);\n\t\t\tSystem.out.println(\" * Statements: \" + this.countStatements);\n\t\t\tSystem.out.println(\" * Site links: \" + this.countSiteLinks);\n\t\t}", "public final void process() {\n parseReport();\n checkThreshold();\n updateQualityXML();\n }", "protected void outputResultData (FinalReport report)\n {\n trc.show (\"outputResultData\", \"output simulation results\");\n\n\tmodelReport = report;\n\tnew HandleReportDialog (this);\n\n }", "public static void setReport()\n {\n ExtentHtmlReporter htmlReporter = new ExtentHtmlReporter(\"\\\\C:\\\\Users\\\\shir halevi\\\\Desktop\\\\qaexpert\\\\buyMe\\\\reports\\\\extent.html\");\n htmlReporter.setAppendExisting(true);\n extent = new ExtentReports();\n extent.attachReporter(htmlReporter);\n test = extent.createTest(\"BuyMeSanityTestWeb\", \"This is a BuyMe Sanity Test Web\");\n extent.setSystemInfo(\"Tester\", \"Shir\");\n test.log(Status.INFO, \"@Before class\");\n }", "private void getDateForAnalysisReport() {\n \tArrayList<Object> answer = new ArrayList<>();\n\t\tanswer.add(\"performingAnActivityTracking\");\n\t\tanswer.add(\"/getActivityData\");\n\t\tString star = reportStartDate.getValue().toString();\n\t\tString end = reportEndDate.getValue().toString();\n\t\tanswer.add(star);\n\t\tanswer.add(end);\n\t\t\n\t\tchs.client.handleMessageFromClientUI(answer);\n\t}", "private void todayReport() {\n\t\tListSeries dollarEarning = new ListSeries();\n\t\tString[] dates = new String[1];\n\t\t/* Create a DateField with the default style. */\n Calendar calendar=Calendar.getInstance();\n\t\t\n\t\tvReportDisplayLayout.removeAllComponents();\n\t\tdates[0] = String.valueOf(calendar.get(Calendar.MONTH)+1) + \"/\" + \n\t\t\t\tString.valueOf(calendar.get(Calendar.DATE)) + \"/\" + \n\t\t\t\tString.valueOf(calendar.get(Calendar.YEAR));\n\t\tdollarEarning = getTodayData();\n\t\t\n\t\tdisplayChart chart = new displayChart();\n\t\t\n\t\tdReportPanel.setContent(chart.getDisplayChart(dates, dollarEarning));\n\t\tvReportDisplayLayout.addComponent(dReportPanel);\n\t}", "public static void generateReport()\n\t{\n\t\tlong time=System.currentTimeMillis();\n\t\tString reportPath=System.getProperty(\"user.dir\")+\"//automationReport//Report\"+time+\".html\";\n\t\t\n\t\thtmlreporter=new ExtentHtmlReporter(reportPath);\n\t\textent=new ExtentReports();\n\t\textent.attachReporter(htmlreporter);\n\t\t\n\t\tString username=System.getProperty(\"user.name\");\n\t\tString osname=System.getProperty(\"os.name\");\n\t\tString browsername=CommonFunction.readPropertyFile(\"Browser\");\n\t\tString env=CommonFunction.readPropertyFile(\"Enviornment\");\n\t\t\n\t\t\n\t\textent.setSystemInfo(\"User Name\", username);\n\t\textent.setSystemInfo(\"OS Name\", osname);\n\t\textent.setSystemInfo(\"Browser Name\", browsername);\n\t\textent.setSystemInfo(\"Enviornment\", env);\n\t\t\n\t\t\n\t\thtmlreporter.config().setDocumentTitle(\"Automation Report\");\n\t\thtmlreporter.config().setTheme(Theme.STANDARD);\n\t\thtmlreporter.config().setChartVisibilityOnOpen(true);\n \n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "private void SummaryProfile() {\n //format the date & number\n DateFormat df = DateFormat.getDateInstance( DateFormat.LONG, Locale.ENGLISH );\n NumberFormat nf = NumberFormat.getCurrencyInstance( new Locale(\"id\",\"id\"));\n \n GregorianCalendar gregorian = new GregorianCalendar( );\n \n String[] displayMonths = new DateFormatSymbols().getMonths();\n \n //month and year variable ( month start from 0, so 0 is january, 11 is december )\n int gregorianmonth = gregorian.get(Calendar.MONTH);\n int gregorianyear = gregorian.get(Calendar.YEAR);\n \n \n //the title of the summary\n //ok, we must use temporary variable because of missmatch with db standard date\n int displaygregorianmonth = gregorianmonth;\n int displaygregorianyear = gregorianyear;\n \n //december watchout\n //if the current month is january ( 0 ) then we must display summary for \n //dec ( 11 ) last year ( current year - 1 )\n if(displaygregorianmonth==0) {\n displaygregorianmonth = 11;\n displaygregorianyear = gregorianyear - 1;\n }\n //if the current month is not january, then just minus it with one, current year is \n //same\n else {\n displaygregorianmonth -= 1;\n }\n DateLB.setText(\"Summary of the Company in \" + \n displayMonths[displaygregorianmonth] + \" \" + displaygregorianyear );\n \n //the summary report ( month start from 1 so no need minus anymore )\n SummarySaleLB.setText( \"Total Value of Sale Transaction : \" +\n nf.format( reportdb.TotalSaleValue( gregorianmonth,\n gregorianyear ) ) );\n SummaryPurchaseLB.setText( \"Total Value of Purchase Transaction : \" +\n nf.format( reportdb.TotalPurchaseValue( gregorianmonth,\n gregorianyear ) ) );\n SummarySalesmanCommisionLB.setText( \"Total Value of Salesman Commision Transaction : \" +\n nf.format( reportdb.TotalSalesmanCommisionValue( gregorianmonth,\n gregorianyear ) ) );\n SummarySalaryPaymentLB.setText( \"Total Value of Salary Payment Transaction : \" + \n nf.format( reportdb.TotalSalaryPaymentValue( gregorianmonth,\n gregorianyear ) ) );\n SummaryChargesLB.setText( \"Total Value of Outcome Payment Transaction : \" +\n nf.format( reportdb.TotalOutcomeValue( gregorianmonth,\n gregorianyear ) ) );\n \n }", "@SneakyThrows\n private void pdfReport() {\n NotificationUtil.warningAlert(\"Warning\", \"Nothing to export\", NotificationUtil.SHORT);\n ServiceFactory.getPdfService().projectReport(table.getItems());\n }", "public String generalReport() throws Exception{\r\n\t\tForm16MisReportModel model = new Form16MisReportModel();\r\n\t\tmodel.initiate(context, session);\r\n\t\tmodel.generateReport(request, response, bulkForm16);\r\n\t\tmodel.terminate();\r\n\t\treturn null;\r\n\t}", "void printReport();", "private void analyze() {\n\t\tdouble org = 0;\n\t\tdouble avgIndPerDoc = 0;\n\t\tdouble avgTotalPerDoc = 0;\n\n\t\tfor (Instance instance : instanceProvider.getInstances()) {\n\n\t\t\tint g = 0;\n\t\t\tSet<AbstractAnnotation> orgM = new HashSet<>();\n\n//\t\t\torgM.addAll(instance.getGoldAnnotations().getAnnotations());\n//\t\t\tg += instance.getGoldAnnotations().getAnnotations().size();\n\n\t\t\tfor (AbstractAnnotation instance2 : instance.getGoldAnnotations().getAnnotations()) {\n\n\t\t\t\tResult r = new Result(instance2);\n\n\t\t\t\t{\n////\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(r.getTrend());\n//\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(r.getInvestigationMethod());\n////\t\t\t\t\tList<AbstractAnnotation> aa = new ArrayList<>(\n////\t\t\t\t\t\t\tr.getDefinedExperimentalGroups().stream().map(a -> a.get()).collect(Collectors.toList()));\n//\n//\t\t\t\t\torgM.addAll(aa);\n//\t\t\t\t\tg += aa.size();\n\t\t\t\t}\n\n\t\t\t\t{\n\t\t\t\t\t/**\n\t\t\t\t\t * props of exp\n\t\t\t\t\t */\n\t\t\t\t\tfor (DefinedExperimentalGroup instance3 : r.getDefinedExperimentalGroups()) {\n\n//\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(instance3.getOrganismModel());\n//\t\t\t\t\tList<AbstractAnnotation> aa = new ArrayList<>(instance3.getTreatments());\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(instance3.getInjury());\n\n\t\t\t\t\t\tList<AbstractAnnotation> ab = Arrays.asList(instance3.getInjury());\n\n\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n\t\t\t\t\t\t\t\t.filter(i -> i != null).flatMap(i -> i.getDeliveryMethods().stream())\n\t\t\t\t\t\t\t\t.filter(i -> i != null).collect(Collectors.toList());\n\n\t\t\t\t\t\taa.addAll(instance3.getTreatments().stream().filter(i -> i != null)\n\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Treatment(et))\n\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getDeliveryMethod()).filter(i -> i != null)\n\t\t\t\t\t\t\t\t.collect(Collectors.toList()));\n\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).flatMap(i -> i.getAnaesthetics().stream())\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).collect(Collectors.toList());\n\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getInjuryDevice()).filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.collect(Collectors.toList());\n\n\t\t\t\t\t\t// List<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getInjuryLocation()).filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.collect(Collectors.toList());\n\n\t\t\t\t\t\torgM.addAll(aa);\n\t\t\t\t\t\tg += aa.size();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tavgIndPerDoc += orgM.size();\n\t\t\tavgTotalPerDoc += g;\n\n\t\t\torg += ((double) orgM.size()) / (g == 0 ? 1 : g);\n//\t\t\tSystem.out.println(((double) orgM.size()) / g);\n\n\t\t}\n\t\tSystem.out.println(\"avgTotalPerDoc = \" + avgTotalPerDoc / instanceProvider.getInstances().size());\n\t\tSystem.out.println(\"avgIndPerDoc = \" + avgIndPerDoc / instanceProvider.getInstances().size());\n\t\tSystem.out.println(\"org = \" + org);\n\t\tSystem.out.println(\"avg. org = \" + (org / instanceProvider.getInstances().size()));\n\t\tSystem.out.println(new DecimalFormat(\"0.00\").format(avgTotalPerDoc / instanceProvider.getInstances().size())\n\t\t\t\t+ \" & \" + new DecimalFormat(\"0.00\").format(avgIndPerDoc / instanceProvider.getInstances().size())\n\t\t\t\t+ \" & \" + new DecimalFormat(\"0.00\").format(org / instanceProvider.getInstances().size()));\n\t\tSystem.exit(1);\n\n\t\tStats.countVariables(0, instanceProvider.getInstances());\n\n\t\tint count = 0;\n\t\tfor (SlotType slotType : EntityType.get(\"Result\").getSlots()) {\n\n\t\t\tif (slotType.isExcluded())\n\t\t\t\tcontinue;\n\t\t\tcount++;\n\t\t\tSystem.out.println(slotType.name);\n\n\t\t}\n\t\tSystem.out.println(count);\n\t\tSystem.exit(1);\n\t}", "public void setReport(Report report);", "protected abstract void parseReport(ReportInfo info)\n throws DavException;", "@FXML\n private void generateReportData() {\n\n if (storage.getHistory().size() == 0) {\n Alert ErrorAlert = new Alert(Alert.AlertType.NONE);\n ErrorAlert.setAlertType(Alert.AlertType.ERROR);\n ErrorAlert.setContentText(\"You have not selected any data to be in your Flight History\");\n ErrorAlert.show();\n } else {\n updateTravelledAndVisited();\n setUpData();\n\n try {\n displayCarbonEmissionGoalField.setText(String.valueOf(Double.parseDouble(carbonEmissionGoalField.getText())));\n generalStatsCalculator.setCarbonEmissionsGoal(Double.parseDouble(carbonEmissionGoalField.getText()));\n\n displayTotalEmissionsField.setText(\n String.format(\"%.2f\", generalStatsCalculator.getTotalCarbonEmissions()));\n displayTotalDistanceTravelledField.setText(\n String.format(\"%.2f\", generalStatsCalculator.getTotalDistanceTravelled()));\n displayMostEmissionsRouteField.setText(MostEmissionsRouteString);\n displayLeastEmissionsRouteField.setText(LeastEmissionsRouteString);\n displayMostDistanceRouteField.setText(MostDistanceRouteString);\n displayLeastDistanceRouteField.setText(LeastDistanceRouteString);\n displayMostVisitedSourceAirportField.setText(MostVisitedSourceAirportString);\n displayLeastVisitedSourceAirportField.setText(LeastVisitedSourceAirportString);\n displayMostVisitedDestinationAirportField.setText(MostVisitedDestAirportString);\n displayLeastVisitedDestinationAirportField.setText(LeastVisitedDestAirportString);\n displayTreeOffsetField.setText(numOfTreesString);\n generalStatsCalculator.createCarbonEmissionsComment();\n displayStatusCommentField.setText(generalStatsCalculator.getCarbonEmissionsComment());\n } catch (NumberFormatException e) {\n carbonEmissionGoalField.setText(\"\");\n carbonEmissionGoalField.setPromptText(\n \"NO GOAL WAS ENTERED. PLEASE ENTER A GOAL AS A DOUBLE.\");\n }\n }\n }", "@Override\r\n public void abrirListaReportes() {\n sec_rango_reporte.getCal_fecha1().setValue(null);\r\n sec_rango_reporte.getCal_fecha2().setValue(null);\r\n rep_reporte.dibujar();\r\n\r\n }", "private void populateStationaryReport() {\n\t\tLRNumberRangeDTO[] stationaryReportDTO = null;\n\t\tint len = 0;\n\t\tint value = 0;\n\t\ttry {\n\t\t\ttblStationaryReport.removeAll();\n\t\t\tstationaryReportDTO = handler.getStationaryReport();\n\n\t\t\tif (stationaryReportDTO != null) {\n\t\t\t\tlen = stationaryReportDTO.length;\n\t\t\t\tfor (int i = 0; i < len; i++) {\n\t\t\t\t\tTableItem item = new TableItem(tblStationaryReport,\n\t\t\t\t\t\t\tSWT.NONE);\n\n\t\t\t\t\titem.setText(0, String.valueOf(i + 1));\n\t\t\t\t\titem.setText(1, stationaryReportDTO[i].getStationCode());\n\t\t\t\t\tvalue = stationaryReportDTO[i].getTopay();\n\t\t\t\t\tif (value == 1) {\n\t\t\t\t\t\titem.setText(2, \"Assign\");\n\t\t\t\t\t\titem.setForeground(2, Display.getCurrent()\n\t\t\t\t\t\t\t\t.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t\t} else {\n\t\t\t\t\t\titem.setText(2, EMPTY_STRING);\n\t\t\t\t\t}\n\t\t\t\t\tvalue = stationaryReportDTO[i].getPaid();\n\t\t\t\t\tif (value == 1) {\n\t\t\t\t\t\titem.setText(3, \"Assign\");\n\t\t\t\t\t\titem.setForeground(3, Display.getCurrent()\n\t\t\t\t\t\t\t\t.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t\t} else {\n\t\t\t\t\t\titem.setText(3, EMPTY_STRING);\n\t\t\t\t\t}\n\n\t\t\t\t\tvalue = stationaryReportDTO[i].getBilling();\n\t\t\t\t\tif (value == 1) {\n\t\t\t\t\t\titem.setText(4, \"Assign\");\n\t\t\t\t\t\titem.setForeground(4, Display.getCurrent()\n\t\t\t\t\t\t\t\t.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t\t} else {\n\t\t\t\t\t\titem.setText(4, EMPTY_STRING);\n\t\t\t\t\t}\n\n\t\t\t\t\tvalue = stationaryReportDTO[i].getCr();\n\t\t\t\t\tif (value == 1) {\n\t\t\t\t\t\titem.setText(5, \"Assign\");\n\t\t\t\t\t\titem.setForeground(5, Display.getCurrent()\n\t\t\t\t\t\t\t\t.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t\t} else {\n\t\t\t\t\t\titem.setText(5, EMPTY_STRING);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (Exception exception) {\n\t\t\texception.printStackTrace();\n\t\t}\n\n\t}", "private void startReport() {\r\n // initialize the HtmlReporter\r\n htmlReporter = new ExtentHtmlReporter(System.getProperty(\"user.dir\")\r\n + jsonConfig.get(\"extentReportPath\") + \"testReport.html\");\r\n\r\n //initialize ExtentReports and attach the HtmlReporter\r\n extent = new ExtentReports();\r\n extent.attachReporter(htmlReporter);\r\n\r\n //To add system or environment info by using the setSystemInfo method.\r\n extent.setSystemInfo(\"OS\", (String) jsonConfig.get(\"osValue\"));\r\n switch ((String) jsonConfig.get(\"browserToBeUsed\")) {\r\n case \"FF\":\r\n extent.setSystemInfo(\"Browser\", \"Firefox\");\r\n break;\r\n case \"CH\":\r\n extent.setSystemInfo(\"Browser\", \"Chrome\");\r\n break;\r\n case \"IE\":\r\n extent.setSystemInfo(\"Browser\", \"Internet Explorer\");\r\n break;\r\n }\r\n\r\n //configuration items to change the look and feel\r\n //add content, manage tests etc\r\n htmlReporter.config().setChartVisibilityOnOpen(true);\r\n htmlReporter.config().setDocumentTitle(\"Test Report\");\r\n htmlReporter.config().setReportName(\"Test Report\");\r\n htmlReporter.config().setTestViewChartLocation(ChartLocation.TOP);\r\n htmlReporter.config().setTheme(Theme.STANDARD);\r\n htmlReporter.config().setTimeStampFormat(\"EEEE, MMMM dd, yyyy, hh:mm a '('zzz')'\");\r\n }", "void clearUsageReports();", "private void writeFinalReports() {\n\t\tSystem.out.println(\"Printing data to output files ...\");\n\t\twritePropertyData();\n\t\twriteClassData();\n\t\tSystem.out.println(\"Finished printing data.\");\n\t}", "public void displayReport() {\n\t\treport = new ReportFrame(fitnessProg);\n\t\treport.buildReport();\n\t\treport.setVisible(true);\n\t}", "@Override\r\n\tpublic void report() {\r\n\t}", "private static void analyse1() {\n\t\tList<String> twoYearIncomeInRateList2 = getTwoYearIncomeInRateList(BasicAnalyse.stockBasicMap.keySet(), 0, 10000, \"2016-4\", \"2015-4\");\r\n\t\tList<String> twoYearIncomeInRateList = getTwoYearIncomeInRateList(twoYearIncomeInRateList2, 0, 10000, \"2017-2\", \"2016-2\");\r\n\t\tList<String> twoYearProfitInRateList = getTwoYearProfitInRateList(twoYearIncomeInRateList, 0, 10000, \"2017-2\", \"2016-2\");\r\n\t\tList<String> twoSeasonIncomeInRateList = getTwoSeasonIncomeInRateList(twoYearProfitInRateList, 0, 10000, \"2017-2\", \"2017-1\");\r\n\t\tList<String> twoSeasonProfitInRateList = getTwoSeasonProfitInRateList(twoSeasonIncomeInRateList, 0, 10000, \"2017-2\", \"2017-1\");\r\n\t\tHashMap<String, List<HistoryDomain>> codeHisMap = HistoryAnalyse.getCodeHisMap(HistoryAnalyse.historyMap, twoSeasonProfitInRateList);\r\n\t\tHashMap<String, List<HistoryDomain>> orderDateMap = HistoryAnalyse.getOrderDateMap(codeHisMap);\r\n\t\tHashMap<String, String> dieTingTimeMap = PriceAnalyse.getDieTingLastTimeMap(orderDateMap, 5, -100, -20);\r\n\t\tHashMap<String, String> endDateMap = AnalyseUtil.getCodeDateMap(orderDateMap.keySet(), \"2017-10-13\");\r\n\t\tHashMap<String, List<HistoryDomain>> orderDateDTMap = HistoryAnalyse.getCodeHisMap(orderDateMap, dieTingTimeMap.keySet());\r\n\t\tHashMap<String, List<HistoryDomain>> afterDieTingHisMap = HistoryAnalyse.getHisMapByStartAndEndDateMap(orderDateDTMap, dieTingTimeMap, endDateMap);\r\n\t\tHashMap<String, Double> highestFlowInRate = PriceAnalyse.getHighestFlowInRate(afterDieTingHisMap, -2000, 20);\r\n\t\tHashMap<String, List<String>> conceptListMap = ConceptAnalyse.getConceptListMap(highestFlowInRate.keySet());\r\n\r\n\t\t\r\n\t\tSystem.out.println(conceptListMap);\r\n\t}", "public void report() {\n\t\tfor (Plant p : plants) {\r\n\t\t\tp.list();\r\n\t\t}\r\n\t\tfor (Fish f: fishes) {\r\n\t\t\tf.list();\r\n\t\t}\r\n\t}", "private void populateFields() {\n\n if (mReportCursor == null) {\n return;\n }\n\n Cursor c = mReportCursor;\n mValueText.setText(c.getString(c.getColumnIndexOrThrow(ReportPeer.KEY_VALUE)));\n }", "public void refreshGraphData() {\n\t\tLOGGER.finest(\"Finding builds to use for NeoLoad graphs. Currently I see \" + buildsAndDocs.size());\n\t\ttry {\n\t\t\tNeoLoadReportDoc doc = null;\n\t\t\tfinal Map<AbstractBuild<?, ?>, NeoLoadReportDoc> newBuildsAndDocs = new LinkedHashMap<AbstractBuild<?, ?>, NeoLoadReportDoc>();\n\n\t\t\t// look through all builds of the job\n\t\t\tfor (final AbstractBuild<?, ?> build: project.getBuilds()) {\n\t\t\t\tdoc = findXMLResultsFile(build);\n\n\t\t\t\t// if the correct file was found, and\n\t\t\t\t// only include successful builds.\n\t\t\t\tif (build != null && build.getResult() != null && build.getResult().isBetterThan(Result.FAILURE)) {\n\n\t\t\t\t\t// add the html results link to the build if it's not already there.\n\t\t\t\t\t// this is done here as well for builds that exist and don't already have the action.\n\t\t\t\t\t// this covers the case when the plugin is uninstalled, the action is lost,\n\t\t\t\t\t// and then the plugin is reinstalled.\n\t\t\t\t\tNeoResultsAction.addActionIfNotExists(build);\n\n\t\t\t\t\t// find the xml results file.\n\t\t\t\t\tdoc = findXMLResultsFile(build);\n\n\t\t\t\t\t// if the correct file was found\n\t\t\t\t\tif (doc != null) {\n\t\t\t\t\t\tnewBuildsAndDocs.put(build, doc);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// switch out the data for the new view\n\t\t\tfinal Map<AbstractBuild<?, ?>, NeoLoadReportDoc> oldBuildsAndDocs = buildsAndDocs;\n\t\t\tbuildsAndDocs = newBuildsAndDocs;\n\t\t\toldBuildsAndDocs.clear();\n\t\t} catch (final Exception e) {\n\t\t\tLOGGER.log(Level.SEVERE, \"Error finding NeoLoad xml results. \" + e.getMessage(), e);\n\t\t}\n\n\t\tLOGGER.finer(\"Found \" + buildsAndDocs.size() + \" builds to use for NeoLoad graphs.\");\n\t}", "private\n void\n createReportAndDisplayResults(Date start, Date end, TotalFilter filter)\n {\n CategoryReport report = CategoryReport.createReport(start, end, filter);\n IncomeExpenseTotal expenses = new IncomeExpenseTotal(EXPENSE_SUMMARY, TOTAL.toString());\n IncomeExpenseTotal income = new IncomeExpenseTotal(INCOME_SUMMARY, TOTAL.toString());\n\n // Add expense totals.\n for(IncomeExpenseTotal total : report.getExpenses())\n {\n getExpensePanel().getTable().add(total);\n\n // Combine all the expense totals into the total.\n expenses.setAmount(expenses.getAmount() + total.getAmount());\n }\n\n getExpensePanel().getTable().add(expenses);\n\n // Add income totals.\n for(IncomeExpenseTotal total : report.getIncome())\n {\n getIncomePanel().getTable().add(total);\n\n // Combine all the income totals into the total.\n income.setAmount(income.getAmount() + total.getAmount());\n }\n\n getIncomePanel().getTable().add(income);\n\n // Add transfer totals.\n for(TransferTotal total : report.getTransfers())\n {\n getTransferPanel().getTable().add(total);\n }\n\n // Display results.\n getExpensePanel().getTable().display();\n getIncomePanel().getTable().display();\n getTransferPanel().getTable().display();\n }", "public void contactScheduleReport() {\n reportLabel.setText(\"\");\n reportLabel1.setText(\"\");\n reportLabel2.setText(\"\");\n reportLabel3.setText(\"\");\n reportsList = DBReports.getContactSchedule();\n StringBuilder sb = new StringBuilder();\n sb.append(\"Appointments Schedule By Contact Report: \\n\");\n int id = 0;\n for (Reports r : reportsList) {\n if (r.getContactId() != id) {\n sb.append(\"\\n\" + r.getContactName().toUpperCase() + \"\\n\");\n sb.append(\"Appt. ID: \" + r.getAppointmentId() + \" \\t Title: \" + r.getTitle() + \" \\t Type: \" +\n r.getType() + \" \\t Desc: \" + r.getDescription() + \" \\t Start: \" +\n dateTimeFormatter.format(r.getStart().toLocalDateTime()) + \" \\t End: \" +\n dateTimeFormatter.format(r.getEnd().toLocalDateTime()) + \" \\t Customer ID: \" +\n r.getCustomerId() + \"\\n\");\n id = r.getContactId();\n } else {\n sb.append(\"Appt. ID: \" + r.getAppointmentId() + \" \\t Title: \" + r.getTitle() + \" \\t Type: \" +\n r.getType() + \" \\t Desc: \" + r.getDescription() + \" \\t Start: \" +\n dateTimeFormatter.format(r.getStart().toLocalDateTime()) + \" \\t End: \" +\n dateTimeFormatter.format(r.getEnd().toLocalDateTime()) + \" \\t Customer ID: \" +\n r.getCustomerId() + \"\\n\");\n }\n }\n reportLabel.setText(sb.toString());\n }", "public void setup_report() {\n try {\n output = new PrintWriter(new FileWriter(filename));\n } catch (IOException ioe) {}\n }", "void createReport(Report report);", "Report createReport();", "public String report() {\r\n\t\tsession2 = ServletActionContext.getRequest().getSession();\r\n\t\tlogger.info(session2);\r\n\t\tif (session2 == null || session2.getAttribute(\"login\") == null) {\r\n\t\t\tlogger.error(\"if=====session error reporting===='\");\r\n\t\t\treturn LOGIN;\r\n\t\t} else {\r\n\t\t\tfactory = LoginAndSession.getFactory();\r\n\t\t\tdao_userWise = (Productivity_user_wiseDao) factory.getBean(\"d27\");\r\n\t\t\tdao_propwise = (Productivity_property_wiseDao) factory.getBean(\"d29\");\r\n\t\t\tpcw = (Productivity_client_wiseDao) factory.getBean(\"d30\");\r\n\t\t\tif (colorRadio.equalsIgnoreCase(\"red\")) {\r\n\r\n\t\t\t\t// for all user\r\n\t\t\t\ttry {\r\n\t\t\t\t\tlst = dao_userWise\r\n\t\t\t\t\t\t\t.viewRecord(\"select puw.curr_date, puw.source_link, puw.infringing_link, puw.youtube,\"\r\n\t\t\t\t\t\t\t\t\t+ \" puw.social_media, puw.white_list, puw.grey_list, puw.duplicate , mu.name\"\r\n\t\t\t\t\t\t\t\t\t+ \" , puw.facebook, puw.instagram, puw.twitter, puw.vk, puw.periscope, puw.source_domain,\"\r\n\t\t\t\t\t\t\t\t\t+ \" puw.infringing_domain , puw.user_id \"\r\n\t\t\t\t\t\t\t\t\t+ \" from Productivity_user_wise puw, Markscan_users mu where puw.curr_date \"\r\n\t\t\t\t\t\t\t\t\t+ \" between '\" + date + \"' and '\" + date1 + \"' and mu.id= puw.user_id\");\r\n\t\t\t\t\tmonthlyGraph = new ArrayList<>();\r\n\r\n\t\t\t\t\tcud = (Crawle_url2Dao) factory.getBean(\"dash\");\r\n\r\n\t\t\t\t\t// lst1= cud.viewRecord(\"select DISTINCT count(domain_name)\r\n\t\t\t\t\t// ,date(created_on), link_logger from crawle_url3 where\r\n\t\t\t\t\t// user_id= 75 and created_on >'2017-06-01' and\r\n\t\t\t\t\t// link_logger=1 group by date(created_on)\")\r\n\r\n\t\t\t\t\tfor (int i = 0; i < lst.size(); i++) {\r\n\t\t\t\t\t\t obj = (Object[]) lst.get(i);\r\n\r\n\t\t\t\t\t\t data = new DashBoardData();\r\n\r\n\t\t\t\t\t\tdata.setDate(obj[0].toString());\r\n\t\t\t\t\t\tdata.setSource((Integer) obj[1]);\r\n\t\t\t\t\t\tdata.setInfringing((Integer) obj[2]);\r\n\r\n\t\t\t\t\t\tdata.setYoutube((Integer) obj[3]);\r\n\t\t\t\t\t\tdata.setSocial_media((Integer) obj[4]);\r\n\r\n\t\t\t\t\t\tdata.setWhite_list((Integer) obj[5]);\r\n\t\t\t\t\t\tdata.setGrey_list((Integer) obj[6]);\r\n\t\t\t\t\t\tdata.setDuplicate((Integer) obj[7]);\r\n\t\t\t\t\t\tdata.setProj_name(obj[8].toString()); // user_name\r\n\r\n\t\t\t\t\t\tdata.setFacebook((Integer) obj[9]);\r\n\t\t\t\t\t\tdata.setInstagram((Integer) obj[10]);\r\n\t\t\t\t\t\tdata.setTwitter((Integer) obj[11]);\r\n\t\t\t\t\t\tdata.setVk((Integer) obj[12]);\r\n\t\t\t\t\t\tdata.setPeriscope((Integer) obj[13]);\r\n\t\t\t\t\t\tdata.setSource_domain((Integer) obj[14]);\r\n\t\t\t\t\t\tdata.setInfringing_domain((Integer) obj[15]);\r\n\t\t\t\t\t\tdata.setUser_id((Integer) obj[16]);\r\n\t\t\t\t\t\tlst1 = dao_propwise.viewRecord(\r\n\t\t\t\t\t\t\t\t\"select DISTINCT cm.client_name , mp.name , cm.id from Productivity_property_wise ppw, \"\r\n\t\t\t\t\t\t\t\t\t\t+ \" Project_info pi, Client_master cm, Markscan_projecttype mp where \"\r\n\t\t\t\t\t\t\t\t\t\t+ \" ppw.project_id= pi.id and \"\r\n\t\t\t\t\t\t\t\t\t\t+ \" pi.client_type= cm.id and pi.project_type = mp.id and ppw.user_id =\"\r\n\t\t\t\t\t\t\t\t\t\t+ (Integer) obj[16] + \" and \" + \" ppw.created_on = '\" + obj[0].toString()\r\n\t\t\t\t\t\t\t\t\t\t+ \"'\");\r\n\t\t\t\t\t\tin_side = new ArrayList<>();\r\n\t\t\t\t\t\tfor (int i1 = 0; i1 < lst1.size(); i1++) {\r\n\t\t\t\t\t\t\t obj1 = (Object[]) lst1.get(i1);\r\n\r\n\t\t\t\t\t\t\tlst0 = dao_propwise.viewRecord(\"select sum( productivi0_.source_count), \"\r\n\t\t\t\t\t\t\t\t\t+ \" sum( productivi0_.infringing_count),sum( productivi0_.youtube), \"\r\n\t\t\t\t\t\t\t\t\t+ \" sum( productivi0_.facebook), sum(productivi0_.instagram), \"\r\n\t\t\t\t\t\t\t\t\t+ \" sum(productivi0_.twitter),sum(productivi0_.vk), sum(productivi0_.periscope) \"\r\n\t\t\t\t\t\t\t\t\t+ \" from Productivity_property_wise productivi0_, Project_info project_in1_ \"\r\n\t\t\t\t\t\t\t\t\t+ \" where project_in1_.id=productivi0_.project_id and \" + \" productivi0_.user_id=\"\r\n\t\t\t\t\t\t\t\t\t+ (Integer) obj[16] + \" and \" + \" productivi0_.created_on='\" + obj[0].toString()\r\n\t\t\t\t\t\t\t\t\t+ \"' and \" + \"project_in1_.client_type=\" + (Integer) obj1[2]);\r\n\r\n\t\t\t\t\t\t\tfor (int i0 = 0; i0 < lst0.size(); i0++) {\r\n\t\t\t\t\t\t\t\t obj0 = (Object[]) lst0.get(i0);\r\n\r\n\t\t\t\t\t\t\t\t craw = new Crawle_url2();\r\n\t\t\t\t\t\t\t\tcraw.setWid(obj1[0].toString()); // client_name\r\n\t\t\t\t\t\t\t\tcraw.setIs_valid(((Long) obj0[0]).intValue());// source\r\n\t\t\t\t\t\t\t\tcraw.setStatus(((Long) obj0[1]).intValue());// infringing\r\n\t\t\t\t\t\t\t\tcraw.setUser_id(((Long) obj0[2]).intValue());// youtube\r\n\t\t\t\t\t\t\t\tcraw.setProject_id(((Long) obj0[3]).intValue());// FB\r\n\t\t\t\t\t\t\t\tcraw.setType(((Long) obj0[4]).intValue());// instagram\r\n\t\t\t\t\t\t\t\tcraw.setVerified(((Long) obj0[5]).intValue());// twitter\r\n\t\t\t\t\t\t\t\tcraw.setSite_down(((Long) obj0[6]).intValue());// vk\r\n\t\t\t\t\t\t\t\tcraw.setIs_new(((Long) obj0[7]).intValue());// pscp\r\n\r\n\t\t\t\t\t\t\t\tin_side.add(craw);\r\n\t\t\t\t\t\t\t\tobj0=null;\r\n\t\t\t\t\t\t\t\tcraw=null;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tobj1=null;\r\n\t\t\t\t\t\t\tlst0 = null;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t// System.out.println(client_names);\r\n\t\t\t\t\t\tdata.setInside(in_side);\r\n\r\n\t\t\t\t\t\tmonthlyGraph.add(data);\r\n\t\t\t\t\t\tlst1 = null;\r\n\t\t\t\t\t\tdata=null;\r\n\t\t\t\t\t\t\t\tobj=null;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\tlst = null;\r\n\t\t\t\t\tlst1 = null;\r\n\t\t\t\t\tlst0 = null;\r\n\t\t\t\t\tdao_userWise = null;\r\n\t\t\t\t\tdao_propwise = null;\r\n\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\treturn ERROR;\r\n\t\t\t\t}\r\n\t\t\t\tfinally{\r\n\t\t\t\t\tobj0=null;\r\n\t\t\t\t\tcraw=null;\r\n\t\t\t\t\tobj1=null;\r\n\t\t\t\t\tlst0 = null;\r\n\t\t\t\t\tlst1 = null;\r\n\t\t\t\t\tdata=null;\r\n\t\t\t\t\t\t\tobj=null;\r\n\t\t\t\t\t\t\tdao_userWise = null;\r\n\t\t\t\t\t\t\tdao_propwise = null;\r\n\t\t\t\t\t\t\tlst = null;\r\n\t\t\t\t\t\t\tfactory=null;\r\n\t\t\t\t\t\t\tdao_userWise=null;\r\n\t\t\t\t\t\t\tdao_propwise=null;\r\n\t\t\t\t\t\t\tsession2=null;\r\n\t\t\t\t}\r\n\t\t\t\tSystem.gc();\r\n\t\t\t\treturn \"allEmpReport\";\r\n\t\t\t} else if (colorRadio.equalsIgnoreCase(\"green\")) {\r\n\t\t\t\t// for single user\r\n\t\t\t\ttry {\r\n\t\t\t\t\tlst = dao_userWise\r\n\t\t\t\t\t\t\t.viewRecord(\"select puw.curr_date, puw.source_link, puw.infringing_link, puw.youtube, \"\r\n\t\t\t\t\t\t\t\t\t+ \" puw.social_media, puw.white_list, puw.grey_list, puw.duplicate , puw.facebook,\"\r\n\t\t\t\t\t\t\t\t\t+ \" puw.instagram, puw.twitter, puw.vk, puw.periscope, puw.source_domain, \"\r\n\t\t\t\t\t\t\t\t\t+ \" puw.infringing_domain from \" + \" Productivity_user_wise puw where puw.user_id=\"\r\n\t\t\t\t\t\t\t\t\t+ usertype + \" and puw.curr_date between\" + \" '\" + date + \"' and '\" + date1 + \"'\");\r\n\t\t\t\t\tmonthlyGraph = new ArrayList<>();\r\n\r\n\t\t\t\t\tfor (int i = 0; i < lst.size(); i++) {\r\n\t\t\t\t\t\t obj = (Object[]) lst.get(i);\r\n\r\n\t\t\t\t\t\t data = new DashBoardData();\r\n\t\t\t\t\t\tdata.setDate(obj[0].toString());\r\n\t\t\t\t\t\tdata.setSource((Integer) obj[1]);\r\n\t\t\t\t\t\tdata.setInfringing((Integer) obj[2]);\r\n\r\n\t\t\t\t\t\tdata.setYoutube((Integer) obj[3]);\r\n\t\t\t\t\t\tdata.setSocial_media((Integer) obj[4]);\r\n\r\n\t\t\t\t\t\tdata.setWhite_list((Integer) obj[5]);\r\n\t\t\t\t\t\tdata.setGrey_list((Integer) obj[6]);\r\n\t\t\t\t\t\tdata.setDuplicate((Integer) obj[7]);\r\n\r\n\t\t\t\t\t\tdata.setFacebook((Integer) obj[8]);\r\n\t\t\t\t\t\tdata.setInstagram((Integer) obj[9]);\r\n\t\t\t\t\t\tdata.setTwitter((Integer) obj[10]);\r\n\t\t\t\t\t\tdata.setVk((Integer) obj[11]);\r\n\t\t\t\t\t\tdata.setPeriscope((Integer) obj[12]);\r\n\t\t\t\t\t\tdata.setSource_domain((Integer) obj[13]);\r\n\t\t\t\t\t\tdata.setInfringing_domain((Integer) obj[14]);\r\n\r\n\t\t\t\t\t\tlst1 = dao_propwise.viewRecord(\r\n\t\t\t\t\t\t\t\t\"select DISTINCT cm.client_name , mp.name , cm.id from Productivity_property_wise ppw, \"\r\n\t\t\t\t\t\t\t\t\t\t+ \" Project_info pi, Client_master cm, Markscan_projecttype mp where \"\r\n\t\t\t\t\t\t\t\t\t\t+ \" ppw.project_id= pi.id and \"\r\n\t\t\t\t\t\t\t\t\t\t+ \" pi.client_type= cm.id and pi.project_type = mp.id and ppw.user_id =\"\r\n\t\t\t\t\t\t\t\t\t\t+ usertype + \" and \" + \" ppw.created_on = '\" + obj[0].toString() + \"'\");\r\n\t\t\t\t\t\tin_side = new ArrayList<>();\r\n\t\t\t\t\t\tfor (int i1 = 0; i1 < lst1.size(); i1++) {\r\n\t\t\t\t\t\t\t obj1 = (Object[]) lst1.get(i1);\r\n\r\n\t\t\t\t\t\t\tlst0 = dao_propwise.viewRecord(\"select sum( productivi0_.source_count), \"\r\n\t\t\t\t\t\t\t\t\t+ \" sum( productivi0_.infringing_count),sum( productivi0_.youtube), \"\r\n\t\t\t\t\t\t\t\t\t+ \" sum( productivi0_.facebook), sum(productivi0_.instagram), \"\r\n\t\t\t\t\t\t\t\t\t+ \" sum(productivi0_.twitter),sum(productivi0_.vk), sum(productivi0_.periscope) \"\r\n\t\t\t\t\t\t\t\t\t+ \" from Productivity_property_wise productivi0_, Project_info project_in1_ \"\r\n\t\t\t\t\t\t\t\t\t+ \" where project_in1_.id=productivi0_.project_id and \" + \" productivi0_.user_id=\"\r\n\t\t\t\t\t\t\t\t\t+ usertype + \" and \" + \" productivi0_.created_on='\" + obj[0].toString() + \"' and \"\r\n\t\t\t\t\t\t\t\t\t+ \"project_in1_.client_type=\" + (Integer) obj1[2]);\r\n\r\n\t\t\t\t\t\t\tfor (int i0 = 0; i0 < lst0.size(); i0++) {\r\n\t\t\t\t\t\t\t\t obj0 = (Object[]) lst0.get(i0);\r\n\r\n\t\t\t\t\t\t\t\t craw = new Crawle_url2();\r\n\t\t\t\t\t\t\t\tcraw.setWid(obj1[0].toString()); // client_name\r\n\t\t\t\t\t\t\t\tcraw.setIs_valid(((Long) obj0[0]).intValue());// source\r\n\t\t\t\t\t\t\t\tcraw.setStatus(((Long) obj0[1]).intValue());// infringing\r\n\t\t\t\t\t\t\t\tcraw.setUser_id(((Long) obj0[2]).intValue());// youtube\r\n\t\t\t\t\t\t\t\tcraw.setProject_id(((Long) obj0[3]).intValue());// FB\r\n\t\t\t\t\t\t\t\tcraw.setType(((Long) obj0[4]).intValue());// instagram\r\n\t\t\t\t\t\t\t\tcraw.setVerified(((Long) obj0[5]).intValue());// twitter\r\n\t\t\t\t\t\t\t\tcraw.setSite_down(((Long) obj0[6]).intValue());// vk\r\n\t\t\t\t\t\t\t\tcraw.setIs_new(((Long) obj0[7]).intValue());// pscp\r\n\r\n\t\t\t\t\t\t\t\tin_side.add(craw);\r\n\t\t\t\t\t\t\t\tobj0=null;\r\n\t\t\t\t\t\t\t\tcraw=null;\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tobj1=null;\r\n\t\t\t\t\t\t\tlst0=null;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tdata.setInside(in_side);\r\n\t\t\t\t\t\tmonthlyGraph.add(data);\r\n\t\t\t\t\t\tobj=null;\r\n\t\t\t\t\t\tdata= null;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tlst = null;\r\n\t\t\t\t\tlst1 = null;\r\n\t\t\t\t\tlst0 = null;\r\n\t\t\t\t\tdao_userWise = null;\r\n\t\t\t\t\tdao_propwise = null;\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\treturn ERROR;\r\n\t\t\t\t}\r\n\t\t\t\tfinally\r\n\t\t\t\t{\r\n\t\t\t\t\tlst = null;\r\n\t\t\t\t\tlst1 = null;\r\n\t\t\t\t\tlst0 = null;\r\n\t\t\t\t\tdao_userWise = null;\r\n\t\t\t\t\tdao_propwise = null;\r\n\t\t\t\t\tdata=null;\r\n\t\t\t\t\tcraw= null;\r\n\t\t\t\t\tfactory=null;\r\n\t\t\t\t\tdao_userWise=null;\r\n\t\t\t\t\tdao_propwise=null;\r\n\t\t\t\t\tsession2=null;\r\n\t\t\t\t}\r\n\t\t\t\tSystem.gc();\r\n\t\t\t\treturn \"empReport\";\r\n\t\t\t} else if (colorRadio.equalsIgnoreCase(\"blue\")) {\r\n\t\t\t\t// for client wise\r\n\t\t\t\ttry {\r\n\r\n\t\t\t\t\tlst = pcw.viewRecord(\"select pcw.curr_date, pcw.source_link, pcw.infringing_link, pcw.youtube,\"\r\n\t\t\t\t\t\t\t+ \" pcw.social_media, pcw.white_list, pcw.grey_list , pcw.facebook, pcw.instagram, pcw.twitter,\"\r\n\t\t\t\t\t\t\t+ \" pcw.vk, pcw.periscope, pcw.source_domain, pcw.infringing_domain from Productivity_client_wise \"\r\n\t\t\t\t\t\t\t+ \" pcw where pcw.curr_date between '\" + date + \"' and '\" + date1 + \"' and pcw.client_id=\"\r\n\t\t\t\t\t\t\t+ clientname);\r\n\t\t\t\t\tmonthlyGraph = new ArrayList<>();\r\n\r\n\t\t\t\t\tfor (int i = 0; i < lst.size(); i++) {\r\n\t\t\t\t\t\t obj = (Object[]) lst.get(i);\r\n\r\n\t\t\t\t\t\t data = new DashBoardData();\r\n\t\t\t\t\t\tdata.setDate(obj[0].toString());\r\n\t\t\t\t\t\tdata.setSource((Integer) obj[1]);\r\n\t\t\t\t\t\tdata.setInfringing((Integer) obj[2]);\r\n\r\n\t\t\t\t\t\tdata.setYoutube((Integer) obj[3]);\r\n\t\t\t\t\t\tdata.setSocial_media((Integer) obj[4]);\r\n\r\n\t\t\t\t\t\tdata.setWhite_list((Integer) obj[5]);\r\n\t\t\t\t\t\tdata.setGrey_list((Integer) obj[6]);\r\n\r\n\t\t\t\t\t\tdata.setFacebook((Integer) obj[7]);\r\n\t\t\t\t\t\tdata.setInstagram((Integer) obj[8]);\r\n\t\t\t\t\t\tdata.setTwitter((Integer) obj[9]);\r\n\t\t\t\t\t\tdata.setVk((Integer) obj[10]);\r\n\t\t\t\t\t\tdata.setPeriscope((Integer) obj[11]);\r\n\r\n\t\t\t\t\t\tdata.setSocial_media((Integer) obj[7] + (Integer) obj[8] + (Integer) obj[9] + (Integer) obj[10]\r\n\t\t\t\t\t\t\t\t+ (Integer) obj[11]);\r\n\r\n\t\t\t\t\t\tdata.setSource_domain((Integer) obj[12]);\r\n\t\t\t\t\t\tdata.setInfringing_domain((Integer) obj[13]);\r\n\r\n\t\t\t\t\t\tlst1 = dao_propwise.viewRecord(\r\n\t\t\t\t\t\t\t\t\"select DISTINCT mu.name, ppw.created_on ,ppw.user_id from Productivity_property_wise ppw ,\"\r\n\t\t\t\t\t\t\t\t\t\t+ \" Markscan_users mu where mu.id= ppw.user_id and ppw.client_id = \"\r\n\t\t\t\t\t\t\t\t\t\t+ clientname + \" and ppw.created_on='\" + obj[0].toString() + \"' \");\r\n\t\t\t\t\t\tin_side = new ArrayList<>();\r\n\t\t\t\t\t\tfor (int i1 = 0; i1 < lst1.size(); i1++) {\r\n\t\t\t\t\t\t\t obj1 = (Object[]) lst1.get(i1);\r\n\r\n\t\t\t\t\t\t\tlst0 = dao_propwise.viewRecord(\" select sum( productivi0_.source_count),\"\r\n\t\t\t\t\t\t\t\t\t+ \" sum(productivi0_.infringing_count),sum( productivi0_.youtube), \"\r\n\t\t\t\t\t\t\t\t\t+ \" sum(productivi0_.facebook),sum(productivi0_.instagram),sum(productivi0_.twitter) \"\r\n\t\t\t\t\t\t\t\t\t+ \" ,sum(productivi0_.vk),sum( productivi0_.periscope) from \"\r\n\t\t\t\t\t\t\t\t\t+ \" Productivity_property_wise productivi0_, Markscan_users markscan_u1_ where \"\r\n\t\t\t\t\t\t\t\t\t+ \" markscan_u1_.id=productivi0_.user_id and productivi0_.client_id= \" + clientname\r\n\t\t\t\t\t\t\t\t\t+ \" and productivi0_.created_on='\" + obj[0].toString() + \"' and \"\r\n\t\t\t\t\t\t\t\t\t+ \" productivi0_.user_id=\" + (Integer) obj1[2]);\r\n\r\n\t\t\t\t\t\t\tfor (int i0 = 0; i0 < lst0.size(); i0++) {\r\n\t\t\t\t\t\t\t\t obj0 = (Object[]) lst0.get(i0);\r\n\r\n\t\t\t\t\t\t\t\t craw = new Crawle_url2();\r\n\t\t\t\t\t\t\t\tcraw.setWid(obj1[0].toString()); // client_name\r\n\t\t\t\t\t\t\t\tcraw.setIs_valid(((Long) obj0[0]).intValue());// source\r\n\t\t\t\t\t\t\t\tcraw.setStatus(((Long) obj0[1]).intValue());// infringing\r\n\t\t\t\t\t\t\t\tcraw.setUser_id(((Long) obj0[2]).intValue());// youtube\r\n\t\t\t\t\t\t\t\tcraw.setProject_id(((Long) obj0[3]).intValue());// FB\r\n\t\t\t\t\t\t\t\tcraw.setType(((Long) obj0[4]).intValue());// instagram\r\n\t\t\t\t\t\t\t\tcraw.setVerified(((Long) obj0[5]).intValue());// twitter\r\n\t\t\t\t\t\t\t\tcraw.setSite_down(((Long) obj0[6]).intValue());// vk\r\n\t\t\t\t\t\t\t\tcraw.setIs_new(((Long) obj0[7]).intValue());// pscp\r\n\r\n\t\t\t\t\t\t\t\tin_side.add(craw);\r\n\t\t\t\t\t\t\t\tobj0=null;\r\n\t\t\t\t\t\t\t\tcraw=null;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tobj1=null;\r\n\t\t\t\t\t\t\tlst0=null;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tdata.setInside(in_side);\r\n\r\n\t\t\t\t\t\tmonthlyGraph.add(data);\r\n\t\t\t\t\t\tobj= null;\r\n\t\t\t\t\t\tdata= null;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tpcw = null;\r\n\t\t\t\t\tlst = null;\r\n\t\t\t\t\tlst1 = null;\r\n\t\t\t\t\tlst0 = null;\r\n\t\t\t\t\tdao_userWise = null;\r\n\t\t\t\t\tdao_propwise = null;\r\n\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\treturn ERROR;\r\n\t\t\t\t}\r\n\t\t\t\tfinally{\r\n\t\t\t\t\tpcw = null;\r\n\t\t\t\t\tlst = null;\r\n\t\t\t\t\tlst1 = null;\r\n\t\t\t\t\tlst0 = null;\r\n\t\t\t\t\tdao_userWise = null;\r\n\t\t\t\t\tdao_propwise = null;\r\n\t\t\t\t\tobj=null;\r\n\t\t\t\t\tdata=null;\r\n\t\t\t\t\tcraw=null;\r\n\t\t\t\t\tfactory=null;\r\n\t\t\t\t\tdao_userWise=null;\r\n\t\t\t\t\tdao_propwise=null;\r\n\t\t\t\t\tsession2=null;\r\n\t\t\t\t}\r\n\t\t\t\tSystem.gc();\r\n\t\t\t\treturn \"clientReport\";\r\n\t\t\t}\r\n\r\n\t\t\tfactory=null;\r\n\t\t\tdao_userWise=null;\r\n\t\t\tdao_propwise=null;\r\n\t\t\tsession2=null;\r\n\t\t\tSystem.gc();\r\n\t\t\treturn SUCCESS;\r\n\t\t}\r\n\t}", "private void printReport() {\n\t\tSystem.out.println(getReport());\n\t}", "public void m36045a() {\n this.f29981a.showReportDialog();\n }", "@Override\n\tpublic void calculate(systemSelection selection) {\n\t\t\n\t\t// Get selection parameters\n\t\tVector<String> viewers = selection.getSelectedViewers();\n\t\t\t\t\n\t\t// Create Result Object\n\t\tResultObject result = new ResultObject();\n\t\t\n\t\t// Create viewers (stored in this.viewers)\n\t\tthis.setViewers(viewers);\n\t\t\t\t\n\t\t// Set Analysis Name\n\t\tresult.setName(selection.getSelectedAnalysis());\n\t\t\t\t\n\t\tfor (ConcreteViewer viewer : this.viewers) {\n\t\t\tresult.attach(viewer);\n\t\t\t\t\t\n\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t// Package data from World Bank API\n\t\t\n\t\t// Our reader\n\t\tDataReader dr = new DataReader(selection);\n\t\t\t\t\n\t\t// Retrieve cost of education\n\t\tDataObject educationCost = dr.getData(\"SE.XPD.TOTL.GD.ZS\");\n\t\tArrayList<Double> educationCostData = educationCost.getData();\n\t\t\t\t\n\t\t// Retrieve cost of healthcare\n\t\tDataObject healthCost = dr.getData(\"SH.XPD.CHEX.GD.ZS\");\n\t\tArrayList<Double> healthCostData = healthCost.getData();\n\t\t\t\t\t\n\t\t//new ArrayList holds values of the calculation\n\t\tArrayList<Double> ratioEducationHealth = new ArrayList<Double>();\n\t\t\t\t\n\t\t//perform calculation\n\t\tint maxIndex = selection.getSelectedYears()[1] - selection.getSelectedYears()[0];\n\t\tboolean allZero = true;\n\t\tfor(int i=0;i<=maxIndex;i++) {\n\t\t\tdouble ratio = educationCostData.get(i)/healthCostData.get(i);\n\t\t\tratioEducationHealth.add(ratio);\n\t\t\t\n\t\t\tif(ratio!=0 && Double.isNaN(ratio)==false) {\n\t\t\t\tallZero = false;\n\t\t\t}\n\t\t}\n\t\t\t\t\n\t\tif(!allZero) {\n\t\t\t\t\n\t\t\tArrayList<ArrayList<Double>> dataList = new ArrayList<ArrayList<Double>>();\n\t\t\tdataList.add(ratioEducationHealth);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\n\t\t\t// Set Analysis Name\n\t\t\tresult.setName(selection.getSelectedAnalysis());\n\t\t\t\t\t\n\t\t\t// Set years\n\t\t\tresult.setYears(selection.getSelectedYears());\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\tArrayList<String> dataNames = new ArrayList<String>();\n\t\t\tdataNames.add(\"Ratio of Government expenditure on education \"\n\t\t\t\t\t\t\t+ \"vs Current health expenditure\");\n\t\t\t\t\t\n\t\t\tresult.setDataNames(dataNames);\n\t\t\t\n\t\t\t// Set Panel that viewers will belong to\n\t\t\tSystem.out.println(\"Setting Viewer Panel\");\n\t\t\tresult.setPanel(this.viewerPanel);\n\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(\"Sending Data to Result Object.\");\n\t\t\tSystem.out.println(dataList);\n\t\t\tresult.setResult(dataList);\n\t\t\ttry {\n\t\t\t\tMainUI.getInstance().errorLabel.setText(\"\");\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\n\t\n\t\t} else {\n\t\t\ttry {\n\t\t\t\tMainUI.getInstance().errorLabel.setText(\"All data is 0!\");\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t}", "void createReport() {\n\n // report about purple flowers\n println(\"\\nPurple flower distribution: \");\n for (int i = 0; i < 6; i++) {\n println(i + (i==5?\"+\":\"\") + \": \" + numPurpleFlowers[i]);\n }\n // report about missing treasures\n println(\"Missing treasure count: \" + missingTreasureCount);\n\n println(\"\\nGenerated \" + caveGenCount + \" sublevels.\");\n println(\"Total run time: \" + (System.currentTimeMillis()-startTime)/1000.0 + \"s\");\n\n out.close();\n }", "public void setUpData() {\n generalStatsCalculator.calculateOffsetTrees();\n this.MostEmissionsRouteString =\n RoutesArrayToString(routeStatsCalculator.getMostEmissionsRoutes());\n this.LeastEmissionsRouteString =\n RoutesArrayToString(routeStatsCalculator.getLeastEmissionsRoutes());\n this.MostDistanceRouteString =\n RoutesArrayToString(routeStatsCalculator.getMostDistanceRoutes());\n this.LeastDistanceRouteString =\n RoutesArrayToString(routeStatsCalculator.getLeastDistanceRoutes());\n this.MostVisitedSourceAirportString =\n CombineAirportsToOneString(airportStatsCalculator.getMostVisitedSrcAirports());\n this.LeastVisitedSourceAirportString =\n CombineAirportsToOneString(airportStatsCalculator.getLeastVisitedSrcAirports());\n this.MostVisitedDestAirportString =\n CombineAirportsToOneString(airportStatsCalculator.getMostVisitedDestAirports());\n this.LeastVisitedDestAirportString =\n CombineAirportsToOneString(airportStatsCalculator.getLeastVisitedDestAirports());\n numOfTreesToString(generalStatsCalculator.getTreesToGrow());\n generalStatsCalculator.createCarbonEmissionsComment();\n }", "void onGetAllDataReport(List<Report> reports, Sumary sumary);", "protected void updateSummaries() { }", "protected void updateSummaries() { }", "private void setDataSecondReport() {\r\n\t\tguiControl.sendToServer(new ClientMessage(ClientMessageType.INCOME_REPORT, reportDate));\r\n\t\tMap<Integer, VisitorReport> parkReportMap = (Map<Integer, VisitorReport>) guiControl.getServerMsg()\r\n\t\t\t\t.getMessage();\r\n\t\tlineCharSecond.getData().clear();\r\n\t\tXYChart.Series<String, Integer> price = new XYChart.Series<>();\r\n\t\tint total_price = 0;\r\n\t\tint i = 1;\r\n\t\tfor (VisitorReport vr : parkReportMap.values()) {\r\n\t\t\tprice.getData().add(new XYChart.Data<>(String.valueOf(i), new Integer(vr.getPrice())));\r\n\t\t\ti++;\r\n\t\t\ttotal_price = total_price + vr.getPrice();\r\n\t\t}\r\n\t\tlineCharSecond.getData().add(price);\r\n\t\tString totalP = String.valueOf(total_price);\r\n\t\ttotalSecond.setText(totalP + \" \" + \"NIS\");\r\n\t}", "public void clearReports()\n {\n reports.clear();\n }", "void analysisPostponed();", "private void fillObservationsData() {\n\n // retrieve all oindex records\n// List<Oindex> oindexList = this.servicioApp.getMeasurementOindexListByStudy(workbookStudy.getStudy().getStudyid(), effectid);\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n\n int variateCount = this.workbookStudy.getVariates().size();\n\n List<Measurement> measurementList = new ArrayList<Measurement>();\n //todo quitar no se usa\n// int observationsCount = this.servicioApp.getObservationsCount(studyId);\n log.info(\"Getting Data Trial ...\");\n List<Object> dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n log.info(\"Getting Data Trial Done...\");\n \n log.info(\"Getting List of Obsunit ...\");\n List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n log.info(\"Getting List of Obsunit...\");\n for (Obsunit obsUnit : obsunits){\n Measurement measurement = new Measurement();\n\n measurement.initMeasurementData(variateCount);\n\n assignMeasurementData(measurement, obsUnit, dataList);\n\n measurementList.add(measurement);\n }\n\n\n workbookStudy.setMeasurements(measurementList);\n\n List<String> factorsReturn = getFactoresReturnList();\n log.info(\"Getting Trial Randomization ...\");\n ResultSet rst = servicioApp.getTrialRandomization(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n log.info(\"Getting Trial Randomization done\");\n fillFactorLabelData(rst, factorsReturn);\n }", "public ReportRunner() \n\t{\n\t\treports = new HashMap<String, Report>();\n\t\tresults =Collections.synchronizedMap(new HashMap<String, ArrayList<String[]>>());\n\t}", "@Override\n public void reportSmartDashboard() {\n }", "@SuppressLint(\"SetTextI18n\")\n private void processJsonData(String report)\n {\n try {\n JSONObject mainObject = new JSONObject(report);\n JSONArray reportArray = mainObject.optJSONArray(\"report\");\n\n JSONObject jsonIndex = reportArray.getJSONObject(0);\n JSONArray detailArray = jsonIndex.getJSONArray(\"detail\");\n JSONObject detailObject = detailArray.getJSONObject(0);\n\n if(!detailObject.getString(\"monthlyTaka\").equals(\"0\"))\n monthlyTaka = detailObject.getString(\"monthlyTaka\");\n else monthlyTaka = \"0\";\n\n if(!detailObject.getString(\"monthlyCost\").equals(\"0\"))\n monthlyCost = detailObject.getString(\"monthlyCost\");\n else monthlyCost = \"0\";\n\n if(!detailObject.getString(\"monthlyMeal\").equals(\"0\"))\n monthlyMeal = detailObject.getString(\"monthlyMeal\");\n else monthlyMeal = \"0\";\n\n if(!detailObject.getString(\"remaining\").equals(\"0\"))\n remain = detailObject.getString(\"remaining\");\n else remain = \"0\";\n\n if(!detailObject.getString(\"mealRate\").equals(\"0\"))\n mealRate = detailObject.getString(\"mealRate\");\n else mealRate = \"0\";\n\n String name,meal,taka,cost,status;\n\n for(int i=1;i<reportArray.length();i++)\n {\n int count=0;\n JSONObject index = reportArray.getJSONObject(i);\n JSONArray infoArray = index.getJSONArray(\"info\");\n while(count<infoArray.length())\n {\n JSONObject object = infoArray.getJSONObject(count);\n\n name = object.getString(\"name\");\n if(!object.getString(\"meal\").equals(\"null\"))\n meal = object.getString(\"meal\");\n else meal = \"0\";\n if(!object.getString(\"taka\").equals(\"null\"))\n taka = object.getString(\"taka\");\n else taka = \"0\";\n if(!object.getString(\"cost\").equals(\"null\"))\n cost = object.getString(\"cost\");\n else cost = \"0\";\n if(!object.getString(\"status\").equals(\"null\"))\n status = object.getString(\"status\");\n else status = \"0\";\n modelList.add(new CostModel(name,meal,taka,cost,status));\n count++;\n }\n }\n\n ReportAdapter adapter = new ReportAdapter(this, modelList, mealRate, sharedPreferenceData.getmyCurrentSession());\n listView.setAdapter(adapter);\n\n txtTotalTaka.setText(monthlyTaka);txtTotalMeal.setText(monthlyMeal);txtTotalCost.setText(monthlyCost);\n txtRemaining.setText(remain);txtMealRate.setText(mealRate+\" per meal\");\n\n }catch (JSONException e)\n {\n Log.d(\"Exception \",e.toString());\n }\n }", "public void generateReport()\r\n {\r\n ProfilerGUI reportGUI = new ProfilerGUI(map,mapCountTracker);\r\n //reportGUI.\r\n }", "public void readReports (BufferedReader reader) {\n try {\n // Each line of CSV will be stored in this String\n String line = \"\";\n reader.readLine();\n while ((line = reader.readLine()) != null) {\n // line will be split by \",\", into an array of String\n String[] eachDetailOfReportLine = line.split(\",(?=([^\\\"]*\\\"[^\\\"]*\\\")*[^\\\"]*$)\");\n\n if (eachDetailOfReportLine.length == 0) {\n continue;\n }\n\n // removing unnecessary quotation marks\n for (int i = 0; i < eachDetailOfReportLine.length; i++) {\n eachDetailOfReportLine[i] = eachDetailOfReportLine[i].replaceAll(\"\\\"\", \"\");\n }\n\n\n // finds restaurant using tracking code from restaurants' list\n Restaurant restaurant = null;\n for (Restaurant R : restaurants) {\n if (R.getTrackingNumber().equals(eachDetailOfReportLine[0])) {\n restaurant = R;\n break;\n }\n }\n\n if (restaurant == null) {\n continue;\n }\n\n// Log.e(\"checking..............\", restaurant.getName());\n\n // setting other values\n Integer day = Integer.parseInt(eachDetailOfReportLine[1]);\n Report reportToAdd = new Report(day, eachDetailOfReportLine[2]);\n\n String thatDay = day.toString();\n Date thatDayCalendar = new SimpleDateFormat(\"yyyyMMdd\").parse(thatDay);\n if (oldUpdateTime > 0) {\n if (thatDayCalendar.getTime() > oldUpdateTime) {\n restaurant.setHasUpdate(true);\n }\n }\n\n\n Integer numCriticalIssues = Integer.parseInt(eachDetailOfReportLine[3]);\n reportToAdd.setCritIssues(numCriticalIssues);\n\n Integer numNonCriticalIssues = Integer.parseInt(eachDetailOfReportLine[4]);\n reportToAdd.setNonCritIssues(numNonCriticalIssues);\n\n try {\n long daysSinceOccurrence = reportToAdd.getDaysSinceOccurrence();\n if (daysSinceOccurrence <= 365) {\n restaurant.addTotalCritViolations(numCriticalIssues);\n }\n } catch (ParseException e) {\n// e.printStackTrace();\n }\n\n // if there is any violation, then make a list of them\n // using processViolations method.\n // and set the list as restaurant's violation list\n if (eachDetailOfReportLine.length > 5) {\n\n List<Violation> violationsOfOneInspection =\n processViolations(eachDetailOfReportLine[5]);\n reportToAdd.setViolations(violationsOfOneInspection);\n } else {\n List<Violation> violationsOfOneInspection =\n processViolations(\"\");\n reportToAdd.setViolations(violationsOfOneInspection);\n }\n if (eachDetailOfReportLine.length > 6) {\n reportToAdd.setHazardLevel(eachDetailOfReportLine[6]);\n } else {\n reportToAdd.setHazardLevel(\"Low\");\n }\n\n restaurant.addReport(reportToAdd);\n }\n } catch (IOException e) {\n// e.printStackTrace();\n } catch (ParseException e) {\n// e.printStackTrace();\n }\n\n // sort alphabetically, using overridden compareTo\n for (int i = 0; i < restaurants.size(); i++) {\n Collections.sort(restaurants.get(i).getReportsList());\n }\n }", "public static void generateReport() {\n PrintImpl printer = new PrintImpl(realtorLogImpl, propertyLogImpl);\n printer.generateReport(REQUESTS_FILE);\n }", "public void getReportManually() {\n File reportDir = new File(KOOM.getInstance().getReportDir());\n for (File report : reportDir.listFiles()) {\n //Upload the report or do something else.\n }\n }", "public void addDailyReport(GregorianCalendar date, LinkedList<Reading> readings){\r\n LinkedList<Double> loRainfall = new LinkedList<>();\r\n LinkedList<Double> loTemp = new LinkedList<>();\r\n for(Reading read : readings)\r\n loRainfall.add(read.getRainfall());\r\n for(Reading read : readings)\r\n loTemp.add(read.getTemp());\r\n dailyReports.add(new DailyWeatherReport(date, loTemp, loRainfall));\r\n }", "@Override\n\tpublic void report() throws Exception {\n\t\t\n\t}", "void generateMgiCrisprAlleleReport();", "@Test\n\tpublic void generateTotalsReport(){\n\t\t\t\tWebDriver driver = new FirefoxDriver();\n\t\t\t\t// Alternatively the same thing can be done like this\n\t\t // driver.get(\"http://www.google.com\");\n\t\t\t\tdriver.navigate().to(determineUrl());\n\t\t\t\t// Find the text input element by its name\n\t\t\t\tWebElement user_name = driver.findElement(By.id(\"user_email\"));\n\t\t\t\tuser_name.sendKeys(user);\n\t\t\t\t\n\t\t\t\tWebElement password = driver.findElement(By.id(\"user_password\"));\n\t\t\t\tpassword.sendKeys(password_login);\n\t\t\t\tpassword.submit();\n\t\t\t\t\n\t\t\t\tWebElement select_venue = driver.findElement(By.id(\"change_venue\"));\n\t\t\t\tselect_venue.sendKeys(venue);\n\t\t\t\tselect_venue.submit();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tWebElement report = driver.findElement(By.linkText(\"Reporting\"));\n\t\t\t\treport.click();\n\t\t\t\t\n\t\t\t\tWebElement select_report = driver.findElement(By.id(\"report_type_chooser\"));\n\t\t\t\tselect_report.sendKeys(\"Totals Report\");\n\t\t\t\tWebElement select_event = driver.findElement(By.id(\"report_event\"));\n\t\t\t\tselect_event.sendKeys(event);\n\t\t\t\tselect_event.submit();\n\t\t\t\tdriver.close();\n\t\t\n\t}", "public Report() {\n\t\tsuper();\n\t}", "private String manualAnalysis(HttpParam reqs) throws Exception {\n\n Invoice invoice = OcrHandler.getInstance().getInvoice();\n String field = reqs.getParam(\"field\");\n\n if (field.equals(\"date\")) {\n String date = reqs.getParam(\"date\").trim().equals(\"\") ? Invoice.EMPTY : reqs.getParam(\"date\").trim();\n invoice.setDate(date);\n } else if (field.equals(\"ref\")) {\n String id = reqs.getParam(\"id\").trim().equals(\"\") ? Invoice.EMPTY : reqs.getParam(\"id\").trim();\n invoice.setRef(id);\n } else {\n Double value = 0.0;\n if (field.equals(\"subtotal\")) {\n value = FormatHandler.getInstance().extractAmount(reqs.getParam(\"subtotal\"));\n checkValue(value);\n invoice.setSubtotal(value);\n } else if (field.equals(\"vatRate\")) {\n value = FormatHandler.getInstance().extractAmount(reqs.getParam(\"vatRate\"));\n checkValue(value);\n if (value < 0) {\n return \"The VAT rate cannot be negative!\";\n }\n invoice.setVATrate(value);\n } else if (field.equals(\"vat\")) {\n value = FormatHandler.getInstance().extractAmount(reqs.getParam(\"vat\"));\n checkValue(value);\n invoice.setVAT(value);\n } else if (field.equals(\"total\")) {\n value = FormatHandler.getInstance().extractAmount(reqs.getParam(\"total\"));\n checkValue(value);\n invoice.setTotal(value);\n }\n if ((double) value != 0.0) {\n invoice.autoCompleteManualAnalysis();\n }\n }\n return null;\n }", "public void userAppointmentsReport() {\n reportLabel.setText(\"\");\n reportLabel1.setText(\"\");\n reportLabel2.setText(\"\");\n reportLabel3.setText(\"\");\n reportsList = DBReports.getUserAppointments();\n System.out.println(reportsList.toArray().length);\n StringBuilder sb = new StringBuilder();\n sb.append(\"Appointments Added By User Report:\" + \"\\n\");\n\n reportsList.forEach(r -> sb.append(\"\\n\" + r.getUserName().toUpperCase() + \"\\n\" +\n r.getAppointmentCount() + \" appointments scheduled for \" + r.getCustomerCount() + \" customers\\n\"));\n reportLabel.setText(sb.toString());\n }", "void updateReport(AllTablesReportDelta delta);", "public static void reduceReportToOurNeeds(JSONObject report) \n\t{\n\t\tJSONObject analysis = report.getJSONObject(\"analysis\");\n\t\t\n\t\tremoveGeneralElements(analysis.getJSONObject(\"general\"));\n\t\tremoveRuntimeElements(analysis.getJSONObject(\"runtime\"));\n\t\tanalysis.remove(\"hybridanalysis\");\n\t\tremoveFinalElements(analysis.getJSONObject(\"final\"));\n\t}", "@LogMethod\r\n private void publishData()\r\n {\r\n log(\"Prepare visit map to check PTID counts in study navigator.\");\r\n navigateToFolder(getProjectName(), TEST_ASSAY_FLDR_STUDY1);\r\n _studyHelper.goToManageVisits().goToImportVisitMap();\r\n setFormElement(Locator.name(\"content\"),\r\n \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n\" +\r\n \"<visitMap xmlns=\\\"http://labkey.org/study/xml\\\">\\n\" +\r\n \" <visit label=\\\"Test Visit\\\" typeCode=\\\"X\\\" sequenceNum=\\\"301.0\\\" maxSequenceNum=\\\"302.0\\\"/>\\n\" +\r\n \"</visitMap>\");\r\n clickButton(\"Import\");\r\n\r\n log(\"Publishing the data as the PI\");\r\n\r\n //impersonate the PI\r\n impersonate(TEST_ASSAY_USR_PI1);\r\n navigateToFolder(getProjectName(), TEST_ASSAY_FLDR_LAB1);\r\n clickAndWait(Locator.linkWithText(TEST_ASSAY));\r\n clickAndWait(Locator.linkWithText(\"view results\"));\r\n\r\n //select all the data rows and click publish\r\n DataRegionTable table = new DataRegionTable(\"Data\", this);\r\n table.checkAllOnPage();\r\n table.clickHeaderButton(\"Copy to Study\");\r\n\r\n //the target study selected before was Study2, but the PI is not an editor there\r\n //so ensure that system has correctly caught this fact and now asks the PI to\r\n //select a different study, and lists only those studies in which the PI is\r\n //an editor\r\n\r\n //ensure warning\r\n assertTextPresent(\"WARNING: You do not have permissions to copy to one or more of the selected run's associated studies.\");\r\n\r\n //ensure that Study2 and Study 3 are not available in the target study drop down\r\n assertElementNotPresent(Locator.xpath(\"//select[@name='targetStudy']/option[.='\" +\r\n getTargetStudyOptionText(TEST_ASSAY_FLDR_STUDY2) + \"']\"));\r\n assertElementNotPresent(Locator.xpath(\"//select[@name='targetStudy']/option[.='\" +\r\n getTargetStudyOptionText(TEST_ASSAY_FLDR_STUDY3) + \"']\"));\r\n\r\n //Study1 is the only one left, so it should be there and already be selected\r\n assertElementPresent(Locator.xpath(\"//select[@name='targetStudy']/option[.='\" +\r\n getTargetStudyOptionText(TEST_ASSAY_FLDR_STUDY1) + \"']\"));\r\n\r\n // Make sure the selected study is Study1\r\n selectOptionByText(Locator.xpath(\"//select[@name='targetStudy']\"), getTargetStudyOptionText(TEST_ASSAY_FLDR_STUDY1));\r\n\r\n clickButton(\"Next\");\r\n assertTextPresent(\"Copy to \" + TEST_ASSAY_FLDR_STUDY1 + \" Study: Verify Results\");\r\n\r\n setFormElement(Locator.name(\"visitId\"), \"301.5\");\r\n clickButton(\"Copy to Study\");\r\n\r\n log(\"Verifying that the data was published\");\r\n _customizeViewsHelper.openCustomizeViewPanel();\r\n _customizeViewsHelper.addColumn(\"QCState\", \"QC State\");\r\n _customizeViewsHelper.applyCustomView();\r\n assertTextPresent(\r\n \"Pending Review\",\r\n TEST_RUN1_COMMENTS,\r\n \"2000-01-01\");\r\n clickTab(\"Overview\");\r\n clickAndWait(Locator.linkWithText(\"Study Navigator\"));\r\n\r\n log(\"Test participant counts and row counts in study overview\");\r\n String[] row2 = new String[]{TEST_ASSAY, \"8\", \"1\", \"1\", \"1\", \"1\", \"1\", \"1\", \"2\"};\r\n assertTableRowsEqual(\"studyOverview\", 1, new String[][]{row2});\r\n // Manually click the checkbox -- normal checkCheckbox() method doesn't seem to work for checkbox that reloads using onchange event\r\n clickAndWait(Locator.checkboxByNameAndValue(\"visitStatistic\", \"RowCount\"));\r\n row2 = new String[]{TEST_ASSAY, \"8 / 9\", \"1 / 1\", \"1 / 1\", \"1 / 1\", \"1 / 1\", \"1 / 1\", \"1 / 1\", \"2 / 3\"};\r\n assertTableRowsEqual(\"studyOverview\", 1, new String[][]{row2});\r\n doAndWaitForPageToLoad(() -> uncheckCheckbox(Locator.checkboxByNameAndValue(\"visitStatistic\", \"ParticipantCount\")));\r\n row2 = new String[]{TEST_ASSAY, \"9\", \"1\", \"1\", \"1\", \"1\", \"1\", \"1\", \"3\"};\r\n assertTableRowsEqual(\"studyOverview\", 1, new String[][]{row2});\r\n\r\n clickAndWait(Locator.linkWithText(\"9\"));\r\n\r\n assertElementPresent(Locator.linkWithText(\"999320885\"), 1);\r\n assertElementPresent(Locator.linkWithText(\"999320885\"), 1);\r\n assertTextPresent(\r\n \"301.0\",\r\n \"9.0\",\r\n \"8.0\",\r\n TEST_RUN1_COMMENTS,\r\n TEST_RUN2_COMMENTS,\r\n TEST_RUN1,\r\n TEST_RUN2,\r\n \"2000-06-06\",\r\n TEST_ASSAY_RUN_PROP1,\r\n \"18\");\r\n\r\n // test recall\r\n navigateToFolder(getProjectName(), TEST_ASSAY_FLDR_LAB1);\r\n clickAndWait(Locator.linkWithText(TEST_ASSAY));\r\n waitAndClickAndWait(Locator.linkWithText(\"view copy-to-study history\"));\r\n\r\n // Set a filter so that we know we're recalling SecondRun\r\n DataRegionTable region = new DataRegionTable(\"query\", this);\r\n region.setFilter(\"Comment\", \"Starts With\", \"3 row(s) were copied to a study from the assay\");\r\n doAndWaitForPageToLoad(() -> region.detailsLink(region.getRowIndex(\"Assay/Protocol\", TEST_ASSAY)).click());\r\n\r\n DataRegionTable copyStudy = new DataRegionTable(\"Dataset\", this);\r\n copyStudy.checkAll();\r\n doAndWaitForPageToLoad(() ->\r\n {\r\n copyStudy.clickHeaderButton(\"Recall Rows\");\r\n acceptAlert();\r\n });\r\n assertTextPresent(\"row(s) were recalled to the assay: \" + TEST_ASSAY);\r\n\r\n // Set a filter so that we know we're looking at the copy event for SecondRun again\r\n region.setFilter(\"Comment\", \"Starts With\", \"3 row(s) were copied to a study from the assay\");\r\n\r\n // verify audit entry was adjusted\r\n doAndWaitForPageToLoad(() -> region.detailsLink(region.getRowIndex(\"Assay/Protocol\", TEST_ASSAY)).click());\r\n assertTextPresent(\"All rows that were previously copied in this event have been recalled\");\r\n\r\n stopImpersonating();\r\n }", "public void aggregateResults()\n\t{\n\t\ttry {\n\t\t\tAggregateableEvaluation aggContNaive = new AggregateableEvaluation(this.evalNaiveBayesList.get(0));\n\t\t\tAggregateableEvaluation aggContSMO = new AggregateableEvaluation(this.evalSMOList.get(0));\n\t\t\tAggregateableEvaluation aggDonaNaive = new AggregateableEvaluation(this.evalNaiveBayesList.get(15));\n\t\t\tAggregateableEvaluation aggDonaSMO = new AggregateableEvaluation(this.evalSMOList.get(15));\n\t\t\tAggregateableEvaluation aggOffiNaive = new AggregateableEvaluation(this.evalNaiveBayesList.get(30));\n\t\t\tAggregateableEvaluation aggOffiSMO = new AggregateableEvaluation(this.evalSMOList.get(30));\n\t\t\tAggregateableEvaluation aggAdviNaive = new AggregateableEvaluation(this.evalNaiveBayesList.get(45));\n\t\t\tAggregateableEvaluation aggAdviSMO = new AggregateableEvaluation(this.evalSMOList.get(45));\n\t\t\tAggregateableEvaluation aggMultNaive = new AggregateableEvaluation(this.evalNaiveBayesList.get(60));\n\t\t\tAggregateableEvaluation aggMultSMO = new AggregateableEvaluation(this.evalSMOList.get(60));\n\t\t\tAggregateableEvaluation aggGoodNaive = new AggregateableEvaluation(this.evalNaiveBayesList.get(75));\n\t\t\tAggregateableEvaluation aggGoodSMO = new AggregateableEvaluation(this.evalSMOList.get(75));\n\t\t\t\n\n\t\t\tfor (int i = 1; i < 15; i++)\n\t\t\t{\n\t\t\t\taggContNaive.aggregate(this.evalNaiveBayesList.get(i));\n\t\t\t\taggContSMO.aggregate(this.evalSMOList.get(i));\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tfor (int i = 16; i < 30; i++)\n\t\t\t{\n\t\t\t\taggDonaNaive.aggregate(this.evalNaiveBayesList.get(i));\n\t\t\t\taggDonaSMO.aggregate(this.evalSMOList.get(i));\t\t\t\t\n\t\t\t}\n\n\t\t\tfor (int i = 31; i < 45; i++)\n\t\t\t{\n\t\t\t\taggOffiNaive.aggregate(this.evalNaiveBayesList.get(i));\n\t\t\t\taggOffiSMO.aggregate(this.evalSMOList.get(i));\t\t\t\t\n\t\t\t}\n\n\t\t\tfor (int i = 46; i < 60; i++)\n\t\t\t{\n\t\t\t\taggAdviNaive.aggregate(this.evalNaiveBayesList.get(i));\n\t\t\t\taggAdviSMO.aggregate(this.evalSMOList.get(i));\n\t\t\t}\n\n\t\t\tfor (int i = 61; i < 75; i++)\n\t\t\t{\n\t\t\t\taggMultNaive.aggregate(this.evalNaiveBayesList.get(i));\n\t\t\t\taggMultSMO.aggregate(this.evalSMOList.get(i));\n\t\t\t}\n\n\t\t\tfor (int i = 76; i < 90; i++)\n\t\t\t{\n\t\t\t\taggGoodNaive.aggregate(this.evalNaiveBayesList.get(i));\n\t\t\t\taggGoodSMO.aggregate(this.evalSMOList.get(i));\n\t\t\t}\n\n\t\t\tfor (int a = 0; a < 6; a++)\n\t\t\t{\n\t\t\t\tString aggregateText;\n\t\t\t\tswitch (a)\n\t\t\t\t{\n\t\t\t\tcase 0: aggregateText = \"ContinuingNewsAggregateResults.txt\"; break;\n\t\t\t\tcase 1: aggregateText = \"DonationsAggregateResults.txt\"; break;\n\t\t\t\tcase 2: aggregateText = \"OfficialAggregateResults.txt\"; break;\n\t\t\t\tcase 3: aggregateText = \"AdviceAggregateResults.txt\"; break;\n\t\t\t\tcase 4: aggregateText = \"MultimediaAggregateResults.txt\"; break;\n\t\t\t\tcase 5: aggregateText = \"GoodsAggregateResults.txt\"; break;\n\t\t\t\tdefault: aggregateText = \"CompleteAggregateResults.txt\";\n\t\t\t\t}\n\n\t\t\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(aggregateText));\n\t\t\t\tbw.write(\"=== Summary of Naive Bayes ===\");\n\n\t\t\t\tswitch (a)\n\t\t\t\t{\n\t\t\t\tcase 0:\tbw.write(aggContNaive.toSummaryString());\n\t\t\t\tbw.write(aggContNaive.toClassDetailsString());\n\t\t\t\tbw.write(aggContNaive.toMatrixString()); break;\n\t\t\t\tcase 1:\tbw.write(aggDonaNaive.toSummaryString());\n\t\t\t\tbw.write(aggDonaNaive.toClassDetailsString());\n\t\t\t\tbw.write(aggDonaNaive.toMatrixString()); break;\n\t\t\t\tcase 2:\tbw.write(aggOffiNaive.toSummaryString());\n\t\t\t\tbw.write(aggOffiNaive.toClassDetailsString());\n\t\t\t\tbw.write(aggOffiNaive.toMatrixString()); break;\n\t\t\t\tcase 3:\tbw.write(aggAdviNaive.toSummaryString());\n\t\t\t\tbw.write(aggAdviNaive.toClassDetailsString());\n\t\t\t\tbw.write(aggAdviNaive.toMatrixString()); break;\n\t\t\t\tcase 4:\tbw.write(aggMultNaive.toSummaryString());\n\t\t\t\tbw.write(aggMultNaive.toClassDetailsString());\n\t\t\t\tbw.write(aggMultNaive.toMatrixString()); break;\n\t\t\t\tdefault:\tbw.write(aggGoodNaive.toSummaryString());\n\t\t\t\tbw.write(aggGoodNaive.toClassDetailsString());\n\t\t\t\tbw.write(aggGoodNaive.toMatrixString()); \n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbw.write(\"=== Summary of SMO ===\");\n\n\t\t\t\tswitch (a)\n\t\t\t\t{\n\t\t\t\tcase 0:\tbw.write(aggContSMO.toSummaryString());\n\t\t\t\tbw.write(aggContSMO.toClassDetailsString());\n\t\t\t\tbw.write(aggContSMO.toMatrixString()); break;\n\t\t\t\tcase 1:\tbw.write(aggDonaSMO.toSummaryString());\n\t\t\t\tbw.write(aggDonaSMO.toClassDetailsString());\n\t\t\t\tbw.write(aggDonaSMO.toMatrixString()); break;\n\t\t\t\tcase 2:\tbw.write(aggOffiSMO.toSummaryString());\n\t\t\t\tbw.write(aggOffiSMO.toClassDetailsString());\n\t\t\t\tbw.write(aggOffiSMO.toMatrixString()); break;\n\t\t\t\tcase 3:\tbw.write(aggAdviSMO.toSummaryString());\n\t\t\t\tbw.write(aggAdviSMO.toClassDetailsString());\n\t\t\t\tbw.write(aggAdviSMO.toMatrixString()); break;\n\t\t\t\tcase 4:\tbw.write(aggMultSMO.toSummaryString());\n\t\t\t\tbw.write(aggMultSMO.toClassDetailsString());\n\t\t\t\tbw.write(aggMultSMO.toMatrixString()); break;\n\t\t\t\tdefault:\tbw.write(aggGoodSMO.toSummaryString());\n\t\t\t\tbw.write(aggGoodSMO.toClassDetailsString());\n\t\t\t\tbw.write(aggGoodSMO.toMatrixString()); \t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbw.close();\n\t\t\t}\n\n\n\t\t} catch (Exception e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "protected Report()\n {\n super();\n }", "public void clearAllResultsAndSummaries() {\r\n for (WjrMethodItem methodItem : methodItems.values()) {\r\n methodItem.clearResult();\r\n }\r\n for (WjrClassItem classItem : classItems.values()) {\r\n classItem.clearSummary();\r\n }\r\n root.clearSummary();\r\n }", "public static JasperReportBuilder generateReport(ExportData metaData,HttpServletRequest request){\n session = request.getSession(false);\n report = report(); // Creer le rapport\n \n //Logo\n// logoImg = cmp.image(inImg).setStyle(DynamicReports.stl.style().setHorizontalAlignment(HorizontalAlignment.LEFT)); \n //logoImg.setDimension(80,80); \n \n //Definit le style des colonnes d'entàte\n report.setColumnTitleStyle(getHeaderStyle(metaData));\n \n \n \n LinkedHashMap <String,String> criteria = metaData.getCriteria(); \n //Ajout la date d'àdition au critere d'impression\n String valDateProperty = getDateTxt(metaData.getLang()) ;\n String keyDateProperty = \"\" ;\n if ( session.getAttribute(\"activedLocale\").equals(\"fr\") ) {\n keyDateProperty = \"Edité le \" ;\n }\n else {\n keyDateProperty = \"Printed on \" ;\n }\n criteria.put(keyDateProperty,valDateProperty);\n \n StyleBuilder titleStyle = stl.style(boldStyle).setFontSize(16).setForegroundColor(new Color(0, 0, 0)).setHorizontalAlignment(HorizontalAlignment.RIGHT).setRightIndent(20);\n ComponentBuilder<?, ?> logoComponent = cmp.horizontalList(\n //cmp.image(Templates.class.getResource(\"/logopalm.png\")).setFixedDimension(150, 50).setStyle(stl.style().setLeftIndent(20)),\n cmp.verticalList(\n cmp.text(metaData.getTitle()).setStyle(titleStyle)\n )\n ).newRow()\n .add(cmp.horizontalList().add(cmp.hListCell(createCriteriaComponent(criteria,metaData)).heightFixedOnTop()))\n .newRow(); \n \n report.noData(logoComponent, cmp.text(\"Aucun enregistrement trouvà\").setStyle(stl.style().setHorizontalAlignment(HorizontalAlignment.CENTER).setTopPadding(30)));\n\n \n \n lblStyle = stl.style(Templates.columnStyle).setForegroundColor(new Color(60, 91, 31)); // Couleur du text \n colStyle = stl.style(Templates.columnStyle).setHorizontalAlignment(HorizontalAlignment.CENTER);\n \n groupStyle = stl.style().setForegroundColor(new Color(60, 91, 31)) \n .setBold(Boolean.TRUE)\n .setPadding(5)\n .setFontSize(13)\n .setHorizontalAlignment(HorizontalAlignment.CENTER); \n \n\n \n if(metaData.getTitle().equals(ITitle.PARCEL)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.PARCEL_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.PLANTING)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.PLANTING_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.SECTOR)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.SECTOR_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.BLOCK)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.BLOCK_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.ATTACK_PHYTO)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.TREATMENT)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.TREATMENT_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.HARVEST)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.HARVEST_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.SERVICING)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.SERVICING_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.EVENT_PLANTING)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.EVENT_PLANTING_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.FERTILIZATION)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.FERTILIZATION_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.CONTROL_PHYTO)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.CONTROL_PHYTO_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.EVENT_FOLDING)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.EVENT_FOLDING_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.MORTALITY)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.MORTALITY_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.HARVESTING)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.HARVESTING_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.BUDGET)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.REPLACEMENT)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.REPLACEMENT_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.METEOROLOGY)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.METEOROLOGY_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.PLANTING_MATERIAL)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.PLANTING_MATERIAL_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.PLUVIOMETRY)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.PLUVIOMETRY_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.ETP)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.ETP_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.HYGROMETRY)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.HYGROMETRY_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.TEMPERATURE)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.TEMPERATURE_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.INSULATION)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.INSULATION_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.WORK)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.WORK_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }\n \n \n drColumns = new HashMap<String, TextColumnBuilder>(); \n groups = new ArrayList<String>();\n subtotals = new ArrayList<String>();\n \n //Definit la liste des colonnes du rapport\n ExportGenerator.getColumns(metaData); \n //Definit la liste des sous-totaux du rapport\n ExportGenerator.getSubTotals(metaData);\n \n \n //Genration des sous totaux\n for (String group : groups) {\n ColumnGroupBuilder group2 = grp.group(drColumns.get(group));\n report.groupBy(group2);\n for (String subtotal : subtotals) {\n report.subtotalsAtGroupFooter(group2,sbt.sum(drColumns.get(subtotal)));\n }\n }\n\n for (String subtotal : subtotals) {\n report.subtotalsAtSummary(sbt.sum(drColumns.get(subtotal))); \n }\n \n /*if(ExportGenerator.getColumnByNameField(\"plantingName\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL \"), ExportGenerator.getColumnByNameField(\"plantingName\"), Calculation.NOTHING));\n }*//*else if(ExportGenerator.getColumnByNameField(\"invoiceCode\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL GENERAL \"), ExportGenerator.getColumnByNameField(\"invoiceCode\"), Calculation.NOTHING));\n }else if(ExportGenerator.getColumnByNameField(\"planterCode\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL\"), ExportGenerator.getColumnByNameField(\"planterCode\"), Calculation.NOTHING));\n }else if(ExportGenerator.getColumnByNameField(\"transportTicket\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL GENERAL \"), ExportGenerator.getColumnByNameField(\"transportTicket\"), Calculation.NOTHING));\n }else if(ExportGenerator.getColumnByNameField(\"deliveryDate\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL GENERAL \"), ExportGenerator.getColumnByNameField(\"deliveryDate\"), Calculation.NOTHING));\n }\n else if(ExportGenerator.getColumnByNameField(\"arroundPlantingTicketNumber\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL GENERAL \"), ExportGenerator.getColumnByNameField(\"arroundPlantingTicketNumber\"), Calculation.NOTHING));\n }\n else if(ExportGenerator.getColumnByNameField(\"planterNumber\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL GENERAL \"), ExportGenerator.getColumnByNameField(\"planterNumber\"), Calculation.NOTHING));\n }else if(ExportGenerator.getColumnByNameField(\"startPaymentDate\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL GENERAL \"), ExportGenerator.getColumnByNameField(\"startPaymentDate\"), Calculation.NOTHING));\n }else if(ExportGenerator.getColumnByNameField(\"sectorCode\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL GENERAL \"), ExportGenerator.getColumnByNameField(\"sectorCode\"), Calculation.NOTHING));\n }else if(ExportGenerator.getColumnByNameField(\"month\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL \"), ExportGenerator.getColumnByNameField(\"month\"), Calculation.NOTHING));\n }*/\n \n\n \n \n //Genere la source de donnàes du rapport\n report.setDataSource(metaData.getData());\n \n report.highlightDetailEvenRows(); \n \n \n // Definition de l'entete : valable uniquement pour la 1ere page\n HorizontalListBuilder hlb= null;\n \n hlb = cmp.horizontalList().add(\n cmp.hListCell(createCriteriaComponent(criteria,metaData)).heightFixedOnTop()\n );\n\n \n report.title(\n createCustomTitleComponent(metaData.getTitle()), // Titre\n hlb,// Liste Horizontal des Critàres \n cmp.verticalGap(12) // Marge de 12 px entre chaque critàre\n ); \n \n \n \n report.setPageMargin(DynamicReports.margin().setLeft(15).setTop(30).setRight(15).setBottom(30));\n report.setPageFormat(PageType.A3, PageOrientation.LANDSCAPE);\n report.pageFooter(DynamicReports.cmp.pageXslashY());\n return report;\n \n }", "public void processAnalyze() throws ExtendedException {\n\t\tif (hlddFile == null) {\n\t\t\tthrow new ExtendedException(\"HLDD model file is missing\", ExtendedException.MISSING_FILE_TEXT);\n\t\t}\n\n\t\tint patternCount = applicationForm.getPatternCountForCoverage();\n\t\tboolean isRandom = applicationForm.isRandomCov();\n\t\tboolean isDoMeasureCoverage = applicationForm.isDoAnalyzeCoverage();\n\t\tString directive = applicationForm.getCoverageAnalyzerDirective();\n\n\t\t/* Collect execution string */\n\t\tList<String> commandList = new ArrayList<String>(5);\n\t\tcommandList.add(ApplicationForm.LIB_DIR + (Platform.isWindows() ? \"hlddsim.exe\" : \"hlddsim\"));\n\t\tif (isDoMeasureCoverage) {\n\t\t\tcommandList.add(\"-coverage\");\n\t\t\tcommandList.add(directive);\n\t\t}\n\t\tif (isRandom) {\n\t\t\tcommandList.add(\"-random\");\n\t\t\tcommandList.add(\"\" + patternCount);\n\t\t}\n\t\tcommandList.add(hlddFile.getAbsolutePath().replace(\".agm\", \"\"));\n\n\t\t/* Execute command */\n\t\tUIWithWorker.runUIWithWorker(\n\t\t\t\tnew CoverageAnalyzingUI(applicationForm.getFrame()),\n\t\t\t\tnew CoverageAnalyzingWorker(\n\t\t\t\t\t\tcommandList,\n\t\t\t\t\t\tSystem.err,\n\t\t\t\t\t\tthis,\n\t\t\t\t\t\tconsoleWriter\n\t\t\t\t)\n\t\t);\n\n\t\t/* showVHDLCoverage() is invoked in CoverageAnalyzingWorker after it (\"assert\") has completed its work */\n\t}", "public BeansReportWrittenExamination() {\n\t\tsuper();\n\t}", "private void fillData()\r\n\t{\n\t\tif(mManager.getLoader(LOADER_LOG) != null && !mManager.getLoader(LOADER_LOG).isReset())\r\n\t\t{\r\n\t\t\tmManager.restartLoader(LOADER_LOG, null, this);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tmManager.initLoader(LOADER_LOG, null, this);\r\n\t\t}\r\n\t\t\r\n\t\tif(selectMode != WorkoutMode.Tactical)\r\n\t\t{\r\n\t\t\tif(mManager.getLoader(LOADER_LOG_CARDIO) != null && !mManager.getLoader(LOADER_LOG_CARDIO).isReset())\r\n\t\t\t{\r\n\t\t\t\tmManager.restartLoader(LOADER_LOG_CARDIO, null, this);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tmManager.initLoader(LOADER_LOG_CARDIO, null, this);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tboolean ok = true;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tif(selectMode == WorkoutMode.Tactical || this.dayMode ==WorkoutMode.Tactical)\r\n\t\t\t{\r\n\t\t\t\tlogAdapter = new LogAdapter(this, null, // mGroupCursor,\r\n\t\t\t\t\t\tR.layout.log_ex_name,\r\n\t\t\t\t\t\tnew String[]{DBAdapter.COL_TITLE},\r\n\t\t\t\t\t\tnew int[]{R.id.ex_name},\r\n\t\t\t\t\t\tR.layout.log_tacktical_details,\t\t\t\t\r\n\t\t\t\t\t\tnew String[]{DBAdapter.COL_TITLE, DBAdapter.COL_LAPS},\r\n\t\t\t\t\t\tnew int[]{R.id.txt_name,R.id.txt_laps});\t\r\n\t\t\t\t\r\n\t\t\t\t//Hide cardio\r\n\t\t\t\thideCardio();\r\n\t\t\t}\r\n\t\t\telse //weigh + cardio, only weight; only cardio; \r\n\t\t\t{\t\t\t\t\r\n\t\t\t\tlogAdapter = new LogAdapter(this, null, // mGroupCursor,\r\n\t\t\t\t\t\tR.layout.log_ex_name,\r\n\t\t\t\t\t\tnew String[]{DBAdapter.COL_TITLE},\r\n\t\t\t\t\t\tnew int[]{R.id.ex_name},\r\n\t\t\t\t\t\tR.layout.log_ex_details,\t\t\t\t\r\n\t\t\t\t\t\tnew String[]{DBAdapter.COL_SET_NUM, DBAdapter.COL_REPS,DBAdapter.COL_WEIGHT,DBAdapter.COL_UNITS},\r\n\t\t\t\t\t\tnew int[]{R.id.txt_set,R.id.txt_reps,R.id.txt_wt,R.id.txt_units});\r\n\t\t\t\t\r\n\t\t\t\tcardioAdapter = new SimpleCursorAdapter(this, R.layout.log_item_cardio,null,\r\n\t\t\t\t\t\tnew String[]{ DBAdapter.COL_DISTANCE, DBAdapter.COL_UNITS, DBAdapter.COL_EQUIPMENT,DBAdapter.COL_TIME},\r\n\t\t\t\t\t\tnew int[]{R.id.txt_cardio_dist,R.id.txt_cardio_units,R.id.img_cardio,R.id.txt_cardio_time}, \r\n\t\t\t\t\t\tCursorAdapter.FLAG_REGISTER_CONTENT_OBSERVER);\r\n\t\t\t\t\r\n\t\t\t\tListView cardioList = (ListView)findViewById(R.id.list_log_cardio);\r\n\t\t\t\tcardioList.setAdapter(cardioAdapter);\t\t\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tcatch(Exception ex)\r\n\t\t{\r\n\t\t\tex.printStackTrace();\r\n\t\t\tok = false;\r\n\t\t}\t\t\r\n\t\t\r\n\t\tif(ok){\r\n\t\t\tsetListAdapter(logAdapter);\r\n//\t\t\tfinal int cnt =logAdapter.getGroupCount();\r\n//\t\t\tfor(int i=0; i < cnt; i++)\r\n//\t\t\t{\r\n//\t\t\t\tlist.expandGroup(i);\r\n//\t\t\t}\r\n\t\t}\r\n\t\t//getExpandableListView().setGroupIndicator(getResources().getDrawable(R.drawable.group_selector));\r\n\t}", "public void onReportClick(){\r\n\t\tmyView.advanceToReport();\r\n\t}", "private void contactReport() {\n reportText.appendText(\"Report of appointments per Contact\\n\\n\");\n for (Contact contact: Data.getContacts()) {\n\n reportText.appendText(\"\\n\\nContact:\" + contact.getContactName() + \"\\n\\n\");\n for (Appointment appointment: Data.getAppointments()) {\n if (appointment.getContact() == contact.getContactID()) {\n reportText.appendText(\"Appointment ID: \" + appointment.getId() +\n \" \\tTitle: \" + appointment.getTitle() +\n \"\\tType: \" + appointment.getType() +\n \"\\tDescription: \" + appointment.getDescription() +\n \"\\tStart: \" + appointment.getStart() +\n \"\\tEnd: \" + appointment.getEnd() +\n \"\\tCustomer: \" + appointment.getCustomer() + \"\\n\");\n }\n System.out.println(\"\\n\\n\");\n }\n }\n }", "public static void CreateReport() {\n\t\tString fileName = new SimpleDateFormat(\"'Rest_Country_Report_'YYYYMMddHHmm'.html'\").format(new Date());\n\t\tString path = \"Report/\" + fileName;\n\t\treport = new ExtentReports(path);\n\t}", "@Override\n\t//Start, end, headache count, average severity, duration\n\tpublic String buildReport() {\n\t\tsetHeadacheInfo(); \n\t\tStringBuilder hsReport = new StringBuilder(); \n\t\thsReport.append(\"\\nReport Start Date: \"); \n\t\thsReport.append(getStartDate().toString() + \"\\n\"); \n\t\thsReport.append(\"Report End Date: \"); \n\t\thsReport.append(getEndDate().toString() + \"\\n\"); \n\t\thsReport.append(\"Headache Count: \"); \n\t\thsReport.append(getHeadacheList().size() + \"\\n\"); \n\t\thsReport.append(\"Average Severty: \"); \n\t\thsReport.append(getAverageSeverity() + \"\\n\"); \n\t\thsReport.append(\"Average Duration (hours): \"); \n\t\thsReport.append(getAverageDuration() + \"\\n\"); \n\t\treturn hsReport.toString(); \n\t}", "private void buildReport() throws IOException {\n try (InputStream template = Thread.currentThread().getContextClassLoader().getResourceAsStream(TEMPLATE_DIR + \"/\" + TEMPLATE_NAME)) {\n reportDoc = Jsoup.parse(template, null, \"\");\n Element diffReportContainer = reportDoc.select(\".diffReport\").first();\n Element diffResultTable = diffReportContainer.select(\".diffResult\").first().clone();\n\n diffReportContainer.empty();\n\n for (SimpleImmutableEntry<String, List<File>> diffResult : fileDiffResults) {\n diffReportContainer.appendChild(getDiffTable(diffResultTable, diffResult));\n }\n }\n }", "@VisibleForTesting\n void reportOnce() {\n additionalAttributes = additionalAttributesSupplier.get();\n if (additionalAttributes == null) {\n additionalAttributes = Collections.emptyMap();\n }\n\n metricRegistry.getGauges().forEach(this::reportGauge);\n\n metricRegistry.getCounters().forEach(this::reportCounter);\n\n metricRegistry.getMeters().forEach(this::reportMeter);\n\n metricRegistry.getHistograms().forEach(this::reportHistogram);\n\n metricRegistry.getTimers().forEach(this::reportTimer);\n }", "private Report(Modello _mod, TestSuite _ts) {\r\n\t\tmod = _mod;\r\n\t\tts = _ts;\r\n\t\tdiag = ts.getDiagnosi();\r\n\t\telencoProb1 = ts.getElencoProb1();\r\n\t\telencoProb2 = ts.getElencoProb2();\r\n\t\tdist = ts.getDistanze();\r\n\t}", "public void printInfo() {\n System.out.println(\"\\n\\n---------------------BASIC RESULTS-----------------------\\n\");\n System.out.println(\"Most positive article: \" + mostPositiveDoc + \"\\nwith positivity \" + mostPositive + \"\\n\");\n System.out.println(\"Most negative article: \" + mostNegativeDoc + \"\\nwith negativity \" + mostNegative + \"\\n\");\n if (biggestDifference >= 0) {\n System.out.println(\"Biggest difference: \" + biggestDifferenceDoc + \"\\nwith more positivity by \" + biggestDifference);\n } else {\n System.out.println(\"Biggest difference: \" + biggestDifferenceDoc + \"\\nwith more negativity by \" + Math.abs(biggestDifference));\n }\n \n System.out.println(\"\\nAverage positivity: \" + avgPositive);\n System.out.println(\"Average negativity: \" + avgNegative);\n System.out.println(\"\\n-----------------------------------------------------------\\n\");\n System.out.println(\"\\n---------------------ADVANCED RESULTS----------------------\");\n \n System.out.println(\"\\nAverage positivity for PUBLISHERS:\");\n for (String s : publisherOptimism.keySet()) {\n LinkedList<Double> positives = publisherOptimism.get(s);\n int size = positives.size();\n double total = 0;\n for (double d : positives) {\n total += d;\n }\n System.out.println(s + \", positivity = \" + total / size);\n }\n \n System.out.println(\"\\nAverage negativity for PUBLISHERS:\");\n for (String s : publisherPessimism.keySet()) {\n LinkedList<Double> negatives = publisherPessimism.get(s);\n int size = negatives.size();\n double total = 0;\n for (double d : negatives) {\n total += d;\n }\n System.out.println(s + \", negativity = \" + total / size);\n }\n \n System.out.println(\"\\nAverage positivity for REGIONS:\");\n for (String s : regionOptimism.keySet()) {\n LinkedList<Double> positives = regionOptimism.get(s);\n int size = positives.size();\n double total = 0;\n for (double d : positives) {\n total += d;\n }\n System.out.println(s + \", positivity = \" + total / size);\n }\n \n System.out.println(\"\\nAverage negativity for REGIONS:\");\n for (String s : regionPessimism.keySet()) {\n LinkedList<Double> negatives = regionPessimism.get(s);\n int size = negatives.size();\n double total = 0;\n for (double d : negatives) {\n total += d;\n }\n System.out.println(s + \", negativity = \" + total / size);\n }\n \n System.out.println(\"\\nAverage positivity for DATES:\");\n for (LocalDate s : dayOptimism.keySet()) {\n LinkedList<Double> positives = dayOptimism.get(s);\n int size = positives.size();\n double total = 0;\n for (double d : positives) {\n total += d;\n }\n System.out.println(s + \", positivity = \" + total / size);\n }\n \n System.out.println(\"\\nAverage negativity for DATES:\");\n for (LocalDate s : dayPessimism.keySet()) {\n LinkedList<Double> negatives = dayPessimism.get(s);\n int size = negatives.size();\n double total = 0;\n for (double d : negatives) {\n total += d;\n }\n System.out.println(s + \", negativity = \" + total / size);\n }\n \n System.out.println(\"\\nAverage positivity for WEEKDAYS:\");\n for (DayOfWeek s : weekdayOptimism.keySet()) {\n LinkedList<Double> positives = weekdayOptimism.get(s);\n int size = positives.size();\n double total = 0;\n for (double d : positives) {\n total += d;\n }\n System.out.println(s + \", positivity = \" + total / size);\n }\n \n System.out.println(\"\\nAverage negativity for WEEKDAYS:\");\n for (DayOfWeek s : weekdayPessimism.keySet()) {\n LinkedList<Double> negatives = weekdayPessimism.get(s);\n int size = negatives.size();\n double total = 0;\n for (double d : negatives) {\n total += d;\n }\n System.out.println(s + \", negativity = \" + total / size);\n }\n \n System.out.println(\"\\n-----------------------------------------------------------\\n\");\n \n }", "@Override\n public synchronized void buildIndex(){\n for(SlotData data : slotDataList){\n data.prepareReport();\n }\n }", "void outputReport(RandomAccessFile reportFile, boolean last) {\n\n String line1 = \"----+---------+----------+----------+---+----------+\" +\n \"----------+----------+----------+\" +\n \"---------------------------------------------+\";\n String line2 = \"----+---------+------------+----------+---------------------+\" +\n \"---------+----------+----------+--------------------+--------+\" +\n \"-----+-----+-----+\";\n\n if (dbg3) System.out.println(\"outputReport: station.getStationId() = *\" +\n station.getStationId(\"\") + \"*\");\n if (\"\".equals(station.getStationId(\"\"))) { // only done formats 01/02 -> survey data only\n\n //display the survey data }\n //ec.writeFileLine(reportFile, \"----+---------+----------+----------\" +\n // \"+---+----------+----------+----------+----------+----------\" +\n // \"------------------------------+\");\n ec.writeFileLine(reportFile, line1);\n ec.writeFileLine(reportFile, \"dup.|Survey |Platform | \" +\n \"| | | | | | \" +\n \" |\");\n ec.writeFileLine(reportFile, \"code|Id |Name |Expedition\" +\n \"|Ins|Proj Name |Area Name |Domain |Platform |Notes \" +\n \" |\");\n ec.writeFileLine(reportFile, line1);\n\n ec.writeFileLine(reportFile, surveyStatus + \" |\" + //j24\n ec.frm(survey.getSurveyId(\"\"),9) + \"|\" +\n ec.frm(survey.getPlanam(\"\"),10) + \"|\" +\n ec.frm(survey.getExpnam(\"\"),10) + \"|\" +\n ec.frm(survey.getInstitute(\"\"),03) + \"|\" +\n ec.frm(survey.getPrjnam(\"\"),10) + \"|\" +\n ec.frm(inventory.getAreaname(\"\"),10)+ \"|\" +\n ec.frm(inventory.getDomain(\"\"),10) + \"|\" +\n ec.frm(\" \",10) + \"|\" +\n //survey.getPlatfm() + \"|\" +\n ec.frm(survey.getNotes1(\"\"),45) + \"|\");\n\n // write to station file - keep place for actual output\n if (loadFlag) {\n try {\n stnFile.writeBytes(\"\");\n headerPos1 = stnFile.getFilePointer();\n ec.writeFileLine(stnFile, ec.frm(\" \",80));\n headerPos2 = stnFile.getFilePointer();\n ec.writeFileLine(stnFile, ec.frm(\" \",80));\n headerPos3 = stnFile.getFilePointer();\n ec.writeFileLine(stnFile, ec.frm(\" \",80));\n } catch (Exception e) {\n ec.processError(e, thisClass, \"outputReport\", \"Header Pos Error\");\n } // try-catch\n } // if (loadFlag)\n\n\n if (surveyLoaded) { // display details of loaded survey //j24\n // get the old inventory record\n MrnInventory tInventory[] =\n new MrnInventory(survey.getSurveyId()).get();\n\n ec.writeFileLine(reportFile, \"lod |\" +\n ec.frm(tSurvey[0].getSurveyId(\"\"),9) + \"|\" +\n ec.frm(tSurvey[0].getPlanam(\"\"),10) + \"|\" + //j24\n ec.frm(tSurvey[0].getExpnam(\"\"),10) + \"|\" + //j24\n ec.frm(tSurvey[0].getInstitute(\"\"),03) + \"|\" + //j24\n ec.frm(tSurvey[0].getPrjnam(\"\"),10) + \"|\" + //j24\n ec.frm(tInventory[0].getAreaname(\"\"),10) + \"|\" + //j24\n ec.frm(tInventory[0].getDomain(\"\"),10) + \"|\" + //j24\n ec.frm(\" \",10) + \"|\" +\n //tSurvey[0].getPlatfm() + \"|\" + //j24\n ec.frm(tSurvey[0].getNotes1(\"\"),45) + \"|\"); //j24\n } // if (survey_loaded)\n\n ec.writeFileLine(reportFile, line1);\n ec.writeFileLine(reportFile, \" \");\n\n ec.writeFileLine(reportFile, line2);\n ec.writeFileLine(reportFile, \"dup.| | | |\" +\n \" | | | |\" +\n \" | | Records |\");\n ec.writeFileLine(reportFile, \"code| Surv Id | Station Id | StnNam |\" +\n \" Date Time GMT | Latitude| Longitude| Subdes(s)|\" +\n \" Sample depth range | StnDep | Tot.| O.K.| Rej |\");\n ec.writeFileLine(reportFile, line2);\n } else { // if (\"\".equals(station.getStationId(\"\")))\n\n\n if (dbg) System.out.println(\"<br>outputReport: tStation.length = \" +\n tStation.length);\n\n int stationSampleOKCount = stationSampleCount - stationSampleRejectCount;\n ec.writeFileLine(reportFile, stationStatusLD + \" |\" + //j24\n ec.frm(\" \",9) + \"|\" +\n ec.frm(station.getStationId(),12) + \"|\" +\n ec.frm(station.getStnnam(),10) + \"| \" +\n //station.getDatum + \"| \" +\n ec.frm(startDateTime,20) + \"|\" +\n ec.frm(station.getLatitude(),9,5) + \"|\" +\n ec.frm(station.getLongitude(),10,5) + \"|\" +\n ec.frm(subdes,10) + \"|\" +\n ec.frm(depthMin + \" to \" + depthMax,20) + \"|\" +\n ec.frm(station.getStndep(),8,2) + \"|\" +\n ec.frm(stationSampleCount,5) + \"|\" +\n ec.frm(stationSampleOKCount,5) + \"|\" +\n ec.frm(stationSampleRejectCount,5) + \"|\");\n if (!loadFlag) {\n ec.writeFileLine(workFile, ec.frm(station.getStationId(),12) +\n ec.frm(stationSampleCount,5));\n } // if (!loadFlag)\n\n if (stationExists) { // || (!\"new\".equals(stationStatusLD))) {\n for (int i = 0; i < tStation.length; i++) {\n int tmpRecordCount = 0;\n if (dataType == CURRENTS) {\n tmpRecordCount = currentsRecordCountArray[i];\n } else if (dataType == SEDIMENT) {\n tmpRecordCount = sedphyRecordCountArray[i];\n } else if ((dataType == WATER) || (dataType == WATERWOD)) {\n tmpRecordCount = watphyRecordCountArray[i];\n } // if (dataType == CURRENTS)\n\n String subdesLocal = subdesArray[i][0];\n for (int j = 1; j < MAX_SUBDES; j++) {\n subdesLocal += (!\"\".equals(subdesArray[i][j]) ?\n \"/\"+subdesArray[i][j] : \"\");\n } // for int (j = 1; j < MAX_SUBDES; j++)\n if (stationExistsArray[i]) {\n ec.writeFileLine(reportFile, stationStatusDB[i] + \" |\" +\n ec.frm(tStation[i].getSurveyId(),9) + \"|\" +\n ec.frm(tStation[i].getStationId(),12) + \"|\" +\n ec.frm(tStation[i].getStnnam(\"\"),10) + \"| \" +\n //tStation[i].getDateStart(\"\"), \"| \",\n ec.frm(spldattimArray[i],20) + \"|\" +\n ec.frm(tStation[i].getLatitude(),9,5) + \"|\" +\n ec.frm(tStation[i].getLongitude(),10,5) + \"|\" +\n //ec.frm(subdesArray[i],5) + \"|\" +\n ec.frm(subdesLocal,10) + \"|\" +\n ec.frm(loadedDepthMin[i] + \" to \" + loadedDepthMax[i],20) + \"|\" +\n ec.frm(tStation[i].getStndep(),8,2) + \"|\" +\n ec.frm(tmpRecordCount,5) + \"| | |\");\n } // if (stationExistsArray[i])\n } // for (int i = 0; i < tStation.length; i++)\n } // if (stationExists || (!\"new\".equals(stationStatusDB))\n ec.writeFileLine(reportFile, \"\");\n\n // write to station file\n if (loadFlag) {\n ec.writeFileLine(stnFile, \"'\" +\n ec.frm(station.getStationId(\"\"),12) + \"' '\" +\n station.getDateStart(\"\").substring(0,10) + \"' \" +\n ec.frm(station.getLatitude(),11,5) + \" \" +\n ec.frm(station.getLongitude(),11,5) + \" \" +\n ec.frm(ec.nullToNines(station.getStndep(),9999.0f),10,2) + \" '\" +\n ec.frm(station.getStnnam(\"\"),10) + \"'\");\n } // if (loadFlag)\n\n\n if (last) {\n //ec.writeFileLine(reportFile, \"last\");\n\n int sampleOKCount = sampleCount - sampleRejectCount;\n //ec.writeFileLine(reportFile, \"----+------------+----------\" +\n // \"+---------------------+---------+----------+-----+---\" +\n // \"-----------------+--------+-----------------+\");\n ec.writeFileLine(reportFile, line2);\n ec.writeFileLine(reportFile, \" ^\"); //j24//\n ec.writeFileLine(reportFile, \" |\"); //j24//\n ec.writeFileLine(reportFile, \" +--new = new record\"); //j24//\n ec.writeFileLine(reportFile, \" dup = new record is a duplicate record\"); //j24//\n //ec.writeFileLine(reportFile, \" lod = existing record\"); //j24//\n ec.writeFileLine(reportFile, \" did = duplicate station-id - different SUBDES\"); //k46//\n ec.writeFileLine(reportFile, \" dis = duplicate station-id - same SUBDES\"); //u02//\n ec.writeFileLine(reportFile, \" dia = duplicate station-id - different SUBDES: data added\");//u02//\n ec.writeFileLine(reportFile, \" dij = ignored station - matched existing station record - did\"); //k46//\n ec.writeFileLine(reportFile, \" dip = data records replaced for existing station record - did\"); //k46//\n ec.writeFileLine(reportFile, \" dsd = duplicate station record - different SUBDES\"); //k46//\n ec.writeFileLine(reportFile, \" dss = duplicate station record - same SUBDES\"); //u02//\n ec.writeFileLine(reportFile, \" dsa = duplicate station record - different SUBDES: data added\");\n ec.writeFileLine(reportFile, \" dsj = ignored station - matched existing station record - dsd\"); //k46//\n ec.writeFileLine(reportFile, \" dsp = data records replaced for existing station record - dsd\"); //k46//\n\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \"----------------------------\" +\n \"-----------------------------------------------------\" +\n \"------------------------------\");\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \"This data was \" +\n (loadFlag ? \"loaded\" : \"checked\") + \" with the following ranges:\");\n ec.writeFileLine(reportFile, \" Area: \" + areaRangeVal + \" (decimal degrees)\");\n ec.writeFileLine(reportFile, \" Time: \" + timeRangeVal + \" (minutes)\");\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \"----------------------------\" +\n \"-----------------------------------------------------\" +\n \"------------------------------\");\n ec.writeFileLine(reportFile, \"Closing statistics - survey_id: \" +\n survey.getSurveyId());\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \" Number of lines - \" +\n ec.frm(lineCount,6));\n ec.writeFileLine(reportFile, \" Fatal Errors - \" +\n ec.frm(fatalCount,6));\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \" Number of stations - \" +\n ec.frm(stationCount,6));\n ec.writeFileLine(reportFile, \" New - \" +\n ec.frm(newStationCount,6));\n ec.writeFileLine(reportFile, \" Dup - \" +\n ec.frm((stationCount-newStationCount),6));\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \" Duplicate Station-id (DI)\");\n ec.writeFileLine(reportFile, \" DI: diff SUBDES (DID) - \" +\n ec.frm(didCount,6));\n ec.writeFileLine(reportFile, \" DI: same SUBDES (DIS) - \" +\n ec.frm(disCount,6));\n ec.writeFileLine(reportFile, \" DI: diff SUBDES added (DIA) - \" +\n ec.frm(diaCount,6));\n ec.writeFileLine(reportFile, \" DI's Rejected (DIJ) - \" +\n ec.frm(dijCount,6));\n ec.writeFileLine(reportFile, \" DI's Replaced (DIP) - \" +\n ec.frm(dipCount,6));\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \" Duplicate Station (DS)\");\n ec.writeFileLine(reportFile, \" DS: diff SUBDES (DSD) - \" +\n ec.frm(dsdCount,6));\n ec.writeFileLine(reportFile, \" DS: same SUBDES (DSS) - \" +\n ec.frm(dssCount,6));\n ec.writeFileLine(reportFile, \" DS: diff SUBDES added (DSA) - \" +\n ec.frm(dsaCount,6));\n ec.writeFileLine(reportFile, \" DS's Rejected (DSJ) - \" +\n ec.frm(dsjCount,6));\n ec.writeFileLine(reportFile, \" DS's Replaced (DSP) - \" +\n ec.frm(dspCount,6));\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \" Number of Samples - \" +\n ec.frm(sampleCount,6));\n ec.writeFileLine(reportFile, \" OK - \" +\n ec.frm(sampleOKCount,6));\n ec.writeFileLine(reportFile, \" Rejected - \" +\n ec.frm(sampleRejectCount,6));\n ec.writeFileLine(reportFile, \" \");\n java.text.SimpleDateFormat formatter =\n new java.text.SimpleDateFormat (\"yyyy-MM-dd\");\n ec.writeFileLine(reportFile, \" date range - \" +\n formatter.format(dateMin) + \" to \" + formatter.format(dateMax));\n ec.writeFileLine(reportFile, \" latitude range - \" +\n ec.frm(latitudeMin,10,5) + \" to \" + ec.frm(latitudeMax,10,5));\n ec.writeFileLine(reportFile, \" longitude range - \" +\n ec.frm(longitudeMin,10,5) + \" to \" + ec.frm(longitudeMax,10,5));\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \"----------------------------\" +\n \"-----------------------------------------------------\" +\n \"------------------------------\");\n\n if (loadFlag) {\n ec.writeFileLine(reportFile, \" \");\n\n if (fatalCount > 0) {\n ec.writeFileLine(reportFile,\n \" THERE ARE FATAL ERRORS - THIS LOAD IS UNSUCCESSFUL \");\n ec.writeFileLine(reportFile,\n \" ================================================== \");\n ec.writeFileLine(reportFile,\n \" As some data has been loaded, it is necessary to remove it\\n\" +\n \" by running the 'Delete a survey' option on the SADCO website\\n\" +\n \" located in the 'Marine Database: Admin / Load Data' menu options\");\n } else { // if (fatalCount > 0)\n Timestamp loadDate = new Timestamp(new java.util.Date().getTime());\n ec.writeFileLine(reportFile, \" LOAD SUCCESSFUL \");\n ec.writeFileLine(reportFile, \" =============== \");\n ec.writeFileLine(reportFile, \" date loaded: \" +\n formatter.format(loadDate));\n\n if (dataType != CURRENTS) {\n ec.writeFileLine(reportFile, \" \" + DATA_TYPE[dataType] +\n \" code range - \" + dataCodeStart + \" to \" + dataCodeEnd);\n } // if (dataType != CURRENTS)\n\n ec.writeFileLine(reportFile, \" \");\n if (\"\".equals(passkey)) {\n ec.writeFileLine(reportFile, \" This data is NOT flagged \");\n } else {\n ec.writeFileLine(reportFile, \" This data is FLAGGED \");\n } // if (p_station.passkey is NULL)\n } // if (fatalCount > 0)\n\n // write header to station file\n String lineA =\n \"'MARINE' \" +\n ec.frm((int) latitudeMin,4) +\n ec.frm((int) (latitudeMax+1f),4) +\n ec.frm((int) longitudeMin,4) +\n ec.frm((int) (longitudeMax+1f),4) + \" '\" +\n dateMin.toString().substring(0,10) + \"' '\" +\n dateMax.toString().substring(0,10) + \"' 'STATIONS'\";\n String lineB = \"'\" + survey.getSurveyId(\"\") +\n \"' \" + stationCount + \" '\" +\n platformName + \"' '\" +\n projectName + \"' '\" +\n expeditionName + \"'\";\n String lineC = \"'\" + instituteName + \"'\";\n try {\n stnFile.seek(headerPos1);\n stnFile.writeBytes(lineA);\n stnFile.seek(headerPos2);\n stnFile.writeBytes(lineB);\n stnFile.seek(headerPos3);\n stnFile.writeBytes(lineC);\n } catch (Exception e) {\n System.out.println(\"<br>\" + thisClass +\n \".printHeader: Write Error: \" + e.getMessage());\n e.printStackTrace();\n } // try-catch\n\n } // if (loadflag)\n\n Timestamp loadDate = new Timestamp(new java.util.Date().getTime());\n String text = (loadFlag ? \"loaded\" : \"checked\");\n ec.writeFileLine(reportFile, \" date \" + text + \": \" +\n formatter.format(loadDate));\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \"----------------------------\" +\n \"-----------------------------------------------------\" +\n \"------------------------------\");\n } // if (last)\n\n } // if (\"\".equals(station.getStationId(\"\")))\n\n\n //ec.writeFileLine(reportFile, message);\n //if (dbg) System.out.println(\"outputReport: message = \" + message);\n // output to screen or file\n }", "public static void printReport() throws Exception\r\n\t{\n\t\tFile file=new File(\"Data/Peopledetails.txt\");\r\n\t\tfs=new Scanner(file);\r\n\t\tfs.useDelimiter(\",|\\\\r\\n\");\r\n\t\t\r\n\t\t//Print out headers for table\r\n\t\tSystem.out.printf(\"%5s%20s%10s%15s%20s%15s%15s%20s%10s%20s%10s\\n\\n\", \r\n\t\t\t\t\"ID\", \"Name\", \"Gender\", \"Hourly Rate\", \"Contracted Hours\",\t\"Gross Pay\", \r\n\t\t\t\t\"Income Tax\", \"National Insurance\", \"Pension\", \"Total Deductions\", \"Net pay\");\r\n\t\t\r\n\t\twhile (fs.hasNext())\r\n\t\t{\r\n\t\t\tid=fs.nextInt();\r\n\t\t\tfname=fs.next();\r\n\t\t\tsname=fs.next();\r\n\t\t\tgen=fs.next();\r\n\t\t\thrate=fs.nextDouble();\r\n\t\t\thrs=fs.nextDouble();\r\n\t\t\t\t\t\t\r\n\t\t\tgross=hrs*hrate;\r\n\t\t\t\t\t\t\r\n\t\t\t//Calculates the overtime\r\n\t\t\tif(hrs>40)\r\n\t\t\t{\r\n\t\t\t\totime=hrs-40;\r\n\t\t\t\tstandard=40;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\totime=0;\r\n\t\t\t\tstandard=hrs;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tgross=(standard*hrate+otime*hrate*1.5);\r\n\t\t\t\r\n\t\t\t//Calculates the annual gross in order to calculate the income tax per week\r\n\t\t\tannualgross=gross*52;\r\n\t\t\t\r\n\t\t\t//Calculates Income Tax\r\n\t\t\tdouble p,b,h,a;\r\n\t\t\t\r\n\t\t\tif(annualgross<=12500)\r\n\t\t\t{\r\n\t\t\t\tp=0;\r\n\t\t\t\tb=0;\r\n\t\t\t\th=0;\r\n\t\t\t\ta=0;\r\n\t\t\t}\r\n\t\t\telse if(annualgross>12500 && annualgross<=50000)\r\n\t\t\t{\r\n\t\t\t\tp = 12500;\r\n\t\t\t\tb = annualgross - 12500;\r\n\t\t\t\th = 0;\r\n\t\t\t\ta = 0;\r\n\r\n\t\t\t}\r\n\t\t\telse if(annualgross>50000 && annualgross<=150000)\r\n\t\t\t{\r\n\t\t\t\tp = 12500;\r\n\t\t\t b = 37500;\r\n\t\t\t h = annualgross - 50000;\r\n\t\t\t a = 0;\r\n\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t p = 12500;\r\n\t\t b = 37500;\r\n\t\t h = 100000;\r\n\t\t a = annualgross - 150000;\r\n\r\n\t\t\t}\r\n\t\t\ttax= (p * 0 + b * 0.2 + h * 0.4 + a * 0.45)/52;\r\n\t\t\t\r\n\t\t\t//Calculates National Insurance Contribution\r\n\t\t\tif(annualgross>8500 && annualgross<50000)\r\n\t\t\t{\r\n\t\t\t\tnirate=0.12;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tnirate=0.02;\r\n\t\t\t}\r\n\t\t\tnitax=gross*nirate;\r\n\t\t\t\r\n\t\t\t//Calculates Pension Contribution\r\n\t\t\tif(annualgross<27698)\r\n\t\t\t{\r\n\t\t\t\tpenrate=0.074;\r\n\t\t\t}\r\n\t\t\telse if(annualgross>=27698 && annualgross<37285)\r\n\t\t\t{\r\n\t\t\t\tpenrate=0.086;\r\n\t\t\t}\r\n\t\t\telse if(annualgross>=37285 && annualgross<44209)\r\n\t\t\t{\r\n\t\t\t\tpenrate=0.096;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tpenrate=0.117;\r\n\t\t\t}\r\n\t\t\tpension=gross*penrate;\r\n\t\t\t\r\n\t\t\t//Calculates total deductions\r\n\t\t\tdeduct=tax+nitax+pension;\r\n\t\t\t\r\n\t\t\t//Calculates net pay\r\n\t\t\tnet=gross-deduct;\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tSystem.out.printf(\"%5d%20s%10s%15.2f%20.2f%15.2f%15.2f%15.2f%15.2f%20.2f%10.2f\\n\",\r\n\t\t\t\t\tid, fname+\" \"+sname, gen, hrate, hrs, gross, tax, nitax, pension, deduct, net);\r\n\t\t}\r\n\t\tfs.close();\r\n\t\t\r\n\t}", "private void getTargetReports(ArrayList<TargetReport> reports)\n\t{\n\t\t// initialize null default value to pass if no connection\n\t\tdouble[] defaultValue = new double[0];\n\t\t\n\t\t// get relevant values\n\t\tdouble[] centerXs = Robot.targetRecievingTable.getNumberArray(\"centerX\", defaultValue);\n\t\tdouble[] centerYs = Robot.targetRecievingTable.getNumberArray(\"centerY\", defaultValue);\n\t\tdouble[] areas = Robot.targetRecievingTable.getNumberArray(\"area\", defaultValue);\n\t\tdouble[] widths = Robot.targetRecievingTable.getNumberArray(\"width\", defaultValue);\n\t\tdouble[] heights = Robot.targetRecievingTable.getNumberArray(\"height\", defaultValue);\n\t\tdouble[] solidities = Robot.targetRecievingTable.getNumberArray(\"solidity\", defaultValue);\n\t\t\n\t\t// for each given, create a new object\n\t\t//ArrayList<TargetReport> reports = new ArrayList<TargetReport>();\n\t\tint i = 0;\n\t\twhile (\ti < centerXs.length && \n\t\t\t\ti < centerYs.length && \n\t\t\t\ti < areas.length && \n\t\t\t\ti < widths.length && \n\t\t\t\ti < heights.length && \n\t\t\t\ti < solidities.length)\n\t\t{\n\t\t\t// it will auto-initialize further scores\n\t\t\treports.add(new TargetReport(centerXs[i],\n\t\t\t\t\t\t\t\t\t centerYs[i],\n\t\t\t\t\t\t\t\t\t areas[i], \n\t\t\t\t\t\t\t\t\t widths[i],\n\t\t\t\t\t\t\t\t\t heights[i],\n\t\t\t\t\t\t\t\t\t solidities[i],\n\t\t\t\t\t\t\t\t\t IDEAL_ASPECT_RATIO,\n\t\t\t\t\t\t\t\t\t IDEAL_AREA_RATIO));\n\t\t\ti++;\n\t\t}\n\t}", "protected void postRun() {\r\n\t\tthis.calculateFlowBandwidthHops();\r\n\t\tdouble abt = this.ABT();\r\n\t\tdouble agt = this.AGT();\r\n\t\tthis.metrics.add(new ResultMetric(\"ABT\", abt));\r\n\t\tthis.metrics.add(new ResultMetric(\"AGT\", agt));\r\n\t\tthis.metrics.add(new ResultMetric(\"Hops\", this.Hops()));\r\n\t\tthis.metrics.add(new ResultMetric(\"AveHops\", this.Hops()\r\n\t\t\t\t/ this.flows.size()));\r\n\t\tthis.metrics.add(new ResultMetric(\"SuccCount\", this.successfulCount));\r\n\t\tthis.metrics.add(new ResultMetric(\"FailCount\", this.failedCount));\r\n\t\tthis.metrics.add(new ResultMetric(\"ServerNum\", this.dcn\r\n\t\t\t\t.getServerUUIDs().size()));\r\n\t\tthis.metrics.add(new ResultMetric(\"ThroughputPerLink\", abt\r\n\t\t\t\t/ this.dcn.linkCount()));\r\n\t}", "@FXML\n private void clearReportData() {\n displayCarbonEmissionGoalField.setText(\"\");\n carbonEmissionGoalField.setText(\"\");\n displayTotalEmissionsField.setText(\"\");\n displayTotalDistanceTravelledField.setText(\"\");\n displayMostEmissionsRouteField.setText(\"\");\n displayMostEmissionsRouteField.setText(\"\");\n displayLeastEmissionsRouteField.setText(\"\");\n displayMostDistanceRouteField.setText(\"\");\n displayLeastEmissionsRouteField.setText(\"\");\n displayLeastDistanceRouteField.setText(\"\");\n displayMostVisitedSourceAirportField.setText(\"\");\n displayLeastVisitedSourceAirportField.setText(\"\");\n displayMostVisitedDestinationAirportField.setText(\"\");\n displayLeastVisitedDestinationAirportField.setText(\"\");\n displayTreeOffsetField.setText(\"\");\n displayStatusCommentField.setText(\"\");\n }", "public void clearReports()\n\t{\n\t\treports.clear();\n\t}", "public void getSafetyReportSummaryData() throws RemoteException {\n throw new RemoteException(\"Not yet implemented\");\n }" ]
[ "0.5903306", "0.57909775", "0.5782742", "0.5738982", "0.57330775", "0.57306004", "0.57125616", "0.5703188", "0.56522495", "0.5612196", "0.56027424", "0.5557933", "0.553721", "0.55354446", "0.55325425", "0.55300283", "0.5505629", "0.54882705", "0.5478808", "0.546472", "0.5460908", "0.54065365", "0.54028887", "0.54002386", "0.5395967", "0.53922594", "0.53862005", "0.5359018", "0.53580713", "0.53577906", "0.53548205", "0.53466886", "0.53400344", "0.5316246", "0.5291106", "0.52903", "0.52897775", "0.5281534", "0.5280647", "0.5268823", "0.5262687", "0.5257206", "0.5251123", "0.5244691", "0.5242285", "0.5233749", "0.523162", "0.52314705", "0.5209146", "0.5202032", "0.52002513", "0.5195656", "0.5190344", "0.5189858", "0.5189347", "0.5189347", "0.51802695", "0.5162739", "0.5160932", "0.51603967", "0.51602644", "0.5154278", "0.5153935", "0.51523256", "0.5145494", "0.51404756", "0.51385504", "0.5126931", "0.51219815", "0.5119303", "0.5113837", "0.5093325", "0.5091073", "0.508895", "0.50822103", "0.50647163", "0.5062641", "0.50500333", "0.50449765", "0.5040125", "0.50396574", "0.50385875", "0.5035855", "0.50331396", "0.5030345", "0.5029211", "0.5026501", "0.5013327", "0.5008182", "0.500805", "0.50063455", "0.5006046", "0.5001097", "0.4991147", "0.49910706", "0.4988049", "0.49846596", "0.4982938", "0.49811623", "0.49790215" ]
0.59986115
0
retrieves a collection of cached value objects containing summary information
@SuppressWarnings("unused") // Possible external use Collection<ExpressionExperimentDetailsValueObject> retrieveSummaryObjects( Collection<Long> ids );
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<ChargeSummary> value();", "@Override\n public List<CacheObject<K, V>> getAll(){\n return new ArrayList<>(this.cache.values());\n }", "public Item2Vector<Summary> getSummaries() { return summaries; }", "List<CacheHealth> getCacheHealth();", "Map<String, Object> getStats();", "public Collection<V> getAllElements() {\n\t\treturn cacheMap.values();\n\t}", "public static void clearSummaryCache() {\n summary_cache.clear();\n ConcreteTypeNode.FACTORY.clear();\n ConcreteTypeNode.FACTORY2.clear();\n ConcreteObjectNode.FACTORY.clear();\n UnknownTypeNode.FACTORY.clear();\n ReturnValueNode.FACTORY.clear();\n ThrownExceptionNode.FACTORY.clear();\n FieldNode.FACTORY.clear();\n GlobalNode.FACTORY.clear();\n GlobalNode.GLOBAL = GlobalNode.get((jq_Method) null);\n }", "public static cache_stats get(nitro_service service) throws Exception{\n\t\tcache_stats obj = new cache_stats();\n\t\tcache_stats[] response = (cache_stats[])obj.stat_resources(service);\n\t\treturn response[0];\n\t}", "public List<StatsObject> getData() {\n\t\tList<StatsObject> stats = new ArrayList<StatsObject>(data.values());\n\t\treturn stats;\n\n\t}", "public CacheStatistics getCacheStatistics()\n {\n return m_stats;\n }", "private void displayAll()\n {\n for (int i = 0; i < cache.size(); ++i)\n {\n Record r = cache.get(i); \n System.out.println(r.key() + \" \" + r.value());\n }\n }", "public Map<String, String> getValueData(){\n\t\treturn valueCache;\n\t}", "long getCacheHits();", "public StatValues stats() {\n this.stats.setStatsHolder(this);\n return stats;\n }", "public CachetMetricList getMetrics() {\n throw new RuntimeException(\"Method not implemented.\");\n }", "java.util.List<com.google.api.servicecontrol.v1.MetricValue> getMetricValuesList();", "public Value getCachedValue() {\n return cachedValue;\n }", "@Override\n\tpublic Set<T> retrieveAllItems() {\n\t\treturn cache;\n\t}", "public List<T> values() {\n return values(System.currentTimeMillis());\n }", "public void cacheResult(SitbMoneyCollection sitbMoneyCollection);", "public static Collection<Access.AccessStatsEntry> getStatistics() {\n accessorQueueLen.count = accessorQueue.size();\n\n return stats;\n }", "public Map<K,V> getMap() {\n Map<K,V> results = new HashMap<K,V>(valueMap.size());\n\n synchronized(theLock) {\n for (Map.Entry<K,CacheableObject> entry : valueMap.entrySet()) {\n if (! isExpired(entry.getValue())) {\n results.put(entry.getKey(), entry.getValue().cachedObject);\n }\n }\n }\n\n return results;\n }", "public Collection getAllCaches()\n {\n Set setRef = new HashSet();\n Collection<Map> colLoader = m_mapByName.values();\n\n for (Map mapByLoader : colLoader)\n {\n synchronized (mapByLoader)\n {\n for (Object oHolder : mapByLoader.values())\n {\n if (oHolder instanceof SubjectScopedReference)\n {\n setRef.addAll(((SubjectScopedReference) oHolder).values());\n }\n else if (oHolder instanceof NamedCache)\n {\n setRef.add(oHolder);\n }\n else\n {\n throw new UnsupportedOperationException();\n }\n }\n }\n }\n\n return setRef;\n }", "public static PrimitiveMethodSummary getSummary(ControlFlowGraph cfg, CallSite cs) {\n if (clone_cache != null) {\n //System.out.println(\"Checking cache for \"+new Pair(cfg, cs));\n PrimitiveMethodSummary ms = (PrimitiveMethodSummary) clone_cache.get(new Pair(cfg, cs));\n if (ms != null) {\n //System.out.println(\"Using specialized version of \"+ms.getMethod()+\" for call site \"+cs);\n return ms;\n }\n }\n return getSummary(cfg);\n }", "Collection getData();", "HCollection values();", "@Override\n public Collection<V> values() {\n Collection<V> values = new HashSet<V>(size());\n for (LinkedList<Entry<K,V>> list : table) {\n for (Entry<K,V> entry : list) {\n if (entry != null) {\n values.add(entry.getValue());\n }\n }\n }\n return values;\n }", "public Iterator<Map.Entry<String, String>> getSummary()\n {\n Map<String, String> summaryTable = new LinkedHashMap<String, String>();\n\n summaryTable.put(\"Host\", registration.getHost());\n summaryTable.put(\"Port\", String.valueOf(registration.getPort()));\n summaryTable.put(\"Strategy\", registration.getStrategy().getName());\n\n return summaryTable.entrySet().iterator();\n }", "public Object [] generateOutputValues(UnivariateStatsMetaFunction usmf,\n ArrayList<Number> cache) {\n calculateDerived();\n\n // process cache?\n if (cache != null) {\n double [] result = new double[(int)m_count];\n for (int i = 0; i < cache.size(); i++) {\n result[i] = cache.get(i).doubleValue();\n }\n Arrays.sort(result);\n\n if (usmf.getCalcMedian()) {\n m_median = percentile(0.5, result, \n usmf.getInterpolatePercentile());\n }\n\n if (usmf.getCalcPercentile() >= 0) {\n m_arbitraryPercentile = \n percentile(usmf.getCalcPercentile(), result, \n usmf.getInterpolatePercentile());\n }\n }\n\n Object [] result = new Object[usmf.numberOfMetricsRequested()]; \n\n int index = 0;\n if (usmf.getCalcN()) {\n result[index++] = new Double(m_count);\n }\n if (usmf.getCalcMean()) {\n result[index++] = new Double(m_mean);\n }\n if (usmf.getCalcStdDev()) {\n result[index++] = new Double(m_stdDev);\n }\n if (usmf.getCalcMin()) {\n result[index++] = new Double(m_min);\n }\n if (usmf.getCalcMax()) {\n result[index++] = new Double(m_max);\n }\n if (usmf.getCalcMedian()) {\n result[index++] = new Double(m_median);\n }\n if (usmf.getCalcPercentile() >= 0) {\n result[index++] = new Double(m_arbitraryPercentile);\n }\n return result;\n }", "private List<ProjectModel> generateSummaryList() {\n return new LinkedList<>(projects.values());\n }", "private ArrayList<Object> loadCache() {\n if (cachedLabTest == null)\n {\n cachedLabTest = getOrderedTestCollection();\n return cachedLabTest;\n }\n else\n {\n return cachedLabTest;\n }\n }", "@Override\r\n public synchronized IStats getStatistics()\r\n {\r\n final IStats stats = new Stats();\r\n stats.setTypeName(\"Indexed Disk Cache\");\r\n\r\n final ArrayList<IStatElement<?>> elems = new ArrayList<>();\r\n\r\n elems.add(new StatElement<>(\"Is Alive\", Boolean.valueOf(isAlive())));\r\n elems.add(new StatElement<>(\"Key Map Size\", Integer.valueOf(this.keyHash != null ? this.keyHash.size() : -1)));\r\n try\r\n {\r\n elems.add(\r\n new StatElement<>(\"Data File Length\", Long.valueOf(this.dataFile != null ? this.dataFile.length() : -1L)));\r\n }\r\n catch (final IOException e)\r\n {\r\n log.error(e);\r\n }\r\n elems.add(new StatElement<>(\"Max Key Size\", this.maxKeySize));\r\n elems.add(new StatElement<>(\"Hit Count\", this.hitCount));\r\n elems.add(new StatElement<>(\"Bytes Free\", this.bytesFree));\r\n elems.add(new StatElement<>(\"Optimize Operation Count\", Integer.valueOf(this.removeCount)));\r\n elems.add(new StatElement<>(\"Times Optimized\", Integer.valueOf(this.timesOptimized)));\r\n elems.add(new StatElement<>(\"Recycle Count\", Integer.valueOf(this.recycleCnt)));\r\n elems.add(new StatElement<>(\"Recycle Bin Size\", Integer.valueOf(this.recycle.size())));\r\n elems.add(new StatElement<>(\"Startup Size\", Integer.valueOf(this.startupSize)));\r\n\r\n // get the stats from the super too\r\n final IStats sStats = super.getStatistics();\r\n elems.addAll(sStats.getStatElements());\r\n\r\n stats.setStatElements(elems);\r\n\r\n return stats;\r\n }", "@RequestMapping(method=RequestMethod.GET, value = \"/summary\")\n\tpublic List<ExpenseSummary> getSummaries() {\n\t\treturn service.getSummary();\n\t}", "public List<Number> getStatistics() {\n return statistics;\n }", "public Cache<ImmutableBytesPtr,PMetaDataEntity> getMetaDataCache() {\n Cache<ImmutableBytesPtr,PMetaDataEntity> result = metaDataCache;\n if (result == null) {\n synchronized(this) {\n result = metaDataCache;\n if(result == null) {\n long maxTTL = config.getLong(\n QueryServices.MAX_SERVER_METADATA_CACHE_TIME_TO_LIVE_MS_ATTRIB,\n QueryServicesOptions.DEFAULT_MAX_SERVER_METADATA_CACHE_TIME_TO_LIVE_MS);\n long maxSize = config.getLongBytes(\n QueryServices.MAX_SERVER_METADATA_CACHE_SIZE_ATTRIB,\n QueryServicesOptions.DEFAULT_MAX_SERVER_METADATA_CACHE_SIZE);\n metaDataCache = result = CacheBuilder.newBuilder()\n .maximumWeight(maxSize)\n .expireAfterAccess(maxTTL, TimeUnit.MILLISECONDS)\n .weigher(new Weigher<ImmutableBytesPtr, PMetaDataEntity>() {\n @Override\n public int weigh(ImmutableBytesPtr key, PMetaDataEntity table) {\n return SizedUtil.IMMUTABLE_BYTES_PTR_SIZE + key.getLength() + table.getEstimatedSize();\n }\n })\n .build();\n }\n }\n }\n return result;\n }", "List getValues();", "public static cache_stats get(nitro_service service, options option) throws Exception{\n\t\tcache_stats obj = new cache_stats();\n\t\tcache_stats[] response = (cache_stats[])obj.stat_resources(service,option);\n\t\treturn response[0];\n\t}", "protected Map<String, T> getDatumCache() {\n\t\treturn datumCache;\n\t}", "public java.util.Map<String, FieldStats> getStats() {\n if (stats == null) {\n stats = new com.amazonaws.internal.SdkInternalMap<String, FieldStats>();\n }\n return stats;\n }", "public abstract List<Metric> getMetrics();", "public List<ValueObject> getValueObjects()\r\n {\r\n List<ValueObject> vos = new ArrayList<ValueObject>();\r\n vos.add(getValueObject());\r\n return vos;\r\n }", "com.google.api.servicecontrol.v1.MetricValue getMetricValues(int index);", "public String[] getSummaries() {\n\t\tif (results == null)\n\t\t\treturn null;\n\t\tWebSearchResult[] resultsArray = results.listResults();\n\t\tString[] summaries = new String[resultsArray.length];\n\t\tfor (int i = 0; i < summaries.length; i++) {\n\t\t\tsummaries[i] = resultsArray[i].getSummary();\n\t\t}\n\t\treturn summaries;\n\t}", "public synchronized TimeSeriesIterator read() {\n //TODO: The read object returns the values at a point instead of returning all values when\n // called. Change it.\n return new CachingVarBitTimeSeriesIterator(size, timestamps.read(), values.read());\n }", "@Test\n public void testCoh3710_getAll()\n {\n doExpiryOpTest(new Runnable()\n {\n public void run()\n {\n assertEquals(NullImplementation.getMap(),\n getNamedCache(getCacheName0()).getAll(\n Collections.singleton(Integer.valueOf(1))));\n }\n });\n }", "private Map<String, S3ObjectSummary> fetchSummary(String s3Url) {\n val map = new LinkedHashMap<String, S3ObjectSummary>();\n\n try {\n s3Client.listObjects(bucketName(s3Url), bucketPath(s3Url))\n .getObjectSummaries()\n .stream()\n .sorted(Comparator.comparing(S3ObjectSummary::getKey))\n .forEach(summary -> {\n val url = S3_URL_PREFIX + summary.getBucketName() + \"/\" + summary.getKey();\n map.put(url, summary);\n });\n } catch (AmazonS3Exception e) {\n if (e.getStatusCode() == 404) {\n warnOrThrowOnMissingConfigLocation(s3Url);\n log.debug(\"{} non-existing s3 bucket path: {}: {}\", this, s3Url, e.getMessage());\n } else {\n throw Tsc4jException.of(\"Error fetching summary for %s: %%s\", e, s3Url);\n }\n } catch (Exception e) {\n throw Tsc4jException.of(\"Error fetching summary for %s: %%s\", e, s3Url);\n }\n\n if (log.isDebugEnabled()) {\n if (map.isEmpty()) {\n log.debug(\"{} empty fetch summary for: {}\", this, s3Url);\n } else {\n val sb = new StringBuilder();\n map.forEach((k, v) -> sb.append(\" \" + k + \" -> \" + v + \"\\n\"));\n log.debug(\"{} fetch summary for {}:\\n {}\", this, s3Url, sb.toString().trim());\n }\n }\n\n return map;\n }", "public void cacheResult(\n\t\tjava.util.List<SitbMoneyCollection> sitbMoneyCollections);", "public Object getValue() {\n synchronized (mutex) {\n return statisticsAccumulator.getValue();\n }\n }", "public Collection getAllCaches(String sCacheName)\n {\n Set setRef = new HashSet();\n Map mapByLoader = (Map) m_mapByName.get(sCacheName);\n\n if (mapByLoader != null)\n {\n synchronized (mapByLoader)\n {\n Collection col = mapByLoader.values();\n\n for (Iterator iter = col.iterator(); iter.hasNext(); )\n {\n Object oHolder = iter.next();\n\n if (oHolder instanceof SubjectScopedReference)\n {\n setRef.addAll(((SubjectScopedReference) oHolder).values());\n }\n else if (oHolder instanceof NamedCache)\n {\n setRef.add(oHolder);\n }\n else\n {\n throw new UnsupportedOperationException();\n }\n }\n }\n }\n\n return setRef;\n }", "@Override\n public Collection<T> values() {\n List<T> values = new ArrayList<>();\n for (Map.Entry<String, T> v : entries.values()) {\n values.add(v.getValue());\n }\n return values;\n }", "public String getSummary();", "static private void populateCache() {\n if (cacheIsPopulated) {\n return;\n }\n cacheIsPopulated = true;\n\n /* Schema:\n *\n * units{\n * duration{\n * day{\n * one{\"{0} ден\"}\n * other{\"{0} дена\"}\n * }\n */\n\n // Load the unit types. Use English, since we know that that is a superset.\n ICUResourceBundle rb1 = (ICUResourceBundle) UResourceBundle.getBundleInstance(\n ICUData.ICU_UNIT_BASE_NAME,\n \"en\");\n rb1.getAllItemsWithFallback(\"units\", new MeasureUnitSink());\n\n // Load the currencies\n ICUResourceBundle rb2 = (ICUResourceBundle) UResourceBundle.getBundleInstance(\n ICUData.ICU_BASE_NAME,\n \"currencyNumericCodes\",\n ICUResourceBundle.ICU_DATA_CLASS_LOADER);\n rb2.getAllItemsWithFallback(\"codeMap\", new CurrencyNumericCodeSink());\n }", "public HashMap<String, String> getAIStatistics() {\n HashMap<String, String> stats = new HashMap<String, String>();\n HashMap<String, Long> objStats = new HashMap<String, Long>();\n Iterator<AIObject> iter = aiObjects.values().iterator();\n while (iter.hasNext()) {\n AIObject obj = iter.next();\n String className = obj.getClass().getSimpleName();\n if (objStats.containsKey(className)) {\n Long count = objStats.get(className);\n count++;\n objStats.put(className, count);\n } else {\n Long count = new Long(1);\n objStats.put(className, count);\n }\n }\n for (String k : objStats.keySet()) {\n stats.put(k, Long.toString(objStats.get(k)));\n }\n \n return stats;\n }", "List<CacheHealth> getCacheHealth(Set<String> cacheNames);", "@Override\n public synchronized Enumeration elements() {\n if ((System.currentTimeMillis() - this.lastCheck) > this.CACHE_TIME) {\n update();\n }\n return super.elements();\n }", "public List<Object> getValues();", "java.lang.String getSummary();", "@Override\n public List<V> values() {\n List<V> values = new AList<>();\n for(int i =0; i < capacity; i++){\n Entry n = (Entry)table[i];\n if(n != null && !n.isRemoved())\n values.add(n.getValue()); \n }\n assert values.size() == size;\n return values; \n }", "java.util.List<com.google.protobuf.ByteString> getCachedList();", "Collection<T> getAll() {\n _readLock.lock();\n try {\n return ImmutableList.copyOf(_toMap.values());\n } finally {\n _readLock.unlock();\n }\n }", "Collection<V> getAllEntries();", "java.util.List<com.google.api.MetricDescriptor> getMetricDescriptorsList();", "@Override\n List<Value> values();", "public void cacheResult(java.util.List<PlanoSaude> planoSaudes);", "private CacheObject<K, V> getCacheObject(K key){\n return this.cache.get(key);\n }", "long getCacheMisses();", "private void loadCachedLabTestCollection()\n {\n cachedFacilityList = new HashMap<Object,Object>();\n SRTOrderedTestDAOImpl dao = new SRTOrderedTestDAOImpl();\n cachedLabTest= (ArrayList<Object> ) convertToSRTLabTestDT(dao.getAllOrderedTests());\n\n //load cachedFacilityList\n Iterator<Object> iter = cachedLabTest.iterator();\n while(iter.hasNext()){\n SRTLabTestDT srtLabTestDT = (SRTLabTestDT)iter.next();\n if(srtLabTestDT.getLaboratoryId()!= null ){\n this.addToCachedFacilityList(srtLabTestDT.getLaboratoryId(),srtLabTestDT);\n }// end if labId !=null\n }//end while\n\n }", "@Override\n public Map<K, ICacheElement<K, V>> getCacheElements( final Set<K> names )\n {\n return this.getCacheControl().getMultiple( names );\n }", "void prefetchValues(Collection<R> entities);", "public Collection<T> getResults();", "public ListVS<V> getValues() {\n ListVS<V> result = new ListVS<V>(getUniverse());\n for (V value : this.entries.values()) {\n result = result.add(value);\n }\n return result;\n }", "public Map<Integer, Object> getDocumentSummaryInformation()\r\n {\r\n return (m_documentSummaryInformation);\r\n }", "java.util.List<org.tensorflow.proto.profiler.XStat> \n getStatsList();", "@Override\r\n\tpublic Collection<V> values() {\r\n\t\tCollection<V> valueList = new ArrayList<V>();\r\n\t\tfor (Object o : buckets) {\r\n\t\t\tBucket b = (Bucket) o;\r\n\t\t\tvalueList.addAll(b.values());\r\n\t\t}\r\n\t\treturn valueList;\r\n\t}", "final CacheData<K, V> getCacheData(int pos) {\r\n return buckets[pos].get();\r\n }", "public Iterator<Object[]> getMetricValueIterator()\n\t{\n\t\tinit();\n\t\t\n\t\treturn new MetricValueIterator();\n\t}", "public java.util.List<com.google.protobuf.ByteString>\n getCachedList() {\n return java.util.Collections.unmodifiableList(cached_);\n }", "public Cache getCachedContestStatuses() {\r\n return this.delegate.getCachedContestStatuses();\r\n }", "Array<Object> getInstanceValues();", "private DataCache() {\n this.people = new HashMap<>();\n this.events = new HashMap<>();\n this.personEvents = new HashMap<>();\n this.currentPersonEvents = new HashMap<>();\n this.eventTypes = new ArrayList<>();\n this.childrenMap = new HashMap<>();\n this.maleSpouse = new HashSet<>();\n this.femaleSpouse = new HashSet<>();\n this.paternalAncestorsMales = new HashSet<>();\n this.paternalAncestorsFemales = new HashSet<>();\n this.maternalAncestorsMales = new HashSet<>();\n this.maternalAncestorsFemales = new HashSet<>();\n }", "public java.util.List<java.lang.Integer> getValueList() {\n return java.util.Collections.unmodifiableList(result.value_);\n }", "public List<FileSummary> getAllSummary() {\n \n LOGGER.debug(\"Found total of {} records\", fileStatusRepository.count());\n \n List<FileSummary> summaries = StreamSupport.stream(fileStatusRepository.findAll().spliterator(), false)\n .map(e -> convertToSummary(e)).collect(Collectors.toList());\n\n return summaries;\n }", "@Secured({ \"GROUP_AGENT\" })\n Collection<ExpressionExperimentDetailsValueObject> generateSummaryObjects();", "public Collection<V> values() {\r\n\t\t\tCollection<V> valueList = new ArrayList<V>();\r\n\t\t\tListNode current = header;\r\n\t\t\twhile (current != null) {\r\n\t\t\t\tvalueList.add(current.value);\r\n\t\t\t\tcurrent = current.next;\r\n\t\t\t}\r\n\t\t\treturn valueList;\r\n\t\t}", "public List<T> read(int numbersToRetrieve)\r\n {\r\n// final String methodName = \"read\";\r\n List<T> list = null;\r\n\r\n if (_cache.isEmpty())\r\n {\r\n// Advisory advisory = new Advisory();\r\n//\r\n// advisory.setPackageName (ConstantsPackages.CACHE);\r\n// advisory.setMethodName (_className + \"::\" + methodName);\r\n// advisory.setStatus (Status.STATUS_CACHE_INVALID);\r\n//\r\n// AdvisoryLog.log (advisory);\r\n }\r\n\r\n else\r\n {\r\n int elementIndex = 0;\r\n int pageIndex = 0;\r\n\r\n list = new ArrayList<T>();\r\n\r\n while((list.size() < numbersToRetrieve)&&(!_cache.isEmpty()))\r\n {\r\n List<T> workList;\r\n \r\n synchronized(_cache)\r\n {\r\n workList = _cache.get (pageIndex);\r\n }\r\n \r\n int numbersRemaining = numbersToRetrieve - list.size();\r\n\r\n // Can current cache be used to retrieve all data?\r\n if (numbersRemaining < workList.size())\r\n {\r\n for (int index = 0; index < numbersRemaining; index++)\r\n {\r\n list.add (workList.remove (elementIndex));\r\n }\r\n }\r\n\r\n // Data must be retrieved from multiple pages of cache.\r\n else\r\n {\r\n // Retrieve available data from current page of cache.\r\n int available = workList.size();\r\n\r\n for (int index = 0; index < available; index++)\r\n {\r\n list.add (workList.remove (elementIndex));\r\n }\r\n \r\n synchronized(_cache)\r\n {\r\n _cache.remove (pageIndex);\r\n }\r\n \r\n // Refill page.\r\n _addPages (1);\r\n }\r\n }\r\n }\r\n\r\n return list;\r\n }", "public synchronized String toString()\n {\n while (true)\n {\n try\n {\n StringBuffer sb = new StringBuffer(\"Cache {\\n\");\n int i = 0;\n for (Iterator iter = entrySet().iterator(); iter.hasNext(); )\n {\n sb.append('[')\n .append(i++)\n .append(\"]: \")\n .append(iter.next())\n .append('\\n');\n }\n sb.append('}');\n return sb.toString();\n }\n catch (ConcurrentModificationException e)\n {\n }\n }\n }", "Observable<SummaryResponse> fetchSummary();", "Map<String, Object> getAllMetadata();", "public List<KismetMeasuredValue> getMeasuredValues() {\n return this.measuredValues;\n }", "public List<PerfBenchmarkSummary> getRecentSummaryList(int limit, String env, TestCategoryEnum category);", "public Collection<MetricInfo> listMetrics() {\n if (!registeredMetrics.isEmpty()) {\n return registeredMetrics.values();\n }\n return null;\n }", "private Collector<Double, DescriptiveStatistics, DescriptiveStatistics> descStatsCollector() {\n\n return Collector.of(DescriptiveStatistics::new,\n DescriptiveStatistics::addValue,\n (s1, s2) -> DoubleStream.concat(DoubleStream.of(s1.getValues()),\n DoubleStream.of(s1.getValues()))\n .collect(DescriptiveStatistics::new,\n DescriptiveStatistics::addValue,\n (ds1, ds2) -> DoubleStream.of(s2.getValues())\n .forEach(s1::addValue)));\n }", "public void getSafetyReportSummaryData() throws RemoteException {\n throw new RemoteException(\"Not yet implemented\");\n }", "public void cacheResult(java.util.List<DataEntry> dataEntries);", "public List<ColumnValueAnalysisResult> fetchValueAnalysisData() throws IOException, AnalysisException {\n String[] pigScript = generatePigScript();\n if(itsLogger.isDebugEnabled()){itsLogger.debug(\"ValueAnalysis script for first round is:\\n\"+Arrays.toString(pigScript));}\n\n registerPigQueries(getPigServer(),pigScript);\n List<ColumnValueAnalysisResult> results = new ArrayList<ColumnValueAnalysisResult>();\n if(null==columnValuesMap){\n columnValuesMap= new HashMap<String,ColumnValueAnalysisResult>();\n }\n\n\n Tuple itForNumber = acquireIterator(generator.getAggregatorVariableNameForNumber());\n\n for(String column:columnNames){\n ColumnValueAnalysisResult analy = fetcTheAggreagedValuesForTheColumnOf(itForNumber,column);\n columnValuesMap.put(column, analy);\n results.add(analy);\n\n }\n\n return results;\n }", "public PersistentStats getStats() {\n return _stats;\n }", "List<Consumption> listAll();", "@Override\n\tpublic Collection<V> values() {\n\t\t// TODO\n\t\treturn new ValueView();\n\t}", "List<V> getAll(K key) {\n List<V> values = store.get(key);\n return values != null ? values : Collections.<V>emptyList();\n }", "@Override\n public List<Map<String, Serializable>> getResult() {\n Preconditions.checkState(_finish, \"GetResult cannot be called before finish.\");\n List<Map<String, Serializable>> result = new ArrayList<Map<String, Serializable>>(_aggrFuncContextList.size());\n\n for (int i = 0; i < _aggrFuncContextList.size(); i++) {\n result.add(new HashMap<String, Serializable>());\n }\n\n Iterator<Pair<Long, String>> groupKeys = _groupKeyGenerator.getUniqueGroupKeys();\n while (groupKeys.hasNext()) {\n Pair<Long, String> idKeyPair = groupKeys.next();\n String stringGroupKey = idKeyPair.getSecond();\n\n for (int i = 0; i < _aggrFuncContextList.size(); i++) {\n double resultForGroupKey = _resultHolderArray[i].getResultForGroupKey(idKeyPair.getFirst());\n result.get(i).put(stringGroupKey, resultForGroupKey);\n }\n }\n return result;\n }" ]
[ "0.6529051", "0.6271143", "0.62569565", "0.61685073", "0.60824114", "0.60319346", "0.60301775", "0.60257304", "0.5984615", "0.59591484", "0.586843", "0.58090657", "0.5791193", "0.57851213", "0.5783883", "0.57629764", "0.57593244", "0.5724208", "0.57196856", "0.57159823", "0.57113177", "0.5705722", "0.57005805", "0.56429493", "0.5617709", "0.5589201", "0.5579341", "0.5571267", "0.5568671", "0.5553717", "0.5548204", "0.5537596", "0.55342263", "0.5529931", "0.551412", "0.5508821", "0.549811", "0.5484747", "0.54802334", "0.54457134", "0.54323894", "0.5429102", "0.5426553", "0.54240763", "0.5416948", "0.5409772", "0.5408112", "0.5407004", "0.54008", "0.5397003", "0.53739333", "0.53735596", "0.53611445", "0.53465027", "0.53429717", "0.53371733", "0.53358847", "0.53339714", "0.5322272", "0.5315785", "0.5307767", "0.5298407", "0.5287399", "0.52654064", "0.52603495", "0.5250264", "0.52447915", "0.52433735", "0.5235412", "0.5235338", "0.5233194", "0.52309906", "0.5216157", "0.52084494", "0.5206742", "0.52060515", "0.5202134", "0.51998085", "0.5191078", "0.518661", "0.51853156", "0.51818895", "0.5178286", "0.5176648", "0.5161013", "0.5160913", "0.51606", "0.5159061", "0.51440686", "0.5129319", "0.51276314", "0.5126056", "0.5121089", "0.51190466", "0.5104324", "0.5104194", "0.50972205", "0.50941217", "0.50920683", "0.5092052" ]
0.59357935
10
Recalculates the batch effect and batch confound information for datasets that have been updated in the last 24 hours.
@SuppressWarnings("unused") // Used by scheduler @Secured({ "GROUP_AGENT" }) void recalculateBatchInfo();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void recompute () {\n current_part.t_Cl = current_part.t_Cd = current_part.t_Cm = null;\n computeFlowAndRegenPlot();\n }", "public synchronized void updateTransdailyData() {\n Instant startTime = Instant.now();\n log.debug(\"start updateTransdailyData startTime:{}\", startTime.toEpochMilli());\n try {\n\n // query all group statistical info\n List<StatisticalGroupTransInfo> groupStatisticalList = groupService\n .queryLatestStatisticalTrans();\n\n // traverse group list\n traverseNetList(groupStatisticalList);\n\n } catch (Exception ex) {\n log.error(\"fail updateTransdailyData\", ex);\n }\n log.debug(\"end updateTransdailyData useTime:{}\",\n Duration.between(startTime, Instant.now()).toMillis());\n }", "private void expensesUpdateWaterfallChart() {\n\n waterfallData.clear();\n waterfallData = DBGetExpenses.forEachDayChallengeWasRunning(key1OfActiveChallenge, goal);\n //waterfall.data(waterfallData);\n //waterfallView.invalidate();\n }", "public abstract Map<Integer, QuantDataset> updatedDatasets();", "public void calc()\n\t\t\t\t\t\t{\n\t\t\t\t\t\tif(oldInfo.calcInfo!=null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\toldInfo.calcInfo.calc();\n\t\t\t\t\t\t\toldInfo.calcInfo=null;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//Filter particles\n\t\t\t\t\t\tfor(int id:oldInfo.keySet())\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tParticleInfo pInfo=oldInfo.get(id);\n\t\t\t\t\t\t\tif(filter.acceptParticle(id, pInfo))\n\t\t\t\t\t\t\t\tnewInfo.put(id,pInfo);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}", "public void updateCache() {\n\n log.info(\"Updating solar flare cache\");\n Date fallbackStartDate = DateHelper.getFallbackDate();\n solarFlareRepository.count()\n .map(total -> {\n if (total > 0) {\n solarFlareRepository.findTopByBeginTimeIsNotNullOrderByBeginTimeDesc()\n .map(solarFlare -> {\n log.info(\"Entries exist, performing incremental update\");\n log.info(\n \"Last entry found at {}\",\n DateHelper.getPrintableString(solarFlare.getBeginTime())\n );\n collectForRange(solarFlare.getBeginTime(), null);\n return solarFlare;\n })\n .subscribe();\n } else {\n log.info(\"No entries found, performing a full import\");\n collectForRange(fallbackStartDate, null);\n }\n return total;\n })\n .subscribe();\n }", "private void refreshDataCache(){\n this.stageplaatsen = dbFacade.getAllStageplaatsen();\n this.bedrijven = dbFacade.getAllBedrijven();\n }", "public void updateChart(){\n for(Pair<Number,Number> p : sss.getPopulationQueue()){\n this.population.getData().add(new XYChart.Data<>(p.getKey(),p.getValue()));\n }\n for(Pair<Number,Number> p : sss.getDeathsQueue()){\n this.deaths.getData().add(new XYChart.Data<>(p.getKey(),p.getValue()));\n }\n for(Pair<Number,Number> p : sss.getInfectionsQueue()){\n this.infections.getData().add(new XYChart.Data<>(p.getKey(),p.getValue()));\n }\n for(Pair<Number,Number> p : sss.getHealsQueue()){\n this.heals.getData().add(new XYChart.Data<>(p.getKey(),p.getValue()));\n }\n sss.clearPopulationQueue();\n sss.clearDeathsQueue();\n sss.clearInfectionsQueue();\n sss.clearHealsQueue();\n }", "private synchronized void updateData() {\n if (nanoseconds >= 1000000000) {\n fps = frames;\n ups = updates;\n nanoseconds = nanoseconds - 1000000000;\n frames = 0;\n updates = 0;\n }\n\n long elapsedTime = System.nanoTime() - oldTime;\n oldTime = oldTime + elapsedTime;\n nanoseconds = nanoseconds + elapsedTime;\n\n particleSimulator.update(elapsedTime * 1e-9);\n\n // An update occurred, increment.\n updates++;\n\n // Ask for a repaint if we know of a component to repaint\n if (gameDrawingComponent != null) {\n gameDrawingComponent.repaint();\n }\n }", "@Override\n\tpublic void update(int timeStep)\n\t{\n\t\tthis.checkForNewAppliancesAndUpdateConstants();\n\n\t\tdouble[] ownersCostSignal = this.owner.getPredictedCostSignal();\n\t\tthis.dayPredictedCostSignal = Arrays.copyOfRange(ownersCostSignal, timeStep % ownersCostSignal.length, timeStep\n\t\t\t\t% ownersCostSignal.length + this.ticksPerDay);\n\n\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t{\n\t\t\tthis.mainContext.logger.trace(\"update\");\n\t\t}\n\n\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t{\n\t\t\tthis.mainContext.logger.trace(\"dayPredictedCostSignal: \" + Arrays.toString(this.dayPredictedCostSignal));\n\t\t}\n\n\t\tthis.dayPredictedCostSignal = ArrayUtils\n\t\t\t\t.offset(ArrayUtils.multiply(this.dayPredictedCostSignal, this.predictedCostToRealCostA), this.realCostOffsetb);\n\n\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t{\n\t\t\tthis.mainContext.logger.trace(\"afterOffset dayPredictedCostSignal: \" + Arrays.toString(this.dayPredictedCostSignal));\n\t\t}\n\n\t\tif (this.owner.isHasElectricalSpaceHeat())\n\t\t{\n\t\t\tthis.setPointProfile = Arrays.copyOf(this.owner.getSetPointProfile(), this.owner.getSetPointProfile().length);\n\t\t\tthis.optimisedSetPointProfile = Arrays.copyOf(this.setPointProfile, this.setPointProfile.length);\n\t\t\tthis.currentTempProfile = Arrays.copyOf(this.setPointProfile, this.setPointProfile.length);\n\t\t\tthis.heatPumpDemandProfile = this.calculateEstimatedSpaceHeatPumpDemand(this.setPointProfile);\n\t\t\t// (20/01/12) Check if sum of <heatPumpDemandProfile> is consistent\n\t\t\t// at end day\n\t\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t\t{\n\t\t\t\tthis.mainContext.logger\n\t\t\t\t\t\t.trace(\"Sum(Wattbox estimated heatPumpDemandProfile): \" + ArrayUtils.sum(this.heatPumpDemandProfile));\n\t\t\t}\nif (\t\t\tthis.mainContext.logger.isTraceEnabled()) {\n\t\t\tthis.mainContext.logger.trace(\"Sum(Wattbox estimated heatPumpDemandProfile): \"\n\t\t\t\t\t+ ArrayUtils.sum(this.calculateEstimatedSpaceHeatPumpDemand(this.optimisedSetPointProfile)));\n}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthis.heatPumpDemandProfile = Arrays.copyOf(this.noElecHeatingDemand, this.noElecHeatingDemand.length);\n\t\t}\n\n\t\tif (this.owner.isHasElectricalWaterHeat())\n\t\t{\n\t\t\tthis.hotWaterVolumeDemandProfile = Arrays.copyOfRange(this.owner.getBaselineHotWaterVolumeProfile(), (timeStep % this.owner\n\t\t\t\t\t.getBaselineHotWaterVolumeProfile().length), (timeStep % this.owner.getBaselineHotWaterVolumeProfile().length)\n\t\t\t\t\t+ this.ticksPerDay);\n\t\t\tthis.waterHeatDemandProfile = ArrayUtils.multiply(this.hotWaterVolumeDemandProfile, Consts.WATER_SPECIFIC_HEAT_CAPACITY\n\t\t\t\t\t/ Consts.KWH_TO_JOULE_CONVERSION_FACTOR\n\t\t\t\t\t* (this.owner.waterSetPoint - ArrayUtils.min(Consts.MONTHLY_MAINS_WATER_TEMP) / Consts.DOMESTIC_HEAT_PUMP_WATER_COP));\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthis.waterHeatDemandProfile = Arrays.copyOf(this.noElecHeatingDemand, this.noElecHeatingDemand.length);\n\t\t}\n\n\t\tif (this.coldAppliancesControlled && this.owner.isHasColdAppliances())\n\t\t{\n\t\t\tthis.optimiseColdProfile(timeStep);\n\t\t}\n\n\t\tif (this.wetAppliancesControlled && this.owner.isHasWetAppliances())\n\t\t{\n\t\t\tthis.optimiseWetProfile(timeStep);\n\t\t}\n\n\t\t// Note - optimise space heating first. This is so that we can look for\n\t\t// absolute\n\t\t// heat pump limit and add the cost of using immersion heater (COP 0.9)\n\t\t// to top\n\t\t// up water heating if the heat pump is too great\n\t\tif (this.spaceHeatingControlled && this.owner.isHasElectricalSpaceHeat())\n\t\t{\n\t\t\tif (this.owner.hasStorageHeater)\n\t\t\t{\n\t\t\t\tthis.optimiseStorageChargeProfile();\n\t\t\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t\t\t{\n\t\t\t\t\tthis.mainContext.logger.trace(\"Optimised storage heater profile = \" + Arrays.toString(this.heatPumpOnOffProfile));\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\tthis.optimiseSetPointProfile();\n\t\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t\t{\n\t\t\t\tthis.mainContext.logger.trace(\"Optimised set point profile = \" + Arrays.toString(this.heatPumpOnOffProfile));\n\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (this.waterHeatingControlled && this.owner.isHasElectricalWaterHeat())\n\t\t{\n\t\t\tthis.optimiseWaterHeatProfileWithSpreading();\n\t\t}\n\n\t\tif (this.eVehicleControlled && this.owner.isHasElectricVehicle())\n\t\t{\n\t\t\tthis.optimiseEVProfile();\n\t\t}\n\n\t\t// At the end of the step, set the temperature profile for today's\n\t\t// (which will be yesterday's when it is used)\n\t\tthis.priorDayExternalTempProfile = this.owner.getContext().getAirTemperature(timeStep, this.ticksPerDay);\n\t}", "public void dataChanged() {\n // get latest data\n runs = getLatestRuns();\n wickets = getLatestWickets();\n overs = getLatestOvers();\n\n currentScoreDisplay.update(runs, wickets, overs);\n averageScoreDisplay.update(runs, wickets, overs);\n }", "public void dataSetChanged() {\n\n\t\tif (!isPackValid())\n\t\t\treturn;\n\n\t\t// update charts:\n\t\tupdateCharts();\n\n\t}", "public void update() {\r\n\t\tremoveAll();\r\n\t\tdrawGrid();\r\n\t\tplotDecades();\r\n\t\tgetEntries();\r\n\t}", "public void updateTimeSpansCache()\n {\n _timeSpans = null;\n getTimeSpans();\n }", "public void refreshEffects() {\n Iterator<Map.Entry<Position, AreaEffect>> iterator = activeEffects.entrySet().iterator();\n\n while (iterator.hasNext()) {\n Map.Entry<Position, AreaEffect> entry = iterator.next();\n if (entry.getValue().getRemainingDuration() == 0) {\n iterator.remove();\n } else {\n entry.getValue().decrementRemainingDuration();\n }\n }\n }", "@Secured({ \"GROUP_AGENT\" })\n void recalculateExperimentBatchInfo( ExpressionExperiment ee );", "@SuppressWarnings({ \"deprecation\", \"serial\" })\n\tprivate void doBatchCompute() {\n\t\tHConnection hConnection = null;\n\t\tHTableInterface hTableInterface = null;\n\t\tHBaseAdmin admin = null;\n\t\ttry {\n\t\t\t//scan the events table\n\t\t\thConnection = HConnectionManager.createConnection(conf);\n\t\t\thTableInterface = hConnection.getTable(DashboardUtils.curatedEvents);\n\t\t\tadmin = new HBaseAdmin(conf);\n\t\t\t\n\t\t\t//create an empty dataset here and do union or intersections in subsequent nested iterations\n\t\t\tList<DatasetBean> emptyFeed = new ArrayList<DatasetBean>();\n\t\t\tDatasetBean datasetBean = new DatasetBean();\n\t\t\t\n\t\t\t//start scanning through the table\n\t\t\tScan scan = new Scan();\n\t\t\tResultScanner scanner = hTableInterface.getScanner(scan);\n\t\t\tfor(Result r = scanner.next(); r != null; r = scanner.next()) {\n\t\t\t\t//to stop scanner from creating too many threads\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t} catch(InterruptedException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//cumulative set which is empty containing the DatasetBean class object\n\t\t\t\tDataset<Row> cumulativeSet = sparkSession.createDataFrame(emptyFeed, datasetBean.getClass());\n\t\t\t\t\n\t\t\t\t//scan through every row of feedEvents table and process each corresponding event\n\t\t\t\tif(!r.isEmpty()) {\n\t\t\t\t\teventTable = Bytes.toString(r.getRow());\n\t\t\t\t\t\n\t\t\t\t\t//create table if it didn't already exist\n\t\t\t\t\tif(!admin.tableExists(eventTable)) {\n\t\t\t\t\t\tHTableDescriptor creator = new HTableDescriptor(eventTable);\n\t\t\t\t\t\tcreator.addFamily(new HColumnDescriptor(DashboardUtils.eventTab_cf));\n\t\t\t\t\t\tadmin.createTable(creator);\n\t\t\t\t\t\tlogger.info(\"**************** just created the following table in batch process since it didn't exist: \" + eventTable);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//declare the dataset storing the data from betaFeed\n\t\t\t\t\tDataset<Row> feedDataSet;\n\t\t\t\t\t//long eventdatacount = eventmap.get(eventTable);\n\t\t\t\t\t\n\t\t\t\t\tcurrentStore = RSSFeedUtils.betatable;\n\t\t\t\t\t//this dataset is populated with betaFeed data\n\t\t\t\t\tfeedDataSet = loadbetaFeed();\n\t\t\t\t\t\n\t\t\t\t\t//store the data as a temporary table to process via sparkSQL\n\t\t\t\t\tfeedDataSet.createOrReplaceTempView(currentStore);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tfeedevents = Job.getInstance(conf);\n\t\t\t\t\tfeedevents.getConfiguration().set(TableOutputFormat.OUTPUT_TABLE, eventTable);\n\t\t\t\t\tfeedevents.setOutputFormatClass(TableOutputFormat.class);\n\t\t\t\t\t\n\t\t\t\t\t//read the tags attribute of the event, and start reading it from left to right....tags are in format as in the documentation\n\t\t\t\t\t//break the OR tag, followed by breaking the AND tag, followed by processing each tag or event contained in it\n\t\t\t\t\tString tags = \"\";\n\t\t\t\t\tif(r.containsColumn(Bytes.toBytes(DashboardUtils.curatedEvents_cf), Bytes.toBytes(DashboardUtils.curatedTags))) {\n\t\t\t\t\t\ttags = Bytes.toString(r.getValue(Bytes.toBytes(DashboardUtils.curatedEvents_cf), Bytes.toBytes(DashboardUtils.curatedTags)));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tString backupTagStr = tags;\n\t\t\t\t\t\n\t\t\t\t\twhile(tags.contains(\")\")) {\n\t\t\t\t\t\tString threstr=null;\n\t\t\t\t\t\tSystem.out.println(\"tags:\" + tags.trim());\n\t\t\t\t\t\t\n\t\t\t\t\t\tString[] ortagstrings = tags.trim().split(\"OR\");\n\t\t\t\t\t\tfor(String ortag : ortagstrings) {\n\t\t\t\t\t\t\tSystem.out.println(\"val of ortag:\" + ortag);\n\t\t\t\t\t\t\tthrestr = ortag.trim();\n\t\t\t\t\t\t\t//these are the parameters being fetched and populated in the events...i.e, feedname,totle,link,description,categories and date\n\t\t\t\t\t\t\tString qry =\"SELECT rssFeed, title, articleLink, description, categories, articleDate FROM \" + currentStore + \" WHERE \";\n\t\t\t\t\t\t\tStringBuilder querybuilder = new StringBuilder(qry);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tSystem.out.println(\"tag:\"+ortag.trim());\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString[] andtagstrings = ortag.trim().split(\"AND\");\n\t\t\t\t\t\t\tDataset<Row> andSet = sparkSession.createDataFrame(emptyFeed, datasetBean.getClass());\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString proctag=null;\n\t\t\t\t\t\t\tfor(int i=0; i<andtagstrings.length; i++) {\n\t\t\t\t\t\t\t\tproctag = andtagstrings[i];\n\t\t\t\t\t\t\t\tSystem.out.println(\"process tag:\" + proctag);\n\t\t\t\t\t\t\t\t//if the part of the tag being processed is an event, open up a second stream to load data from corresponding table\n\t\t\t\t\t\t\t\tif(proctag.trim().replaceAll(\"\\\\(\", \"\").startsWith(\"EVENT\")) {\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"qwerty:\" + proctag.trim());\n\t\t\t\t\t\t\t\t\tString curatedevent = proctag.trim().substring(6, proctag.trim().length()).trim().replaceAll(\" \", \"__\").replaceAll(\"\\\\)\", \"\");\n\t\t\t\t\t\t\t\t\tlogger.info(\"################################################################################# event:\"+curatedevent);\n\t\t\t\t\t\t\t\t\t//dataset comes here\n\t\t\t\t\t\t\t\t\tif(admin.tableExists(curatedevent)) {\n\t\t\t\t\t\t\t\t\t\tDataset<Row> eventdataset = loadcuratedEvent(curatedevent);\n\t\t\t\t\t\t\t\t\t\tlogger.info(\"**************************************************** event:\" + curatedevent + \" while processing:\"+eventTable);\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tif(i==0) {\n\t\t\t\t\t\t\t\t\t\t\tandSet = eventdataset.union(andSet);\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tif(andSet.count() == 0) {\n\t\t\t\t\t\t\t\t\t\t\t\tandSet = eventdataset.union(andSet);\n\t\t\t\t\t\t\t\t\t\t\t} else if(andSet.count() > 0) {\n\t\t\t\t\t\t\t\t\t\t\t\tandSet = eventdataset.intersect(andSet);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tlogger.info(\"*************************** event \" + curatedevent + \" does not exist *********************************\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//if it's a normal tag, make a sparkSQL query out of it\n\t\t\t\t\t\t\t\t} else if(!proctag.trim().replaceAll(\"\\\\(\", \"\").startsWith(\"EVENT\")) {\n\t\t\t\t\t\t\t\t\tquerybuilder.append(\"categories RLIKE '\" + proctag.trim().replaceAll(\"\\\\(\", \"\").replaceAll(\"\\\\)\", \"\") + \"' AND \");\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//once the tag is fully processed, merge all data points and store in a resultant dataset\n\t\t\t\t\t\t\tif(querybuilder.toString().length() > qry.length()) {\n\t\t\t\t\t\t\t\t//logger.info(\"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ inside query string ###############################\");\n\t\t\t\t\t\t\t\tquerybuilder = new StringBuilder(querybuilder.toString().substring(0, querybuilder.toString().length() -5));\n\t\t\t\t\t\t\t\t//dataset comes here\n\t\t\t\t\t\t\t\tDataset<Row> queryset = sparkSession.sql(querybuilder.toString());\n\n\t\t\t\t\t\t\t\t//id the set it empty, fill it with the single data point\n\t\t\t\t\t\t\t\tif(andSet.count() == 0 && !backupTagStr.contains(\"EVENT\")) {\n\t\t\t\t\t\t\t\t\tandSet = queryset.union(andSet);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tlogger.info(\"$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ doing query string with zero count:\" + eventTable);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tlogger.info(\"@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ doing intersect for query:\" + eventTable);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tandSet.createOrReplaceTempView(\"andSet1\");\n\t\t\t\t\t\t\t\t\tqueryset.createOrReplaceTempView(\"querySet1\");\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tDataset<Row> fSet = sparkSession.sql(\"SELECT DISTINCT(a.*) FROM andSet1 a INNER JOIN querySet1 b ON a.title = b.title\");\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tandSet = fSet;\n\t\t\t\t\t\t\t\t\tqueryset.unpersist();\n\t\t\t\t\t\t\t\t\tfSet.unpersist();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tcumulativeSet = andSet.union(cumulativeSet);\n\t\t\t\t\t\t\tandSet.unpersist();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\ttags = tags.substring(threstr.length(), tags.length()).trim().replaceAll(\"\\\\)\", \"\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tlogger.info(\"########################################################################################################### table:\"+eventTable);\n\t\t\t\t\t\n\t\t\t\t\tcumulativeSet.createOrReplaceTempView(\"cumulativeEvent\");\n\t\t\t\t\n\t\t\t\t\t//as a double check, only fetch distinct records from all the merges...done via sparkSQL\n\t\t\t\t\tDataset<Row> finalSet = sparkSession.sql(\"SELECT DISTINCT(*) FROM cumulativeEvent\");\n\t\t\t\t\t\n\t\t\t\t\tJavaRDD<Row> eventRDD = finalSet.toJavaRDD();\n\t\t\t\t\tJavaPairRDD<ImmutableBytesWritable, Put> eventpairRDD = eventRDD.mapToPair(new PairFunction<Row, ImmutableBytesWritable, Put>() {\n\n\t\t\t\t\t\tpublic Tuple2<ImmutableBytesWritable, Put> call(Row arg0) throws Exception {\n\t\t\t\t\t\t\tObject link = arg0.getAs(\"articleLink\");\n\t\t\t\t\t\t\tif((String)link != null) {\n\t\t\t\t\t\t\t\t//parameters being populated into the events table\n\t\t\t\t\t\t\t\treturn DashboardUtils.objectsofCuratedEvents(arg0.getAs(\"rssFeed\"), arg0.getAs(\"title\"), link, arg0.getAs(\"description\"), \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\targ0.getAs(\"categories\"), arg0.getAs(\"articleDate\"));\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\treturn DashboardUtils.objectsofCuratedEvents(arg0.getAs(\"rssFeed\"), arg0.getAs(\"title\"), \"link not available\", arg0.getAs(\"description\"), \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\targ0.getAs(\"categories\"), arg0.getAs(\"articleDate\"));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\tlogger.info(\"******************************** going to dump curated events data in hbase for event: \" + eventTable);\n\t\t\t\t\teventpairRDD.saveAsNewAPIHadoopDataset(feedevents.getConfiguration());\n\t\t\t\t\t\n\t\t\t\t\teventRDD.unpersist();\n\t\t\t\t\tfinalSet.unpersist();\n\t\t\t\t\tcumulativeSet.unpersist();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tscanner.close();\n\t\t\thTableInterface.close();\n\t\t\thConnection.close();\n\t\t\t\n\t\t} catch(IOException e) {\n\t\t\tlogger.info(\"error while establishing Hbase connection...\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void updateBatches(ImageBatches batches) {\r\n\t\tthis.batches = batches;\r\n\t\tif (batches == null) {\r\n\t\t\tthis.batch = new ImageBatch[0];\r\n\t\t} else {\r\n\t\t\tthis.batch = batches.getBatches();\r\n\t\t}\r\n\t\tfireTableDataChanged();\r\n\t}", "private void updateDataFields(final Function<Table<?>, Result<? extends Record>> fetcher) {\n final long updateData = System.nanoTime();\n for (final Map.Entry<Table<? extends Record>, IRTable> entry : jooqTableToIRTable.entrySet()) {\n final Table<? extends Record> table = entry.getKey();\n final IRTable irTable = entry.getValue();\n final long start = System.nanoTime();\n final Result<? extends Record> recentData = fetcher.apply(table);\n Objects.requireNonNull(recentData, \"Table Result<?> was null\");\n final long select = System.nanoTime();\n irTable.updateValues(recentData);\n final long updateValues = System.nanoTime();\n LOG.info(\"updateDataFields for table {} took {} ns to fetch {} rows from DB, \" +\n \"and {} ns to reflect in IRTables\",\n table.getName(), (select - start), recentData.size(), (System.nanoTime() - updateValues));\n }\n compiler.updateData(irContext, backend);\n LOG.info(\"compiler.updateData() took {}ns to complete\", (System.nanoTime() - updateData));\n }", "public void update(){\r\n\t\tthis.loadRecords();\r\n\t}", "public void resetCache() {\n logger.info(\"resetCache(): refilling clinical attribute cache\");\n\n Date dateOfCurrentCacheRefresh = new Date();\n ArrayList<ClinicalAttributeMetadata> latestClinicalAttributeMetadata = null;\n // latestOverrides is a map of study-id to list of overridden ClinicalAttributeMetadata objects\n Map<String, ArrayList<ClinicalAttributeMetadata>> latestOverrides = null;\n\n // attempt to refresh ehcache stores seperately and store success status\n boolean failedClinicalAttributeMetadataCacheRefresh = false;\n boolean failedOverridesCacheRefresh = false;\n try {\n clinicalAttributeMetadataPersistentCache.updateClinicalAttributeMetadataInPersistentCache();\n } catch (RuntimeException e) {\n logger.error(\"resetCache(): failed to pull clinical attributes from repository. Error message returned: \" + e.getMessage());\n failedClinicalAttributeMetadataCacheRefresh = true;\n }\n\n try {\n clinicalAttributeMetadataPersistentCache.updateClinicalAttributeMetadataOverridesInPersistentCache();\n } catch (RuntimeException e) {\n logger.error(\"resetCache(): failed to pull overrides from repository. Error message returned: \" + e.getMessage());\n failedOverridesCacheRefresh = true;\n }\n\n // regardless of whether ehcache was updated with new data - use that data to populate modeled object caches\n // ensures app starts up (between tomcat restarts) if TopBraid is down\n logger.info(\"Loading modeled object cache from EHCache\");\n try {\n // this will throw an exception if we cannot connect to TopBraid AND cache is corrupt\n latestClinicalAttributeMetadata = clinicalAttributeMetadataPersistentCache.getClinicalAttributeMetadataFromPersistentCache();\n latestOverrides = clinicalAttributeMetadataPersistentCache.getClinicalAttributeMetadataOverridesFromPersistentCache();\n } catch (Exception e) {\n try {\n // this will throw an exception if backup is unavailable\n logger.error(\"Unable to load modeled object cache from default EHCache... attempting to read from backup\");\n latestClinicalAttributeMetadata = clinicalAttributeMetadataPersistentCache.getClinicalAttributeMetadataFromPersistentCacheBackup();\n latestOverrides = clinicalAttributeMetadataPersistentCache.getClinicalAttributeMetadataOverridesFromPersistentCacheBackup();\n if (latestClinicalAttributeMetadata == null || latestOverrides == null) {\n throw new FailedCacheRefreshException(\"No data found in specified backup cache location...\", new Exception());\n }\n } catch (Exception e2) {\n logger.error(\"Unable to load modeled object cache from backup EHCache...\");\n throw new FailedCacheRefreshException(\"Unable to load data from all backup caches...\", new Exception());\n }\n }\n\n // backup cache at this point (maybe backup after each successful update above?)\n if (!failedClinicalAttributeMetadataCacheRefresh && !failedOverridesCacheRefresh) {\n logger.info(\"resetCache(): cache update succeeded, backing up cache...\");\n try {\n clinicalAttributeMetadataPersistentCache.backupClinicalAttributeMetadataPersistentCache(latestClinicalAttributeMetadata);\n clinicalAttributeMetadataPersistentCache.backupClinicalAttributeMetadataOverridesPersistentCache(latestOverrides);\n logger.info(\"resetCache(): succesfully backed up cache\");\n } catch (Exception e) {\n logger.error(\"resetCache(): failed to backup cache: \" + e.getMessage());\n }\n }\n\n HashMap<String, ClinicalAttributeMetadata> latestClinicalAttributeMetadataCache = new HashMap<String, ClinicalAttributeMetadata>();\n for (ClinicalAttributeMetadata clinicalAttributeMetadata : latestClinicalAttributeMetadata) {\n latestClinicalAttributeMetadataCache.put(clinicalAttributeMetadata.getColumnHeader(), clinicalAttributeMetadata);\n }\n\n // latestOverridesCache is a map of study-id to map of clinical attribute name to overridden ClinicalAttributeMetadata object\n HashMap<String, Map<String,ClinicalAttributeMetadata>> latestOverridesCache = new HashMap<String, Map<String, ClinicalAttributeMetadata>>();\n for (Map.Entry<String, ArrayList<ClinicalAttributeMetadata>> entry : latestOverrides.entrySet()) {\n HashMap<String, ClinicalAttributeMetadata> clinicalAttributesMetadataMapping = new HashMap<String, ClinicalAttributeMetadata>();\n for (ClinicalAttributeMetadata clinicalAttributeMetadata : entry.getValue()) {\n fillOverrideAttributeWithDefaultValues(clinicalAttributeMetadata, latestClinicalAttributeMetadataCache.get(clinicalAttributeMetadata.getColumnHeader()));\n clinicalAttributesMetadataMapping.put(clinicalAttributeMetadata.getColumnHeader(), clinicalAttributeMetadata);\n }\n latestOverridesCache.put(entry.getKey(), clinicalAttributesMetadataMapping);\n }\n\n clinicalAttributeCache = latestClinicalAttributeMetadataCache;\n logger.info(\"resetCache(): refilled cache with \" + latestClinicalAttributeMetadata.size() + \" clinical attributes\");\n overridesCache = latestOverridesCache;\n logger.info(\"resetCache(): refilled overrides cache with \" + latestOverrides.size() + \" overrides\");\n\n if (failedClinicalAttributeMetadataCacheRefresh || failedOverridesCacheRefresh) {\n logger.info(\"Unable to update cache with latest data from TopBraid... falling back on EHCache store.\");\n throw new FailedCacheRefreshException(\"Failed to refresh cache\", new Exception());\n } else {\n dateOfLastCacheRefresh = dateOfCurrentCacheRefresh;\n logger.info(\"resetCache(): cache last refreshed on: \" + dateOfLastCacheRefresh.toString());\n }\n }", "public void updateData() {}", "public void refresh() {\r\n numberThreshold = hasNumberThreshold();\r\n dateThreshold = hasDateThreshold();\r\n }", "@Override\n public void refreshDataEntries() {\n }", "private double updateEstimates(long sleep) {\r\n \t\t// Prune datasets\r\n \t\twhile (startupTimeHistory.size() > poolConfig.averageCount) {\r\n \t\t\tstartupTimeHistory.remove(0);\r\n \t\t}\r\n \t\twhile (requestTimeHistory.size() > poolConfig.averageCount) {\r\n \t\t\trequestTimeHistory.remove(0);\r\n \t\t}\r\n \r\n \t\t// Do estimates\r\n \t\tlong totalTime = 0;\r\n \t\tfor (long t : startupTimeHistory) {\r\n \t\t\ttotalTime += t;\r\n \t\t}\r\n \t\tstartupTimeEstimate = totalTime / startupTimeHistory.size();\r\n \r\n \t\t// Math.max(..., 1) to avoid divide by zeros.\r\n \t\tdemandEstimate = requestTimeHistory.size()\r\n \t\t\t\t/ Math.max(System.currentTimeMillis() - requestTimeHistory.get(0), 1.0);\r\n \r\n \t\t// Guestimate demand for N\r\n \t\tdouble estimate = demandEstimate * poolConfig.safetyMultiplier * sleep;\r\n \t\treturn Math.min(Math.max(estimate, poolConfig.poolMin), poolConfig.poolMax);\r\n \t}", "private void refresh() {\n updatePopulationInfo();\n\n // Update current production info\n updateProductionInfo();\n\n // Update the building grid\n updateBuildingInfo();\n\n // Update the warehouse display\n updateWarehouse();\n\n // Update the list of ships/carriers in port\n updateInPortInfo();\n\n // Update the list of cargo on the selected carrier\n updateCargoInfo();\n }", "private void updateAll() {\n updateAction();\n updateQueryViews();\n }", "private void exeRefresh()\n\t{\n\t this.setCursor(cl_dat.M_curWTSTS_pbst);\n\t\tgetDSPMSG(\"Before\");\n\t\tcl_dat.M_flgLCUPD_pbst = true;\n\t\tsetMSG(\"Decreasing Stock Master\",'N');\n\t\tdecSTMST();\n\t\tsetMSG(\"Updating Stock Master\",'N');\n\t\texeSTMST();\n\t\tupdCDTRN(\"D\"+cl_dat.M_strCMPCD_pbst,\"FGXXRCT\");\t\n\t\tupdCDTRN(\"D\"+cl_dat.M_strCMPCD_pbst,\"FGXXISS\");\n\t\t/*if(chkREFRCT.isSelected())\n\t\t{\n\t\t\tsetMSG(\"Refreshing Receipt Masters.\",'N');\n\t\t\t\n\t\t}\n\t\tif(chkREFISS.isSelected())\n\t\t{\n\t\t\tsetMSG(\"Refreshing Issue Masters.\",'N');\n\t\t\t\n\t\t}*/\n\t\tgetDSPMSG(\"After\");\n\t\tif(cl_dat.M_flgLCUPD_pbst)\n\t\t\tsetMSG(\"Data refreshed successfully\",'N');\n\t\telse\n\t\t\tsetMSG(\"Data not refreshed successfully\",'E');\n\t\tthis.setCursor(cl_dat.M_curDFSTS_pbst);\n\t\n\t}", "@Override\n\tprotected void updateDataFromRead(CountedData counter, final GATKSAMRecord gatkRead, final int offset, final byte refBase) {\n Object[][] covars;\n\t\ttry {\n\t\t\tcovars = (Comparable[][]) gatkRead.getTemporaryAttribute(getCovarsAttribute());\n\t\t\t// Using the list of covariate values as a key, pick out the RecalDatum from the data HashMap\n\t NestedHashMap data;\n\t data = dataManager.data;\n\t final Object[] key = covars[offset];\n\t\t\tBisulfiteRecalDatumOptimized datum = (BisulfiteRecalDatumOptimized) data.get( key );\n\t if( datum == null ) { // key doesn't exist yet in the map so make a new bucket and add it\n\t // initialized with zeros, will be incremented at end of method\n\t datum = (BisulfiteRecalDatumOptimized)data.put( new BisulfiteRecalDatumOptimized(), true, (Object[])key );\n\t }\n\n\t // Need the bases to determine whether or not we have a mismatch\n\t final byte base = gatkRead.getReadBases()[offset];\n\t final long curMismatches = datum.getNumMismatches();\n\t final byte baseQual = gatkRead.getBaseQualities()[offset];\n\n\t // Add one to the number of observations and potentially one to the number of mismatches\n\t datum.incrementBaseCounts( base, refBase, baseQual );\n\t increaseCountedBases(counter,1);\n\t\t\tincreaseNovelCountsBases(counter,1);\n\t\t\tincreaseNovelCountsMM(counter,(datum.getNumMismatches() - curMismatches));\n\t \n\t\t} catch (IllegalArgumentException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t} catch (IllegalAccessException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t} catch (InstantiationException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n //counter.novelCountsBases++;\n \n //counter.novelCountsMM += datum.getNumMismatches() - curMismatches; // For sanity check to ensure novel mismatch rate vs dnsnp mismatch rate is reasonable\n \n }", "public void ResetDailyData(long _new_ref_time) {\n reference_time = _new_ref_time;\n\n last_acc_timestamp = 0;\n last_gyro_timestamp = 0;\n\n last_acc_x = 0;\n last_gyro_x = 0;\n\n velocity_x = 0;\n angle_z = 0;\n\n DailyDistanceCoveredFw = 0;\n DailyDistanceCoveredBw = 0;\n DailyAngleCoveredR = 0;\n DailyAngleCoveredL = 0;\n\n acc_data_counter = 0;\n gyro_data_counter = 0;\n\n acc_data_counter_calibration = 0;\n gyro_data_counter_calibration = 0;\n\n //TODO: verificare se serve resettare anche questi\n HourlyAngleCovered = 0;\n HourlyDistanceCovered = 0;\n\n\n //TODO: verificare se sia eventualmente necessario azzerare il tutto\n if (false) {\n for (int i = 0; i < NUM_OF_SAMPLES; i++) {\n AccXDataArray[i] = 0;\n AccYDataArray[i] = 0;\n AccZDataArray[i] = 0;\n\n GyroXDataArray[i] = 0;\n GyroYDataArray[i] = 0;\n GyroZDataArray[i] = 0;\n\n AccTimestampArray[i] = 0;\n GyroTimestampArray[i] = 0;\n }\n }\n }", "private void refreshTableForUpdate()\n {\n //Was updating the values but don't believe this is necessary, as like budget items\n //a loss amount will stay the same unless changed by the user (later on it might be the\n //case that it can increase/decrease by a percentage but not now...)\n /*\n BadBudgetData bbd = ((BadBudgetApplication) this.getApplication()).getBadBudgetUserData();\n for (MoneyLoss loss : bbd.getLosses())\n {\n TextView valueView = valueViews.get(loss.expenseDescription());\n valueView.setText(BadBudgetApplication.roundedDoubleBB(loss.lossAmount()));\n }\n */\n }", "private synchronized void update() {\n if (upToDate) return; // nothing to do\n productionAndConsumption.clear();\n netProduction.clear();\n goodsUsed.clear();\n ProductionMap production = new ProductionMap();\n for (ColonyTile colonyTile : colony.getColonyTiles()) {\n List<AbstractGoods> p = colonyTile.getProduction();\n if (!p.isEmpty()) {\n production.add(p);\n ProductionInfo info = new ProductionInfo();\n info.addProduction(p);\n productionAndConsumption.put(colonyTile, info);\n for (AbstractGoods goods : p) {\n goodsUsed.add(goods.getType());\n netProduction.incrementCount(goods.getType().getStoredAs(), goods.getAmount());\n }\n }\n }\n\n GoodsType bells = colony.getSpecification().getGoodsType(\"model.goods.bells\");\n int unitsThatUseNoBells = colony.getSpecification().getInteger(\"model.option.unitsThatUseNoBells\");\n int amount = Math.min(unitsThatUseNoBells, colony.getUnitCount());\n ProductionInfo bellsInfo = new ProductionInfo();\n bellsInfo.addProduction(new AbstractGoods(bells, amount));\n productionAndConsumption.put(this, bellsInfo);\n netProduction.incrementCount(bells, amount);\n\n for (Consumer consumer : colony.getConsumers()) {\n Set<Modifier> modifier = consumer.getModifierSet(\"model.modifier.consumeOnlySurplusProduction\");\n List<AbstractGoods> goods = new ArrayList<AbstractGoods>();\n for (AbstractGoods g : consumer.getConsumedGoods()) {\n goodsUsed.add(g.getType());\n AbstractGoods surplus = new AbstractGoods(production.get(g.getType()));\n if (modifier.isEmpty()) {\n surplus.setAmount(surplus.getAmount() + getGoodsCount(g.getType()));\n } else {\n surplus.setAmount((int) FeatureContainer.applyModifierSet(surplus.getAmount(),\n null, modifier));\n }\n goods.add(surplus);\n }\n ProductionInfo info = null;\n if (consumer instanceof Building) {\n Building building = (Building) consumer;\n AbstractGoods output = null;\n GoodsType outputType = building.getGoodsOutputType();\n if (outputType != null) {\n goodsUsed.add(outputType);\n output = new AbstractGoods(production.get(outputType));\n output.setAmount(output.getAmount() + getGoodsCount(outputType));\n }\n info = building.getProductionInfo(output, goods);\n } else if (consumer instanceof Unit) {\n info = ((Unit) consumer).getProductionInfo(goods);\n } else if (consumer instanceof BuildQueue) {\n info = ((BuildQueue<?>) consumer).getProductionInfo(goods);\n }\n if (info != null) {\n production.add(info.getProduction());\n production.remove(info.getConsumption());\n for (AbstractGoods g : info.getProduction()) {\n netProduction.incrementCount(g.getType().getStoredAs(), g.getAmount());\n }\n for (AbstractGoods g : info.getConsumption()) {\n netProduction.incrementCount(g.getType().getStoredAs(), -g.getAmount());\n }\n productionAndConsumption.put(consumer, info);\n }\n }\n this.productionAndConsumption = productionAndConsumption;\n this.netProduction = netProduction;\n upToDate = true;\n }", "private void refreshGoalData () {\n DateTime now = DateTime.now();\n if((now.getWeekOfWeekyear() > userGoals.getWeekOfYear()) || now.getWeekOfWeekyear() == 0 ) {\n userGoals.setWeekOfYear(now.getWeekOfWeekyear());\n userGoals.setRunsPerWeekActual(0);\n userGoals.setMilesPerWeekActual(0.0);\n }\n\n //Calculates weekly mileage and runs per week\n double mileage = 0.0;\n int numOfRuns = 0;\n if(runMap != null && !(runMap.isEmpty())) {\n //Get current year and current week of the year\n int year = now.getYear();\n int currWeek = now.getWeekOfWeekyear();\n Calendar c = Calendar.getInstance();\n c.clear();\n //Set calendar to beginning of week\n c.set(Calendar.YEAR, year);\n c.set(Calendar.WEEK_OF_YEAR, currWeek);\n Date beginningOfWeek = c.getTime();\n\n SimpleDateFormat formatter = new SimpleDateFormat(\"MM/dd/yyyy\");\n\n for (String key : runMap.keySet()) {\n Run run = runMap.get(key);\n //Date stored as MM/dd/yyyy\n try {\n Date dateOfRun = formatter.parse(run.getDate());\n if (dateOfRun.compareTo(beginningOfWeek) >= 0) {\n mileage += run.getMileage();\n numOfRuns++;\n }\n }catch (ParseException p) {\n //idfk\n }\n\n }\n\n if(userShoes != null && !userShoes.isEmpty()) {\n //While we're here, we're going to update the mileage for each shoe\n for (String shoeKey : userShoes.keySet()) {\n Shoe currShoe = userShoes.get(shoeKey);\n currShoe.setMileage(0.0);\n for (String runKey : runMap.keySet()) {\n if (currShoe.getName().equals(runMap.get(runKey).getShoe())) {\n currShoe.addMileage(runMap.get(runKey).getMileage());\n }\n }\n }\n }\n\n }\n userGoals.setRunsPerWeekActual(numOfRuns);\n userGoals.setMilesPerWeekActual(mileage);\n\n\n goalRef.setValue(userGoals);\n shoeRef.setValue(userShoes);\n\n check = 1;\n }", "public void invalidateCaches() {\n cfgCache.invalidateAll();\n analysisCache.invalidateAll();\n }", "private void refreshData() {\n // Prevent unnecessary refresh.\n if (mRefreshDataRequired) {\n // Mark all entries in the contact info cache as out of date, so\n // they will be looked up again once being shown.\n mAdapter.invalidateCache();\n fetchCalls();\n mRefreshDataRequired = false;\n }\n }", "@Override\r\n\tpublic void calculateFinalData() {\n\t\tfor(TeamPO oneTeam:teams.getAllTeams()){\r\n\t\t\toneTeam.calculateTeamDataInOneSeason();\r\n\t\t}\r\n\t}", "private void updates() {\n \tDBPeer.fetchTableRows();\n DBPeer.fetchTableIndexes();\n \n for (Update update: updates) {\n \tupdate.init();\n }\n }", "protected abstract void trace_pre_updates();", "public void refreshData() {\n\n if (!mUpdatingData) {\n new RefreshStateDataTask().execute((Void) null);\n }\n }", "@Override\r\n\tpublic void updateData() {\n\t\t\r\n\t}", "@Override\n\tpublic void updateAll() {\n\t\tList<Request> requests = peer.getRequests();\n\t\tfor(Request request : requests){\t\t\t\n\t\t\tupdateAccounting(request);\t\t\t\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * Once the accounting for all requests of each peer was performed, \n\t\t * we now update the lastUpdatedTime of each accounting info. \n\t\t */\n\t\tfor(AccountingInfo accInfo : accountingList)\n\t\t\taccInfo.setLastUpdated(TimeManager.getInstance().getTime());\n\t\t\t\t\n\t\tfinishRequests();\n\t}", "private void updateStatsCAE(){\n\t\tupdateQueueSize();\n\t}", "public void performAdditionalUpdates() {\n\t\t// Default: do nothing - subclasses should override if needed\n\t}", "abstract public String[] updateAllData(String userId, long lastUpdate) throws IOException;", "protected void reloadAndReformatTableData()\n {\n logTable.loadAndFormatData();\n }", "public synchronized void updateData() {\n updateDataFields(this::defaultFetcher);\n }", "private void calculateRates() {\n if (rateOutput == null || !outputs.containsKey(rateOutput)) throw new RuntimeException(\"Insufficient data to calculate recipe rates\");\n recipesPerMinute = productionRate / outputs.get(rateOutput);\n\n for (String resource : inputs.keySet()) {\n ratesPerMinute.put(resource,-1.0 * recipesPerMinute * inputs.get(resource));\n }\n for (String resource: outputs.keySet()) {\n ratesPerMinute.put(resource, recipesPerMinute * outputs.get(resource));\n }\n }", "public void updateValues() {\r\n\t\tSystem.out.println(\"LastTime: \" + lastTime);\r\n\t\t// System.out.println(\"Rerouted: \" + restoredLSP.toString());\r\n\t\t// System.out.println(\"Crack rerouted success: \" +\r\n\t\t// reroutedLSP.toString());\r\n\t\tSystem.out.println(\"Number of Crack rerouted success: \"\r\n\t\t\t\t+ reroutedLSP.size());\r\n\t}", "protected void updateSummaries() { }", "protected void updateSummaries() { }", "private synchronized void refresh() {\n \t\t\tlastChangeStamp = changeStamp;\n \t\t\tlastFeaturesChangeStamp = featuresChangeStamp;\n \t\t\tlastPluginsChangeStamp = pluginsChangeStamp;\n \t\t\tchangeStampIsValid = false;\n \t\t\tfeaturesChangeStampIsValid = false;\n \t\t\tpluginsChangeStampIsValid = false;\n \t\t\tfeatures = null;\n \t\t\tplugins = null;\n \t\t}", "private void flushDirtyLogs() {\n logger.debug(\"Checking for dirty logs to flush...\");\n Utils.foreach(logs, new Callable1<Map.Entry<TopicAndPartition, Log>>() {\n @Override\n public void apply(Map.Entry<TopicAndPartition, Log> _) {\n TopicAndPartition topicAndPartition = _.getKey();\n Log log = _.getValue();\n\n try {\n long timeSinceLastFlush = time.milliseconds() - log.lastFlushTime();\n logger.debug(\"Checking if flush is needed on \" + topicAndPartition.topic + \" flush interval \" + log.config.flushMs + \" last flushed \" + log.lastFlushTime() + \" time since last flush: \" + timeSinceLastFlush);\n if (timeSinceLastFlush >= log.config.flushMs)\n log.flush();\n } catch (Throwable e) {\n logger.error(\"Error flushing topic \" + topicAndPartition.topic, e);\n if (e instanceof IOException) {\n logger.error(\"Halting due to unrecoverable I/O error while flushing logs: \" + e.getMessage(), e);\n System.exit(1);\n }\n }\n }\n });\n }", "public void refresh() {\n calcDataInTable();\n fireTableDataChanged();\n\n}", "public synchronized void restart() {\n printReport();\n printGlobalOpsPerSec();\n metrics.clear();\n intervalStartedAt = null;\n startedAt = null;\n\n reportStream.println(\"\");\n reportStream.println(\"Metrics have been reset\");\n reportStream.println(\"\");\n }", "@Override\n public void updateHistory() {\n List<Integer> allItemIds = determineItemIds();\n if (allItemIds == null || allItemIds.size() == 0) {\n Log.i(TAG, \"No Item Ids exists to create history data sets.\");\n return;\n }\n\n long processTs = System.currentTimeMillis();\n long startLastMonth;\n long endLastMonth;\n // determine the last month depending from the process timestamp. In the first iteration\n // the process timestamp is the current timestamp. With the second iteration,\n startLastMonth = DateHelper.startOfLastMonth(processTs);\n endLastMonth = DateHelper.endOfLastMonth(processTs);\n // iterate through all known IDs. This is required because we want to create a history entry\n // for each item\n for (int itemId : allItemIds) {\n updatePriceHistory(itemId, startLastMonth, endLastMonth);\n }\n }", "public void update() {\n \t\tissueHandler.checkAllIssues();\n \t\tlastUpdate = System.currentTimeMillis();\n \t}", "public void processUpdates() {\n List<Update> updates = getUpdates(lastId, updateLimit, timeout);\n\n lastId = updates.stream()\n .map(Update::getId)\n .max(Long::compareTo)\n .orElse(lastId-1) + 1;\n\n updates.parallelStream().forEach(this::processUpdate);\n }", "public void doUpdates(MetricsContext unused) {\n synchronized (this) {\n this.cluster_requests.pushMetric(metricsRecord);\n }\n this.metricsRecord.update();\n }", "private void evaluateData () {\n long rows = DatabaseUtils.longForQuery(sqliteDBHelper.openSqlDatabaseReadable(), \"SELECT COUNT(*) FROM \" + SqliteDBStructure.DATA_AGGREGATE\r\n + \" JOIN \" + SqliteDBStructure.INFO_AT_ACCESSTIME + \" ON \"\r\n + SqliteDBStructure.DATA_AGGREGATE + \".\" + SqliteDBStructure.ACCESS_TIME + \" = \" + SqliteDBStructure.INFO_AT_ACCESSTIME + \".\" + SqliteDBStructure.ACCESS_TIME, null);\r\n // calculate the amount of tasks (thread) depending on the MaxBatchSize\r\n tasks = rows >= MaxBatchSize? (int)(rows/MaxBatchSize + 1):1;\r\n // set the amount of finished tasks to 0\r\n finished = 0;\r\n // send the amount of task to the main activity so it can be displayed in the progress dialog\r\n sendTaskAmount(tasks + 1);\r\n // create a thread pool with tasks amount of threads\r\n final ExecutorService executorService = Executors.newFixedThreadPool(tasks);\r\n // create a list which holds all the tasks to be executed\r\n final List<ProcessingDataHandler> taskList = new LinkedList<>();\r\n // for each task create a batch of MaxBatchSize rows to evaluate\r\n for (int i = 0; i < tasks; i++) {\r\n // pass the offset (where to start) and the limit (how many rows)\r\n taskList.add(new ProcessingDataHandler(i*MaxBatchSize, MaxBatchSize));\r\n }\r\n // invoke all the task at once\r\n new Thread(new Runnable() {\r\n @Override\r\n public void run() {\r\n try {\r\n executorService.invokeAll(taskList);\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }).start();\r\n\r\n updateProgressDialog();\r\n }", "private void updateCompletionTime()\n\t{\n\t\tfor (Map.Entry<Tab, Set<FarmingPatch>> tab : farmingWorld.getTabs().entrySet())\n\t\t{\n\t\t\tlong extremumCompletionTime = config.preferSoonest() ? Long.MAX_VALUE : 0;\n\t\t\tboolean allUnknown = true;\n\t\t\tboolean allEmpty = true;\n\n\t\t\tfor (FarmingPatch patch : tab.getValue())\n\t\t\t{\n\t\t\t\tPatchPrediction prediction = predictPatch(patch);\n\t\t\t\tif (prediction == null || prediction.getProduce().getItemID() < 0)\n\t\t\t\t{\n\t\t\t\t\tcontinue; // unknown state\n\t\t\t\t}\n\n\t\t\t\tallUnknown = false;\n\n\t\t\t\tif (prediction.getProduce() != Produce.WEEDS && prediction.getProduce() != Produce.SCARECROW)\n\t\t\t\t{\n\t\t\t\t\tallEmpty = false;\n\n\t\t\t\t\t// update max duration if this patch takes longer to grow\n\t\t\t\t\tif (config.preferSoonest())\n\t\t\t\t\t{\n\t\t\t\t\t\textremumCompletionTime = Math.min(extremumCompletionTime, prediction.getDoneEstimate());\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\textremumCompletionTime = Math.max(extremumCompletionTime, prediction.getDoneEstimate());\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfinal SummaryState state;\n\t\t\tfinal long completionTime;\n\n\t\t\tif (allUnknown)\n\t\t\t{\n\t\t\t\tstate = SummaryState.UNKNOWN;\n\t\t\t\tcompletionTime = -1L;\n\t\t\t}\n\t\t\telse if (allEmpty)\n\t\t\t{\n\t\t\t\tstate = SummaryState.EMPTY;\n\t\t\t\tcompletionTime = -1L;\n\t\t\t}\n\t\t\telse if (extremumCompletionTime <= Instant.now().getEpochSecond())\n\t\t\t{\n\t\t\t\tstate = SummaryState.COMPLETED;\n\t\t\t\tcompletionTime = 0;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tstate = SummaryState.IN_PROGRESS;\n\t\t\t\tcompletionTime = extremumCompletionTime;\n\t\t\t}\n\t\t\tsummaries.put(tab.getKey(), state);\n\t\t\tcompletionTimes.put(tab.getKey(), completionTime);\n\t\t}\n\t}", "protected static void update() {\n\t\tstepsTable.update();\n\t\tactive.update();\n\t\tmeals.update();\n\t\t\n\t}", "private void updPrevRunningConfigUpdates() {\n\t\tList<FilterCondition> cond = new ArrayList<>();\n\t\tList<ConfiguredValuesMO> prevConfigList = null;\n\t\tConfiguredValuesMO prevConfig = null;\n\t\tsetFilterConditions(cond); \n\t\ttry {\n\t\t\tprevConfigList = (List<ConfiguredValuesMO>) genDao.getGenericObjects(ConfiguredValuesMO.class, cond, Boolean.TRUE);\n\t\t} catch (DAOException e) {\n\t\t\tlogger.error(\"Exception while retrieving Config updates for the device.\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\tprevConfig = prevConfigList.get(0); // Ideally this should give only one item.\n\t\tprevConfig.setStatus(ConfigUpdateStatus.INACTIVE);\n\t\ttry {\n\t\t\tgenDao.saveGenericObject(prevConfig);\n\t\t} catch (DAOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public synchronized void updateGameDataAtSlowRate() {\n scheduleGameUpdate(slowUpdateSpeed);\n }", "void updateData();", "void warmup(ConsolidatedSnapshot snapshot, double[] forecasts);", "public void update(){\n\t\tfor(ParticleEffect effect : effects){\n\t\t\teffect.update();\n\t\t}\n\t}", "public void checkUpdates(int timePerStep){\r\n\t\tif(updateStatistics_ || statisticsCountdown_ == -1){\r\n\t\t\tstatisticsCountdown_ -= timePerStep;\r\n\t\t\tif(statisticsCountdown_ < 1){\r\n\t\t\t\tstatisticsCountdown_ += STATISTICS_ACTUALIZATION_INTERVAL;\r\n\t\t\t\tupdateStatistics();\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(updateBeaconInfo_){\r\n\t\t\tbeaconInfoCountdown_ -= timePerStep;\r\n\t\t\tif(beaconInfoCountdown_ < 1){\r\n\t\t\t\tbeaconInfoCountdown_ += BEACONINFO_ACTUALIZATION_INTERVAL;\r\n\t\t\t\tupdateBeaconInfo();\r\n\t\t\t}\r\n\t\t}\t\r\n\t}", "public void markEverythingDirty() {\n fullUpdate = true;\n }", "@PreUpdate\n private void beforeUpdate() {\n updatedDate = new Date();\n }", "@Scheduled(fixedDelay = 98)\n public void cacheStats() {\n SalesAmount salesAmount = statsService.retrieveNextSalesAmount();\n LocalDateTime now = LocalDateTime.now(clock).withNano(0);\n while (salesAmount != null && !salesAmount.getTime().isAfter(Instant.now(clock))) {\n /*\n Because sales requests are processed sequentially, this way we don't need to care about increasing the\n aggregated sales amount in parallel and use Atomic data structures.\n */\n SalesAmountPerSecond salesAmountPerSecond = statsService.getLastSalesAmountPerSecond();\n if (null != salesAmountPerSecond && salesAmountPerSecond.getTime().equals(now)) {\n salesAmountPerSecond.addSalesAmount(salesAmount.getAmount());\n } else {\n statsService.addSalesAmountPerSecond(new SalesAmountPerSecond(\n salesAmount.getAmount(),\n 1,\n now));\n }\n salesAmount = statsService.retrieveNextSalesAmount();\n }\n }", "protected void hatchesStatusUpdate_EM() {\n if (getBaseMetaTileEntity().isClientSide()) {\n return;\n }\n boolean busy = mMaxProgresstime > 0;\n if (busy) {//write from buffer to hatches only\n for (GT_MetaTileEntity_Hatch_Param hatch : eParamHatches) {\n if (!GT_MetaTileEntity_MultiBlockBase.isValidMetaTileEntity(hatch) || hatch.param < 0) {\n continue;\n }\n int hatchId = hatch.param;\n if (parametrization.groups[hatchId] != null && parametrization.groups[hatchId].updateWhileRunning) {\n parametrization.iParamsIn[hatchId] = hatch.value0D;\n parametrization.iParamsIn[hatchId + 10] = hatch.value1D;\n }\n hatch.input0D = parametrization.iParamsOut[hatchId];\n hatch.input1D = parametrization.iParamsOut[hatchId + 10];\n }\n } else {//if has nothing to do update all\n for (GT_MetaTileEntity_Hatch_Param hatch : eParamHatches) {\n if (!GT_MetaTileEntity_MultiBlockBase.isValidMetaTileEntity(hatch) || hatch.param < 0) {\n continue;\n }\n int hatchId = hatch.param;\n parametrization.iParamsIn[hatchId] = hatch.value0D;\n parametrization.iParamsIn[hatchId + 10] = hatch.value1D;\n hatch.input0D = parametrization.iParamsOut[hatchId];\n hatch.input1D = parametrization.iParamsOut[hatchId + 10];\n }\n }\n for (GT_MetaTileEntity_Hatch_Uncertainty uncertainty : eUncertainHatches) {\n eCertainStatus = uncertainty.update(eCertainMode);\n }\n eAvailableData = getAvailableData_EM();\n parametersStatusesWrite_EM(busy);\n }", "public void updateData() {\n\n ProgramWorker pw = new ProgramWorker();\n pw.execute();\n\n }", "public void allActualValuesUpdated ();", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "private void forceUpdate() {\n this.lastChecksum = -1;\n update();\n }", "public void batchUpdateWeights() {\n\t\tObject[] keys = nextLayerNodes.keySet().toArray();\n\t\tfor (Object key : keys) {\n\t\t\tNode nextLayerNode = (Node) key;\n\t\t\t// System.out.printf(\"Updating weight from %f to %f%n\", nextLayerNodes.get(nextLayerNode), nextLayerNodesUpdateMap.get(nextLayerNode));\n\t\t\tdouble oldWeight = nextLayerNodes.get(nextLayerNode);\n\t\t\tnextLayerNodes.put(nextLayerNode, nextLayerNodesUpdateMap.get(nextLayerNode));\n\t\t\tdouble newWeight = nextLayerNodes.get(nextLayerNode);\n\t\t\tdouble deltaWeight = oldWeight-newWeight;\n\t\t\tSystem.out.printf(\"Changed from %f to %f%n\", oldWeight, newWeight);\n\t\t\tif (deltaWeight > 0.0) {\n\t\t\t\tif (nextLayerNodesArrayList.get(0).nextLayerNodes.size() == 0) {\n\t\t\t\t\tSystem.out.print(\"Hidden Node connected to output layer \");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\"Node connected to another hidden layer \");\n\t\t\t\t}\n\t\t\t\tSystem.out.printf (\"Increased!! Delta weight = %.10f%n\", deltaWeight);\n\t\t\t} else if (deltaWeight < 0.0) {\n\t\t\t\tif (nextLayerNodesArrayList.get(0).nextLayerNodes.size() == 0) {\n\t\t\t\t\tSystem.out.print(\"Hidden Node connected to output layer \");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\"Node connected to another hidden layer \");\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"Decreased!! Delta weight = %.10f%n\", deltaWeight);\n\t\t\t}\n\t\t}\n\t}", "public void resetStatistics()\n {\n }", "void updateReport(AllTablesReportDelta delta);", "public void recalc() {\n\t\tMapping mapping = getConsumerProductMatrix();\n\t\tif (mapping == null) {\n\t\t\treturn; // there is nobody to calculate recommendation for\n\t\t}\n\t\tSparseMatrix<Float64> Ct = makeC(mapping.matrix).transpose();\n\t\tSparseMatrix<Float64> B = makeB(mapping.matrix);\n\t\tSparseMatrix<Float64> CR0 = makeCR0(mapping.matrix.getNumberOfRows());\n\n\t\tSparseMatrix<Float64> PR = null;\n\t\tSparseMatrix<Float64> CR = CR0;\n\n\t\tint iterations =\n\t\t\tConfigService.CONFIG_SERVICE.getConfig(\n\t\t\t\tServerConfigKey.RECOMMENDATION_ITERATIONS).get();\n\t\tfor (int i = 0; i < iterations; i++) {\n\t\t\tPR = CR.times(B);\n\t\t\tCR = PR.times(Ct).plus(CR0);\n\t\t}\n\n\t\tsaveRecommendations(mapping, PR);\n\t}", "public void updateData() {\n\t\tcal = eventsData.getCalendar();\n\t\tfirstDayOfWeek = eventsData.getFirstDayOfWeek();\n\t\tcurrentDayOfMonth = eventsData.getDayNumber();\n\t\tnumberOfDays = eventsData.getNumberOfDays();\n\t\tnumberOfWeeks = eventsData.getNumberOfWeeks();\n\t\tyear = eventsData.getYearNumber();\n\t\tmonth = eventsData.getMonthNumber();\n\t\tday = eventsData.getDayNumber();\n\t\tweek = eventsData.getDayOfWeek();\n\t}", "public void update() {\r\n\t\tdiffuse();\r\n\t\tdecay();\r\n\t}", "void updateForecast(DarkSkyApi api, PlaceWeather weather){\n\n long now = Calendar.getInstance().getTimeInMillis()/1000;\n\n deleteObsoleteEntries(now);\n\n long placeId = weather.getId();\n long currentDay = databaseInstance.weatherDao().selectObsoleteDayCount(now);\n long daysSaved = databaseInstance.weatherDao().selectDayCount();\n\n //check if need to load data\n if(daysSaved - currentDay < 7){\n\n List<HourlyData> hourlyData;\n\n String apiKey = context.getString(R.string.api_key);\n Map<String, String> avoid = new HashMap<>();\n avoid.put(\"units\", \"si\");\n avoid.put(\"lang\", \"en\");\n avoid.put(\"exclude\", \"alerts,daily\");\n\n long currentTime = weather.getDaily().getData().get(\n weather.getDaily().getData().size()-1\n ).getTime() + 1;\n\n //load days\n for(long day = daysSaved - currentDay; day < 7; ++day){\n currentTime += 3600 * 24;\n PlaceWeather nextDay;\n try{\n nextDay = api.getTimeForecast(apiKey,\n weather.getLatitude(),\n weather.getLongitude(),\n now, avoid).execute().body();\n }catch (IOException e){\n //log network failure\n break;\n }\n\n nextDay.getDaily().getData().get(0).setParentPlaceId(placeId);\n\n long nextDailyDataId =\n databaseInstance.weatherDao().insertDailyData(\n nextDay.getDaily().getData().get(0)\n );\n\n nextDay.getHourly().setParentDayId(nextDailyDataId);\n nextDay.getHourly().setId(\n databaseInstance.weatherDao().insertHourly(nextDay.getHourly())\n );\n\n hourlyData = nextDay.getHourly().getData();\n\n for(int j = 0; j < hourlyData.size(); ++j){\n hourlyData.get(j).setParentDayId(nextDailyDataId);\n databaseInstance.weatherDao().insertHourlyData(hourlyData.get(j));\n }\n }\n }\n }", "private void updateRecord(){\r\n\t\tgameStats.setVictory(victory);\r\n\t\tgameStats.setDays(days);\r\n\t\tgameStats.setBuildings(buildingCount);\r\n\t\tgameStats.setResources(wood + stone + food);\r\n\t}", "public void recalcDyeStats() {\n dyeINT = 0;\n dyeSTR = 0;\n dyeCON = 0;\n dyeMEN = 0;\n dyeWIT = 0;\n dyeDEX = 0;\n\n for (int i = 0; i < 3; i++) {\n final DyeData dye = dyes[i];\n if (dye == null) {\n continue;\n }\n if (!PlayerUtils.canPlayerWearDye(this, dye)) {\n continue;\n }\n\n dyeINT += dye._int;\n dyeSTR += dye.str;\n dyeMEN += dye.men;\n dyeCON += dye.con;\n dyeWIT += dye.wit;\n dyeDEX += dye.dex;\n }\n\n if (dyeINT > 5) {\n dyeINT = 5;\n }\n if (dyeSTR > 5) {\n dyeSTR = 5;\n }\n if (dyeMEN > 5) {\n dyeMEN = 5;\n }\n if (dyeCON > 5) {\n dyeCON = 5;\n }\n if (dyeWIT > 5) {\n dyeWIT = 5;\n }\n if (dyeDEX > 5) {\n dyeDEX = 5;\n }\n }", "private boolean needsToRecalcStats() {\n\n return this.equipsChanged;\n }", "protected void speedRefresh() {\r\n\t\t\ttStartTime = System.currentTimeMillis();\r\n\t\t\ttDownloaded = 0;\r\n\t\t}", "public void update() {\n for (int i = 0; i < rows; i++) {\n for (int j = 0; j < columns; j++) {\n Point point = getPointAtLocation(i, j);\n WorldItem item = point.getContainedItem();\n calculatePointTemp(point);\n point.update();\n if (item instanceof FlammableItem) {\n updateIgnition(point);\n } else if (item instanceof SimulatedSensor) {\n updateAlarm(point);\n }\n }\n }\n }", "private void updateGeneStatusDistributionData() {\n\t\tdouble[][][] value = gaTracker.getGeneValueDistribution();\n\t\tdouble[][][] status = gaTracker.getGeneStatusDistribution();\n\n\t\t/*\n\t\t * Collecting all data into one array, then replacing everything at once\n\t\t * to hopefully fix race condition in JFreeChart\n\t\t */\n\t\tdouble[][][][][] new_datasets = new double[geneCount][][][][];\n\n\t\tif (refreshWaiter.isReadyToRefresh()) {\n\t\t\tfor (int j = 0; j < geneCount; j++) {\n\t\t\t\tnew_datasets[j] = new double[numAgentTypes][2][][];\n\n\t\t\t\tfor (int i = 0; i < numAgentTypes; i++) {\n\t\t\t\t\tdouble[][] newx = {gene_status_distribution_range, status[i][j]};\n\t\t\t\t\tnew_datasets[j][i][0] = newx;\n\t\t\t\t\tdouble[][] newy = {gene_value_distribution_range, value[i][j]};\n\t\t\t\t\tnew_datasets[j][i][1] = newy;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor (int j = 0; j < geneCount; j++) {\n\t\t\t\tfor (int i = 0; i < numAgentTypes; i++) {\n\t\t\t\t\tString key = \"Agent \" + (i+1);\n\t\t\t\t\tgene_status_distribution_data[j].addSeries(key, new_datasets[j][i][0]);\n\t\t\t\t\tgene_value_distribution_data[j].addSeries(key, new_datasets[j][i][1]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// If wait is true, there might be a deadlock pressing the stop button\n\t\t\trefreshWaiter.refresh(false);\n\t\t}\n\n\t}", "@Override\n public void update() {\n updateBuffs();\n }", "private void iterativeDataPropertyMetrics() {\n\t}", "abstract public String updateData(String userId, String resourceName, long lastUpdate) throws IOException;", "void updateLocalCallLogs() {\n setIncludePairedCallLogs();\n buildCallLogsList();\n\n notifyCallDataChanged();\n }", "private synchronized void performOperations() {\r\n\t\ttry {\r\n\t\t\tswitch (operationStatus) {\r\n\t\t\tcase TRUNCATE_DATA:\r\n\t\t\t\tHibernateUtil.rawQuery(\"TRUNCATE csv;\");\r\n\t\t\t\tif (DEBUG) {\r\n\t\t\t\t\tUtil.writeLog(toString());\r\n\t\t\t\t\tLogger.getLogger(Scheduler.class.getName()).log(Level.INFO, toString());\r\n\t\t\t\t}\r\n\t\t\t\treturn;\r\n\t\t\tcase APPEND_DATA:\r\n\t\t\t\tparseData(false);\r\n\t\t\t\tif (DEBUG) {\r\n\t\t\t\t\tUtil.writeLog(toString());\r\n\t\t\t\t\tLogger.getLogger(Scheduler.class.getName()).log(Level.INFO, toString());\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase UPDATE_DATA:\r\n\t\t\t\tparseData(true);\r\n\t\t\t\tif (DEBUG) {\r\n\t\t\t\t\tUtil.writeLog(toString());\r\n\t\t\t\t\tLogger.getLogger(Scheduler.class.getName()).log(Level.INFO, toString());\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase ARRANGE_DATA:\r\n\t\t\t\tarrangeData();\r\n\t\t\t\tif (DEBUG) {\r\n\t\t\t\t\tUtil.writeLog(toString());\r\n\t\t\t\t\tLogger.getLogger(Scheduler.class.getName()).log(Level.INFO, toString());\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private void calculateDebitAgingNONE(List<EMCQuery> periodQueries, List<DebtorsAgingHelper> agingList, Date atDate, String customerId, EMCUserData userData) {\n for (int i = 0; i < periodQueries.size(); i++) {\n //Only sum over debits\n Object[] debitTotals = (Object[]) util.executeSingleResultQuery(periodQueries.get(i), userData);\n\n if (debitTotals != null) {\n BigDecimal debitTotal = (BigDecimal) debitTotals[0] == null ? BigDecimal.ZERO : (BigDecimal) debitTotals[0];\n BigDecimal debitSettledTotal = (BigDecimal) debitTotals[1] == null ? BigDecimal.ZERO : (BigDecimal) debitTotals[1];\n\n BigDecimal binAmount = debitTotal.subtract(debitSettledTotal);\n agingList.get(i).setBinAmount(binAmount);\n } else {\n agingList.get(i).setBinAmount(BigDecimal.ZERO);\n }\n }\n\n //If atDate less than today, ignore updates made to transactions between atDate and today.\n //Only check dates, not time\n Calendar atCalendar = Calendar.getInstance();\n atCalendar.setTime(atDate);\n atCalendar.set(Calendar.HOUR, 0);\n atCalendar.set(Calendar.HOUR_OF_DAY, 0);\n atCalendar.set(Calendar.MINUTE, 0);\n atCalendar.set(Calendar.SECOND, 0);\n atCalendar.set(Calendar.MILLISECOND, 0);\n\n Calendar nowCalendar = Calendar.getInstance();\n nowCalendar.setTime(Functions.nowDate());\n nowCalendar.set(Calendar.HOUR, 0);\n nowCalendar.set(Calendar.HOUR_OF_DAY, 0);\n nowCalendar.set(Calendar.MINUTE, 0);\n nowCalendar.set(Calendar.SECOND, 0);\n nowCalendar.set(Calendar.MILLISECOND, 0);\n\n if (atCalendar.compareTo(nowCalendar) < 0) {\n //For each bin, revert transaction history\n for (DebtorsAgingHelper binHelper : agingList) {\n EMCQuery settledQuery = new EMCQuery(enumQueryTypes.SELECT, DebtorsTransactionSettlementHistory.class);\n settledQuery.addFieldAggregateFunction(\"debitSettled\", \"SUM\");\n //Check that transaction existed at atDate. Bev requested that we remove this check.\n //settledQuery.addAnd(\"transactionCreatedDate\", atDate, EMCQueryConditions.LESS_THAN_EQ);\n settledQuery.openConditionBracket(EMCQueryBracketConditions.NONE);\n settledQuery.addAnd(\"debitTransactionDate\", binHelper.getBinEndDate(), EMCQueryConditions.LESS_THAN_EQ);\n //settledQuery.addAnd(\"creditTransactionDate\", binHelper.getBinEndDate(), EMCQueryConditions.LESS_THAN_EQ);\n settledQuery.closeConditionBracket();\n\n //Customer is optional\n if (customerId != null) {\n settledQuery.addAnd(\"customerId\", customerId);\n }\n\n //Only include transactions settled after atDate.\n settledQuery.addAnd(\"createdDate\", atDate, EMCQueryConditions.GREATER_THAN);\n\n if (binHelper.getBinStartDate() != null) {\n settledQuery.openConditionBracket(EMCQueryBracketConditions.AND);\n settledQuery.addAnd(\"debitTransactionDate\", binHelper.getBinStartDate(), EMCQueryConditions.GREATER_THAN_EQ);\n //settledQuery.addAnd(\"creditTransactionDate\", binHelper.getBinStartDate(), EMCQueryConditions.GREATER_THAN_EQ);\n settledQuery.closeConditionBracket();\n }\n\n BigDecimal totalSettled = (BigDecimal) util.executeSingleResultQuery(settledQuery, userData);\n if (totalSettled == null) {\n totalSettled = BigDecimal.ZERO;\n }\n\n //Add settled amount & discount back to bin\n //binHelper.setBinAmount(binHelper.getBinAmount().add(totalSettled).add(totalDiscount));\n binHelper.setBinAmount(binHelper.getBinAmount().add(totalSettled));\n }\n }\n }", "protected void refresh()\n {\n refresh(System.currentTimeMillis());\n }", "@Override\r\n public void onRestart() {\r\n super.onRestart();\r\n refreshData();\r\n }", "public void computeForecasts (GUICalcProgressBar progress, RJGUIController.XferForecastMod xfer) {\n\n\t\t// Save the catalog parameters\n\n\t\tcat_forecastStartTimeParam = xfer.x_forecastStartTimeParam;\n\t\tcat_forecastEndTimeParam = xfer.x_forecastEndTimeParam;\n\n\t\t// Compute the aftershock forecasts\n\n\t\tseqSpecForecast = makeForecast (progress, cat_forecastStartTimeParam, cur_model, \"Seq. Specific\");\n\t\tgenericForecast = makeForecast (progress, cat_forecastStartTimeParam, genericModel, \"Generic\");\n\t\tbayesianForecast = makeForecast (progress, cat_forecastStartTimeParam, bayesianModel, \"Bayesian\");\n\n\t\t// Remove the model-specific message\n\t\t\n\t\tif (progress != null) {\n\t\t\t//progress.setIndeterminate(true);\n\t\t\t//progress.setProgressMessage(\"Plotting...\");\n\t\t\tprogress.setIndeterminate(true, \"Plotting...\");\n\t\t}\n\n\t\t// Pre-compute elements for expected aftershock MFDs.\n\n\t\tgui_view.precomputeEAMFD (progress, cat_forecastStartTimeParam, cat_forecastEndTimeParam);\n\n\t\treturn;\n\t}", "private void update(ArrayList<Triple<Integer, Integer, Integer>> miniBatch, ArrayList<Triple<Integer, Integer, Integer>> corruptedTriples, double margin, double learningRate, double C, int k){\n ArrayList<double[]> copyEntityVectors = (ArrayList<double[]>) entityVectors.clone();\n ArrayList<double[]> copyRelationVectors = (ArrayList<double[]>) relationVectors.clone();\n ArrayList<double[]> copyNormalVectors = (ArrayList<double[]>) normalVectors.clone();\n\n for(int i = 0; i < miniBatch.size(); i ++){\n int head = miniBatch.get(i).getLeft();\n int relation = miniBatch.get(i).getMiddle();\n int tail = miniBatch.get(i).getRight();\n int headC = corruptedTriples.get(i).getLeft();\n int tailC = corruptedTriples.get(i).getRight();\n double[] normalVector = copyNormalVectors.get(relation);\n double[] headVector = copyEntityVectors.get(head);\n double[] relationVector = copyRelationVectors.get(relation);\n double[] tailVector = copyEntityVectors.get(tail);\n double[] headCVector = copyEntityVectors.get(headC);\n double[] tailCVector = copyEntityVectors.get(tailC);\n double[] projectHead = helper.planeProjection(headVector, normalVector); // project vector to a plane\n double[] projectTail = helper.planeProjection(tailVector, normalVector); // project vector to a plane\n double[] projectHeadC = helper.planeProjection(headCVector, normalVector); // project vector to a plane\n double[] projectTailC = helper.planeProjection(tailCVector, normalVector); // project vector to a plane\n\n Boolean orthogonal = helper.checkOrthogonal(relationVector, normalVector);\n double dotProduct = helper.dotProduct(relationVector, normalVector);\n\n double distanceL2 = helper.distanceL2(projectHead, relationVector, projectTail, k);\n double distanceL2C = helper.distanceL2(projectHeadC, relationVector, projectTailC, k);\n double loss = distanceL2 + margin - distanceL2C;\n if (loss > 0){\n double[] newHeadVector = new double[k];\n double[] newRelationVector = new double[k];\n double[] newTailVector = new double[k];\n double[]newNormalVector = new double[k];\n for (int j = 0; j< k; j++){\n double delta = 2*(projectTail[j] - projectHead[j] -relationVector[j]);\n double deltaC = 2*(projectTailC[j] - projectHeadC[j] - relationVector[j]);\n double constraintR = 0;\n double constraintN = 0;\n if (orthogonal == false){\n constraintR = 2 *C * dotProduct *normalVector[j]; // constraints if the relation vector and the normal vector is not orthogonal for relation vector\n constraintN = 2* C * dotProduct *relationVector[j]; // constraints if not orthogonal for normal vector\n }\n double newHead = headVector[j] + learningRate * delta * (1 - Math.pow(normalVector[j], 2)); // the partial derivative includes normal vector, second step chain rule\n double newRelation = relationVector[j] + learningRate * (delta - deltaC) - constraintR; // relation vector is not affected by normal vector, second step chain rule\n double newTail = tailVector[j] - learningRate * delta * (1 - Math.pow(normalVector[j], 2)); // the partial derivative includes normal vector\n double newNormal = normalVector[j] - constraintN; // update normal vector if not orthogonal\n newHeadVector[j] = newHead;\n newRelationVector[j] = newRelation;\n newTailVector[j] = newTail;\n newNormalVector[j] = newNormal;\n }\n double[] normedHeadVector = helper.norm(newHeadVector);\n double[] normedRelationVector = helper.norm(newRelationVector);\n double[] normedTailVector = helper.norm(newTailVector);\n double[] normedNormalVector = helper.norm(newNormalVector);\n copyEntityVectors.set(head, normedHeadVector);\n copyEntityVectors.set(tail, normedTailVector);\n copyRelationVectors.set(relation, normedRelationVector);\n copyNormalVectors.set(relation, normedNormalVector);\n }\n }\n entityVectors = copyEntityVectors;\n relationVectors = copyRelationVectors;\n normalVectors = copyNormalVectors;\n }" ]
[ "0.58680767", "0.5861275", "0.5782513", "0.5779159", "0.5516902", "0.5428166", "0.5415983", "0.54036766", "0.5359344", "0.5356026", "0.5321655", "0.5301486", "0.5298471", "0.52966344", "0.52930844", "0.52901495", "0.52651584", "0.52400297", "0.5223578", "0.52193433", "0.51844054", "0.5178693", "0.5128023", "0.51266336", "0.5101929", "0.51006854", "0.5090702", "0.5083068", "0.50781035", "0.507807", "0.5070029", "0.50691324", "0.50540984", "0.50458145", "0.50443494", "0.50427264", "0.5040398", "0.50260925", "0.5023289", "0.5020396", "0.5014913", "0.5010954", "0.50046825", "0.50038147", "0.49964622", "0.49953642", "0.49878678", "0.49841946", "0.49840745", "0.49840745", "0.49503952", "0.49465656", "0.49282354", "0.49275047", "0.4926758", "0.49265856", "0.49132234", "0.4902794", "0.49010518", "0.48906788", "0.48819065", "0.48766136", "0.4870469", "0.48619112", "0.48618802", "0.48543972", "0.48543346", "0.48472416", "0.4838309", "0.48276356", "0.48247805", "0.48219353", "0.48213303", "0.4814338", "0.4814338", "0.4814338", "0.48140815", "0.48118442", "0.48089013", "0.4807346", "0.48051742", "0.48051247", "0.4804545", "0.48040676", "0.48017824", "0.47988123", "0.47987416", "0.47973332", "0.47948346", "0.4794679", "0.47905707", "0.47893164", "0.47887403", "0.47847372", "0.47778973", "0.47773448", "0.477721", "0.47752512", "0.4771031", "0.47705844" ]
0.61633325
0
Recalculates the batch effect and batch confound information for the given dataset.
@Secured({ "GROUP_AGENT" }) void recalculateExperimentBatchInfo( ExpressionExperiment ee );
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void recompute () {\n current_part.t_Cl = current_part.t_Cd = current_part.t_Cm = null;\n computeFlowAndRegenPlot();\n }", "@SuppressWarnings(\"unused\") // Used by scheduler\n @Secured({ \"GROUP_AGENT\" })\n void recalculateBatchInfo();", "public void calc()\n\t\t\t\t\t\t{\n\t\t\t\t\t\tif(oldInfo.calcInfo!=null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\toldInfo.calcInfo.calc();\n\t\t\t\t\t\t\toldInfo.calcInfo=null;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//Filter particles\n\t\t\t\t\t\tfor(int id:oldInfo.keySet())\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tParticleInfo pInfo=oldInfo.get(id);\n\t\t\t\t\t\t\tif(filter.acceptParticle(id, pInfo))\n\t\t\t\t\t\t\t\tnewInfo.put(id,pInfo);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}", "public void backpropagate (FlatLayer flat){\n\t\tDouble [] err = flat.getErrors();\n\t\tDouble [][] weights = flat.getOldWeights();\n\t\tDouble sum;\n\t\tint index;\n\n\t\tfor ( int i = 0; i < poolMaps.size() ; i++){\n\n\t\t\tPoolMap pmap = poolMaps.get(i);\n\n\t\t\tDouble [][] error = pmap.getErrors();\n\n\t\t\tfor(int row = 0; row < error.length; row++){\n\t\t\t\tfor(int col = 0; col < error[0].length; col++){\n\t\t\t\t\t\n\t\t\t\t\tsum = 0.0;\n\t\t\t\t\t\n\t\t\t\t\tfor(int j = 0; j < weights.length; j++){\n\t\t\t\t\t\t\n\t\t\t\t\t\tindex = i * error.length * error[0].length + row * error.length + col;\n\t\t\t\t\t\tsum += weights[j][index]*err[j];\n\n\t\t\t\t\t}\n\t\t\t\t\terror[row][col] = sum;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t}", "public void dataSetChanged() {\n\n\t\tif (!isPackValid())\n\t\t\treturn;\n\n\t\t// update charts:\n\t\tupdateCharts();\n\n\t}", "public void recalc() {\n\t\tMapping mapping = getConsumerProductMatrix();\n\t\tif (mapping == null) {\n\t\t\treturn; // there is nobody to calculate recommendation for\n\t\t}\n\t\tSparseMatrix<Float64> Ct = makeC(mapping.matrix).transpose();\n\t\tSparseMatrix<Float64> B = makeB(mapping.matrix);\n\t\tSparseMatrix<Float64> CR0 = makeCR0(mapping.matrix.getNumberOfRows());\n\n\t\tSparseMatrix<Float64> PR = null;\n\t\tSparseMatrix<Float64> CR = CR0;\n\n\t\tint iterations =\n\t\t\tConfigService.CONFIG_SERVICE.getConfig(\n\t\t\t\tServerConfigKey.RECOMMENDATION_ITERATIONS).get();\n\t\tfor (int i = 0; i < iterations; i++) {\n\t\t\tPR = CR.times(B);\n\t\t\tCR = PR.times(Ct).plus(CR0);\n\t\t}\n\n\t\tsaveRecommendations(mapping, PR);\n\t}", "void computeDrawing() {\n if (dirtyD) {\n filling = modelRoot.getCDraw().getFilling(this);\n dirtyBufF = true;\n tooltip = modelRoot.getCDraw().getTooltip(this);\n dirtyBufT = true;\n title = modelRoot.getCDraw().getTitle(this);\n dirtyBufTitle = true;\n colorTitle = modelRoot.getCDraw().getTitleColor(this);\n dirtyBufCT = true;\n modelRoot.decrementNumberOfDirtyDNodes();\n dirtyD = false;\n }\n }", "@Override\n\tprotected void updateDataFromRead(CountedData counter, final GATKSAMRecord gatkRead, final int offset, final byte refBase) {\n Object[][] covars;\n\t\ttry {\n\t\t\tcovars = (Comparable[][]) gatkRead.getTemporaryAttribute(getCovarsAttribute());\n\t\t\t// Using the list of covariate values as a key, pick out the RecalDatum from the data HashMap\n\t NestedHashMap data;\n\t data = dataManager.data;\n\t final Object[] key = covars[offset];\n\t\t\tBisulfiteRecalDatumOptimized datum = (BisulfiteRecalDatumOptimized) data.get( key );\n\t if( datum == null ) { // key doesn't exist yet in the map so make a new bucket and add it\n\t // initialized with zeros, will be incremented at end of method\n\t datum = (BisulfiteRecalDatumOptimized)data.put( new BisulfiteRecalDatumOptimized(), true, (Object[])key );\n\t }\n\n\t // Need the bases to determine whether or not we have a mismatch\n\t final byte base = gatkRead.getReadBases()[offset];\n\t final long curMismatches = datum.getNumMismatches();\n\t final byte baseQual = gatkRead.getBaseQualities()[offset];\n\n\t // Add one to the number of observations and potentially one to the number of mismatches\n\t datum.incrementBaseCounts( base, refBase, baseQual );\n\t increaseCountedBases(counter,1);\n\t\t\tincreaseNovelCountsBases(counter,1);\n\t\t\tincreaseNovelCountsMM(counter,(datum.getNumMismatches() - curMismatches));\n\t \n\t\t} catch (IllegalArgumentException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t} catch (IllegalAccessException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t} catch (InstantiationException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n //counter.novelCountsBases++;\n \n //counter.novelCountsMM += datum.getNumMismatches() - curMismatches; // For sanity check to ensure novel mismatch rate vs dnsnp mismatch rate is reasonable\n \n }", "public void doIt()\n\t{\n\t\tthis.mass += this.accumulation;\n\t\tif (this.mass < 0) {\n\t\t\tthis.mass = 0;\n\t\t}\n\t\tthis.accumulation = 0;\n\t}", "protected void fillDataset(Dataset dataset) {\n dataset.getDefaultModel().getGraph().add(SSE.parseTriple(\"(<x> <p> 'Default graph')\")) ;\n \n Model m1 = dataset.getNamedModel(graph1) ;\n m1.getGraph().add(SSE.parseTriple(\"(<x> <p> 'Graph 1')\")) ;\n m1.getGraph().add(SSE.parseTriple(\"(<x> <p> 'ZZZ')\")) ;\n \n Model m2 = dataset.getNamedModel(graph2) ;\n m2.getGraph().add(SSE.parseTriple(\"(<x> <p> 'Graph 2')\")) ;\n m2.getGraph().add(SSE.parseTriple(\"(<x> <p> 'ZZZ')\")) ;\n calcUnion.add(m1) ;\n calcUnion.add(m2) ;\n }", "void flushBatch();", "public void reSurrect(){\n\t\tcanvas = Canvas.getInstance();\n\t\tfor(int i = 0; i < myEffects.size(); i++){\n\t\t\tmyEffects.get(i).reSurrect();\n\t\t}\n\t}", "void flushDraw() {\n dirtyD = true;\n modelRoot.incrementNumberOfDirtyDNodes();\n }", "private void update(ArrayList<Triple<Integer, Integer, Integer>> miniBatch, ArrayList<Triple<Integer, Integer, Integer>> corruptedTriples, double margin, double learningRate, double C, int k){\n ArrayList<double[]> copyEntityVectors = (ArrayList<double[]>) entityVectors.clone();\n ArrayList<double[]> copyRelationVectors = (ArrayList<double[]>) relationVectors.clone();\n ArrayList<double[]> copyNormalVectors = (ArrayList<double[]>) normalVectors.clone();\n\n for(int i = 0; i < miniBatch.size(); i ++){\n int head = miniBatch.get(i).getLeft();\n int relation = miniBatch.get(i).getMiddle();\n int tail = miniBatch.get(i).getRight();\n int headC = corruptedTriples.get(i).getLeft();\n int tailC = corruptedTriples.get(i).getRight();\n double[] normalVector = copyNormalVectors.get(relation);\n double[] headVector = copyEntityVectors.get(head);\n double[] relationVector = copyRelationVectors.get(relation);\n double[] tailVector = copyEntityVectors.get(tail);\n double[] headCVector = copyEntityVectors.get(headC);\n double[] tailCVector = copyEntityVectors.get(tailC);\n double[] projectHead = helper.planeProjection(headVector, normalVector); // project vector to a plane\n double[] projectTail = helper.planeProjection(tailVector, normalVector); // project vector to a plane\n double[] projectHeadC = helper.planeProjection(headCVector, normalVector); // project vector to a plane\n double[] projectTailC = helper.planeProjection(tailCVector, normalVector); // project vector to a plane\n\n Boolean orthogonal = helper.checkOrthogonal(relationVector, normalVector);\n double dotProduct = helper.dotProduct(relationVector, normalVector);\n\n double distanceL2 = helper.distanceL2(projectHead, relationVector, projectTail, k);\n double distanceL2C = helper.distanceL2(projectHeadC, relationVector, projectTailC, k);\n double loss = distanceL2 + margin - distanceL2C;\n if (loss > 0){\n double[] newHeadVector = new double[k];\n double[] newRelationVector = new double[k];\n double[] newTailVector = new double[k];\n double[]newNormalVector = new double[k];\n for (int j = 0; j< k; j++){\n double delta = 2*(projectTail[j] - projectHead[j] -relationVector[j]);\n double deltaC = 2*(projectTailC[j] - projectHeadC[j] - relationVector[j]);\n double constraintR = 0;\n double constraintN = 0;\n if (orthogonal == false){\n constraintR = 2 *C * dotProduct *normalVector[j]; // constraints if the relation vector and the normal vector is not orthogonal for relation vector\n constraintN = 2* C * dotProduct *relationVector[j]; // constraints if not orthogonal for normal vector\n }\n double newHead = headVector[j] + learningRate * delta * (1 - Math.pow(normalVector[j], 2)); // the partial derivative includes normal vector, second step chain rule\n double newRelation = relationVector[j] + learningRate * (delta - deltaC) - constraintR; // relation vector is not affected by normal vector, second step chain rule\n double newTail = tailVector[j] - learningRate * delta * (1 - Math.pow(normalVector[j], 2)); // the partial derivative includes normal vector\n double newNormal = normalVector[j] - constraintN; // update normal vector if not orthogonal\n newHeadVector[j] = newHead;\n newRelationVector[j] = newRelation;\n newTailVector[j] = newTail;\n newNormalVector[j] = newNormal;\n }\n double[] normedHeadVector = helper.norm(newHeadVector);\n double[] normedRelationVector = helper.norm(newRelationVector);\n double[] normedTailVector = helper.norm(newTailVector);\n double[] normedNormalVector = helper.norm(newNormalVector);\n copyEntityVectors.set(head, normedHeadVector);\n copyEntityVectors.set(tail, normedTailVector);\n copyRelationVectors.set(relation, normedRelationVector);\n copyNormalVectors.set(relation, normedNormalVector);\n }\n }\n entityVectors = copyEntityVectors;\n relationVectors = copyRelationVectors;\n normalVectors = copyNormalVectors;\n }", "@Override\n public void calculate(double[] x) {\n\n double prob = 0.0; // the log prob of the sequence given the model, which is the negation of value at this point\n Triple<double[][], double[][], double[][]> allParams = separateWeights(x);\n double[][] linearWeights = allParams.first();\n double[][] W = allParams.second(); // inputLayerWeights \n double[][] U = allParams.third(); // outputLayerWeights \n\n double[][] Y = null;\n if (flags.softmaxOutputLayer) {\n Y = new double[U.length][];\n for (int i = 0; i < U.length; i++) {\n Y[i] = ArrayMath.softmax(U[i]);\n }\n }\n\n double[][] What = emptyW();\n double[][] Uhat = emptyU();\n\n // the expectations over counts\n // first index is feature index, second index is of possible labeling\n double[][] E = empty2D();\n double[][] eW = emptyW();\n double[][] eU = emptyU();\n\n // iterate over all the documents\n for (int m = 0; m < data.length; m++) {\n int[][][] docData = data[m];\n int[] docLabels = labels[m];\n\n // make a clique tree for this document\n CRFCliqueTree cliqueTree = CRFCliqueTree.getCalibratedCliqueTree(docData, labelIndices, numClasses, classIndex,\n backgroundSymbol, new NonLinearCliquePotentialFunction(linearWeights, W, U, flags));\n\n // compute the log probability of the document given the model with the parameters x\n int[] given = new int[window - 1];\n Arrays.fill(given, classIndex.indexOf(backgroundSymbol));\n int[] windowLabels = new int[window];\n Arrays.fill(windowLabels, classIndex.indexOf(backgroundSymbol));\n\n if (docLabels.length>docData.length) { // only true for self-training\n // fill the given array with the extra docLabels\n System.arraycopy(docLabels, 0, given, 0, given.length);\n System.arraycopy(docLabels, 0, windowLabels, 0, windowLabels.length);\n // shift the docLabels array left\n int[] newDocLabels = new int[docData.length];\n System.arraycopy(docLabels, docLabels.length-newDocLabels.length, newDocLabels, 0, newDocLabels.length);\n docLabels = newDocLabels;\n }\n // iterate over the positions in this document\n for (int i = 0; i < docData.length; i++) {\n int label = docLabels[i];\n double p = cliqueTree.condLogProbGivenPrevious(i, label, given);\n if (VERBOSE) {\n System.err.println(\"P(\" + label + \"|\" + ArrayMath.toString(given) + \")=\" + p);\n }\n prob += p;\n System.arraycopy(given, 1, given, 0, given.length - 1);\n given[given.length - 1] = label;\n }\n\n // compute the expected counts for this document, which we will need to compute the derivative\n // iterate over the positions in this document\n for (int i = 0; i < docData.length; i++) {\n // for each possible clique at this position\n System.arraycopy(windowLabels, 1, windowLabels, 0, window - 1);\n windowLabels[window - 1] = docLabels[i];\n for (int j = 0; j < docData[i].length; j++) {\n Index<CRFLabel> labelIndex = labelIndices[j];\n // for each possible labeling for that clique\n int[] cliqueFeatures = docData[i][j];\n double[] As = null;\n double[] fDeriv = null;\n double[][] yTimesA = null;\n double[] sumOfYTimesA = null;\n\n if (j == 0) {\n As = NonLinearCliquePotentialFunction.hiddenLayerOutput(W, cliqueFeatures, flags);\n fDeriv = new double[inputLayerSize];\n double fD = 0;\n for (int q = 0; q < inputLayerSize; q++) {\n if (useSigmoid) {\n fD = As[q] * (1 - As[q]); \n } else {\n fD = 1 - As[q] * As[q]; \n }\n fDeriv[q] = fD;\n }\n\n // calculating yTimesA for softmax\n if (flags.softmaxOutputLayer) {\n double val = 0;\n\n yTimesA = new double[outputLayerSize][numHiddenUnits];\n for (int ii = 0; ii < outputLayerSize; ii++) {\n yTimesA[ii] = new double[numHiddenUnits];\n }\n sumOfYTimesA = new double[outputLayerSize];\n\n for (int k = 0; k < outputLayerSize; k++) {\n double[] Yk = null;\n if (flags.tieOutputLayer) {\n Yk = Y[0];\n } else {\n Yk = Y[k];\n }\n double sum = 0;\n for (int q = 0; q < inputLayerSize; q++) {\n if (q % outputLayerSize == k) {\n int hiddenUnitNo = q / outputLayerSize;\n val = As[q] * Yk[hiddenUnitNo];\n yTimesA[k][hiddenUnitNo] = val;\n sum += val;\n }\n }\n sumOfYTimesA[k] = sum;\n }\n }\n\n // calculating Uhat What\n int[] cliqueLabel = new int[j + 1];\n System.arraycopy(windowLabels, window - 1 - j, cliqueLabel, 0, j + 1);\n\n CRFLabel crfLabel = new CRFLabel(cliqueLabel);\n int givenLabelIndex = labelIndex.indexOf(crfLabel);\n double[] Uk = null;\n double[] UhatK = null;\n double[] Yk = null;\n double[] yTimesAK = null;\n double sumOfYTimesAK = 0;\n if (flags.tieOutputLayer) {\n Uk = U[0];\n UhatK = Uhat[0];\n if (flags.softmaxOutputLayer) {\n Yk = Y[0];\n }\n } else {\n Uk = U[givenLabelIndex];\n UhatK = Uhat[givenLabelIndex];\n if (flags.softmaxOutputLayer) {\n Yk = Y[givenLabelIndex];\n }\n }\n\n if (flags.softmaxOutputLayer) {\n yTimesAK = yTimesA[givenLabelIndex];\n sumOfYTimesAK = sumOfYTimesA[givenLabelIndex];\n }\n\n for (int k = 0; k < inputLayerSize; k++) {\n double deltaK = 1;\n if (flags.sparseOutputLayer || flags.tieOutputLayer) {\n if (k % outputLayerSize == givenLabelIndex) {\n int hiddenUnitNo = k / outputLayerSize;\n if (flags.softmaxOutputLayer) {\n UhatK[hiddenUnitNo] += (yTimesAK[hiddenUnitNo] - Yk[hiddenUnitNo] * sumOfYTimesAK);\n deltaK *= Yk[hiddenUnitNo];\n } else {\n UhatK[hiddenUnitNo] += As[k];\n deltaK *= Uk[hiddenUnitNo];\n }\n }\n } else {\n UhatK[k] += As[k];\n if (useOutputLayer) {\n deltaK *= Uk[k];\n }\n }\n if (useHiddenLayer)\n deltaK *= fDeriv[k];\n if (useOutputLayer) {\n if (flags.sparseOutputLayer || flags.tieOutputLayer) {\n if (k % outputLayerSize == givenLabelIndex) {\n double[] WhatK = What[k];\n for (int n = 0; n < cliqueFeatures.length; n++) {\n WhatK[cliqueFeatures[n]] += deltaK;\n }\n }\n } else {\n double[] WhatK = What[k];\n for (int n = 0; n < cliqueFeatures.length; n++) {\n WhatK[cliqueFeatures[n]] += deltaK;\n }\n }\n } else {\n if (k == givenLabelIndex) {\n double[] WhatK = What[k];\n for (int n = 0; n < cliqueFeatures.length; n++) {\n WhatK[cliqueFeatures[n]] += deltaK;\n }\n }\n }\n }\n }\n\n for (int k = 0; k < labelIndex.size(); k++) { // labelIndex.size() == numClasses\n int[] label = labelIndex.get(k).getLabel();\n double p = cliqueTree.prob(i, label); // probability of these labels occurring in this clique with these features\n if (j == 0) { // for node features\n double[] Uk = null;\n double[] eUK = null;\n double[] Yk = null;\n if (flags.tieOutputLayer) {\n Uk = U[0];\n eUK = eU[0];\n if (flags.softmaxOutputLayer) {\n Yk = Y[0];\n }\n } else {\n Uk = U[k];\n eUK = eU[k];\n if (flags.softmaxOutputLayer) {\n Yk = Y[k];\n }\n }\n if (useOutputLayer) {\n for (int q = 0; q < inputLayerSize; q++) {\n double deltaQ = 1;\n if (flags.sparseOutputLayer || flags.tieOutputLayer) {\n if (q % outputLayerSize == k) {\n int hiddenUnitNo = q / outputLayerSize;\n if (flags.softmaxOutputLayer) {\n eUK[hiddenUnitNo] += (yTimesA[k][hiddenUnitNo] - Yk[hiddenUnitNo] * sumOfYTimesA[k]) * p;\n deltaQ = Yk[hiddenUnitNo];\n } else {\n eUK[hiddenUnitNo] += As[q] * p;\n deltaQ = Uk[hiddenUnitNo];\n }\n }\n } else {\n eUK[q] += As[q] * p;\n deltaQ = Uk[q];\n }\n if (useHiddenLayer)\n deltaQ *= fDeriv[q];\n if (flags.sparseOutputLayer || flags.tieOutputLayer) {\n if (q % outputLayerSize == k) {\n double[] eWq = eW[q];\n for (int n = 0; n < cliqueFeatures.length; n++) {\n eWq[cliqueFeatures[n]] += deltaQ * p;\n }\n }\n } else {\n double[] eWq = eW[q];\n for (int n = 0; n < cliqueFeatures.length; n++) {\n eWq[cliqueFeatures[n]] += deltaQ * p;\n }\n }\n }\n } else {\n double deltaK = 1;\n if (useHiddenLayer)\n deltaK *= fDeriv[k];\n double[] eWK = eW[k];\n for (int n = 0; n < cliqueFeatures.length; n++) {\n eWK[cliqueFeatures[n]] += deltaK * p;\n }\n }\n } else { // for edge features\n for (int n = 0; n < cliqueFeatures.length; n++) {\n E[cliqueFeatures[n]][k] += p;\n }\n }\n }\n }\n }\n }\n\n if (Double.isNaN(prob)) { // shouldn't be the case\n throw new RuntimeException(\"Got NaN for prob in CRFNonLinearLogConditionalObjectiveFunction.calculate()\");\n }\n\n value = -prob;\n if(VERBOSE){\n System.err.println(\"value is \" + value);\n }\n\n // compute the partial derivative for each feature by comparing expected counts to empirical counts\n int index = 0;\n for (int i = 0; i < E.length; i++) {\n int originalIndex = edgeFeatureIndicesMap.get(i);\n\n for (int j = 0; j < E[i].length; j++) {\n derivative[index++] = (E[i][j] - Ehat[i][j]);\n if (VERBOSE) {\n System.err.println(\"linearWeights deriv(\" + i + \",\" + j + \") = \" + E[i][j] + \" - \" + Ehat[i][j] + \" = \" + derivative[index - 1]);\n }\n }\n }\n if (index != edgeParamCount)\n throw new RuntimeException(\"after edge derivative, index(\"+index+\") != edgeParamCount(\"+edgeParamCount+\")\");\n\n for (int i = 0; i < eW.length; i++) {\n for (int j = 0; j < eW[i].length; j++) {\n derivative[index++] = (eW[i][j] - What[i][j]);\n if (VERBOSE) {\n System.err.println(\"inputLayerWeights deriv(\" + i + \",\" + j + \") = \" + eW[i][j] + \" - \" + What[i][j] + \" = \" + derivative[index - 1]);\n }\n }\n }\n\n\n if (index != beforeOutputWeights)\n throw new RuntimeException(\"after W derivative, index(\"+index+\") != beforeOutputWeights(\"+beforeOutputWeights+\")\");\n\n if (useOutputLayer) {\n for (int i = 0; i < eU.length; i++) {\n for (int j = 0; j < eU[i].length; j++) {\n derivative[index++] = (eU[i][j] - Uhat[i][j]);\n if (VERBOSE) {\n System.err.println(\"outputLayerWeights deriv(\" + i + \",\" + j + \") = \" + eU[i][j] + \" - \" + Uhat[i][j] + \" = \" + derivative[index - 1]);\n }\n }\n }\n }\n\n if (index != x.length)\n throw new RuntimeException(\"after W derivative, index(\"+index+\") != x.length(\"+x.length+\")\");\n\n int regSize = x.length;\n if (flags.skipOutputRegularization || flags.softmaxOutputLayer) {\n regSize = beforeOutputWeights;\n }\n\n // incorporate priors\n if (prior == QUADRATIC_PRIOR) {\n double sigmaSq = sigma * sigma;\n for (int i = 0; i < regSize; i++) {\n double k = 1.0;\n double w = x[i];\n value += k * w * w / 2.0 / sigmaSq;\n derivative[i] += k * w / sigmaSq;\n }\n } else if (prior == HUBER_PRIOR) {\n double sigmaSq = sigma * sigma;\n for (int i = 0; i < regSize; i++) {\n double w = x[i];\n double wabs = Math.abs(w);\n if (wabs < epsilon) {\n value += w * w / 2.0 / epsilon / sigmaSq;\n derivative[i] += w / epsilon / sigmaSq;\n } else {\n value += (wabs - epsilon / 2) / sigmaSq;\n derivative[i] += ((w < 0.0) ? -1.0 : 1.0) / sigmaSq;\n }\n }\n } else if (prior == QUARTIC_PRIOR) {\n double sigmaQu = sigma * sigma * sigma * sigma;\n for (int i = 0; i < regSize; i++) {\n double k = 1.0;\n double w = x[i];\n value += k * w * w * w * w / 2.0 / sigmaQu;\n derivative[i] += k * w / sigmaQu;\n }\n }\n }", "public void alterarMetadados(Dataset dataset) throws SenseRDFException;", "public void update(){\n\t\tfor(ParticleEffect effect : effects){\n\t\t\teffect.update();\n\t\t}\n\t}", "public abstract Map<Integer, QuantDataset> updatedDatasets();", "@Override\n public void run() {\n this.mdc.insertLog(\"#1 Memecah Dataset\\n\");\n //1. Split Dataset\n boolean isSplitted = false;\n try {\n List<Object> split_mat = this.dataset.split(this.userMap,this.recipeMap);\n this.trainM = (TrainMatrix) split_mat.remove(0);\n this.testM = (TestMatrix) split_mat.remove(0);\n isSplitted = true;\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n if (isSplitted) {\n this.mdc.insertLog(\"Berhasil memecah dataset.\\n\");\n } else {\n this.mdc.insertLog(\"Error: Terjadi kesalahan dalam memecah dataset. Lihat riwayat error untuk lebih detail.\\n\");\n System.exit(1);\n return;\n }\n }\n\n this.mdc.insertLog(\"#2 Inisialisasi Matriks Faktor\\n\");\n //2. Initialize Matrix Factor \n boolean initializeFactor = false;\n FactorMatrix userFactor = null;\n FactorMatrix userFactor_2 = null;\n FactorMatrix recipeFactor = null;\n FactorMatrix ingredientFactor = null;\n FactorMatrix recipeIngredientsMap = null;\n try {\n // user factor = m x f\n userFactor = new FactorMatrix(this.trainM.getRowLength(), utils.getLatentSize(), FactorType.USER);\n // recipe factor = n x f\n recipeFactor = new FactorMatrix(this.trainM.getColLength(), utils.getLatentSize(), FactorType.RECIPES);\n // ingredient factor = o x f\n ingredientFactor = new FactorMatrix(this.ingredients.size(), utils.getLatentSize(), FactorType.INGREDIENTS);\n // recipe x ingredient map matrix = n x o (mask matrix 1/0)\n recipeIngredientsMap = new FactorMatrix(this.trainM.getColLength(),\n this.ingredients.size(),\n this.recipes,\n this.recipeMap,\n this.ingredientMap);\n userFactor_2 = new FactorMatrix(userFactor);\n initializeFactor = true;\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n if (initializeFactor) {\n this.mdc.insertLog(\"Berhasil menginisialisasi faktor matriks.\\n\");\n } else {\n this.mdc.insertLog(\"Error: Terjadi kesalahan dalam proses inisialisasi. Lihat riwayat error untuk lebih detail.\\n\");\n System.exit(1);\n return;\n }\n }\n \n //3. entering loop \n //loop a thousand time or break if objective value less than MIN_OBJECTIVE_VAL\n boolean firstMethodOptimization = false; \n boolean secondMethodOptimization = false;\n double objFuncPrev_1 = 0.0; \n double objFuncPrev_2 = 0.0;\n String[] rmseRecord1 = new String[MAX_LOOP];\n String[] rmseRecord2 = new String[MAX_LOOP];\n String[] objValueRecord1 = new String[MAX_LOOP];\n String[] objValueRecord2 = new String[MAX_LOOP];\n double[][] bestModel1 = null;\n double[][] bestModel2 = null;\n \n this.mdc.insertLog(\"#3.1 Memasuki iterasi untuk optimisasi model matriks faktor pertama.\\n\"\n + \"# Detail Proses No. 1:\\n\"\n + \"# Maksimal Iterasi: \" + MAX_LOOP + \"\\n\"\n + \"# Metode: Faktorisasi dengan dua buah matriks faktor, faktor Pengguna & Resep Makanan.\\n\"\n );\n long start = System.currentTimeMillis(); \n \n try{\n double max_value = Double.MAX_VALUE;\n int loop = MAX_LOOP;\n while(loop-->0){\n if(this.learningType > 0) this.utils.setLearningRate(1.0/((MAX_LOOP-loop)*1.0)); //iteratively \n \n double[][] currPrediction = userFactor.multiply(recipeFactor.transpose());\n double objectiveValue = utils.objectiveFunction_m1(\n userFactor,\n recipeFactor,\n this.dataset.getTrainPair()\n );\n \n double rmse = this.utils.rmse(this.dataset.getTrainPair(), currPrediction, trainM.getEntry(), 0);\n if(max_value > rmse){\n max_value = rmse;\n bestModel1 = currPrediction;\n }\n \n rmseRecord1[MAX_LOOP-1-loop] = String.format(\"%.3f\",rmse);\n objValueRecord1[MAX_LOOP-1-loop] = String.format(\"%.3f\",objectiveValue);\n \n if (Math.abs(objFuncPrev_1 - objectiveValue) <= 0.0001) break;\n else if(Double.isNaN(objectiveValue)) throw new RuntimeException(\"Objective Function value is NaN\");\n else{\n //do A-GD\n objFuncPrev_1 = objectiveValue;\n utils.alternatingGradientDescent_m1(\n userFactor,\n recipeFactor,\n this.dataset.getTrainPair()\n );\n } \n }\n firstMethodOptimization = true;\n } catch(Exception e){\n e.printStackTrace();\n } finally {\n if(firstMethodOptimization) this.mdc.insertLog(\"Proses optimisasi metode pertama selesai\\n\");\n else{ \n this.mdc.insertLog(\"Error: Terjadi kesalahan dalam proses faktorisasi. Lihat riwayat error untuk lebih detail.\\n\");\n System.exit(1);\n return;\n }\n }\n long elapsedTime_1 = System.currentTimeMillis() - start;\n \n \n this.mdc.insertLog(\"#3.2 Memasuki iterasi untuk optimisasi model matriks faktor kedua.\\n\"\n + \"# Detail Proses No. 2:\\n\"\n + \"# Maksimal Iterasi: \" + MAX_LOOP + \"\\n\"\n + \"# Metode: Faktorisasi dengan dua buah matriks faktor, faktor Pengguna & Bahan Makanan.\\n\"\n + \" Serta memanfaatkan matriks biner yang memetakan resep & bahan makanan.\\n\"\n );\n start = System.currentTimeMillis(); \n try {\n double max_value = Double.MAX_VALUE;\n int loop = MAX_LOOP;\n while (loop-- > 0) {\n if(this.learningType > 0) this.utils.setLearningRate(1.0/((MAX_LOOP-loop)*1.0)); //iteratively \n double[][] currPrediction = MatrixUtil.multiplyWithTransposing(\n MatrixUtil.multiplyWithTransposing(userFactor_2.getEntry(), ingredientFactor.getEntry(), 1),\n recipeIngredientsMap.getEntry(),\n 1); \n \n double objectiveValue = utils.objectiveFunction_m2(\n currPrediction,\n userFactor_2,\n ingredientFactor,\n this.dataset.getTrainPair()\n );\n \n double rmse = utils.rmse(this.dataset.getTrainPair(), currPrediction, this.trainM.getEntry(), 1);\n \n if(max_value > rmse){\n max_value = rmse;\n bestModel2 = currPrediction;\n }\n \n objValueRecord2[MAX_LOOP-1-loop] = String.format(\"%.3f\",objectiveValue);\n rmseRecord2[MAX_LOOP-1-loop] = String.format(\"%.3f\",rmse);\n if (Math.abs(objFuncPrev_2 - objectiveValue) <= 0.0001) {\n break;\n } else if (Double.isNaN(objectiveValue)) {\n throw new RuntimeException(\"Objective Function value is NaN\");\n } else {\n //do A-GD\n utils.alternatingGradientDescent_m2(\n currPrediction,\n userFactor_2,\n ingredientFactor,\n recipeIngredientsMap,\n this.dataset.getTrainPair()\n );\n objFuncPrev_2 = objectiveValue;\n }\n }\n secondMethodOptimization = true;\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n if (secondMethodOptimization) {\n this.mdc.insertLog(\"Proses optimisasi metode kedua selesai.\\n\");\n } else {\n this.mdc.insertLog(\"Error: Terjadi kesalahan dalam proses faktorisasi. Lihat riwayat error untuk lebih detail.\\n\");\n System.exit(1);\n return;\n }\n }\n long elapsedTime_2 = System.currentTimeMillis() - start;\n \n this.firstMethodRes = bestModel1;\n this.secondMethodRes = bestModel2;\n \n double rmse_1_test = utils.rmse(\n this.dataset.getTestPair(),\n firstMethodRes,\n this.testM.getEntry(),\n 0\n );\n \n double rmse_1_train = utils.rmse(\n this.dataset.getTrainPair(),\n firstMethodRes,\n this.trainM.getEntry(),\n 0\n );\n \n double rmse_1_data = utils.rmse(\n this.dataset.getDataPair(),\n firstMethodRes,\n this.dataset.getEntry(),\n 0\n );\n \n double rmse_2_test = utils.rmse(\n this.dataset.getTestPair(),\n secondMethodRes,\n this.testM.getEntry(),\n 1\n );\n \n double rmse_2_train = utils.rmse(\n this.dataset.getTrainPair(),\n secondMethodRes,\n this.trainM.getEntry(),\n 1\n );\n \n double rmse_2_data = utils.rmse(\n this.dataset.getDataPair(),\n secondMethodRes,\n this.dataset.getEntry(),\n 1\n );\n \n this.mdc.insertLog(\"Hasil RMSE:\\n\"\n + \"############################\\n\"\n + \"# Metode Faktorisasi Pertama\\n\"\n + String.format(\"# RMSE (Test Set) = %.3f\\n\",rmse_1_test)\n + String.format(\"# RMSE (Train Set) = %.3f\\n\",rmse_1_train)\n + String.format(\"# RMSE (Data Set) = %.3f\\n\",rmse_1_data)\n + String.format(\"# Waktu Berjalan: %.3fs\\n\", elapsedTime_1/1000F)\n + \"############################\\n\"\n + \"\\n\"\n + \"############################\\n\"\n + \"# SECOND OPTIMIZATION METHOD\\n\"\n + String.format(\"# RMSE (Test Set) = %.5f\\n\",rmse_2_test)\n + String.format(\"# RMSE (Train Set) = %.5f\\n\",rmse_2_train)\n + String.format(\"# RMSE (Data Set) = %.5f\\n\",rmse_2_data)\n + String.format(\"# Waktu Berjalan: %.3fs\\n\", elapsedTime_2/1000F)\n + \"############################\\n\"\n + \"\\n\"\n + \"Seluruh proeses faktorisasi telah selesai.\\n\");\n }", "public void setGMMDataset(GMMDataset dataset){\n this.dataset = dataset;\n }", "private void iterativeDataPropertyMetrics() {\n\t}", "public void update() {\r\n\t\tdiffuse();\r\n\t\tdecay();\r\n\t}", "@Override\n public void redo()\n {\n story.setEstimate(newEstimate);\n }", "public void update(double[][] data) {\n for (double[] x : data) {\n update(x);\n }\n }", "@Override\r\n public void calculate() {\r\n // do the calculations\r\n this.categories = new String[]{\"one\", \"two\"};\r\n this.data = new double[]{75, 50};\r\n }", "@DISPID(-2147412072)\n @PropPut\n void ondatasetchanged(\n java.lang.Object rhs);", "private synchronized void updateData() {\n if (nanoseconds >= 1000000000) {\n fps = frames;\n ups = updates;\n nanoseconds = nanoseconds - 1000000000;\n frames = 0;\n updates = 0;\n }\n\n long elapsedTime = System.nanoTime() - oldTime;\n oldTime = oldTime + elapsedTime;\n nanoseconds = nanoseconds + elapsedTime;\n\n particleSimulator.update(elapsedTime * 1e-9);\n\n // An update occurred, increment.\n updates++;\n\n // Ask for a repaint if we know of a component to repaint\n if (gameDrawingComponent != null) {\n gameDrawingComponent.repaint();\n }\n }", "public void recalculateStats(){\n weight = .25f * (shaftMat.getParameter(\"Density\") * length + headMat.getParameter(\"Density\") * .4f);\n sharpness = headMat.getParameter(\"Malleability\") + 1f / headMat.getParameter(\"Durability\"); //Malleable objects can be sharp, as can fragile objects\n// fragility = 1f / (shaftMat.getParameter(\"Durability\") * .5f + headMat.getParameter(\"Durability\") * .5f);\n durability = (shaftMat.getParameter(\"Durability\") * .5f + headMat.getParameter(\"Durability\") * .5f);\n trueness = shaftMat.getParameter(\"Regularity\") + headMat.getParameter(\"Regularity\");\n// length = 2f;\n }", "void updateDrawing() {\n filling = modelRoot.getCDraw().getFilling(this);\n dirtyBufF = true;\n tooltip = modelRoot.getCDraw().getTooltip(this);\n dirtyBufT = true;\n title = modelRoot.getCDraw().getTitle(this);\n dirtyBufTitle = true;\n colorTitle = modelRoot.getCDraw().getTitleColor(this);\n dirtyBufCT = true;\n }", "void postProcessData(){\n collectData = false;\n blueNumSteps = 0;\n List<double[]> inputListBlue = new ArrayList<>();\n List<double[]> outputListBlue = new ArrayList<>();\n for(int i = 0; i < blueList.size();i++){\n inputListBlue.add(new double[]{blueList.get(i).getYPos(), blueList.get(i).frame});\n }\n //Reset to zero\n while(blueList.size()>0){\n blueList.remove(0);\n }\n //Reset to zero\n for (int i = 0; i < outputListBlue.size(); i++) {\n outputListBlue.remove(0);\n }\n\n\n outputListBlue = cmwa(inputListBlue);\n outputListBlue = cmwa(outputListBlue);\n outputListBlue = cmwa(outputListBlue);\n outputListBlue = cmwa(outputListBlue);\n outputListBlue = cmwa(outputListBlue);\n\n\n blueNumSteps = findMax(outputListBlue);\n\n //Reset to zero\n for (int i = 0; i < inputListBlue.size(); i++) {\n inputListBlue.remove(0);\n }\n\n //Process red steps\n redNumSteps = 0;\n List<double[]> outputListRed = new ArrayList<>();\n List<double[]> inputListRed = new ArrayList<>();\n\n for(int i = 0; i < redList.size();i++){\n inputListRed.add(new double[]{redList.get(i).getYPos(), redList.get(i).frame});\n }\n //Reset to zero\n while(redList.size()>0){\n redList.remove(0);\n }\n //Reset to zero\n for (int i = 0; i < outputListRed.size(); i++) {\n outputListRed.remove(0);\n }\n\n outputListRed = cmwa(inputListRed);\n outputListRed = cmwa(outputListRed);\n outputListRed = cmwa(outputListRed);\n outputListRed = cmwa(outputListRed);\n outputListRed = cmwa(outputListRed);\n\n redNumSteps = findMax(outputListRed);\n\n //Reset to zero\n for (int i = 0; i < inputListRed.size(); i++) {\n inputListRed.remove(0);\n }\n\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n enableVideo = false;\n System.out.println(\"RED STEPS:\"+ redNumSteps);\n System.out.println(\"BLUE STEPS:\"+ blueNumSteps);\n if(Math.abs(blueNumSteps - redNumSteps) < 2 && Math.abs(stepCount - (blueNumSteps + redNumSteps))<2) {\n stepText.setText(USER_NAME + \"'s step length: \" + String.format(\"%.3f\", STEP_LENGTH) + \"m\" + \"\\n\" + \"Number of Steps: \" + totalNumSteps + \"\\n\" + \"Collection Complete!\");\n saveData();\n }\n else{\n stepText.setText(USER_NAME + \"'s step length: \" + String.format(\"%.3f\", STEP_LENGTH) + \"m\"+\"\\n\" + \"Data Collection Error: Steps do not Match\");\n }\n }\n });\n }", "private void processData() {\n\t\tfloat S, M, VPR, VM;\n\t\tgetCal();\n\t\tgetTimestamps();\n\t\t\n \n\t\tfor(int i = 0; i < r.length; i++) {\n\t\t\t//get lux\n\t\t\tlux[i] = RGBcal[0]*vlam[0]*r[i] + RGBcal[1]*vlam[1]*g[i] + RGBcal[2]*vlam[2]*b[i];\n \n\t\t\t//get CLA\n\t\t\tS = RGBcal[0]*smac[0]*r[i] + RGBcal[1]*smac[1]*g[i] + RGBcal[2]*smac[2]*b[i];\n\t\t\tM = RGBcal[0]*mel[0]*r[i] + RGBcal[1]*mel[1]*g[i] + RGBcal[2]*mel[2]*b[i];\n\t\t\tVPR = RGBcal[0]*vp[0]*r[i] + RGBcal[1]*vp[1]*g[i] + RGBcal[2]*vp[2]*b[i];\n\t\t\tVM = RGBcal[0]*vmac[0]*r[i] + RGBcal[1]*vmac[1]*g[i] + RGBcal[2]*vmac[2]*b[i];\n \n\t\t\tif(S > CLAcal[2]*VM) {\n\t\t\t\tCLA[i] = M + CLAcal[0]*(S - CLAcal[2]*VM) - CLAcal[1]*683*(1 - pow((float)2.71, (float)(-VPR/4439.5)));\n\t\t\t}\n\t\t\telse {\n\t\t\t\tCLA[i] = M;\n\t\t\t}\n\t\t\tCLA[i] = CLA[i]*CLAcal[3];\n\t\t\tif(CLA[i] < 0) {\n\t\t\t\tCLA[i] = 0;\n\t\t\t}\n \n\t\t\t//get CS\n\t\t\tCS[i] = (float) (.7*(1 - (1/(1 + pow((float)(CLA[i]/355.7), (float)1.1026)))));\n \n\t\t\t//get activity\n\t\t\ta[i] = (float) (pow(a[i], (float).5) * .0039 * 4);\n\t\t}\n\t}", "public void updateBatches(ImageBatches batches) {\r\n\t\tthis.batches = batches;\r\n\t\tif (batches == null) {\r\n\t\t\tthis.batch = new ImageBatch[0];\r\n\t\t} else {\r\n\t\t\tthis.batch = batches.getBatches();\r\n\t\t}\r\n\t\tfireTableDataChanged();\r\n\t}", "@Override\r\n public void afterVisit() {\n final MethodCallUtils.EnclosingRefs enclosing = \r\n MethodCallUtils.getEnclosingInstanceReferences(\r\n thisExprBinder, expr,\r\n superClassDecl,\r\n context.theReceiverNode, getEnclosingSyntacticDecl());\r\n /* The transformer will already be set in the map correctly for these\r\n * effects when they are original generated. We are just modifying\r\n * the lock and evidence information for the effects.\r\n */\r\n for (final Effect e : newContext.theEffects.build()) {\r\n Effect maskedEffect = e.mask(thisExprBinder);\r\n if (maskedEffect != null) {\r\n // Mask again if the effect is on the receiver of the anonymous class\r\n if (maskedEffect.affectsReceiver(newContext.theReceiverNode)) {\r\n context.theEffects.add(\r\n Effect.effect(\r\n maskedEffect.getSource(), maskedEffect.isRead(),\r\n new EmptyTarget(new EmptyEvidence(Reason.UNDER_CONSTRUCTION)),\r\n new MaskedEffectEvidence(maskedEffect),\r\n maskedEffect.getNeededLocks()));\r\n } else {\r\n final Target target = maskedEffect.getTarget();\r\n \r\n final TargetEvidence te = target.getEvidence();\r\n if (te instanceof EmptyEvidence\r\n && ((EmptyEvidence) te).getReason() == Reason.METHOD_CALL) {\r\n /* Special case: empty effect that carries lock preconditions */\r\n final ImmutableSet.Builder<NeededLock> newLockSet = ImmutableSet.builder();\r\n for (final NeededLock lock : maskedEffect.getNeededLocks()) {\r\n newLockSet.add(lock.replaceEnclosingInstanceReference(enclosing));\r\n }\r\n context.theEffects.add(\r\n Effect.empty(maskedEffect.getSource(),\r\n new EmptyEvidence(Reason.METHOD_CALL), \r\n ImmutableSet.of(getEvidence()), newLockSet.build()));\r\n } else if (target instanceof InstanceTarget) {\r\n final IRNode ref = target.getReference();\r\n \r\n final IRNode newRef = enclosing.replace(ref);\r\n if (newRef != null) {\r\n final IRNode objectExpr = thisExprBinder.bindThisExpression(newRef);\r\n final Target newTarget = new InstanceTarget(\r\n objectExpr, target.getRegion(),\r\n new EnclosingRefEvidence(maskedEffect.getSource(), ref, newRef));\r\n final Set<NeededLock> newLocks = new HashSet<>();\r\n for (final NeededLock lock : maskedEffect.getNeededLocks()) {\r\n newLocks.add(lock.replaceEnclosingInstanceReference(enclosing));\r\n }\r\n elaborateInstanceTarget(\r\n context.bcaQuery, lockFactory, thisExprBinder, lockModel.get(),\r\n maskedEffect.getSource(), maskedEffect.isRead(), newTarget, getEvidence(),\r\n newLocks, context.theEffects);\r\n } else {\r\n /* XXX: Not sure if it is possible to get here. External\r\n * variable references are turned into ANyInstance targets\r\n * during elaboration.\r\n */\r\n /* 2012-08-24: We have to clean the type to make sure it is not a \r\n * type formal.\r\n */\r\n IJavaType type = thisExprBinder.getJavaType(ref);\r\n if (type instanceof IJavaTypeFormal) {\r\n type = TypeUtil.typeFormalToDeclaredClass(\r\n thisExprBinder.getTypeEnvironment(), (IJavaTypeFormal) type);\r\n }\r\n context.theEffects.add(Effect.effect(\r\n maskedEffect.getSource(), maskedEffect.isRead(),\r\n new AnyInstanceTarget(\r\n (IJavaReferenceType) type, target.getRegion(),\r\n new UnknownReferenceConversionEvidence(\r\n maskedEffect, ref, (IJavaReferenceType) type)),\r\n getEvidence(), maskedEffect.getNeededLocks()));\r\n }\r\n } else {\r\n context.theEffects.add(\r\n maskedEffect.updateEvidence(target.getEvidence(), ImmutableSet.of(getEvidence())));\r\n }\r\n }\r\n }\r\n }\r\n }", "public void logCut(Dataset ds){\n dataProcessToolPanel.logCut(dataset);\n }", "@Override\n\tpublic void doWork() throws OperatorException {\n\t\tExampleSet eSet = exampleSetInput.getData(ExampleSet.class);\n\t\teSet.recalculateAllAttributeStatistics();\n\t\tDataStatistics statistics = new DataStatistics();\n\t\tIterator<Attribute> i = eSet.getAttributes().allAttributes();\n\t\twhile (i.hasNext()) {\n\t\t\tstatistics.addInfo(eSet, i.next());\n\t\t}\n\t\texampleSetOutput.deliver(eSet);\n\t\tstatisticsOutput.deliver(statistics);\n\t}", "private void calculateRecForces(){\n\t\t\n\t\t\n\t\tfor(Particle p : this){\n\t\t\t//Pg 183 Lee[05]\n\t\t\t//For each grid point that this particle has been interpolated to\n\t\t\tfor(int dx = -ASSIGNMENT_SCHEME_ORDER; dx < ASSIGNMENT_SCHEME_ORDER; dx++)\n\t\t\t{\n\t\t\t\tfor(int dy = -ASSIGNMENT_SCHEME_ORDER; dy < ASSIGNMENT_SCHEME_ORDER; dy++)\n\t\t\t\t{\n\t\t\t\t\tdouble uX = p.getPosition().re()/1.0 * CELL_SIDE_COUNT;//Scaled fractional coordinate\n\t\t\t\t\tdouble uY = p.getPosition().im()/1.0 * CELL_SIDE_COUNT;//Scaled fractional coordinate\n\t\t\t\t\tint particleCellX = (int)Math.round(p.getPosition().re()/1.0 * CELL_SIDE_COUNT);\n\t\t\t\t\tint particleCellY = (int)Math.round(p.getPosition().im()/1.0 * CELL_SIDE_COUNT);\n\t\t\t\t\tint thisX = particleCellX + dx;\n\t\t\t\t\tint thisY = particleCellY + dy;\n\t\t\t\t\tif(thisX >= 0 && thisY >= 0 && thisX < CELL_SIDE_COUNT && thisY < CELL_SIDE_COUNT)\n\t\t\t\t\t{\n\t\t\t\t\t\tdouble dQdx = p.getCharge() * M.evaluateDerivative(uX - thisX) * M.evaluate(uY - thisY);\n\t\t\t\t\t\tdouble dQdy = p.getCharge() * M.evaluate(uX - thisX) * M.evaluateDerivative(uY - thisY);\n\t\t\t\t\t\tp.addToForce(-dQdx * convolutedMatrix[thisX][thisY].re(), -dQdy * convolutedMatrix[thisX][thisY].re()); //FIXME .re()?\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "@Override public void reduce(CMTask drt) {\n if (!_model.regression) {\n if (_matrix == null) {\n _matrix = drt._matrix;\n } else {\n _matrix = _matrix.add(drt._matrix);\n }\n _sum += drt._sum;\n // Reduce tree errors\n long[] ept1 = _errorsPerTree;\n long[] ept2 = drt._errorsPerTree;\n if (ept1 == null) _errorsPerTree = ept2;\n else if (ept2 != null) {\n if (ept1.length < ept2.length) ept1 = Arrays.copyOf(ept1, ept2.length);\n for (int i = 0; i < ept2.length; i++) ept1[i] += ept2[i];\n }\n\n if (_cms!=null)\n for (int i = 0; i < _cms.length; i++) Utils.add(_cms[i], drt._cms[i]);\n\n if (_oobs != null)\n for (int i = 0; i < _oobs.length; ++i) _oobs[i] += drt._oobs[i];\n } else {\n _ss += drt._ss;\n _rowcnt += drt._rowcnt;\n }\n }", "private void learn() {\n\t\tupdateValues();\n\t\tif(CFG.isUpdatedPerformanceHistory()){\n\t\t\tupdateHistory();\n\t\t}\n\t\tif(CFG.isEvaluated()) evaluate();\n\t}", "void fit(DataSet dataSet);", "public void rewrite(){\n\t\t//SROEL2DatalogRewriter rewriter = new SROEL2DatalogRewriter();\n\t\t\n\t\tlong startTime = System.currentTimeMillis();\n\t\t\n\t\t//Rewriting for global context.\n\t\tRLGlobal2DatalogRewriter globalrewriter = new RLGlobal2DatalogRewriter();\n\t\tdatalogGlobal = globalrewriter.rewrite(inputCKR.getGlobalOntology());\n\t\t//System.out.println(\"Rewriting program for global context complete.\");\n\t\t\n\t\t//Computation of set of contexts and associations to modules\n\t\tcomputeSets(datalogGlobal);\n\t\t//System.out.println(\"Set of contexts and modules associations computed.\");\n\t\t\n\t\t//Computation of local contexts knowledge bases.\n\t\tcomputeLocalKB();\n\t\t\n\t\t//Rewriting for local contexts knowledge bases.\n\t\tRLLocal2DatalogRewriter localrewriter = new RLLocal2DatalogRewriter();\n\t\t\n\t\tdatalogLocal = new LinkedList<DLProgram>();\n\t\tfor (String c : contextsSet) {\n\t\t\t//System.out.println(\"Rewriting program for \" + c.replaceAll(\"\\\"\", \"\"));\n\t\t\tlocalrewriter.setContextID(c.replaceAll(\"\\\"\", \"\"));\n\t\t\tdatalogLocal.add(localrewriter.rewrite(contextsOntologies.get(c)));\n\t\t}\n\t\t\n\t\t//for (OWLOntology o : inputCKR.getLocalOntology()) {\n\t\t//\tlocalrewriter.setLocalID(\"c\");\n\t\t//\t//o.getOWLOntologyManager().addAxioms(o, inputCKR.getGlobalOntology().getAxioms());\n\t\t//\t\n\t\t//\tdatalogLocal.add(localrewriter.rewrite(o));\n\t\t//\t//System.out.println(datalogLocal.getLast().getStatements().size());\n\t\t//}\n\t\t\t\t\n\t\tlong endTime = System.currentTimeMillis();\n\t\trewritingTime = endTime - startTime;\n\n\t\t//System.out.println(\"Rewriting completed in \" + rewritingTime + \" ms.\");\n\t\t//System.out.println(datalogGlobal.getStatements().size());\n\t\t\n\t\t//Compute CKR Program.\n\t\tdatalogCKR = new DLProgram();\n\t\n\t\tdatalogCKR.addAll(datalogGlobal.getStatements());\n\t\tfor (DLProgram dlProgram : datalogLocal) {\n\t\t\tdatalogCKR.addAll(dlProgram.getStatements());\t\n\t\t}\n\t\t//Add local inference rules.\n\t\tdatalogCKR.addAll(DeductionRuleset.getPloc());\n\t\t//Add local propagation rules.\n\t\tdatalogCKR.addAll(DeductionRuleset.getPd());\n\t\t\n\t\t//StringReader reader = new StringReader(\"hasModule(X,Y) :- triple(X, \\\"hasModule\\\", Y, \\\"g\\\").\");\n\t\t//DLProgramParser dlProgramParser = new DLProgramParser(reader);\n\t\t//try {\n\t\t//\tdatalogCKR.addAll(dlProgramParser.program().getStatements());\n\t\t//} catch (ParseException e) {\n\t\t//\te.printStackTrace();\n\t\t//}\n\t}", "private void updateData(Multa ant, Multa multa) {\n\t}", "void flushAll() {\n dirtyS = true;\n dirtyD = true;\n modelRoot.incrementNumberOfDirtySNodes();\n modelRoot.incrementNumberOfDirtyDNodes();\n }", "@Override\n protected void doPlayEffect(final SwccgGame game) {\n BattleState battleState = game.getGameState().getBattleState();\n battleState.increaseBaseAttrition(game.getDarkPlayer(), battleState.getTotalBattleDestiny(game, game.getLightPlayer()));\n battleState.increaseBaseAttrition(game.getLightPlayer(), battleState.getTotalBattleDestiny(game, game.getDarkPlayer()));\n battleState.baseAttritionCalculated();\n\n // Emit effect result that can trigger cards that can respond to the attrition being calculated\n game.getActionsEnvironment().emitEffectResult(\n new InitialAttritionCalculatedResult(battleState.getPlayerInitiatedBattle()));\n }", "public boolean callCalculateTxDurationSP(DatasetItem dataset) {\n return callCalculateTxDurationSP(dataset, null);\n }", "public void unaverage() {\n\t\tif (!averaged)\n\t\t\tthrow new AssertionError(\"can't unaverage twice!!\");\n\t\t\n\t\tfor (int i = 0; i < w.length; i++)\n\t\t\tw[i] = (w[i] + wupdates[i])/(t+1.0);\n\t\t\n\t\tscale = 1.0;\n\t\taveraged = false;\n\t}", "void clearDataAndProceed() {\n\t\tclearData();\n\t\tfileCounter++;\n\t\tif (fileCounter >= fileNames.size()){\n\t\t\tSystem.exit(0);\n\t\t\tSystem.out.println(\"Images over\");\n\t\t}\n\t\tloadImage();\n\t}", "public void applyUpdates() {\r\n synchronized (visualItemMap) {\r\n adder.execute(parentGroup);\r\n for (VisualItem3D item : visualItemMap.values()) {\r\n item.applyTransform();\r\n }\r\n }\r\n }", "public void updateDataset(Dataset dataset, User user) {\n // get current state of the report\n Report report = ReportingMechanism.getInstance().getReport();\n // calculate completeness\n float completeness = this.datasetPerformance.getCompletenessPercentage();\n // calculate number of users\n int numberOfUsers = this.datasetPerformance.getNumberOfUserAssigned();\n\n JsonObject reportObject = report.getJsonObject();\n JsonArray datasets = (JsonArray) reportObject.get(\"datasets\");\n Iterator<JsonElement> datasetIterator = datasets.iterator();\n while (datasetIterator.hasNext()) {\n JsonObject datasetObj = (JsonObject) (datasetIterator.next());\n if (datasetObj.get(\"dataset_id\").getAsInt() != dataset.getDatasetID())\n continue;\n // add number of users and completeness to report\n datasetObj.addProperty(\"number_of_users\", numberOfUsers);\n datasetObj.addProperty(\"completeness\", completeness);\n\n // final instance labels part\n JsonArray finalLabels = (JsonArray) datasetObj.get(\"final_instance_labels\");\n ArrayList<String> finalLabelsList = datasetPerformance.getDistributionInstance();\n\n // flush final labels array\n for (int z = finalLabels.size() - 1; z >= 0; z--) {\n finalLabels.remove(z);\n }\n // recreate final labels\n for (int i = 0; i < finalLabelsList.size(); i = i + 2) {\n JsonObject finalLabelObj = new JsonObject();\n finalLabelObj.addProperty(\"instance\", finalLabelsList.get(i));\n finalLabelObj.addProperty(\"percentage\", Double.parseDouble(finalLabelsList.get(i + 1)));\n finalLabels.add(finalLabelObj);\n }\n\n // starting of unique number of instances for each label part\n // -------------------\n\n JsonArray uniqueInstances = (JsonArray) datasetObj.get(\"unique_instance_number_for_each_label\");\n\n // flush unique instance labels array\n for (int z = uniqueInstances.size() - 1; z >= 0; z--) {\n uniqueInstances.remove(z);\n }\n\n // recreate unique instances\n ArrayList<Label> labels = datasetPerformance.getDataset().getClassLabels();\n int labelsSize = labels.size();\n for (int j = 0; j < labelsSize; j++) {\n JsonObject labelObj = new JsonObject();\n int number = datasetPerformance.getNumOfUniqueInstance(labels.get(j));\n labelObj.addProperty(\"label_id\", labels.get(j).getLabelID());\n labelObj.addProperty(\"unique_instance_number\", number);\n uniqueInstances.add(labelObj);\n }\n\n // --------------------------- ending of unique number of instances for each\n // label part\n\n // find current user's userMetric\n UserPerformance userPerformance = null;\n ArrayList<UserPerformance> userPerformances = ReportingMechanism.getInstance().getUserReportMechanism()\n .getUserPerformances();\n int userPerformancesSize = userPerformances.size();\n for (int i = 0; i < userPerformancesSize; i++) {\n if (userPerformances.get(i).getUser().getUserID() == user.getUserID()) {\n userPerformance = userPerformances.get(i);\n break;\n }\n }\n\n // starting of user completeness for datasets in report part\n // -----------------------------------------\n\n JsonArray userCompleteness = (JsonArray) datasetObj.get(\"user_completeness\");\n Iterator<JsonElement> userCompIterator = userCompleteness.iterator();\n // initially if there is no userCompleteness part, create it with user id and\n // percentage properties\n if (!userCompIterator.hasNext()) {\n userPerformancesSize = userPerformances.size();\n for (int i = 0; i < userPerformancesSize; i++) {\n JsonObject completenessObject = new JsonObject();\n completenessObject.addProperty(\"user_id\", userPerformances.get(i).getUser().getUserID());\n completenessObject.addProperty(\"percentage\", 0);\n userCompleteness.add(completenessObject);\n }\n }\n\n // if objects of the userCompleteness exists, find current user and update\n // corresponding properties\n userCompIterator = userCompleteness.iterator();\n boolean isFound = false;\n while (userCompIterator.hasNext()) {\n JsonObject completenessObj = (JsonObject) (userCompIterator.next());\n if (completenessObj.get(\"user_id\").getAsInt() == user.getUserID()) {\n completenessObj.addProperty(\"percentage\", userPerformance.getDatasetCompletenessPer());\n isFound = true;\n }\n }\n\n // if user added in between executions, create and update user's information\n if (!isFound) {\n JsonObject completenessObject = new JsonObject();\n completenessObject.addProperty(\"user_id\", user.getUserID());\n completenessObject.addProperty(\"percentage\", userPerformance.getDatasetCompletenessPer());\n userCompleteness.add(completenessObject);\n }\n\n // -------------------------------------------- ending of user completeness for\n // datasets in report part\n\n // starting of user consistency for datasets in report part\n // ----------------------------------\n\n JsonArray userConsistency = (JsonArray) datasetObj.get(\"user_consistency\");\n Iterator<JsonElement> userConsIterator = userConsistency.iterator();\n // if objects of the userConsistency array is not created then create and add\n // user id and consistency percentages\n if (!userConsIterator.hasNext()) {\n userPerformancesSize = userPerformances.size();\n for (int i = 0; i < userPerformancesSize; i++) {\n JsonObject consistencyObject = new JsonObject();\n consistencyObject.addProperty(\"user_id\", userPerformances.get(i).getUser().getUserID());\n consistencyObject.addProperty(\"consistency_percentages\", 0);\n userConsistency.add(consistencyObject);\n }\n }\n\n // if objects of the userConsistency array has already created then find current\n // user and update it\n userConsIterator = userConsistency.iterator();\n isFound = false;\n while (userConsIterator.hasNext()) {\n JsonObject consistencyObj = (JsonObject) (userConsIterator.next());\n if (consistencyObj.get(\"user_id\").getAsInt() == user.getUserID()) {\n JsonArray users = (JsonArray) reportObject.get(\"users\");\n Iterator<JsonElement> userIterator = users.iterator();\n while (userIterator.hasNext()) {\n JsonObject userObj = (JsonObject) (userIterator.next());\n // if current user is found in all users, update consistency percentage based on\n // all datasets\n if (userObj.get(\"user_id\").getAsInt() == user.getUserID()) {\n consistencyObj.addProperty(\"consistency_percentages\",\n userPerformance.getConsistencyPercentagesForUser(\n ReportingMechanism.getInstance().getAllDatasets()));\n }\n }\n isFound = true;\n }\n }\n\n // if user added in between executions, create and update user's information\n if (!isFound) {\n JsonObject consistencyObject = new JsonObject();\n\n JsonArray users = (JsonArray) reportObject.get(\"users\");\n Iterator<JsonElement> userIterator = users.iterator();\n while (userIterator.hasNext()) {\n JsonObject userObj = (JsonObject) (userIterator.next());\n if (userObj.get(\"user_id\").getAsInt() == user.getUserID()) {\n consistencyObject.addProperty(\"user_id\", user.getUserID());\n consistencyObject.addProperty(\"consistency_percentages\", userPerformance\n .getConsistencyPercentagesForUser(ReportingMechanism.getInstance().getAllDatasets()));\n }\n }\n userConsistency.add(consistencyObject);\n }\n\n // ---------------------------------- ending of user consistency for datasets in\n // report part\n\n }\n\n }", "@Override\n\tpublic void processInstruction(ExecutionContext ec) {\n\t\tlong t1 = System.currentTimeMillis();\n\n\t\tSparkExecutionContext sec = (SparkExecutionContext) ec;\n\n\t\tCacheType type = _type;\n\t\tString rddVar = type.isRight() ? input1.getName() : input2.getName();\n\t\tString bcastVar = type.isRight() ? input2.getName() : input1.getName();\n\t\tString betterRddVar = rddVar + \"_filtered\";\n\t\tString betterBcastVar = bcastVar + \"_filtered\";\n\t\tMatrixCharacteristics mcRdd = sec.getMatrixCharacteristics(rddVar);\n\t\tMatrixCharacteristics mcBc = sec.getMatrixCharacteristics(bcastVar);\n\t\tboolean needRepartitionNow = needRepartitionNow(sec);\n\t\tboolean needFilterNow = needFilterNow(sec);\n\t\tString dVarName = null; // TODO added by czh 检查是否是dVar\n\t\tif (_needCache && DWhileStatement.isDWhileTmpVar(bcastVar)) {\n\t\t\tdVarName = DWhileStatement.getDVarNameFromTmpVar(bcastVar);\n\t\t\tSystem.out.println(\"in delta mapmm: \" + dVarName);\n\t\t} else if (_needCache) {\n\t\t\tdVarName = bcastVar;\n\t\t}\n\n\t\t// TODO added by czh\n\t\tif (rddVar.equals(\"G\")) {\n\t\t\tDWhileProgramBlock.midT2 = System.currentTimeMillis();\n\t\t}\n\n\t\t// TODO added by czh 删\n\t\t_outputEmpty = false;\n\n\t\t//get input rdd with preferred number of partitions to avoid unnecessary repartitionNonZeros\n\t\tJavaPairRDD<MatrixIndexes, MatrixBlock> in1;\n\t\tif (_needCache && (hasRepartitioned.contains(rddVar) || hasFiltered.contains(rddVar)) && !needRepartitionNow\n\t\t\t\t&& DWhileStatement.isDWhileTmpVar(bcastVar)) {\n\t\t\t// 在dwhile中, 做过repartition或filter且当前不需要repartition时取 betterRddVar\n\t\t\tin1 = sec.getBinaryBlockRDDHandleForVariable(betterRddVar,\n\t\t\t\t\t(requiresFlatMapFunction(type, mcBc) && requiresRepartitioning(\n\t\t\t\t\t\t\ttype, mcRdd, mcBc, sec.getSparkContext().defaultParallelism())) ?\n\t\t\t\t\t\t\tgetNumRepartitioning(type, mcRdd, mcBc) : -1, _outputEmpty);\n\t\t} else {\n\t\t\tin1 = sec.getBinaryBlockRDDHandleForVariable(rddVar,\n\t\t\t\t\t(requiresFlatMapFunction(type, mcBc) && requiresRepartitioning(\n\t\t\t\t\t\t\ttype, mcRdd, mcBc, sec.getSparkContext().defaultParallelism())) ?\n\t\t\t\t\t\t\tgetNumRepartitioning(type, mcRdd, mcBc) : -1, _outputEmpty);\n\t\t}\n\n\t\t//investigate if a repartitioning - including a potential flip of broadcast and rdd\n\t\t//inputs - is required to ensure moderately sized output partitions (2GB limitation)\n\t\tif (requiresFlatMapFunction(type, mcBc) && requiresRepartitioning(type, mcRdd, mcBc, in1.getNumPartitions())) {\n\t\t\tint numParts = getNumRepartitioning(type, mcRdd, mcBc);\n\t\t\tint numParts2 = getNumRepartitioning(type.getFlipped(), mcBc, mcRdd);\n\t\t\tif (numParts2 > numParts) { //flip required\n\t\t\t\ttype = type.getFlipped();\n\t\t\t\trddVar = type.isRight() ? input1.getName() : input2.getName();\n\t\t\t\tbcastVar = type.isRight() ? input2.getName() : input1.getName();\n\t\t\t\tmcRdd = sec.getMatrixCharacteristics(rddVar);\n\t\t\t\tmcBc = sec.getMatrixCharacteristics(bcastVar);\n\t\t\t\tin1 = sec.getBinaryBlockRDDHandleForVariable(rddVar);\n\t\t\t\tLOG.warn(\"Mapmm: Switching rdd ('\" + bcastVar + \"') and broadcast ('\" + rddVar + \"') inputs \"\n\t\t\t\t\t\t+ \"for repartitioning because this allows better control of output partition \"\n\t\t\t\t\t\t+ \"sizes (\" + numParts + \" < \" + numParts2 + \").\");\n\t\t\t}\n\t\t}\n\n\t\tif (_needCache && needRepartitionNow) {\n\t\t\tSystem.out.println(\"repartitioning... \" + bcastVar);\n\t\t\thasRepartitioned.add(rddVar);\n\n\t\t\t// repartitionNonZeros in2\n\t\t\tMatrixBlock in2Block = sec.getMatrixObject(bcastVar).acquireReadAndRelease();\n\n\t\t\tMatrixBlock newIn2Block = LibMatrixReorg.repartitionNonZerosWithEmpty(\n\t\t\t\t\tsec, in2Block, true, dVarName, in1.getNumPartitions(), mcRdd);\n\t\t\tif (!sec.containsVariable(betterBcastVar)) {\n\t\t\t\tsec.setVariable(betterBcastVar, new MatrixObject(sec.getMatrixObject(bcastVar)));\n\t\t\t}\n\t\t\tsec.cleanupBroadcastByDWhile(sec.getMatrixObject(betterBcastVar));\n\t\t\tsec.setMatrixOutput(betterBcastVar, newIn2Block);\n\n\t\t\t// repartitionNonZeros in1\n\t\t\tString orderName = DWhileStatement.getRepartitionOrderName(dVarName);\n\t\t\tPartitionedBroadcast<MatrixBlock> order = sec.getBroadcastForVariable(orderName);\n\t\t\tin1 = in1.mapPartitionsToPair(new RepartitionMapFunction(order));\n\t\t\tif (!sec.containsVariable(betterRddVar)) {\n\t\t\t\tsec.setVariable(betterRddVar, new MatrixObject(sec.getMatrixObject(rddVar)));\n\t\t\t}\n\t\t\tsec.getMatrixCharacteristics(betterRddVar).setCols(newIn2Block.getNumRows());\n\t\t\tin1 = sec.persistRdd(rddVar, in1, MEMORY_AND_DISK);\n\t\t\tsec.setRDDHandleForVariable(betterRddVar, in1);\n\t\t\tsec.addLineageBroadcast(betterRddVar, orderName);\n\n\t\t\tSystem.out.println(\" done\");\n\n\t\t} else if (_needCache && hasRepartitioned.contains(rddVar) && DWhileStatement.isDWhileTmpVar(bcastVar)) {\n\t\t\t// 若在之前的迭代已repartition in1, 则调整 in2 顺序\n\t\t\tMatrixBlock in2Block = sec.getMatrixObject(bcastVar).acquireReadAndRelease();\n\t\t\tMatrixBlock newIn2Block =\n\t\t\t\t\tLibMatrixReorg.repartitionByOrderWithEmpty(sec, in2Block, new MatrixBlock(), true, dVarName);\n\n\t\t\tint selectSum = Arrays.stream(newIn2Block.getSelectBlock().getData()).sum();\n\t\t\tif (selectSum == 0) {\n\t\t\t\tupdateBinaryMMOutputMatrixCharacteristics(sec, true);\n\t\t\t\tMatrixCharacteristics outputMc = sec.getMatrixCharacteristics(output.getName());\n\t\t\t\tsec.setMatrixOutput(output.getName(),\n\t\t\t\t\t\tnew MatrixBlock((int) outputMc.getRows(), (int) outputMc.getCols(), true), getExtendedOpcode());\n\n\t\t\t\t// TODO added by czh debug\n\t\t\t\tlong t2 = System.currentTimeMillis();\n\t\t\t\tSystem.out.println(\"skip mapmm \" + bcastVar + \" time: \" + (t2 - t1) / 1000.0);\n\n\t\t\t\treturn;\n\t\t\t}\n\n\n\t\t\tif (!ec.containsVariable(betterBcastVar)) {\n\t\t\t\tMatrixObject mb = new MatrixObject(sec.getMatrixObject(bcastVar));\n\t\t\t\tec.setVariable(betterBcastVar, mb);\n\t\t\t}\n\t\t\tsec.unpersistBroadcastByDWhile(sec.getMatrixObject(betterBcastVar));\n\t\t\tsec.setMatrixOutput(betterBcastVar, newIn2Block);\n\n\t\t} else if (_needCache && DWhileStatement.isDWhileTmpVar(bcastVar)) {\n\t\t\t// 设置 in2.selectBlock\n\t\t\tMatrixBlock in2Block = sec.getMatrixObject(bcastVar).acquireReadAndRelease();\n\t\t\tString selectName = DWhileStatement.getSelectName(dVarName);\n\t\t\tMatrixBlock select = sec.getMatrixObject(selectName).acquireReadAndRelease();\n\t\t\tfloat blockSize = OptimizerUtils.DEFAULT_BLOCKSIZE;\n\t\t\tint brlen = (int) Math.ceil(in2Block.getNumRows() / blockSize);\n//\t\t\tFilterBlock selectBlock = sec.getMatrixObject(selectName).acquireReadAndRelease().getFilterBlock();\n\n\t\t\tFilterBlock selectBlock = new FilterBlock(brlen, 1);\n\t\t\tselectBlock.initData();\n\t\t\tfor (int bi = 0; bi < brlen; bi++) {\n\t\t\t\tboolean flag = false;\n\t\t\t\tfor (int i = (int) (bi * blockSize); i < (bi + 1) * blockSize && i < in2Block.getNumRows(); i++) {\n\t\t\t\t\tif (select.getValue(i, 0) != 0) {\n\t\t\t\t\t\tflag = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (flag) {\n\t\t\t\t\tselectBlock.setData(bi, 0, 1);\n\t\t\t\t} else {\n\t\t\t\t\tselectBlock.setData(bi, 0, 0);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tint selectSum = Arrays.stream(selectBlock.getData()).sum();\n\t\t\tif (selectSum == 0) {\n\t\t\t\tupdateBinaryMMOutputMatrixCharacteristics(sec, true);\n\t\t\t\tMatrixCharacteristics outputMc = sec.getMatrixCharacteristics(output.getName());\n\t\t\t\tsec.setMatrixOutput(output.getName(),\n\t\t\t\t\t\tnew MatrixBlock((int) outputMc.getRows(), (int) outputMc.getCols(), true), getExtendedOpcode());\n\n\t\t\t\t// TODO added by czh debug\n\t\t\t\tlong t2 = System.currentTimeMillis();\n\t\t\t\tSystem.out.println(\"skip mapmm \" + bcastVar + \" time: \" + (t2 - t1) / 1000.0);\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tin2Block.setSelectBlock(selectBlock);\n\t\t\tsec.setMatrixOutput(bcastVar, in2Block);\n\t\t}\n\n\t\t//get inputs\n\t\tif (_needCache && hasRepartitioned.contains(rddVar) && DWhileStatement.isDWhileTmpVar(bcastVar)) {\n\t\t\tbcastVar = betterBcastVar;\n\t\t}\n\t\tPartitionedBroadcast<MatrixBlock> in2 = sec.getBroadcastForVariable(bcastVar);\n\n\t\t//empty input block filter\n\t\tif (!_outputEmpty)\n\t\t\tin1 = in1.filter(new FilterNonEmptyBlocksFunction());\n\n\t\tif (needFilterNow) {\n\t\t\tSystem.out.print(\"filtering... \" + bcastVar);\n\t\t\thasFiltered.add(rddVar);\n\n\t\t\tin1 = in1.filter(new FilterNonEmptyBlocksFunction());\n\t\t\tsec.persistRdd(rddVar, in1, StorageLevels.MEMORY_AND_DISK);\n\t\t\tif (!sec.containsVariable(betterRddVar)) {\n\t\t\t\tsec.setVariable(betterRddVar, new MatrixObject(sec.getMatrixObject(rddVar)));\n\t\t\t}\n\t\t\tsec.setRDDHandleForVariable(betterRddVar, in1);\n\t\t\tsec.addLineageBroadcast(betterRddVar, bcastVar);\n\t\t\tif (hasRepartitioned.contains(rddVar) && DWhileStatement.isDWhileTmpVar(bcastVar)) {\n\t\t\t\tsec.addLineageBroadcast(betterRddVar, DWhileStatement.getRepartitionOrderName(dVarName));\n\t\t\t}\n\n\t\t\tSystem.out.println(\" done\");\n\t\t}\n\n\t\t//execute mapmm and aggregation if necessary and put output into symbol table\n\t\tif (_aggtype == SparkAggType.SINGLE_BLOCK) {\n\t\t\tJavaRDD<MatrixBlock> out = in1.map(new RDDMapMMFunction2(type, in2));\n\t\t\tMatrixBlock out2 = RDDAggregateUtils.sumStable(out);\n\n\t\t\t//put output block into symbol table (no lineage because single block)\n\t\t\t//this also includes implicit maintenance of matrix characteristics\n\t\t\tsec.setMatrixOutput(output.getName(), out2, getExtendedOpcode());\n\n\t\t} else { //MULTI_BLOCK or NONE\n\t\t\tJavaPairRDD<MatrixIndexes, MatrixBlock> out;\n\t\t\tif (requiresFlatMapFunction(type, mcBc)) {\n\t\t\t\tif (requiresRepartitioning(type, mcRdd, mcBc, in1.getNumPartitions())) {\n\t\t\t\t\tint numParts = getNumRepartitioning(type, mcRdd, mcBc);\n\t\t\t\t\tLOG.warn(\"Mapmm: Repartition input rdd '\" + rddVar + \"' from \" + in1.getNumPartitions() + \" to \"\n\t\t\t\t\t\t\t+ numParts + \" partitions to satisfy size restrictions of output partitions.\");\n\t\t\t\t\tin1 = in1.repartition(numParts);\n\t\t\t\t}\n\t\t\t\tout = in1.flatMapToPair(new RDDFlatMapMMFunction(type, in2));\n\t\t\t} else if (preservesPartitioning(mcRdd, type))\n\t\t\t\tout = in1.mapPartitionsToPair(new RDDMapMMPartitionFunction(type, in2), true);\n\t\t\telse\n\t\t\t\tout = in1.mapToPair(new RDDMapMMFunction(type, in2));\n\n\t\t\t//empty output block filter\n\t\t\tif (!_outputEmpty)\n\t\t\t\tout = out.filter(new FilterNonEmptyBlocksFunction());\n\n\t\t\tif (_aggtype == SparkAggType.MULTI_BLOCK)\n\t\t\t\tout = RDDAggregateUtils.sumByKeyStable(out, false);\n\n\t\t\t//put output RDD handle into symbol table\n\t\t\tsec.setRDDHandleForVariable(output.getName(), out);\n\t\t\tsec.addLineageRDD(output.getName(), rddVar);\n\t\t\tsec.addLineageBroadcast(output.getName(), bcastVar);\n\n\t\t\tif (needRepartitionNow || needFilterNow) {\n\t\t\t\tsec.unpersistRdd(rddVar);\n\t\t\t}\n\n\t\t\t//update output statistics if not inferred\n\t\t\tupdateBinaryMMOutputMatrixCharacteristics(sec, true);\n\t\t}\n\n\t\t// TODO added by czh debug\n\t\tsec.getMatrixInput(output.getName());\n\t\tsec.releaseMatrixInput(output.getName());\n\t\tlong t2 = System.currentTimeMillis();\n\t\tSystem.out.println(\"mapmm \" + bcastVar + \" time: \" + (t2 - t1) / 1000.0);\n\n\t\t// TODO added by czh\n\t\tif (rddVar.equals(\"TG\")) {\n\t\t\tDWhileProgramBlock.midT1 = System.currentTimeMillis();\n\t\t}\n\t}", "public void learn(final DeepRBM deepRBM, final Matrix dataSet) {\n final RBMLayer[] rbmLayers = deepRBM.getRbmLayers();\n\n final List<Matrix> trainingData = dataSet.splitColumns(rbmLayers[0].size()); // split dataset across rbms\n\n List<Matrix> samplePieces = trainingData;\n clock.reset();\n for(int layer = 0; layer < rbmLayers.length; layer++) {\n\n final RBMLayer rbmLayer = rbmLayers[layer];\n samplePieces = buildSamplesFromActivatedHiddenLayers(samplePieces, layer, rbmLayers);\n\n for(int r = 0; r < rbmLayer.size(); r++) {\n final RBM rbm = rbmLayer.getRBM(r);\n final Matrix splitDataSet = samplePieces.get(r);\n this.contrastiveDivergence.learn(rbm, splitDataSet);\n }\n\n }\n\n if(learningParameters.isLog()) {\n LOGGER.info(\"All Layers finished Training in \" + clock.elapsedSeconds() + \"ms\");\n }\n }", "protected void applyEffects()\n\t{\n\t\tfor(int i = 0; i < effects.length; i++)\n\t\t{\n\t\t\tif(effects[i] != null)\n\t\t\t{\n\t\t\t\teffects[i].applyEffect();\n\t\t\t}\n\t\t}\n\t}", "public void performComplete(BitmapHunter bitmapHunter) {\n if (MemoryPolicy.shouldWriteToMemoryCache(bitmapHunter.getMemoryPolicy())) {\n this.cache.set(bitmapHunter.getKey(), bitmapHunter.getResult());\n }\n this.hunterMap.remove(bitmapHunter.getKey());\n batch(bitmapHunter);\n if (bitmapHunter.getPicasso().loggingEnabled) {\n Utils.log(DISPATCHER_THREAD_NAME, \"batched\", Utils.getLogIdsForHunter(bitmapHunter), \"for completion\");\n }\n }", "public abstract void recalc();", "protected void postRun() {\r\n\t\tthis.calculateFlowBandwidthHops();\r\n\t\tdouble abt = this.ABT();\r\n\t\tdouble agt = this.AGT();\r\n\t\tthis.metrics.add(new ResultMetric(\"ABT\", abt));\r\n\t\tthis.metrics.add(new ResultMetric(\"AGT\", agt));\r\n\t\tthis.metrics.add(new ResultMetric(\"Hops\", this.Hops()));\r\n\t\tthis.metrics.add(new ResultMetric(\"AveHops\", this.Hops()\r\n\t\t\t\t/ this.flows.size()));\r\n\t\tthis.metrics.add(new ResultMetric(\"SuccCount\", this.successfulCount));\r\n\t\tthis.metrics.add(new ResultMetric(\"FailCount\", this.failedCount));\r\n\t\tthis.metrics.add(new ResultMetric(\"ServerNum\", this.dcn\r\n\t\t\t\t.getServerUUIDs().size()));\r\n\t\tthis.metrics.add(new ResultMetric(\"ThroughputPerLink\", abt\r\n\t\t\t\t/ this.dcn.linkCount()));\r\n\t}", "@Override\r\n\tpublic void updateData() {\n\t\t\r\n\t}", "public void updateChart(){\n for(Pair<Number,Number> p : sss.getPopulationQueue()){\n this.population.getData().add(new XYChart.Data<>(p.getKey(),p.getValue()));\n }\n for(Pair<Number,Number> p : sss.getDeathsQueue()){\n this.deaths.getData().add(new XYChart.Data<>(p.getKey(),p.getValue()));\n }\n for(Pair<Number,Number> p : sss.getInfectionsQueue()){\n this.infections.getData().add(new XYChart.Data<>(p.getKey(),p.getValue()));\n }\n for(Pair<Number,Number> p : sss.getHealsQueue()){\n this.heals.getData().add(new XYChart.Data<>(p.getKey(),p.getValue()));\n }\n sss.clearPopulationQueue();\n sss.clearDeathsQueue();\n sss.clearInfectionsQueue();\n sss.clearHealsQueue();\n }", "public void updateData(Trick completedTrick);", "protected void endBatch() {\n \n }", "public void apply() {\r\n\tif (currentEffect != null)\r\n\t currentEffect.removeFrom(kingdom);\r\n\r\n\tif (isVacant())\r\n\t currentEffect = penalty;\r\n\telse\r\n\t currentEffect = bonus;\r\n\r\n\tcurrentEffect.applyTo(kingdom);\r\n }", "private void prepareDataAnimation() {\n for (SliceValue value : pieChartData.getValues()) {\n value.setTarget((float) Math.random() * 30 + 15);//更新数据\n }\n detailLineChart.startDataAnimation();\n }", "private void recalculateMaxCounts() {\n for (int i = 0; i < datasets.size(); ++i) {\n XYDatasetWithGroups dataset = datasets.get(i);\n maxCounts.set(i, calculateMaxCount(dataset));\n }\n }", "public void performBatchComplete() {\n ArrayList arrayList = new ArrayList(this.batch);\n this.batch.clear();\n this.mainThreadHandler.sendMessage(this.mainThreadHandler.obtainMessage(8, arrayList));\n logBatch(arrayList);\n }", "public void reset() {\r\n\t\tready = false;\r\n\t\twitnessed_max_price = 0.0;\r\n\t\t\r\n\t\tfor (int i = 0; i<no_goods; i++)\r\n\t\t\tfor (int j = 0; j<no_bins; j++)\r\n\t\t\t\tmarg_prob[i][j] = 0.0;\r\n\t\t\r\n\t\tmarg_sum = 0;\r\n\t\t\r\n\t\tfor (HashMap<IntegerArray, double[]> p : this.prob)\r\n\t\t\tp.clear();\r\n\r\n\t\tfor (HashMap<IntegerArray, Integer> s : this.sum)\r\n\t\t\ts.clear();\r\n\t\t\r\n\t\tlog.clear();\r\n\t}", "private void resetMass() {\n\t\tsetOperation(\"\");\n\t}", "public void process(double delta) {\n\n effectProcess(delta);\n switch (this.damageState) {\n case DESTROY:\n destroyCase(delta);\n break;\n case DAMAGED:\n damagedCase(delta);\n break;\n case FULL:\n fullCase(delta);\n break;\n }\n }", "public void redraw(Data data)\n {\n outputHelper.redraw(data);\n }", "public void batchUpdateWeights() {\n\t\tObject[] keys = nextLayerNodes.keySet().toArray();\n\t\tfor (Object key : keys) {\n\t\t\tNode nextLayerNode = (Node) key;\n\t\t\t// System.out.printf(\"Updating weight from %f to %f%n\", nextLayerNodes.get(nextLayerNode), nextLayerNodesUpdateMap.get(nextLayerNode));\n\t\t\tdouble oldWeight = nextLayerNodes.get(nextLayerNode);\n\t\t\tnextLayerNodes.put(nextLayerNode, nextLayerNodesUpdateMap.get(nextLayerNode));\n\t\t\tdouble newWeight = nextLayerNodes.get(nextLayerNode);\n\t\t\tdouble deltaWeight = oldWeight-newWeight;\n\t\t\tSystem.out.printf(\"Changed from %f to %f%n\", oldWeight, newWeight);\n\t\t\tif (deltaWeight > 0.0) {\n\t\t\t\tif (nextLayerNodesArrayList.get(0).nextLayerNodes.size() == 0) {\n\t\t\t\t\tSystem.out.print(\"Hidden Node connected to output layer \");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\"Node connected to another hidden layer \");\n\t\t\t\t}\n\t\t\t\tSystem.out.printf (\"Increased!! Delta weight = %.10f%n\", deltaWeight);\n\t\t\t} else if (deltaWeight < 0.0) {\n\t\t\t\tif (nextLayerNodesArrayList.get(0).nextLayerNodes.size() == 0) {\n\t\t\t\t\tSystem.out.print(\"Hidden Node connected to output layer \");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\"Node connected to another hidden layer \");\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"Decreased!! Delta weight = %.10f%n\", deltaWeight);\n\t\t\t}\n\t\t}\n\t}", "public void update() {\n\n difT();\n difXY();\n solveFlow();\n //drawColorFlow();\n }", "private void activeDrawEffects() {\n }", "public void rewriteDLR(){\n\t\t\n\t\tlong startTime = System.currentTimeMillis();\n\t\t\n\t\t//Rewriting for global context.\n\t\tDLRGlobal2DatalogRewriter globalrewriter = new DLRGlobal2DatalogRewriter();\n\t\tdatalogGlobal = globalrewriter.rewrite(inputCKR.getGlobalOntology());\n\t\t\n\t\tlong endTime = System.currentTimeMillis();\n\t\trewritingTime = endTime - startTime;\n\t\t\n\t\t//Compute DKB Program.\n\t\tdatalogCKR = new DLProgram();\n\t\n\t\tdatalogCKR.addAll(datalogGlobal.getStatements());\n\n\t\t//Add local propagation rules.\n\t\tdatalogCKR.addAll(DLRDeductionRuleset.getPd());\n\t}", "public void resetComputation()\n {\n for (Block block : this.blocks) {\n block.setShadow(null);\n block.deleteInputValues();\n }\n }", "private void recalcD(int[] deltaA) {\n if(deltaA[0] != deltaA[1]) {\n if(deltaA[0] > deltaA[1]) {\n dA[1] = bresA(deltaA[0], deltaA[1], dA[1]);\n } else {\n dA[0] = bresA(deltaA[1], deltaA[0], dA[0]);\n }\n }\n //3D appears, what we do? Keep calm & copypaste shit for XZ, YZ\n }", "private void evaluateData () {\n long rows = DatabaseUtils.longForQuery(sqliteDBHelper.openSqlDatabaseReadable(), \"SELECT COUNT(*) FROM \" + SqliteDBStructure.DATA_AGGREGATE\r\n + \" JOIN \" + SqliteDBStructure.INFO_AT_ACCESSTIME + \" ON \"\r\n + SqliteDBStructure.DATA_AGGREGATE + \".\" + SqliteDBStructure.ACCESS_TIME + \" = \" + SqliteDBStructure.INFO_AT_ACCESSTIME + \".\" + SqliteDBStructure.ACCESS_TIME, null);\r\n // calculate the amount of tasks (thread) depending on the MaxBatchSize\r\n tasks = rows >= MaxBatchSize? (int)(rows/MaxBatchSize + 1):1;\r\n // set the amount of finished tasks to 0\r\n finished = 0;\r\n // send the amount of task to the main activity so it can be displayed in the progress dialog\r\n sendTaskAmount(tasks + 1);\r\n // create a thread pool with tasks amount of threads\r\n final ExecutorService executorService = Executors.newFixedThreadPool(tasks);\r\n // create a list which holds all the tasks to be executed\r\n final List<ProcessingDataHandler> taskList = new LinkedList<>();\r\n // for each task create a batch of MaxBatchSize rows to evaluate\r\n for (int i = 0; i < tasks; i++) {\r\n // pass the offset (where to start) and the limit (how many rows)\r\n taskList.add(new ProcessingDataHandler(i*MaxBatchSize, MaxBatchSize));\r\n }\r\n // invoke all the task at once\r\n new Thread(new Runnable() {\r\n @Override\r\n public void run() {\r\n try {\r\n executorService.invokeAll(taskList);\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }).start();\r\n\r\n updateProgressDialog();\r\n }", "public void runBatch();", "public void resetProcessed() {\r\n for (int x = 0; x < image.getWidth(); x++) {\r\n for (int y = 0; y < image.getHeight(); y++) {\r\n maskDone[x][y] = false;\r\n }\r\n }\r\n }", "public void updateData() {}", "void recalc() {\n\t\tthis.currentValue = baseValue;\n\t\tthis.modifiers.stream().forEach(a -> this.currentValue += a.getValue());\n\t}", "public void extrairMetadados(Dataset dataset) throws SenseRDFException;", "public synchronized void flush() {\n try {\n final EvaluateRequestBatch.Builder b = EvaluateRequestBatch.newBuilder();\n for (EvaluateRequest r; (r = batch.poll()) != null; ) {\n batchSerializedSize.getAndAdd(-r.getSerializedSize());\n b.addRequest(r);\n }\n if (b.getRequestCount() > 0) {\n batchCount.getAndAdd(-b.getRequestCount());\n outstandingCount.getAndAdd(b.getRequestCount());\n requestObserver.onNext(b.build());\n }\n } catch (RuntimeException e) {\n requestObserver.onError(e);\n throw e;\n }\n }", "private void remplirFabricantData() {\n\t}", "public void recalcDyeStats() {\n dyeINT = 0;\n dyeSTR = 0;\n dyeCON = 0;\n dyeMEN = 0;\n dyeWIT = 0;\n dyeDEX = 0;\n\n for (int i = 0; i < 3; i++) {\n final DyeData dye = dyes[i];\n if (dye == null) {\n continue;\n }\n if (!PlayerUtils.canPlayerWearDye(this, dye)) {\n continue;\n }\n\n dyeINT += dye._int;\n dyeSTR += dye.str;\n dyeMEN += dye.men;\n dyeCON += dye.con;\n dyeWIT += dye.wit;\n dyeDEX += dye.dex;\n }\n\n if (dyeINT > 5) {\n dyeINT = 5;\n }\n if (dyeSTR > 5) {\n dyeSTR = 5;\n }\n if (dyeMEN > 5) {\n dyeMEN = 5;\n }\n if (dyeCON > 5) {\n dyeCON = 5;\n }\n if (dyeWIT > 5) {\n dyeWIT = 5;\n }\n if (dyeDEX > 5) {\n dyeDEX = 5;\n }\n }", "public void rewriteMRCKR(){\n\t\t\t\t\n\t\tlong startTime = System.currentTimeMillis();\n\t\t\n\t\t//Rewriting for global context.\n\t\tMRGlobal2DatalogRewriter globalrewriter = new MRGlobal2DatalogRewriter();\n\t\tdatalogGlobal = globalrewriter.rewrite(inputCKR.getGlobalOntology());\n\t\t//System.out.println(\"Rewriting program for global context complete.\");\n\t\t\t\t\n\t\t//Get set of contexts and associations to modules from globalrewriter\n\t\tcontextsSet = globalrewriter.getContextsSet();\n\t\thasModuleAssociations = globalrewriter.getHasModuleAssociations();\n\t\t//System.out.println(\"Set of contexts and modules associations computed.\");\n\t\t\n\t\t//Computation of local contexts knowledge bases.\n\t\tcomputeLocalKB();\n\t\t\t\t\n\t\t//Rewriting for local contexts knowledge bases.\n\t\tMRLocal2DatalogRewriter localrewriter = new MRLocal2DatalogRewriter();\n\t\t\t\t\n\t\tdatalogLocal = new LinkedList<DLProgram>();\n\t\tfor (String c : contextsSet) {\n\t\t\t//System.out.println(\"Rewriting program for \" + c.replaceAll(\"\\\"\", \"\"));\n\t\t\tlocalrewriter.setContextID(c.replaceAll(\"\\\"\", \"\"));\n\t\t\t\n\t\t\tdatalogLocal.add(localrewriter.rewrite(contextsOntologies.get(c)));\n\t\t}\n\t\t\t\t\n\t\tlong endTime = System.currentTimeMillis();\n\t\trewritingTime = endTime - startTime;\n \n\t\t//System.out.println(\"Rewriting completed in \" + rewritingTime + \" ms.\");\n\t\t//System.out.println(datalogGlobal.getStatements().size());\n\t\t\n\t\t//Compute CKR Program.\n\t\tdatalogCKR = new DLProgram();\n\t \n\t\tdatalogCKR.addAll(datalogGlobal.getStatements());\n\t\t\n\t\tfor (DLProgram dlProgram : datalogLocal) {\n\t\t\tdatalogCKR.addAll(dlProgram.getStatements());\t\n\t\t}\n\t\t\n\t\t//Add local inference rules.\n\t\tdatalogCKR.addAll(MRDeductionRuleset.getPrl());\n\t\tdatalogCKR.addAll(MRDeductionRuleset.getPeval());\n\t\t\n\t\t//Add local propagation rules.\n\t\tdatalogCKR.addAll(MRDeductionRuleset.getPd());\t\t\n\t}", "public void restartDataset() {\n data = new Instances(initialData);\r\n loadInstancesData(data);\r\n RequestContext.getCurrentInstance().update(\"IdFormDialogsSelection:IdPanelSelection\");\r\n }", "public abstract void updateSystem(Set<Integer> selectedDatasetIds);", "void applyEffects();", "public void dataChanged() {\n // get latest data\n runs = getLatestRuns();\n wickets = getLatestWickets();\n overs = getLatestOvers();\n\n currentScoreDisplay.update(runs, wickets, overs);\n averageScoreDisplay.update(runs, wickets, overs);\n }", "private void updateEffectState(@Nonnull ScheduledEffect effect) {\n this.messagingTemplate.convertAndSend(\"/topic/effect/progress\", new EffectProgressEntity(effect.getEffectId(), effect.getProgress(), effect.getState()));\n }", "private void performRule(DataNormalizationRule rule, GraphModification modifications) throws DataNormalizationException, DatabaseException, SQLException {\n\t\tif (inputGraph.getGraphName().length() == 0) {\n\t\t\tthrow new DataNormalizationException(\"Empty Graph Name is not allowed.\");\n\t\t}\n\n\t\tif (modifications == null) {\n\t\t\t/**\n\t\t\t * In case there is no interest in what was changed just perform all the components in the correct order\n\t\t\t */\n\t\t\tperformComponents(rule, inputGraph.getGraphName());\n\t\t} else {\n\t\t\ttry {\n\t\t\t\tgetDirtyConnection().execute(markTemporaryGraph, original);\n\t\t\t\tgetDirtyConnection().execute(String.format(Locale.ROOT, backupQueryFormat, original, inputGraph.getGraphName()));\n\n\t\t\t\tperformComponents(rule, inputGraph.getGraphName());\n\n\t\t\t\tgetDirtyConnection().execute(markTemporaryGraph, modified);\n\t\t\t\tgetDirtyConnection().execute(String.format(Locale.ROOT, backupQueryFormat, modified, inputGraph.getGraphName()));\n\n\t\t\t\t/**\n\t\t\t\t * Unfortunatelly \"SELECT ?s ?p ?o WHERE {{GRAPH <%s> {?s ?p ?o}} MINUS {GRAPH <%s> {?s ?p ?o}}}\"\n\t\t\t\t * throws \"Internal error: 'output:valmode' declaration conflicts with 'output:format'\"\n\t\t\t\t *\n\t\t\t\t * Therefore it is necessary to first create graphs with differences.\n\t\t\t\t */\n\t\t\t\tgetDirtyConnection().execute(String.format(Locale.ROOT, diffQueryFormat, modified, original));\n\t\t\t\tgetDirtyConnection().execute(String.format(Locale.ROOT, diffQueryFormat, original, inputGraph.getGraphName()));\n\n\t\t\t\tWrappedResultSet inserted = getDirtyConnection().executeSelect(String.format(Locale.ROOT, selectQueryFormat, modified));\n\n\t\t\t\t/**\n\t\t\t\t * All that is new to the transformed graph are insertions done by this rule (one of its components)\n\t\t\t\t */\n\t\t\t\twhile (inserted.next()) {\n\t\t\t\t\tmodifications.addInsertion(rule,\n\t\t\t\t\t\t\tinserted.getString(\"s\"),\n\t\t\t\t\t\t\tinserted.getString(\"p\"),\n\t\t\t\t\t\t\tinserted.getString(\"o\"));\n\t\t\t\t}\n\n\t\t\t\tWrappedResultSet deleted = getDirtyConnection().executeSelect(String.format(Locale.ROOT, selectQueryFormat, original));\n\n\t\t\t\t/**\n\t\t\t\t * All that is missing from the transformed graph are deletions done by this rule (one of its components)\n\t\t\t\t */\n\t\t\t\twhile (deleted.next()) {\n\t\t\t\t\tmodifications.addDeletion(rule,\n\t\t\t\t\t\t\tdeleted.getString(\"s\"),\n\t\t\t\t\t\t\tdeleted.getString(\"p\"),\n\t\t\t\t\t\t\tdeleted.getString(\"o\"));\n\t\t\t\t}\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tgetDirtyConnection().execute(String.format(Locale.ROOT, dropBackupQueryFormat, original));\n\t\t\t\t} finally {}\n\t\t\t\ttry {\n\t\t\t\t\tgetDirtyConnection().execute(String.format(Locale.ROOT, dropBackupQueryFormat, modified));\n\t\t\t\t} finally {}\n\t\t\t\tgetDirtyConnection().execute(unmarkTemporaryGraph, original);\n\t\t\t\tgetDirtyConnection().execute(unmarkTemporaryGraph, modified);\n\t\t\t}\n\t\t}\n\t\tLOG.info(String.format(Locale.ROOT, \"Data Normalization rule %d applied: %s\", rule.getId(), rule.getLabel() != null ? rule.getLabel() : \"\"));\n\t}", "public void normalize() {\r\n\t\tfor (int i = 0; i<no_goods; i++) {\t\t\t\r\n\t\t\tfor (IntegerArray r : prob[i].keySet()) {\t\t\t\t\r\n\t\t\t\tdouble[] p = prob[i].get(r);\r\n\t\t\t\tint s = sum[i].get(r);\r\n\t\t\t\t\r\n\t\t\t\tfor (int j = 0; j<p.length; j++)\r\n\t\t\t\t\tp[j] /= s;\r\n\t\t\t}\r\n\r\n\t\t\t// compute the marginal distribution for this good\r\n\t\t\tfor (int j = 0; j<no_bins; j++)\r\n\t\t\t\tmarg_prob[i][j] /= marg_sum;\r\n\t\t}\r\n\t\t\r\n\t\tready = true;\r\n\t}", "private void operate(){//DONT EDIT\n\t\tholo=getHologramProcessor();\n\t\tref=getReferenceProcessor();\n dx=getDouble(dxTF);\n dy=getDouble(dyTF);\n Tolerance=getDouble(toleranceTF);\n wavelength=getDouble(wavelengthTF);\n distance=getDouble(distanceTF);\n Sigma=getInteger(sigmaTF);\n Iterations=getInteger(iterationsTF);\n \n if (holo == null) \n throw new ArrayStoreException(\"reconstruct: No hologram selected.\");\n else \n\t\t{\n\n\t\t\t//rec = HoloJUtils.reconstruct(holo.getWidth(),1,sideCenter,holo,butterworth);\n rec = HoloJUtils.reconstruct(holo,ref,distance,wavelength,Iterations,Tolerance,Sigma);\n// if (ref != null)\n//\t\t\t{\n//\t\t\t Point p = new Point();\n//\t\t\t p.x = holo.getWidth()/2;\n// p.y = holo.getHeight()/2;\n//\t\t\t\trec = HoloJUtils.reconstruct(radius,ratio,p,ref,holo,butterworth);\n// }\n//\t\t\trec.setCalibration(imageCal);\n rec.setTitle(\"\"+title);\n\t\t\trec.showHolo(\"Hologram : \"+rec.getTitle()+\" :\");\n\t\t\trec.showAmplitude(\"Amplitude\");\n\t\t}\n }", "public void computeForecasts (GUICalcProgressBar progress, RJGUIController.XferForecastMod xfer) {\n\n\t\t// Save the catalog parameters\n\n\t\tcat_forecastStartTimeParam = xfer.x_forecastStartTimeParam;\n\t\tcat_forecastEndTimeParam = xfer.x_forecastEndTimeParam;\n\n\t\t// Compute the aftershock forecasts\n\n\t\tseqSpecForecast = makeForecast (progress, cat_forecastStartTimeParam, cur_model, \"Seq. Specific\");\n\t\tgenericForecast = makeForecast (progress, cat_forecastStartTimeParam, genericModel, \"Generic\");\n\t\tbayesianForecast = makeForecast (progress, cat_forecastStartTimeParam, bayesianModel, \"Bayesian\");\n\n\t\t// Remove the model-specific message\n\t\t\n\t\tif (progress != null) {\n\t\t\t//progress.setIndeterminate(true);\n\t\t\t//progress.setProgressMessage(\"Plotting...\");\n\t\t\tprogress.setIndeterminate(true, \"Plotting...\");\n\t\t}\n\n\t\t// Pre-compute elements for expected aftershock MFDs.\n\n\t\tgui_view.precomputeEAMFD (progress, cat_forecastStartTimeParam, cat_forecastEndTimeParam);\n\n\t\treturn;\n\t}", "private void applyRules(GraphModification modifications) throws DataNormalizationException {\n\t\ttry {\n\t\t\tgetDirtyConnection();\n\n\t\t\tIterator<DataNormalizationRule> i = rules.iterator();\n\n\t\t\t/**\n\t\t\t * Ensure that the graph is either transformed completely or not at all\n\t\t\t */\n\t\t\t//getDirtyConnection().adjustTransactionLevel(EnumLogLevel.TRANSACTION_LEVEL);\n\n\t\t\twhile (i.hasNext()) {\n\t\t\t\tDataNormalizationRule rule = i.next();\n\n\t\t\t\ttry {\n\t\t\t\t\tperformRule(rule, modifications);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLOG.error(String.format(Locale.ROOT, \"Debugging of rule %d failed: %s\", rule.getId(), e.getMessage()));\n\t\t\t\t\tthrow new DataNormalizationException(e);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//getDirtyConnection().commit();\n\t\t} catch (DatabaseException e) {\n\t\t\tthrow new DataNormalizationException(e);\n\t\t//} catch (SQLException e) {\n\t\t//\tthrow new DataNormalizationException(e);\n\t\t}\n\t}", "protected abstract void startBatch(Matrix metadata);", "public void dataUpdated() {\r\n finish = getConfiguration().getTransformTarget() != null;\r\n this.wizardControl.updateView();\r\n }", "private void flushData()\n {\n try\n {\n while(state.get().ordinal() < SimulationState.TEARING_DOWN.ordinal() || !flushing.isEmpty())\n {\n ICardinality cardinality = flushing.poll(1, TimeUnit.MILLISECONDS);\n if (cardinality == null)\n continue;\n\n long numToFlush = cardinality.cardinality();\n counters.numFlushed.addAndGet(numToFlush);\n generateSSTables(cardinality, numToFlush, partitioner.getMinimumToken(), partitioner.getMaximumToken(), \"flushing\", true);\n }\n }\n catch (InterruptedException e)\n {\n logger.error(\"Exception happen during flushing\", e);\n }\n }", "public void reDraw() {\n if(entityManager.getPlayerVaccines() != 0){\n vaccine[entityManager.getPlayerVaccines()-1].draw();\n }\n lifeCount[entityManager.getHealth()].draw();\n\n if(entityManager.getHealth() != prevPlayerLife)\n lifeCount[prevPlayerLife].delete();\n prevPlayerLife = entityManager.getHealth();\n\n if(prevPlayerLife == 0){\n heart.draw();\n }\n\n if(entityManager.playerWithMask()){\n mask.draw();\n } else {\n mask.delete();\n }\n }", "@Override public void postGlobal() {\n for(int i=1;i<_chkProds.length;++i) _chkProds[i] *= _chkProds[i-1];\n }", "protected boolean batch() {\n return batch;\n }", "public void processData(int newVal) {\n\t\tif(samplePoints[counter] < 0) {\n\t\t\tsamplePoints[counter] = newVal;\n\t\t\tlastAverage = newVal;\n\t\t} else {\n\t\t\tdouble newAverage = lastAverage + ((newVal - samplePoints[counter]) / SAMPLE_POINTS);\n\t\t\tdouble difference = 10 * Math.abs(newAverage - lastAverage);\n\t\t\tsamplePoints[counter] = newVal;\n\t\t\tlastAverage = newAverage;\n\t\t\tif(tookOff) {\n\t\t\t\tif(difference > DIFFERENCE_THRESHOLD || System.currentTimeMillis() - startTime > 16000) {\n\t\t\t\t\t//The robot is landing\n\t\t\t\t\tSound.beep();\n\t\t\t\t\tziplineController.resumeThread();\n\t\t\t\t\ttookOff = false;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif(difference < DIFFERENCE_THRESHOLD) {\n\t\t\t\t\tdifferenceCounter--;\n\t\t\t\t} else {\n\t\t\t\t\tdifferenceCounter = DIFFERENCE_POINTS_COUNTER;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(differenceCounter < 0) {\n\t\t\t\t\t//The robot is now in the air.\n\t\t\t\t\tSound.beep();\n\t\t\t\t\ttookOff = true;\n\t\t\t\t\tstartTime = System.currentTimeMillis();\n\t\t\t\t\tziplineController.resumeThread();\n\t\t\t\t\tArrays.fill(samplePoints, -1);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(4000);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcounter = (counter + 1) % SAMPLE_POINTS;\n\t}", "private void updateFilters(Collection<Integer> datasetIds, String filterId) {\n selectedDatasetNumbers.clear();\n filtersSet.keySet().stream().map((keyFilterId) -> {\n DatasetPieChartFilter filter = filtersSet.get(keyFilterId);\n if (!keyFilterId.equalsIgnoreCase(filterId)) {\n filter.localUpdate(datasetIds, singlefilter);\n }\n return filter;\n }).forEachOrdered((filter) -> {\n selectedDatasetNumbers.add(filter.getSelectedDsIds().size());\n });\n\n }" ]
[ "0.5678551", "0.5441289", "0.52641135", "0.5197609", "0.5089818", "0.50439245", "0.4965669", "0.4931269", "0.49057242", "0.4842166", "0.48105446", "0.47921842", "0.4773979", "0.47729233", "0.47428572", "0.47302246", "0.47087446", "0.47030023", "0.46904564", "0.46815243", "0.46746594", "0.46659368", "0.4664473", "0.4639597", "0.46278208", "0.46163675", "0.46152887", "0.46019632", "0.4600466", "0.4579874", "0.4568015", "0.45597917", "0.45262316", "0.45217705", "0.44834998", "0.44817665", "0.44703302", "0.4467124", "0.44650468", "0.4458792", "0.4457647", "0.44500354", "0.4444752", "0.44399816", "0.44399676", "0.44391185", "0.44386524", "0.44302204", "0.44222432", "0.441829", "0.43996215", "0.43991596", "0.43969592", "0.43942678", "0.43885484", "0.43802363", "0.43758875", "0.4370799", "0.43672222", "0.43670976", "0.43650377", "0.43594077", "0.435792", "0.43558687", "0.43510377", "0.4350861", "0.4344018", "0.43377957", "0.4337211", "0.4334485", "0.43334943", "0.43201447", "0.43162566", "0.43156123", "0.43126786", "0.43069443", "0.43013284", "0.430129", "0.42977598", "0.42964926", "0.42890128", "0.42862856", "0.42731944", "0.42727947", "0.4270228", "0.42693326", "0.42596304", "0.42590728", "0.4257876", "0.4256533", "0.42506582", "0.42495376", "0.42482528", "0.42426938", "0.42422602", "0.42413706", "0.42402998", "0.42397815", "0.42364272", "0.4234981" ]
0.4467127
37
TODO Autogenerated method stub
@Override public void beforeTextChanged(CharSequence s, int start, int count, int after) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onTextChanged(CharSequence s, int start, int before, int count) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Method generated by IntelliJ IDEA GUI Designer >>> IMPORTANT!! <<< DO NOT edit this method OR call it in your code!
private void $$$setupUI$$$() { rootPanel = new JPanel(); rootPanel.setLayout(new GridLayoutManager(3, 5, new Insets(0, 5, 5, 5), -1, -1)); worldMap = new JPanel(); worldMap.setLayout(new GridBagLayout()); worldMap.setBackground(new Color(-1250068)); rootPanel.add(worldMap, new GridConstraints(1, 0, 2, 5, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, new Dimension(500, 500), null, null, 0, false)); simulationTime = new JLabel(); simulationTime.setText("0s"); rootPanel.add(simulationTime, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false)); final JLabel label1 = new JLabel(); label1.setText("Simulation time:"); rootPanel.add(label1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false)); final Spacer spacer1 = new Spacer(); rootPanel.add(spacer1, new GridConstraints(0, 4, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false)); averageWaitingTime = new JLabel(); averageWaitingTime.setText("0s"); rootPanel.add(averageWaitingTime, new GridConstraints(0, 3, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false)); final JLabel label2 = new JLabel(); label2.setText("Average waiting time"); rootPanel.add(label2, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}", "@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}", "@Override\n\tpublic void guiTinNhan() {\n\n\t}", "@Override\n\tprotected void setValueOnUi() {\n\n\t}", "@Override\n public void initGUI() {\n\n }", "private void $$$setupUI$$$() {\n ST = new JPanel();\n ST.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(6, 7, new Insets(0, 0, 0, 0), -1, -1));\n final com.intellij.uiDesigner.core.Spacer spacer1 = new com.intellij.uiDesigner.core.Spacer();\n ST.add(spacer1, new com.intellij.uiDesigner.core.GridConstraints(3, 0, 2, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer2 = new com.intellij.uiDesigner.core.Spacer();\n ST.add(spacer2, new com.intellij.uiDesigner.core.GridConstraints(1, 2, 1, 4, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer3 = new com.intellij.uiDesigner.core.Spacer();\n ST.add(spacer3, new com.intellij.uiDesigner.core.GridConstraints(1, 6, 4, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n enrereButton = new JButton();\n enrereButton.setText(\"Enrere\");\n ST.add(enrereButton, new com.intellij.uiDesigner.core.GridConstraints(4, 5, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer4 = new com.intellij.uiDesigner.core.Spacer();\n ST.add(spacer4, new com.intellij.uiDesigner.core.GridConstraints(5, 0, 1, 7, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer5 = new com.intellij.uiDesigner.core.Spacer();\n ST.add(spacer5, new com.intellij.uiDesigner.core.GridConstraints(4, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer6 = new com.intellij.uiDesigner.core.Spacer();\n ST.add(spacer6, new com.intellij.uiDesigner.core.GridConstraints(4, 1, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n okButton = new JButton();\n okButton.setText(\"Ok\");\n ST.add(okButton, new com.intellij.uiDesigner.core.GridConstraints(4, 4, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n SP = new JScrollPane();\n ST.add(SP, new com.intellij.uiDesigner.core.GridConstraints(2, 1, 2, 5, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n list1 = new JList();\n SP.setViewportView(list1);\n TriaDiff = new JComboBox();\n final DefaultComboBoxModel defaultComboBoxModel1 = new DefaultComboBoxModel();\n defaultComboBoxModel1.addElement(\"Tria una dificultat...\");\n defaultComboBoxModel1.addElement(\"Fàcil\");\n defaultComboBoxModel1.addElement(\"Mitjà\");\n defaultComboBoxModel1.addElement(\"Dificil\");\n TriaDiff.setModel(defaultComboBoxModel1);\n ST.add(TriaDiff, new com.intellij.uiDesigner.core.GridConstraints(0, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@Override\n public void initGui()\n {\n super.initGui();\n }", "@Override\r\n\tprotected void initUI() {\n\r\n\t}", "private void $$$setupUI$$$() {\n RG = new JPanel();\n RG.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(6, 6, new Insets(0, 0, 0, 0), -1, -1));\n RG.setOpaque(true);\n RG.setPreferredSize(new Dimension(348, 136));\n enrereButton = new JButton();\n enrereButton.setText(\"Enrere\");\n RG.add(enrereButton, new com.intellij.uiDesigner.core.GridConstraints(4, 2, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"Nombre d'usuaris registrats:\");\n RG.add(label1, new com.intellij.uiDesigner.core.GridConstraints(0, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label2 = new JLabel();\n label2.setText(\"Nombre de partides jugades totals:\");\n RG.add(label2, new com.intellij.uiDesigner.core.GridConstraints(1, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n Jocs = new JLabel();\n Jocs.setText(\"Label\");\n RG.add(Jocs, new com.intellij.uiDesigner.core.GridConstraints(2, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n Eljoc = new JLabel();\n Eljoc.setText(\"Label\");\n RG.add(Eljoc, new com.intellij.uiDesigner.core.GridConstraints(3, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n Partides = new JLabel();\n Partides.setText(\"Label\");\n RG.add(Partides, new com.intellij.uiDesigner.core.GridConstraints(1, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n Usuaris = new JLabel();\n Usuaris.setText(\"Label\");\n RG.add(Usuaris, new com.intellij.uiDesigner.core.GridConstraints(0, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label3 = new JLabel();\n label3.setText(\"Joc més popular:\");\n RG.add(label3, new com.intellij.uiDesigner.core.GridConstraints(3, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label4 = new JLabel();\n label4.setText(\"Nombre de jocs totals:\");\n RG.add(label4, new com.intellij.uiDesigner.core.GridConstraints(2, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer1 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer1, new com.intellij.uiDesigner.core.GridConstraints(4, 4, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer2 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer2, new com.intellij.uiDesigner.core.GridConstraints(4, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer3 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer3, new com.intellij.uiDesigner.core.GridConstraints(1, 4, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer4 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer4, new com.intellij.uiDesigner.core.GridConstraints(0, 4, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer5 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer5, new com.intellij.uiDesigner.core.GridConstraints(2, 4, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer6 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer6, new com.intellij.uiDesigner.core.GridConstraints(3, 4, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer7 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer7, new com.intellij.uiDesigner.core.GridConstraints(3, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer8 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer8, new com.intellij.uiDesigner.core.GridConstraints(2, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer9 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer9, new com.intellij.uiDesigner.core.GridConstraints(1, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer10 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer10, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer11 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer11, new com.intellij.uiDesigner.core.GridConstraints(3, 5, 2, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer12 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer12, new com.intellij.uiDesigner.core.GridConstraints(2, 5, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer13 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer13, new com.intellij.uiDesigner.core.GridConstraints(1, 5, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer14 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer14, new com.intellij.uiDesigner.core.GridConstraints(0, 5, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer15 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer15, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer16 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer16, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer17 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer17, new com.intellij.uiDesigner.core.GridConstraints(2, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer18 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer18, new com.intellij.uiDesigner.core.GridConstraints(3, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer19 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer19, new com.intellij.uiDesigner.core.GridConstraints(5, 0, 1, 6, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n }", "private void $$$setupUI$$$() {\n linea = new JPanel();\n linea.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(4, 3, new Insets(0, 0, 0, 0), -1, -1));\n addLineaButton = new JButton();\n addLineaButton.setText(\"addLinea\");\n linea.add(addLineaButton, new com.intellij.uiDesigner.core.GridConstraints(2, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n numLinea = new JTextField();\n linea.add(numLinea, new com.intellij.uiDesigner.core.GridConstraints(1, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer1 = new com.intellij.uiDesigner.core.Spacer();\n linea.add(spacer1, new com.intellij.uiDesigner.core.GridConstraints(2, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer2 = new com.intellij.uiDesigner.core.Spacer();\n linea.add(spacer2, new com.intellij.uiDesigner.core.GridConstraints(2, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer3 = new com.intellij.uiDesigner.core.Spacer();\n linea.add(spacer3, new com.intellij.uiDesigner.core.GridConstraints(1, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer4 = new com.intellij.uiDesigner.core.Spacer();\n linea.add(spacer4, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer5 = new com.intellij.uiDesigner.core.Spacer();\n linea.add(spacer5, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer6 = new com.intellij.uiDesigner.core.Spacer();\n linea.add(spacer6, new com.intellij.uiDesigner.core.GridConstraints(3, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n }", "@Override\r\n public void updateUI() {\r\n }", "public void designerInputModified(DesignerEvent e);", "protected void setupUI() {\n\n }", "private void $$$setupUI$$$() {\n mainPanel = new JPanel();\n mainPanel.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(14, 6, new Insets(0, 0, 0, 0), -1, -1));\n final com.intellij.uiDesigner.core.Spacer spacer1 = new com.intellij.uiDesigner.core.Spacer();\n mainPanel.add(spacer1, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, new Dimension(-1, 20), new Dimension(20, -1), null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"EUID\");\n mainPanel.add(label1, new com.intellij.uiDesigner.core.GridConstraints(2, 1, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n EUIDText = new JLabel();\n EUIDText.setText(\"Label\");\n mainPanel.add(EUIDText, new com.intellij.uiDesigner.core.GridConstraints(2, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_EAST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label2 = new JLabel();\n label2.setText(\"x-coordinate\");\n mainPanel.add(label2, new com.intellij.uiDesigner.core.GridConstraints(3, 1, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n xPosSpinner = new JSpinner();\n mainPanel.add(xPosSpinner, new com.intellij.uiDesigner.core.GridConstraints(3, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer2 = new com.intellij.uiDesigner.core.Spacer();\n mainPanel.add(spacer2, new com.intellij.uiDesigner.core.GridConstraints(3, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, new Dimension(10, -1), new Dimension(10, -1), null, 0, false));\n longitudeLabel = new JLabel();\n longitudeLabel.setText(\"Label\");\n mainPanel.add(longitudeLabel, new com.intellij.uiDesigner.core.GridConstraints(3, 4, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer3 = new com.intellij.uiDesigner.core.Spacer();\n mainPanel.add(spacer3, new com.intellij.uiDesigner.core.GridConstraints(3, 5, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, new Dimension(10, -1), new Dimension(10, -1), null, 0, false));\n final JLabel label3 = new JLabel();\n label3.setText(\"y-coordinate\");\n mainPanel.add(label3, new com.intellij.uiDesigner.core.GridConstraints(4, 1, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n yPosSpinner = new JSpinner();\n mainPanel.add(yPosSpinner, new com.intellij.uiDesigner.core.GridConstraints(4, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n latitudeLabel = new JLabel();\n latitudeLabel.setText(\"Label\");\n mainPanel.add(latitudeLabel, new com.intellij.uiDesigner.core.GridConstraints(4, 4, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n powerSpinner = new JSpinner();\n mainPanel.add(powerSpinner, new com.intellij.uiDesigner.core.GridConstraints(5, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label4 = new JLabel();\n label4.setText(\"Powersetting\");\n mainPanel.add(label4, new com.intellij.uiDesigner.core.GridConstraints(5, 1, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label5 = new JLabel();\n label5.setText(\"Spreading factor\");\n mainPanel.add(label5, new com.intellij.uiDesigner.core.GridConstraints(6, 1, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n SFSpinner = new JSpinner();\n mainPanel.add(SFSpinner, new com.intellij.uiDesigner.core.GridConstraints(6, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n TPThresholdText = new JLabel();\n TPThresholdText.setText(\"Label\");\n mainPanel.add(TPThresholdText, new com.intellij.uiDesigner.core.GridConstraints(7, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_EAST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label6 = new JLabel();\n label6.setText(\"Transmission power threshold\");\n mainPanel.add(label6, new com.intellij.uiDesigner.core.GridConstraints(7, 1, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n saveButton = new JButton();\n saveButton.setText(\"Save\");\n mainPanel.add(saveButton, new com.intellij.uiDesigner.core.GridConstraints(12, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer4 = new com.intellij.uiDesigner.core.Spacer();\n mainPanel.add(spacer4, new com.intellij.uiDesigner.core.GridConstraints(13, 1, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, new Dimension(-1, 20), new Dimension(-1, 20), null, 0, false));\n final JLabel label7 = new JLabel();\n label7.setText(\"Mote \");\n mainPanel.add(label7, new com.intellij.uiDesigner.core.GridConstraints(1, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n moteNumberLabel = new JLabel();\n moteNumberLabel.setText(\"Label\");\n mainPanel.add(moteNumberLabel, new com.intellij.uiDesigner.core.GridConstraints(1, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label8 = new JLabel();\n label8.setText(\"Sensors:\");\n mainPanel.add(label8, new com.intellij.uiDesigner.core.GridConstraints(10, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n addButton = new JButton();\n addButton.setText(\"Add\");\n mainPanel.add(addButton, new com.intellij.uiDesigner.core.GridConstraints(10, 4, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n sensorSpinner = new JComboBox();\n final DefaultComboBoxModel defaultComboBoxModel1 = new DefaultComboBoxModel();\n sensorSpinner.setModel(defaultComboBoxModel1);\n mainPanel.add(sensorSpinner, new com.intellij.uiDesigner.core.GridConstraints(10, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label9 = new JLabel();\n label9.setText(\"Sampling rate\");\n mainPanel.add(label9, new com.intellij.uiDesigner.core.GridConstraints(8, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label10 = new JLabel();\n label10.setText(\"Movement speed\");\n mainPanel.add(label10, new com.intellij.uiDesigner.core.GridConstraints(9, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n samplingSpinner = new JSpinner();\n mainPanel.add(samplingSpinner, new com.intellij.uiDesigner.core.GridConstraints(8, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n movementSpinner = new JSpinner();\n mainPanel.add(movementSpinner, new com.intellij.uiDesigner.core.GridConstraints(9, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label11 = new JLabel();\n label11.setText(\"m/s\");\n mainPanel.add(label11, new com.intellij.uiDesigner.core.GridConstraints(9, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label12 = new JLabel();\n label12.setText(\"m\");\n mainPanel.add(label12, new com.intellij.uiDesigner.core.GridConstraints(8, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JScrollPane scrollPane1 = new JScrollPane();\n scrollPane1.setHorizontalScrollBarPolicy(31);\n mainPanel.add(scrollPane1, new com.intellij.uiDesigner.core.GridConstraints(11, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, new Dimension(-1, 90), 0, false));\n sensorList = new JList();\n scrollPane1.setViewportView(sensorList);\n }", "public static void designTextEditor() {\n\t\t\n\t}", "private void $$$setupUI$$$() {\n zakupioneBiletyFrame = new JPanel();\n zakupioneBiletyFrame.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(2, 2, new Insets(0, 0, 0, 0), -1, -1));\n zakupioneLabel = new JLabel();\n zakupioneLabel.setText(\"Zakupione Bilety\");\n zakupioneBiletyFrame.add(zakupioneLabel, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n zakupioneBiletyTable = new JTable();\n zakupioneBiletyTable.setAutoCreateRowSorter(false);\n zakupioneBiletyTable.setAutoResizeMode(4);\n zakupioneBiletyFrame.add(zakupioneBiletyTable, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, new Dimension(150, 50), null, 0, false));\n scroll1 = new JScrollPane();\n zakupioneBiletyFrame.add(scroll1, new com.intellij.uiDesigner.core.GridConstraints(1, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n }", "private void $$$setupUI$$$() {\n createUIComponents();\n contentPane = new JPanel();\n contentPane.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(13, 1, new Insets(10, 10, 10, 10), -1, -1));\n final JLabel label1 = new JLabel();\n label1.setText(\"Connection re-express probability when crossed.\");\n contentPane.add(label1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer1 = new com.intellij.uiDesigner.core.Spacer();\n contentPane.add(spacer1, new com.intellij.uiDesigner.core.GridConstraints(12, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n contentPane.add(connectionReexpressSlider, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label2 = new JLabel();\n label2.setText(\"Mutation probability when crossed.\");\n contentPane.add(label2, new com.intellij.uiDesigner.core.GridConstraints(2, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n contentPane.add(mutationWhenCrossedSlider, new com.intellij.uiDesigner.core.GridConstraints(3, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label3 = new JLabel();\n label3.setText(\"Diff excess gene count factor.\");\n contentPane.add(label3, new com.intellij.uiDesigner.core.GridConstraints(4, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(195, 22), null, 0, false));\n diffExcessFactorField = new FloatTextField();\n contentPane.add(diffExcessFactorField, new com.intellij.uiDesigner.core.GridConstraints(5, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label4 = new JLabel();\n label4.setText(\"Diff disjoint gene count factor.\");\n contentPane.add(label4, new com.intellij.uiDesigner.core.GridConstraints(6, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n diffDisjointFactorField = new FloatTextField();\n contentPane.add(diffDisjointFactorField, new com.intellij.uiDesigner.core.GridConstraints(7, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label5 = new JLabel();\n label5.setText(\"Diff weight factor.\");\n contentPane.add(label5, new com.intellij.uiDesigner.core.GridConstraints(8, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n diffWeightFactorField = new FloatTextField();\n contentPane.add(diffWeightFactorField, new com.intellij.uiDesigner.core.GridConstraints(9, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label6 = new JLabel();\n label6.setText(\"Diff normalize gene count threshold.\");\n contentPane.add(label6, new com.intellij.uiDesigner.core.GridConstraints(10, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n diffNormalizeThresholdField = new IntTextField();\n contentPane.add(diffNormalizeThresholdField, new com.intellij.uiDesigner.core.GridConstraints(11, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n }", "private void $$$setupUI$$$() {\n createUIComponents();\n overCounterForm = new JPanel();\n overCounterForm.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(16, 2, new Insets(30, 30, 30, 30), -1, -1));\n overCounterForm.setMinimumSize(new Dimension(450, 650));\n overCounterForm.setPreferredSize(new Dimension(450, 650));\n final com.intellij.uiDesigner.core.Spacer spacer1 = new com.intellij.uiDesigner.core.Spacer();\n overCounterForm.add(spacer1, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n medicineicon.setHorizontalAlignment(10);\n medicineicon.setText(\"\");\n overCounterForm.add(medicineicon, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer2 = new com.intellij.uiDesigner.core.Spacer();\n overCounterForm.add(spacer2, new com.intellij.uiDesigner.core.GridConstraints(2, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer3 = new com.intellij.uiDesigner.core.Spacer();\n overCounterForm.add(spacer3, new com.intellij.uiDesigner.core.GridConstraints(12, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setHorizontalAlignment(10);\n label1.setText(\"Check Over-The-Counter Medication\");\n overCounterForm.add(label1, new com.intellij.uiDesigner.core.GridConstraints(3, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer4 = new com.intellij.uiDesigner.core.Spacer();\n overCounterForm.add(spacer4, new com.intellij.uiDesigner.core.GridConstraints(14, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n prescriptionNameTextField = new JTextField();\n prescriptionNameTextField.setHorizontalAlignment(0);\n prescriptionNameTextField.setMargin(new Insets(5, 5, 5, 5));\n prescriptionNameTextField.setText(\"Prescription Name\");\n overCounterForm.add(prescriptionNameTextField, new com.intellij.uiDesigner.core.GridConstraints(7, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n enterMedicationDetailsManuallyButton = new JButton();\n enterMedicationDetailsManuallyButton.setMargin(new Insets(5, 14, 5, 14));\n enterMedicationDetailsManuallyButton.setText(\"Enter Medication Details Manually\");\n enterMedicationDetailsManuallyButton.setToolTipText(\"Brings up a form where you can fill up the details for the over-the-counter medication manually.\");\n overCounterForm.add(enterMedicationDetailsManuallyButton, new com.intellij.uiDesigner.core.GridConstraints(13, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer5 = new com.intellij.uiDesigner.core.Spacer();\n overCounterForm.add(spacer5, new com.intellij.uiDesigner.core.GridConstraints(6, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer6 = new com.intellij.uiDesigner.core.Spacer();\n overCounterForm.add(spacer6, new com.intellij.uiDesigner.core.GridConstraints(4, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final JLabel label2 = new JLabel();\n label2.setEnabled(false);\n label2.setHorizontalAlignment(0);\n label2.setHorizontalTextPosition(0);\n label2.setText(\"Please provide the following information:\");\n overCounterForm.add(label2, new com.intellij.uiDesigner.core.GridConstraints(5, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label3 = new JLabel();\n label3.setText(\"Name of prescription\");\n overCounterForm.add(label3, new com.intellij.uiDesigner.core.GridConstraints(7, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label4 = new JLabel();\n label4.setText(\"Barcode value\");\n overCounterForm.add(label4, new com.intellij.uiDesigner.core.GridConstraints(8, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n a13DigitsFormattedTextField = new JFormattedTextField();\n a13DigitsFormattedTextField.setHorizontalAlignment(0);\n a13DigitsFormattedTextField.setMargin(new Insets(5, 5, 5, 5));\n a13DigitsFormattedTextField.setText(\"13 digits\");\n overCounterForm.add(a13DigitsFormattedTextField, new com.intellij.uiDesigner.core.GridConstraints(8, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n manufacturerNameFormattedTextField = new JFormattedTextField();\n manufacturerNameFormattedTextField.setHorizontalAlignment(0);\n manufacturerNameFormattedTextField.setMargin(new Insets(5, 5, 5, 5));\n manufacturerNameFormattedTextField.setText(\"Manufacturer Name\");\n overCounterForm.add(manufacturerNameFormattedTextField, new com.intellij.uiDesigner.core.GridConstraints(9, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n formattedTextField3 = new JFormattedTextField();\n formattedTextField3.setMargin(new Insets(5, 5, 5, 5));\n overCounterForm.add(formattedTextField3, new com.intellij.uiDesigner.core.GridConstraints(10, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n numberOfTabletsInFormattedTextField = new JFormattedTextField();\n numberOfTabletsInFormattedTextField.setHorizontalAlignment(0);\n numberOfTabletsInFormattedTextField.setMargin(new Insets(5, 5, 5, 5));\n numberOfTabletsInFormattedTextField.setText(\"Number of tablets in packet\");\n overCounterForm.add(numberOfTabletsInFormattedTextField, new com.intellij.uiDesigner.core.GridConstraints(11, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n final JLabel label5 = new JLabel();\n label5.setText(\"Name of manufacturer\");\n overCounterForm.add(label5, new com.intellij.uiDesigner.core.GridConstraints(9, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label6 = new JLabel();\n label6.setText(\"Prescription strength\");\n overCounterForm.add(label6, new com.intellij.uiDesigner.core.GridConstraints(10, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label7 = new JLabel();\n label7.setText(\"Tablets in packet\");\n overCounterForm.add(label7, new com.intellij.uiDesigner.core.GridConstraints(11, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n cancelButton = new JButton();\n cancelButton.setMargin(new Insets(5, 14, 5, 14));\n cancelButton.setText(\"Cancel\");\n overCounterForm.add(cancelButton, new com.intellij.uiDesigner.core.GridConstraints(15, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }", "@Override\n public void updateUi() {\n\n }", "@Override\n public void updateUi() {\n\n }", "@Override\n public void updateUi() {\n\n }", "private void $$$setupUI$$$() {\n mainPanel = new JPanel();\n mainPanel.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(2, 2, new Insets(0, 0, 0, 0), -1, -1));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(2, 3, new Insets(0, 0, 0, 0), -1, -1));\n panel1.setBackground(new Color(-1184275));\n panel1.setForeground(new Color(-4473925));\n mainPanel.add(panel1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setBackground(new Color(-12828863));\n Font label1Font = this.$$$getFont$$$(\"Georgia\", Font.BOLD, 16, label1.getFont());\n if (label1Font != null) label1.setFont(label1Font);\n label1.setForeground(new Color(-12828863));\n label1.setText(\"Scheduler\");\n panel1.add(label1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 2, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label2 = new JLabel();\n Font label2Font = this.$$$getFont$$$(\"Georgia\", -1, 14, label2.getFont());\n if (label2Font != null) label2.setFont(label2Font);\n label2.setText(\"Select the Type of Scheduler \");\n panel1.add(label2, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n dropDown = new JComboBox();\n Font dropDownFont = this.$$$getFont$$$(\"Georgia\", -1, 14, dropDown.getFont());\n if (dropDownFont != null) dropDown.setFont(dropDownFont);\n final DefaultComboBoxModel defaultComboBoxModel1 = new DefaultComboBoxModel();\n defaultComboBoxModel1.addElement(\"Shortest Remaining Process Time\");\n defaultComboBoxModel1.addElement(\"Earliest Deadline First\");\n defaultComboBoxModel1.addElement(\"Deadline Monotonic\");\n dropDown.setModel(defaultComboBoxModel1);\n panel1.add(dropDown, new com.intellij.uiDesigner.core.GridConstraints(0, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label3 = new JLabel();\n Font label3Font = this.$$$getFont$$$(\"Georgia\", -1, 14, label3.getFont());\n if (label3Font != null) label3.setFont(label3Font);\n label3.setText(\"Current Task\");\n panel1.add(label3, new com.intellij.uiDesigner.core.GridConstraints(1, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n currentField = new JTextField();\n currentField.setBackground(new Color(-3873281));\n currentField.setEditable(false);\n Font currentFieldFont = this.$$$getFont$$$(\"Georgia\", Font.BOLD, 14, currentField.getFont());\n if (currentFieldFont != null) currentField.setFont(currentFieldFont);\n panel1.add(currentField, new com.intellij.uiDesigner.core.GridConstraints(1, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(4, 3, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(panel2, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label4 = new JLabel();\n Font label4Font = this.$$$getFont$$$(\"Georgia\", -1, 14, label4.getFont());\n if (label4Font != null) label4.setFont(label4Font);\n label4.setText(\"Current Task Progress \");\n panel2.add(label4, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 3, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n progressBar1 = new JProgressBar();\n panel2.add(progressBar1, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 3, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n taskList = new JList();\n taskList.setBackground(new Color(-5186305));\n Font taskListFont = this.$$$getFont$$$(\"Georgia\", -1, 14, taskList.getFont());\n if (taskListFont != null) taskList.setFont(taskListFont);\n final DefaultListModel defaultListModel1 = new DefaultListModel();\n taskList.setModel(defaultListModel1);\n taskList.setSelectionBackground(new Color(-13220097));\n taskList.setSelectionForeground(new Color(-1));\n taskList.setSelectionMode(0);\n panel2.add(taskList, new com.intellij.uiDesigner.core.GridConstraints(3, 0, 1, 3, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, new Dimension(150, 50), null, 0, false));\n tickButton = new JButton();\n Font tickButtonFont = this.$$$getFont$$$(\"Georgia\", Font.BOLD, 14, tickButton.getFont());\n if (tickButtonFont != null) tickButton.setFont(tickButtonFont);\n tickButton.setText(\"Tick\");\n panel2.add(tickButton, new com.intellij.uiDesigner.core.GridConstraints(2, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n switchButton = new JButton();\n Font switchButtonFont = this.$$$getFont$$$(\"Georgia\", Font.BOLD, 14, switchButton.getFont());\n if (switchButtonFont != null) switchButton.setFont(switchButtonFont);\n switchButton.setText(\"Switch\");\n panel2.add(switchButton, new com.intellij.uiDesigner.core.GridConstraints(2, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n delButton = new JButton();\n Font delButtonFont = this.$$$getFont$$$(\"Georgia\", Font.BOLD, 14, delButton.getFont());\n if (delButtonFont != null) delButton.setFont(delButtonFont);\n delButton.setText(\"Delete\");\n panel2.add(delButton, new com.intellij.uiDesigner.core.GridConstraints(2, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JPanel panel3 = new JPanel();\n panel3.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(8, 2, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(panel3, new com.intellij.uiDesigner.core.GridConstraints(1, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label5 = new JLabel();\n Font label5Font = this.$$$getFont$$$(\"Georgia\", Font.BOLD, 14, label5.getFont());\n if (label5Font != null) label5.setFont(label5Font);\n label5.setText(\"Add New Tasks\");\n panel3.add(label5, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label6 = new JLabel();\n Font label6Font = this.$$$getFont$$$(\"Georgia\", -1, 14, label6.getFont());\n if (label6Font != null) label6.setFont(label6Font);\n label6.setText(\"Task\");\n panel3.add(label6, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n taskName = new JTextField();\n Font taskNameFont = this.$$$getFont$$$(\"Georgia\", -1, 14, taskName.getFont());\n if (taskNameFont != null) taskName.setFont(taskNameFont);\n panel3.add(taskName, new com.intellij.uiDesigner.core.GridConstraints(2, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n final JLabel label7 = new JLabel();\n Font label7Font = this.$$$getFont$$$(\"Georgia\", -1, 14, label7.getFont());\n if (label7Font != null) label7.setFont(label7Font);\n label7.setText(\"Estimated Completion Time (hours) \");\n panel3.add(label7, new com.intellij.uiDesigner.core.GridConstraints(3, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n RemTime = new JTextField();\n Font RemTimeFont = this.$$$getFont$$$(\"Georgia\", -1, 14, RemTime.getFont());\n if (RemTimeFont != null) RemTime.setFont(RemTimeFont);\n panel3.add(RemTime, new com.intellij.uiDesigner.core.GridConstraints(4, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n final JLabel label8 = new JLabel();\n Font label8Font = this.$$$getFont$$$(\"Georgia\", -1, 14, label8.getFont());\n if (label8Font != null) label8.setFont(label8Font);\n label8.setText(\"Time Till Task is Due (hours)\");\n panel3.add(label8, new com.intellij.uiDesigner.core.GridConstraints(5, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n relDeadline = new JTextField();\n Font relDeadlineFont = this.$$$getFont$$$(\"Georgia\", -1, 14, relDeadline.getFont());\n if (relDeadlineFont != null) relDeadline.setFont(relDeadlineFont);\n panel3.add(relDeadline, new com.intellij.uiDesigner.core.GridConstraints(6, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n saveNewButton = new JButton();\n Font saveNewButtonFont = this.$$$getFont$$$(\"Georgia\", Font.BOLD, 14, saveNewButton.getFont());\n if (saveNewButtonFont != null) saveNewButton.setFont(saveNewButtonFont);\n saveNewButton.setText(\"Save New\");\n panel3.add(saveNewButton, new com.intellij.uiDesigner.core.GridConstraints(7, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n saveExistingButton = new JButton();\n Font saveExistingButtonFont = this.$$$getFont$$$(\"Georgia\", Font.BOLD, 14, saveExistingButton.getFont());\n if (saveExistingButtonFont != null) saveExistingButton.setFont(saveExistingButtonFont);\n saveExistingButton.setText(\"Save Existing\");\n panel3.add(saveExistingButton, new com.intellij.uiDesigner.core.GridConstraints(7, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n clearButton = new JButton();\n Font clearButtonFont = this.$$$getFont$$$(\"Georgia\", Font.BOLD, 14, clearButton.getFont());\n if (clearButtonFont != null) clearButton.setFont(clearButtonFont);\n clearButton.setText(\"Clear Form\");\n panel3.add(clearButton, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "private void $$$setupUI$$$() {\n contentPane = new JPanel();\n contentPane.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(2, 1, new Insets(10, 10, 10, 10), -1, -1));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel1, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer1 = new com.intellij.uiDesigner.core.Spacer();\n panel1.add(spacer1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1, true, false));\n panel1.add(panel2, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n buttonOK = new JButton();\n buttonOK.setText(\"OK\");\n panel2.add(buttonOK, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n buttonCancel = new JButton();\n buttonCancel.setText(\"Cancel\");\n panel2.add(buttonCancel, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JScrollPane scrollPane1 = new JScrollPane();\n contentPane.add(scrollPane1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final JPanel panel3 = new JPanel();\n panel3.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(3, 4, new Insets(0, 0, 0, 0), 5, 5));\n scrollPane1.setViewportView(panel3);\n final JLabel label1 = new JLabel();\n label1.setFont(new Font(label1.getFont().getName(), Font.BOLD, label1.getFont().getSize()));\n label1.setText(\"mlocarna:\");\n panel3.add(label1, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer2 = new com.intellij.uiDesigner.core.Spacer();\n panel3.add(spacer2, new com.intellij.uiDesigner.core.GridConstraints(2, 0, 1, 4, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final JLabel label2 = new JLabel();\n label2.setBackground(new Color(-65485));\n label2.setFont(new Font(label2.getFont().getName(), Font.BOLD, label2.getFont().getSize()));\n label2.setOpaque(false);\n label2.setText(\"RNAsubopt:\");\n panel3.add(label2, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n random_sample = new JComboBox();\n final DefaultComboBoxModel defaultComboBoxModel1 = new DefaultComboBoxModel();\n defaultComboBoxModel1.addElement(\"5\");\n defaultComboBoxModel1.addElement(\"10\");\n defaultComboBoxModel1.addElement(\"15\");\n defaultComboBoxModel1.addElement(\"20\");\n random_sample.setModel(defaultComboBoxModel1);\n panel3.add(random_sample, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_EAST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n useMlocarna = new JCheckBox();\n useMlocarna.setSelected(true);\n useMlocarna.setText(\"\");\n panel3.add(useMlocarna, new com.intellij.uiDesigner.core.GridConstraints(1, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_EAST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label3 = new JLabel();\n label3.setText(\"suboptimal structures computed\");\n panel3.add(label3, new com.intellij.uiDesigner.core.GridConstraints(0, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label4 = new JLabel();\n label4.setText(\"use to compute the folding landscape \");\n panel3.add(label4, new com.intellij.uiDesigner.core.GridConstraints(1, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer3 = new com.intellij.uiDesigner.core.Spacer();\n panel3.add(spacer3, new com.intellij.uiDesigner.core.GridConstraints(0, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer4 = new com.intellij.uiDesigner.core.Spacer();\n panel3.add(spacer4, new com.intellij.uiDesigner.core.GridConstraints(1, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n }", "@Override\n protected void windowInit ()\n {\n }", "private void initUI() {\r\n\t\tthis.form = new XdevGridLayout();\r\n\t\tthis.comboBoxState = new XdevComboBox<>();\r\n\t\tthis.lblSbxValidFrom = new XdevLabel();\r\n\t\tthis.dateSbxValidFrom = new XdevPopupDateField();\r\n\t\tthis.lblSbxAgeStartYear = new XdevLabel();\r\n\t\tthis.txtSbxAgeStartYear = new XdevTextField();\r\n\t\tthis.lblSbxCompany = new XdevLabel();\r\n\t\tthis.txtSbxCompany = new XdevTextField();\r\n\t\tthis.lblSbxWorker = new XdevLabel();\r\n\t\tthis.txtSbxWorker = new XdevTextField();\r\n\t\tthis.lblSbxState = new XdevLabel();\r\n\t\tthis.horizontalLayout = new XdevHorizontalLayout();\r\n\t\tthis.cmdSave = new XdevButton();\r\n\t\tthis.cmdClose = new XdevButton();\r\n\t\tthis.fieldGroup = new XdevFieldGroup<>(SalaryBvgBaseLine.class);\r\n\t\r\n\t\tthis.lblSbxValidFrom.setValue(\"Gültig ab\");\r\n\t\tthis.dateSbxValidFrom.setTabIndex(2);\r\n\t\tthis.lblSbxAgeStartYear.setValue(\"Alter ab\");\r\n\t\tthis.txtSbxAgeStartYear.setTabIndex(3);\r\n\t\tthis.lblSbxCompany.setValue(\"Arbeitgeber %\");\r\n\t\tthis.txtSbxCompany.setConverter(ConverterBuilder.stringToDouble().build());\r\n\t\tthis.txtSbxCompany.setTabIndex(4);\r\n\t\tthis.lblSbxWorker.setValue(\"Arbeitnehmer %\");\r\n\t\tthis.txtSbxWorker.setConverter(ConverterBuilder.stringToDouble().build());\r\n\t\tthis.txtSbxWorker.setTabIndex(5);\r\n\t\tthis.lblSbxState.setValue(\"Status\");\r\n\t\tthis.horizontalLayout.setMargin(new MarginInfo(false));\r\n\t\tthis.cmdSave.setIcon(FontAwesome.SAVE);\r\n\t\tthis.cmdSave.setCaption(\"Speichern\");\r\n\t\tthis.cmdSave.setTabIndex(8);\r\n\t\tthis.cmdSave.setClickShortcut(ShortcutAction.KeyCode.ENTER);\r\n\t\tthis.cmdClose.setIcon(FontAwesome.CLOSE);\r\n\t\tthis.cmdClose.setCaption(\"Schliessen\");\r\n\t\tthis.cmdClose.setClickShortcut(ShortcutAction.KeyCode.ESCAPE);\r\n\t\tthis.fieldGroup.bind(this.dateSbxValidFrom, SalaryBvgBaseLine_.sbxValidFrom.getName());\r\n\t\tthis.fieldGroup.bind(this.txtSbxAgeStartYear, SalaryBvgBaseLine_.sbxAgeStartYear.getName());\r\n\t\tthis.fieldGroup.bind(this.txtSbxCompany, SalaryBvgBaseLine_.sbxCompany.getName());\r\n\t\tthis.fieldGroup.bind(this.txtSbxWorker, SalaryBvgBaseLine_.sbxWorker.getName());\r\n\t\tthis.fieldGroup.bind(this.comboBoxState, SalaryBvgBaseLine_.sbxState.getName());\r\n\t\r\n\t\tthis.cmdSave.setSizeUndefined();\r\n\t\tthis.horizontalLayout.addComponent(this.cmdSave);\r\n\t\tthis.horizontalLayout.setComponentAlignment(this.cmdSave, Alignment.MIDDLE_LEFT);\r\n\t\tthis.cmdClose.setSizeUndefined();\r\n\t\tthis.horizontalLayout.addComponent(this.cmdClose);\r\n\t\tthis.horizontalLayout.setComponentAlignment(this.cmdClose, Alignment.MIDDLE_LEFT);\r\n\t\tthis.form.setColumns(2);\r\n\t\tthis.form.setRows(7);\r\n\t\tthis.comboBoxState.setSizeUndefined();\r\n\t\tthis.form.addComponent(this.comboBoxState, 1, 4);\r\n\t\tthis.lblSbxValidFrom.setSizeUndefined();\r\n\t\tthis.form.addComponent(this.lblSbxValidFrom, 0, 0);\r\n\t\tthis.dateSbxValidFrom.setSizeUndefined();\r\n\t\tthis.form.addComponent(this.dateSbxValidFrom, 1, 0);\r\n\t\tthis.lblSbxAgeStartYear.setSizeUndefined();\r\n\t\tthis.form.addComponent(this.lblSbxAgeStartYear, 0, 1);\r\n\t\tthis.txtSbxAgeStartYear.setWidth(100, Unit.PERCENTAGE);\r\n\t\tthis.txtSbxAgeStartYear.setHeight(-1, Unit.PIXELS);\r\n\t\tthis.form.addComponent(this.txtSbxAgeStartYear, 1, 1);\r\n\t\tthis.lblSbxCompany.setSizeUndefined();\r\n\t\tthis.form.addComponent(this.lblSbxCompany, 0, 2);\r\n\t\tthis.txtSbxCompany.setWidth(100, Unit.PERCENTAGE);\r\n\t\tthis.txtSbxCompany.setHeight(-1, Unit.PIXELS);\r\n\t\tthis.form.addComponent(this.txtSbxCompany, 1, 2);\r\n\t\tthis.lblSbxWorker.setSizeUndefined();\r\n\t\tthis.form.addComponent(this.lblSbxWorker, 0, 3);\r\n\t\tthis.txtSbxWorker.setWidth(100, Unit.PERCENTAGE);\r\n\t\tthis.txtSbxWorker.setHeight(-1, Unit.PIXELS);\r\n\t\tthis.form.addComponent(this.txtSbxWorker, 1, 3);\r\n\t\tthis.lblSbxState.setSizeUndefined();\r\n\t\tthis.form.addComponent(this.lblSbxState, 0, 4);\r\n\t\tthis.horizontalLayout.setSizeUndefined();\r\n\t\tthis.form.addComponent(this.horizontalLayout, 0, 5, 1, 5);\r\n\t\tthis.form.setComponentAlignment(this.horizontalLayout, Alignment.TOP_CENTER);\r\n\t\tthis.form.setColumnExpandRatio(1, 100.0F);\r\n\t\tfinal CustomComponent form_vSpacer = new CustomComponent();\r\n\t\tform_vSpacer.setSizeFull();\r\n\t\tthis.form.addComponent(form_vSpacer, 0, 6, 1, 6);\r\n\t\tthis.form.setRowExpandRatio(6, 1.0F);\r\n\t\tthis.form.setSizeFull();\r\n\t\tthis.setContent(this.form);\r\n\t\tthis.setSizeFull();\r\n\t\r\n\t\tthis.cmdSave.addClickListener(event -> this.cmdSave_buttonClick(event));\r\n\t\tthis.cmdClose.addClickListener(event -> this.cmdClose_buttonClick(event));\r\n\t}", "private void designBtnActionPerformed(ActionEvent evt) {\n }", "public void buildGui() {\n\t}", "public guiProntuarioVirtual() {\n initComponents();\n \n }", "public void designerAdded(DesignerEvent e);", "private void $$$setupUI$$$() {\n createUIComponents();\n wrapperPanel = new JPanel();\n wrapperPanel.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(2, 2, new Insets(0, 0, 0, 0), -1, -1));\n wrapperPanel.setMinimumSize(new Dimension(640, 480));\n wrapperPanel.setPreferredSize(new Dimension(800, 600));\n boringPanel = new JPanel();\n boringPanel.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(5, 2, new Insets(0, 0, 0, 0), -1, -1));\n boringPanel.setInheritsPopupMenu(false);\n boringPanel.setMaximumSize(new Dimension(200, 2147483647));\n boringPanel.setMinimumSize(new Dimension(100, 174));\n boringPanel.setOpaque(false);\n boringPanel.setPreferredSize(new Dimension(150, 228));\n boringPanel.setRequestFocusEnabled(true);\n wrapperPanel.add(boringPanel, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, new Dimension(100, -1), new Dimension(150, -1), new Dimension(200, -1), 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer1 = new com.intellij.uiDesigner.core.Spacer();\n boringPanel.add(spacer1, new com.intellij.uiDesigner.core.GridConstraints(4, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n captionLabel = new JLabel();\n captionLabel.setText(\"Label\");\n boringPanel.add(captionLabel, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n numberOfLayersCaptionLabel = new JLabel();\n numberOfLayersCaptionLabel.setText(\"Label\");\n boringPanel.add(numberOfLayersCaptionLabel, new com.intellij.uiDesigner.core.GridConstraints(2, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(82, 14), null, 0, false));\n numberOfLayersLabel = new JLabel();\n numberOfLayersLabel.setText(\"\");\n boringPanel.add(numberOfLayersLabel, new com.intellij.uiDesigner.core.GridConstraints(2, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_EAST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n matrixTextArea = new JTextArea();\n boringPanel.add(matrixTextArea, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, new Dimension(82, 50), null, 0, false));\n commitButton = new JButton();\n commitButton.setText(\"Button\");\n boringPanel.add(commitButton, new com.intellij.uiDesigner.core.GridConstraints(3, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n graphPanel.setBackground(new Color(-1));\n graphPanel.setMinimumSize(new Dimension(530, 24));\n graphPanel.setOpaque(true);\n wrapperPanel.add(graphPanel, new com.intellij.uiDesigner.core.GridConstraints(1, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JToolBar toolBar1 = new JToolBar();\n toolBar1.setFloatable(false);\n wrapperPanel.add(toolBar1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(-1, 20), null, 0, false));\n loadButton = new JButton();\n loadButton.setText(\"Button\");\n toolBar1.add(loadButton);\n }", "private void actionComboboxChangedImage ()\r\n\t{\r\n\r\n\t\tint tableSize = DataController.getTable().getTableSize();\r\n\r\n\t\t//---- Check if the project is empty or not\r\n\t\tif (tableSize != 0)\r\n\t\t{\r\n\t\t\tif (isDisplaySamples) { helperDisplayDetectedSamples(); }\r\n\t\t\telse { helperDisplayInputImage(); }\r\n\r\n\t\t\thelperDisplaySamplesCombobox();\r\n\t\t\thelperDisplayResults();\r\n\t\t\thelperDisplayChart(true);\r\n\t\t}\r\n\t}", "private InstructGui() {\n }", "public hesapekrani() {\n initComponents();\n getedits();\n \n \n }", "private void setUpGUI() {\n \n removePrecursorPeakCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n enzymeTypeCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n useFlankingCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n removePrecursorPeakCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n monoPrecursorCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n peptideListCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n decoyFormatCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n keepTerminalAaCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n removeMethionineCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n exactPvalueCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n spScoreCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n chargesCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n useNeutralLossCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n outputFormatCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n removeTempFoldersCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n \n minPepLengthTxt.setEditable(editable);\n minPepLengthTxt.setEnabled(editable);\n maxPepLengthTxt.setEditable(editable);\n maxPepLengthTxt.setEnabled(editable);\n minPrecursorMassTxt.setEditable(editable);\n minPrecursorMassTxt.setEnabled(editable);\n maxPrecursorMassTxt.setEditable(editable);\n maxPrecursorMassTxt.setEnabled(editable);\n monoPrecursorCmb.setEnabled(editable);\n removeMethionineCmb.setEnabled(editable);\n //minPtmsPerPeptideTxt.setEditable(editable);\n //minPtmsPerPeptideTxt.setEnabled(editable);\n maxPtmsPerPeptideTxt.setEditable(editable);\n maxPtmsPerPeptideTxt.setEnabled(editable);\n maxVariablePtmsPerTypeTxt.setEditable(editable);\n maxVariablePtmsPerTypeTxt.setEnabled(editable);\n enzymeTypeCmb.setEnabled(editable);\n peptideListCmb.setEnabled(editable);\n decoyFormatCombo.setEnabled(editable);\n keepTerminalAaCombo.setEnabled(editable);\n decoySeedTxt.setEditable(editable);\n decoySeedTxt.setEnabled(editable);\n removeTempFoldersCmb.setEnabled(editable);\n exactPvalueCombo.setEnabled(editable);\n spScoreCombo.setEnabled(editable);\n minSpectrumMzTxt.setEditable(editable);\n minSpectrumMzTxt.setEnabled(editable);\n maxSpectrumMzTxt.setEditable(editable);\n maxSpectrumMzTxt.setEnabled(editable);\n minPeaksTxt.setEditable(editable);\n minPeaksTxt.setEnabled(editable);\n chargesCombo.setEnabled(editable);\n removePrecursorPeakCombo.setEnabled(editable);\n removePrecursorPeakToleranceTxt.setEditable(editable);\n removePrecursorPeakToleranceTxt.setEnabled(editable);\n useFlankingCmb.setEnabled(editable);\n useNeutralLossCmb.setEnabled(editable);\n mzBinWidthTxt.setEditable(editable);\n mzBinWidthTxt.setEnabled(editable);\n mzBinOffsetTxt.setEditable(editable);\n mzBinOffsetTxt.setEnabled(editable);\n numberMatchesTxt.setEditable(editable);\n numberMatchesTxt.setEnabled(editable);\n outputFormatCombo.setEnabled(editable);\n \n }", "@Override\n public void actionPerformed(ActionEvent e) {\n \n }", "@Override\n public void actionPerformed(ActionEvent e)\n {\n \n }", "private void $$$setupUI$$$() {\n rootPanel = new JPanel();\n rootPanel.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(11, 3, new Insets(0, 0, 0, 0), -1, -1));\n bKillSession = new JButton();\n bKillSession.setText(\"Убить сессии\");\n rootPanel.add(bKillSession, new com.intellij.uiDesigner.core.GridConstraints(0, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n bGetAll = new JButton();\n bGetAll.setText(\"Получить график\");\n rootPanel.add(bGetAll, new com.intellij.uiDesigner.core.GridConstraints(1, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n bStartBS = new JButton();\n bStartBS.setText(\"Старт БС\");\n rootPanel.add(bStartBS, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n bSetFreq = new JButton();\n bSetFreq.setText(\"Установить частоту\");\n rootPanel.add(bSetFreq, new com.intellij.uiDesigner.core.GridConstraints(2, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n tfFreq = new JTextField();\n rootPanel.add(tfFreq, new com.intellij.uiDesigner.core.GridConstraints(2, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n cbDefaultBS = new JCheckBox();\n cbDefaultBS.setSelected(true);\n cbDefaultBS.setText(\"Использовать БС из конфига\");\n rootPanel.add(cbDefaultBS, new com.intellij.uiDesigner.core.GridConstraints(4, 0, 1, 3, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer1 = new com.intellij.uiDesigner.core.Spacer();\n rootPanel.add(spacer1, new com.intellij.uiDesigner.core.GridConstraints(7, 2, 4, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n cbListMethods = new JComboBox();\n rootPanel.add(cbListMethods, new com.intellij.uiDesigner.core.GridConstraints(5, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"Запускаемый метод:\");\n rootPanel.add(label1, new com.intellij.uiDesigner.core.GridConstraints(5, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer2 = new com.intellij.uiDesigner.core.Spacer();\n rootPanel.add(spacer2, new com.intellij.uiDesigner.core.GridConstraints(7, 0, 4, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n lblParams = new JLabel();\n lblParams.setText(\"Label\");\n rootPanel.add(lblParams, new com.intellij.uiDesigner.core.GridConstraints(6, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\n rootPanel.add(panel1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n bPause = new JButton();\n bPause.setText(\"Пауза\");\n panel1.add(bPause, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n bStart = new JButton();\n bStart.setText(\"Старт\");\n panel1.add(bStart, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JSeparator separator1 = new JSeparator();\n rootPanel.add(separator1, new com.intellij.uiDesigner.core.GridConstraints(3, 0, 1, 3, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n }", "public GUI_Edit_Tour(){\n init();\n }", "private void $$$setupUI$$$() {\n contentPane = new JPanel();\n contentPane.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(3, 1, new Insets(10, 10, 10, 10), -1, -1));\n btnPanel = new JPanel();\n btnPanel.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(btnPanel, new com.intellij.uiDesigner.core.GridConstraints(2, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer1 = new com.intellij.uiDesigner.core.Spacer();\n btnPanel.add(spacer1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n btnPanel2 = new JPanel();\n btnPanel2.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n btnPanel.add(btnPanel2, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n buttonOK = new JButton();\n buttonOK.setText(\"OK\");\n btnPanel2.add(buttonOK, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n contentPanel = new JPanel();\n contentPanel.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(contentPanel, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n content = new JTextArea();\n content.setBackground(new Color(-1118482));\n content.setEditable(false);\n contentPanel.add(content, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, new Dimension(150, 50), null, 0, false));\n title = new JLabel();\n Font titleFont = this.$$$getFont$$$(null, -1, 20, title.getFont());\n if (titleFont != null) title.setFont(titleFont);\n title.setText(\"Invalid Number of Players\");\n contentPane.add(title, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }", "private void updateGUI() {\n\t\tsfrDlg.readSFRTableFromCPU();\n\t\tsourceCodeDlg.updateRowSelection(cpu.PC);\n\t\tsourceCodeDlg.getCyclesLabel().setText(\"Cycles count : \" + cpu.getCyclesCount());\n\t\tdataMemDlg.fillDataMemory();\n\t\t//ioPortsDlg.fillIOPorts();\t\t\n\t\tIterator iter = seg7DlgList.iterator();\n\t\twhile(iter.hasNext())\n\t\t\t((GUI_7SegDisplay)iter.next()).drawSeg();\n\t}", "private static void initAndShowGUI() {\n }", "private GUIAltaHabitacion() {\r\n\t initComponents();\r\n\t }", "@Override\n\tpublic void transitToGUI(int i) {\n\t\t\n\t}", "public DatabaseGUI() {\n initComponents();\n refreshDatabaseTables();\n\n }", "public History_GUI(){\n super();\n InitializeComponents();\n ConfigureWin();\n\n }", "private void initUI() {\n }", "public VisualizarLlamada() {\n initComponents();\n }", "public CuacaGUI() throws ClassNotFoundException, SQLException {\n initComponents();\n \n }", "@Override\n public void actionPerformed(ActionEvent e) {\n \n }", "@Override\n public void actionPerformed(ActionEvent e) {\n \n }", "@Override\n public void actionPerformed(ActionEvent e) {\n \n }", "public void designerStateModified(DesignerEvent e);", "public EditorBarajasGUI() {\n\t\t//dibujamos el cursor\n\t\tImageIcon cursor = new ImageIcon(\"../imagenes/cursores/puntero.gif\");\n\t\tImage image = cursor.getImage();\n\t\tCursor puntero = Toolkit.getDefaultToolkit().createCustomCursor(image, new Point(0, 0), \"img\");\n\t\tthis.setCursor(puntero);\n\n\t\ttry {\n\t\t\tjbInit();\n\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n\tpublic void serializeUI() {\n\t\t\n\t}", "private void $$$setupUI$$$() {\n createUIComponents();\n contentPane = new JPanel();\n contentPane.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 1, new Insets(10, 10, 10, 10), -1, -1));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JScrollPane scrollPane1 = new JScrollPane();\n panel1.add(scrollPane1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n table1.setAutoscrolls(true);\n table1.setColumnSelectionAllowed(false);\n scrollPane1.setViewportView(table1);\n }", "@Override\n public void stateChanged(javax.swing.event.ChangeEvent e) {\n }", "private void $$$setupUI$$$() {\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t}", "public quotaGUI() {\n initComponents();\n }", "public FinishedGoodMaster_old () {\n initComponents ();\n \n jTextField1.setNextFocusableComponent ( jTextField3 );\n jTextField3.setNextFocusableComponent ( jTextField2 );\n jTextField2.setNextFocusableComponent ( jComboBox1 );\n jComboBox1.setNextFocusableComponent ( jTextField4 );\n }", "@Override\n public void setupPanel()\n {\n\n }", "private void $$$setupUI$$$() {\n contentPane = new JPanel();\n contentPane.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(4, 2, new Insets(10, 10, 10, 10), -1, -1));\n contentPane.setBackground(new Color(-16316665));\n contentPane.setMinimumSize(new Dimension(450, 500));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 5, new Insets(0, 0, 0, 0), 0, 0));\n panel1.setAlignmentY(0.0f);\n panel1.setAutoscrolls(true);\n panel1.setBackground(new Color(-16316665));\n contentPane.add(panel1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 4, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_NORTH, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n stopButton = new JButton();\n stopButton.setBackground(new Color(-16316665));\n stopButton.setForeground(new Color(-1041));\n stopButton.setText(\"Stop\");\n panel1.add(stopButton, new com.intellij.uiDesigner.core.GridConstraints(0, 4, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n pauseButton = new JButton();\n pauseButton.setBackground(new Color(-16316665));\n pauseButton.setForeground(new Color(-1041));\n pauseButton.setText(\"Pause\");\n panel1.add(pauseButton, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n startButton = new JButton();\n startButton.setBackground(new Color(-16316665));\n startButton.setForeground(new Color(-1041));\n startButton.setText(\"Start\");\n panel1.add(startButton, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n textArea1 = new JTextArea();\n textArea1.setBackground(new Color(-16316665));\n textArea1.setDisabledTextColor(new Color(-1041));\n textArea1.setEditable(false);\n textArea1.setForeground(new Color(-1041));\n panel1.add(textArea1, new com.intellij.uiDesigner.core.GridConstraints(0, 2, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n board = new JPanel();\n board.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n board.setBackground(new Color(-16316665));\n contentPane.add(board, new com.intellij.uiDesigner.core.GridConstraints(3, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n board.setBorder(BorderFactory.createTitledBorder(BorderFactory.createLineBorder(new Color(-1041)), null, TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, null, new Color(-16777216)));\n textArea2 = new JTextArea();\n textArea2.setBackground(new Color(-16316665));\n textArea2.setFont(new Font(textArea2.getFont().getName(), textArea2.getFont().getStyle(), 22));\n board.add(textArea2, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, new Dimension(150, 50), null, 0, false));\n }", "public ModifyProductFrame() {\n initComponents();\n setIcon();\n }", "private void editLibraries() {\n\t\tJOptionPane.showMessageDialog(this, \"No implemented yet!\");\n\t}", "public PropsGUI() {\n initComponents();\n }", "public Visualize() {\n initComponents();\n \n }", "public JFrame_05_Mayor_De_10() {\n initComponents();\n \n }", "public orgGui() {\n initComponents();\n }", "private void jButton14ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "public Modify() {\n initComponents();\n }", "private void basicUIButtonActionPerformed() {\n dbCopyFrame basicFrame = new dbCopyFrame(mainFrame, true);\n basicFrame.pack();\n basicFrame.setVisible(true);\n }", "@Override\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\n\t\t\t}", "private void actionComboboxChangedSample ()\r\n\t{\r\n\t\tint tableSize = DataController.getTable().getTableSize();\r\n\r\n\t\t//---- Check if the project is empty or not\r\n\t\tif (tableSize != 0)\r\n\t\t{\r\n\t\t\thelperDisplaySampleLocation();\r\n\t\t\thelperDisplayResults();\r\n\t\t}\r\n\t}", "private void $$$setupUI$$$() {\n createUIComponents();\n panel1 = new JPanel();\n panel1.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\n panel1.setOpaque(true);\n panel1.setPreferredSize(new Dimension(980, 660));\n LeftPane = new JPanel();\n LeftPane.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(4, 1, new Insets(0, 0, 0, 0), -1, -1, true, false));\n panel1.add(LeftPane, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n LeftPane.setBorder(BorderFactory.createTitledBorder(BorderFactory.createLineBorder(new Color(-4473925)), null));\n Stats = new JPanel();\n Stats.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(5, 2, new Insets(0, 0, 0, 0), -1, -1));\n LeftPane.add(Stats, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n Font label1Font = this.$$$getFont$$$(\"Stencil\", -1, 12, label1.getFont());\n if (label1Font != null) label1.setFont(label1Font);\n label1.setText(\"Player:\");\n Stats.add(label1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label2 = new JLabel();\n Font label2Font = this.$$$getFont$$$(\"Stencil\", -1, 12, label2.getFont());\n if (label2Font != null) label2.setFont(label2Font);\n label2.setText(\"Highscore:\");\n Stats.add(label2, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n highScore = new JTextField();\n highScore.setEditable(false);\n highScore.setHorizontalAlignment(0);\n Stats.add(highScore, new com.intellij.uiDesigner.core.GridConstraints(1, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n playerName = new JTextField();\n playerName.setEditable(false);\n playerName.setHorizontalAlignment(0);\n playerName.setText(\"\");\n Stats.add(playerName, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n final JLabel label3 = new JLabel();\n Font label3Font = this.$$$getFont$$$(\"Stencil\", -1, 12, label3.getFont());\n if (label3Font != null) label3.setFont(label3Font);\n label3.setText(\"Level:\");\n Stats.add(label3, new com.intellij.uiDesigner.core.GridConstraints(2, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n levelId = new JTextField();\n levelId.setEditable(false);\n levelId.setHorizontalAlignment(0);\n Stats.add(levelId, new com.intellij.uiDesigner.core.GridConstraints(2, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n final JLabel label4 = new JLabel();\n Font label4Font = this.$$$getFont$$$(\"Stencil\", -1, 12, label4.getFont());\n if (label4Font != null) label4.setFont(label4Font);\n label4.setText(\"Time:\");\n Stats.add(label4, new com.intellij.uiDesigner.core.GridConstraints(4, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n timeLeft = new JTextField();\n timeLeft.setEditable(false);\n timeLeft.setEnabled(true);\n timeLeft.setFocusable(true);\n timeLeft.setHorizontalAlignment(0);\n timeLeft.setOpaque(true);\n Stats.add(timeLeft, new com.intellij.uiDesigner.core.GridConstraints(4, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n final JLabel label5 = new JLabel();\n Font label5Font = this.$$$getFont$$$(\"Stencil\", -1, 12, label5.getFont());\n if (label5Font != null) label5.setFont(label5Font);\n label5.setHorizontalAlignment(10);\n label5.setText(\"Score:\");\n Stats.add(label5, new com.intellij.uiDesigner.core.GridConstraints(3, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n scoreField = new JTextField();\n scoreField.setEditable(false);\n scoreField.setHorizontalAlignment(0);\n Stats.add(scoreField, new com.intellij.uiDesigner.core.GridConstraints(3, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n final JLabel label6 = new JLabel();\n Font label6Font = this.$$$getFont$$$(\"Stencil\", -1, 18, label6.getFont());\n if (label6Font != null) label6.setFont(label6Font);\n label6.setText(\"Molecule:\");\n LeftPane.add(label6, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n moleculeName = new JTextField();\n moleculeName.setEditable(false);\n moleculeName.setFocusable(true);\n Font moleculeNameFont = this.$$$getFont$$$(\"Stencil\", -1, 18, moleculeName.getFont());\n if (moleculeNameFont != null) moleculeName.setFont(moleculeNameFont);\n moleculeName.setHorizontalAlignment(0);\n moleculeName.setOpaque(true);\n moleculeName.setRequestFocusEnabled(true);\n moleculeName.setText(\"\");\n moleculeName.setVisible(true);\n moleculeName.putClientProperty(\"caretWidth\", new Integer(0));\n LeftPane.add(moleculeName, new com.intellij.uiDesigner.core.GridConstraints(2, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n molPane = new JPanel();\n molPane.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n LeftPane.add(molPane, new com.intellij.uiDesigner.core.GridConstraints(3, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n molPane.add(moleculePanel1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, new Dimension(160, 96), null, null, 0, false));\n RightPane = new JPanel();\n RightPane.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(3, 1, new Insets(0, 0, 0, 0), -1, -1));\n panel1.add(RightPane, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer1 = new com.intellij.uiDesigner.core.Spacer();\n RightPane.add(spacer1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer2 = new com.intellij.uiDesigner.core.Spacer();\n RightPane.add(spacer2, new com.intellij.uiDesigner.core.GridConstraints(2, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n gamePane = new JPanel();\n gamePane.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n RightPane.add(gamePane, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, new Dimension(640, 600), null, new Dimension(800, 640), 0, false));\n gamePane.add(gamePanel1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, new Dimension(640, 609), null, new Dimension(980, 680), 0, false));\n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n protected void actionPerformed(GuiButton button)\n {\n super.actionPerformed(button);\n }", "private void initComponents() {\n\t\t\n\t}", "private void initComponents() {\n\t\t\n\t}", "@Override\n public void componentShown(ComponentEvent e) {\n\n }", "private void JTextField(String string) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public GraphicUI() {\n initComponents();\n jPanelAddr.setVisible(false);\n jButtonDBToAddr.setVisible(false);\n jFrameMap.setVisible(false);\n\n selectedFormat = 0;\n quickSearch = false;\n \ttextFieldDefaults = setFieldDefaults();\n \ttextFieldCurrents = setFieldDefaults();;\n\n }", "public soal2GUI() {\n initComponents();\n }", "public abstract String getManipulatorButtonLabel();", "private void configureComponents() {\n save.setStyleName(ValoTheme.BUTTON_PRIMARY);\n save.setClickShortcut(ShortcutAction.KeyCode.ENTER);\n setVisible(false);\n }", "public Designer() {\n initComponents();\n }", "private void setupGUI()\n\t{\n\t\t//initializes labelNumberOfASCII and adds to frame \n\t\tlabelNumberOfASCII = new JLabel();\n\t\tlabelNumberOfASCII.setLocation(12, 8);\n\t\tlabelNumberOfASCII.setSize(191,26);\n\t\tlabelNumberOfASCII.setText(\"Number of ASCII characters used\");\n\t\tgetContentPane().add(labelNumberOfASCII);\n\t\t\n\t\t//initialized comboCharSet and adds to frame\n\t\tString comboCharSet_tmp[]={\"Small\", \"Medium\", \"Large\"};\n\t\tcomboCharSet = new JComboBox<String>(comboCharSet_tmp);\n\t\tcomboCharSet.setLocation(294, 12);\n\t\tcomboCharSet.setSize(96, 25);\n\t\tcomboCharSet.setEditable(true);\n\t\tcomboCharSet.addActionListener(this);\n\t\tgetContentPane().add(comboCharSet);\n\n\t\t//initializes labelNumberofPixels and adds to frame\n\t\tlabelNumberOfPixels = new JLabel();\n\t\tlabelNumberOfPixels.setLocation(12,28);\n\t\tlabelNumberOfPixels.setSize(240,51);\n\t\tlabelNumberOfPixels.setText(\"Number of pixels per ASCII character: \");\n\t\tgetContentPane().add(labelNumberOfPixels);\n\t\t\n\t\t//initializes comboNumberOfPixels and adds to frame\n\t\tString comboNumberOfPixels_tmp[]={\"1\",\"3\",\"5\",\"7\",\"10\"};\n\t\tcomboNumberOfPixels = new JComboBox<String>(comboNumberOfPixels_tmp);\n\t\tcomboNumberOfPixels.setLocation(294,40);\n\t\tcomboNumberOfPixels.setSize(96,25);\n\t\tcomboNumberOfPixels.setEditable(true);\n\t\tcomboNumberOfPixels.addActionListener(this);\n\t\tgetContentPane().add(comboNumberOfPixels);\n\n\t\t//initializes outputPathLabel and adds to frame\n\t\toutputPathLabel = new JLabel();\n\t\toutputPathLabel.setLocation(12, 55);\n\t\toutputPathLabel.setText(\"Output folder:\");\n\t\toutputPathLabel.setSize(218, 51);\n\t\toutputPathLabel.setVisible(true);\n\t\tgetContentPane().add(outputPathLabel);\n\n\t\t//initializes outputPathTextField and adds to frame\n\t\toutputPathTextField = new JTextField();\n\t\tString initPath;\n\t\t//sets default output to default directory, created in Main.java. looks according to operating system.\n\t\tif (OSUtils.isUnixOrLinux())\n\t\t\tinitPath = System.getProperty(\"user.home\") + \"/.picture-to-ascii/output\";\n\t\telse if (OSUtils.isWindows())\n\t\t\tinitPath = System.getProperty(\"user.home\") + \"\\\\My Documents\\\\picture-to-ascii\\\\output\";\n\t\telse\n\t\t\tinitPath = \"(output path)\";\n\t\t//if the directory failed to create for reasons other than incompatible OS, we want (output path).\n\t\tif (!new File(initPath).isDirectory())\n\t\t\tinitPath = \"(output path)\";\n\n\t\toutputPathTextField.setLocation(150, 70);\n\t\toutputPathTextField.setSize(240,25);\n\t\toutputPathTextField.setText(initPath);\n\t\tgetContentPane().add(outputPathTextField);\n\n\t\tfontSizeTextField = new JTextField();\n\t\tfontSizeTextField.setLocation(150, 100);\n\t\tfontSizeTextField.setSize(240,25);\n\t\tfontSizeTextField.setText(\"5\");\n\t\tgetContentPane().add(fontSizeTextField);\n\n\t\tfontSizeLabel = new JLabel();\n\t\tfontSizeLabel.setText(\"Font size:\");\n\t\tfontSizeLabel.setSize(125, 51);\n\t\tfontSizeLabel.setLocation(12, 85);\n\t\tfontSizeLabel.setVisible(true);\n\t\tgetContentPane().add(fontSizeLabel);\n\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n\n }", "public BBDJPAAdminGUI() {\n initComponents();\n\n myInit();\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}", "public static void OptionsComponents() {\n\t\tInterface.controls.setPreferredSize(Interface.dim);\n\t\tInterface.controls.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.controls.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.controls.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.controls.setForeground(Color.white);\n\t\t\n\t\tInterface.controls2.setPreferredSize(Interface.dim);\n\t\tInterface.controls2.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.controls2.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.controls2.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.controls2.setForeground(Color.white);\n\t\t\n\t\t\n\t\tInterface.sound.setPreferredSize(Interface.dim);\n\t\tInterface.sound.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.sound.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.sound.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.sound.setForeground(Color.white);\n\t\t\n\t\tInterface.soundOn.setPreferredSize(Interface.dim);\n\t\tInterface.soundOn.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.soundOn.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.soundOn.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.soundOn.setForeground(Color.white);\n\t\t\n\t\tInterface.soundOff.setPreferredSize(Interface.dim);\n\t\tInterface.soundOff.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.soundOff.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.soundOff.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.soundOff.setForeground(Color.white);\n\t\t\n\t\t\n\t\tInterface.backtomain.setPreferredSize(Interface.dim);\n\t\tInterface.backtomain.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.backtomain.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.backtomain.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.backtomain.setForeground(Color.white);\n\t\t\n\t\t\n\t\tInterface.save.setPreferredSize(Interface.dim);\n\t\tInterface.save.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.save.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.save.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.save.setForeground(Color.white);\n\t\t\n\t\t\n\t\tInterface.backtooptions.setPreferredSize(Interface.dim);\n\t\tInterface.backtooptions.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.backtooptions.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.backtooptions.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.backtooptions.setForeground(Color.white);\n\t\t\n\t\t\n\t\tInterface.player1.setForeground(Color.white);\n\t\tInterface.player2.setForeground(Color.white);\n\t\tInterface.up1.setForeground(Color.white);\n\t\tInterface.up2.setForeground(Color.white);\n\t\tInterface.down1.setForeground(Color.white);\n\t\tInterface.down2.setForeground(Color.white);\n\t\tInterface.right1.setForeground(Color.white);\n\t\tInterface.right2.setForeground(Color.white);\n\t\tInterface.left1.setForeground(Color.white);\n\t\tInterface.left2.setForeground(Color.white);\n\t\tInterface.bomb1.setForeground(Color.white);\n\t\tInterface.bomb2.setForeground(Color.white);\n\t\tInterface.boxNumber.setForeground(Color.white);\n\t\tInterface.getUp1.setEditable(false);\n\t\tInterface.getUp2.setEditable(false);\n\t\tInterface.getDown1.setEditable(false);\n\t\tInterface.getDown2.setEditable(false);\n\t\tInterface.getRight1.setEditable(false);\n\t\tInterface.getRight2.setEditable(false);\n\t\tInterface.getLeft1.setEditable(false);\n\t\tInterface.getLeft2.setEditable(false);\n\t\tInterface.getBomb1.setEditable(false);\n\t\tInterface.getBomb2.setEditable(false);\n\t}", "private void initComponentsCustom() {\n SGuiUtils.setWindowBounds(this, 480, 300);\n\n moTextUnitSymbol.setTextSettings(jlUnitSymbol.getText(), 15, 1);\n moTextUnitName.setTextSettings(jlName.getText(), 150, 1);\n moTextShortName.setTextSettings(SGuiUtils.getLabelName(jlAnalysisShortName.getText()), 10, 1);\n moTextName.setTextSettings(SGuiUtils.getLabelName(jlName.getText()), 100, 1);\n moKeyAnalysisType.setKeySettings(miClient, SGuiUtils.getLabelName(jlAnalysisType), true);\n\n moFields.addField(moTextUnitSymbol);\n moFields.addField(moTextUnitName);\n \n moFields.addField(moTextShortName);\n moFields.addField(moTextName);\n \n moFields.addField(moKeyAnalysisType);\n\n moFields.setFormButton(jbSave);\n }", "public void iniciaGUISesion() {\n\t\ttabbed.removeTabAt(1);\n\t\ttabbed.removeTabAt(1);\n\t\ttabbed.insertTab(\"Evolución bolsa\", null, getPanelControl(), \"Control de los usuarios\", 1);\n\t\ttabbed.insertTab(\"Eventos\", null, getPanelEventos(), \"Control de los eventos\", 2);\n\t}", "@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }", "@Override\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\n\t\t\t\t}", "private void afterInitComponents() {\n \t\t\n \t}" ]
[ "0.69456124", "0.69456124", "0.67765963", "0.66016763", "0.65435326", "0.6496073", "0.64561814", "0.645548", "0.6438965", "0.64105684", "0.63636893", "0.63259995", "0.62934434", "0.62857145", "0.62822765", "0.62519974", "0.62099725", "0.61701167", "0.6147019", "0.6137538", "0.6137538", "0.6137538", "0.6134788", "0.6130912", "0.6084438", "0.60726035", "0.6065666", "0.6061428", "0.6057711", "0.60574895", "0.6043095", "0.6029011", "0.6018604", "0.600478", "0.5997689", "0.5983662", "0.5981661", "0.5981155", "0.59737146", "0.597024", "0.596506", "0.59641355", "0.5958911", "0.5958872", "0.5953189", "0.5932383", "0.5913085", "0.5903575", "0.5898791", "0.5895081", "0.58918166", "0.58918166", "0.58918166", "0.5889972", "0.5888487", "0.5887607", "0.5885648", "0.58842963", "0.587584", "0.5872913", "0.5861931", "0.5856598", "0.58534", "0.58533996", "0.58492297", "0.58481413", "0.58392805", "0.5821146", "0.58192873", "0.58189523", "0.58170855", "0.5816498", "0.5814628", "0.58106023", "0.5803725", "0.5803298", "0.5799955", "0.5794061", "0.5787172", "0.5787172", "0.5786939", "0.5785853", "0.57843477", "0.5781649", "0.57796943", "0.57795566", "0.5779464", "0.57787174", "0.5777384", "0.57672334", "0.5763454", "0.5763454", "0.5763454", "0.5763454", "0.57631993", "0.5762586", "0.57587796", "0.5758065", "0.5754896", "0.5754896", "0.5751781" ]
0.0
-1
for example, Case 1: 44 444
public static void printT9WithCaseNumber(int i, String t9) { System.out.println("Case #" + i + ": " + t9); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getNum1();", "@Test\n public void testCaseNumberSplit() {\n String caseNumber1 = \"NTN-57930\";\n String[] parts1 = caseNumber1.split( \"-\" );\n //String[] parts2 = caseNumber2.split(\"-\");\n //String[] parts3 = caseNumber3.split(\"-\");\n System.out.println( parts1.length );\n //System.out.println( parts2.length);\n //System.out.println( parts3.length);\n if (parts1.length > 2) {\n System.out.println( parts1[0] );\n String case1 = caseNumber1.substring( caseNumber1.indexOf( caseNumber1.split( \"-\" )[0] ), caseNumber1.indexOf( caseNumber1.split( \"-\" )[2] ) - 1 );\n System.out.println( case1 );\n } else {\n String case1 = caseNumber1;\n System.out.println( case1 );\n }\n }", "public int mo4451d() {\n this.f2519d = 0;\n int i = 0;\n int i2 = 0;\n int i3 = 0;\n while (this.f2519d < this.f2518c && i == 0) {\n byte b = mo4450b();\n if (b != 0) {\n if (b == 1 || b == 2) {\n if (i3 == 0) {\n return 1;\n }\n } else if (b != 9) {\n switch (b) {\n case 14:\n case 15:\n i3++;\n i2 = -1;\n continue;\n case 16:\n case 17:\n i3++;\n i2 = 1;\n continue;\n case 18:\n i3--;\n i2 = 0;\n continue;\n }\n }\n } else if (i3 == 0) {\n return -1;\n }\n i = i3;\n }\n if (i == 0) {\n return 0;\n }\n if (i2 != 0) {\n return i2;\n }\n while (this.f2519d > 0) {\n switch (mo4449a()) {\n case 14:\n case 15:\n if (i == i3) {\n return -1;\n }\n break;\n case 16:\n case 17:\n if (i == i3) {\n return 1;\n }\n break;\n case 18:\n i3++;\n continue;\n }\n i3--;\n }\n return 0;\n }", "@Override\r\n\tpublic int challengeFour(int[][] arr) {\n\t\treturn 0;\r\n\t}", "private static void test4() {\n int[] numbers = {4, 5, 1, 6, 2, 7, 2, 8};\n int[] expected = {1, 2};\n\n test(\"Test4\", numbers, expected);\n }", "java.lang.String getNum2();", "int getTotalCaseNumbers();", "float compress(){\n float lower = mp.get(sequence.charAt(0)).lowRange;\n float upper = mp.get(sequence.charAt(0)).upperRange;\n for (int i = 1; i < sequence.length(); i++) {\n float newLower = lower + (upper - lower)*mp.get(sequence.charAt(i)).lowRange;\n float newUpper = lower + (upper - lower)*mp.get(sequence.charAt(i)).upperRange;\n lower = newLower;\n upper = newUpper;\n }\n ///picking value between final lower and upper\n float compressionCode = (float)(Math.floor(upper * 1000.0) / 1000.0);\n return compressionCode;\n }", "private static String lettre2Chiffre1(String n) {\n\t\tString c= new String() ;\n\t\tswitch(n) {\n\t\tcase \"A\": case \"J\":\n\t\t\tc=\"1\";\n\t\t\treturn c;\n\t\tcase \"B\": case \"K\": case \"S\":\n\t\t\tc=\"2\";\n\t\t\treturn c;\n\t\tcase \"C\": case\"L\": case \"T\":\n\t\t\tc=\"3\";\n\t\t\treturn c;\n\t\tcase \"D\": case \"M\": case \"U\":\n\t\t\tc=\"4\";\n\t\t\treturn c;\n\t\tcase \"E\": case \"N\": case \"V\":\n\t\t\tc=\"5\";\n\t\t\treturn c;\n\t\tcase \"F\": case \"O\": case \"W\":\n\t\t\tc=\"6\";\n\t\t\treturn c;\n\t\tcase \"G\": case \"P\": case \"X\":\n\t\t\tc=\"7\";\n\t\t\treturn c;\n\t\tcase \"H\": case \"Q\": case \"Y\":\n\t\t\tc=\"8\";\n\t\t\treturn c;\n\t\tcase \"I\": case \"R\": case \"Z\":\n\t\t\tc=\"4\";\n\t\t\treturn c;\n\t\t\t\n\t\t}\n\t\treturn c;\n\t\t\n\t\n\t\t}", "private String generatePhone() {\n\t\tString ret = \"\";\n\t\tString[] areaCode = { \"051\", \"055\", \"045\", \"043\", \"053\" };\n\n\t\t// Gets an area code\n\t\tret = areaCode[(new Random()).nextInt(5)];\n\n\t\tfor (int i = 0; i < 8; i++) {\n\t\t\tint n = (new Random()).nextInt(9);\n\n\t\t\t// Checks if the first number is 0\n\t\t\tif (i == 0 && n == 0) {\n\t\t\t\ti -= 1;\n\t\t\t\tcontinue;\n\t\t\t} else {\n\t\t\t\tret += n;\n\t\t\t}\n\t\t}\n\n\t\treturn ret;\n\t}", "private static int zzaz(java.lang.String r5) {\n /*\n int r0 = r5.hashCode()\n r1 = 0\n r2 = 3\n r3 = 2\n r4 = 1\n switch(r0) {\n case -1095064472: goto L_0x002a;\n case 187078296: goto L_0x0020;\n case 1504578661: goto L_0x0016;\n case 1505942594: goto L_0x000c;\n default: goto L_0x000b;\n }\n L_0x000b:\n goto L_0x0034\n L_0x000c:\n java.lang.String r0 = \"audio/vnd.dts.hd\"\n boolean r5 = r5.equals(r0)\n if (r5 == 0) goto L_0x0034\n r5 = 3\n goto L_0x0035\n L_0x0016:\n java.lang.String r0 = \"audio/eac3\"\n boolean r5 = r5.equals(r0)\n if (r5 == 0) goto L_0x0034\n r5 = 1\n goto L_0x0035\n L_0x0020:\n java.lang.String r0 = \"audio/ac3\"\n boolean r5 = r5.equals(r0)\n if (r5 == 0) goto L_0x0034\n r5 = 0\n goto L_0x0035\n L_0x002a:\n java.lang.String r0 = \"audio/vnd.dts\"\n boolean r5 = r5.equals(r0)\n if (r5 == 0) goto L_0x0034\n r5 = 2\n goto L_0x0035\n L_0x0034:\n r5 = -1\n L_0x0035:\n if (r5 == 0) goto L_0x0045\n if (r5 == r4) goto L_0x0043\n if (r5 == r3) goto L_0x0041\n if (r5 == r2) goto L_0x003e\n return r1\n L_0x003e:\n r5 = 8\n return r5\n L_0x0041:\n r5 = 7\n return r5\n L_0x0043:\n r5 = 6\n return r5\n L_0x0045:\n r5 = 5\n return r5\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.ads.zzio.zzaz(java.lang.String):int\");\n }", "private final void step4() { switch (b[k])\n\t {\n\t case 'e': if (ends(\"icate\")) { r(\"ic\"); break; }\n\t if (ends(\"ative\")) { r(\"\"); break; }\n\t if (ends(\"alize\")) { r(\"al\"); break; }\n\t break;\n\t case 'i': if (ends(\"iciti\")) { r(\"ic\"); break; }\n\t break;\n\t case 'l': if (ends(\"ical\")) { r(\"ic\"); break; }\n\t if (ends(\"ful\")) { r(\"\"); break; }\n\t break;\n\t case 's': if (ends(\"ness\")) { r(\"\"); break; }\n\t break;\n\t } }", "List<C45111a> mo107675a(Integer num, Integer num2);", "public int mo36g() {\n return 4;\n }", "public String handleCase(InputData in) {\n\n List<List<Integer>> straights = Lists.newArrayList();\n \n Collections.sort(in.cards);\n \n for(int card : in.cards) {\n \n List<Integer> shortestStraight = null;\n int shortestStraightLen = Integer.MAX_VALUE;\n \n for( List<Integer> straight : straights) {\n if (straight.get(straight.size() - 1) == card - 1 && straight.size() < shortestStraightLen)\n {\n shortestStraightLen = straight.size();\n shortestStraight = straight;\n }\n }\n \n if (shortestStraight == null) {\n List<Integer> newStraight = Lists.newArrayList();\n newStraight.add(card);\n straights.add(newStraight);\n } else {\n \n shortestStraight.add(card);\n }\n }\n \n int minSize = Integer.MAX_VALUE;\n for( List<Integer> straight : straights) {\n minSize = Math.min(straight.size(), minSize);\n }\n \n return String.format(\"Case #%d: %d\", in.testCase, minSize == Integer.MAX_VALUE ? 0 : minSize);\n \n }", "dkj mo4367a(dkk dkk);", "public String tri4(int h){\n\t\tString S = \"\";\n\t\tint H = h;\n\t\tint HH = H;\n\t\tint Counter = 0;\n\t\tint UsingCounter = Counter;\n\n\t\twhile (H > 0){\n\t\t\tHH = H;\n\t\t\twhile (UsingCounter > 0){\n\t\t\t\tS = S + \" \";\n\t\t\t\tUsingCounter = UsingCounter - 1;}\n\t\t\twhile (HH > 0) {\n\t\t\t\tS = S + \"*\";\n\t\t\t\tHH = HH - 1;}\n\t\t\tCounter = Counter + 1;\n\t\t\tUsingCounter = Counter;\n\t\t\tS = S + \"\\n\";\n\t\t\tH = H - 1;}\n\n\t\treturn S; }", "public static int m21411n(Context context) {\n if (TextUtils.isEmpty(f16896g)) {\n f16896g = ((TelephonyManager) context.getSystemService(\"phone\")).getSimOperator();\n if (TextUtils.isEmpty(f16896g)) {\n f16896g = \"\";\n }\n }\n if (!\"46000\".equals(f16896g)) {\n if (!\"46002\".equals(f16896g)) {\n if (!\"46004\".equals(f16896g)) {\n if (!\"46007\".equals(f16896g)) {\n if (!\"46008\".equals(f16896g)) {\n if (!\"46001\".equals(f16896g)) {\n if (!\"46006\".equals(f16896g)) {\n if (!\"46009\".equals(f16896g)) {\n if (!\"46003\".equals(f16896g)) {\n if (!\"46005\".equals(f16896g)) {\n if (!\"46011\".equals(f16896g)) {\n return \"46020\".equals(f16896g) ? 4 : 0;\n }\n }\n }\n return 3;\n }\n }\n }\n return 2;\n }\n }\n }\n }\n }\n return 1;\n }", "public String pid_011C(String str){\n\nString standar=\"Unknow\";\n switch(str.charAt(1)){\n case '1':{standar=\"OBD-II as defined by the CARB\";break;} \n case '2':{standar=\"OBD as defined by the EPA\";break;}\n case '3':{standar=\"OBD and OBD-II\";break;}\n case '4':{standar=\"OBD-I\";break;}\n case '5':{standar=\"Not meant to comply with any OBD standard\";break;}\n case '6':{standar=\"EOBD (Europe)\";break;}\n case '7':{standar=\"EOBD and OBD-II\";break;}\n case '8':{standar=\"EOBD and OBD\";break;}\n case '9':{standar=\"EOBD, OBD and OBD II\";break;}\n case 'A':{standar=\"JOBD (Japan)\";break;}\n case 'B':{standar=\"JOBD and OBD II\";break;} \n case 'C':{standar=\"JOBD and EOBD\";break;}\n case 'D':{standar=\"JOBD, EOBD, and OBD II\";break;} \n default: {break;} \n }\n \n return standar;\n}", "static int getNumPatterns() { return 64; }", "void solve() {\n num = new ArrayList<>();\n num.add(BigInteger.valueOf(4));\n for (int len = 2; len <= 100; len++)\n generate(\"4\", 1, len, false);\n Collections.sort(num);\n for (int tc = ii(); tc > 0; tc--) {\n long x = il();\n BigInteger X = BigInteger.valueOf(x);\n for (int i = 0; i < num.size(); i++) {\n if (num.get(i).mod(X).equals(BigInteger.ZERO)) {\n String z = num.get(i).toString();\n int end = z.lastIndexOf('4');\n int len = z.length();\n int a = 2 * (end+1);\n int b = len - end;\n out.println(a + b);\n break;\n }\n }\n }\n }", "private void check1(){\n \n\t\tif (firstDigit != 4){\n valid = false;\n errorCode = 1;\n }\n\t}", "static String GetCheckDigitAndCheckCode(String input) {\n int sum = 0;\n for(int i = 0; i < input.length(); i++) {\n if(i%2 == 0 || i == 0) {\n\n sum += 3 * Character.getNumericValue(input.charAt(i));\n }else {\n sum += Character.getNumericValue(input.charAt(i));\n }\n }\n int subDigit = ((sum/10) + 1 ) * 10;\n int checkDigit = subDigit - sum;\n\n input = input + checkDigit;\n\n\n int digit1 = get9Digits(input.substring(0, 8));\n int digit2 = get9Digits(input.substring(9));\n\n // NOTE - Not able to understand what means by index of 2\n // digit numbers so here am just adding instead of multiplying the 2 9 digits.\n int result = digit1 + digit2 + 207;\n int remainder = result % 103;\n\n StringBuilder sb = new StringBuilder();\n sb.append(checkDigit);\n sb.append(',');\n sb.append(remainder);\n return sb.toString();\n }", "@Test\n void testParseTestcaseFrom50Specification(){\n String testcase = \"\\r\\n\" +\n \"/ISk5\\\\2MT382-1000\\r\\n\" +\n \"\\r\\n\" +\n \"1-3:0.2.8(50)\\r\\n\" +\n \"0-0:1.0.0(101209113020W)\\r\\n\" +\n \"0-0:96.1.1(4B384547303034303436333935353037)\\r\\n\" +\n \"1-0:1.8.1(123456.789*kWh)\\r\\n\" +\n \"1-0:1.8.2(123456.789*kWh)\\r\\n\" +\n \"1-0:2.8.1(123456.789*kWh)\\r\\n\" +\n \"1-0:2.8.2(123456.789*kWh)\\r\\n\" +\n \"0-0:96.14.0(0002)\\r\\n\" +\n \"1-0:1.7.0(01.193*kW)\\r\\n\" +\n \"1-0:2.7.0(00.000*kW)\\r\\n\" +\n \"0-0:96.7.21(00004)\\r\\n\" +\n \"0-0:96.7.9(00002)\\r\\n\" +\n \"1-0:99.97.0(2)(0-0:96.7.19)(101208152415W)(0000000240*s)(101208151004W)(0000000301*s)\\r\\n\" +\n \"1-0:32.32.0(00002)\\r\\n\" +\n \"1-0:52.32.0(00001)\\r\\n\" +\n \"1-0:72.32.0(00000)\\r\\n\" +\n \"1-0:32.36.0(00000)\\r\\n\" +\n \"1-0:52.36.0(00003)\\r\\n\" +\n \"1-0:72.36.0(00000)\\r\\n\" +\n \"0-0:96.13.0(303132333435363738393A3B3C3D3E3F303132333435363738393A3B3C3D3E3F30313233343536373839\" +\n \"3A3B3C3D3E3F303132333435363738393A3B3C3D3E3F303132333435363738393A3B3C3D3E3F)\\r\\n\" +\n \"1-0:32.7.0(220.1*V)\\r\\n\" +\n \"1-0:52.7.0(220.2*V)\\r\\n\" +\n \"1-0:72.7.0(220.3*V)\\r\\n\" +\n \"1-0:31.7.0(001*A)\\r\\n\" +\n \"1-0:51.7.0(002*A)\\r\\n\" +\n \"1-0:71.7.0(003*A)\\r\\n\" +\n \"1-0:21.7.0(01.111*kW)\\r\\n\" +\n \"1-0:41.7.0(02.222*kW)\\r\\n\" +\n \"1-0:61.7.0(03.333*kW)\\r\\n\" +\n \"1-0:22.7.0(04.444*kW)\\r\\n\" +\n \"1-0:42.7.0(05.555*kW)\\r\\n\" +\n \"1-0:62.7.0(06.666*kW)\\r\\n\" +\n \"0-1:24.1.0(003)\\r\\n\" +\n \"0-1:96.1.0(3232323241424344313233343536373839)\\r\\n\" +\n \"0-1:24.2.1(101209112500W)(12785.123*m3)\\r\\n\" +\n \"!EF2F\\r\\n\" +\n \"\\r\\n\";\n DSMRTelegram dsmrTelegram = ParseDsmrTelegram.parse(testcase);\n\n // CHECKSTYLE.OFF: ParenPad\n assertEquals(\"/ISk5\\\\2MT382-1000\", dsmrTelegram.getRawIdent());\n assertEquals(\"ISK\", dsmrTelegram.getEquipmentBrandTag());\n assertEquals(\"MT382-1000\", dsmrTelegram.getIdent());\n\n assertEquals(\"5.0\", dsmrTelegram.getP1Version());\n assertEquals(ZonedDateTime.parse(\"2010-12-09T11:30:20+01:00\"), dsmrTelegram.getTimestamp());\n\n assertEquals(\"K8EG004046395507\", dsmrTelegram.getEquipmentId());\n assertEquals(\"0123456789:;<=>?0123456789:;<=>?0123456789:;<=>?0123456789:;<=>?0123456789:;<=>?\", dsmrTelegram.getMessage());\n\n assertEquals( 2, dsmrTelegram.getElectricityTariffIndicator());\n assertEquals( 123456.789, dsmrTelegram.getElectricityReceivedLowTariff(), 0.001);\n assertEquals( 123456.789, dsmrTelegram.getElectricityReceivedNormalTariff(), 0.001);\n assertEquals( 123456.789, dsmrTelegram.getElectricityReturnedLowTariff(), 0.001);\n assertEquals( 123456.789, dsmrTelegram.getElectricityReturnedNormalTariff(), 0.001);\n assertEquals( 1.193, dsmrTelegram.getElectricityPowerReceived(), 0.001);\n assertEquals( 0.0, dsmrTelegram.getElectricityPowerReturned(), 0.001);\n assertEquals( 4, dsmrTelegram.getPowerFailures());\n assertEquals( 2, dsmrTelegram.getLongPowerFailures());\n\n assertEquals(2, dsmrTelegram.getPowerFailureEventLogSize());\n\n List<PowerFailureEvent> powerFailureEventLog = dsmrTelegram.getPowerFailureEventLog();\n assertEquals(2, powerFailureEventLog.size());\n assertPowerFailureEvent(powerFailureEventLog.get(0), \"2010-12-08T15:20:15+01:00\", \"2010-12-08T15:24:15+01:00\", \"PT4M\");\n assertPowerFailureEvent(powerFailureEventLog.get(1), \"2010-12-08T15:05:03+01:00\", \"2010-12-08T15:10:04+01:00\", \"PT5M1S\");\n\n assertEquals( 2, dsmrTelegram.getVoltageSagsPhaseL1());\n assertEquals( 1, dsmrTelegram.getVoltageSagsPhaseL2());\n assertEquals( 0, dsmrTelegram.getVoltageSagsPhaseL3());\n assertEquals( 0, dsmrTelegram.getVoltageSwellsPhaseL1());\n assertEquals( 3, dsmrTelegram.getVoltageSwellsPhaseL2());\n assertEquals( 0, dsmrTelegram.getVoltageSwellsPhaseL3());\n assertEquals( 220.1, dsmrTelegram.getVoltageL1(), 0.001);\n assertEquals( 220.2, dsmrTelegram.getVoltageL2(), 0.001);\n assertEquals( 220.3, dsmrTelegram.getVoltageL3(), 0.001);\n assertEquals( 1, dsmrTelegram.getCurrentL1(), 0.001);\n assertEquals( 2, dsmrTelegram.getCurrentL2(), 0.001);\n assertEquals( 3, dsmrTelegram.getCurrentL3(), 0.001);\n assertEquals( 1.111, dsmrTelegram.getPowerReceivedL1(), 0.001);\n assertEquals( 2.222, dsmrTelegram.getPowerReceivedL2(), 0.001);\n assertEquals( 3.333, dsmrTelegram.getPowerReceivedL3(), 0.001);\n assertEquals( 4.444, dsmrTelegram.getPowerReturnedL1(), 0.001);\n assertEquals( 5.555, dsmrTelegram.getPowerReturnedL2(), 0.001);\n assertEquals( 6.666, dsmrTelegram.getPowerReturnedL3(), 0.001);\n assertEquals( 1, dsmrTelegram.getMBusEvents().size());\n\n assertEquals( 3, dsmrTelegram.getMBusEvents().get(1).getDeviceType());\n assertEquals(\"2222ABCD123456789\", dsmrTelegram.getMBusEvents().get(1).getEquipmentId());\n assertEquals(ZonedDateTime.parse(\"2010-12-09T11:25+01:00\"), dsmrTelegram.getMBusEvents().get(1).getTimestamp());\n assertEquals( 12785.123, dsmrTelegram.getMBusEvents().get(1).getValue(), 0.001);\n assertEquals( \"m3\", dsmrTelegram.getMBusEvents().get(1).getUnit());\n\n assertEquals(\"2222ABCD123456789\", dsmrTelegram.getGasEquipmentId());\n assertEquals(ZonedDateTime.parse(\"2010-12-09T11:25+01:00\"), dsmrTelegram.getGasTimestamp());\n assertEquals(12785.123, dsmrTelegram.getGasM3(), 0.001);\n\n assertEquals(\"EF2F\", dsmrTelegram.getCrc());\n\n // The CRC of this testcase is invalid.\n // Or better: I have not been able to copy it from the documentation and\n // recreate the \"original\" record for which the provided CRC was calculated.\n // assertTrue(dsmrTelegram.isValidCRC());\n }", "public static void show() {\r\n\t\t int[] forword=new int[6];\r\n\t\t int[] temp;\r\n\t\t for(int i=1;i<7;i++){\r\n\t\t\t temp=Arrays.copyOf(forword, 6);\r\n\t\t\t for(int j=0;j<i;j++){\r\n\t\t\t\t if(j==0){\r\n\t\t\t\t\t forword[0]=i;\r\n\t\t\t\t\t System.out.print(forword[0]+\" \");\r\n\t\t\t\t }else{\r\n\t\t\t\t\t forword[j]=forword[j-1]+temp[j-1];\r\n\t\t\t\t\t System.out.print(forword[j]+\" \");\t\t \r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t System.out.println();\r\n\t\t }\r\n\t\t //0-9:48-57 ; A-Z:65-90 ; a-z:97-122 \r\n\t\t\r\n\t}", "public int mo1534c() {\n return 2;\n }", "public int mo4452e() {\n /*\n r7 = this;\n int r0 = r7.f2518c\n r7.f2519d = r0\n r0 = 0\n r1 = 0\n r2 = 0\n L_0x0007:\n int r3 = r7.f2519d\n if (r3 <= 0) goto L_0x003b\n byte r3 = r7.mo4449a()\n r4 = -1\n if (r3 == 0) goto L_0x0034\n r5 = 1\n if (r3 == r5) goto L_0x002e\n r6 = 2\n if (r3 == r6) goto L_0x002e\n r6 = 9\n if (r3 == r6) goto L_0x0007\n switch(r3) {\n case 14: goto L_0x0028;\n case 15: goto L_0x0028;\n case 16: goto L_0x0025;\n case 17: goto L_0x0025;\n case 18: goto L_0x0022;\n default: goto L_0x001f;\n }\n L_0x001f:\n if (r2 != 0) goto L_0x0007\n goto L_0x0039\n L_0x0022:\n int r1 = r1 + 1\n goto L_0x0007\n L_0x0025:\n if (r2 != r1) goto L_0x002b\n return r5\n L_0x0028:\n if (r2 != r1) goto L_0x002b\n return r4\n L_0x002b:\n int r1 = r1 + -1\n goto L_0x0007\n L_0x002e:\n if (r1 != 0) goto L_0x0031\n return r5\n L_0x0031:\n if (r2 != 0) goto L_0x0007\n goto L_0x0039\n L_0x0034:\n if (r1 != 0) goto L_0x0037\n return r4\n L_0x0037:\n if (r2 != 0) goto L_0x0007\n L_0x0039:\n r2 = r1\n goto L_0x0007\n L_0x003b:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: androidx.core.text.BidiFormatter.C0510a.mo4452e():int\");\n }", "private static String resolveCase(long n) {\n\t\tif (n==0L){\n\t\t\treturn \"INSOMNIA\";\n\t\t}\n\t\tArrayList<Integer> digitsList = new ArrayList<Integer>(Arrays.asList(digits));\n\t\tint i = 1;\n\t\twhile (!digitsList.isEmpty() && i<1000){\n\t\t\tlong nRemainder = n*i ;\n\t\t\twhile (nRemainder != 0L ){\n\t\t\t\tint index = digitsList.indexOf((int)(nRemainder % 10));\n\t\t\t\tif (index != -1){\n\t\t\t\t\tdigitsList.remove(index);\n\t\t\t\t}\n\t\t\t\tnRemainder = nRemainder / 10;\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\tif(digitsList.isEmpty()){\n\t\t\treturn Long.toString(n*(i-1));\n\t\t}\n\t\treturn \"INSOMNIA\";\n\t}", "@Test\n public void testTakeNumberFromString224() { // FlairImage: 224\n assertEquals(\"From: FlairImage line: 225\", 123, takeNumberFromString(\"123\")); \n assertEquals(\"From: FlairImage line: 226\", 0, takeNumberFromString(\"123a\")); \n assertEquals(\"From: FlairImage line: 227\", -123, takeNumberFromString(\"-123\")); \n assertEquals(\"From: FlairImage line: 228\", 0, takeNumberFromString(\"--123\")); \n assertEquals(\"From: FlairImage line: 229\", 0, takeNumberFromString(\"pz4\")); \n }", "private static int m1645a(CharSequence charSequence) {\n return new C0510a(charSequence, false).mo4451d();\n }", "public String get_integer_part();", "public int mo36g() {\n return 2;\n }", "java.lang.String getS4();", "public int method_1143(int var1) {\r\n return this.height / 4 + 0 + (24 * var1 - 24) + this.field_987;\r\n }", "private static C10387b m26008a(String str) {\n String str2;\n int i;\n if (str == null) {\n return null;\n }\n int indexOf = str.indexOf(44);\n if (indexOf >= 0) {\n str2 = str.substring(0, indexOf);\n i = indexOf + 1;\n } else {\n str2 = \"\";\n i = 0;\n }\n int indexOf2 = str.indexOf(47, i);\n String str3 = \"LogSamplerImpl\";\n if (indexOf2 <= 0) {\n String str4 = \"Failed to parse the rule: \";\n String valueOf = String.valueOf(str);\n Log.e(str3, valueOf.length() != 0 ? str4.concat(valueOf) : new String(str4));\n return null;\n }\n try {\n long parseLong = Long.parseLong(str.substring(i, indexOf2));\n long parseLong2 = Long.parseLong(str.substring(indexOf2 + 1));\n if (parseLong < 0 || parseLong2 < 0) {\n StringBuilder sb = new StringBuilder(72);\n sb.append(\"negative values not supported: \");\n sb.append(parseLong);\n sb.append(Constants.URL_PATH_DELIMITER);\n sb.append(parseLong2);\n Log.e(str3, sb.toString());\n return null;\n }\n C10388a h = C10387b.m26478h();\n h.mo28112a(str2);\n h.mo28111a(parseLong);\n h.mo28113b(parseLong2);\n return (C10387b) h.mo27817c();\n } catch (NumberFormatException e) {\n String str5 = \"parseLong() failed while parsing: \";\n String valueOf2 = String.valueOf(str);\n Log.e(str3, valueOf2.length() != 0 ? str5.concat(valueOf2) : new String(str5), e);\n return null;\n }\n }", "public static void main(String[] args) throws Exception {\n String s;\n// s = \"0000000000000\";\n s = \"000000-123456\";\n// s = \"000000123456\";\n if (s.matches(\"^0+$\")) {\n s = \"0\";\n }else{\n s = s.replaceFirst(\"^0+\",\"\");\n }\n System.out.println(s);\n\n\n// System.out.println(StringUtils.addRight(s,'A',mod));\n// String s = \"ECPay thong bao: Tien dien T11/2015 cua Ma KH PD13000122876, la 389.523VND. Truy cap www.ecpay.vn hoac lien he 1900561230 de biet them chi tiet.\";\n// Pattern pattern = Pattern.compile(\"^(.+)[ ](\\\\d+([.]\\\\d+)*)+VND[.](.+)$\");\n// Matcher matcher = pattern.matcher(s);\n// if(matcher.find()){\n// System.out.println(matcher.group(2));\n// }\n }", "private static void getPatterns(int size) {\n\t\t// TODO Auto-generated method stub\n\t\thashOne = new HashMap<SequencePair,Integer>();\n\t\thashTwo = new HashMap<SequencePair,Integer>();\n\t\tArrayList<Integer> first;\n\t\tArrayList<Integer> second;\n\t\tArrayList<Integer> third;\n\t\t\n\t\t//System.out.println(lrcSeq.size());\n\t\t\n\t\tfor(int i = 0; i < lrcSeq.size() - size ;++i) {\n\t\t\tfirst = new ArrayList<Integer>();\n\t\t\tsecond = new ArrayList<Integer>();\n\t\t\tthird = new ArrayList<Integer>();\n\t\t\t\n\t\t\tfor(int j = i; j < i+ size ;++j) {\n\t\t\t\tfirst.add(lrcSeq.get(j));\n\t\t\t\tsecond.add(meloSeq.get(j));\n\t\t\t\tthird.add(durSeq.get(j));\n\t\t\t}\n\t\t\t//System.out.println(first);\n\t\t\t//System.out.println(second);\n\t\t\t//System.out.println(third);\n\t\t\tSequencePair cur= new SequencePair(first, second);\n\t\t\n\t\t\tint count = hashOne.containsKey(cur)?hashOne.get(cur):0;\n\t\t\thashOne.put(cur, count+1);\n\t\t\t\n\t\t\tcur = new SequencePair(second, third);\n\t\t\tcount = hashTwo.containsKey(cur)?hashTwo.get(cur):0;\n\t\t\thashTwo.put(cur, count+1);\n\t\t\n\t\t}\n\t\n\t}", "public String designPN(String nr)\r\n {\r\n String newStr=\"(\";\r\n if(nr.length()!=10){return null;}\r\n else\r\n {\r\n newStr=newStr+nr.substring(0,4)+\")-\";\r\n // System.out.println(\"phase 1 \"+ newStr);\r\n newStr=newStr+nr.substring(4,7)+\"-\";\r\n // System.out.println(\"phase 2 \"+ newStr);\r\n newStr=newStr+nr.substring(7,10);\r\n // System.out.println(\"phase 3 \"+ newStr);\r\n }\r\n return newStr;\r\n\r\n }", "public static void main (String[] args) throws java.lang.Exception\n\t{\n int T, N;\nScanner sc= new Scanner(System.in);\n T=sc.nextInt();\n for(int i=0;i<T;i++)\n {\n N=sc.nextInt();\n int K=N;\n String str=N+\"\";\n if(N==0)\n {\n System.out.println(\"Case #\"+(i+1)+\": INSOMNIA\");\n continue;\n }\n while(true)\n {\n if(str.contains(\"0\") && str.contains(\"1\") && str.contains(\"2\") && str.contains(\"3\") &&str.contains(\"4\")\n && str.contains(\"5\") &&str.contains(\"6\") &&str.contains(\"7\") && str.contains(\"8\") &&str.contains(\"9\"))\n {\n System.out.println(\"Case #\"+(i+1)+\": \"+N);\n break;\n }\n else\n {\n N+=K;\n str+=N;\n } \n }\n\t}\n}", "private int e(String paramString, int paramInt)\r\n/* 628: */ {\r\n/* 629:624 */ int i1 = paramString.length();\r\n/* 630:625 */ int i2 = 0;\r\n/* 631:626 */ int i3 = 0;\r\n/* 632:627 */ int i4 = -1;\r\n/* 633:628 */ int i5 = 0;\r\n/* 634:631 */ for (; i3 < i1; i3++)\r\n/* 635: */ {\r\n/* 636:632 */ char c1 = paramString.charAt(i3);\r\n/* 637:634 */ switch (c1)\r\n/* 638: */ {\r\n/* 639: */ case '§': \r\n/* 640:636 */ if (i3 < i1 - 1)\r\n/* 641: */ {\r\n/* 642:637 */ char c2 = paramString.charAt(++i3);\r\n/* 643:638 */ if ((c2 == 'l') || (c2 == 'L')) {\r\n/* 644:639 */ i5 = 1;\r\n/* 645:640 */ } else if ((c2 == 'r') || (c2 == 'R') || (c(c2))) {\r\n/* 646:641 */ i5 = 0;\r\n/* 647: */ }\r\n/* 648: */ }\r\n/* 649:643 */ break;\r\n/* 650: */ case '\\n': \r\n/* 651:646 */ i3--;\r\n/* 652:647 */ break;\r\n/* 653: */ case ' ': \r\n/* 654:649 */ i4 = i3;\r\n/* 655: */ default: \r\n/* 656:651 */ i2 += a(c1);\r\n/* 657:652 */ if (i5 != 0) {\r\n/* 658:653 */ i2++;\r\n/* 659: */ }\r\n/* 660: */ break;\r\n/* 661: */ }\r\n/* 662:657 */ if (c1 == '\\n')\r\n/* 663: */ {\r\n/* 664:658 */ i3++;i4 = i3;\r\n/* 665: */ }\r\n/* 666: */ else\r\n/* 667: */ {\r\n/* 668:662 */ if (i2 > paramInt) {\r\n/* 669: */ break;\r\n/* 670: */ }\r\n/* 671: */ }\r\n/* 672: */ }\r\n/* 673:667 */ if ((i3 != i1) && (i4 != -1) && (i4 < i3)) {\r\n/* 674:668 */ return i4;\r\n/* 675: */ }\r\n/* 676:670 */ return i3;\r\n/* 677: */ }", "public static String solution() {\r\n\t\treturn \"73162890\";\r\n\t}", "public static int Num1(int num1,int num2,int num4){\r\n\t\t //System.out.println(num1-num2);\r\n\t\t return num1-num2-num4;\r\n\t\t \r\n\t\t \r\n\t }", "@Override\r\n\tprotected Integer deriveLower() {\r\n\t return 0;\r\n\t}", "public static void main(String[] args) {\nScanner sc=new Scanner(System.in);\r\nString input1=sc.nextLine();\r\ninput1=input1.toLowerCase();\r\nint l=input1.length();\r\nchar a[]=input1.toCharArray();\r\nint d[]=new int[1000];\r\nString str=\"\";\r\nint i=0,k1=0,k2=0,m=0,c1=0,c2=0,c3=0,l1=0,u=0,u1=0;\r\nchar b[]={'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};\r\nfor(i=0;i<l;i++)\r\n{ c3=0;\r\n\tif(a[i]==' ')\r\n\t{u=i;c3=0;\r\n\t\tfor(k1=u1,k2=i-1;k1<k2 && k2>k1;k1++,k2--)\r\n\t\t{ c1=0;c2=0;\r\n\t\t\tfor(m=0;m<26;m++)\r\n\t\t\t{\r\n\t\t\t\tif(b[m]==a[k1]) {\r\n\t\t\t\tc1=m+1;}\t\r\n\t\t\t\tif(b[m]==a[k2]) {\r\n\t\t\t\t\tc2=m+1;}\t\r\n\t\t\t}\r\n\t\t\tc3=c3+Math.abs(c1-c2);\r\n\t\t}\r\n\t\tif(k1==k2) {\r\n\t\t\tfor(m=0;m<26;m++) {\r\n\t\t\t\tif(b[m]==a[k1])\r\n\t\t\t\t\tc3=c3+(m+1);\r\n\t\t\t }\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\td[l1]=c3;\r\n\t\tl1++;\r\n\t\tu1=i+1;\r\n\t\tc3=0;\r\n\t}\r\n\tif(i==l-1)\r\n\t{\r\n\t\tfor(k1=u+1,k2=i;k1<k2 && k2>k1;k1++,k2--)\r\n\t\t{ c1=0;c2=0;\r\n\t\t\tfor(m=0;m<26;m++)\r\n\t\t\t{\r\n\t\t\t\tif(b[m]==a[k1]) {\r\n\t\t\t\tc1=m+1;}\t\r\n\t\t\t\tif(b[m]==a[k2]) {\r\n\t\t\t\t\tc2=m+1;}\t\r\n\t\t\t}\r\n\t\t\tc3=c3+Math.abs(c1-c2);\r\n\t\t}\r\n\t\tif(k1==k2) {\r\n\t\t\tfor(m=0;m<26;m++) {\r\n\t\t\t\tif(b[m]==a[k1])\r\n\t\t\t\t\tc3=c3+(m+1);\r\n\t\t\t }\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\td[l1]=c3;\r\n\t\tl1++;\r\n\t\tk1=i+1;\r\n\t}\r\n}\r\n\r\n for(i=0;i<l1;i++)\r\n {\r\n\t str=str+Integer.toString(d[i]);\r\n }\r\n int ans=Integer.parseInt(str);\r\n System.out.print(ans);\r\n}", "public static void main(String[] args) {\n String idNum = \"410326880818551\";\n System.out.println(verify15(idNum));\n// String idNum2 = \"411111198808185510\";\n String idNum2 = \"410326198808185515\";\n System.out.println(verify(idNum2));\n }", "private int fourOfaKind() {\n\t\tif (hand[1].getValueIndex() == hand[2].getValueIndex() && hand[2].getValueIndex() == hand[3].getValueIndex()) {\n\t\t\tif (hand[0].getValueIndex() == hand[1].getValueIndex()\n\t\t\t\t\t|| hand[4].getValueIndex() == hand[3].getValueIndex()) {\n\t\t\t\tresult.setPrimaryValuePos(hand[3].getValueIndex());\n\t\t\t\t\n\t\t\t\tif( result.getPrimaryValuePos() == hand[4].getValueIndex()) {\n\t\t\t\t\tresult.setSecondaryValuePos(hand[0].getValueIndex());\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tresult.setSecondaryValuePos(hand[4].getValueIndex());\n\t\t\t\t}\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\treturn 0;\n\t\t} else {\n\t\t\treturn 0;\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tString s1 = \"234\";\n\t\tint fd = 0;\n\t\tint fd1 = 0;\n\t\tint fd2 = 1;\n\t\tfor (int df = s1.length() - 1; df >= 0; df--) {\n\t\t\tString firstLetter7 = String.valueOf(s1.charAt(df));\n\t\t\tif (firstLetter7.equals(\"0\"))\n\t\t\t\tfd1 = 0;\n\t\t\telse if (firstLetter7.equals(\"1\"))\n\t\t\t\tfd1 = 1;\n\t\t\telse if (firstLetter7.equals(\"2\"))\n\t\t\t\tfd1 = 2;\n\t\t\telse if (firstLetter7.equals(\"3\"))\n\t\t\t\tfd1 = 3;\n\t\t\telse if (firstLetter7.equals(\"4\"))\n\t\t\t\tfd1 = 4;\n\t\t\telse if (firstLetter7.equals(\"5\"))\n\t\t\t\tfd1 = 5;\n\t\t\telse if (firstLetter7.equals(\"6\"))\n\t\t\t\tfd1 = 6;\n\t\t\telse if (firstLetter7.equals(\"7\"))\n\t\t\t\tfd1 = 7;\n\t\t\telse if (firstLetter7.equals(\"8\"))\n\t\t\t\tfd1 = 8;\n\t\t\telse if (firstLetter7.equals(\"9\"))\n\t\t\t\tfd1 = 9;\n\t\t\tfd = fd + fd2 * fd1;\n\t\t\tfd2 = fd2 * 10;\n\t\t}\n\t\tint a = fd - 1;\n\t\tfor (int i = a; i > 1; i--) {\n\t\t\tint qw = 0;\n\t\t\tint qw1 = i;\n\t\t\tString s2 = \"\";\n\t\t\twhile (qw1 > 0) {\n\t\t\t\tqw = qw1 % 10;\n\t\t\t\tif (qw == 0)\n\t\t\t\t\ts2 = \"0\" + s2;\n\t\t\t\telse if (qw == 1)\n\t\t\t\t\ts2 = \"1\" + s2;\n\t\t\t\telse if (qw == 2)\n\t\t\t\t\ts2 = \"2\" + s2;\n\t\t\t\telse if (qw == 3)\n\t\t\t\t\ts2 = \"3\" + s2;\n\t\t\t\telse if (qw == 4)\n\t\t\t\t\ts2 = \"4\" + s2;\n\t\t\t\telse if (qw == 5)\n\t\t\t\t\ts2 = \"5\" + s2;\n\t\t\t\telse if (qw == 6)\n\t\t\t\t\ts2 = \"6\" + s2;\n\t\t\t\telse if (qw == 7)\n\t\t\t\t\ts2 = \"7\" + s2;\n\t\t\t\telse if (qw == 8)\n\t\t\t\t\ts2 = \"8\" + s2;\n\t\t\t\telse if (qw == 9)\n\t\t\t\t\ts2 = \"9\" + s2;\n\t\t\t\tqw1 = qw1 / 10;\n\t\t\t}\n\t\t\tSystem.out.println(s1);\n\t\t\tSystem.out.println(s2);\n\t\t\tExp11 ur = new Exp11();\n\t\t\ts1 = ur.emp11(s1, s2);\n\t\t}\n\t\tSystem.out.println(s1);\n\t}", "private void check4(){\n \n if (errorCode == 0){\n int sum = 0;\n \n for(int i = 0; i < number.length();){\n sum += Integer.parseInt(number.substring(i, ++i));\n }\n \n if (sum % 4 != 0){\n valid = false;\n errorCode = 4;\n }\n }\n\t}", "public static void main(String[] args) {\npat(16);\r\nint a[]= {2,0,2};\r\nSystem.out.println(fillthewater(a));\r\npascalstri(6);\r\n\t}", "@Override\n public int getCaseNumber() {\n return IDNum;\n }", "short digits();", "public int pid_0101(String str) \n {\n \n int num_of_TC; \n char ON_OFF; \n String first_byte;\n first_byte=new String(str.substring(0,1));\n MathLib operations= new MathLib(); \n ON_OFF=operations.HexToBin(first_byte).charAt(0);//Bit 0\n if (ON_OFF=='1')//Then the lamp is ON\n {\n double d = Double.valueOf(operations.calculatorXF(str,\"AA\",\"A-128\"));\n num_of_TC= (int)d;\n if (num_of_TC<0) num_of_TC=0;\n }\n else \n num_of_TC=0; \n \n return num_of_TC;\n }", "private static String digits(long val, int digits) {\n\tlong hi = 1L << (digits * 4);\n\treturn Long.toHexString(hi | (val & (hi - 1))).substring(1);\n }", "static int twoCharaters(String s) {\n\t\tList<String> list = Arrays.asList(s.split(\"\"));\n\t\tHashSet<String> uniqueValues = new HashSet<>(list);\n\t\tSystem.out.println(uniqueValues);\n\t\tString result;\n\t\twhile(check(list,1,list.get(0))) {\n\t\t\tresult = replace(list,1,list.get(0));\n\t\t\tif(result != null) {\n\t\t\t\tSystem.out.println(result);\n\t\t\t\ts = s.replaceAll(result,\"\");\n\t\t\t\tlist = Arrays.asList(s.split(\"\"));\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(s);\n\t\treturn 5;\n }", "public int distinctSubseqII(String S) {\n int[] end = new int[26]; // 本字符添加之前的长度\n int res = 0;\n int added; // 当前额外增加的数量\n int mod = (int) 1e9 + 7;\n\n System.out.println('\\n' + S);\n for (char c : S.toCharArray()) {\n // 额外增加的数量等于前面的数量加上1(当前字符串)减去最后一次相同字符添加之前的数量\n added = (res + 1 - end[c - 'a']) % mod;\n\n end[c - 'a'] = (res + 1) % mod; // 影响的为前一个字符的数量加上单字符的数量\n\n res = (res + added) % mod;\n System.out.printf(\"%2c, %2d, %2d\\n\", c, res, end[c - 'a']);\n }\n return (res + mod) % mod;\n }", "public String getdisplaycode1(){\r\n\t\t\r\n\t\tString displayCode = null;\r\n\t\tBigInteger found = transferDao.getTransferCode();\r\n\t\tString transferCodeNo = \"TR100000\";\r\n\t\tString transferNoList = \"TR\"+found;\r\n\t\t\r\n\t\tif(found != null){\r\n\t\t\t transferCodeNo = transferNoList; \t\r\n\t\t}\r\n\r\n\t String splitNo = transferCodeNo.substring(2);\r\n\t int num = Integer.parseInt(splitNo); \r\n\t num++; \r\n\t String number = Integer.toString(num); \r\n\t displayCode = transferCodeNo.substring(0, 2) + number;\r\n\t\treturn displayCode;\t\t\t\r\n\t}", "public void method_2486(ahl var1, int var2, int var3, int var4) {\r\n String[] var10000 = class_752.method_4253();\r\n int var6 = var1.method_33(var2, var3, var4);\r\n String[] var5 = var10000;\r\n if(method_2687(var6)) {\r\n label47: {\r\n label46: {\r\n label45: {\r\n label44: {\r\n label43: {\r\n label42: {\r\n float var7 = 0.25F;\r\n if(var5 != null) {\r\n switch(method_2686(var6)) {\r\n case 0:\r\n this.method_2443(0.0F, 0.25F, 0.0F, 1.0F, 1.0F, 1.0F);\r\n break;\r\n case 1:\r\n break label42;\r\n case 2:\r\n break label43;\r\n case 3:\r\n break label44;\r\n case 4:\r\n break label45;\r\n case 5:\r\n break label46;\r\n default:\r\n break label47;\r\n }\r\n }\r\n\r\n if(var5 != null) {\r\n break label47;\r\n }\r\n }\r\n\r\n this.method_2443(0.0F, 0.0F, 0.0F, 1.0F, 0.75F, 1.0F);\r\n if(var5 != null) {\r\n break label47;\r\n }\r\n }\r\n\r\n this.method_2443(0.0F, 0.0F, 0.25F, 1.0F, 1.0F, 1.0F);\r\n if(var5 != null) {\r\n break label47;\r\n }\r\n }\r\n\r\n this.method_2443(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 0.75F);\r\n if(var5 != null) {\r\n break label47;\r\n }\r\n }\r\n\r\n this.method_2443(0.25F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);\r\n if(var5 != null) {\r\n break label47;\r\n }\r\n }\r\n\r\n this.method_2443(0.0F, 0.0F, 0.0F, 0.75F, 1.0F, 1.0F);\r\n }\r\n\r\n if(var5 != null) {\r\n return;\r\n }\r\n }\r\n\r\n this.method_2443(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);\r\n }", "@Override\n\tpublic void challenge16() {\n\n\t}", "@Test\n public void calculationOnElevenDigitMsgIsCorrect() {\n final String msg = \"00110001110\";\n final int[] expectedMsg = {0,0,1,0, 1,0,1,1, 1,0,0,0, 1,1,1,0};\n\n // When\n int[] transformedMsg = HammingAlgorithm.calculate(msg);\n\n // Then\n assertThat(transformedMsg).isEqualTo(expectedMsg);\n }", "private static String digits(long val, int digits) {\n long hi = 1L << (digits * 4);\n return Long.toHexString(hi | (val & (hi - 1))).substring(1);\n }", "public static void main(String[] args) {\n List<Integer> res = sequentialDigits(744, 1928);\n }", "public static void computeSwitch() { \n\t\t// result[pos-off] += prod % 10;\n\t\tSystem.out.println (\"switch (prod) {\");\n\t\tfor (int i = 0; i < 100; i++) {\n\t\t\tSystem.out.print (\"case \" + i + \": \");\n\t\t\tif (i%10 != 0) {\n\t\t\t\tSystem.out.print (\"result[iPos] += \" + (i%10) + \";\");\n\t\t\t}\n\t\t\tif ((i / 10) != 0) {\n\t\t\t\tSystem.out.print (\"result[iPosSubOne] += \" + (i/10) + \";\");\n\t\t\t}\n\t\t\tSystem.out.println (\"break;\");\n\t\t}\n\t\tSystem.out.println (\"};\");\n\t\t\n\t\t// middle one\n//\t\tif (result[pos-off] > 9) { // carry internally\n//\t\t\tdo {\n//\t\t\t\tresult[pos-off] -= 10;\n//\t\t\t\tresult[pos-off-1]++;\n//\t\t\t} while (result[pos-off] > 9);\n//\t\t}\n\t\tSystem.out.println (\"switch (result[iPos]) {\");\n\t\tfor (int i = 0; i < 100; i++) {\n\t\t\tint tens = 10*(i/10);\n\t\t\tif (tens == 0) {\n\t\t\t\tSystem.out.println (\"case \" + i + \": break; \");\n\t\t\t} else {\n\t\t\t\tSystem.out.println (\"case \" + i + \": result[iPosSubOne] += \" + (i/10) + \"; result[iPos] -= \" + tens + \"; break; \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println (\"};\");\n\t\t\n\t\t\n\t\t\n\t}", "public void Case37(){\n\n }", "@Override\n public String getSolutionCombination(int nbrDigits, int nbrRange, String sizure) {\n\n // randomRange\n int[][] randomRange = new int[2][nbrDigits];\n\n for (int i = 0; i < 2; i++) {\n\n for (int j = 0; j < nbrDigits; j++) {\n\n if (i == 0) {\n\n // Min value limit\n randomRange[i][j] = 0;\n\n } else {\n\n // Max value limit\n randomRange[i][j] = nbrRange;\n\n }\n\n }\n\n }\n\n // inputmachine\n List<Integer> inputMachine = new ArrayList<Integer>();\n\n for (int i = 0; i < nbrDigits; i++) {\n\n inputMachine.add((int) ((randomRange[1][i] - randomRange[0][i]) * Math.random()) + randomRange[0][i]);\n\n log.info(\"test A : \" + inputMachine.get(i) + \" \");\n\n }\n\n // convertListIntegerToString\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < inputMachine.size(); i++) {\n int num = inputMachine.get(i);\n sb.append(num);\n }\n\n return sb.toString();\n\n }", "protected String int2singlealphaCount(long val, CharArrayWrapper table)\n {\n\n int radix = table.getLength();\n\n // TODO: throw error on out of range input\n if (val > radix)\n {\n return getZeroString();\n }\n else\n return (new Character(table.getChar((int)val - 1))).toString(); // index into table is off one, starts at 0\n }", "public int[] solution(String S, int[] P, int[] Q) {\n \n int[][] result = new int[S.length()][4];\n int[] returnResult = new int[P.length];\n \n //how many different solutions exist?\n //'A' [0], [0] - 1 solution\n //'AG' [0, 0, 1], [0, 1, 1] - 3\n // 'AGT' [0,0,0,1,1,2], [0,1,1,2,2,2] - 6\n // 10\n // 15\n // 21\n \n //Prefix Sum - calculation\n \n for (int i = 1; i< S.length()+1; i++){\n \n if (i == 1){\n switch (S.substring(i-1, i)){\n case \"A\": result[i-1][0] = 1;\n break;\n case \"C\": result[i-1][1] = 1;\n break;\n case \"G\": result[i-1][2] = 1;\n break;\n case \"T\": result[i-1][3] = 1;\n break;\n }\n }else{\n int a = 0;\n switch (S.substring(i-1, i)){\n case \"A\": a = 0;\n break;\n case \"C\": a= 1;\n break;\n case \"G\": a =2;\n break;\n case \"T\": a =3;\n break;\n }\n result[i-1][a] = 1 + result[i-2][a];\n result[i-1][(a+1)%4] = result[i-2][(a+1)%4];\n result[i-1][(a+2)%4] = result[i-2][(a+2)%4];\n result[i-1][(a+3)%4] = result[i-2][(a+3)%4];\n }\n\n }\n \n /*\n for (double i : result){\n System.out.println(i);\n }\n */\n \n //A = 1, G = 2, C = 3, T = 4\n //when A found return 1 and move to next computation.\n // P[k] <= Q[K]\n int lowerBound = 0;\n int upperBound = 0;\n for (int i = 0; i < P.length; i++){\n lowerBound = P[i];\n upperBound = Q[i];\n \n int[] toEvaluate = new int[4];\n\n //System.out.println(lowerBound);\n if (lowerBound == 0){\n toEvaluate[0]= result[upperBound][0];\n toEvaluate[1]= result[upperBound][1];\n toEvaluate[2]= result[upperBound][2];\n toEvaluate[3]= result[upperBound][3];\n }else{\n toEvaluate[0]= result[upperBound][0] - result[lowerBound-1][0]; \n toEvaluate[1]= result[upperBound][1] - result[lowerBound-1][1];\n toEvaluate[2]= result[upperBound][2] - result[lowerBound-1][2];\n toEvaluate[3]= result[upperBound][3] - result[lowerBound-1][3];\n }\n \n /*\n for (int eval : toEvaluate){\n System.out.println(eval);\n \n }\n */\n if (toEvaluate[0] > 0) {returnResult[i] = 1;\n }else if (toEvaluate[1] > 0) {returnResult[i] = 2;\n }else if (toEvaluate[2] > 0) {returnResult[i] = 3;\n }else if (toEvaluate[3] > 0) {returnResult[i] = 4;\n }\n \n }\n \n return returnResult; \n }", "private int m3423z(int i, int i2) {\n int i3;\n int i4;\n for (int size = this.f4373c.size() - 1; size >= 0; size--) {\n C0933b bVar = this.f4373c.get(size);\n int i5 = bVar.f4379a;\n if (i5 == 8) {\n int i6 = bVar.f4380b;\n int i7 = bVar.f4382d;\n if (i6 < i7) {\n i4 = i6;\n i3 = i7;\n } else {\n i3 = i6;\n i4 = i7;\n }\n if (i < i4 || i > i3) {\n if (i < i6) {\n if (i2 == 1) {\n bVar.f4380b = i6 + 1;\n bVar.f4382d = i7 + 1;\n } else if (i2 == 2) {\n bVar.f4380b = i6 - 1;\n bVar.f4382d = i7 - 1;\n }\n }\n } else if (i4 == i6) {\n if (i2 == 1) {\n bVar.f4382d = i7 + 1;\n } else if (i2 == 2) {\n bVar.f4382d = i7 - 1;\n }\n i++;\n } else {\n if (i2 == 1) {\n bVar.f4380b = i6 + 1;\n } else if (i2 == 2) {\n bVar.f4380b = i6 - 1;\n }\n i--;\n }\n } else {\n int i8 = bVar.f4380b;\n if (i8 <= i) {\n if (i5 == 1) {\n i -= bVar.f4382d;\n } else if (i5 == 2) {\n i += bVar.f4382d;\n }\n } else if (i2 == 1) {\n bVar.f4380b = i8 + 1;\n } else if (i2 == 2) {\n bVar.f4380b = i8 - 1;\n }\n }\n }\n for (int size2 = this.f4373c.size() - 1; size2 >= 0; size2--) {\n C0933b bVar2 = this.f4373c.get(size2);\n if (bVar2.f4379a == 8) {\n int i9 = bVar2.f4382d;\n if (i9 == bVar2.f4380b || i9 < 0) {\n this.f4373c.remove(size2);\n mo7620a(bVar2);\n }\n } else if (bVar2.f4382d <= 0) {\n this.f4373c.remove(size2);\n mo7620a(bVar2);\n }\n }\n return i;\n }", "void circulardecode()\n{\nfor(i=0;i<s.length();i++)\n{\nc=s.charAt(i);\nk=(int)c;\nif(k==90)\nk1=65;\nelse\nif(k==122)\nk1=97;\nelse\nk1=k+1;\nc1=caseconverter(k,k1);\nSystem.out.print(c1);\n}\n}", "public final C14224b mo44333a(String str) {\n C14224b bVar = this;\n for (char valueOf : str.toCharArray()) {\n Character valueOf2 = Character.valueOf(valueOf);\n C14224b a = bVar.mo44332a(valueOf2, true);\n if (a == null) {\n a = new C14224b(bVar.f43133a + 1);\n bVar.f43135c.put(valueOf2, a);\n }\n bVar = a;\n }\n return bVar;\n }", "public int getIsoCase() {\n boolean shortCase=(this.lc<256)&&(this.le<256);\n\n if (this.lc <= 0) { // there is no data & no Lc\n if (this.le < 0) // there is no length expected\n return CASE_1;\n else // there is a length expected\n return (shortCase ? CASE_2S : CASE_2E);\n } \n else { // there is data & hence Lc\n if (this.le < 0) // there is no length expected\n return (shortCase ? CASE_3S : CASE_3E);\n else // there is a length expected\n return (shortCase ? CASE_4S : CASE_4E);\n }\n }", "public String get(){\n\t\tString s = value%13+1+\"\"+suits[value/13]+\" \";\r\n\t\treturn s;\r\n\t}", "@Test(timeout = 4000)\n public void test33() throws Throwable {\n String string0 = EWrapperMsgGenerator.fundamentalData((-1622103582), \"convertible = \");\n assertEquals(\"id = -1622103582 len = 14\\nconvertible = \", string0);\n }", "public C3244x1 mo12668c(String str) {\n C3244x1 x1Var = new C3244x1();\n String lowerCase = str.trim().toLowerCase();\n String str2 = lowerCase;\n for (String replace : f11727c) {\n str2 = str2.replace(replace, \"\");\n }\n try {\n if (str2.length() > 512) {\n str2 = str2.substring(0, C0753l.f3451u);\n StringBuilder sb = new StringBuilder();\n sb.append(str2);\n sb.append(\"... exceeds the limit of \");\n sb.append(512);\n sb.append(\" chars. Trimmed\");\n x1Var.mo12658a(sb.toString());\n x1Var.mo12656a(521);\n }\n } catch (Exception unused) {\n }\n x1Var.mo12657a((Object) str2);\n return x1Var;\n }", "public static void main(String[] args) {\n\t\tString record =\"px123,kingstone,340,1|3|4|1\";\n\t\tString record1 =\"px125,electronics,storege,pendrive,kingstone,340,1|3|4|1\";\n\t\tString record2 =\"px125,electronics,storege,pendrive,kingstone,340\";\n\t\tString what = \"\\\\d+,(\\\\d\\\\|*)+$\";\n\t\tPattern p=Pattern.compile(what);\n\t\tMatcher m=p.matcher(record);\n\t\tif(m.find())\n\t\t{\n\t\t\tSystem.out.println(\"correct\");\n\t\t\tString str[]=m.group().split(\",\");\n\t\t\tSystem.out.println(str[1]);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"wrong\");\n\t\t}\n\t\t\n\t}", "private final java.lang.Integer m22166b(java.lang.String r5) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r4 = this;\n r0 = java.lang.Integer.parseInt(r5);\t Catch:{ NumberFormatException -> 0x0009 }\n r0 = java.lang.Integer.valueOf(r0);\t Catch:{ NumberFormatException -> 0x0009 }\n return r0;\n L_0x0009:\n r0 = \"PhenotypeFlag\";\n r1 = r4.a;\n r2 = java.lang.String.valueOf(r1);\n r2 = r2.length();\n r2 = r2 + 28;\n r3 = java.lang.String.valueOf(r5);\n r3 = r3.length();\n r2 = r2 + r3;\n r3 = new java.lang.StringBuilder;\n r3.<init>(r2);\n r2 = \"Invalid integer value for \";\n r3.append(r2);\n r3.append(r1);\n r1 = \": \";\n r3.append(r1);\n r3.append(r5);\n r5 = r3.toString();\n android.util.Log.e(r0, r5);\n r5 = 0;\n return r5;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.measurement.ai.b(java.lang.String):java.lang.Integer\");\n }", "@Override\n public String solve() {\n int LIMIT = 50 * NumericHelper.ONE_MILLION_INT;\n int[] nCount = new int[LIMIT+1];\n for(long y = 1; y<= LIMIT; y++) {\n for(long d= (y+3)/4; d<y; d++) { // +3 is to make d atleast 1\n long xSq = (y+d) * (y+d);\n long ySq = y * y;\n long zSq = (y-d) * (y-d);\n\n long n = xSq - ySq - zSq;\n\n if(n<0) {\n continue;\n }\n\n if(n>=LIMIT) {\n break;\n }\n\n\n nCount[(int)n]++;\n\n }\n }\n\n int ans = 0;\n for(int i = 1; i<LIMIT; i++) {\n if(nCount[i] == 1) {\n //System.out.print(i +\",\");\n ans++;\n }\n }\n\n return Integer.toString(ans);\n }", "public static void main(String args[] ) throws Exception {\n\n\t\tScanner in = new Scanner(System.in);\n\t\tint i,l,j,t = in.nextInt();\n\t\t\n\t\tint caseNo = 0;\n\t\twhile(t!=0) {\n\t\t\tcaseNo++;\n\t\t\tString num = in.next();\n\t\t\tchar []firstNum = new char[num.length()];\n\t\t\tchar []secondNum = new char[num.length()];\n\t\t\tfor(i=0;i<num.length();i++){\n\t\t\t\tfirstNum[i] = num.charAt(i);\n\t\t\t\tsecondNum[i] = '0';\n\t\t\t}\n\t\t\tfor(i=0;i<num.length();i++){\n\t\t\t\tif(firstNum[i] == '4'){\n\t\t\t\t\tfirstNum[i] = '3';\n\t\t\t\t\tsecondNum[i] = '1';\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.print(\"Case #\" + caseNo + \": \" );\n\t\t\tfor(i=0;i<num.length();i++){\n\t\t\t\tSystem.out.print(firstNum[i]);\n\t\t\t}\n\t\t\tSystem.out.print(\" \");\n\t\t\tint found = 0;\n\t\t\tfor(i=0;i<num.length();i++){\n\t\t\t\tif(secondNum[i] == '0' && found == 0)\n\t\t\t\t\tcontinue;\n\t\t\t\tfound =1;\n\t\t\t\tSystem.out.print(secondNum[i]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tt--;\n\t\t}\n\t}", "private String number() {\n switch (this.value) {\n case 1:\n return \"A\";\n case 11:\n return \"J\";\n case 12:\n return \"Q\";\n case 13:\n return \"K\";\n default:\n return Integer.toString(getValue());\n }\n }", "private void check5(){\n \n if (errorCode == 0){\n \n int firstSum = 0;\n int lastSum = 0;\n String firstFour = number.substring(0,4);\n String lastFour = number.substring(8,12);\n \n for(int i = 0; i < firstFour.length();){\n firstSum += Integer.parseInt(firstFour.substring(i, ++i));\n }\n \n for(int i = 0; i < lastFour.length();){\n lastSum += Integer.parseInt(lastFour.substring(i, ++i));\n }\n \n if (!(firstSum == lastSum - 1)){\n valid = false;\n errorCode = 5;\n }\n }\n\t}", "public int a(String paramString)\r\n/* 454: */ {\r\n/* 455:451 */ if (paramString == null) {\r\n/* 456:452 */ return 0;\r\n/* 457: */ }\r\n/* 458:454 */ int i1 = 0;\r\n/* 459:455 */ int i2 = 0;\r\n/* 460:457 */ for (int i3 = 0; i3 < paramString.length(); i3++)\r\n/* 461: */ {\r\n/* 462:458 */ char c1 = paramString.charAt(i3);\r\n/* 463: */ \r\n/* 464:460 */ int i4 = a(c1);\r\n/* 465:461 */ if ((i4 < 0) && (i3 < paramString.length() - 1))\r\n/* 466: */ {\r\n/* 467:462 */ c1 = paramString.charAt(++i3);\r\n/* 468:464 */ if ((c1 == 'l') || (c1 == 'L')) {\r\n/* 469:465 */ i2 = 1;\r\n/* 470:466 */ } else if ((c1 == 'r') || (c1 == 'R')) {\r\n/* 471:467 */ i2 = 0;\r\n/* 472: */ }\r\n/* 473:469 */ i4 = 0;\r\n/* 474: */ }\r\n/* 475:471 */ i1 += i4;\r\n/* 476:472 */ if ((i2 != 0) && (i4 > 0)) {\r\n/* 477:473 */ i1++;\r\n/* 478: */ }\r\n/* 479: */ }\r\n/* 480:477 */ return i1;\r\n/* 481: */ }", "int mo54441g(int i);", "@Test\n public void testSeparateNumber131() { // FlairImage: 131\n java.util.concurrent.atomic.AtomicBoolean totuus = new java.util.concurrent.atomic.AtomicBoolean(false); \n StringBuilder testi = new StringBuilder(); \n assertEquals(\"From: FlairImage line: 135\", 0, separateNumber(testi,'-',totuus)); \n totuus.set(false); \n testi = new StringBuilder(\"123-asdasd\"); \n assertEquals(\"From: FlairImage line: 139\", 123, separateNumber(testi,'-',totuus)); \n assertEquals(\"From: FlairImage line: 140\", \"asdasd\", testi.toString()); \n assertEquals(\"From: FlairImage line: 141\", true, totuus.get()); \n totuus.set(false); \n testi = new StringBuilder(\"123-asdasd-muumi\"); \n assertEquals(\"From: FlairImage line: 145\", 123, separateNumber(testi,'-',totuus)); \n assertEquals(\"From: FlairImage line: 146\", \"asdasd-muumi\", testi.toString()); \n assertEquals(\"From: FlairImage line: 147\", true, totuus.get()); \n totuus.set(false); \n testi = new StringBuilder(\"asd-asdasd-muumi\"); \n assertEquals(\"From: FlairImage line: 151\", 0, separateNumber(testi,'-',totuus)); \n assertEquals(\"From: FlairImage line: 152\", \"asd-asdasd-muumi\", testi.toString()); \n assertEquals(\"From: FlairImage line: 153\", false, totuus.get()); \n totuus.set(false); \n testi = new StringBuilder(\"asd-asdasd-123\"); \n assertEquals(\"From: FlairImage line: 157\", 123, separateNumber(testi,'-',totuus)); \n assertEquals(\"From: FlairImage line: 158\", \"asd-asdasd-123\", testi.toString()); \n assertEquals(\"From: FlairImage line: 159\", false, totuus.get()); \n totuus.set(false); \n testi = new StringBuilder(\"asd-123-muumi\"); \n assertEquals(\"From: FlairImage line: 163\", 0, separateNumber(testi,'-',totuus)); \n assertEquals(\"From: FlairImage line: 164\", \"asd-123-muumi\", testi.toString()); \n assertEquals(\"From: FlairImage line: 165\", false, totuus.get()); \n }", "@Override\n\tpublic void challenge17() {\n\n\t}", "C20254v mo54454s(int i);", "public int mo3356c() {\n return 0;\n }", "@Test\n public void testFindOrientedPairs() {\n System.out.println(\"findOrientedPairs\");\n \n CCGeneticDrift instance = new CCGeneticDrift();\n String input = \"6 3 1 6 5 -2 4\";\n List<Integer> numbers = instance.inputStringToIntegerList(input);\n String expResult = \"[1 -2, 3 -2]\";\n List result = instance.findOrientedPairs(numbers);\n assertEquals(result.toString(), expResult);\n assertEquals(result.size(), 2);\n }", "private static void evaluateCase() {\n try {\n int n = SYS_IN.nextInt();\n int m = SYS_IN.nextInt();\n SYS_IN.nextLine();\n int mn = Integer.MAX_VALUE;\n long sum = 0L;\n int num;\n int sign = 1;\n for (int ni = 0; ni < n; ni++) {\n for (int mi = 0; mi < m; mi++) {\n num = SYS_IN.nextInt();\n if (num < 0) {\n sign *= -1;\n num = -num;\n }\n sum += num;\n mn = Math.min(mn, num);\n }\n SYS_IN.nextLine();\n }\n if (sign == -1) {\n sum -= 2 * mn;\n }\n System.out.println(sum);\n } catch (Exception e) {}\n }", "public boolean judgePoint241(int[] nums) {\n double n1 = nums[0];\n double n2 = nums[1];\n double n3 = nums[2];\n double n4 = nums[3];\n //case1:\n if(Math.abs(n1-8)<=0.01&&Math.abs(n2-4)<=0.01){\n int a = 1;\n }\n if(combine(combine(n1,n2),combine(n3,n4)))return true;\n //case2:\n for(double d:combine(n2,n3)){\n if(contains(combine(n1,d,n4),24.0)){\n return true;\n };\n }\n //case3:\n for(double d:combine(n1,n2,n3)){\n if(contains(combine(d,n4),24.0))return true;\n }\n //case4:\n for(double d:combine(n2,n3,n4)){\n if(contains(combine(n1,d),24.0))return true;\n }\n return false;\n }", "static int check4(int r, int c) {\r\n\t\tint result = 0;\r\n\t\tString local = \"\";\r\n\t\t// case1\r\n\t\tif (A[r][0] == 1 && A[r][1] == 1 && A[r][2] == 1 && A[r][3] == 1) {\r\n\t\t\tif (r == 0) {\r\n\t\t\t\tlocal = \"A'B'\";\r\n\t\t\t}\r\n\t\t\tif (r == 1) {\r\n\t\t\t\tlocal = \"A'B\";\r\n\t\t\t}\r\n\t\t\tif (r == 2) {\r\n\t\t\t\tlocal = \"AB\";\r\n\t\t\t}\r\n\t\t\tif (r == 3) {\r\n\t\t\t\tlocal = \"AB'\";\r\n\t\t\t}\r\n\t\t\toutput = output + \"+\" + local;\r\n\t\t\tresult = 1;\r\n\t\t\t// make checked\r\n\t\t\tchecked[r][0] = 1;\r\n\t\t\tchecked[r][1] = 1;\r\n\t\t\tchecked[r][2] = 1;\r\n\t\t\tchecked[r][3] = 1;\r\n\t\t} else\r\n\t\t// case2\r\n\t\tif (A[0][c] == 1 && A[1][c] == 1 && A[2][c] == 1 && A[3][c] == 1) {\r\n\t\t\tif (c == 0) {\r\n\t\t\t\tlocal = \"C'D'\";\r\n\t\t\t}\r\n\t\t\tif (c == 1) {\r\n\t\t\t\tlocal = \"C'D\";\r\n\t\t\t}\r\n\t\t\tif (c == 2) {\r\n\t\t\t\tlocal = \"CD\";\r\n\t\t\t}\r\n\t\t\tif (c == 3) {\r\n\t\t\t\tlocal = \"CD'\";\r\n\r\n\t\t\t}\r\n\t\t\toutput = output + \"+\" + local;\r\n\t\t\tresult = 1;\r\n\t\t\t// make checked\r\n\t\t\tchecked[0][c] = 1;\r\n\t\t\tchecked[1][c] = 1;\r\n\t\t\tchecked[2][c] = 1;\r\n\t\t\tchecked[3][c] = 1;\r\n\t\t} else\r\n\t\t// case3 row+ col+\r\n\t\tif (A[r][c] == 1 && A[r][(c + 1) % 4] == 1 && A[(r + 1) % 4][c] == 1 && A[(r + 1) % 4][(c + 1) % 4] == 1) {\r\n\t\t\tif (r == 0) {\r\n\t\t\t\tlocal = \"A'\";\r\n\t\t\t}\r\n\t\t\tif (r == 1) {\r\n\t\t\t\tlocal = \"B\";\r\n\t\t\t}\r\n\t\t\tif (r == 2) {\r\n\t\t\t\tlocal = \"A\";\r\n\t\t\t}\r\n\t\t\tif (r == 3) {\r\n\t\t\t\tlocal = \"B'\";\r\n\t\t\t}\r\n\t\t\tif (c == 0) {\r\n\t\t\t\tlocal = local + \"C'\";\r\n\t\t\t}\r\n\t\t\tif (c == 1) {\r\n\t\t\t\tlocal = local + \"D\";\r\n\t\t\t}\r\n\t\t\tif (c == 2) {\r\n\t\t\t\tlocal = local + \"C\";\r\n\t\t\t}\r\n\t\t\tif (c == 3) {\r\n\t\t\t\tlocal = local + \"D'\";\r\n\t\t\t}\r\n\t\t\toutput = output + \"+\" + local;\r\n\t\t\tresult = 1;\r\n\t\t\t// make checked\r\n\t\t\tchecked[r][c] = 1;\r\n\t\t\tchecked[r][(c + 1) % 4] = 1;\r\n\t\t\tchecked[(r + 1) % 4][c] = 1;\r\n\t\t\tchecked[(r + 1) % 4][(c + 1) % 4] = 1;\r\n\t\t} else\r\n\t\t// case4 row+ col--\r\n\t\tif (A[r][(4 + (c - 1)) % 4] == 1 && A[r][c] == 1 && A[(r + 1) % 4][(4 + (c - 1)) % 4] == 1\r\n\t\t\t\t&& A[(r + 1) % 4][c] == 1) {\r\n\t\t\tif (r == 0) {\r\n\t\t\t\tlocal = \"A'\";\r\n\t\t\t}\r\n\t\t\tif (r == 1) {\r\n\t\t\t\tlocal = \"B\";\r\n\t\t\t}\r\n\t\t\tif (r == 2) {\r\n\t\t\t\tlocal = \"A\";\r\n\t\t\t}\r\n\t\t\tif (r == 3) {\r\n\t\t\t\tlocal = \"B'\";\r\n\t\t\t}\r\n\t\t\tif (c == 0) {\r\n\t\t\t\tlocal = local + \"D'\";\r\n\t\t\t}\r\n\t\t\tif (c == 1) {\r\n\t\t\t\tlocal = local + \"C'\";\r\n\t\t\t}\r\n\t\t\tif (c == 2) {\r\n\t\t\t\tlocal = local + \"D\";\r\n\t\t\t}\r\n\t\t\tif (c == 3) {\r\n\t\t\t\tlocal = local + \"C'\";\r\n\t\t\t}\r\n\t\t\toutput = output + \"+\" + local;\r\n\t\t\tresult = 1;\r\n\t\t\t// make checked\r\n\t\t\tchecked[r][(4 + (c - 1)) % 4] = 1;\r\n\t\t\tchecked[r][c] = 1;\r\n\t\t\tchecked[(r + 1) % 4][(4 + (c - 1)) % 4] = 1;\r\n\t\t\tchecked[(r + 1) % 4][c] = 1;\r\n\r\n\t\t} else\r\n\t\t// case5 row - and col -\r\n\t\tif (A[(4 + (r - 1)) % 4][(4 + (c - 1)) % 4] == 1 && A[(4 + (r - 1)) % 4][c] == 1 && A[r][(4 + (c - 1)) % 4] == 1\r\n\t\t\t\t&& A[r][c] == 1) {\r\n\t\t\tif (r == 0) {\r\n\t\t\t\tlocal = \"B'\";\r\n\t\t\t}\r\n\t\t\tif (r == 1) {\r\n\t\t\t\tlocal = \"A'\";\r\n\t\t\t}\r\n\t\t\tif (r == 2) {\r\n\t\t\t\tlocal = \"B\";\r\n\t\t\t}\r\n\t\t\tif (r == 3) {\r\n\t\t\t\tlocal = \"A\";\r\n\t\t\t}\r\n\t\t\tif (c == 0) {\r\n\t\t\t\tlocal = local + \"D'\";\r\n\t\t\t}\r\n\t\t\tif (c == 1) {\r\n\t\t\t\tlocal = local + \"C'\";\r\n\t\t\t}\r\n\t\t\tif (c == 2) {\r\n\t\t\t\tlocal = local + \"D\";\r\n\t\t\t}\r\n\t\t\tif (c == 3) {\r\n\t\t\t\tlocal = local + \"C'\";\r\n\t\t\t}\r\n\t\t\toutput = output + \"+\" + local;\r\n\t\t\tresult = 1;\r\n\t\t\t// make checked\r\n\t\t\tchecked[(4 + (r - 1)) % 4][(4 + (c - 1)) % 4] = 1;\r\n\t\t\tchecked[(4 + (r - 1)) % 4][c] = 1;\r\n\t\t\tchecked[r][(4 + (c - 1)) % 4] = 1;\r\n\t\t\tchecked[r][c] = 1;\r\n\t\t} else\r\n\t\t// case6 row- col+\r\n\t\tif (A[(4 + (r - 1)) % 4][c] == 1 && A[(4 + (r - 1)) % 4][(c + 1) % 4] == 1 && A[r][c] == 1\r\n\t\t\t\t&& A[r][(c + 1) % 4] == 1) {\r\n\t\t\tif (r == 0) {\r\n\t\t\t\tlocal = \"B'\";\r\n\t\t\t}\r\n\t\t\tif (r == 1) {\r\n\t\t\t\tlocal = \"A'\";\r\n\t\t\t}\r\n\t\t\tif (r == 2) {\r\n\t\t\t\tlocal = \"B\";\r\n\t\t\t}\r\n\t\t\tif (r == 3) {\r\n\t\t\t\tlocal = \"A\";\r\n\t\t\t}\r\n\t\t\tif (c == 0) {\r\n\t\t\t\tlocal = local + \"C'\";\r\n\t\t\t}\r\n\t\t\tif (c == 1) {\r\n\t\t\t\tlocal = local + \"D\";\r\n\t\t\t}\r\n\t\t\tif (c == 2) {\r\n\t\t\t\tlocal = local + \"C\";\r\n\t\t\t}\r\n\t\t\tif (c == 3) {\r\n\t\t\t\tlocal = local + \"D'\";\r\n\t\t\t}\r\n\t\t\toutput = output + \"+\" + local;\r\n\t\t\tresult = 1;\r\n\t\t\t// make checked\r\n\t\t\tchecked[(4 + (r - 1)) % 4][c] = 1;\r\n\t\t\tchecked[(4 + (r - 1)) % 4][(c + 1) % 4] = 1;\r\n\t\t\tchecked[r][c] = 1;\r\n\t\t\tchecked[r][(c + 1) % 4] = 1;\r\n\t\t}\r\n\r\n\t\treturn result;\r\n\t}", "void mo5875b(String str, long j);", "public int method_2436() {\r\n return 16;\r\n }", "abstract String mo1748c();", "private static char[] initNum() {\n\t\tchar[] values = {'0', '1', '2', '3', '4', '5',\n\t\t\t\t'6', '7', '8', '9'};\n\t\tchar[] answer = new char[4];\n\t\t\n\t\tint countReady = 0;\n\t\t\n\t\twhile(countReady != 4) {\n\t\t\tint tempChar = rndChar();\n\t\t\tif(values[tempChar] != 'x') {\n\t\t\t\tanswer[countReady] = values[tempChar];\n\t\t\t\tvalues[tempChar] = 'x';\n\t\t\t\tcountReady++;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn answer;\n\t}", "@Override\n\tpublic int countCase() {\n\t\treturn proSystemHeadMapper.selectCountCase()+proMultiMapper.selectCountMul()+proAppMapper.selectCountApp()+proItMapper.selectCountIt();\n\t}", "public int f4(char[] array, int start, int end) {\n if (array.length <= 1 || end <= start) return 1;\n int counter = 0;\n for (int i = start; i < end; i++) {\n if (i == 'a') counter++;\n }\n int mid = start + ((end - start) / 2);\n return counter + f4(array, start, mid) + f4(array, mid + 1, end);\n }", "public int readProblemType() {\n\t\t\t\t\tSystem.out.printf(\"What type of arithmetic problem do you want to study:\\n 1:+ \\n 2:* \\n 3:- \\n 4:/ \\n 5:Random \");\n\t\t\t\t\tint j = 0;\n\t\t\t\t\tj = resp.nextInt();\n\t\t\t\t\tswitch (j) {\n\t\t case 1: j = 1; \n\t\t break;\n\t\t case 2: j = 2;\n\t\t break;\n\t\t case 3: j = 3;\n\t\t break;\n\t\t case 4: j = 4;\n\t\t break;\n\t\t case 5: j= 5;\n\t\t \t\tbreak;}\n\t\t return j;\n\t\t\t\t\t\n\t}", "private static int[] post4(int[] input) {\n int indexFor = 0;\n for (int i = input.length - 1; i >= 0; i--) {\n if (input[i] == 4) {\n indexFor = i;\n break;\n }\n }\n // 1. done\n int size = input.length - indexFor - 1;\n // 2. done\n int[] output = new int[size];\n // 2.5. done\n /* for (int i = size - 1; i >= 0; i--) {\n output[i] = input[input.length + i - size];\n }*/\n for (int i = 0; i < size; i++) {\n output[i] = input[i + indexFor + 1];\n }\n // 3. done\n return output;\n }", "public int mo36g() {\n return 8;\n }", "public static int a(String str) {\n char c2;\n switch (str.hashCode()) {\n case -1933413040:\n if (str.equals(\"commonVideo\")) {\n c2 = 2;\n break;\n }\n case -1890252483:\n if (str.equals(\"sticker\")) {\n c2 = 6;\n break;\n }\n case -35510913:\n if (str.equals(\"fastVideo\")) {\n c2 = 0;\n break;\n }\n case 3357525:\n if (str.equals(\"more\")) {\n c2 = 10;\n break;\n }\n case 103652300:\n if (str.equals(\"macro\")) {\n c2 = 9;\n break;\n }\n case 104817688:\n if (str.equals(\"night\")) {\n c2 = 7;\n break;\n }\n case 729267099:\n if (str.equals(CameraStatisticsUtil.EVENT_CAPTURE)) {\n c2 = 4;\n break;\n }\n case 764302074:\n if (str.equals(\"slowVideo\")) {\n c2 = 1;\n break;\n }\n case 875077159:\n if (str.equals(\"professional\")) {\n c2 = 5;\n break;\n }\n case 1069983349:\n if (str.equals(\"panorama\")) {\n c2 = 3;\n break;\n }\n case 1401705245:\n if (str.equals(\"highPictureSize\")) {\n c2 = 8;\n break;\n }\n default:\n c2 = 65535;\n break;\n }\n switch (c2) {\n case 0:\n return R.string.camera_mode_fast_video;\n case 1:\n return R.string.camera_mode_slow_video;\n case 2:\n return R.string.camera_mode_video;\n case 3:\n return R.string.camera_mode_panorama;\n case 4:\n return R.string.camera_mode_portrait;\n case 5:\n return R.string.camera_mode_professional;\n case 6:\n return R.string.camera_mode_sticker;\n case 7:\n return R.string.camera_mode_night;\n case 8:\n return d();\n case 9:\n return R.string.camera_mode_super_macro;\n case 10:\n return R.string.camera_mode_more;\n default:\n return R.string.camera_mode_common;\n }\n }", "static int lps(char seq[], int i, int j) {\n // Base Case 1: If there is only 1 character\n if (i == j) {\n return 1;\n }\n\n // Base Case 2: If there are only 2 characters and both are same\n if (seq[i] == seq[j] && i + 1 == j) {\n return 2;\n }\n\n // If the first and last characters match\n if (seq[i] == seq[j]) {\n return lps(seq, i + 1, j - 1) + 2;\n }\n\n // If the first and last characters do not match\n return max(lps(seq, i, j - 1), lps(seq, i + 1, j));\n }", "public String getCvvNumber();" ]
[ "0.54522187", "0.5428934", "0.536755", "0.5360873", "0.5325509", "0.52781385", "0.5271214", "0.5240222", "0.5230904", "0.52298826", "0.52268386", "0.5220666", "0.5193248", "0.51746184", "0.5155249", "0.5148022", "0.51437074", "0.5137251", "0.51303303", "0.5127161", "0.51064444", "0.5106116", "0.5101092", "0.50940144", "0.5093045", "0.50900805", "0.5082743", "0.5064694", "0.5055399", "0.50300306", "0.5027957", "0.50258344", "0.5023185", "0.50222415", "0.5020508", "0.5019661", "0.5007048", "0.5003796", "0.49997088", "0.49973056", "0.4997223", "0.49945045", "0.4985308", "0.4985104", "0.49841097", "0.49831447", "0.49812204", "0.49697745", "0.496358", "0.49489683", "0.4947698", "0.49431658", "0.4942725", "0.4939912", "0.49394667", "0.4939193", "0.49381265", "0.49310595", "0.49227142", "0.49162892", "0.49160665", "0.4909169", "0.49087235", "0.4907812", "0.49052107", "0.49046728", "0.49038264", "0.49004206", "0.4897191", "0.4897004", "0.48968107", "0.48926798", "0.4887407", "0.48783293", "0.4877533", "0.4875906", "0.48704815", "0.48689055", "0.48677182", "0.48640227", "0.4862872", "0.48608044", "0.4859439", "0.4857921", "0.48542875", "0.48528036", "0.48518494", "0.48487046", "0.48474848", "0.48433673", "0.48401615", "0.4839658", "0.48370063", "0.4834514", "0.4832651", "0.48306274", "0.4829739", "0.48295262", "0.48282546", "0.48278892", "0.48264843" ]
0.0
-1
hardcoded the T9 as a map with TreeSet in there so that we preserve the order
public static Map<Integer, TreeSet<Character>> buildT9Map() { Map<Integer, TreeSet<Character>> mapOfT9 = new HashMap<Integer, TreeSet<Character>>(); mapOfT9.put(2, new TreeSet<Character>(Arrays.asList('a', 'b', 'c'))); mapOfT9.put(3, new TreeSet<Character>(Arrays.asList('d', 'e', 'f'))); mapOfT9.put(4, new TreeSet<Character>(Arrays.asList('g', 'h', 'i'))); mapOfT9.put(5, new TreeSet<Character>(Arrays.asList('j', 'k', 'l'))); mapOfT9.put(6, new TreeSet<Character>(Arrays.asList('m', 'n', 'o'))); mapOfT9.put(7, new TreeSet<Character>(Arrays.asList('p', 'q', 'r', 's'))); mapOfT9.put(8, new TreeSet<Character>(Arrays.asList('t', 'u', 'v'))); mapOfT9.put(9, new TreeSet<Character>(Arrays.asList('w', 'x', 'y', 'z'))); return mapOfT9; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void Test() {\t\t\n\t\tTreeMap<String, Integer> treeMap = new TreeMap<String, Integer>();\n\t\ttreeMap.put(\"Key#1\", 1);\n\t\ttreeMap.put(\"Key#2\", 2);\n\t\ttreeMap.put(\"Key#2\", 3); // Duplicate is not allowed. Replaces old value with new\n\t\t//treeMap.put(null, 1); //NULL key is not allowed; throws NPE \n\t\t//treeMap.put(null, 2);\n\t\tSystem.out.println(\"Tree Map: \" + treeMap.toString());\n\t\t\n\t\t// Sorts key based on natural ordering (sorts in \"ascending order\")\n\t\tTreeMap<MapKey<String>, Integer> treeMap2 = new TreeMap<MapKey<String>, Integer>(); // uses \"natural ordering\" provided by the key object for comparison i.e. MapKey.compareTo() method\n\t\ttreeMap2.put(new MapKey<String>(\"x\"), 1);\n\t\ttreeMap2.put(new MapKey<String>(\"y\"), 2);\t\t\n\t\t// Comparable\n\t\tboolean status = treeMap2.put(new MapKey<String>(\"z\"), 3) == null;\n\t\tMapKey<String> mapKey = new MapKey<String>(\"xyz\");\t\t\n\t\tstatus = treeMap2.put(mapKey, 123) == null;\n\t\tstatus = treeMap2.put(mapKey, 1234) == null;\n\t\tSystem.out.println(\"Tree Map: \" + treeMap2.toString());\n\t\t\n\t\tTreeMap<String, Integer> treeMap3 = new TreeMap<String, Integer>(new TestComparator());\n\t\t\n\t\tTreeMap<MyKey, Integer> treeMap4 = new TreeMap<MyKey, Integer>();\n\t\ttreeMap4.put(new MyKey(), 10);\n\t\ttreeMap4.put(new MyKey(), 20);\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tTreeSet<Object> treeSet = new TreeSet<Object>();\r\n\t treeSet.add(45);\r\n\t treeSet.add(15);\r\n\t treeSet.add(99);\r\n\t treeSet.add(70);\r\n\t treeSet.add(65);\r\n\t treeSet.add(30);\r\n\t treeSet.add(10);\r\n\t System.out.println(\"TreeSet Ascending order : \" + treeSet);\r\n\t NavigableSet<Object> res = treeSet.descendingSet();\r\n\t System.out.println(\"TreeSet after Descending order\" + res);\r\n\t \r\n\t // How to Change it Descending order For TreeMap\r\n\t TreeMap<Object,Object> treeMap = new TreeMap<Object,Object>();\r\n\t treeMap.put(1,\"A\");\r\n\t treeMap.put(5,\"B\");\r\n\t treeMap.put(3,\"C\");\r\n\t treeMap.put(7,\"F\");\r\n\t treeMap.put(2,\"G\");\r\n\t System.out.println(\"TreeMap Ascending order : \" + treeMap);\r\n\t NavigableMap<Object,Object> result = treeMap.descendingMap();\r\n\t System.out.println(\"TreeMap after Descending order\" + result);\r\n\t \r\n\t // Covert HashSet or List to Array\r\n\t HashSet<String> hset = new HashSet<String>();\r\n\t hset.add(\"Element1\");\r\n\t hset.add(\"Element2\");\r\n\t hset.add(\"Element3\");\r\n\t hset.add(\"Element4\");\r\n\t // Displaying HashSet elements\r\n\t System.out.println(\"HashSet contains: \"+ hset); \r\n\t // Creating an Array\r\n\t String[] array = new String[hset.size()];\r\n\t hset.toArray(array);\r\n\t // Displaying Array elements\r\n\t System.out.println(\"Array elements: \");\r\n\t for(String temp : array){\r\n\t System.out.println(temp);\r\n\t }\r\n\t \r\n\t // HashMap Creation with Load Factor \r\n\t Map<String, String> hmapFac = new HashMap<>(12,0.95f);\r\n\t hmapFac.put(\"1\", \"Debu\");\r\n\t hmapFac.put(\"2\", \"Debu\");\r\n\t hmapFac.put(\"3\", \"Shyam\");\r\n\t hmapFac.put(\"4\", \"Uttam\");\r\n\t hmapFac.put(\"5\", \"Gautam\");\r\n\t System.out.println(\"Created with Load Factor \" + hmapFac);\r\n\t \r\n\t \r\n\t \r\n\t //how to copy one hashmap content to another hashmap\r\n\t Map<String, String> hmap1 = new HashMap<>();\r\n\t hmap1.put(\"1\", \"Debu\");\r\n\t hmap1.put(\"2\", \"Debu\");\r\n\t hmap1.put(\"3\", \"Shyam\");\r\n\t hmap1.put(\"4\", \"Uttam\");\r\n\t hmap1.put(\"5\", \"Gautam\");\r\n\t // Create another HashMap\r\n\t HashMap<String, String> hmap2 = new HashMap<String, String>();\r\n\t // Adding elements to the recently created HashMap\r\n\t hmap2.put(\"7\", \"Jerry\");\r\n\t hmap2.put(\"8\", \"Tom\");\r\n\t // Copying one HashMap \"hmap\" to another HashMap \"hmap2\"\r\n\t hmap2.putAll(hmap1);\r\n\t System.out.println(\"After Copy in The HashMap \" + hmap2);\r\n\t \r\n\t // Map containsKey(), containsValue and get() method\r\n\t // get() by index for List and similar contains available for List , Set\r\n\t \r\n\t Map<String, String> map = new HashMap<>();\r\n\t\t\tmap.put(\"1\", \"Debu\");\r\n\t\t\tmap.put(\"2\", \"Debu\");\r\n\t\t\tmap.put(\"3\", \"Shyam\");\r\n\t\t\tmap.put(\"4\", \"Uttam\");\r\n\t\t\tmap.put(\"5\", \"Gautam\");\r\n\t\t\tSystem.out.println(\"Map containsKey() : \" + map.containsKey(\"2\"));\r\n\t\t\tSystem.out.println(\"Map containsValue() : \" + map.containsValue(\"Debu\"));\r\n\t\t\tSystem.out.println(\"Map get() : \" + map.get(\"4\"));\r\n\t\t\t\r\n\t\t\t\r\n\t\t // Few Common Collection Method ========\r\n\t\t\tList<Integer> list = new ArrayList<>();\r\n\t\t\tlist.add(5);\r\n\t\t\tlist.add(3);\r\n\t\t\tlist.add(6);\r\n\t\t\tlist.add(1);\r\n\t\t\t// size()\r\n\t\t\tSystem.out.println(\"List Size() : \" + list.size());\r\n\t\t\t// contains() , Similar containsAll() take all collection Object\r\n\t\t\tSystem.out.println(\"List Contains() : \" + list.contains(1));\r\n\t\t\t// remove() - Here by object of element , also can be happen by index \r\n\t\t\t// Similar removeAll() take all collection Object\r\n\t\t\tSystem.out.println(\"List Before remove : \" + list);\r\n\t\t\tSystem.out.println(\"List remove() : \" + list.remove(3));\r\n\t\t\tSystem.out.println(\"List After remove : \" + list);\r\n\t\t\t\r\n\t\t\t// isEmpty()\r\n\t\t\tSystem.out.println(\"List isEmpty() : \" + list.isEmpty());\r\n\t\t\t// retainAll() - matching\r\n\t\t\tlist.add(1);\r\n\t\t\tlist.add(8);\r\n\t\t\tList<Integer> list1 = new ArrayList<>();\r\n\t\t\tlist1.add(8);\r\n\t\t\tlist1.add(3);\r\n\t\t\tSystem.out.println(\"List Before retainAll() : \" +list );\r\n\t\t\tlist.retainAll(list1);\r\n\t\t\tSystem.out.println(\"List AFter retainAll() : \" +list );\r\n\t\t\t\r\n\t\t\t// clear()\r\n\t\t\tSystem.out.println(\"List Before clear() : \" +list );\r\n\t\t\t\r\n\t\t\tlist.clear();\r\n\t\t\tSystem.out.println(\"List AFter clear() : \" + list );\r\n\t\t\t// Below line compile time error\r\n\t\t\t//System.out.println(\"List AFter clear() : \" + list.clear() );\r\n\t\t\tlist.add(1);\r\n\t\t\tlist.add(3);\r\n\t\t\tlist.add(6);\r\n\t\t\tSystem.out.println(\"List AFter Adding() : \" +list );\r\n\t\t\t\r\n\t\t\t\r\n\t}", "private void treeMapDemo() {\n TreeMap intMap = new TreeMap();\n TreeMap abcMap = new TreeMap();\n \n // Add values to tMap\n intMap.put(1, \"Jonathan\");\n intMap.put(3, \"Kevin\");\n intMap.put(4, \"Craig\");\n \n abcMap.put(\"Name\", \"Jonathan\");\n abcMap.put(\"Age\", 26);\n abcMap.put(\"Hometown\", \"Denham Springs\");\n \n System.out.println(intMap.toString());\n \n System.out.println(abcMap.toString());\n \n // Add new value to fill the 2 position\n intMap.put(2, \"Jasmine\");\n \n // Add new value to abcMap\n abcMap.put(\"Acrobatic Skill\", \"Bad\");\n abcMap.put(\"Zoology Skill\", \"Decent\");\n \n System.out.println(intMap.toString());\n \n System.out.println(abcMap.toString());\n \n }", "public static void main(String[] args) {\n\t\t\tList<String> hrLeaders = new ArrayList<>();\n\t\t\thrLeaders.add(\"762 - Barry Bonds\");\n\t\t\thrLeaders.add(\"755 - Hank Aaron\");\n\t\t\thrLeaders.add(\"714 - Babe Ruth\");\n\t\t\thrLeaders.add(\"687 - Alex Rodriquez\");\n\t\t\thrLeaders.add(\"686 - Brandon Davis\");\n\t\t\thrLeaders.add(\"686 - Brandon Davis\");\n\t\t\thrLeaders.add(\"660 - Willie Mays\");\n\t\t\t\n\t\t\tSystem.out.println(\"*****LIST EXAMPLE*****\");\n\t\t\tSystem.out.println(\"Here are the top \" + hrLeaders.size() + \" homerun leaders of all time!\");\n\t\t\tSystem.out.print(hrLeaders);\n\t\t\t\n\t\t\tSystem.out.print( \"\\n\\n\" );\n\t\t\thrLeaders.set(0, \"763 - Mike Trout\");\n\t\t\tSystem.out.println(\"Updated Home Run List \\n\" + hrLeaders);\n\t\t\t\n\t\t\tSystem.out.print( \"\\n\\n\" );\t\t\t\n\t\t\tSystem.out.print(\"Sorted Set after passing into TreeSet: \\n\"); \n\t Set<String> tree_Set1 = new TreeSet<String>(hrLeaders); \n\t System.out.println(tree_Set1);\n\t \n\t System.out.print( \"\\n\\n\" );\t\n\t\t\t\n\t\t\tSystem.out.print( \"_______________________________________________________________________\" );\n\t\t\tSystem.out.print( \"\\n\\n\" );\n\t\t\t\n\n//Map EXAMPLE//\t\t\n\t\t\tSystem.out.println(\"*****Map EXAMPLE*****\");\n\t\t\tMap<Integer, String> AhrLeaders = new HashMap<>();\n\t\t\tAhrLeaders.put(762, \"Barry Bonds\");\n\t\t\tAhrLeaders.put(755, \"Hank Aaron\");\n\t\t\tAhrLeaders.put(714, \"Babe Ruth\");\n\t\t\tAhrLeaders.put(687, \"Alex Rodriquez\");\n\t\t\tAhrLeaders.put(686, \"Brandon Davis\");\n\t\t\tAhrLeaders.put(686, \"Brandon Davis\");\n\t\t\tAhrLeaders.put(660, \"Willie Mays\");\n\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(\"Here are the top \" + AhrLeaders.size() + \" homerun leaders of all time!\");\n\t\t\tSystem.out.print(AhrLeaders);\n\t\t\t\n\t\t\tSystem.out.print( \"\\n\\n\" );\n\t\t\t\n\t\t\tArrayList<Integer> keyList = new ArrayList<Integer>(AhrLeaders.keySet());\n\t\t ArrayList<String> valueList = new ArrayList<String>(AhrLeaders.values());\n\n\t\t System.out.println(\"Top Homerun Leaders by number of Homeruns ::\"+keyList);\n\t\t System.out.println(\"Top Homerun Leaders by Name ::\"+valueList);\n\t\t\t\n\t\t System.out.print( \"_______________________________________________________________________\" );\n\t\t\tSystem.out.print( \"\\n\\n\" );\n\t\t\t\n//Set EXAMPLE and Treeset//\t\t\n\t\t\tSystem.out.println(\"*****Set EXAMPLE*****\");\n\t\t\tSet<String> BhrLeaders = new HashSet<String>();\n\t\t\tBhrLeaders.add(\"762 - Barry Bonds\");\n\t\t\tBhrLeaders.add(\"755 - Hank Aaron\");\n\t\t\tBhrLeaders.add(\"714 - Babe Ruth\");\n\t\t\tBhrLeaders.add(\"687 - Alex Rodriquez\");\n\t\t\tBhrLeaders.add(\"686 - Brandon Davis\");\n\t\t\tBhrLeaders.add(\"686 - Brandon Davis\");\n\t\t\tBhrLeaders.add(\"660 - Willie Mays\");\n\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(\"Here are the top \" + BhrLeaders.size() + \" homerun leaders of all time!\");\n\t\t\tSystem.out.print(BhrLeaders);\n\t\t\t\n\t\t\tSystem.out.print( \"\\n\\n\" );\n\t\n\t\t\tBhrLeaders.add(\"661 - Mike Trout\"); \n\t\t\tSystem.out.println(\"Updated Home Run List: \\n\" + BhrLeaders);\n\t\t\t\n\t\t\tSystem.out.print( \"\\n\\n\" );\n\t\t\t\n\t\t\tSystem.out.print(\"Sorted Set after passing into TreeSet: \\n\"); \n\t Set<String> tree_Set = new TreeSet<String>(BhrLeaders); \n\t System.out.println(tree_Set);\n\t\t\t\n\t System.out.print( \"_______________________________________________________________________\" );\n\t\t\tSystem.out.print( \"\\n\\n\" );\n\n//Queue EXAMPLE//\t\t\n\t\t\tSystem.out.println(\"*****QUEUE EXAMPLE*****\");\n\t\t\t\n\t\t\tList<String> listhrLeaders = Arrays.asList(\"Barry Bond - 762\", \"Hank Aaron - 755\", \"Babe Ruth - 714\", \"Alex Rodriequez - 687\", \"Brandon Davis - 686\", \"Brandon Davis - 686\", \"Willie Mays - 660\");\n\t\t\tQueue<String> queueNames = new LinkedList<>(listhrLeaders);\n\t\t\tSystem.out.println(queueNames);\n\t\t\t\n\t\t\tqueueNames.add(\"661 - Mike Trout\");\n\t\t\tqueueNames.add(\"660 - Bryce Harper\");\n\t\t\tSystem.out.println(queueNames);\n\t\t\t\n\t\t\t\t\t\n\t\n\t}", "@Test\n public void test10() {\n Map<Integer, Integer> map1 = new TreeMap<Integer, Integer>();\n cashRegister.addPennies(199);\n map1.put(1,199);\n assertEquals(map1, cashRegister.getContents());\n cashRegister.addDimes(2);\n map1.put(10,2);\n assertEquals(map1, cashRegister.getContents());\n cashRegister.addDimes(3);\n map1.put(10,5);\n assertEquals(map1, cashRegister.getContents());\n cashRegister.addFives(10);\n map1.put(500,10);\n assertEquals(map1, cashRegister.getContents());\n cashRegister.addNickels(4);\n map1.put(5,4);\n assertEquals(map1, cashRegister.getContents());\n cashRegister.addOnes(1);\n map1.put(100,1);\n assertEquals(map1, cashRegister.getContents());\n cashRegister.addQuarters(1);\n map1.put(25,1);\n assertEquals(map1, cashRegister.getContents());\n cashRegister.addTens(5);\n map1.put(1000,5);\n assertEquals(map1, cashRegister.getContents());\n }", "public RBTMap() {\n RBT = new TreeMap<K,V>();\n \n }", "public static void main(String[] args) {\nTreeMap<Integer, String> treeMap=new TreeMap<Integer, String>();\ntreeMap.put(25, \"qwert\");\ntreeMap.put(24, \"poiu\");\nfor(Entry<Integer, String> m:treeMap.entrySet()) {\n\tSystem.out.println(m.getKey()+ \" \"+m.getValue());\n}\n\t}", "private TreeMap<Integer, List<NodeInfo>> convertToTreeMap(HashMap<ASTNode, NodeInfo> hashMap) {\n TreeMap<Integer, List<NodeInfo>> map = new TreeMap<>(Collections.reverseOrder());\n for (Map.Entry<ASTNode, NodeInfo> e : hashMap.entrySet()) {\n NodeInfo nodeInfo = e.getValue();\n if (map.containsKey(nodeInfo.subNodes)) {\n List<NodeInfo> list = map.get(nodeInfo.subNodes);\n list.add(nodeInfo);\n\n } else {\n\n // pick only no leaf nodes\n if (nodeInfo.subNodes > 0) {\n List<NodeInfo> list = new ArrayList<>();\n list.add(nodeInfo);\n map.put(nodeInfo.subNodes, list);\n }\n }\n\n }\n return map;\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tTreeMap<Integer,String> map = new TreeMap<Integer,String>();\r\n\t\t\r\n map.put(2000, \"A\");\r\n map.put(5000, \"E\");\r\n map.put(6000, \"F\");\r\n map.put(7000, \"G\");\r\n map.put(3000, \"C\");\r\n map.put(4000, \"D\");\r\n map.put(2100, \"B\");\r\n System.out.println(map);\r\n System.out.println(\"max\"+map.lastKey());\r\n System.out.println(\"min\"+map.firstKey());\r\n \r\n Set<Integer> setLessThen3k = map.headMap(3000).keySet();\r\n System.out.println(\"setLessThen3k---\"+setLessThen3k);\r\n \r\n Set<Integer> setLessgreater3k = map.tailMap(3000).keySet();\r\n System.out.println(\"setLessThen3k---\"+setLessgreater3k);\r\n \r\n \r\n\r\n\t\tTreeMap<String,Integer> Usermap = new TreeMap<String,Integer>();\r\n\t\t\r\n\t\tUsermap.put( \"A\",2000);\r\n\t\tUsermap.put( \"F\",8000);\r\n\t\tUsermap.put( \"G\",7000);\r\n\t\tUsermap.put( \"C\",3000);\r\n\t\tUsermap.put( \"D\",3000);\r\n\t\tUsermap.put( \"E\",9000);\r\n\t\tUsermap.put( \"B\",8000);\r\n System.out.println(map);\r\n System.out.println(\"max\"+Usermap.lastKey());\r\n System.out.println(\"min\"+Usermap.firstKey());\r\n \r\n\r\n \r\n \r\n\t}", "private static void treeMapMap(Map<Integer, String> treeMapMap) {\n System.out.println(\"----------------------------- TreeMap ----------------------------\");\n System.out.println(\"To work with \\\"TreeMap\\\" we need to add \\\"Equals and HashCode\\\" and \\\"Comparable\\\" to the Person Class!\");\n System.out.println(\"\\\"TreeMap\\\" is ordered by key\");\n treeMapMap.put(7, \"Cristiano Ronaldo\");\n treeMapMap.put(10, \"Leo Messi\");\n treeMapMap.put(8, \"Avi Nimni\");\n treeMapMap.put(24, \"Kobi Brian\");\n PrintUtils.printMap(treeMapMap);\n System.out.println();\n // STEP 2 - set p3 name to \"Moshe\"\n System.out.println(\"Set the name of player number 8 to be \\\"Moshe\\\":\");\n treeMapMap.replace(8, \"Avi Nimni\", \"Moshe\");\n // if you use \"put\" instead of \"replace\" it will work to!\n PrintUtils.printMap(treeMapMap);\n System.out.println();\n // STEP 3 - add p5 to the end of the list using using ADD method\n System.out.println(\"Add p5 to the end of the list using ADD method:\");\n System.out.println(\"Not an option!\");\n System.out.println();\n // STEP 4 - add p6 to position 3 the end of the list using ADD method\n System.out.println(\"Add p6 to position 3 the end of the list using ADD method:\");\n System.out.println(\"Not an option, you can wright over it!\");\n System.out.println();\n // STEP 5 - remove p2 from the list\n System.out.println(\"Remove p2 from the list and printing the list using a static method in a utility class:\");\n treeMapMap.remove(10, \"Leo Messi\");\n PrintUtils.printMap(treeMapMap);\n System.out.println();\n }", "@Test\r\n\tpublic void givenTreeMap_whenOrdersEntriesNaturally_thenCorrect() {\r\n\t\tTreeMap<Integer, String> map = new TreeMap<>();\r\n\t\tmap.put(3, \"val\");\r\n\t\tmap.put(2, \"val\");\r\n\t\tmap.put(1, \"val\");\r\n\t\tmap.put(5, \"val\");\r\n\t\tmap.put(4, \"val\");\r\n\r\n\t\tassertEquals(\"[1, 2, 3, 4, 5]\", map.keySet().toString());\r\n\t}", "public CjtMap(){\r\n cjtMap = new TreeMap();\r\n sequence = new Sequence(1, 0, 1, false);\r\n }", "public static void main(String[] args) {\n TreeMap<student, String> treeMap = new TreeMap<>();\n treeMap.put(new student(\"张三\", 21), \"北京\");\n treeMap.put(new student(\"王五\", 21), \"上海\");\n treeMap.put(new student(\"李四\", 18), \"南京\");\n treeMap.put(new student(\"小明\", 21), \"荷兰\");\n\n Set<Map.Entry<student, String>> entrySet = treeMap.entrySet();\n Iterator<Map.Entry<student, String>> it = entrySet.iterator();\n while (it.hasNext()) {\n Map.Entry me = it.next();\n student stu = (student) me.getKey();\n System.out.print(stu.getName() + \" \" + stu.getAge() + \" \");\n System.out.println(me.getValue());\n\n }\n\n }", "public static void main(String[] args) {\n\r\n TreeSet<point> ts1 = new TreeSet<>();\r\n ts1.add(new point(1,1));\r\n ts1.add(new point(5, 5));\r\n ts1.add(new point(5, 2));\r\n\r\n System.out.println(ts1);\r\n }", "public static void main(String[] args) {\n LinkedHashMap<Integer, Pracownik> mapa = new LinkedHashMap<>();\n Pracownik[] pracownicy = {\n new Pracownik(\"Agnieszka\"),\n new Pracownik(\"Aga\"),\n new Pracownik(\"Damian\"),\n new Pracownik(\"Michał\"),\n new Pracownik(\"Agnieszka\"),\n new Pracownik(\"Aga\"),\n new Pracownik(\"Damian\"),\n new Pracownik(\"Michał\"),\n new Pracownik(\"Agnieszka\"),\n new Pracownik(\"Aga\"),\n new Pracownik(\"Damian\"),\n new Pracownik(\"Michał\"),\n new Pracownik(\"Agnieszka\"),\n new Pracownik(\"Aga\"),\n new Pracownik(\"Damian\"),\n new Pracownik(\"Michał\"),\n new Pracownik(\"Agnieszka\"),\n new Pracownik(\"Aga\"),\n new Pracownik(\"Damian\"),\n new Pracownik(\"Michał\")\n };\n\n for(Pracownik pracownik: pracownicy){\n mapa.put(pracownik.getID(),pracownik);\n }\n System.out.println(mapa);\n\n mapa.remove(3);\n\n\n mapa.put(4,new Pracownik(\"Asia\"));\n mapa.put(3,new Pracownik(\"Patryk\"));\n\n\n\n mapa.entrySet();\n System.out.println(mapa);\n for(Map.Entry<Integer,Pracownik> wpis: mapa.entrySet() ){\n // System.out.println(\"ID \" + wpis.getKey()+ \" Imie: \" + wpis.getValue().getImie());\n\n\n\n\n System.out.println(\"ID Pracownika \"+ wpis.getKey());\n System.out.println(\"Imie \" + wpis.getValue().getImie());\n\n\n }\n System.out.println(\"---------------------------------------------------------------\");\n TreeMap<Integer,Pracownik> mapaPosotrowana = new TreeMap<Integer, Pracownik>(mapa);\n\n Map<Integer,Pracownik> subMapa = mapaPosotrowana.subMap(0,4);\n\n for(Map.Entry<Integer,Pracownik> wpis: subMapa.entrySet() ){\n // System.out.println(\"ID \" + wpis.getKey()+ \" Imie: \" + wpis.getValue().getImie());\n\n\n\n if(subMapa.isEmpty()){\n System.out.println(\"PUSTO\");\n }else{\n System.out.println(\"ID Pracownika \"+ wpis.getKey());\n System.out.println(\"Imie \" + wpis.getValue().getImie());\n }\n\n }\n\n Map<Date, Event> exampleMap;\n\n\n\n\n\n\n\n\n\n }", "@Test\n public void test3() {\n Map<Integer, Integer> map1 = new TreeMap<Integer, Integer>();\n assertEquals(map1, cashRegister.getContents());\n }", "@Test\n public void test12() {\n cashRegister.addPennies(99);\n cashRegister.addDimes(2);\n cashRegister.addDimes(3);\n cashRegister.addFives(10);\n cashRegister.addNickels(4);\n cashRegister.addOnes(1);\n cashRegister.addQuarters(1);\n cashRegister.addTens(5);\n Map<Integer, Integer> map = new TreeMap<Integer, Integer>();\n map.put(1000,5);\n map.put(500,10);\n map.put(100,1);\n map.put(25,1);\n map.put(10,5);\n map.put(5,4);\n map.put(1,99);\n\n assertEquals(map,cashRegister.getContents());\n Map<Integer, Integer> map1 = new TreeMap<Integer, Integer>();\n map1 = cashRegister.getContents();\n map1.put(0,1);\n assertEquals(map,cashRegister.getContents());\n }", "private static <K, V> Set<Map.Entry<K, V>> getSortedEntrySet(Map<K, V> dict) {\n if (!(dict instanceof SortedMap<?, ?>)) {\n Map<K, V> tmp = new TreeMap<>(EvalUtils.SKYLARK_COMPARATOR);\n tmp.putAll(dict);\n dict = tmp;\n }\n\n return dict.entrySet();\n }", "public static void main(String[] args) {\n\t\tHashMap<Integer, String> hm=new HashMap<>();\n\t\thm.put(25, \"Bharath\");\n\t\thm.put(50,\"Ramesh\");\n\t\thm.put(75,\"Ashish\");\n\t\tSystem.out.println(hm);\n\t\tSystem.out.println(hm.containsKey(15));\n\t\tSystem.out.println(hm.containsValue(\"Ramesh\"));\n\n\t\tTreeMap<Integer, String> tm=new TreeMap<>();\n\t\ttm.putAll(hm);\n\t\tSystem.out.println(tm);\n\t\tSystem.out.println(tm.firstKey());\n\t\tSystem.out.println(tm.lastKey()); \n\t}", "public void createTreeMap() {\n myList = new TreeMap<>();\n scrabbleList = new TreeMap<>();\n }", "public static void main(String[] args) {\n\t\t TreeMap<Integer,String> tmap=new TreeMap<Integer, String>();\n\t tmap.put(1, \"a\");\n\t tmap.put(2, \"B\");\n\t tmap.put(3, \"c\");\n\t tmap.put(4, \"d\");\n\t tmap.put(5, \"Orange\");\n\t tmap.put(6, \"green\");\n\t tmap.put(7, \"Blue\");\n\t tmap.put(8, \"Yellow\");\n\t System.out.println(\"Original List: \" +tmap);\n\t \n\t System.out.println(tmap.firstEntry());\n\t System.out.println(tmap.lastEntry());\n}", "@Test\r\n\tpublic void givenTreeMap_whenOrdersEntriesNaturally_thenCorrect2() {\r\n\t\tTreeMap<String, String> map = new TreeMap<>();\r\n\t\tmap.put(\"c\", \"val\");\r\n\t\tmap.put(\"b\", \"val\");\r\n\t\tmap.put(\"a\", \"val\");\r\n\t\tmap.put(\"e\", \"val\");\r\n\t\tmap.put(\"d\", \"val\");\r\n\r\n\t\tassertEquals(\"[a, b, c, d, e]\", map.keySet().toString());\r\n\t}", "public static void main(String[] args) {\n\t\tMap hashmap = new HashMap();\r\n\t\tMap treemap = new TreeMap();\r\n\t\t// JDK 1.4+ only\r\n\t\tMap linkedMap = new LinkedHashMap();\r\n\t\tSet s;\r\n\t\tIterator i;\r\n\t\t\r\n\t\t/// HASHMAP\r\n\t\thashmap.put(\"Three\", \"Three\");\r\n\t\thashmap.put(\"Three\", \"Three\"); // This entry overwrites the previous\r\n\t\thashmap.put(\"One\", \"One\");\r\n\t\thashmap.put(\"Two\", \"Two\");\r\n\t\thashmap.put(\"Six\", \"Six\");\r\n\t\thashmap.put(\"Seven\", \"Seven\");\r\n\t\t// Order is NOT guaranteed to be consistent; no duplicate keys\r\n\t\tSystem.out.println(\"Unordered Contents of HashMap:\");\r\n\t\t\r\n\t\t/*\r\n\t\t * To iterate over items in a Map, you must first retrieve a Set of all \r\n\t\t * of its keys. Then, iterate over the keys and use each key to retrieve \r\n\t\t * the value object from the Map.\r\n\t\t */\r\n\t\ts = hashmap.keySet();\r\n\t\t// A Map does not have an iterator, but a Set DOES ... why?\r\n\t\ti = s.iterator();\r\n\t\twhile( i.hasNext() ) {\r\n\t\t\t// Example of how to retreive and view the key\r\n\t\t\tObject key = i.next();\r\n\t\t\tSystem.out.println( key );\r\n//\t\t\tSystem.out.println( \"Key: \" + key );\r\n\t\t\t// Now retrieve and view the Map value using that key\r\n//\t\t\tString value = (String)hashmap.get(key);\r\n//\t\t\tSystem.out.println( \"Value: \" + value );\r\n\t\t}\r\n\t\t\r\n\t\t/// LINKEDHASHMAP\r\n\t\tlinkedMap.put(\"Three\", \"Three\");\r\n\t\tlinkedMap.put(\"Three\", \"Three\"); // This entry overwrites the previous\r\n\t\tlinkedMap.put(\"One\", \"One\");\r\n\t\tlinkedMap.put(\"Two\", \"Two\");\r\n\t\tlinkedMap.put(\"Six\", \"Six\");\r\n\t\tlinkedMap.put(\"Seven\", \"Seven\");\r\n\t\t// Order IS guaranteed to be consistent (LRU - Entry order)\r\n\t\tSystem.out.println(\"\\nOrdered (Entry Order) Contents of LinkedHashMap:\");\r\n\t\ts = linkedMap.keySet();\r\n\t\ti = s.iterator();\r\n\t\twhile( i.hasNext() ) {\r\n\t\t\tSystem.out.println( i.next() );\r\n\t\t}\r\n\r\n\t\t/// TREEMAP\r\n\t\ttreemap.put(\"Three\", \"Three\");\r\n\t\ttreemap.put(\"Three\", \"Three\");\r\n\t\ttreemap.put(\"Two\", \"Two\");\r\n\t\ttreemap.put(\"Seven\", \"Seven\");\r\n\t\ttreemap.put(\"One\", \"One\");\r\n\t\ttreemap.put(\"Six\", \"Six\");\r\n\t\t// Keys guaranteed to be in sorted order, no duplicate keys\r\n\t\tSystem.out.println(\"\\nOrdered (Sorted) Contents of TreeMap:\");\r\n\t\ts = treemap.keySet();\r\n\t\ti = s.iterator();\r\n\t\twhile( i.hasNext() ) {\r\n\t\t\tSystem.out.println( i.next() );\r\n\t\t}\r\n\t\t\r\n\t\t// Integer Object values\r\n\t\thashmap = new HashMap();\r\n\t\thashmap.put( \"Three\", new Integer(3) );\r\n\t\thashmap.put( \"Three\", new Integer(3) );\r\n\t\thashmap.put( \"One\", new Integer(1) );\r\n\t\thashmap.put( \"Two\", new Integer(2) );\r\n\t\thashmap.put( \"Six\", new Integer(6) );\r\n\t\thashmap.put( \"Seven\", new Integer(7) );\r\n\t\t\r\n\t\tSystem.out.println(\"\\nContents of HashMap:\");\r\n\t\ts = hashmap.keySet();\r\n\t\ti = s.iterator();\r\n\t\twhile( i.hasNext() ) {\r\n\t\t\tSystem.out.println( i.next() );\r\n\t\t}\r\n\t\t\r\n\t\t// Keys guaranteed to be in sorted order, no duplicate keys\r\n\t\ttreemap = new TreeMap();\r\n\t\ttreemap.put( \"Three\", new Integer(3) );\r\n\t\ttreemap.put( \"Three\", new Integer(3) );\r\n\t\ttreemap.put( \"Two\", new Integer(2) );\r\n\t\ttreemap.put( \"Seven\", new Integer(7) );\r\n\t\ttreemap.put( \"One\", new Integer(1) );\r\n\t\ttreemap.put( \"Six\", new Integer(6) );\r\n\t\t\r\n\t\tSystem.out.println(\"\\nContents of TreeMap:\");\r\n\t\ts = treemap.keySet();\r\n\t\ti = s.iterator();\r\n\t\t\r\n\t\twhile( i.hasNext() ) {\r\n\t\t\tSystem.out.println( i.next() );\r\n\t\t}\r\n\t}", "private static TreeMap<Integer, ArrayList<String>> treeMapOfTop(Map<Integer,\n ArrayList<String>> allMap, int numToReturn) {\n int numToAdd = numToReturn * 2;\n TreeMap<Integer, ArrayList<String>> top = new TreeMap<>();\n for (int key = allMap.keySet().size(); key > 0; key--) {\n ArrayList<String> rep = allMap.get(key);\n rep = new ArrayList<>(rep.subList(0, min(numToAdd, rep.size())));\n top.put(key, rep);\n numToAdd = numToAdd - rep.size();\n if (numToAdd < 0) {\n return top;\n }\n }\n return top;\n }", "private void erstelleListenMap(){\n farbenMap = new TreeMap<>();\n symbolMap = new TreeMap<>();\n\n for(Symbol symbol:Symbol.values()){\n\n switch (symbol) // sortiert ihn in die entsprechende Liste ein\n {\n case ka_blau:\n farbenMap.put(symbol,blaue);\n symbolMap.put(symbol,karos);\n break;\n case ks_blau:\n farbenMap.put(symbol,blaue);\n symbolMap.put(symbol,kreise);\n break;\n case kr_blau:\n farbenMap.put(symbol,blaue);\n symbolMap.put(symbol,kreuze);\n break;\n case st_blau:\n farbenMap.put(symbol,blaue);\n symbolMap.put(symbol,sterne);\n break;\n case qu_blau:\n farbenMap.put(symbol,blaue);\n symbolMap.put(symbol,quadrate);\n break;\n case kb_blau:\n farbenMap.put(symbol,blaue);\n symbolMap.put(symbol,kleeblaetter);\n break;\n\n case ka_gelb:\n farbenMap.put(symbol,gelbe);\n symbolMap.put(symbol,karos);\n break;\n case ks_gelb:\n farbenMap.put(symbol,gelbe);\n symbolMap.put(symbol,kreise);\n break;\n case kr_gelb:\n farbenMap.put(symbol,gelbe);\n symbolMap.put(symbol,kreuze);\n break;\n case st_gelb:\n farbenMap.put(symbol,gelbe);\n symbolMap.put(symbol,sterne);\n break;\n case qu_gelb:\n farbenMap.put(symbol,gelbe);\n symbolMap.put(symbol,quadrate);\n break;\n case kb_gelb:\n farbenMap.put(symbol,gelbe);\n symbolMap.put(symbol,kleeblaetter);\n break;\n case ka_gruen:\n farbenMap.put(symbol,gruene);\n symbolMap.put(symbol,karos);\n break;\n case ks_gruen:\n farbenMap.put(symbol,gruene);\n symbolMap.put(symbol,kreise);\n break;\n case kr_gruen:\n farbenMap.put(symbol,gruene);\n symbolMap.put(symbol,kreuze);\n break;\n case st_gruen:\n farbenMap.put(symbol,gruene);\n symbolMap.put(symbol,sterne);\n break;\n case qu_gruen:\n farbenMap.put(symbol,gruene);\n symbolMap.put(symbol,quadrate);\n break;\n case kb_gruen:\n farbenMap.put(symbol,gruene);\n symbolMap.put(symbol,kleeblaetter);\n break;\n case ka_rot:\n farbenMap.put(symbol,rote);\n symbolMap.put(symbol,karos);\n break;\n case ks_rot:\n farbenMap.put(symbol,rote);\n symbolMap.put(symbol,kreise);\n break;\n case kr_rot:\n farbenMap.put(symbol,rote);\n symbolMap.put(symbol,kreuze);\n break;\n case st_rot:\n farbenMap.put(symbol,rote);\n symbolMap.put(symbol,sterne);\n break;\n case qu_rot:\n farbenMap.put(symbol,rote);\n symbolMap.put(symbol,quadrate);\n break;\n case kb_rot:\n farbenMap.put(symbol,rote);\n symbolMap.put(symbol,kleeblaetter);\n break;\n case ka_violett:\n farbenMap.put(symbol,violette);\n symbolMap.put(symbol,karos);\n break;\n case ks_violett:\n farbenMap.put(symbol,violette);\n symbolMap.put(symbol,kreise);\n break;\n case kr_violett:\n farbenMap.put(symbol,violette);\n symbolMap.put(symbol,kreuze);\n break;\n case st_violett:\n farbenMap.put(symbol,violette);\n symbolMap.put(symbol,sterne);\n break;\n case qu_violett:\n farbenMap.put(symbol,violette);\n symbolMap.put(symbol,quadrate);\n break;\n case kb_violett:\n farbenMap.put(symbol,violette);\n symbolMap.put(symbol,kleeblaetter);\n break;\n case ka_orange:\n farbenMap.put(symbol,orangene);\n symbolMap.put(symbol,karos);\n break;\n case ks_orange:\n farbenMap.put(symbol,orangene);\n symbolMap.put(symbol,kreise);\n break;\n case kr_orange:\n farbenMap.put(symbol,orangene);\n symbolMap.put(symbol,kreuze);\n break;\n case st_orange:\n farbenMap.put(symbol,orangene);\n symbolMap.put(symbol,sterne);\n break;\n case qu_orange:\n farbenMap.put(symbol,orangene);\n symbolMap.put(symbol,quadrate);\n break;\n case kb_orange:\n farbenMap.put(symbol,orangene);\n symbolMap.put(symbol,kleeblaetter);\n break;\n }\n\n }\n }", "public static void main(String[] args) {\n\t\tTreeSet<String> ts = new TreeSet<String>();\n\t\t\n\t\tts.add(\"\");\n\t\t//System.out.println(ts);\n\n\t\tts.add(\"Red\");\n\t\tts.add(\"Green\");\n\t\tts.add(\"Blue\");\n\t\tts.add(\"White\");\n\t\tts.add(\"Orange\");\n\t\tts.add(\"\");\n\n\t\tSystem.out.println(ts);\n\t\tSystem.out.println(ts.size());\n\n\t\t// List<String> li = new ArrayList<String>(ts);\n\n\t\tTreeSet<String> ts1 = new TreeSet<String>();\n\n\t\tts1.add(\"Red\");\n\t\tts1.add(\"Green\");\n\t\tts1.add(\"Blue\");\n\t\tts1.add(\"WWhite\");\n\t\tts1.add(\"OOrange\");\n\n\t\tfor (String tss : ts) {\n\t\t\tSystem.out.println(ts1.contains(tss) ? \"YES\" : \"NO\");\n\t\t}\n\n\t\tTreeSet<Integer> ts2 = new TreeSet<Integer>();\n\n\t\tts2.add(1);\n\t\tts2.add(2);\n\t\tts2.add(3);\n\t\tts2.add(5);\n\t\tts2.add(9);\n\n\t\tIterator<Integer> itr = ts2.headSet(3).iterator();\n\n\t\twhile (itr.hasNext()) {\n\t\t\tSystem.out.println(itr.next());\n\t\t}\n\n\t\tSystem.out.println(\"======\");\n\n\t\tIterator<Integer> itr2 = ts2.tailSet(3).iterator();\n\n\t\twhile (itr2.hasNext()) {\n\t\t\tSystem.out.println(itr2.next());\n\t\t}\n\n\t\tSystem.out.println(\"======\");\n\n\t\tSystem.out.println(ts2.ceiling(11));\n\t\tSystem.out.println(ts2.floor(3));\n\n\t\tSystem.out.println(\"======\");\n\n\t\tSystem.out.println(ts2.lower(3));\n\t\tSystem.out.println(ts2.higher(3));\n\t\t\n\t\tSystem.out.println(\"======\");\n\t\t\n\t\tTreeSet t = new TreeSet();\n\t\t\n\t\tt.add(new StringBuffer(\"AA\"));\n\t\tt.add(new StringBuffer(\"BB\"));\n\t\tSystem.out.println(t);\n\t\t\n\n\t\t// ts1.addAll(ts);\n\t\t// System.out.println(ts1);\n\n\t\t/*\n\t\t * System.out.println(\"Treeset to ArrayList: \" + li); Collections.reverse(li);\n\t\t * System.out.println(\"After Reversing: \" + li);\n\t\t */\n\n\t\t/*\n\t\t * Iterator<String> itr = ts.iterator();\n\t\t * \n\t\t * while (itr.hasNext()) { System.out.println(itr.next()); }\n\t\t */\n\t}", "public static void main(String[] args){\n\n TreeMap<Student, String> tmap = new TreeMap<>(new newComparator());\n tmap.put(new Student(\"aaaa\",12), \"Beijing\");\n tmap.put(new Student(\"bbbb\",12), \"Guangzhou\");\n tmap.put(new Student(\"dddd\",16), \"Zhuzhou\");\n tmap.put(new Student(\"cccc\",11), \"Shanghai\");\n tmap.put(new Student(\"aaaa\",19), \"Hongkong\");\n\n Set<Map.Entry<Student, String>> es = tmap.entrySet();\n Iterator<Map.Entry<Student, String>> it = es.iterator();\n\n\n /*\n while(it.hasNext()){\n Student stu = it.next();\n String location = map.get(stu);\n System.out.println(stu +\" --------- \"+location);\n }\n */\n\n while(it.hasNext()){\n Map.Entry<Student, String> me = it.next();\n Student stu = me.getKey();\n String addr = me.getValue();\n System.out.println(stu+\" ::: \"+ addr);\n\n }\n\n\n }", "private static Map<String, String> m19376a(List<ajr> list) {\n if (list == null) {\n return null;\n }\n if (list.isEmpty()) {\n return Collections.emptyMap();\n }\n Map<String, String> treeMap = new TreeMap(String.CASE_INSENSITIVE_ORDER);\n for (ajr ajr : list) {\n treeMap.put(ajr.m19223a(), ajr.m19224b());\n }\n return treeMap;\n }", "public static void main(String[] args) {\n\t\tTreeMap<Integer, String> myMap = new TreeMap<Integer, String>();//sort on keys\r\n\t\tmyMap.put(101, \"Tejas\");\r\n\t\tmyMap.put(701, \"sid\");\r\n\t\tmyMap.put(301, \"kavya\");\r\n\t\tmyMap.put(801, \"dhruv\");\r\n\t\tmyMap.put(501, \"sumit\");\r\n\t\tmyMap.put(601, \"satvik\");\r\n\t\tmyMap.remove(501);\r\n\t\t\r\n\t\tSystem.out.println(myMap);\r\n\t\t//System.out.println(myMap.get(101));\r\n\t\t\r\n\t\tSet<Integer> keys = myMap.keySet();\r\n\t\tfor (Iterator iterator = keys.iterator(); iterator.hasNext();) {\r\n\t\t\tInteger key = (Integer) iterator.next();\r\n\t\t\tSystem.out.println(\"Key=\"+key+\" value=\"+myMap.get(key));\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "public static void sortbykey()\n {\n /* List<Integer> sortedKeys = new ArrayList<Integer>(map.keySet());\n Collections.sort(sortedKeys);\n\n for(int key : sortedKeys)\n {\n System.out.println(key +\" \"+map.get(key));\n }*/\n //OR\n\n /* Map<Integer,String> treeMap = new TreeMap<Integer, String>(map);\n\n for(Map.Entry<Integer,String> entry : treeMap.entrySet())\n {\n System.out.println(entry.getKey() +\" \"+entry.getValue());\n }\n*/\n //OR\n Map<Integer,String> treeMap1 = new TreeMap<>((Comparator<Integer>) (o1, o2) -> o1.compareTo(o2));\n\n treeMap1.putAll(map);\n for(Map.Entry<Integer,String> entry : treeMap1.entrySet())\n {\n System.out.println(entry.getKey() +\" \"+entry.getValue());\n }\n }", "protected SortedMap getSortedMap() {\n/* 65 */ return (SortedMap)this.map;\n/* */ }", "public static void main(String[] args) {\n\t\t \n\t\tTreeMap<Integer, Character> tm=new java.util.TreeMap<Integer, Character>();\n\t\t\n\t\ttm.put(1, 'D');\n\t\ttm.put(2, 'B');\n\t\ttm.put(3, 'A');\n\t\ttm.put(4, 'C');\n\t\ttm.put(2, 'D'); //latest key,value pair is considered \n\n\t\tSystem.out.println(tm);\n\t\tSystem.out.println(tm.size());\n\n}", "public static void main(String[] args) \r\n {\n TreeMap<Employee, Integer> hashMap = new TreeMap<Employee, Integer>(); \r\n \r\n // Mapping string values to int keys \r\n hashMap.put(new Employee(10,\"uday\"), 10); \r\n hashMap.put(new Employee(11,\"uday\"), 11); \r\n hashMap.put(new Employee(12,\"uday\"), 12); \r\n hashMap.put(new Employee(13,\"uday\"), 13); \r\n \r\n for (Entry<Employee, Integer> e : hashMap.entrySet()) \r\n System.out.println(e.getKey().toString() + \" \" + e.getValue()); \r\n \r\n HashMap<String, Integer> map = new HashMap<>(); \r\n \r\n }", "private static <N extends Node> SortedMap<ImmutableContextSet, SortedSet<N>> createMap() {\n return new ConcurrentSkipListMap<>(ContextSetComparator.reverse());\n }", "protected TreeMap<Integer, Integer> getTreeMap(int index) {\n Integer key = Integer.valueOf(index);\n TreeMap<Integer, Integer> map = rbs.get(key);\n if (map == null) {\n map = new TreeMap<Integer, Integer>();\n rbs.put(key, map);\n }\n return map;\n }", "public static void main(String[] args)\n {\n AVLTreeMap<Integer,String> tm = new AVLTreeMap<>();\n // SplayTreeMap<Integer,String> tm = new SplayTreeMap<>();\n\n tm.put(7,\"bucket\");\n tm.put(2,\"paint\");\n tm.put(8, \"rabbit\");\n tm.put(11, \"cheap\");\n tm.put(15, \"modest\");\n tm.put(6, \"guest\");\n tm.put(1, \"error\");\n\n System.out.println(tm.get(11));\n\n System.out.println(tm.higherEntry(7).getValue());\n\n System.out.println(tm.lastEntry().getValue());\n\n tm.remove(12);\n\n for(Entry<Integer,String> obj : tm.entrySet())\n System.out.println(obj.getKey());\n }", "public Map<String, List<String>> mo133923b() {\n Map<String, List<String>> map = this.f114455b;\n if (map != null) {\n return map;\n }\n TreeMap treeMap = new TreeMap(String.CASE_INSENSITIVE_ORDER);\n for (Map.Entry<String, String> entry : this.f114454a) {\n ArrayList arrayList = new ArrayList();\n if (treeMap.containsKey(entry.getKey())) {\n arrayList.addAll((Collection) treeMap.get(entry.getKey()));\n }\n arrayList.add(entry.getValue());\n treeMap.put(entry.getKey(), Collections.unmodifiableList(arrayList));\n }\n this.f114455b = Collections.unmodifiableMap(treeMap);\n return this.f114455b;\n }", "public static void main(String[] args) {\r\n\t\tHashSet h1=new HashSet();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\th1.add(3);\r\n\t\th1.add(7); //Homogeous \r\n\t\th1.add(9);//hetrogeous\r\n\t\th1.add(10);\r\n\t\t\r\n\t\tTreeSet t1=new TreeSet(h1);\r\n\t\tt1.add(100);\r\n\t\tSystem.out.println(t1);\r\n\t}", "public static void main(String[] args) {\n\n\t\tHashMap<String,String> hm = new HashMap<String, String>();\n\t\t\n\t\thm.put(\"e\",\"a1\");\n\t\thm.put(\"b\",\"a1\");\n\t\thm.put(\"a\",\"a2\");\n\t\t \n\t\thm.put(\"a\",\"a5\");\n\t\t\n\t\tSet s = hm.entrySet();\n\t\tIterator it = s.iterator();\n\t\t\n\t\tfor(Map.Entry me : hm.entrySet())\n\t\t\tSystem.out.println(me.getKey()+\" \"+me.getValue());\n\t\t\n\t\t\n\t\twhile(it.hasNext())\n\t\t{\n\t\t\tMap.Entry mentry = (Map.Entry) it.next();\n\t\t\tSystem.out.println(mentry.getKey() +\" \"+mentry.getValue());\n\t\t\t\n\t\t}\n\t\t\n\tMap<String,String> thmp = \tnew TreeMap<String,String> (hm);\n\tSystem.out.println();\n\tfor(Map.Entry g : thmp.entrySet())\n\t\tSystem.out.println(g.getKey()+\" \"+g.getValue());\n\t\n\t\n\tSystem.out.println(hm.containsKey(\"a\")+\" \"+hm.containsValue(\"a5\"));\n\t\n\t\t\n\t\t\n\t\t\n\t}", "public static void main(String args[]) {\n\tSystem.out.println(\"--------------------------------------------------------------------\");\r\n\tSystem.out.println(\"Program 2.2: Sorting TreeSet when it has user-defined Objects/values\");\r\n\tTreeSet TS3 = new TreeSet();\r\n\tassign3And4_SubClass_Employee e31 = new assign3And4_SubClass_Employee(9, \"Mamta\", 200);\r\n\tassign3And4_SubClass_Employee e41 = new assign3And4_SubClass_Employee(4, \"Mamta\", 200);\r\n\tassign3And4_SubClass_Employee e51 = new assign3And4_SubClass_Employee(2, \"Mamta\", 200);\r\n\tassign3And4_SubClass_Employee e61 = new assign3And4_SubClass_Employee(2, \"Mamta\", 200);\r\n\tTS3.add(e31);\r\n\tTS3.add(e41);\r\n\tTS3.add(e51);\r\n\tTS3.add(e61);\r\n\tSystem.out.println(\"Sorted TreeSet TS3 is : \"+TS3); // sort then in Asc order + it doesnt allow duplicate values.\r\n\t}", "public static LinkedHashMap<String, Integer> getOrderedResult(TreeMap<String, Integer> inputMap, Boolean debug, Rappresentation typeOrder)\r\n { \r\n Boolean mergeNote = false;\r\n Boolean getIndex = false;\r\n \r\n LinkedHashMap<String, Integer> outputMap = new LinkedHashMap<>();\r\n \r\n ArrayList<String> anglosaxonClassOrder = new ArrayList<>(Arrays.asList(\"C\",\"C#\",\"Db\",\"D\",\"D#\",\"Eb\",\"E\",\"F\",\"F#\",\"Gb\",\"G\",\"G#\",\"Ab\",\"A\",\"A#\",\"Bb\",\"B\"));\r\n ArrayList<String> diatonicNoteOrder = new ArrayList<>(Arrays.asList(\"Do\",\"Do#\",\"Reb\",\"Re\",\"Re#\",\"Mib\",\"Mi\",\"Fa\",\"Fa#\",\"Solb\",\"Sol\",\"Sol#\",\"Lab\",\"La\",\"La#\",\"Sib\",\"Si\"));\r\n ArrayList<String> pitchClassOrder = new ArrayList<>(Arrays.asList(\"C\",\"C#/Db\",\"D\",\"D#/Eb\",\"E\",\"F\",\"F#/Gb\",\"G\",\"G#/Ab\",\"A\",\"A#/Bb\",\"B\"));\r\n \r\n ArrayList<String> listToOrder = new ArrayList<>();\r\n \r\n if(typeOrder.name().equals(\"ANGLOSASSONE\"))\r\n {\r\n //System.out.println(\"Inside IF ANGLOSASSONE\");\r\n listToOrder = anglosaxonClassOrder;\r\n mergeNote = true;\r\n }\r\n else if(typeOrder.name().equals(\"DIATONICA\"))\r\n {\r\n //System.out.println(\"Inside IF DIATONICA\");\r\n listToOrder = diatonicNoteOrder;\r\n }\r\n else if(typeOrder.name().equals(\"PITCH_CLASS\"))\r\n {\r\n //System.out.println(\"Inside IF PITCH_CLASS\");\r\n listToOrder = anglosaxonClassOrder;\r\n getIndex = true;\r\n }\r\n\r\n for(int k=0; k<listToOrder.size(); k++)\r\n {\r\n String keyMap = \"\";\r\n if(inputMap.containsKey(listToOrder.get(k)))\r\n {\r\n if(mergeNote)\r\n {\r\n if(listToOrder.get(k).equals(\"C#\") || listToOrder.get(k).equals(\"Db\"))\r\n keyMap = \"C#/Db\";\r\n else if(listToOrder.get(k).equals(\"D#\") || listToOrder.get(k).equals(\"Eb\"))\r\n keyMap = \"D#/Eb\";\r\n else if(listToOrder.get(k).equals(\"F#\") || listToOrder.get(k).equals(\"Gb\"))\r\n keyMap = \"F#/Gb\";\r\n else if(listToOrder.get(k).equals(\"G#\") || listToOrder.get(k).equals(\"Ab\"))\r\n keyMap = \"G#/Ab\";\r\n else if(listToOrder.get(k).equals(\"A#\") || listToOrder.get(k).equals(\"Bb\"))\r\n keyMap = \"A#/Bb\";\r\n else\r\n keyMap = listToOrder.get(k);\r\n }\r\n else\r\n {\r\n if(!getIndex)\r\n keyMap = listToOrder.get(k);\r\n else\r\n {\r\n String tmpIndex = \"\";\r\n if(listToOrder.get(k).equals(\"C#\") || listToOrder.get(k).equals(\"Db\"))\r\n {\r\n tmpIndex = \"C#/Db\";\r\n keyMap = Integer.toString(pitchClassOrder.indexOf(tmpIndex));\r\n System.out.println(\"tmpIndex: \" + tmpIndex + \" keyMap: \" + keyMap);\r\n }\r\n\r\n else if(listToOrder.get(k).equals(\"D#\") || listToOrder.get(k).equals(\"Eb\"))\r\n {\r\n tmpIndex = \"D#/Eb\";\r\n keyMap = Integer.toString(pitchClassOrder.indexOf(tmpIndex));\r\n System.out.println(\"tmpIndex: \" + tmpIndex + \" keyMap: \" + keyMap);\r\n }\r\n else if(listToOrder.get(k).equals(\"F#\") || listToOrder.get(k).equals(\"Gb\"))\r\n {\r\n tmpIndex = \"F#/Gb\";\r\n keyMap = Integer.toString(pitchClassOrder.indexOf(tmpIndex));\r\n System.out.println(\"tmpIndex: \" + tmpIndex + \" keyMap: \" + keyMap);\r\n }\r\n else if(listToOrder.get(k).equals(\"G#\") || listToOrder.get(k).equals(\"Ab\"))\r\n {\r\n tmpIndex = \"G#/Ab\";\r\n keyMap = Integer.toString(pitchClassOrder.indexOf(tmpIndex));\r\n System.out.println(\"tmpIndex: \" + tmpIndex + \" keyMap: \" + keyMap);\r\n }\r\n else if(listToOrder.get(k).equals(\"A#\") || listToOrder.get(k).equals(\"Bb\"))\r\n {\r\n tmpIndex = \"A#/Bb\";\r\n keyMap = Integer.toString(pitchClassOrder.indexOf(tmpIndex));\r\n System.out.println(\"tmpIndex: \" + tmpIndex + \" keyMap: \" + keyMap);\r\n }\r\n else\r\n {\r\n tmpIndex = listToOrder.get(k);\r\n keyMap = Integer.toString(pitchClassOrder.indexOf(tmpIndex));\r\n System.out.println(\"k: \" + k + \" tmpIndex: \" + tmpIndex + \" keyMap: \" + keyMap);\r\n }\r\n } \r\n }\r\n outputMap.put(keyMap, inputMap.get(listToOrder.get(k))); \r\n } \r\n }\r\n if(debug)\r\n {\r\n System.out.println(\"getOrderResult keySet \" + outputMap.keySet());\r\n System.out.println(\"getOrderResult values \" + outputMap.values());\r\n }\r\n if(!outputMap.isEmpty())\r\n return outputMap;\r\n else\r\n {\r\n outputMap.put(\"Empty\", -1);\r\n }\r\n return outputMap;\r\n }", "private NavigableMap<Integer, Integer> m11980a(Config config) {\n NavigableMap<Integer, Integer> navigableMap = (NavigableMap) this.f9477g.get(config);\n if (navigableMap != null) {\n return navigableMap;\n }\n NavigableMap treeMap = new TreeMap();\n this.f9477g.put(config, treeMap);\n return treeMap;\n }", "@Test\r\n\tpublic void givenTreeMap_whenOrdersEntriesByComparator_thenCorrect() {\r\n\t\tTreeMap<Integer, String> map = new TreeMap<>(Comparator.reverseOrder());\r\n\t\tmap.put(3, \"val\");\r\n\t\tmap.put(2, \"val\");\r\n\t\tmap.put(1, \"val\");\r\n\t\tmap.put(5, \"val\");\r\n\t\tmap.put(4, \"val\");\r\n\r\n\t\tassertEquals(\"[5, 4, 3, 2, 1]\", map.keySet().toString());\r\n\t}", "private TreeMap<Double, String> createPreselectionMap(TreeMap<String, Double> userlist) \r\n \t{\r\n \t\tTreeMap<Double, String> ret = new TreeMap<Double, String>();\r\n \t\tfor(String key : userlist.keySet())\r\n \t\t{\r\n \t\t\tif(!ret.containsKey(userlist.get(key)))\r\n \t\t\t{\r\n \t\t\t\tret.put(userlist.get(key), key);\r\n \t\t\t}\r\n \t\t\telse\r\n \t\t\t{\r\n \t\t\t\tif(Math.random() > 0.5)\r\n \t\t\t\t{\r\n \t\t\t\t\tret.remove(userlist.get(key));\r\n \t\t\t\t\tret.put(userlist.get(key), key);\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t\treturn ret;\r\n \t}", "public static void groupingByTest3(){\r\n\t\tStream<String> ohMy = Stream.of(\"lions\", \"tigers\", \"tears\",\"tasssss\");\r\n\t\tMap<Integer, Set<String>> map = ohMy.collect(Collectors.groupingBy(String::length, TreeMap::new ,Collectors.toSet()));\r\n\t\tSystem.out.println(map);//{5=[tears, lions], 6=[tigers], 7=[tasssss]}\r\n\t\tSystem.out.println(map.getClass());//class java.util.TreeMap\r\n\t}", "private static TreeSet<Integer> b(bqf parambqf) {\n }", "public static void main(String[] args) {\n TreeSet<String> ts = new TreeSet<>(new MyComp().reversed());\n\n ts.add(\"C\");\n ts.add(\"B\");\n ts.add(\"A\");\n ts.add(\"G\");\n ts.add(\"Z\");\n ts.add(\"Q\");\n\n for (String element : ts){\n System.out.print(element);\n }\n }", "public static void main(String[] args) {\n\r\n\t\tSortByValue sbv = new SortByValue();\r\n\t\tsbv.setValueOnMap(12, \"Aarti\");\r\n\t\tsbv.setValueOnMap(15, \"Sonam\");\r\n\t\tsbv.setValueOnMap(17, \"Anita\");\r\n\t\tsbv.setValueOnMap(13, \"Premlata\");\r\n\t\tsbv.setValueOnMap(14, \"Komal\");\r\n\t\tsbv.setValueOnMap(20, \"Namita\");\r\n\t\tsbv.setValueOnMap(25, \"Babita\");\r\n\t\t\r\n\t\tMap<Integer, String> _map = sbv.getValueFromMap();\r\n\t\t/*Iterator<Map.Entry<Integer, String>> _it = _map.entrySet().iterator();\r\n\t\twhile(_it.hasNext()){\r\n\t\t\tMap.Entry<Integer, String> _map_value = _it.next();\r\n\t\t\tSystem.out.println(_map_value.getKey()+\"|\"+_map_value.getValue());\r\n\t\t}*/\r\n\t\t\r\n\t\tSet<Entry<Integer, String>> set = _map.entrySet();\r\n\t\tList<Entry<Integer, String>> list = new ArrayList<Entry<Integer, String>>(set);\r\n\t\tSystem.out.println(\"HashMap values Before sort:\");\r\n\t\tfor(Map.Entry<Integer, String> listBeforeSort : list){\r\n\t\t\tSystem.out.println(listBeforeSort.getKey()+\" | \"+listBeforeSort.getValue());\r\n\t\t}\r\n\t\t\r\n\t\tCollections.sort(list, new Comparator<Map.Entry<Integer, String>>(){\r\n\t\t\tpublic int compare(Map.Entry<Integer, String> value1, Map.Entry<Integer, String> value2){\r\n\t\t\t\treturn value1.getValue().compareTo(value2.getValue());\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tSystem.out.println(\"HashMap values After sort:\");\r\n\t\tfor(Map.Entry<Integer, String> listBeforeSort : list){\r\n\t\t\tSystem.out.println(listBeforeSort.getKey()+\" | \"+listBeforeSort.getValue());\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n Set<String> list = new TreeSet<>();\n list.add(\"Song\");\n list.add(\"Album\");\n list.add(\"Artist\");\n list.add(\"Year\");\n list.add(\"Genre\");\n list.add(\"Song\");\n list.add(\"Song\");\n\n System.out.println();\n for(String x : list){\n System.out.println(x);\n }\n\n //NO REPITTED VALUES AND ASCENDED ORDER WHIT COMPARABLE, HASHCODE AND EQUALS\n Set<Persona> list2 = new TreeSet<>();\n list2.add(new Persona(1, \"Rayman\"));\n list2.add(new Persona(2, \"Castlevania\"));\n list2.add(new Persona(3, \"Silent Hill\"));\n list2.add(new Persona(4, \"Silent Hill\"));\n list2.add(new Persona(1, \"Rayman\"));\n\n System.out.println();\n for(Persona x : list2){\n System.out.println(x.getId() + \" - \" + x.getName());\n }\n }", "private Map<String, Object> sortMap(Map<String, Object> map)\n {\n return new TreeMap<>(map);\n }", "@SuppressWarnings(\"ReferenceEquality\") // cannot use equals() for check whether tree is the same\n private PersistentSortedMap<K, V> mapFromTree(@Var @Nullable Node<K, V> newRoot) {\n if (newRoot == root) {\n return this;\n } else if (newRoot == null) {\n return of();\n } else {\n // Root is always black.\n newRoot = newRoot.withColor(Node.BLACK);\n return new PathCopyingPersistentTreeMap<>(newRoot);\n }\n }", "public static void main(String[] args) {\n\n\n TreeSet<String> t = new TreeSet();\n\n t.add(\"A\");\n t.add(\"B\");\n t.add(\"C\");\n\n TreeSet<String> u = t;\n\n for (String x : t) {\n System.out.println(x);\n u.add(\"\" + new Date());\n }\n\n }", "public static void main(String[] args) throws ParseException {\n HashMap<Date, String> hmap = new HashMap<Date, String>();\n /* hmap.put(5, \"A\");\n hmap.put(11, \"C\");\n hmap.put(4, \"Z\");\n hmap.put(662, \"Y\");\n hmap.put(9, \"P\");\n hmap.put(661, \"Q\");\n hmap.put(0, \"R\");*/\n \n Date date = new Date();\n \n SimpleDateFormat ft = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\");\n\t//format.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\n\tString dat = \"2017-06-05T08:07:34.000Z\";\n\tString dats = \"2017-06-05T21:07:34.012Z\";\n\tDate datesss = ft.parse(dat);\n\tDate da = ft.parse(dats);\n\tSystem.out.println(\"ok fine :\"+ft.format(datesss));\n hmap.put(datesss,\"u\");\n hmap.put(da,\"l\");\n\n System.out.println(\"Before Sorting:\");\n Set set = hmap.entrySet();\n Iterator iterator = set.iterator();\n while(iterator.hasNext()) {\n Map.Entry me = (Map.Entry)iterator.next();\n System.out.print(me.getKey() + \": \");\n System.out.println(me.getValue());\n }\n Map<Date, String> map = new TreeMap<Date, String>(hmap); \n String ab = map.get(map.keySet().toArray()[0]);\n\n/*Date firstKey = (Date) map.keySet().toArray()[0];\nString valueForFirstKey = map.get(firstKey);\n System.out.println(firstKey);\n System.out.println(valueForFirstKey);*/\n System.out.println(\"After Sorting:\");\n Set set2 = map.entrySet();\n Iterator iterator2 = set2.iterator();\n while(iterator2.hasNext()) {\n Map.Entry me2 = (Map.Entry)iterator2.next();\n System.out.print(me2.getKey() + \": \");\n System.out.println(me2.getValue());\n }\n System.out.println(\"#######################################################\");\n /* Map<Date, String> mat = new TreeMap<Date, String>(new Comparator<Date>() {\n public int compare(Date d1, Date d2) {\n return d1.after(d2) ? 1 : -1;\n }\n });*/\n \n Map<Long, String> mat = new TreeMap<Long, String>();\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\");\n Date d1 = dateFormat.parse(\"2017-06-05T08:07:34.000Z\");\n Date d2 = dateFormat.parse(\"2017-06-05T21:07:34.000Z\");\n Date d3 = dateFormat.parse(\"2021-04-12T21:10:25.000Z\");\n \n// String firstKey = (String) mat.keySet().toArray()[0];\n//\tString valueForFirstKey = (String) mat.get(firstKey);\n\tlong epocha = new java.text.SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\").parse(\"2017-06-05T08:07:34.000Z\").getTime() / 1000;\n\tlong epochb = new java.text.SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\").parse(\"2008-06-05T21:07:34.000Z\").getTime() / 1000;\n\tlong epochc = new java.text.SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\").parse(\"2015-01-07T20:57:40.000Z\").getTime() / 1000;\n\tlong epochd = new java.text.SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\").parse(\"2015-01-30T00:32:20.000Z\").getTime() / 1000;\n\t\n\tmat.put(epocha, \"s2\");\n mat.put(epochb, \"s1\");\n mat.put(epochc, \"s3\");\n mat.put(epochd,\"s4\");\n\t\n\tSystem.out.println(\"epoch:\"+epocha);\n\tSystem.out.println(\"epocha:\"+epochb);\n\tSystem.out.println(\"epochc:\"+epochc);\n\tSystem.out.println(\"epochd:\"+epochd);\n//\tSystem.out.println(firstKey);\n//\tSystem.out.println(valueForFirstKey);\n \n System.out.println(mat );\n \n \n \n \n /* System.out.println(map.size());\n int firstKey1 = (Integer) map.keySet().toArray()[6];\n System.out.println(\"firstKey1:\"+firstKey1);\n\tString valueForFirstKey2 = (String) map.get(firstKey1);\n\tSystem.out.println(\"valueForFirstKey2 :\"+valueForFirstKey2);*/\n}", "private Map<String,List<Invertedindex>> collecting() //\r\n {\r\n Map<String,List<Invertedindex>> maps = new TreeMap<>();\r\n for (Core pon:pondred){\r\n for(Map.Entry<String,Double> term:pon.allTerms.entrySet()){\r\n if (maps.containsKey(term.getKey())){\r\n List<Invertedindex> index = maps.get(term.getKey());\r\n index.add(new Invertedindex(pon.m_cle,term.getValue(),pon.getBalise(term.getKey())));\r\n maps.put(term.getKey(), index);\r\n }else {\r\n List<Invertedindex> index = new ArrayList<>();\r\n index.add(new Invertedindex(pon.m_cle,term.getValue(),pon.getBalise(term.getKey())));\r\n maps.put(term.getKey(), index);\r\n }\r\n if(cleFreq.containsKey(pon.m_cle))\r\n cleFreq.put(pon.m_cle,cleFreq.get(pon.m_cle)+term.getValue());\r\n else cleFreq.put(pon.m_cle,term.getValue());\r\n\r\n }\r\n }\r\n return maps;\r\n }", "public static void main(String[] args) {\n\n// SortedSet<Integer> set=new TreeSet<>();\n// set.add(45);\n// set.add(3);\n// set.add(12);\n// System.out.println(set);\n\n SortedSet<User> set=new TreeSet<>();\n set.add(new User(34,\"r\"));\n set.add(new User(4,\"j\"));\n set.add(new User(14,\"x\"));\n System.out.println(set);\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tMap<Integer, Integer> map =new HashMap<>();\r\n\t\tmap.put(1, 8);\r\n\t\tmap.put(2, 2);\r\n\t\tmap.put(3, 9);\r\n\t\tmap.put(4, 2);\r\n\t\t\r\n\t\t\r\n\t\tSet<Entry<Integer, Integer>> ss = new HashSet<>(map.entrySet());\r\n\t\tList<Entry<Integer, Integer>> ll = new ArrayList<>(map.entrySet());\r\n\t\t\r\n\t\tfor(Map.Entry<Integer, Integer> map1: ll)\r\n\t\t{\r\n\t\t\tSystem.out.println(map1.getKey()+\" :: \"+map1.getValue());\r\n\t\t}\r\n\t\t\r\n\t\tCollections.sort(ll,new SortByValue());\r\n\t\tSystem.out.println(\"-------------------------------\");\r\n\t\t\r\n\t\tfor(Map.Entry<Integer, Integer> map1: ll)\r\n\t\t{\r\n\t\t\tSystem.out.println(map1.getKey()+\" :: \"+map1.getValue());\r\n\t\t}\r\n\r\n\t}", "public static void main(String[] args) {\n\t\tTreeMap<String,Long> actorMap = new TreeMap<String, Long>();\t\t\n\t\tactorMap.put(\"Varun Dhawan\", 9966337744L);\n\t\tactorMap.put(\"Jonny Depp\", 9912347744L);\n\t\tactorMap.put(\"Robert Jr.\", 9967837744L);\n\t\tactorMap.put(\"Aalia Bhat\", 9526335744L);\n\t\tactorMap.put(\"Shraddha Kapoor\", 9963337744L);\n\t\t\n\t\tSystem.out.println(\"Phone No of Varun Dhawan : \" + actorMap.get(\"Varun Dhawan\"));\n\t\t\n\t\tSystem.out.println(actorMap);\n\t\n\t\tSystem.out.println(\"-------------------------------------------------\");\n\t\tSet<String> actor = actorMap.keySet();\n\t\tSystem.out.println(\"User Iterator\");\n\t\tIterator<String> it = actor.iterator();\n\t\twhile(it.hasNext()) {\n\t\t\tString actorName = it.next();\n\t\t\tlong phNo = actorMap.get(actorName);\n\t\t\tSystem.out.println(\"Actor Name : \" + actorName + \"\\tPhone Number : \" + phNo);\n\t\t}\n\t\tSystem.out.println(\"-------------------------------------------------\");\n\t\t\n\t\tNavigableMap<String, Long> hdMap = actorMap.headMap(\"Shraddha Kapoor\", false);\n\t\tSystem.out.println(\"Head Map : \" +hdMap);\n\t\t\n\t\tSystem.out.println(\"-------------------------------------------------\");\n\t\t\n\t\tNavigableMap<String, Long> tlMap = actorMap.tailMap(\"Shraddha Kapoor\", false);\n\t\tSystem.out.println(\"Tail Map : \" +tlMap);\n\t\t\n\t\tSystem.out.println(\"-------------------------------------------------\");\n\t\t\n\t\tSortedMap<String, Long> sbMap = actorMap.subMap(\"Aalia Bhat\", \"Shraddha Kapoor\");\n\t\tSystem.out.println(\"Sub Map : \" +sbMap);\n\t\t\n\t\tSystem.out.println(\"-------------------------------------------------\");\n\t\t\n\t\tSystem.out.println(\"Ceiling of Shraddha Kapoor is \" + actorMap.ceilingKey(\"Shraddha Kapoor\") );\n\t\t\n\t\tSystem.out.println(\"-------------------------------------------------\");\n\t\t\n\t\tSystem.out.println(\"Floor of Shraddha Kapoor is \" + actorMap.floorKey(\"Shraddha Kapoor\"));\n\t\t\n\t\tSystem.out.println(\"-------------------------------------------------\");\n\t\t\n\t\tSystem.out.println(\"Higher of Shraddha Kapoor is \" + actorMap.higherKey(\"Shraddha Kapoor\"));\n\t\t\n\t\tSystem.out.println(\"-------------------------------------------------\");\n\t\t\n\t\tSystem.out.println(\"Lower of Shraddha Kapoor is \" + actorMap.lowerKey(\"Shraddha Kapoor\"));\n\t\t\n\t}", "@Override\n public Set<Map.Entry<String, T>> entrySet() {\n Set<Map.Entry<String, T>> entrySet = new TreeSet<>();\n for (Map.Entry<String, Map.Entry<String, T>> v : entries.entrySet()) {\n entrySet.add(new Entry<>(v));\n }\n return entrySet;\n }", "public static void main(String[] args) {\n SortedSet<Long> longTreeSet = new TreeSet<>();\n longTreeSet.add(3L);\n longTreeSet.add(3L);\n longTreeSet.add(39L);\n longTreeSet.add(30L);\n longTreeSet.add(30L);\n\n System.out.println(\"longTreeSet = \" + longTreeSet);\n System.out.println(\"longTreeSet.size() = \" + longTreeSet.size());\n System.out.println(\"longTreeSet.first() = \" + longTreeSet.first());\n System.out.println(\"longTreeSet.last() = \" + longTreeSet.last());\n\n longTreeSet.addAll(Arrays.asList(15L, 18L, 15L, 18L));\n System.out.println(\"longTreeSet = \" + longTreeSet);\n\n //longTreeSet.add(null);\n // System.out.println(\"longTreeSet = \" + longTreeSet);\n\n\n System.out.println(\"longTreeSet.subSet(15L, 21L) = \" + longTreeSet.subSet(15L, 30L));\n System.out.println(\"longTreeSet.headSet(18L) = \" + longTreeSet.headSet(18L));\n System.out.println(\"longTreeSet.tailSet(18L) = \" + longTreeSet.tailSet(18L));\n\n SortedSet<Long> tailView = longTreeSet.tailSet(18L);\n System.out.println(\"tailView.remove(30L) = \" + tailView.remove(30L));\n System.out.println(\"longTreeSet = \" + longTreeSet);\n\n\n\n }", "public static void main(String[] args) {\n\t\t\n\t\tTreeMap<String, Integer> tm = new TreeMap<String, Integer>();\n\t\ttm.put(\"ran\", Integer.parseInt(\"123\"));\n\t\ttm.put(\"Jing\", Integer.parseInt(\"456\"));\n\t\ttm.put(\"Jing\", Integer.parseInt(\"4567\"));\n\t\t\n\t\tTreeMapSample.print(tm);\n\t\t\n\t\tTreeMap<sampleObject, Integer> tm2 = new TreeMap<sampleObject, Integer>();\n\t\ttm2.put(new sampleObject(\"t1\", 72), 789);\n\t\ttm2.put(new sampleObject(\"t2\", 23), 157);\n\t\tTreeMapSample.print(tm2);\n\n\t}", "@Override\n\tpublic List<Map<String, Object>> selectToTreeNocheckMap(Map param) {\n\t\treturn codeRegorgMapper.selectToTreeNocheckMap(param);\n\t}", "public static void main(String[] args) {\n HashSet<String> hashSet = new HashSet<>();\n hashSet.add(\"Orange\");\n hashSet.add(\"Red\");\n hashSet.add(\"Pink\");\n hashSet.add(\"Red\");\n hashSet.add(\"White\");\n System.out.println(hashSet);\n TreeSet<String> treeSet = new TreeSet<>(hashSet);\n for (String color : treeSet) {\n System.out.println(color);\n }\n\n }", "public static void main(String[] args) {\n TreeSet<Person> personsByName=new TreeSet<>(new NameComparator());\n personsByName.add(new Person(\"Popescu\", 27));\n personsByName.add(new Person(\"Ionescu\", 32));\n personsByName.add(new Person(\"Andrei\", 18));\n\n for (Person p:personsByName){\n System.out.println(\"nume: \"+p.getName()+\", varsta:\"+p.getAge());\n }\n\n //creating a TreeSet with persons sorted by age\n TreeSet<Person> personsByAge=new TreeSet<>(new AgeComparator());\n personsByAge.addAll(personsByName);\n\n for (Person p:personsByAge){\n System.out.println(\"nume: \"+p.getName()+\", varsta:\"+p.getAge());\n }\n\n //creating an HashMap with persons and hobbies\n HashMap<Person, List<Hobby>> personHobbies=new HashMap<>();\n\n Adress a1=new Adress(\"Lacul Morii\", \"Bucuresti\", \"Romania\");\n Adress a2=new Adress(\"Tineretului\", \"Bucuresti\", \"Romania\");\n Adress a3=new Adress(\"Bois de Vincennes\", \"Paris\", \"France\");\n Adress a4=new Adress(\"Via Capella\", \"Nocelle\", \"Italy\");\n\n List<Adress> adressesForHobby1=new ArrayList<>();\n adressesForHobby1.add(a1);\n adressesForHobby1.add(a2);\n adressesForHobby1.add(a4);\n\n List<Adress> adressesForHobby2=new ArrayList<>();\n adressesForHobby2.add(a3);\n adressesForHobby2.add(a4);\n\n Hobby hobby1=new Hobby(\"running\", 4, adressesForHobby1);\n Hobby hobby2=new Hobby(\"cycling\", 3, adressesForHobby2);\n\n List<Hobby> hobbies=new ArrayList<>();\n hobbies.add(hobby1);\n hobbies.add(hobby2);\n\n Person person=new Person(\"Popescu\", 27);\n personHobbies.put(person, hobbies);\n for (Hobby h: personHobbies.get(person)){\n for (Adress adr: h.getAdresses()){\n System.out.println(h.getName()+\" \"+adr.getCountry());\n }\n }\n\n\n\n\n\n }", "public SyncedTreeSet() {\n _treeSet = new TreeSet<T>();\n }", "public static void print(TreeMap tm) {\n\t Set<Entry<String, Integer>> set = tm.entrySet();\n\t Iterator iterator = set.iterator();\n\t while(iterator.hasNext()) {\n\t Map.Entry mentry = (Map.Entry)iterator.next();\n\t System.out.println(mentry.getKey().getClass());\n\t if (mentry.getKey() instanceof sampleObject) {\n\t \t System.out.print(\"key is: \"+ ((sampleObject)mentry.getKey()).id + \"--\" +\n\t \t\t\t ((sampleObject)mentry.getKey()).username + \" & Value is: \");\n\t }else{\n\t \t System.out.print(\"key is: \"+ mentry.getKey() + \" & Value is: \");\n\t }\n\t System.out.println(mentry.getValue());\n\t }\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\t TreeSet<String> treeset = new TreeSet<String>();\r\n\t\t treeset.add(\"Good\");\r\n\t\t treeset.add(\"For\");\r\n\t\t treeset.add(\"Health\");\r\n\t\t //Add Duplicate Element\r\n\t\t treeset.add(\"Good\");\r\n\t\t System.out.println(\"TreeSet : \");\r\n\t\t for (String temp : treeset) {\r\n\t\t System.out.println(temp);\r\n\t\t }\r\n\t\t }", "List<Vertex> assignBumpOrdering(Tree t) throws FactorException {\n\t\treturn assignBumpOrdering(t, t._vertices.values().iterator().next());\n\t}", "private void createBitStremMap(){\n itemListMap = new HashMap<>();\n \n for (ArrayList<Integer> transactions_set1 : transactions_set) {\n ArrayList curr_tr = (ArrayList) transactions_set1;\n if(curr_tr.size() >= min_itemset_size_K) \n for (Object curr_tr1 : curr_tr) {\n int item = (int) curr_tr1;\n itemListMap.put(item, itemListMap.getOrDefault(item, 0)+1);\n }\n }\n \n // 3. Remove items without minimum support\n itemListMap.values().removeIf(val -> val<min_sup);\n \n // 4. Sort the map to a set of entries\n Set<Map.Entry<Integer, Integer>> set = itemListMap.entrySet();\n frequentItemListSetLenOne = new ArrayList<>(set);\n Collections.sort( frequentItemListSetLenOne, new Comparator<Map.Entry<Integer, Integer>>(){\n @Override\n public int compare( Map.Entry<Integer, Integer> o1, Map.Entry<Integer, Integer> o2 )\n {\n return (o2.getValue()).compareTo( o1.getValue() );\n }\n });\n\n // 5.\n itemIndex = new HashMap<>();\n for(Map.Entry<Integer, Integer> entry : frequentItemListSetLenOne){\n itemIndex.put(entry.getKey(), itemIndex.size());\n }\n\n // 6.\n bitsetLen = frequentItemListSetLenOne.size();\n }", "public static void main(String[] args) {\n Map<String, Set<Integer>> ms = new HashMap<>(); \n Set<Integer> s1 = new HashSet<>(Arrays.asList(1,2,3));\n Set<Integer> s2 = new HashSet<>(Arrays.asList(4,5,6));\n Set<Integer> s3 = new HashSet<>(Arrays.asList(7,8,9));\n ms.put(\"one\", s1);\n ms.put(\"two\", s2);\n ms.put(\"three\", s3);\n System.out.println(ms); \n // ch07.collections.Ch0706InterfacesVsConcrete$1\n // {one=[1, 2, 3], two=[4, 5, 6], three=[7, 8, 9]}\n\n // this is how LinkedHashMap<Integer,Tuple2<String,LinkedHashMap<Double,String>>>\n // can be initially initialized\n LinkedHashMap<Integer,Tuple2<String,LinkedHashMap<Double,String>>> toc =\n new LinkedHashMap<>();\n System.out.println(toc); // just using toc to get rid of eclipse warning about not using it\n \n \n\n\n\n }", "public static void main(String[] args) {\n Set<BankAccount> set=new TreeSet(new BankAccountTest());\n\tset.add(new BankAccount(128,\"mallika\",2000.0));\n\tset.add(new BankAccount(124,\"sallika1\",21000.0));\n\tset.add(new BankAccount(125,\"nallika2\",20000));\t\n\tfor(BankAccount bank:set){\n\t\tSystem.out.println(bank);\n\t}\n \n\t}", "public static void main(String[] args) {\n\n\t\tMap <Student,Integer> m = new TreeMap<Student,Integer>(new sortById());\n\t\t\n\t\tm.put(new Student(1,\"anil\",\"prasad\") , 100);\n\t\tm.put(new Student(1,\"haridwar\",\"prasad\") , 200);\n\t\tm.put(new Student(2,\"durgesh\",\"mishra\") , 300);\n\t\tm.put(new Student(3,\"durgesh\",\"jugani\") , 400);\n\t\tSystem.out.println(m);\n\t\tfor(Map.Entry<Student,Integer> en :m.entrySet())\n\t\t{\n\t\t\tSystem.out.println(en.getKey());\n\t\t\tSystem.out.println(en.getValue());\n\t\t}\n\t\t\n\t List<Student> ss = new ArrayList<Student>(m.keySet());\n\t\tSystem.out.println(ss);\n\t\t List<Integer> st = new ArrayList<Integer>(m.values());\n\t\t\tSystem.out.println(st);\n\t}", "private TreeMap<FlworKey, List<FlworTuple>> mapExpressionsToOrderedPairs() {\n // tree map keeps the natural item order deduced from an implementation of Comparator\n // OrderByClauseSortClosure implements a comparator and provides the exact desired behavior for local execution as well\n TreeMap<FlworKey, List<FlworTuple>> keyValuePairs = new TreeMap<>(new OrderByClauseSortClosure(_expressions, true));\n\n // assign current context as parent. re-use the same context object for efficiency\n DynamicContext tupleContext = new DynamicContext(_currentDynamicContext);\n while (_child.hasNext()) {\n FlworTuple inputTuple = _child.next();\n\n List<Item> results = new ArrayList<>(); // results from the expressions will become a key\n for (OrderByClauseSparkIteratorExpression orderByExpression : _expressions) {\n tupleContext.removeAllVariables(); // clear the previous variables\n tupleContext.setBindingsFromTuple(inputTuple); // assign new variables from new tuple\n\n boolean isFieldEmpty = true;\n RuntimeIterator expression = orderByExpression.getExpression();\n expression.open(tupleContext);\n while (expression.hasNext()) {\n Item resultItem = expression.next();\n if (resultItem != null && !resultItem.isAtomic())\n throw new NonAtomicKeyException(\"Order by keys must be atomics\",\n orderByExpression.getIteratorMetadata().getExpressionMetadata());\n isFieldEmpty = false;\n results.add(resultItem);\n }\n // if empty ordering field is found, add a Java null as placeholder\n if (isFieldEmpty) {\n results.add(null);\n }\n expression.close();\n }\n FlworKey key = new FlworKey(results);\n List<FlworTuple> values = keyValuePairs.get(key); // all values for a single matching key are held in a list\n if (values == null) {\n values = new ArrayList<>();\n keyValuePairs.put(key, values);\n }\n values.add(inputTuple);\n }\n return keyValuePairs;\n }", "public static void main(String[] args) {\n\t\t\tSystem.out.println(\"10000000\".compareTo(\"2000\"));\n\t\t\t\n\t\t\tTreeMap<String, String> map = new TreeMap<>(Collections.reverseOrder());\n\t\t\tmap.put(\"1\",\"2\");\n\t\t\tmap.put(\"2\",\"1\");\n\t\t\t\n\t\t\tSet<Entry<String, String>> set = map.entrySet();\n\t\t\tIterator<Entry<String, String>> itr = set.iterator();\n\t\t\t\n\t\t\twhile(itr.hasNext()) {\n\t\t\t\tEntry<String, String> e = itr.next();\n\t\t\t\tmap.remove(e.getKey());\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(map);\n\t\t\t\n\t}", "public static void main(String[] args) {\n\t\t \n\t\tTreeSet<String> obj = new TreeSet<String>();\n\t\t\n\t\t\n\t\tobj.add(\"ABC\");\n\t\tobj.add(\"String\");\n\t\tobj.add(\"Test\");\n\t\tobj.add(\"Pen\");\n\t\tobj.add(\"Ink\");\n\t\tobj.add(\"Jack\");\n\t\t\n\t\tSystem.out.println(obj);\n\t\t\n\t\tTreeSet<Integer> obj1 = new TreeSet<Integer>();\n\t\t\n\t\tobj1.add(88);\n\t\tobj1.add(45);\n\t\tobj1.add(7);\n\t\tobj1.add(3);\n\t\tobj1.add(222);\n\t\t\n\t\tSystem.out.println(obj1);\n\t\t\n\t\t\n\n\t}", "public RbTreeMap() {\n super();\n }", "@SuppressWarnings(\"rawtypes\")\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n Map<Integer,String> map1=new TreeMap<Integer,String>();\n map1.put(101,\"this\");\n map1.put(103,\"is\");\n map1.put(102,\"TreeMap\");\n System.out.println(map1);\n Set set=map1.entrySet();\n Iterator itr=set.iterator();\n \t\t while(itr.hasNext()){\n \t\t\tMap.Entry g=(Map.Entry) itr.next();\n \t System.out.println(g.getKey()+\" \"+g.getValue());\n }\t\n \n\t}", "private SortedMap<String, String> getTileItems(Pc pc) {\r\n SortedMap<String, String> items = new TreeMap<>();\r\n\r\n if (pc.getKind() != null) {\r\n items.put(\"Class\", pc.getKind().shortString());\r\n }\r\n if (pc.getRace() != null) {\r\n items.put(\"Race\", pc.getRace().shortString());\r\n }\r\n items.put(\"Level\", String.valueOf(pc.getLevel()));\r\n return items;\r\n }", "public HashMap<Long, TreeSet<ItemSim>> getModeloSimilitud_byCoseno(int k, ArrayList<Long> test, ArrayList<Pelicula> peliculas) {\n HashMap<Long, TreeSet<ItemSim>> modelo_similitud = new HashMap<>();\r\n // Variables auxiliares:\r\n TreeSet<ItemSim> fila1;\r\n TreeSet<ItemSim> fila2;\r\n long id1;\r\n long id2;\r\n double similitud;\r\n long numPeliculas = peliculas.size();\r\n \r\n \r\n for (long i=0; i<numPeliculas; ++i){\r\n //System.out.println(\" pelicula \"+i+\" de \"+numPeliculas);\r\n //###// 1.1: Sacar la película numero i. Nota: estudiar si se pueden sacar todas de golpe.\r\n //Pelicula it1 = getPeliculaBD_byPos(instancia, i);\r\n Pelicula it1 = peliculas.get((int)i);\r\n id1 = it1.getIdPelicula();\r\n \r\n for (long j=i+1; j<numPeliculas; ++j){\r\n //###// 1.2: Sacar la película numero j.\r\n //Pelicula it2 = getPeliculaBD_byPos(instancia, j);\r\n Pelicula it2 = peliculas.get((int)j);\r\n id2 = it2.getIdPelicula();\r\n \r\n // 1.2: Calculo de la similitud entre it1 e it2.\r\n similitud = similitudCoseno(it1, it2, test);\r\n // 1.3: Guardar la similitud en una estructura.\r\n //### 1.3: En el modelo definitivo, la similitud se guardará en la base de datos.\r\n //###//Similitud s1 = new Similitud(it1.id,it2.id,similitud);\r\n // NOTA: Hay que guardar, a la vez, tanto la similitud sim(id1,id2) como sim (id2,id1)\r\n if (modelo_similitud.containsKey(id1)){\r\n fila1 = modelo_similitud.get(id1);\r\n fila1.add(new ItemSim(id2,similitud));\r\n if (fila1.size() > k){\r\n fila1.remove(fila1.last());\r\n }\r\n \r\n if (modelo_similitud.containsKey(id2)){\r\n fila2 = modelo_similitud.get(id2);\r\n fila2.add(new ItemSim(id1,similitud));\r\n if (fila2.size() > k){\r\n fila2.remove(fila2.last());\r\n }\r\n }else{\r\n modelo_similitud.put(id2, new TreeSet<ItemSim>());\r\n modelo_similitud.get(id2).add(new ItemSim(id1,similitud));\r\n }\r\n }else{\r\n modelo_similitud.put(id1, new TreeSet<ItemSim>());\r\n modelo_similitud.get(id1).add(new ItemSim(id2,similitud));\r\n \r\n if (modelo_similitud.containsKey(id2)){\r\n fila2 = modelo_similitud.get(id2);\r\n fila2.add(new ItemSim(id1,similitud));\r\n if (fila2.size() > k){\r\n fila2.remove(fila2.last());\r\n }\r\n }else{\r\n modelo_similitud.put(id2, new TreeSet<ItemSim>());\r\n modelo_similitud.get(id2).add(new ItemSim(id1,similitud));\r\n }\r\n }\r\n \r\n }\r\n }\r\n \r\n return modelo_similitud;\r\n }", "static <K,V extends Comparable<? super V>> SortedSet<Map.Entry<K,V>> entriesSortedByValues(Map<K,V> map) {\n\t\t SortedSet<Map.Entry<K,V>> sortedEntries = new TreeSet<Map.Entry<K,V>>(\n\t\t new Comparator<Map.Entry<K,V>>() {\n\t\t @Override public int compare(Map.Entry<K,V> e1, Map.Entry<K,V> e2) {\n\t\t int res = e1.getValue().compareTo(e2.getValue());\n\t\t return res != 0 ? res : 1;\n\t\t }\n\t\t }\n\t\t );\n\t\t sortedEntries.addAll(map.entrySet());\n\t\t return sortedEntries;\n\t\t}", "static void topView(TreeNode root) \n\t{ \n\t fillMap(root, 0, 0); \n\t \n\t for (Map.Entry<Integer, \n\t \t\tPairNode> entry : m.entrySet()) \n\t { \n\t System.out.print(entry.getValue().first + \" \"); \n\t } \n\t}", "public static void main(String[] args) {\n\t\tTreeSet<Integer> numset = new TreeSet<Integer>();//stored in order\n\t\tnumset.add(10);\n\t\tnumset.add(40); //string buffer is not implementing comparable class so it cannot be used in tree set\n\t\tnumset.add(30);\n\t\tnumset.add(20);\n\t\tnumset.add(10);\n\t\tSystem.out.println(numset);\n\t\tSystem.out.println(numset.headSet(40));//gives values lesser than it\n\t\tSystem.out.println(numset.tailSet(10));//gives equal or greater than it\n\t\tSystem.out.println(numset.subSet(10, 30));//gives starting values from starting and value before last element\n\t\tSortedSet<Integer> set2= new TreeSet<Integer>(); //store in sorted set\n\t\t\n\t\tset2=numset.subSet(10, 30);\n\t\tSystem.out.println(\"subset is \"+set2);\n\t\tSystem.out.println(numset.comparator());//returns null if values are already in order\n\t\tSystem.out.println(numset.higher(10));//gives value higher than this\n\t\tSystem.out.println(numset.lower(30));//gives value lower than this\n\t\tSystem.out.println(numset.descendingSet());\n\t\t\n\t\tIterator<Integer> iterator=numset.iterator();\n\t\twhile(iterator.hasNext()) {\n\t\t\tSystem.out.println(iterator.next());\n\t\t}\n\t\tIterator<Integer> iterator2=numset.descendingIterator();\n\t\twhile(iterator2.hasNext()) {\n\t\t\tSystem.out.println(iterator2.next());\n\t\t}\n\t}", "public void makeTree(){\n //convert Hashmap into charList\n for(Map.Entry<Character,Integer> entry : freqTable.entrySet()){\n HuffmanNode newNode = new HuffmanNode(entry.getKey(),entry.getValue());\n charList.add(newNode);\n }\n \n if(charList.size()==0)\n return;\n \n if(charList.size()==1){\n HuffmanNode onlyNode = charList.get(0);\n root = new HuffmanNode(null,onlyNode.getFrequency());\n root.setLeft(onlyNode);\n return;\n }\n \n Sort heap = new Sort(charList);\n heap.heapSort();\n \n while(heap.size()>1){\n \n HuffmanNode leftNode = heap.remove(0);\n HuffmanNode rightNode = heap.remove(0);\n \n HuffmanNode newNode = merge(leftNode,rightNode);\n heap.insert(newNode);\n heap.heapSort();\n }\n \n charList = heap.getList();\n root = charList.get(0);\n }", "public static void main(String[] args) {\n\t\tTreeMap<Employee, String> map = new TreeMap<Employee, String>();\n\t\tEmployee emp1 = new Employee(1, \"saravanan\", new Date());\n\t\tEmployee emp2 = new Employee(2, \"selvakumar\", new Date());\n\t\tEmployee emp3 = new Employee(3, \"seduraman\", new Date());\n\t\tEmployee emp4 = new Employee(1, \"saravanan\", new Date());\n\t\tmap.put(emp1, null);\n\t\tmap.put(emp2, null);\n\t\tmap.put(emp3, null);\n\t\tmap.put(emp4, null);\n\t\t\n\t}", "private TreeMap<Double, String> createRandomTreeMap(TreeMap<Double, String> userlist) \r\n \t{\r\n \t\ttotalPoints = calcTotalPoints(userlist);\r\n \t\tTreeMap<Double, String> ret = new TreeMap<Double, String>();\r\n \t\tfillMap(userlist, ret);\r\n \r\n \t\treturn ret;\r\n \t}", "public static void main(String[] args) {\n\t\tMap<String,Double> items = new HashMap<>();\r\n\t\t\r\n\t\titems.put(\"Toaster\",350.00);\t\t//inits elements into map [STRING == KEY; DOUBLE == VALUE]\r\n\t\titems.put(\"Dongle\", 5.99);\r\n\t\titems.put(\"Sham Wow\", 19.99);\r\n\t\titems.put(\"Flex Seal\",19.99);\r\n\t\t\r\n\t\tSet<String> setOKeys = items.keySet();\r\n\t\tint count = 0;\r\n\t\tfor(String key : items.keySet()){\r\n\t\t\tSystem.out.print(++count + \") \" + key + \": $\" /*+ items.get(key)USED IN NORMAL FORMAT; NEEDED TO UPDATE FOR 2 DECI POINTS see below*/);\r\n\t\t\tSystem.out.printf(\"%.2f\\n\", items.get(key));\t//printf; decimal format to help\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(items.containsKey(\"Sham Wow\"));\r\n\t\tSystem.out.println(items.containsValue(19.99));\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t//ANIMAL BOOK HASH MAP EXAMPLE\r\n\t\tMap<String, Integer> ani = new HashMap<>();\r\n\t\tani.put(\"Toucan\", 40);\r\n\t\tani.put(\"Lizard\", 7);\t\t\t//Stored by Integer value\r\n\t\tani.put(\"Wallaby\", 18);\r\n\t\t\r\n\t\tSystem.out.println(ani.get(\"Lizard\"));\r\n\t\t\r\n\t\tani.remove(\"Toucan\");\r\n\t\t\r\n\t\tSystem.out.println(ani); //toString Method is in the collections class automatically\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t//TREE MAP\r\n\t\tSet<Character> letters = new TreeSet<>(); //LINKEDHASHSET will be unordered\r\n\t\tletters.add('b');\r\n\t\tletters.add('c');\r\n\t\tletters.add('a');\r\n\t\tletters.add('c');\t\t//duplicate REMOVED automatically\r\n\t\t\r\n\t\tSystem.out.println(letters);\r\n\t\t\r\n\t\tletters.remove('b');\r\n\t\tSystem.out.println(letters);\r\n\t\t\r\n\t\tSystem.out.println(letters.contains('f'));\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tLinkedList<String> food = new LinkedList<>(); //can do list-linked list, linked list-linked list\r\n\t\t\r\n\t\tfood.add(\"Sauerkraut\");\r\n\t\tfood.add(\"Carrots\");\r\n\t\tfood.add(\"Mud\");\r\n\t\tfood.add(1, \"Margarine\"); //at indx 1; Margarine\r\n\t\t\r\n\t\tCollections.sort(food); //method in collections class which sorts\r\n\t\tfood.toString();\r\n\t\t//food.clear(); clears list\r\n\t\t\r\n\t\tString marg = food.get(3);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tQueue<String> cities = new PriorityQueue<>();\r\n\t\t\r\n\t\tcities.offer(\"Detroit\");\t\t//QUEUES 'OFFER'\r\n\t\tcities.offer(\"Los Angeles\");\r\n\t\tcities.offer(\"Vienna\");\r\n\t\tcities.offer(\"Windsor\");\r\n\t\t\r\n\t\tSystem.out.println(cities.peek()); //insertion order\r\n\t\tSystem.out.println(cities);\r\n\t\t\r\n\t\tStack<String> dishes = new Stack<>();\r\n\t\t\r\n\t\tdishes.add(\"Cereal bowl\");\r\n\t\tdishes.add(\"Lunch tray\");\r\n\t\tdishes.add(\"Pots and pans\");\r\n\t\tdishes.add(\"Dinner fork\");\r\n\t\t\r\n\t\tSystem.out.println(dishes.peek());\r\n\t\t\r\n\t\tdishes.pop();\r\n\t\tdishes.pop();\t\t//removing the oldest; fifo \r\n\t\t\r\n\t\tSystem.out.println(dishes);\r\n\t}", "@DISPID(1610940447) //= 0x6005001f. The runtime will prefer the VTID if present\n @VTID(53)\n OrderedGeometricalSets orderedGeometricalSets();", "private static <K extends Comparable<K>, V>\n ImmutableSortedMap<K, SortedSet<V>>\n copyMap(Map<K, ? extends SortedSet<V>> map) {\n final ImmutableSortedMap.Builder<K, SortedSet<V>> b =\n ImmutableSortedMap.naturalOrder();\n for (Map.Entry<K, ? extends SortedSet<V>> e : map.entrySet()) {\n b.put(e.getKey(), ImmutableSortedSet.copyOf(e.getValue()));\n }\n return b.build();\n }", "public static void main(String[] args) {\n\t\t\n\t\tSystem.out.println(\"******************************************* Main Start *******************************************\");\n\t\tSystem.out.println(\"==================================================================================================\");\n\t\t\n\t\tInteger[] iArr1 = new Integer[] {10,2,3,5,7,2,9,1};\n\t\tList<Integer> list = Arrays.asList(new Integer[] {10,2,3,5,7,2,9,1});\n\t\tSystem.out.println(\"Array => \"+list);\n\t\tTreeSet<Integer> set = new TreeSet<>(list);\n\t\tSystem.out.println(\"Tree => \"+set);\n\t\t\n\t\tHashMap<String, Integer> mapResult = new HashMap<>();\n\t\tint iConstant = 2;\n\t\tfor (int i = 0; i < iArr1.length; i++) {\n\t\t\tint iElement = iArr1[i];\n\t\t\tint iLeft = iElement - iConstant;\n\t\t\tint iRight = iElement + iConstant;\n\t\t\tString leftPair = \"\";\n\t\t\tString rightPair = \"\";\n\t\t\tif (set.contains(iLeft)) {\n\t\t\t\tleftPair = \"(\"+iLeft+\",\"+iElement+\")\";\n\t\t\t\tmapResult.put(leftPair, iElement);\n\t\t\t}\n\t\t\tif (set.contains(iRight)) {\n\t\t\t\trightPair = \"(\"+iElement+\",\"+iRight+\")\";\n\t\t\t\tmapResult.put(rightPair, iElement);\n\t\t\t}\n\t\t}\n\t\tTreeSet<String> set1 = new TreeSet<>(mapResult.keySet());\n\t\tSystem.out.println(\"Set1 => \"+set1);\n\t\tSystem.out.println(\"Count => \"+mapResult.size()+\" paires => \"+mapResult.keySet());\n\t\tSystem.out.println(\"==================================================================================================\");\n\t\tSystem.out.println(\"******************************************* Main End *********************************************\");\n\t}", "public static <K, V> MapBuilder<TreeMap<K, V>, K, V> treeMap()\n {\n return new MapBuilder<TreeMap<K, V>, K, V>(new TreeMap<K, V>());\n }", "public static void main(String args[]){\r\n\t\t\r\n\t\t\r\n\t\tint arr[] = {2,5,2,8,5,6,8,8};\r\n\t\t\r\n\t\tMap<Integer, Integer> freqMap = new LinkedHashMap<Integer,Integer>();\r\n\t\t\r\n\t\tfor(int i = 0; i< arr.length;i++){\r\n\t\t\tif(freqMap.containsKey(arr[i])){\r\n\t\t\t\tint count = freqMap.get(arr[i]);\r\n\t\t\t\tfreqMap.put(arr[i],count + 1);\r\n\t\t\t}else{\r\n\t\t\t\tfreqMap.put(arr[i], 1);\r\n\t\t\t}\r\n\t\t}\r\n\t\t//2-2,5-2,6-1,8-3\r\n\t\t\r\n\t\tMap<Integer,ArrayList<Integer>> sortedList = new TreeMap<Integer, ArrayList<Integer>>(new Comparator<Integer>(){\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic int compare(Integer arg0, Integer arg1) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\treturn arg1.compareTo(arg0);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\t\r\n\t\tfor(Entry<Integer, Integer> entry : freqMap.entrySet()){\r\n\t\t\tint key = entry.getKey();\r\n\t\t\tint val = entry.getValue();\r\n\t\t\tif(sortedList.containsKey(val)){\r\n\t\t\t\tArrayList<Integer> list = sortedList.get(val);\r\n\t\t\t\tfor(int j = 0; j<val ; j++)\r\n\t\t\t\t\tlist.add(key);\r\n\t\t\t}else{\r\n\t\t\t\tArrayList<Integer> list = new ArrayList<Integer>();\r\n\t\t\t\tfor(int j = 0; j<val ; j++)\r\n\t\t\t\t\tlist.add(key);\r\n\t\t\t\tsortedList.put(val, list);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(sortedList.values());\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "private void createUsedSubTreeRefMap() {\n\n\t\tXmlProcessor simpleXmlProcessor = measureExport.getSimpleXMLProcessor();\n\t\tString typeXpathString = \"\";\n\t\tList<String> usedSubTreeRefIdsPop = new ArrayList<>();\n\t\tList<String> usedSubTreeRefIdsMO = new ArrayList<>();\n\t\tList<String> usedSubTreeRefIDsRA = new ArrayList<>();\n\t\tfor (String typeString : POPULATION_NAME_LIST) {\n\t\t\ttypeXpathString += \"@type = '\" + typeString + \"' or\";\n\t\t}\n\t\ttypeXpathString = typeXpathString.substring(0, typeXpathString.lastIndexOf(\" or\"));\n\t\tString xpathForSubTreeInPOPClause = \"/measure/measureGrouping//clause[\" + typeXpathString + \"]//subTreeRef/@id\";\n\t\tString xpathForSubTreeInMOClause = \"/measure/measureGrouping//clause[@type='measureObservation']//subTreeRef/@id\";\n\t\tString xpathForSubTreeInRAClause = \"/measure//riskAdjustmentVariables/subTreeRef/@id\";\n\t\ttry {\n\n\t\t\t// creating used Subtree Red Map in Populations\n\t\t\tNodeList populationsSubTreeNode = simpleXmlProcessor.findNodeList(simpleXmlProcessor.getOriginalDoc(),\n\t\t\t\t\txpathForSubTreeInPOPClause);\n\t\t\tfor (int i = 0; i < populationsSubTreeNode.getLength(); i++) {\n\t\t\t\tString uuid = populationsSubTreeNode.item(i).getNodeValue();\n\t\t\t\tuuid = checkIfQDMVarInstanceIsPresent(uuid, simpleXmlProcessor);\n\t\t\t\tif (!usedSubTreeRefIdsPop.contains(uuid)) {\n\t\t\t\t\tusedSubTreeRefIdsPop.add(uuid);\n\t\t\t\t}\n\t\t\t}\n\t\t\tusedSubTreeRefIdsPop = checkUnUsedSubTreeRef(simpleXmlProcessor, usedSubTreeRefIdsPop);\n\t\t\tfor (String uuid : usedSubTreeRefIdsPop) {\n\t\t\t\tNode subTreeNode = createUsedSubTreeRefMap(simpleXmlProcessor, uuid);\n\t\t\t\tsubTreeNodeInPOPMap.put(uuid, subTreeNode);\n\t\t\t}\n\n\t\t\t// creating used Subtree Red Map in Measure Observations\n\t\t\tNodeList measureObsSubTreeNode = simpleXmlProcessor.findNodeList(simpleXmlProcessor.getOriginalDoc(),\n\t\t\t\t\txpathForSubTreeInMOClause);\n\t\t\tfor (int i = 0; i < measureObsSubTreeNode.getLength(); i++) {\n\t\t\t\tString uuid = measureObsSubTreeNode.item(i).getNodeValue();\n\t\t\t\tuuid = checkIfQDMVarInstanceIsPresent(uuid, simpleXmlProcessor);\n\t\t\t\tif (!usedSubTreeRefIdsMO.contains(uuid)) {\n\t\t\t\t\tusedSubTreeRefIdsMO.add(uuid);\n\t\t\t\t}\n\t\t\t}\n\t\t\tusedSubTreeRefIdsMO = checkUnUsedSubTreeRef(simpleXmlProcessor, usedSubTreeRefIdsMO);\n\t\t\tfor (String uuid : usedSubTreeRefIdsMO) {\n\t\t\t\tNode subTreeNode = createUsedSubTreeRefMap(simpleXmlProcessor, uuid);\n\t\t\t\tsubTreeNodeInMOMap.put(uuid, subTreeNode);\n\t\t\t}\n\t\t\t// creating used Subtree Red in Risk Adjustment\n\t\t\tNodeList riskAdjSubTreeNode = simpleXmlProcessor.findNodeList(simpleXmlProcessor.getOriginalDoc(),\n\t\t\t\t\txpathForSubTreeInRAClause);\n\t\t\tfor (int i = 0; i < riskAdjSubTreeNode.getLength(); i++) {\n\t\t\t\tString uuid = riskAdjSubTreeNode.item(i).getNodeValue();\n\t\t\t\tuuid = checkIfQDMVarInstanceIsPresent(uuid, simpleXmlProcessor);\n\t\t\t\tif (!usedSubTreeRefIDsRA.contains(uuid)) {\n\t\t\t\t\tusedSubTreeRefIDsRA.add(uuid);\n\t\t\t\t}\n\t\t\t}\n\t\t\tusedSubTreeRefIDsRA = checkUnUsedSubTreeRef(simpleXmlProcessor, usedSubTreeRefIDsRA);\n\t\t\tfor (String uuid : usedSubTreeRefIDsRA) {\n\t\t\t\tNode subTreeNode = createUsedSubTreeRefMap(simpleXmlProcessor, uuid);\n\t\t\t\tsubTreeNodeInRAMap.put(uuid, subTreeNode);\n\t\t\t}\n\n\t\t} catch (XPathExpressionException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static Tree solve() {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n Map<Integer, Set<Integer>> map = new HashMap<Integer,Set<Integer>>();\n int[] valArr = new int[n];\n int[] colArr = new int[n];\n for(int i =0;i<n;i++){\n valArr[i] = scan.nextInt();\n }\n for(int i =0;i<n;i++){\n colArr[i] = scan.nextInt();\n }\n for(int i=0;i<n-1;i++){\n //10^10 / 1024/ 1024/1024, 10GB\n int a = scan.nextInt()-1;\n int b = scan.nextInt()-1;\n \n //Tree[] treeArr = new Tree[n];\n if(map.containsKey(a)){\n map.get(a).add(b);\n }else{\n Set<Integer> set = new HashSet<Integer>();\n set.add(b);\n map.put(a,set);\n }\n //case 1-2, 2-1\n if(map.containsKey(b)){\n map.get(b).add(a);\n }else{\n Set<Integer> set = new HashSet<Integer>();\n set.add(a);\n map.put(b,set);\n } \n }\n Set<Integer> visited = new HashSet<Integer>();\n Tree root =buildTree(map,0,0,valArr,colArr);\n return root;\n }", "private static void addEntriesToMap(\n\t\tMap<Character,Integer> map,String toSort, String poolOfOccurances\n\t\t){\n\n\t\t//Loop the toStort\n\t\tfor(int i=0;i<toSort.length();i++){\n\t\t\tmap.put(toSort.charAt(i),new Integer(getCharacterFrequence(toSort.charAt(i),poolOfOccurances)));\n\t\t}\n\n\t}", "public void test(TestHarness harness) {\n // try serializing an empty TreeMap - see bug report 10383\n TreeMap tm1 = new TreeMap();\n TreeMap tm2 = null;\n\n try {\n ByteArrayOutputStream buffer = new ByteArrayOutputStream();\n ObjectOutput out = new ObjectOutputStream(buffer);\n out.writeObject(tm1);\n out.close();\n\n ObjectInput in = new ObjectInputStream(\n new ByteArrayInputStream(buffer.toByteArray()));\n tm2 = (TreeMap) in.readObject();\n in.close();\n } catch (Exception e) {\n harness.debug(e);\n }\n harness.check(tm1.equals(tm2));\n }", "public Map<String, Integer> getgenerality(List<String> t){\n\t\tConnection conn = c3p0Utils.getConnection();\n\t\tString sql = \"select * from tag_generality\";\n\t\tResultSet rs = null;\n\t\tPreparedStatement pst = null;\n\t\tHashMap<String, Integer> a = new HashMap<String, Integer>();\n\t\ttry {\n\t\t\tconn.setAutoCommit(false);\n\t\t\tpst = conn.prepareStatement(sql);\n\t\t\trs = pst.executeQuery();\n\t\t\twhile (rs.next()) {\n\t\t\t\tif(t.contains(rs.getString(\"tag\")))\n\t\t\t\t{\n\t\t\t\t\ta.put(rs.getString(\"tag\"), rs.getInt(\"generality\"));\n\t\t\t\t\tSystem.out.println(rs.getString(\"tag\"));\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"endedededededd\");\n\t\t\trs.close();\n\t\t\tpst.close();\n\t\t\tconn.close();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn a;\n\t}", "@Override\r\n\t\t\t\tpublic int compare(Map.Entry<String, Integer> o1, Map.Entry<String, Integer> o2) {\n\t\t\t\t\treturn (o2.getValue()).compareTo(o1.getValue());\r\n\t\t\t\t}", "public TrazAqui(){\n this.utilizadores = new TreeMap<>();\n this.encomendas = new TreeMap<>();\n this.utilizador = null;\n }", "public static void main(String[] args) {\n TreeSet<Employee> treeEmp = new TreeSet<>();\n \n for(int i =0; i<100 ; i++){\n treeEmp.add(new Employee(\"Pera\"+i, (int)(Math.random()*100+1)));\n } \n \n \n Iterator<Employee> iteratorEmp = treeEmp.iterator();\n while (iteratorEmp.hasNext()) { \n Employee ite = iteratorEmp.next();\n System.out.println(\"Empployee name: \"+ite.name+\" id: \"+ite.id);\n }\n \n System.out.println(treeEmp.first());\n System.out.println(treeEmp.last());\n \n Employee e = new Employee(\"Perica499\");\n e.id = \"50\";\n treeEmp.add(e);\n Iterator<Employee> headSetIterator = treeEmp.headSet(e).iterator();\n while (headSetIterator.hasNext()) { \n System.out.println(\"object Id \"+headSetIterator.next().id);\n }\n \n System.out.println(\"*****************************\");\n \n TreeSet<Employee> emps = new TreeSet<>(new CustomComparator());\n \n \n }", "private void setupVariant1TerrainMap() {\n\n\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-4,-4), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-2,-4), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(0,-4), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(2,-4), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(4,-4), TerrainKind.SEA);\n\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-5,-3), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-3,-3), TerrainKind.FIELDS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-1,-3), TerrainKind.PASTURE);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(1,-3), TerrainKind.HILLS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(3,-3), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(5,-3), TerrainKind.SEA);\n\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-6,-2), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-4,-2), TerrainKind.FOREST);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-2,-2), TerrainKind.MOUNTAINS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(0,-2), TerrainKind.BIG_FISHERY);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(2,-2), TerrainKind.PASTURE);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(4,-2), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(6,-2), TerrainKind.SEA);\n\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-7,-1), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-5,-1), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-3,-1), TerrainKind.HILLS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-1,-1), TerrainKind.PASTURE);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(1,-1), TerrainKind.MOUNTAINS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(3,-1), TerrainKind.FIELDS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(5,-1), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(7,-1), TerrainKind.SEA);\n\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-8,0), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-6,0), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-4,0), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-2,0), TerrainKind.FOREST);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(0,0), TerrainKind.FOREST);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(2,0), TerrainKind.PASTURE);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(4,0), TerrainKind.SMALL_FISHERY);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(6,0), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(8,0), TerrainKind.SEA);\n\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-7,1), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-5,1), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-3,1), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-1,1), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(1,1), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(3,1), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(5,1), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(7,1), TerrainKind.SEA);\n\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-8,2), TerrainKind.SMALL_FISHERY);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-6,2), TerrainKind.MOUNTAINS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-4,2), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-2,2), TerrainKind.GOLDFIELD);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(0,2), TerrainKind.FIELDS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(2,2), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(4,2), TerrainKind.HILLS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(6,2), TerrainKind.MOUNTAINS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(8,2), TerrainKind.SMALL_FISHERY);\n\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-7,3), TerrainKind.SMALL_FISHERY);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-5,3), TerrainKind.PASTURE);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-3,3), TerrainKind.MOUNTAINS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-1,3), TerrainKind.PASTURE);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(1,3), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(3,3), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(5,3), TerrainKind.GOLDFIELD);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(7,3), TerrainKind.SMALL_FISHERY);\n\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-6,4), TerrainKind.SMALL_FISHERY);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-4,4), TerrainKind.HILLS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-2,4), TerrainKind.HILLS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(0,4), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(2,4), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(4,4), TerrainKind.FOREST);\n\t}", "public static void main(String[] args) {\n SortedSet<String> fruits = new TreeSet<>(Comparator.reverseOrder());\n\n /*\n The above TreeSet with the custom Comparator is the concise form of the following:\n SortedSet<String> fruits = new TreeSet<>(new Comparator<String>() {\n @Override\n public int compare(String s1, String s2) {\n return s2.compareTo(s1);\n }\n });\n */\n\n // Adding new elements to a TreeSet\n fruits.add(\"Banana\");\n fruits.add(\"Apple\");\n fruits.add(\"Pineapple\");\n fruits.add(\"Orange\");\n\n System.out.println(\"Fruits Set : \" + fruits);\n\n System.out.println(fruits.tailSet(\"Banana\"));\n System.out.println(fruits.subSet(\"Orange\", \"Banana\"));\n // creating a TreeSet\n TreeSet<Integer> treeadd = new TreeSet<>();\n\n // adding in the tree set\n treeadd.add(12);\n treeadd.add(11);\n treeadd.add(16);\n treeadd.add(15);\n\n // getting ceiling value for 13\n System.out.println(\"Ceiling value for 13: \" + treeadd.ceiling(13));//15\n System.out.println(\"Flooring value for 13: \" + treeadd.floor(13));//12\n }" ]
[ "0.6774782", "0.6745835", "0.6574753", "0.65574545", "0.65180326", "0.64113015", "0.62383884", "0.6213667", "0.6196287", "0.6150688", "0.60918427", "0.6079241", "0.606278", "0.6015446", "0.60115945", "0.59666085", "0.5965158", "0.59597266", "0.5939038", "0.593249", "0.5930177", "0.5928316", "0.589076", "0.58702713", "0.5847898", "0.5840141", "0.5832245", "0.5828558", "0.5828387", "0.5808394", "0.57870615", "0.57707167", "0.5761257", "0.57496214", "0.5745093", "0.573927", "0.5735512", "0.5732584", "0.5721914", "0.57107586", "0.5688086", "0.5687985", "0.56833404", "0.5667261", "0.56403464", "0.5638333", "0.5559586", "0.55588406", "0.55575854", "0.555158", "0.55442595", "0.5526271", "0.5510718", "0.5509108", "0.55052024", "0.54912126", "0.54860234", "0.5483119", "0.5434614", "0.54178965", "0.5406667", "0.5405308", "0.54000175", "0.5397284", "0.53941536", "0.5383598", "0.53815216", "0.53768283", "0.5364423", "0.53612393", "0.5358123", "0.5356884", "0.53546", "0.5352018", "0.53448516", "0.53391147", "0.5329736", "0.53259444", "0.53242725", "0.53177696", "0.53173125", "0.530112", "0.52782744", "0.5268197", "0.5258874", "0.52460396", "0.52412474", "0.5240849", "0.5237285", "0.523607", "0.52348113", "0.5229827", "0.52277374", "0.5226744", "0.52243507", "0.5222367", "0.5218865", "0.521529", "0.5214685", "0.5213004" ]
0.7495854
0
h(x) = x % M
private int funcaoHash(int x) { return (x % 37); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic int hashFunction(int key) {\n\t\treturn key%M;\n\t}", "public int hash2(int h, int m) {\r\n//\t\tint m = this.capability>>1 + 1;\r\n\t\treturn 1+(h%(m-1));\r\n\t}", "static int hash(int h) {\n\t\t // This function ensures that hashCodes that differ only by constant \n\t\t // multiples at each bit position have a bounded number of collisions \n\t\t // (approximately 8 at default load factor).\n\t\th ^= (h >>> 20) ^ (h >>> 12);\n\t\treturn h ^ (h >>> 7) ^ (h >>> 4);\n\t}", "public int hashFunction(String txt, int m) {\n\t\n\t\tint ans=0;\n\t\tfor(int i=0; i<txt.length(); i++)\n\t\t\tans=ans+txt.charAt(i);\n\t\t\n\t\t\n\t\n\t\treturn ans% m;\n\t}", "private long hash(String key, int M)\n {\n long h = 0;\n for (int j = 0; j < M; j++) {\n h = (R * h + key.charAt(j)) % Q;\n }\n return h;\n }", "@Override\n\tpublic int hash(K key)\n\t{\n\t\treturn (key.hashCode() & 0x7fffffff) % M;\n\t}", "private int hash(Key key) {\n\t\treturn (key.hashCode() & 0x7fffffff) % M;\n\t}", "public int hash(String key){\r\n\t\tint i;\r\n\t\tint v = 0;\r\n\t\tfor(i = 0; i < key.length(); i++)\r\n\t\t\tv += key.charAt(i);\r\n\t\treturn v % M;\r\n\t}", "public int hash1(int x)\n {\n return ((a1*(x)+b1)%n);\n }", "long modInverse(long a, long m) \r\n { \r\n\t\t long m0 = m; \r\n long y = 0, x = 1; \r\n \r\n if (m == 1) \r\n return 0; \r\n \r\n while (a > 1) \r\n { \r\n // q is quotient \r\n \tlong q = a / m; \r\n \r\n \tlong t = m; \r\n \r\n // m is remainder now, process \r\n // same as Euclid's algo \r\n m = a % m; \r\n a = t; \r\n t = y; \r\n \r\n // Update x and y \r\n y = x - q * y; \r\n x = t; \r\n } \r\n \r\n // Make x positive \r\n if (x < 0) \r\n x += m0; \r\n \r\n return x; \r\n }", "static int modInverse(int a, int m) \n\t{ \n\t\tint m0 = m; \n\t\tint y = 0, x = 1; \n\t\tif (m == 1) \n\t\t{ \n\t\t\treturn 0; \n\t\t} \n\n\t\twhile (a > 1) \n\t\t{ \n\n\t\t\t// q is quotient \n\t\t\tint q = a / m; \n\t\t\tint t = m; \n\n\t\t\t// m is remainder now, process \n\t\t\t// same as Euclid's algo \n\t\t\tm = a % m; \n\t\t\ta = t; \n\t\t\tt = y; \n\n\t\t\t// Update y and x \n\t\t\ty = x - q * y; \n\t\t\tx = t; \n\t\t} \n\n\t\t// Make x positive \n\t\tif (x < 0) \n\t\t{ \n\t\t\tx += m0; \n\t\t} \n\n\t\treturn x; \n\t}", "private int h1(int p){\n\t\t return p % table.length;\n\t}", "private int hash(T x)\n {\n // calcolo della chiave ridotta - eventualmente negativa\n int h = x.hashCode() % v.length;\n\n // calcolo del valore assoluto\n if (h < 0)\n h = -h;\n \n return h; \n }", "private int mad(K k, int m) {\n Random rand = new Random();\n /* Select the next prime number greater than m */\n int p = nextPrime(m);\n /* Choose two numbers between 1 and m - 1 */\n int a = rand.nextInt(m) + 1;\n int b = rand.nextInt(m) + 1;\n int index = ((a * k.hashCode() + b) % p) % m;\n return index;\n }", "private int hash1(K key) {\n int h = 0;\n int seed = 31;//素数\n String s = key.toString();\n for (int i = 0; i != s.length(); ++i) {\n h = seed * h + s.charAt(i);\n }\n return h % length;\n }", "public int hash2(int x)\n {\n return ((a2*(x)+b2)%n);\n }", "private int h2(int p){\n\t\tdouble A = (Math.sqrt(5) - 1) / 2;\n\t\treturn (int) Math.abs(this.table.length * ((p * A) - (int)(p * A))) % table.length;\n\t}", "static void hashTestCase(int givArr[]) {\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tint mod = givArr[i] % m;\n\t\t\tarray[mod] = givArr[i];\n\t\t}\n\t}", "private static long fibMod(long n, long m) {\n return fib(n % pisano(m), m) % m;\n }", "public int hamming() {\n if (this.hamming >= 0) return this.hamming;\n int result = 0;\n for (int i = 0; i < N; i++) {\n for (int j = 0; j < N; j++) {\n int idx = (i * N) + (j + 1);\n if (tiles[i][j] == idx) {\n result += 0;\n } else if (tiles[i][j] == 0) {\n continue;\n } else { \n result += 1;\n }\n }\n }\n this.hamming = result;\n return result;\n }", "private static long f(long m) {\n\t\tlong k = 1;\r\n\t\tfor (long i=1; i<=m; i++){\r\n\t\t\tk *= i;\r\n\t\t}\r\n\t\treturn k;\r\n\t}", "int CalcKey(int g, int x, int n)\r\n {\r\n int rtn = 1;\r\n for(int i = 0; i < x; i++)\r\n rtn = (rtn * g) % n;\r\n return rtn;\r\n }", "public int hamming() {\r\n\t\tint n = dimension();\r\n\t\tint[] tmp = IntStream.rangeClosed(1, n * n - 1).toArray();\r\n\t\tint[] tmp2 = new int[n * n - 1];\r\n\t\tint k = 0;\r\n\t\tfor (int i = 0; i < n; i++) {\r\n\t\t\tfor (int j = 0; j < n; j++) {\r\n\t\t\t\tif (k < tmp2.length) {\r\n\t\t\t\t\ttmp2[k] = this.blocks[i][j];\r\n\t\t\t\t}\r\n\t\t\t\tk++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tint hamming = IntStream.rangeClosed(0, tmp.length - 1).map(i -> tmp[i] == tmp2[i] ? 0 : 1).reduce(0,\r\n\t\t\t\t(x, y) -> x + y);\r\n\t\treturn hamming;\r\n\t}", "public static long g (int n, int m)\n\t{\n\t\tif (n == m)\n\t\t\treturn 1;\n\t\telse if (m == n-1)\n\t\t\treturn 0;\n\t\telse\n\t\t\treturn Multinomials.multinomial((n-m), m) * h(n-m); \n\t}", "public int hamming() {\n return ham;\n }", "static int modPow(int b, int p, int m) {\n b = b % m;\n int res = 1;\n\n while (p > 0) {\n if (p % 2 == 1)\n res = (res * b) % m;\n p /= 2;\n b = b * b % m;\n }\n return res;\n }", "static int modulo(int x, int y) {\n return (x%y);\n }", "private static int computeHash(int par0)\n {\n par0 ^= par0 >>> 20 ^ par0 >>> 12;\n return par0 ^ par0 >>> 7 ^ par0 >>> 4;\n }", "public static int mod(int x, int y) {\n return x % y;\n }", "private int hash(E e) {\n return Math.abs(e.hashCode()) % table.length;\n }", "public static int ModInv(int n, int m) {\n n = n % m;\n for (int x = 1; x < m; x++)\n if ( ((n * x) % m) == 1 || ((n * x) % m) == -(m-1))\n return x;\n return 1;\n }", "public int hamming() {\n int ham = 0;\n for (int i = 0; i < this.tiles.length; i++) {\n int n = this.tiles[i];\n if (n != i+1 && n > 0) {\n ham++;\n }\n }\n return ham;\n }", "public int hamming() {\n return hamming;\n }", "protected int myhash(T x)\r\n\t{\r\n\t\tint hashVal = x.hashCode( );\r\n\t\thashVal %= tableSize;\r\n\t\tif( hashVal < 0 )\r\n\t\t\thashVal += tableSize;\r\n\t\treturn hashVal;\r\n\t}", "private int hashFunc2(String word) {\n int hashVal = word.hashCode();\n hashVal = hashVal % arraySize;\n\n if (hashVal < 0) {\n hashVal += arraySize;\n }\n\n // Research shows that you can use a Prime number Less than the array size to calculate the step value.\n // Prime Number 3 arbitrarily chosen.\n return 3 - hashVal % 3;\n }", "private int h(K k) {\r\n return (k.hashCode() + capacity()) % capacity();\r\n }", "int hash(String makeHash, int mod);", "long perm(int n, int m, long mod) {\n long result = 1;\n for (int i = n - m + 1; i <= n; ++i) {\n result = result * i % mod;\n }\n return result;\n }", "private int hash(String str, int h){\n int v=0;\n\n /* FILL IN HERE */\n v = Math.floorMod(MurmurHash.hash32(str, seeds[h]) >>> h, 1 << logNbOfBuckets);\n\n return v;\n }", "protected static void endPartial(long[] h) {\n h[11] += h[1]; \n h[2] ^= h[11]; \n h[1] = (h[1] << 44) | (h[1] >>> 20);\n h[0] += h[2]; \n h[3] ^= h[0]; \n h[2] = (h[2] << 15) | (h[2] >>> 49);\n h[1] += h[3]; \n h[4] ^= h[1]; \n h[3] = (h[3] << 34) | (h[3] >>> 30);\n h[2] += h[4]; \n h[5] ^= h[2]; \n h[4] = (h[4] << 21) | (h[4] >>> 43);\n h[3] += h[5]; \n h[6] ^= h[3]; \n h[5] = (h[5] << 38) | (h[5] >>> 26);\n h[4] += h[6]; \n h[7] ^= h[4]; \n h[6] = (h[6] << 33) | (h[6] >>> 31);\n h[5] += h[7]; \n h[8] ^= h[5]; \n h[7] = (h[7] << 10) | (h[7] >>> 54);\n h[6] += h[8]; \n h[9] ^= h[6]; \n h[8] = (h[8] << 13) | (h[8] >>> 51);\n h[7] += h[9]; \n h[10] ^= h[7]; \n h[9] = (h[9] << 38) | (h[9] >>> 26);\n h[8] += h[10]; \n h[11] ^= h[8]; \n h[10] = (h[10] << 53) | (h[10] >>> 11);\n h[9] += h[11]; \n h[0] ^= h[9]; \n h[11] = (h[11] << 42) | (h[11] >>> 22);\n h[10] += h[0]; \n h[1] ^= h[10]; \n h[0] = (h[0] << 54) | (h[0] >>> 10);\t\t\n\t}", "public int computeHash(int key){\n int hashValue = 0;\n hashValue = getHashCode(key);\n return hashValue % tableSize;\n }", "private int hash(Key key) {\n int h = key.hashCode();\n h ^= (h >>> 20) ^ (h >>> 12) ^ (h >>> 7) ^ (h >>> 4);\n return h & (m-1);\n }", "int _hash(int maximum);", "@Override\n\tpublic double[] hash(int[] p) {\n\t\tint N = p.length;\n\t\tdouble[] g = new double[N];\n\t\tfor (int k = 0; k < N; k++) {\t\t// dimension k\n\t\t\tint h = h8(p, k + seed);\n\t\t\tg[k] = (double) (h & 0xFF) / 0xFF;\n\t\t}\n\t\treturn g;\n\t}", "public int hamming() {\n int hammingDis = 0;\n for (int i = 0; i < N; i++) {\n for (int j = 0; j < N; j++) {\n if (matrix[i][j] == 0) continue;\n if (i*N+j+1 != matrix[i][j]) hammingDis++;\n }\n }\n return hammingDis;\n }", "public int hamming() {\n return hamming_score;\n }", "public int totalHammingDistance(int[] nums) {\n\t int hamming = 0;\n\t for (int i=0; i<nums.length; i++) {\n\t for (int j=i+1; j<nums.length; j++) {\n\t int xor = nums[i] ^ nums[j];\n\t while (xor != 0) {\n\t hamming += (xor & 1);\n\t xor = xor >>> 1;\n\t }\n\t }\n\t }\n\t \n\t return hamming;\n\t }", "private int d(@Nullable K ☃) {\r\n/* 127 */ return (xq.f(System.identityHashCode(☃)) & Integer.MAX_VALUE) % this.b.length;\r\n/* */ }\r\n/* */ private int b(@Nullable K ☃, int i) {\r\n/* */ int j;\r\n/* 131 */ for (j = i; j < this.b.length; j++) {\r\n/* 132 */ if (this.b[j] == ☃) {\r\n/* 133 */ return j;\r\n/* */ }\r\n/* 135 */ if (this.b[j] == a) {\r\n/* 136 */ return -1;\r\n/* */ }\r\n/* */ }", "public int hamming() {\n int c = 0;\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < n; j++) {\n int x = tiles[i][j];\n if (x == 0) continue;\n if (x != i*n + j + 1) c++;\n }\n }\n return c;\n }", "public double utilisation(int h)\n {\n \tDouble result;\n \tDouble n1=(Math.pow(2,h))-1;\n \tresult=size()/n1;\n \treturn result;\n \t \t\n }", "static int indexFor(int h, int length) {\n return h & (length-1);\r\n }", "public int hamming() {\n\t\treturn hamming;\n\t}", "public static int hashCode(int m, int n)\n\t{\n\t\t\t\treturn m + n * HASH_CODE_SEED;\n\t}", "public int hash(T input);", "public int hashFunction(int key){\r\n return (int) Math.floor((constFactor*key - Math.floor(constFactor*key)) * Math.pow(2,electionTable.length));\r\n }", "public double getH();", "private int hash1(T key) {\n return (key.toString().charAt(0) + key.toString().length())%newTable.length;\r\n }", "public static long h (int n)\n\t{\n\t\tif (n == 1)\n\t \treturn 0;\n\t else if (n == 2)\n\t \treturn 1;\n\t else \n\t \treturn (n-1)*(h(n-1)+h(n-2));\n\t}", "private int hash(T t) {\n int code = t.hashCode();\n return code % Table.size();\n }", "public int hamming() \n {\n int hamming = 0; \n for (int i = 0; i < SIZE; i++)\n {\n if (i + 1 != (int) (blocks[i]) && (int) blocks[i] != 0) \n { \n hamming++;\n }\n }\n return hamming;\n }", "private static void countRiddle(int[][] a, int m) {\n for (int i=0; i<9; ++i) {\n for (int j=0; j<9; ++j) {\n a[i][j] = ( a[i][j] * m ) % 9 + 1;\n }\n }\n }", "@Override\n\tpublic double[] hash(int u, int v) {\n\t\tfinal int M = 0x3F; // 63;\n\t\tint h = h8(u, v);\n\t\tdouble hx = h & M; \t\t\t// use bits 0..5 for dx\n\t\tdouble hy = (h >> 2) & M; \t// use bits 2..7 for dy\n\t\treturn new double[] {hx/M, hy/M};\n\t}", "private int hashFunction(KeyType key) {\r\n // use hashCode() method to get the hashCode and take the absolute value % capacity\r\n return Math.abs(key.hashCode()) % capacity;\r\n }", "static void pregenFact() \n\t{ \n\t\tfact[0] = fact[1] = 1; \n\t\tfor (int i = 1; i <= 1000000; ++i) \n\t\t{ \n\t\t\tfact[i] = (int) ((long) fact[i - 1] * i % mod); \n\t\t} \n\t}", "private int computeHash(int key) {\n assert((table.length & (table.length - 1)) == 0);\n return key & (table.length - 1);\n }", "public int hamming() { \n int total = 0;\n for (int n = 0; n < state.length; n++) \n if (state[n] != 0 && state[n] != n) total++;\n return total;\n }", "public int hammingWeight(int n) {\r\n int res=0;\r\n while(n!=0)\r\n {\r\n n=n & (n-1);\r\n res++;\r\n }\r\n return res;\r\n }", "public int hammingDistance2(int x, int y) {\n int temp = x ^ y;\n int res = 0;\n while(temp != 0){\n res++;\n temp &= (temp-1);\n }\n return res;\n }", "public int hash( int tableSize )\n {\n if( value < 0 )\n return -value % tableSize;\n else\n return value % tableSize;\n }", "private int A(int n, int m) {\n int res = 1;\n for (int i = 0; i < m; n++)\n res *= n;\n return res;\n }", "public int hash1 ( String key )\n {\n int hashVal = 0;\n if(key != null){\n for( int i = 0; i < key.length(); i++ )\n hashVal += key.charAt(i);\n \n //if(hashVal != 0)\n return hashVal % tableSize;\n //else\n // return 0;\n }\n else{\n //System.out.println(\"Key is null\");\n return 0 ;\n }\n\n }", "private double moyenne(Hashtable<Integer, Double> h){\n\t\tEnumeration<Integer> e = h.keys();\n\t\tdouble res = 0 ;\n\t\t// On somme l'ensemble des distances entre cette tables et les tables occuppées, on divise ensuite.\n\t\twhile(e.hasMoreElements()){ res += h.get(e.nextElement()) ; }\n\t\tres /= h.size() ;\n\t\treturn res ;\n\t}", "int getHash();", "private int hash(K key) {\n return (key.hashCode() & 0x7fffffff) % keys.length;\n }", "public static long modInverse(long a, long m) {\n a = mod(a, m);\n return a == 0 ? 0 : mod((1 - modInverse(m % a, a) * m) / a, m);\n }", "public int hammingWeight(int n) {\r\n int ans=0;\r\n int mask=1;\r\n for(int i=0;i<32;i++){\r\n if((mask&n)!=0) ans++;\r\n mask=mask<<1;\r\n }\r\n return ans;\r\n }", "public int hashFunction(String key){\r\n return Math.abs(key.hashCode())%electionTable.length;\r\n }", "static int indexFor(int h, int length) {\n return h & (length - 1);\n }", "public boolean h()\r\n/* 189: */ {\r\n/* 190:187 */ return this.g;\r\n/* 191: */ }", "private int[] genererCodeHamming(int[] tabCode) {\n\t\t\n\t\t\t\tint hamming[];\n\t\t\t\t\n\t\t\t\tint i=0;\n\t\t\t\tint nbParite=0; \n\t\t\t\tint j=0;\n\t\t\t\tint k=0;\n\t\t\t\t\n\t\t\t\twhile(i < tabCode.length) {\n\t\t\t\t\t\n\t\t\t\t\tif(Math.pow(2,nbParite) == i+nbParite + 1) {\n\t\t\t\t\t\tnbParite++;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\ti++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\thamming = new int[tabCode.length + nbParite];\n\t\t\t\t\n\t\t\t\tfor(i=1 ; i <= hamming.length ; i++) {\n\t\t\t\t\tif(Math.pow(2, j) == i) {\n\t\t\t\t\t\t\n\t\t\t\t\t\thamming[i-1] = 2;\n\t\t\t\t\t\tj++;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\thamming[k+j] = tabCode[k++];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfor(i=0 ; i < nbParite ; i++) {\n\t\t\t\t\t\n\t\t\t\t\thamming[((int) Math.pow(2, i))-1] = getParite(hamming, i);\n\t\t\t\t}\n\t\t\t\treturn hamming;\n\t}", "private int hashTextbook(Key key) {\n return (key.hashCode() & 0x7fffffff) % m;\n }", "public long modPow(int b, int p, int m) {\r\n if (p == 0)\r\n return 1;\r\n else if (p % 2 == 0)\r\n return square(modPow(b, p / 2, m)) % m;\r\n else\r\n return ((b % m) * modPow(b, p - 1, m)) % m;\r\n }", "@Test\n\tpublic void intersection() {\n\n\t\tlong n = 105;\n\t\tlong m = 100;\n\t\tfor(long i = n - 1; i > 1; i--){\n\t\t\tn = n * i;\n\t\t\tfor(long j = getZero(n); j > 0; j--){\n\t\t\t\tm = m * 10;\n\t\t\t}\n\t\t\tn = n % m;\n\t\t\tm = 100;\n\n\t\t\tSystem.out.println(n+\" \"+i);\n\n\t\t}\n\n\n\n\n\n\t}", "private static void helloHelloModulo() {\n int a = 1;\n int b = 10;\n int c = 1 / 10;\n\n int d = 1 % 10;\n\n\n System.out.println(\" Result deleniya \" + c);\n System.out.println(\" Result deleniya \" + d);\n\n\n int делимое = 75;\n int делитель = 13;\n int f = делимое % делитель;\n\n int остаток = делимое - (делимое / делитель) * делитель;\n int j = 7 % 2;\n\n System.out.println(f);\n System.out.println(остаток);\n\n\n }", "private static void reduceMonty(int[] x, int[] m, int mDash) // mDash = -m^(-1) mod b\n {\n\n int n = m.length;\n\n for (int i = n - 1; i >= 0; --i)\n {\n int x0 = x[n - 1];\n\n long t = (x0 * mDash) & IMASK;\n\n long carry = t * (m[n - 1] & IMASK) + (x0 & IMASK);\n// assert (int)carry == 0;\n carry >>>= 32;\n\n for (int j = n - 2; j >= 0; --j)\n {\n carry += t * (m[j] & IMASK) + (x[j] & IMASK);\n x[j + 1] = (int)carry;\n carry >>>= 32;\n }\n\n x[0] = (int)carry;\n// assert carry >>> 32 == 0;\n }\n\n if (compareTo(0, x, 0, m) >= 0)\n {\n subtract(0, x, 0, m);\n }\n }", "public int modulo(int a, int b) {\n return a % b;\n }", "public int indexFor(int h) {\n\t\treturn (int) (h & (allLength - 1));\n\t}", "public int totalHammingDistance(int[] nums) {\n int result = 0;\n for(int i = 0; i <= 31; i++){\n int count = 0;\n for(int j = 0; j < nums.length; j++){\n count = count + ((nums[j] >> i) & 1);\n }\n //for each position, it contributes to this many number combinations.\n result += count * (nums.length - count);\n }\n return result;\n }", "public VectorN getH()\n\t{\n\t\tVectorN r = new VectorN(rv.x[0], rv.x[1], rv.x[2]);\n\t\tVectorN v = new VectorN(rv.x[3], rv.x[4], rv.x[5]);\n\t\tVectorN out = r.crossProduct(v);\n\t\treturn out;\n\t}", "public int hamming() {\n int hamming = 0;\n for (int i = 0; i < dimension; i++)\n for (int j = 0; j < dimension; j++)\n if (isWrongPosition(i, j)) hamming++;\n\n return hamming;\n }", "public static long[][] multiplyMod(long F[][], long M[][]){\n long x = (F[0][0]*M[0][0])%MOD + (F[0][1]*M[1][0])%MOD; \n long y = (F[0][0]*M[0][1])%MOD + (F[0][1]*M[1][1])%MOD; \n long z = (F[1][0]*M[0][0])%MOD + (F[1][1]*M[1][0])%MOD; \n long w = (F[1][0]*M[0][1])%MOD + (F[1][1]*M[1][1])%MOD; \n\n return new long[][]{{x,y},{z,w}};\n }", "public AudioHashInfo calc(float[] buffer, int p) {\n\t\tint start = 0;\n\t\tint end = start + framelength - 1;\n\t\tint totalframes = (int)(Math.floor(buffer.length / advance - Math.floor(framelength / advance) + 1));\n\t\tint nbhashes = totalframes - 2;\n\t\tint nbtoggles = (p <= 12) ? p : 12;\n\n\t\tAudioHashInfo hashresult = new AudioHashInfo();\n\t\thashresult.hasharray = new int[nbhashes];\n\t\thashresult.toggles = (p > 0) ? new int[nbhashes] : null;\n\t\thashresult.coeffs = new double[totalframes][nfilts];\n\n\t\tint index = 0;\n\t\twhile(end < buffer.length) {\n\t\t\t// apply hamming window to frame\n\t\t\tfor(int i = 0; i < framelength; i++) {\n\t\t\t\tframe[i] = window[i] * buffer[start + i];\n\t\t\t}\n\n\t\t\t// forward fft transform\n\t\t\tfftTransform.realForward(frame);\n\n\t\t\tmagnF[0] = frame[0];\n\t\t\tfor(int i = 1; i < nffthalf - 1; i++) {\n\t\t\t\tmagnF[i] = (float)Math.abs(Math.sqrt((Math.pow(frame[2 * i], 2)\n\t\t\t\t\t\t+ Math.pow(frame[2 * i + 1], 2))));\n\t\t\t}\n\t\t\tmagnF[nffthalf - 1] = frame[1];\n\n\t\t\t// critical band integration\n\t\t\tfor(int i = 0; i < nfilts; i++) {\n\t\t\t\thashresult.coeffs[index][i] = 0.0;\n\t\t\t\tfor(int j = 0; j < nffthalf; j++) {\n\t\t\t\t\thashresult.coeffs[index][i] += wts[i][j] * magnF[j];\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tindex += 1;\n\t\t\tstart += advance;\n\t\t\tend += advance;\n\t\t}\n\n\t\tindex = 0;\n\t\tfor(int i = 1; i < totalframes - 1; i++) {\n\t\t\tint hashvalue = 0;\n\t\t\tfor(int m = 0; m < nfilts - 1; m++) {\n\t\t\t\tdouble diff = (hashresult.coeffs[i + 1][m] - hashresult.coeffs[i + 1][m + 1]) -\n\t\t\t\t\t\t(hashresult.coeffs[i - 1][m] - hashresult.coeffs[i - 1][m + 1]);\n\t\t\t\thashvalue <<= 1;\n\t\t\t\tif(diff > 0)\n\t\t\t\t\thashvalue |= 0x01;\n\t\t\t\tfreqdiffs[m].diff = Math.floor(Math.abs(diff));\n\t\t\t\tfreqdiffs[m].index = m;\n\t\t\t}\n\t\t\thashresult.hasharray[index] = hashvalue;\n\t\t\tif(p > 0) {\n\t\t\t\tint tog = 0;\n\t\t\t\tsortFreqDiffs(freqdiffs);\n\t\t\t\tfor(int j = 0; j < nbtoggles; j++) {\n\t\t\t\t\ttog |= (0x80000000 >>> freqdiffs[j].index);\n\t\t\t\t}\n\t\t\t\thashresult.toggles[index] = tog;\n\t\t\t}\n\t\t\tindex++;\n\t\t}\n\n\t\treturn hashresult;\n\t}", "private BigInteger modInversePow2(BigInteger m)\n {\n\n if (!testBit(0))\n {\n throw new ArithmeticException(\"Numbers not relatively prime.\");\n }\n\n int pow = m.bitLength() - 1;\n\n long inv64 = modInverse64(longValue());\n if (pow < 64)\n {\n inv64 &= ((1L << pow) - 1);\n }\n\n BigInteger x = BigInteger.valueOf(inv64);\n\n if (pow > 64)\n {\n BigInteger d = this.remainder(m);\n int bitsCorrect = 64;\n\n do\n {\n BigInteger t = x.multiply(d).remainder(m);\n x = x.multiply(TWO.subtract(t)).remainder(m);\n bitsCorrect <<= 1;\n }\n while (bitsCorrect < pow);\n }\n\n if (x.sign < 0)\n {\n x = x.add(m);\n }\n\n return x;\n }", "public int hash2 ( String key )\n {\n int hashVal = 0;\n if(key != null){\n for( int i = 0; i < key.length(); i++ )\n hashVal = (37 * hashVal) + key.charAt(i);\n //if(hashVal != 0)\n return hashVal % tableSize;\n //else\n // return 0;\n }\n else{\n //System.out.println(\"Key is null\");\n return 0;\n }\n }", "boolean mo54443h(int i);", "@Test\n public void testModulo() {\n System.out.println(\"modulo\");\n int x = 0;\n int y = 0;\n int expResult = 0;\n int result = utilsHill.modulo(x, y);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public int solution(int N, int M) {\n\n\t\tint X = 0;\n\t\tint result = 0;\n\t\tint tmp = -1;\n//\t\tfor (int i=0; tmp == 0; i=(X+M)%N, X+=M) {\n////\t\t\ti = X+M;\n//\t\ttmp = i;\n//\t\tSystem.out.println(i + \" \" + X);\n//\t\t\tresult++;\n//\t\t\n//\t\t}\n\n\t\twhile (tmp != 0) {\n\t\t\ttmp = (X + M) % N;\n\n//\t\t\tSystem.out.println(tmp);\n\n\t\t\tresult++;\n\n\t\t\tX += M;\n\t\t}\n\n\t\treturn result;\n\t}", "static int hcf(int num1, int num2){\n int i = 1;\n int hcf = 0;\n\n while(i<=num1 || i<=num2){\n if (num1%i == 0 && num2%i==0){\n hcf = i;\n }\n i++;\n }\n return hcf;\n }", "public int hash(String w){\n return (Math.abs(w.hashCode()) % hashTable.length);\n }", "protected static int tableIndex(int hc, int lm1)\n {\n hc ^= (hc >>> 20) ^ (hc >>> 12);\n hc ^= (hc >>> 7) ^ (hc >>> 4);\n return hc & lm1;\n }" ]
[ "0.702816", "0.6945149", "0.65809166", "0.6440153", "0.64044106", "0.62972045", "0.6269198", "0.6263033", "0.6258775", "0.6200793", "0.6142545", "0.61040765", "0.60578495", "0.60462046", "0.6005023", "0.5998196", "0.5997545", "0.5982703", "0.5949471", "0.58755964", "0.5858726", "0.58129823", "0.58059686", "0.5776862", "0.57719874", "0.5709586", "0.56830806", "0.56798834", "0.5653318", "0.56428", "0.56382704", "0.56354403", "0.56339365", "0.56314844", "0.56286335", "0.56238043", "0.55963635", "0.5593665", "0.5584686", "0.55817854", "0.55683905", "0.55579406", "0.554636", "0.55307406", "0.55264163", "0.5464114", "0.5447981", "0.5433863", "0.54333186", "0.5431454", "0.5430127", "0.54297227", "0.54273", "0.5399736", "0.5394919", "0.53947794", "0.5389091", "0.53849906", "0.53847957", "0.53833383", "0.53781986", "0.5352946", "0.5347607", "0.53345644", "0.53303355", "0.5322768", "0.53204554", "0.5318367", "0.5314229", "0.53050655", "0.5278906", "0.5263482", "0.52410465", "0.523746", "0.522919", "0.52103156", "0.52055186", "0.520393", "0.5194588", "0.51827693", "0.5180391", "0.517879", "0.51757675", "0.51725286", "0.51698107", "0.51678073", "0.51658225", "0.51631534", "0.5160259", "0.5156923", "0.5155879", "0.5155528", "0.51526976", "0.51510924", "0.51388997", "0.5134922", "0.5134625", "0.51324576", "0.51316047", "0.5130228" ]
0.59080744
19
Encontrar posicao da tabela por meio da funcao hash
public int inserir(Jogador elemento) throws Exception { int posicao = funcaoHash(elemento.getAltura()); // Verificar se esse elemento ja esta na lista if (tabela[posicao].localizar(elemento.getNome()) == null) // Elemento nao inserido ainda tabela[posicao].inserir(elemento, 0); // Nao sabe quantos elementos lista vai ter, sempre inserir no inicio else // Elemento ja inserido posicao = -1; return posicao; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void rehash(){\n\t\tHashTable that = new HashTable(2 * this.table.length);\n\t\tfor (int i = 0; i < this.table.length; i++){\n\t\t\tif (this.table[i] != null){\n\t\t\t\tthat.addRecord(this.table[i].getValue());\n\t\t\t}\n\t\t}\n\t\tthis.table = that.table;\n\t\treturn;\n\t}", "private void rehash() {\n Entry<K, V>[] old = table;\n allocate((int) (old.length * INC));\n\n for (int i = 0; i < old.length; ++i) {\n if (old[i] != null) {\n for (Node<Pair<K, V>> j = old[i].list.getHead().getNext();\n j != old[i].list.getTail();\n j = j.getNext()) {\n put(j.getData().key, j.getData().value);\n }\n\n }\n }\n }", "private void rehash() {\n LinkedList<Entry<K,V>>[] oldTable = table;\n table = new LinkedList[oldTable.length * 2 + 1];\n numKeys = 0;\n for (LinkedList<Entry<K, V>> list : oldTable) {\n if (list != null) {\n for (Entry<K,V> entry : list) {\n put(entry.getKey(), entry.getValue());\n numKeys++;\n }\n }\n }\n }", "private void rehash()\n {\n int hTmp = 37;\n\n if ( isHR != null )\n {\n hTmp = hTmp * 17 + isHR.hashCode();\n }\n\n if ( id != null )\n {\n hTmp = hTmp * 17 + id.hashCode();\n }\n\n if ( attributeType != null )\n {\n hTmp = hTmp * 17 + attributeType.hashCode();\n }\n \n h = hTmp;\n }", "@Override\r\n public int hashCode()\r\n {\r\n if(this.isEmpty()) return 0;\r\n\r\n /**\r\n * En este caso es recomendable usar la funcion Arrays.hashCode porque\r\n * garantiza un hash unico para cada array.\r\n * Si se usa la suma, los objetos \"ab\" y \"ba\" tendrian el mismo hash.\r\n */\r\n return Arrays.hashCode(this.table);\r\n }", "@SuppressWarnings(\"unchecked\")\r\n\tprivate void rehash()\r\n\t{\r\n\t\tint M = table.length;\r\n\t\tMapEntry<K, V>[] origTable = table; // save original\r\n\t\t\r\n\t\t//new table\r\n\t\ttable = new MapEntry[2*M + 1];\r\n\t\tcount = 0;\r\n\t\tmaxCount = table.length - table.length/3;\r\n\t\t\r\n\t\tfor (MapEntry<K, V> oe : origTable)\r\n\t\t{\r\n\t\t\tMapEntry<K, V> e = oe;\r\n\t\t\tif (e != null && e != DUMMY) // No need to rehash dummy\r\n\t\t\t{\r\n\t\t\t\tint slot = findSlot(e.getKey(), true);\r\n\t\t\t\ttable[slot] = e;\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void rehash() {\r\n // Save a reference to origTable\r\n LinkedList<Entry<K,V>>[] origTable = mainTable;\r\n // Double capacity of this mainTable\r\n mainTable = new LinkedList[2 * origTable.length + 1];\r\n\r\n // Reinsert all items in origTable into expanded mainTable.\r\n numberOfKeys = 0;\r\n for (int i = 0; i < origTable.length; i++) {\r\n if (origTable[i] != null) {\r\n for (Entry<K,V> nextEntry : origTable[i]) {\r\n // Insert entry in expanded mainTable\r\n insert(nextEntry.key, nextEntry.value);\r\n }\r\n }\r\n }\r\n }", "private void rehash() {\r\n Entry[] oldHashTable = this.hashTable;\r\n this.capacity = this.capacity * 2;\r\n this.hashTable = new Entry[this.capacity];\r\n this.size = 0;\r\n for (Entry eachEntry : oldHashTable) {\r\n if (eachEntry != null) {\r\n if (!eachEntry.isDeleted) {\r\n this.add((K)eachEntry.key,(V)eachEntry.value);\r\n }\r\n }\r\n }\r\n return;\r\n }", "private int hash(T t) {\n int code = t.hashCode();\n return code % Table.size();\n }", "protected void rehash( )\r\n\t{\r\n\t\tint newSize = nextPrime(this.tableSize*2);\r\n\t\tMyHashTable<T> newHashTable = new MyHashTable<T>(newSize);\r\n\t\tIterator<T> thisTableIter = this.iterator();\r\n\t\twhile(thisTableIter.hasNext())\r\n\t\t{\r\n\t\t\tT e = thisTableIter.next();\r\n\t\t\tnewHashTable.insert(e);\r\n\t\t}\r\n\t\tthis.clear();\r\n\t\tthis.size = newHashTable.size;\r\n\t\tthis.tableSize = newHashTable.tableSize;\r\n\t\tthis.table = newHashTable.table;\r\n\t}", "private void rehash( )\n {\n HashEntry<AnyType> [ ] oldArray = array;\n\n // Create a new double-sized, empty table\n allocateArray( 2 * oldArray.length );\n occupied = 0;\n theSize = 0;\n\n // Copy table over\n for( HashEntry<AnyType> entry : oldArray )\n if( entry != null) {\n \tput(entry.key, entry.value);\n }\n }", "public int hashCode()\r\n\t{\n\t\treturn (i % 9); //this will make the values to store in the table based on size of hashtable is 9 and calculation will be (i %9)\r\n\t}", "private void rehash() {\n\t HashEntry[] oldArray = array;\n\n\t // Create a new double-sized, empty table\n\t allocateArray(2 * oldArray.length);\n\t occupied = 0;\n\t theSize = 0;\n\n\t // Copy table over\n\t for (HashEntry entry : oldArray) {\n\t if (entry != null && entry.isActive)\n\t add(entry.element);\n\t }\n\t }", "@Override\n public int hashCode() {\n int result = table1.hashCode();\n result = 31 * result + table2.hashCode();\n return result;\n }", "private int hash(E e) {\n return Math.abs(e.hashCode()) % table.length;\n }", "private int hash1(T key) {\n return (key.toString().charAt(0) + key.toString().length())%newTable.length;\r\n }", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\r\n\t\tprivate void rehash() {\r\n\t\t\t// double size of array\r\n\t\t\tTableElement<K, V>[] NewDictionary = (TableElement<K, V>[]) new TableElement[dictionary.length * 2];\r\n\r\n\t\t\tcurrentCapacity = dictionary.length * 2;\r\n\r\n\t\t\t// re-mod the keys to get new hash\r\n\t\t\tfor (int i = 0; i < dictionary.length; i++) {\r\n\t\t\t\tif (dictionary[i] != null) {\r\n\t\t\t\t\tint newHash = (Math.abs(dictionary[i].getKey().hashCode()) % currentCapacity);\r\n\r\n\t\t\t\t\t// put re-hashed keys into new array\r\n\t\t\t\t\twhile (NewDictionary[newHash] != null) {\r\n\t\t\t\t\t\tint probe = getProbed(newHash);\r\n\t\t\t\t\t\tnewHash = (newHash + probe) % currentCapacity;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tTableElement element = dictionary[i];\r\n\t\t\t\t\tNewDictionary[newHash] = element;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// set old dictionary to new dictionary\r\n\t\t\tthis.dictionary = NewDictionary;\r\n\t\t}", "void Rehash(){\n\t\tRehash++;\r\n\t\t//updates if the hash table changed size\r\n\t\tStockNode[] temp=new StockNode[(2*Table.length)+1];\r\n\t\t//creates a temporary table with the new size \r\n\t\tfor(int i=Table.length-1;i>=0;i--){\r\n\t\t\t//goes through each array linked list \r\n\t\t\tStockNode t=Table[i];\r\n\t\t\twhile(t!=null){\r\n\t\t\t\t//the change of node to its new proper place is done here \r\n\t\t\t\tint key = toInt(t.stockName);\r\n\t\t\t\tint index = key%temp.length;\r\n\t\t\t\tif(temp[index]!=null){\r\n\t\t\t\t\tStockNode next=temp[index].next;\r\n\t\t\t\t\twhile(next!=null){\r\n\t\t\t\t\t\ttemp[index]=next;\r\n\t\t\t\t\t\tnext=temp[index].next;\r\n\t\t\t\t\t}\r\n\t\t\t\t\ttemp[index].next=t;\r\n\t\t\t\t} else{\r\n\t\t\t\t\ttemp[index]=t;\r\n\t\t\t\t}\r\n\t\t\t\tStockNode next=t.next;\r\n\t\t\t\tt.next=null;\r\n\t\t\t\tt=next;\r\n\t\t\t}\r\n\t\t}\r\n\t\tTable=temp;\r\n\t}", "private void rehash(int newHasTableSize) {\n\t\t// allocate the new hash table and record a reference\n\t\t// to the current one in oldTable\n\t\tint newTableSize = nextPrime(newHasTableSize);\n\t\tAVLTree<T>[] newTable = new AVLTree[newTableSize];\n\t\tfor (int i = 0; i < newTableSize; i++)\n\t\t\tnewTable[i] = new AVLTree<T>();\n\n\t\tAVLTree<T>[] oldTable = table;\n\n\t\tint index;\n\n\t\t// cycle through the current hash table\n\t\tfor (int i = 0; i < table.length; i++) {\n\t\t\t// see if there is a linked list present\n\t\t\tif (table[i] != null) {\n\t\t\t\tIterator<T> iter = table[i].iterator();\n\t\t\t\tT currItem;\n\t\t\t\twhile (iter.hasNext()) {\n\t\t\t\t\tcurrItem = iter.next();\n\n\t\t\t\t\tindex = (currItem.hashCode() & Integer.MAX_VALUE)\n\t\t\t\t\t\t\t% newTableSize;\n\t\t\t\t\t// funcion hash para conocer la posicion del elemento.\n\n\t\t\t\t\tnewTable[index].add(currItem);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// the table is now newTable\n\t\ttable = newTable;\n\t\t// update the table threshold\n\t\ttableThreshold = (int) (table.length * maxLoadFactor);\n\t\t// let garbage collection get rid of oldTable\n\t\toldTable = null;\n\t}", "public void rehash(){\n //creates a new temporary hashtable since arrays are immutable\n LLNodeHash[] temp = hashTable;\n //doubles the size of the current hashtable\n hashTable = new LLNodeHash[hashTable.length * 2];\n for (int i = 0; i < temp.length; i++){\n //if the index of the array has an element\n if (temp[i] != null){\n LLNodeHash ptr = temp[i];\n //traverse the linked list and adds each word back to the new hashtable incase they have a new position\n while (ptr.getNext() != null){\n LLNodeHash word = new LLNodeHash(ptr.getKey(), ptr.getFreq(), null);\n add(word);\n ptr = ptr.getNext();\n }\n //adds the last element to the new hashtable\n LLNodeHash word = new LLNodeHash(ptr.getKey(), ptr.getFreq(), null);\n add(word);\n }\n }\n }", "public int hashCode() {\n int result = 17;\n result = 37 * result + column;\n result = 37 * result + sortOrder.hashCode();\n return result;\n }", "@Override\n public int hashCode() {\n\treturn (rowIndex * 10) + colIndex; \n }", "public void makeHash(){\n\t\tString tmp = \"\";\n\t\t\n\t\tfor(int i=0;i<_rows;i++){\n\t\t\tfor(int j=0;j<_cols;j++){\n\t\t\t\ttmp+=String.valueOf(_puzzle[i][j])+\"#\";\n\t\t\t}\n\t\t}\n\t\t_hashCode = tmp;\n\t}", "public int hashcode();", "@Override\n\tpublic int hashCode() {\n\t\tfinal int prime = 999;\n\t\tint result = 1;\n\t\tresult = prime * result + Table;\n\t\tresult = prime * result + id;\n\t\treturn result;\n\t}", "protected int myhash(T x)\r\n\t{\r\n\t\tint hashVal = x.hashCode( );\r\n\t\thashVal %= tableSize;\r\n\t\tif( hashVal < 0 )\r\n\t\t\thashVal += tableSize;\r\n\t\treturn hashVal;\r\n\t}", "public int hash( int tableSize )\n {\n if( value < 0 )\n return -value % tableSize;\n else\n return value % tableSize;\n }", "private int hash(Handle[] myTable,\n String toHash) {\n\n int intLength = toHash.length() / 4;\n long sum = 0;\n for (int j = 0; j < intLength; j++) {\n char[] c = toHash.substring(j * 4, (j * 4) + 4)\n .toCharArray();\n long mult = 1;\n for (int k = 0; k < c.length; k++) {\n sum += c[k] * mult;\n mult *= 256;\n } // end inner for\n } // end outer for\n char[] c = toHash.substring(intLength * 4).toCharArray();\n long mult = 1;\n for (int k = 0; k < c.length; k++) {\n sum += c[k] * mult;\n mult *= 256;\n }\n return (int) (Math.abs(sum) % myTable.length);\n }", "@Override\r\n\tpublic int hashCode() {\n\t\tint result=1,prime=31;\r\n\t\tresult = result * prime + tableName.hashCode();\r\n\t\tresult = result * prime + databaseName.hashCode();\r\n\t\tresult = result * prime + limit;\r\n\t\tresult = result * prime + offset;\r\n\t\tresult = result * prime + queryCondition.hashCode();\r\n\t\treturn result;\r\n\t}", "private int hash(T x)\n {\n // calcolo della chiave ridotta - eventualmente negativa\n int h = x.hashCode() % v.length;\n\n // calcolo del valore assoluto\n if (h < 0)\n h = -h;\n \n return h; \n }", "int hashCode();", "int hashCode();", "@Override \n int hashCode();", "public int hashCode();", "public int hashCode();", "public int hashCode();", "public int hashCode();", "public void doubleTable() \n\t{\n\t\tpowerOfListSize++;\n\t\tint newlength = (int)(Math.pow(2,powerOfListSize)); //Creates empty table twice the size of the current table\n\t\tint oldlength = length; //preserves old lengths value\n\t\tRecord[] TempTable = Table; //preserve table value\n\t\tTable = new Record[newlength]; //makes original table twice the size\n\t\tfor (int j = 0; j < newlength; j++){\n\t\t\tTable[j] = new Record(\" \"); //fill table with empty slots\n\t\t}\n\t\tlength = newlength; //sets length to the new length\n\t\tfor (int j = 0; j < oldlength; j++){\n\t\t\tif (TempTable[j].hash >0){\n\t\t\t\tTable = reinsert(Table, TempTable[j],newlength); //refills new table with all value from old table so they get hashed properly\n\t\t\t}\n\t\t}\n\t}", "@Override\n public int hashCode() {\n return txHash.hashCode()^txIndex;\n }", "private void rehash() {\n\t\tint oldSize = this.size;\n\t\tint newSize = size * 2;\n\t\twhile (!isPrime(newSize))\n\t\t\tnewSize++;\n\t\tthis.size = newSize;\n\t\tDataItem[] newHashArray = new DataItem[newSize];\n\t\tString temp;\n\t\tthis.collision = 0;\n\t\tBoolean repeatValue;\n\t\tfor (int i = 0; i < oldSize; i++) {\n\t\t\tif (hashArray[i] != null && hashArray[i] != deleted)\n\t\t\t\ttemp = hashArray[i].value;\n\t\t\telse\n\t\t\t\tcontinue;\n\t\t\trepeatValue = false;\n\t\t\tint hashVal = hashFunc(temp);\n\t\t\tboolean collisionFlag = false;\n\t\t\twhile (newHashArray[hashVal] != null\n\t\t\t\t\t&& !newHashArray[hashVal].value.equals(deleted.value)) {\n\n\t\t\t\tif (!collisionFlag) {\n\n\t\t\t\t\tthis.collision++;\n\t\t\t\t\tcollisionFlag = true;\n\n\t\t\t\t}\n\t\t\t\thashVal++;\n\t\t\t\thashVal = hashVal % size;\n\n\t\t\t}\n\t\t\tif (repeatValue)\n\t\t\t\tcontinue;\n\t\t\telse {\n\t\t\t\tnewHashArray[hashVal] = hashArray[i];\n\t\t\t}\n\t\t}\n\n\t\tthis.hashArray = newHashArray;\n\t}", "@Override\n int hashCode();", "private int computeHash(int key) {\n assert((table.length & (table.length - 1)) == 0);\n return key & (table.length - 1);\n }", "@Override\n\t public int hashCode();", "@Override\n public int hashCode();", "public int hash(T input);", "protected static void rehash() \r\n\t{\r\n\t\tEntry\told, e;\r\n\t\tint\t\ti, index;\r\n\r\n\t\tEntry\toldMap[] = m_table;\r\n\t\tint\t\toldCapacity = oldMap.length;\r\n\r\n\t\tint newCapacity = oldCapacity * 2 + 1;\r\n\t\tEntry newMap[] = new Entry[newCapacity];\r\n\r\n\t\tm_threshold = (int)(newCapacity * m_loadFactor);\r\n\t\tm_table = newMap;\r\n\r\n\t\tfor (i = oldCapacity ; i-- > 0 ;) {\r\n\t\t\tfor (old = oldMap[i] ; old != null ; ) {\r\n\t\t\t\te = old;\r\n\t\t\t\told = old.m_next;\r\n\r\n\t\t\t\tindex = (e.m_name.hashCode() & 0x7FFFFFFF) % newCapacity;\r\n\t\t\t\te.m_next = newMap[index];\r\n\t\t\t\tnewMap[index] = e;\r\n\t\t\t}\r\n\t\t}\r\n }", "private void rehash(int newCap) {\n System.out.println(\"ARGHHHH\");\n // make a new table of the new size, then iterate over the old\n // table and reinsert each entry.\n var oldTable = table;\n clear(newCap);\n for (var e : oldTable) {\n // skip nulls and tombstones.\n if (e != null) {\n this.bubbaPut(e.key, e.value);\n }\n }\n }", "public int generateHash(StudentClass item)\n {\n \t return item.hashCode() % tableSize;\n }", "long hash(Block block, int position);", "protected void rehash() {\n int oldCapacity = table.length;\n Entry oldMap[] = table;\n\n int newCapacity = oldCapacity * 2 + 1;\n Entry newMap[] = new Entry[newCapacity];\n\n threshold = (int) (newCapacity * loadFactor);\n table = newMap;\n\n for (int i = oldCapacity; i-- > 0; ) {\n for (Entry old = oldMap[i]; old != null; ) {\n Entry e = old;\n old = old.next;\n\n int index = (e.key & 0x7FFFFFFF) % newCapacity;\n e.next = newMap[index];\n newMap[index] = e;\n }\n }\n }", "public void rehash() {\n\t\tArrayList<Node<MapPair<K, V>>> temp=buckets;\n\t\tbuckets=new ArrayList<>();\n\t\tfor(int i=0;i<2*temp.size();i++)\n\t\t{\n\t\t\tbuckets.add(null);\n\t\t}\n\t\tfor(Node<MapPair<K, V>> node:temp)\n\t\t{\n\t\t\tif(node!=null)\n\t\t\t{\n\t\t\t\twhile(node!=null)\n\t\t\t\t{\n\t\t\t\t\tput(node.data.key,node.data.value);\n\t\t\t\t\tnode=node.next;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public int hashCode()\n {\n return this.getUntranslatedTableName().hashCode();\n }", "public abstract int hashCode();", "@Override\n\tpublic int hashCode() {\n\t\tfinal int prime = 31;\n\t\tint result = 1;\n\t\tresult = prime * result + ((tb == null) ? 0 : tb.hashCode());\n\t\treturn result;\n\t}", "private void reHash(int a){\r\n int arrayNewSize = this.capacity();\r\n if(a == 1){\r\n arrayNewSize = arrayNewSize * 2;\r\n }\r\n else if(a == -1){\r\n arrayNewSize = arrayNewSize / 2;\r\n }\r\n String[] newHashTable = new String[arrayNewSize];\r\n String [] oldCopy = this.hashTable.clone();\r\n this.capacity = arrayNewSize;\r\n this.hashTable = newHashTable;\r\n for(String i: oldCopy){\r\n this.reHashAdd(i);\r\n }\r\n this.hashing = false;\r\n }", "public int hashCode() {\r\n int result = 17;\r\n result = xCH(result, getTableDbName());\r\n result = xCH(result, getMemberAddressId());\r\n return result;\r\n }", "@Override\n public int hashCode() {\n int hash = 7;\n hash = 71 * hash + this.id;\n hash = 71 * hash + Objects.hashCode(this.name);\n hash = 71 * hash + Objects.hashCode(this.cash);\n hash = 71 * hash + Objects.hashCode(this.skills);\n hash = 71 * hash + Objects.hashCode(this.potions);\n return hash;\n }", "protected void rehash() {\n // TODO: fill this in.\n //double number of maps, k, each time it is called\n\t\t//use MyBetterMap.makeMaps and MyLinearMap.getEntries\n\t\t//collect entries in the table, resize the table, then put the entries back in\n\t\tList<MyLinearMap<K, V>> newmaps = MyBetterMap.makeMaps(maps.size()*2);\n\t\tfor(MyLinearMap<K, V> curr: this.maps) {\n\t\t\tfor(Entry ent: MyLinearMap.getEntries()) {\n\t\t\t\tnewmaps.put(ent.key, ent.value);\n\t\t\t}\n\t\t}\n\t\tthis.maps = newmaps;\n\t\treturn;\n\t}", "@Override\n public int hashCode()\n {\n return Objects.hash(schema);\n }", "@Override\n public abstract int hashCode();", "@Override\n public abstract int hashCode();", "@Override\n public abstract int hashCode();", "public abstract int doHash(T t);", "@org.junit.jupiter.api.Test\n void drop1elementoColisionNoExiste() {\n String key = \"0\";\n String value =\"David\";\n HashTable hashTable = new HashTable();\n hashTable.put(key,value);\n hashTable.drop(\"11\");\n String esperado = \"bucket[0] = [0, David]\\n\";\n Assertions.assertEquals(esperado,hashTable.toString());\n int count = 1;\n Assertions.assertEquals(count,hashTable.count());\n }", "public int calcColumnsHash() {\n int retHash = -1;\n if ( this.attData!=null ) {\n StringBuffer columnsList = new StringBuffer(100);\n Iterator<String> it = this.attData.keySet().iterator();\n while (it.hasNext()) {\n columnsList.append(it.next());\n }\n retHash = columnsList.toString().hashCode();\n }\n return retHash;\n }", "@Override\n public int hashCode()\n {\n if ( h == 0 )\n {\n rehash();\n }\n\n return h;\n }", "protected abstract int hashOfObject(Object key);", "@org.junit.jupiter.api.Test\n void drop2ColisionesJuntos() {\n String key = \"0\";\n String value =\"David\";\n String key2 = \"11\";\n String value2 =\"ferrero\";\n HashTable hashTable = new HashTable();\n hashTable.put(key,value);\n hashTable.put(key2,value2);\n hashTable.put(\"22\",\"hola\");\n\n hashTable.drop(\"0\");\n hashTable.drop(\"11\");\n\n String esperado =\"bucket[0] = [22, hola]\\n\";\n Assertions.assertEquals(esperado,hashTable.toString());\n\n }", "@org.junit.jupiter.api.Test\n void dropColision2() {\n String key = \"0\";\n String value =\"David\";\n String key2 = \"11\";\n String value2 =\"ferrero\";\n HashTable hashTable = new HashTable();\n hashTable.put(key,value);\n hashTable.put(key2,value2);\n hashTable.put(\"22\",\"hola\");\n hashTable.drop(\"11\");\n String esperado =\"bucket[0] = [0, David]\\n\" + \" -> [22, hola]\\n\";\n Assertions.assertEquals(esperado,hashTable.toString());\n int count = 2;\n Assertions.assertEquals(count,hashTable.count());\n }", "@Override\n\tpublic int hashCode() {\n\t\treturn idx1.hashCode() * 811 + idx2.hashCode();\n\t}", "private void rehash() {\r\n\t\tSystem.out.println( \"rehashing : buckets \" + numBuckets + \" size \" + size );\r\n\t\tArrayList<MapNode<K, V>> temp = buckets;\r\n\t\tbuckets = new ArrayList();\r\n\t\tfor( int i = 0; i < 2*numBuckets; i++ ) {\r\n\t\t\tbuckets.add( null );\r\n\t\t}\r\n\t\tsize = 0; //size 0 means abi ek b element nhi h\r\n\t\tnumBuckets *= 2; //ab number of buckets double ho gya h\r\n\t\t//now we will trvrs old arraylist and linkedlist and\r\n\t\t//copy is elemenet one by one\r\n\t\tfor( int i = 0; i < temp.size(); i++ ) {\r\n\t\t\tMapNode< K, V > head = temp.get(i);\r\n\t\t\twhile( head != null ) {\r\n\t\t\t\t\r\n\t\t\t\tK key = head.key;\r\n\t\t\t\tV value = head.value;\r\n\t\t\t\tinsert( key, value );\r\n\t\t\t\thead = head.next;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public int hashCode(T elemento)\n {\n return elemento.toInt()%tamanioEst;\n }", "@Override\n public int hashCode() {\n int hash = 7;\n hash = 29 * hash + Objects.hashCode(this.firstName);\n hash = 29 * hash + Objects.hashCode(this.lastName);\n hash = 29 * hash + this.studentNumber;\n return hash;\n }", "private void rehash() \n\t{\n\t\tnumKeys++;\n LinkedList<SpacePort<String, SpaceShipValet>>[] oldPort = chainedPortList;\n chainedPortList = new LinkedList[chainedPortList.length*2];\n\n for(int i = 0; i < oldPort.length; i++)\n {\n if(oldPort[i] != null && !oldPort[i].equals(DELETED))//If there is something in the old port,\n {\n \tfor(SpacePort<String, SpaceShipValet> ports: oldPort[i])//For all the slots in the SpacePort\n \t\tdock(ports.license, ports.ship);//Add a ship\n \tnumKeys++;//Increments the number of slots\n }\n }\t\n\n\t}", "@org.junit.jupiter.api.Test\n void dropColision3() {\n String key = \"0\";\n String value =\"David\";\n String key2 = \"11\";\n String value2 =\"ferrero\";\n HashTable hashTable = new HashTable();\n hashTable.put(key,value);\n hashTable.put(key2,value2);\n hashTable.put(\"22\",\"hola\");\n hashTable.drop(\"22\");\n String esperado =\"bucket[0] = [0, David]\\n\" + \" -> [11, ferrero]\\n\";\n Assertions.assertEquals(esperado,hashTable.toString());\n int count = 2;\n Assertions.assertEquals(count,hashTable.count());\n }", "@Override\r\n\t\t\t\tpublic int hashCode() {\r\n\t\t\t\t\t// Método hashcode aleatório projetado para ser geralmente único\r\n\t\t\t\t\treturn this.x + this.y * 256;\r\n\t\t\t\t}", "@Override\n public int hashCode() {\n int hash = 7;\n hash = 29 * hash + Objects.hashCode(this.id);\n hash = 29 * hash + Objects.hashCode(this.name);\n return hash;\n }", "@Override\n public int hashCode() {\n return Objects.hash(name, gender, age, phone, email, address, desiredJob, education, expectedSalary, tags);\n }", "private int hash2(T key) { //first two char length\r\n\r\n if(key.toString().length() ==1){ //in the case that the key is only one char long\r\n return key.toString().charAt(0)%newTable.length;\r\n }\r\n return (26 * key.toString().charAt(0)+key.toString().charAt(1))% newTable.length;\r\n\r\n }", "private static int computeHash(int par0)\n {\n par0 ^= par0 >>> 20 ^ par0 >>> 12;\n return par0 ^ par0 >>> 7 ^ par0 >>> 4;\n }", "@org.junit.jupiter.api.Test\n void dropColision1() {\n String key = \"0\";\n String value =\"David\";\n String key2 = \"11\";\n String value2 =\"ferrero\";\n HashTable hashTable = new HashTable();\n hashTable.put(key,value);\n hashTable.put(key2,value2);\n hashTable.put(\"22\",\"hola\");\n hashTable.drop(\"0\");\n String esperado =\"bucket[0] = [11, ferrero]\\n\" + \" -> [22, hola]\\n\";\n Assertions.assertEquals(esperado,hashTable.toString());\n int count = 2;\n Assertions.assertEquals(count,hashTable.count());\n }", "int getHash();", "int\thashCode();", "public int hashCode()\n {\n return hash;\n }", "@Before\r\n public void test_change(){\r\n HashTable<String,String> table = new HashTable<>(1);\r\n MySet<String> s = (MySet<String>) table.keySet();\r\n table.put(\"AA\",\"BB\");\r\n table.put(\"AA\",\"CC\");\r\n assertTrue(s.contains(\"AA\"));\r\n table.remove(\"AA\");\r\n assertFalse(s.contains(\"AA\"));\r\n }", "@Override\n public int hashCode() {\n int hash = 7;\n hash = 43 * hash + this.id;\n hash = 43 * hash + this.size;\n hash = 43 * hash + Objects.hashCode(this.orientation);\n hash = 43 * hash + Objects.hashCode(this.currentPosition);\n return hash;\n }", "protected void rehash() {\n int oldCapacity = table.length;\n ServerDescEntry oldMap[] = table;\n\n int newCapacity = oldCapacity * 2 + 1;\n ServerDescEntry newMap[] = new ServerDescEntry[newCapacity];\n\n threshold = (int)(newCapacity * loadFactor);\n table = newMap;\n\n for (int i = oldCapacity ; i-- > 0 ;) {\n for (ServerDescEntry old = oldMap[i] ; old != null ; ) {\n ServerDescEntry e = old;\n old = old.next;\n\n int index = (e.desc.sid & 0x7FFFFFFF) % newCapacity;\n e.next = newMap[index];\n newMap[index] = e;\n }\n }\n }", "@Override\n public int hashCode() {\n int hash = 0;\n hash += (this.units != null ? this.units.hashCode() : 0);\n hash += (this.name != null ? this.name.hashCode() : 0);\n hash += (this.datasetId != null ? this.datasetId.hashCode() : 0);\n return hash;\n }", "protected int myHashKey(KeyType key) {\n int hashValue;\n hashValue = key.hashCode() % mTableSize;\n if (hashValue < 0) {\n hashValue += mTableSize;\n }\n return hashValue;\n }", "@Override\r\n public int hashCode() {\r\n int hash = 5;\r\n hash = 73 * hash + (this.idEstado != null ? this.idEstado.hashCode() : 0);\r\n return hash;\r\n }", "@Override\n public int hashCode() {\n final int prime = 31;\n int result = 1;\n result = prime * result + ((getRowId() == null) ? 0 : getRowId().hashCode());\n result = prime * result + ((getCoinTypeId() == null) ? 0 : getCoinTypeId().hashCode());\n result = prime * result + ((getRecTime() == null) ? 0 : getRecTime().hashCode());\n result = prime * result + ((getActiontype() == null) ? 0 : getActiontype().hashCode());\n result = prime * result + ((getLockId() == null) ? 0 : getLockId().hashCode());\n result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());\n result = prime * result + ((getServerIp() == null) ? 0 : getServerIp().hashCode());\n result = prime * result + ((getGameId() == null) ? 0 : getGameId().hashCode());\n result = prime * result + ((getServerName() == null) ? 0 : getServerName().hashCode());\n result = prime * result + ((getLockNum() == null) ? 0 : getLockNum().hashCode());\n result = prime * result + ((getChangeNum() == null) ? 0 : getChangeNum().hashCode());\n result = prime * result + ((getRemainNum() == null) ? 0 : getRemainNum().hashCode());\n result = prime * result + ((getOtherLockNum() == null) ? 0 : getOtherLockNum().hashCode());\n return result;\n }", "private void enlargeHashTable()\n {\n TableEntry<K,V>[] oldTable = hashTable;\n int oldSize = hashTable.length;\n int newSize = getNextPrime(oldSize + oldSize);\n\n // The case is safe because the new array contains null entries\n @SuppressWarnings(\"unchecked\")\n TableEntry<K, V>[] temp = (TableEntry<K, V>[]) new TableEntry[newSize];\n hashTable = temp;\n numberOfEntries = 0; // Reset size of dictionary, since it will be\n // incremented by add during rehash\n\n // Rehash dictionary entries from old array to the new and bigger\n // array; skip both null locations and removed entries\n for (int index = 0; index < oldSize; index++)\n {\n if ( (oldTable[index] != null) && oldTable[index].isIn() )\n add(oldTable[index].getKey(), oldTable[index].getValue());\n } // end for\n }", "@Override\n public int hashCode() {\n return (first != null ? 41 * first.hashCode() : 0) + (second != null ? second.hashCode() : 0);\n }", "public int hashCode() {\n\t\tlong code = 0;\n\t\tint elements = _rowCount * _columnCount;\n\n\t\tfor (int i = 0; i < elements; i++) {\n\t\t\tcode += _value[i];\n\t\t}\n\n\t\treturn (int) code;\n\t}", "@Override\r\n\t\tpublic int hashCode() {\n\t\t\treturn 0;\r\n\t\t}", "public int hashCode() {\n return 0;\n }", "@org.junit.jupiter.api.Test\n void drop2ColisionesSeparados() {\n String key = \"0\";\n String value =\"David\";\n String key2 = \"11\";\n String value2 =\"ferrero\";\n HashTable hashTable = new HashTable();\n hashTable.put(key,value);\n hashTable.put(key2,value2);\n hashTable.put(\"22\",\"hola\");\n\n hashTable.drop(\"0\");\n hashTable.drop(\"22\");\n\n String esperado =\"bucket[0] = [11, ferrero]\\n\";\n Assertions.assertEquals(esperado,hashTable.toString());\n\n }", "public int hash1 ( String key )\n {\n int hashVal = 0;\n if(key != null){\n for( int i = 0; i < key.length(); i++ )\n hashVal += key.charAt(i);\n \n //if(hashVal != 0)\n return hashVal % tableSize;\n //else\n // return 0;\n }\n else{\n //System.out.println(\"Key is null\");\n return 0 ;\n }\n\n }", "public int hash(String w){\n return (Math.abs(w.hashCode()) % hashTable.length);\n }", "public int hashCode() {\n return hash.hashCode();\n }", "@Override\n public int hashCode() {\n return 0;\n }" ]
[ "0.7110978", "0.70353866", "0.7025741", "0.694338", "0.69309944", "0.6860237", "0.67772907", "0.67615455", "0.6731662", "0.6701778", "0.66737777", "0.66477025", "0.6645127", "0.6640638", "0.66066766", "0.6479634", "0.64417946", "0.641215", "0.6387479", "0.6376376", "0.6282645", "0.6275224", "0.62424076", "0.62299097", "0.6213993", "0.62114894", "0.6211375", "0.61888146", "0.617127", "0.61702245", "0.61596364", "0.61596364", "0.61283046", "0.6125087", "0.6125087", "0.6125087", "0.6125087", "0.61170906", "0.6113443", "0.6094087", "0.6078999", "0.60717034", "0.60563904", "0.6046419", "0.604407", "0.6043065", "0.604237", "0.6034498", "0.60344064", "0.60312235", "0.60262287", "0.60222113", "0.60180336", "0.601062", "0.60023713", "0.59837246", "0.5974431", "0.5961711", "0.5948644", "0.5944418", "0.5944418", "0.5944418", "0.5930714", "0.5926744", "0.5918219", "0.58993524", "0.5873616", "0.5861698", "0.5851887", "0.5851677", "0.58478487", "0.58240527", "0.5823697", "0.582023", "0.5817548", "0.5814278", "0.58093166", "0.5807366", "0.58073634", "0.5802402", "0.58007145", "0.57996184", "0.5794122", "0.57865727", "0.5767251", "0.57634526", "0.5762462", "0.57585406", "0.5757626", "0.5756875", "0.5756722", "0.5753282", "0.5753154", "0.57506776", "0.575021", "0.57493246", "0.574303", "0.57417727", "0.5731127", "0.57266295", "0.572265" ]
0.0
-1
SubscriptionManager provides access to all subscriptions in Data Mining.
public interface SubscriptionManager { void subscribe(Subscription subscription); void updateMetric(String tenant, String metricId, Metric.Update update); void updateForecaster(String tenant, String metricId, org.hawkular.datamining.forecast.Forecaster.Update update); boolean isSubscribed(String tenant, String metricId); Subscription subscription(String tenant, String metricId); Set<Subscription> subscriptionsOfTenant(String tenant); void unsubscribeAll(String tenant, String metricId); void unsubscribe(String tenant, String metricId, Subscription.SubscriptionOwner subscriptionOwner); void unsubscribe(String tenant, String metricId, Set<Subscription.SubscriptionOwner> subscriptionOwners); void setPredictionListener(PredictionListener predictionListener); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "interface ClientSubscriptionManager {\n /**\n * return how many subscriptions this manager has.\n */\n int getSubscriptionCount();\n\n /**\n * Adds the given subscription for the given client to this manager.\n * If this manager already has a subscription\n * for that client then the old subscription is\n * removed and the new one is added.\n *\n * @return true if added or already added; false if caller should retry\n */\n boolean add(Client client, Subscription subscription);\n\n /**\n * Remove any subscription added for the given client.\n *\n * @return true if removed false if not removed\n */\n boolean remove(Client client);\n\n /**\n * The returned collection MUST be a live view of the subscriptions\n * in the manager. This means that if a subscription is added or\n * removed to the manager in the future then the returned Collection\n * will know about that change.\n */\n Collection<Subscription> getSubscriptions();\n}", "protected SubscriptionsStore getSubscriptions() {\n return subscriptions;\n }", "Collection<Subscription> getSubscriptions();", "public SubscriptionManager(RepositoryManager manager) {\n\t\tthis.fileUtils = new SubscriptionFileUtils( manager );\n\t\tthis.manager = manager;\n\t}", "public SubscriptionManager() {\n subscribers = new ArrayList<>();\n pendingUpdates = new ArrayBlockingQueue<>(1024);\n executionThread = null;\n\n System.out.println(\"SUBSCRIPTION MANAGER INITIALIZED!\");\n }", "public void setSubscriptionManager(STOMPSubscriptionManager subscriptionManager) {\n this.subscriptionManager = subscriptionManager;\n }", "public ArrayList getSubscriptions(){\n\t return subscriptions;\n\t}", "public List<Subscription> subscriptions() {\n return this.subscriptions;\n }", "public void setServerSubscriptions(List<ServerService> subscriptions);", "public final ISubscription<T> [] getSubscriptions() {\n\t\t ISubscription<T>[] array = (SubscriptionDelegate[]) Array.newInstance(SubscriptionDelegate.class, 0); \n\t\t return activeSubscriptions.toArray(array);\n\t}", "@HTTP(\n method = \"GET\",\n path = \"/apis/dapr.io/v1alpha1/subscriptions\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesListCall<SubscriptionList, Subscription> listSubscriptionForAllNamespaces();", "public List<String> subscriptions() {\n return this.subscriptions;\n }", "public void setupSubscriptions()\n {\n String debug = System.getProperty(\"SAFE.debug\");\n if (debug != null && debug.equalsIgnoreCase(\"true\")) {\n _debug = true;\n }\n \n // get handle to message transport service \n try {\n MessageTransportService mts = (MessageTransportService) this.getBindingSite().getServiceBroker().getService(this,\n MessageTransportService.class,\n null);\n \n // get the name of the domain we are managing\n String domainName = System.getProperty(\"org.cougaar.safe.domainName\");\n if (domainName == null) {\n throw new NullPointerException(\"System property org.cougaar.safe.domainName is not set\");\n } \n\n // create MessageSender and MessageReceiver for DM\n // create local locator and bind MessageReceiver to it\n CougaarMessageTransportService messageTransport = new CougaarMessageTransportService(mts);\n MessageSender sender = messageTransport.newMessageSender();\n MessageReceiver receiver = messageTransport.newMessageReceiver(); \n CougaarLocator myLocator = new CougaarLocator(domainName);\n receiver.bindToLocalLocator(myLocator);\n \n // create Domain Manager\n _dm = new MyDomainManager(domainName,\n receiver,\n sender);\n \n }\n catch (Exception xcp) {\n xcp.printStackTrace();\n }\n \n // BEGIN rehydrate \n \n // rehydrate: get entity descriptions from the blackboard and register them\n // with the domain manager\n Iterator entityDescriptions = query(_entityDescriptionPredicate).iterator();\n Vector nonGuardDescrips = new Vector();\n while (entityDescriptions.hasNext()) { \n KAoSEntityDescription entityDescrip = (KAoSEntityDescription) entityDescriptions.next();\n // register all the guards first\n if (entityDescrip.getEntityType().equals(KAoSConstants.GUARD)) { \n _dm.register(entityDescrip, true);\n }\n else {\n nonGuardDescrips.addElement(entityDescrip);\n }\n }\n // then register the other entities\n for (int i=0; i<nonGuardDescrips.size(); i++) {\n _dm.register((KAoSEntityDescription) nonGuardDescrips.elementAt(i), true);\n }\n \n // rehydrate: get policies from the blackboard and give\n // them to the domain manager\n Iterator policyMsgs = query(_policyMsgPredicate).iterator();\n Vector policyMsgsV = new Vector();\n while (policyMsgs.hasNext()) {\n policyMsgsV.addElement(policyMsgs.next());\n }\n _dm.rehydratePolicies(policyMsgsV);\n \n // END rehydrate\n \n _proposedPolicyUpdate = (IncrementalSubscription) subscribe(_proposedPolicyUpdatePredicate); \n }", "public List<User> getSubscriptions() {\n return subscriptions;\n }", "private SubscriptionList getNamespaceSubscriptions(String baseNS) throws RepositoryException {\n \tSubscriptionResource sr = namespaceCache.get( baseNS );\n \t\n \tif (sr == null) {\n \t\ttry {\n\t\t\t\tsr = new SubscriptionResource( fileUtils, baseNS, null, null );\n\t\t\t\tnamespaceCache.put( baseNS, sr );\n\t\t\t\t\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new RepositoryException(\"Error loading subscription list content.\", e);\n\t\t\t}\n \t}\n \treturn sr.getResource();\n }", "public void setAnalysisSubscriptions(Map<AnalysisService, List<String>> subscriptions);", "List<ClientTopicCouple> listAllSubscriptions();", "private void readSubscriptions() {\n DatabaseReference reference = FirebaseDatabase.getInstance(\"https://projectsub-9f668-default-rtdb.europe-west1.firebasedatabase.app\")\n .getReference(\"users/\"+user.getUid()+\"/subscriptions\");\n\n reference.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull @NotNull DataSnapshot dataSnapshot) {\n mSubscriptions.clear();\n for (DataSnapshot snapshot : dataSnapshot.getChildren()) {\n Subscription subscription = snapshot.getValue(Subscription.class);\n\n savedSubs.add(subscription);\n mSubscriptions.add(subscription);\n }\n\n adapter.notifyDataSetChanged();\n\n }\n\n @Override\n public void onCancelled(@NonNull @NotNull DatabaseError error) {\n // TODO\n }\n });\n }", "List<Subscription> findAllActiveSubscriptions();", "List<Subscription> findAll();", "Subscriptions() {\n // Will get filled in with set methods\n }", "public double getSubscription() {\n\t return subscriptions;\n\t}", "public DefaultListModel getSubscribers()\r\n\t{\r\n\t\treturn subscription;\r\n\t}", "public interface ISubsManager {\n\n public void subscribe(NodeId nodeId);\n}", "public static void subscriptions() {\n\t\ttry {\n\t\t\tList<Subscription> subscriptions = PlatformClient\n\t\t\t\t\t.subscriptions(getUser());\n\t\t\trender(subscriptions);\n\t\t} catch (ApplicationException e) {\n\t\t\te.printStackTrace();\n\t\t\tflash.error(\"Can not get subscriptions : %s\", e.getMessage());\n\t\t\trender();\n\t\t}\n\t}", "Collection<Service> getAllSubscribeService();", "public CachetSubscriberList getSubscribers() {\n throw new RuntimeException(\"Method not implemented.\");\n }", "public Set<Subscriber> getSubscribersOfAPI(APIIdentifier identifier) throws APIManagementException {\n\n Set<Subscriber> subscriberSet = null;\n try {\n subscriberSet = apiMgtDAO.getSubscribersOfAPI(identifier);\n } catch (APIManagementException e) {\n handleException(\"Failed to get subscribers for API : \" + identifier.getApiName(), e);\n }\n return subscriberSet;\n }", "public Set<AndesSubscription> getActiveLocalSubscribersForNode() {\n return localSubscriptionProcessor\n .getActiveSubscribersForNode(ClusterResourceHolder.getInstance().getClusterManager().getMyNodeID());\n }", "com.google.cloud.commerce.consumer.procurement.v1.Subscription getSubscription();", "List<Subscription> findActiveSubscriptions(User user);", "public void setSubscriptions(List<User> subscriptions) {\n this.subscriptions = subscriptions;\n }", "public AggregatorsResource() {\n ConfigSingleton.setRepoxContextUtil(new DefaultRepoxContextUtil());\n dataManager = ((DefaultDataManager)ConfigSingleton.getRepoxContextUtil().getRepoxManager().getDataManager());\n }", "@HTTP(\n method = \"GET\",\n path = \"/apis/dapr.io/v1alpha1/subscriptions\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesListCall<SubscriptionList, Subscription> listSubscriptionForAllNamespaces(\n @QueryMap ListSubscriptionForAllNamespaces queryParameters);", "public interface SubscriptionsDao {\n List<SubscriptionDto> getSubscribers(int userId, int currentUser);\n\n List<SubscriptionDto> getSubscriptions(int userId, int currentUser);\n\n void removeSubscription(int userId, int checkistId);\n\n void addSubscription(int usersId, int checkistId);\n\n int getSubscriptionsCount(int usersId);\n\n int getSubscribersCount(int usersId);\n\n boolean isSubscriptionExists(int userId, int checklistId);\n}", "public static void catalogsListBySubscription(com.azure.resourcemanager.sphere.AzureSphereManager manager) {\n manager.catalogs().list(com.azure.core.util.Context.NONE);\n }", "int getSubscriptionCount();", "@Override\n public List<ISubscriber> getSubscribers() {\n return subscribers;\n }", "@GetMapping(\"/subscriptions\")\n @Timed\n public ResponseEntity<List<Subscription>> getAllSubscriptions(@ApiParam Pageable pageable) {\n log.debug(\"REST request to get a page of Subscriptions\");\n Page<Subscription> page = subscriptionService.findAll(pageable);\n HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(page, \"/api/subscriptions\");\n return new ResponseEntity<>(page.getContent(), headers, HttpStatus.OK);\n }", "private SubscriptionList getAllVersionsSubscriptions(String baseNamespace, String libraryName) throws RepositoryException {\n \tString cacheKey = baseNamespace + \"~\" + libraryName;\n \tSubscriptionResource sr = allVersionsCache.get( cacheKey );\n \t\n \tif (sr == null) {\n \t\ttry {\n\t\t\t\tsr = new SubscriptionResource( fileUtils, baseNamespace, libraryName, null );\n\t\t\t\tallVersionsCache.put( cacheKey, sr );\n\t\t\t\t\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new RepositoryException(\"Error loading subscription list content.\", e);\n\t\t\t}\n \t}\n \treturn sr.getResource();\n }", "public interface Subscription {\n /**\n * Calling this will send the event to the subscribed service\n * @param event the event to transmit to the subscribed service\n */\n boolean onEvent(Event event);\n\n /**\n * Returns a stream of all subscribeRequests that are transmitted by the subbed service\n * @return a stream of subscribeRequests transmitted by subbed service\n */\n Observable<SubscribeRequest> getSubscribeRequestStream();\n\n /**\n * This completable will complete when the subscription is terminated for some reason (most likely a connection termination)\n * @return a completable that will complete when the subscription is terminated\n */\n Completable getCompletable();\n}", "public AggregatorsResource(DefaultDataManager dataManager) {\n super();\n this.dataManager = dataManager;\n }", "private SubscriptionAdminClient createSubscriptionClient() throws IOException {\n if (useEmulator) {\n SubscriptionAdminSettings adminSettings = SubscriptionAdminSettings.newBuilder()\n .setCredentialsProvider(pubsubCredsProvider)\n .setTransportChannelProvider(channelProvider)\n .build();\n return SubscriptionAdminClient.create(adminSettings);\n } else {\n return SubscriptionAdminClient.create(); // todo arz shutdown listener\n }\n }", "public SubscriptionList getSubscriptionList(SubscriptionTarget subscriptionTarget) throws RepositoryException {\n\t\tString baseNamespace = subscriptionTarget.getBaseNamespace();\n\t\tString libraryName = subscriptionTarget.getLibraryName();\n\t\tString version = subscriptionTarget.getVersion();\n\t\tSubscriptionList subscriptions;\n\t\t\n\t\tif (baseNamespace != null) {\n\t\t\tif (libraryName != null) {\n\t\t\t\tif (version != null) {\n\t\t\t\t\tsubscriptions = getSingleVersionSubscriptions( baseNamespace, libraryName, version );\n\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tsubscriptions = getAllVersionsSubscriptions( baseNamespace, libraryName );\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tsubscriptions = getNamespaceSubscriptions( baseNamespace );\n\t\t\t}\n\t\t\t\n\t\t} else {\n\t\t\tthrow new RepositoryException(\"Insufficient information provided for subscription list lookup.\");\n\t\t}\n\t\treturn subscriptions;\n\t}", "public List<User> getSubscribers() {\n return subscribers;\n }", "static /* synthetic */ List m6173a(GetMySubscribedStoresResponse getUserRepoSubscription) {\n boolean[] $jacocoInit = $jacocoInit();\n DataList dataList = getUserRepoSubscription.getDataList();\n $jacocoInit[108] = true;\n List list = dataList.getList();\n $jacocoInit[109] = true;\n return list;\n }", "public com.sforce.soap.enterprise.QueryResult getFeedSubscriptionsForEntity() {\r\n return feedSubscriptionsForEntity;\r\n }", "public final Set<WritableSession> getSubscribers() {\r\n return sessions;\r\n }", "Set<StreamSessionHandler> getSubscribers();", "public Set<AndesSubscription> getActiveClusterSubscribersForNode(String nodeID) {\n return clusterSubscriptionProcessor.getActiveSubscribersForNode(nodeID);\n }", "public static synchronized SubscriptionHelper getInstance() {\n\t\tif (instance == null) {\n\t\t\tinstance = new SubscriptionHelper();\n\t\t}\n\t\treturn instance;\n\t}", "public Set<AndesSubscription> getClusterSubscribersForNode(String nodeID) {\n return clusterSubscriptionProcessor.getSubscribersForNode(nodeID);\n }", "public abstract Set<WritableSession> getSubscribers(F filter);", "public SubscriptionsInner(Retrofit retrofit, ApiManagementClientImpl client) {\n this.service = retrofit.create(SubscriptionsService.class);\n this.client = client;\n }", "public static void listHealthBySubscriptionId(\n com.azure.resourcemanager.resourcehealth.ResourceHealthManager manager) {\n manager\n .availabilityStatuses()\n .listBySubscriptionId(null, \"recommendedactions\", com.azure.core.util.Context.NONE);\n }", "public void createSubscription(Subscription sub);", "public List<Subscription> findAllClientSubscriptions(int clientId) throws ServiceException {\n try (ConnectionWrapper connectionManager = new ConnectionWrapper()) {\n SubscriptionDAO subscriptionDAO = new SubscriptionDAO(connectionManager.getConnection());\n\n return subscriptionDAO.selectClientSubscriptions(clientId);\n } catch (DAOException exception) {\n throw new ServiceException(\"Exception during attempt to find client's subscription operation.\", exception);\n }\n }", "public SubscriptionId getSubscription(SubscriptionForm subscriptionForm);", "@Override\n\tpublic void subscribe()\n\t{\n\t\ts_ctx = (IContextProxy) ServiceManager.get(IContextProxy.class);\n\t\ts_fileMgr = (IFileManager) ServiceManager.get(IFileManager.class);\n\t\tm_models = new ProcedureModelManager(s_ctx, s_fileMgr);\n\t}", "public interface Configurable extends AzureConfigurable<Configurable> {\n /**\n * Creates an instance of RedisManager that exposes Cache management API entry points.\n *\n * @param credentials the credentials to use\n * @param subscriptionId the subscription UUID\n * @return the interface exposing Cache management API entry points that work across subscriptions\n */\n RedisManager authenticate(AzureTokenCredentials credentials, String subscriptionId);\n }", "public String getShopCostumerSubscription()\n\t{\n\t\treturn m_shopCostumerSubscription;\n\t}", "com.google.cloud.commerce.consumer.procurement.v1.SubscriptionOrBuilder\n getSubscriptionOrBuilder();", "public interface Subscription {\n /**\n * Returns true if this resource's attributes have been loaded. If this\n * method returns {@code false}, calls to attribute getter methods on this\n * instance will make an implicit call to {@code load()} to retrieve the\n * value.\n */\n boolean isLoaded();\n\n /**\n * Makes a call to the service to load this resource's attributes if they\n * are not loaded yet.\n *\n * @return Returns {@code true} if the resource is not yet loaded when this\n * method was invoked, which indicates that a service call has been\n * made to retrieve the attributes.\n * @see #load(GetSubscriptionAttributesRequest)\n */\n boolean load();\n\n /**\n * Makes a call to the service to load this resource's attributes if they\n * are not loaded yet.\n * The following request parameters will be populated from the data of this\n * <code>Subscription</code> resource, and any conflicting parameter value\n * set in the request will be overridden:\n * <ul>\n * <li>\n * <b><code>SubscriptionArn</code></b>\n * - mapped from the <code>Arn</code> identifier.\n * </li>\n * </ul>\n *\n * <p>\n *\n * @return Returns {@code true} if the resource is not yet loaded when this\n * method was invoked, which indicates that a service call has been\n * made to retrieve the attributes.\n * @see GetSubscriptionAttributesRequest\n */\n boolean load(GetSubscriptionAttributesRequest request);\n\n /**\n * Makes a call to the service to load this resource's attributes if they\n * are not loaded yet, and use a ResultCapture to retrieve the low-level\n * client response\n * The following request parameters will be populated from the data of this\n * <code>Subscription</code> resource, and any conflicting parameter value\n * set in the request will be overridden:\n * <ul>\n * <li>\n * <b><code>SubscriptionArn</code></b>\n * - mapped from the <code>Arn</code> identifier.\n * </li>\n * </ul>\n *\n * <p>\n *\n * @return Returns {@code true} if the resource is not yet loaded when this\n * method was invoked, which indicates that a service call has been\n * made to retrieve the attributes.\n * @see GetSubscriptionAttributesRequest\n */\n boolean load(GetSubscriptionAttributesRequest request,\n ResultCapture<GetSubscriptionAttributesResult> extractor);\n\n /**\n * Gets the value of the Arn identifier. This method always directly returns\n * the identifier and never involves a service call.\n */\n String getArn();\n\n /**\n * Gets the value of the TopicArn identifier. This method always directly\n * returns the identifier and never involves a service call.\n */\n String getTopicArn();\n\n /**\n * Gets the value of the Attributes attribute. If this resource is not yet\n * loaded, a call to {@code load()} is made to retrieve the value of the\n * attribute.\n */\n Map<String, String> getAttributes();\n\n /**\n * Retrieves the <code>Topic</code> resource referenced by this resource.\n */\n Topic getTopic();\n\n /**\n * Performs the <code>SetAttributes</code> action.\n *\n * <p>\n * The following request parameters will be populated from the data of this\n * <code>Subscription</code> resource, and any conflicting parameter value\n * set in the request will be overridden:\n * <ul>\n * <li>\n * <b><code>SubscriptionArn</code></b>\n * - mapped from the <code>Arn</code> identifier.\n * </li>\n * </ul>\n *\n * <p>\n *\n * @see SetSubscriptionAttributesRequest\n */\n void setAttributes(SetSubscriptionAttributesRequest request);\n\n /**\n * Performs the <code>SetAttributes</code> action and use a ResultCapture to\n * retrieve the low-level client response.\n *\n * <p>\n * The following request parameters will be populated from the data of this\n * <code>Subscription</code> resource, and any conflicting parameter value\n * set in the request will be overridden:\n * <ul>\n * <li>\n * <b><code>SubscriptionArn</code></b>\n * - mapped from the <code>Arn</code> identifier.\n * </li>\n * </ul>\n *\n * <p>\n *\n * @see SetSubscriptionAttributesRequest\n */\n void setAttributes(SetSubscriptionAttributesRequest request,\n ResultCapture<Void> extractor);\n\n /**\n * The convenient method form for the <code>SetAttributes</code> action.\n *\n * @see #setAttributes(SetSubscriptionAttributesRequest)\n */\n void setAttributes(String attributeName, String attributeValue);\n\n /**\n * The convenient method form for the <code>SetAttributes</code> action.\n *\n * @see #setAttributes(SetSubscriptionAttributesRequest, ResultCapture)\n */\n void setAttributes(String attributeName, String attributeValue,\n ResultCapture<Void> extractor);\n\n /**\n * Performs the <code>Delete</code> action.\n *\n * <p>\n * The following request parameters will be populated from the data of this\n * <code>Subscription</code> resource, and any conflicting parameter value\n * set in the request will be overridden:\n * <ul>\n * <li>\n * <b><code>SubscriptionArn</code></b>\n * - mapped from the <code>Arn</code> identifier.\n * </li>\n * </ul>\n *\n * <p>\n *\n * @see UnsubscribeRequest\n */\n void delete(UnsubscribeRequest request);\n\n /**\n * Performs the <code>Delete</code> action and use a ResultCapture to\n * retrieve the low-level client response.\n *\n * <p>\n * The following request parameters will be populated from the data of this\n * <code>Subscription</code> resource, and any conflicting parameter value\n * set in the request will be overridden:\n * <ul>\n * <li>\n * <b><code>SubscriptionArn</code></b>\n * - mapped from the <code>Arn</code> identifier.\n * </li>\n * </ul>\n *\n * <p>\n *\n * @see UnsubscribeRequest\n */\n void delete(UnsubscribeRequest request, ResultCapture<Void> extractor);\n\n /**\n * The convenient method form for the <code>Delete</code> action.\n *\n * @see #delete(UnsubscribeRequest)\n */\n void delete();\n\n /**\n * The convenient method form for the <code>Delete</code> action.\n *\n * @see #delete(UnsubscribeRequest, ResultCapture)\n */\n void delete(ResultCapture<Void> extractor);\n}", "public SubscriptionManager(final IKBus eventBus, final MqttConfigurationManager configurationManager, \n\t\t\tfinal ViewManager viewManager, final EventQueueManager<FormattedMqttMessage> uiEventQueue)\n\t{\n\t\tthis.eventBus = eventBus;\n\t\tthis.configurationManager = configurationManager;\n\t\tthis.viewManager = viewManager;\n\t\tthis.uiEventQueue = uiEventQueue;\n\t}", "public final ISubscription<T> [] getSubscriptions(final InstrumentSpecification spec, final TimeFrame timeFrame) {\n\t\tList<ISubscription<T>> subscriptions = new ArrayList<ISubscription<T>>();\n\t\t// iterate over all subscriptions and search for matching subscriptions ...\n\t\tfor(ISubscription<T> subscription : activeSubscriptions){\n\t\t\tif(subscription.getInstrumentSpecification().equals(spec) && subscription.getTimeFrame().equals(timeFrame)){\n\t\t\t\t// ... and add them to the list of returned subscriptions. \n\t\t\t\tsubscriptions.add(subscription); \n\t\t\t}\n\t\t}\n\t\t// have to take way across Delegate. \n\t\tISubscription<T>[] array = (SubscriptionDelegate[]) Array.newInstance(SubscriptionDelegate.class, 0);\n\t\treturn subscriptions.toArray(array); \n\t}", "public Subscription subscribeForDistributorDeliveries(ClockListener listener);", "public interface Subject {\n public void addSubscription(Subscription subscription);\n public void removeSubscription(Subscription subscription);\n public void notifyAllSubscriptions();\n}", "Subscriber getSubscriber(Service service);", "public interface Configurable extends AzureConfigurable<Configurable> {\n /**\n * Creates an instance of RecoveryServicesManager that exposes RecoveryServices management API entry points.\n *\n * @param credentials the credentials to use\n * @param subscriptionId the subscription UUID\n * @return the interface exposing RecoveryServices management API entry points that work across subscriptions\n */\n RecoveryServicesManager authenticate(AzureTokenCredentials credentials, String subscriptionId);\n }", "public interface Configurable extends AzureConfigurable<Configurable> {\n /**\n * Creates an instance of RecoveryServicesManager that exposes RecoveryServices management API entry points.\n *\n * @param credentials the credentials to use\n * @param subscriptionId the subscription UUID\n * @return the interface exposing RecoveryServices management API entry points that work across subscriptions\n */\n RecoveryServicesManager authenticate(AzureTokenCredentials credentials, String subscriptionId);\n }", "public static CachedSubsumptionGraph getInstance() {\n return cachedSubsumptionGraph;\n }", "public int getSubscriptionCount()\n {\n int count;\n\n synchronized (lock)\n {\n count = (subscriptions != null) ? subscriptions.size() : 0;\n }\n\n return count;\n }", "public SubscriptionPolicies() {\n }", "void wipeSubscriptions(String sessionID);", "public Collection<SubscriptionController> getSubscriptionControllers()\n\t{\n\t\tsynchronized (subscriptionControllers)\n\t\t{\n\t\t\treturn Collections.unmodifiableCollection(subscriptionControllers.values());\n\t\t}\n\t}", "public interface DistributorManager {\n\n List<DistShopDTO> queryShop(DistShopQTO distShopQTO, String appKey) throws MarketingException;\n \n GainsSetDTO getGainsSet(String appKey) throws MarketingException;\n \n List<ItemSkuDistPlanDTO> getItemSkuDistPlanList(Long itemId , String appKey) throws MarketingException;\n \n}", "public QueryRequest withSubscriptions(List<String> subscriptions) {\n this.subscriptions = subscriptions;\n return this;\n }", "public void populateSubscriptions()\n {\n JSONObject dataJSON = new JSONObject();\n\n httpRequestHandler.sendHTTPRequest(Request.Method.GET,\"/subscription/allCategories\", dataJSON, new HTTPRequestHandler.VolleyCallback() {\n\n @Override\n public void onSuccess(JSONObject jSONObject) throws JSONException {\n JSONArray subscriptionArray = jSONObject.getJSONArray(\"categories\");\n\n subscriptions = new HashMap<>();\n\n for(int i = 0 ; i < subscriptionArray.length() ; i++)\n {\n JSONObject singleEntry = (JSONObject) subscriptionArray.get(i);\n subscriptions.put(singleEntry.getString(\"Category_Name\"), false);\n }\n\n String[] mySubscriptions = userDetails.getSubscribedCategories();\n\n for(int j = 0 ; j < mySubscriptions.length ; j++)\n {\n subscriptions.put(mySubscriptions[j], true);\n }\n\n Log.d(\"Subscribe\", \"My subscriptions \"+subscriptions.toString());\n }\n });\n }", "public Set<AlertClassSubscription> getCopySubscriptions() {\n\t\tHashSet<AlertClassSubscription> currentSub = subs;\n\t\tHashSet<AlertClassSubscription> copy = new HashSet<>();\n\t\tcopy.addAll(currentSub);\n\t\treturn copy;\n\t}", "@Override\n public void onSubscribe(Subscription s) {\n s.request(10);\n\n // Should not produce anymore data\n s.request(10);\n }", "public static SqlServerManager authenticate(RestClient restClient, String tenantId, String subscriptionId) {\n return new SqlServerManager(restClient, tenantId, subscriptionId);\n }", "boolean hasSubscription();", "void addNewSubscription(Subscription newSubscription);", "public void addSubscriptions(String subscribeTo){\n\t subscriptions.add(subscribeTo);\n\t}", "public void setSubscription(double value) {\n\t this.subscriptions = value;\n\t}", "public interface SubscriptionTransport\n{\n\tpublic static interface Callback\n\t{\n\n\t\tpublic abstract void onConnected();\n\n\t\tpublic abstract void onFailure(Throwable throwable);\n\n\t\tpublic abstract void onMessage(OperationServerMessage operationservermessage);\n\t}\n\n\tpublic static interface Factory\n\t{\n\n\t\tpublic abstract SubscriptionTransport create(Callback callback);\n\t}\n\n\n\tpublic abstract void connect();\n\n\tpublic abstract void disconnect(OperationClientMessage operationclientmessage);\n\n\tpublic abstract void send(OperationClientMessage operationclientmessage);\n}", "@HTTP(\n method = \"GET\",\n path = \"/apis/dapr.io/v1alpha1/namespaces/{namespace}/subscriptions\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesListCall<SubscriptionList, Subscription> listNamespacedSubscription(\n @Path(\"namespace\") String namespace);", "public ReviewerStatisticsManagerImpl() {\n this(DEFAULT_NAMESPACE);\n }", "@Override\n public Subscription getSubscription(String companyId, String topic) {\n Subscription subscription = new Subscription();\n subscription.setCallbackUrl(env.getProperty(\"subscription.callbackUrl\"));\n subscription.setSendLogisticsObjectBody(Boolean.valueOf(env.getProperty(\"subscription.sendLogisticsObjectBody\")));\n subscription.setSubscribeToStatusUpdates(Boolean.valueOf(env.getProperty(\"subscription.subscribeToStatusUpdates\")));\n subscription.setSecret(env.getProperty(\"subscription.secret\"));\n subscription.setCacheFor(Objects.requireNonNull(env.getProperty(\"subscription.cacheFor\")));\n return subscription;\n }", "@Override\r\n public GenericManager<TraitSalaire, Long> getManager() {\r\n return manager;\r\n }", "private void getMasechtotListFromServer() {\n\n\n RequestManager.getMasechtotList().subscribe(new Observer<Result<MasechetList>>() {\n @Override\n public void onSubscribe(Disposable d) {\n\n }\n\n @Override\n public void onNext(Result<MasechetList> masechetListResult) {\n\n saveMasechtotList(masechetListResult.getData());\n mMasechtotList = masechetListResult.getData();\n\n }\n\n @Override\n public void onError(Throwable e) {\n\n }\n\n @Override\n public void onComplete() {\n\n }\n });\n\n\n }", "public void setShopCostumerSubscription(String shopCostumerSubscription)\n\t{\n\t\tm_shopCostumerSubscription = shopCostumerSubscription;\n\t}", "public ListSubscriptionForAllNamespaces watch(Boolean watch) {\n put(\"watch\", watch);\n return this;\n }", "public List<Manager> getAllManager() {\n\t\treturn service.getAllManager();\n\t}", "void subscribe(Long subscriptionId, ApplicationProperties.VendorConfiguration configuration);", "public ArrayList<String> getSubscribedGroups() {\n return subscribedGroups;\n }", "ResourceCollection<SubscriptionDailyUsageRecord> get();", "IPolicySubscriber getSubscriber();", "String getSubscriptionId();", "public SubscriberAndDeviceInformation getSubscriber() {\n return subscriber;\n }" ]
[ "0.66166127", "0.6466003", "0.6394441", "0.63052654", "0.6299771", "0.6279742", "0.58965904", "0.5847976", "0.5735295", "0.5722503", "0.5721162", "0.5666918", "0.56593245", "0.5653011", "0.5618319", "0.55878127", "0.55313706", "0.5516878", "0.5511725", "0.5485127", "0.5473585", "0.5462731", "0.54514486", "0.5439644", "0.54381317", "0.53953487", "0.53666055", "0.5346312", "0.53433436", "0.53199345", "0.5274776", "0.52719665", "0.52699596", "0.5261319", "0.52352077", "0.52248365", "0.517788", "0.5147679", "0.5141255", "0.51171374", "0.50978285", "0.5071459", "0.4958307", "0.49319094", "0.49193498", "0.4907353", "0.48848808", "0.4875988", "0.48617092", "0.4851537", "0.48290262", "0.4826933", "0.4825558", "0.48215517", "0.481981", "0.4814432", "0.48037508", "0.48037148", "0.48013842", "0.4796636", "0.47952032", "0.47864294", "0.47789964", "0.4764055", "0.47615883", "0.4723707", "0.47113642", "0.47076693", "0.47023603", "0.47023603", "0.4700182", "0.4678376", "0.4672195", "0.46718997", "0.4670901", "0.46680772", "0.46563378", "0.46268287", "0.4622615", "0.46206713", "0.46093386", "0.45912108", "0.4588669", "0.45655832", "0.4557817", "0.4551418", "0.45498884", "0.4533964", "0.45308635", "0.4529101", "0.45163462", "0.45109886", "0.4508428", "0.4506736", "0.4501718", "0.45007157", "0.4498215", "0.4497951", "0.44973394", "0.44933957" ]
0.7183911
0
TODO Autogenerated method stub
@Override public void onClick(View v) { Bundle bundle = new Bundle(); bundle.putInt(Constants.P_SEARCHLISTTYPE, 2); bundle.putLong(Constants.DEVICE_ID, deviceId); Constants.toActivity(AddDeviceActivity.this, SearchActivity.class, bundle); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override protected void onDestroy() { Bimp.tempSelectBitmap.clear(); Bimp.max = 0; super.onDestroy(); Constants.removeActivity(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) { device_year.setContent(String.format("%d-%d-%d", year, monthOfYear + 1, dayOfMonth)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Returns true to indicate this state is a document state.
@Override public boolean isDocumentState() { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isDocument() {\n\n return this.document;\n }", "public boolean isDocument(Document document) {\n return false;\n }", "public boolean hasDocumentType() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "public boolean hasDocumentType() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "boolean hasDocumentType();", "public boolean hasDocumentType() {\n return fieldSetFlags()[11];\n }", "@java.lang.Override\n public boolean hasDocument() {\n return document_ != null;\n }", "@java.lang.Override\n public boolean hasDocument() {\n return document_ != null;\n }", "@java.lang.Override\n public boolean hasDocument() {\n return document_ != null;\n }", "boolean hasDocument();", "boolean hasDocument();", "boolean hasDocument();", "public boolean hasDocument() {\n return documentBuilder_ != null || document_ != null;\n }", "public boolean hasDocument() {\n return documentBuilder_ != null || document_ != null;\n }", "public boolean hasDocument() {\n return documentBuilder_ != null || document_ != null;\n }", "boolean hasCurrentDocument();", "boolean isDocument(Object object);", "public Boolean isReviewState() {\n return this.isReviewState;\n }", "protected boolean isDocStatusCodeInitiated(Document document) {\n CustomerInvoiceWriteoffDocument writeoffDoc = (CustomerInvoiceWriteoffDocument) document;\n return (StringUtils.equals(writeoffDoc.getStatusCode(), ArConstants.CustomerInvoiceWriteoffStatuses.INITIATE));\n }", "@Override\n\tpublic boolean getState() {\n\t\treturn true;\n\t}", "public boolean getState() {\n\t\treturn state;\n\t}", "public boolean isTransducerState() {\n\t\treturn isTransducerState;\n\t}", "public boolean isRecordState() {\n return recordState;\n }", "public boolean hasDocumentId() {\n return fieldSetFlags()[8];\n }", "public boolean hasDocumentId() {\n return fieldSetFlags()[1];\n }", "public Boolean getState() {\n return state;\n }", "public Boolean isDraft() {\r\n\t\treturn draft;\r\n\t}", "boolean hasProofDocument();", "boolean hasProofDocument();", "public boolean getState( ) { return state; }", "private boolean canChangeDocuments() {\n\n // If the text is modified, give the user a chance to\n // save it. Otherwise return true.\n\n if (fDocument.isModified()) {\n byte save = askSave(this, getTitle());\n if (save == YES) {\n return doSave();\n }\n else {\n return save == NO;\n }\n }\n else {\n return true;\n }\n }", "public boolean hasDocumentStandard() {\n return fieldSetFlags()[9];\n }", "@java.lang.Override\n public boolean hasProofDocument() {\n return proofDocument_ != null;\n }", "@java.lang.Override\n public boolean hasProofDocument() {\n return proofDocument_ != null;\n }", "public boolean isStored(){\n synchronized (stateLock){\n return state.equals(State.STORED);\n }\n }", "public boolean isScene() {\r\n\t\treturn scene;\r\n\t}", "public boolean hasRevealDocument() {\n return revealDocumentBuilder_ != null || revealDocument_ != null;\n }", "public String getDocStatus();", "public String getDocStatus();", "public String getDocStatus();", "public boolean hasProofDocument() {\n return proofDocumentBuilder_ != null || proofDocument_ != null;\n }", "public boolean hasProofDocument() {\n return proofDocumentBuilder_ != null || proofDocument_ != null;\n }", "public boolean shouldIndex(IDocument document);", "@java.lang.Override\n public boolean hasRevealDocument() {\n return revealDocument_ != null;\n }", "public boolean isInternalThesis() {\n return hasThesis() && getThesis().isFinalAndApprovedThesis();\n }", "public boolean isActive () {\n\t\treturn body.isActive();\n\t}", "public void setDocument(boolean document) {\n\n this.document = document;\n }", "@Transient\n\tpublic boolean isProcessDocumentNotNull() {\n\t\treturn (getProcessDocument()!=null);\n\t}", "public boolean isStateKnown(){\n\t\treturn (state != null);\n\t}", "public boolean isFinishedWithDocument(DocText docText) {\n return false;\n }", "boolean hasTextDocument();", "public Boolean isScorable() {\n return scorable;\n }", "public synchronized boolean isStarted() {\n\t\treturn State.STARTED.equals(state);\n\t}", "@Override\r\n\tpublic boolean isPublished() {\r\n\t\treturn super.isPublished();\r\n\t}", "public boolean isStorniert() {\n\t\treturn this.storniert;\n\t}", "public boolean updateDocument(Document document, InputStream isDocument) {\n return false;\n }", "boolean hasRevealDocument();", "@Override\n\tpublic boolean isDraft() {\n\t\treturn model.isDraft();\n\t}", "public boolean isStartState() {\r\n\t\treturn flow.getStartState() == this;\r\n\t}", "public boolean isStore() { return _store; }", "public boolean is_record_transaction(){\n\t\treturn transaction_type == TransactionType.OPERATION;\n\t}", "public boolean isSetState()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(STATE$8) != 0;\r\n }\r\n }", "public boolean isThesis() {\n return _isThesis;\n }", "public boolean isTerm() {\n\t\treturn isTerm;\n\t}", "public boolean isSnapshot() {\r\n\t\treturn snapshot;\r\n\t}", "public boolean hasBusinessDocumentId() {\n return fieldSetFlags()[0];\n }", "public boolean getState() {\n\t\treturn isActive;\n\t}", "public boolean isActive() {\n\t\treturn this.state;\n\t}", "public boolean isWorkflow() {\n\t\treturn true;\n\t}", "public boolean isBooked(){\n return booked;\n }", "public boolean isSetState()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().find_attribute_user(STATE$14) != null;\r\n }\r\n }", "public boolean isStateKnown() {\r\n\t\treturn stateKnown;\r\n\t}", "public boolean isActivelySaved() {\n\t\treturn activelySaved;\n\t}", "public abstract boolean processSaveDocument(Document document);", "boolean hasState();", "boolean hasState();", "boolean hasState();", "boolean hasState();", "boolean hasState();", "boolean hasState();", "boolean hasState();", "boolean hasState();", "public boolean isCurrentState() {\n return currentState;\n }", "protected final boolean isRootNode() {\n return isRootNode;\n }", "public boolean isContentType()\n {\n return !hasChanges;\n }", "public boolean isOpen() {\n if (this.open) {\n return false;\n } else {\n return true;\n }\n }", "public boolean isSaved() {\r\n\t\treturn saved;\r\n\t}", "public String getDocStatus() {\n\t\treturn (String) get_Value(\"DocStatus\");\n\t}", "public String getDocStatus() {\n\t\treturn (String) get_Value(\"DocStatus\");\n\t}", "public boolean isSetOffice() {\n return this.office != null;\n }", "public boolean isOn(){\n return state;\n }", "public boolean isNote() {\n return this.type == Type.NOTE;\n }", "public boolean isOpen() {\r\n\t\treturn false;\r\n\t}", "public boolean isSetState() {\n return this.state != null;\n }", "public boolean isSetState() {\n return this.state != null;\n }", "public boolean isOpen() {\n\t\treturn open;\n\t}", "public boolean isSaved()\r\n {\r\n return saved;\r\n }", "public boolean isOpen () {\n\t\treturn open;\n\t}", "public boolean hasDocumentStandardVersion() {\n return fieldSetFlags()[10];\n }", "DocumentStatusType1 getDocumentStatus();" ]
[ "0.76186657", "0.7228588", "0.7098409", "0.7060467", "0.70443624", "0.68712634", "0.67848235", "0.67848235", "0.67848235", "0.6757151", "0.6757151", "0.6757151", "0.6700031", "0.6700031", "0.6700031", "0.6592034", "0.6539409", "0.6329483", "0.6324005", "0.62741214", "0.62426835", "0.6239503", "0.6222987", "0.619894", "0.61673886", "0.6090773", "0.6084788", "0.60535055", "0.60535055", "0.60312927", "0.60229117", "0.59715277", "0.59609663", "0.59609663", "0.5944395", "0.5934695", "0.5916444", "0.5899845", "0.5899845", "0.5899845", "0.5891753", "0.5891753", "0.5870767", "0.5841047", "0.5831638", "0.5829659", "0.58281285", "0.5808006", "0.57806265", "0.5774547", "0.57661533", "0.5749052", "0.57289934", "0.5725698", "0.57215965", "0.5706984", "0.56963575", "0.5693609", "0.5661184", "0.5657042", "0.5641704", "0.5639511", "0.56257296", "0.5625369", "0.56231743", "0.5618917", "0.56179595", "0.5616887", "0.5606762", "0.5605873", "0.5597717", "0.559231", "0.55830646", "0.5580812", "0.5561155", "0.5561155", "0.5561155", "0.5561155", "0.5561155", "0.5561155", "0.5561155", "0.5561155", "0.55607265", "0.55583614", "0.55531514", "0.5544295", "0.5529763", "0.5526888", "0.5526888", "0.5525228", "0.55238616", "0.55217147", "0.55176145", "0.55165076", "0.55165076", "0.55114716", "0.5498624", "0.5494839", "0.54839647", "0.5482778" ]
0.8193441
0
Returns true to indicate this state can create new lists.
@Override public boolean isListFactory() { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isListable();", "public boolean isAddNewHistoryRequired()\r\n {\r\n return addNewHistoryRequired_;\r\n }", "@Override\n public boolean isValid() {\n return isAdded() && !isDetached();\n }", "public boolean hasList() {\n return msgCase_ == 5;\n }", "public boolean hasList() {\n return msgCase_ == 5;\n }", "@Override\n\tpublic boolean isNew() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isNew() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isNew() {\n\t\treturn false;\n\t}", "public boolean isCreate() {\r\n\t\treturn controller.closedByCreate;\r\n\t}", "public boolean isSetLegalList() {\n return this.legalList != null;\n }", "boolean getIsList();", "boolean getIsList();", "public boolean createPermutationSchedule() {\n listOfCoursesPermutation = permutationOfCourseList(activeCourseList);\n\n boolean returnBool = true;\n for (int i = 0; i < listOfCoursesPermutation.size(); i++) {\n if (!simpleDesigner(listOfCoursesPermutation.get(i))) {\n returnBool = false;\n }\n }\n return returnBool;\n }", "public boolean isList();", "public boolean isList();", "public boolean canCreateAnother() {\n\t\treturn new Date(startDate.getTime() + duration + cooldown)\n\t\t\t\t.before(new Date());\n\t}", "public boolean isItNew() {\n\t\treturn false;\n\t}", "private boolean canEnlist() {\n\n return uiStateManager.getState().equals(GameUIState.WAVE_IN_PROGRESS)\n || uiStateManager.getState().equals(GameUIState.STANDBY);\n }", "@objid (\"617db225-55b6-11e2-877f-002564c97630\")\n @Override\n public boolean canCreate(Class<? extends MObject> type) {\n return false;\n }", "boolean hasList();", "public boolean getCreationRights() {\r\n return creationRights;\r\n }", "@Override\r\n\t\tpublic boolean createItem() {\n\t\t\treturn false;\r\n\t\t}", "public boolean isSetCreate_priv() {\n return this.__isset.create_priv;\n }", "public boolean isList() {\n return m_item.getSchemaComponent().type() == SchemaBase.LIST_TYPE;\n }", "public boolean isSetCreated()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(CREATED$0) != 0;\n }\n }", "public boolean isInList();", "public boolean isNew() {\r\n\t return access == null || access.length() == 0;\r\n\t}", "public boolean createAircraft() {\n return aircraftList.createAircraft();\n }", "public void markCsgListCreate() throws JNCException {\n markLeafCreate(\"csgList\");\n }", "@Before(value = \"@createList\", order = 1)\n public void createList() {\n String endpoint = EnvironmentTrello.getInstance().getBaseUrl() + \"/lists/\";\n JSONObject json = new JSONObject();\n json.put(\"name\", \"testList\");\n json.put(\"idBoard\", context.getDataCollection(\"board\").get(\"id\"));\n RequestManager.setRequestSpec(AuthenticationUtils.getLoggedReqSpec());\n Response response = RequestManager.post(endpoint, json.toString());\n context.saveDataCollection(\"list\", response.jsonPath().getMap(\"\"));\n }", "private boolean canAddSupport() {\n\n return uiStateManager.getState().equals(GameUIState.WAVE_IN_PROGRESS)\n || uiStateManager.getState().equals(GameUIState.STANDBY);\n }", "public boolean isCreationOfNewTopicAllowed() {\n return !(currentUser == null\n || currentUser.isPublicAccount());\n }", "boolean hasInstantiatePermission();", "Boolean isCurrentListDoneList();", "public boolean isCreateRight() {\r\n if (getUser() != null) {\r\n return getUser().hasPermission(\"/vocabularies\", \"c\");\r\n }\r\n return false;\r\n }", "boolean isSetRaceList();", "public boolean createLesson() {\n\t\treturn false;\n\t}", "public boolean validate() {\n\t\tboolean rv = true;\n\t\tsynchronized (list) {\n\t\t\tfor (Pooled<T> t : list) {\n\t\t\t\tif (!creator.isValid(t.content)) {\n\t\t\t\t\trv = false;\n\t\t\t\t\tt.toss();\n\t\t\t\t\tlist.remove(t);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn rv;\n\t}", "public boolean createSemiPermutationSchedule() {\n\n listOfCoursesPermutation = semiPermutationOfCourseList(activeCourseList);\n\n boolean returnBool = true;\n for (int i = 0; i < listOfCoursesPermutation.size(); i++) {\n if (!simpleDesigner(listOfCoursesPermutation.get(i))) {\n returnBool = false;\n }\n }\n return returnBool;\n }", "public boolean hasCreated() {\n return fieldSetFlags()[4];\n }", "public boolean hasLandList() {\r\n return hasLandList;\r\n }", "public Boolean getIsNew() {\n return isNew;\n }", "private boolean canAddToOpenList(MapLocation neighbor, ArrayList<MapLocation> openList,\n\t\t\tArrayList<MapLocation> closedList) {\n\n\t\tboolean toAdd = true;\n\t\tfor (MapLocation node : openList) {\n\t\t\tif (neighbor.x == node.x && neighbor.y == node.y) {\n\t\t\t\tif (node.functionCost < neighbor.functionCost) {\n\t\t\t\t\ttoAdd = false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (MapLocation node : closedList) {\n\t\t\tif (neighbor.x == node.x && neighbor.y == node.y) {\n\t\t\t\tif (node.functionCost < neighbor.functionCost) {\n\t\t\t\t\ttoAdd = false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn toAdd;\n\n\t}", "@java.lang.Override\n public boolean getIsList() {\n return isList_;\n }", "@java.lang.Override\n public boolean getIsList() {\n return isList_;\n }", "protected boolean isCreateMessageIds() {\n\t\treturn this.createMessageIds;\n\t}", "@Test\r\n\tvoid testCreateList() {\r\n\t\tSortedList list = new SortedList(\"New List\");\r\n\r\n\t\tif (!list.getListName().equals(\"New List\")) {\r\n\t\t\tfail(\"List name does not match input\");\r\n\t\t}\r\n\t\tif (list.getSize() != 0) {\r\n\t\t\tfail(\"List size incorrect\");\r\n\t\t}\r\n\t\tif (list.getHead() != null) {\r\n\t\t\tfail(\"Head was set incorrectly\");\r\n\t\t}\r\n\t}", "public static boolean isAdded() {\n return true;\n }", "protected boolean isValid() {\n return COLLECTION.getList().contains(this);\n }", "@java.lang.Override\n public boolean getIsList() {\n return isList_;\n }", "@java.lang.Override\n public boolean getIsList() {\n return isList_;\n }", "@Override\n\t\tpublic boolean isValid() {\n\t\t\treturn false;\n\t\t}", "public Builder setIsList(boolean value) {\n\n isList_ = value;\n bitField0_ |= 0x00000004;\n onChanged();\n return this;\n }", "public Builder setIsList(boolean value) {\n\n isList_ = value;\n bitField0_ |= 0x00000008;\n onChanged();\n return this;\n }", "public boolean isList() {\n // This method could not be decompiled.\n // \n // Original Bytecode:\n // \n // 0: sastore \n // 1: ladd \n // LocalVariableTable:\n // Start Length Slot Name Signature\n // ----- ------ ---- ---- ------------------------------------------\n // 0 2 0 this Lcom/sun/xml/xsom/impl/ListSimpleTypeImpl;\n // \n // The error that occurred was:\n // \n // java.lang.ArrayIndexOutOfBoundsException\n // \n throw new IllegalStateException(\"An error occurred while decompiling this method.\");\n }", "boolean isSetPublicationList();", "public boolean canChangeRooms() {\n return this.canChangeRooms;\n }", "public List<Landmark> canConstruct() {\n List<Landmark> landmarks = new ArrayList<> ();\n for (int i = 0; i < Landmarks.size(); i++) {\n if (Landmarks.get(i).getConstructed() == false) {\n if (Landmarks.get(i).getCost() <= coins) {\n landmarks.add(Landmarks.get(i));\n }\n }\n }\n return landmarks;\n }", "public boolean isCreated() {\n\t\treturn this.viewer != null;\n\t}", "@Override\r\n\tpublic boolean isValid() {\n\t\treturn false;\r\n\t}", "@ApiStatus.Internal\n default boolean isListable() {\n \n return false;\n }", "public boolean isValid() {\n return hops.size() >= 2;\n }", "public boolean isCreateNewSiteCodeAllowed() {\r\n \r\n if (getUser() != null) {\r\n try {\r\n return SecurityUtil.hasPerm(getUserName(), \"/sitecodes\", \"i\");\r\n } catch (Exception e) {\r\n LOGGER.error(e.getMessage(), e);\r\n }\r\n }\r\n return false;\r\n }", "@Override\n\tpublic boolean isValid() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isValid() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isValid() {\n\t\treturn false;\n\t}", "public boolean canSaveChanges() {\n return this.additionalRequirementsAdapter.hasChanged(this.controller.getListing());\n }", "public boolean isNew() {\n return _isNew;\n }", "@Override\r\n public boolean canAddElement( int type ) {\n return type == Controller.GLOBAL_STATE;\r\n }", "Boolean isAllowingNewAuctions();", "public boolean isSetIs_new() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __IS_NEW_ISSET_ID);\n }", "private void checkList() {\n val list = config.getString(\"list\");\n val mode = config.getString(\"mode\");\n\n if (isNullOrEmpty(list)) {\n MovieHandler.Type type = MovieHandler.Type.valueOf(mode);\n\n if (type.equals(MovieHandler.Type.COMBINED) || type.equals(MovieHandler.Type.ADD_TO_WATCHLIST)) {\n throw new IllegalArgumentException(\"list is not set, but required for current mode!\");\n }\n } else {\n checkArgument(list.startsWith(\"ls\") || list.equals(\"watchlist\"), \"list doesn't start with ls prefix!\");\n checkArgument(list.length() >= 3, \"list string length less than 3!\");\n }\n }", "public abstract boolean canCreate(FolderType type);", "boolean hasNewConfig();", "@Override\n public boolean IsNewObject()\n {\n return _isNewObject;\n }", "private static boolean checkOrderList() {\n if (size != MainGUI.orderList.size()) {\n size = MainGUI.orderList.size();\n return true;\n }\n\n return false;\n }", "public boolean isNew() {\r\n return getController().isNew();\r\n }", "private boolean canBeAdded(DetailedSection newSection) {\n for (Course course : courses) {\n // Lecture\n if (course.getSelectedLecture() != null) {\n if (newSection.conflictsWith(course.getSelectedLecture())) {\n return false;\n }\n }\n\n // Discussion\n if (course.getSelectedDiscussion() != null) {\n if (newSection.conflictsWith(course.getSelectedDiscussion())) {\n return false;\n }\n }\n\n // Lab\n if (course.getSelectedLab() != null) {\n if (newSection.conflictsWith(course.getSelectedLab())) {\n return false;\n }\n }\n }\n\n return true;\n }", "private boolean checkforCreating(Object element) {\n\t\tif (element == null) {\n\t\t\treturn false;\n\t\t}\n\t\tif (element instanceof Entity) {\n\t\t\tEntity entity = (Entity) element;\n\t\t\tObject entitryValue = entity.getValue(\"autocreate\");\n\t\t\tif (entitryValue != null && entitryValue instanceof Boolean) {\n\t\t\t\treturn (Boolean) entitryValue;\n\t\t\t}\n\t\t}\n\t\tif (element instanceof List<?>) {\n\t\t\tList<?> collection = (List<?>) element;\n\t\t\tfor (Object item : collection) {\n\t\t\t\tif (checkforCreating(item)) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean isNew(){\n return isNew;\n }", "public boolean isValid() {\n\t\treturn false;\n\t}", "public boolean isNewInstance() {\n\t\treturn newInstance;\n\t}", "private void CreateList (MouseEvent evt)\n {\n if(currentPlayers < nPlayers)\n {\n label2.setText(\"List not full\");\n }\n else\n {\n new TEST(Names);\n label2.setText(\"List created\");\n }\n }", "boolean isSetBranchOfficeList();", "public boolean isNew() {\n return this.lastUpdateTime == NOT_YET;\n }", "public boolean isSetBeerList() {\n return this.beerList != null;\n }", "public boolean hasInstantiatePermission() {\n return instantiatePermissionBuilder_ != null || instantiatePermission_ != null;\n }", "public boolean isRenewable() {\n return type_ == TYPE_MULTIPLE_USE_RENEWABLE;\n }", "boolean hasUserList();", "public boolean canEdit() throws GTClientException\n {\n return isNewEntity();\n }", "public boolean isSetNewProperties() {\n return this.newProperties != null;\n }", "public boolean isListLengthFixed();", "public boolean canCreatePatch() {\n try {\n getClass().getDeclaredMethod(\"createNewPatch\", null);\n return true;\n } catch (Exception ex) {\n return false;\n }\n }", "public boolean hasCreateStore() {\n return ((bitField0_ & 0x00000100) == 0x00000100);\n }", "public boolean isValid(){\r\n\t\t\r\n\t\t// TODO\r\n\t\t\r\n\t\treturn true;\r\n\t}", "abstract void makeList();", "@java.lang.Override\n public boolean hasInstantiatePermission() {\n return instantiatePermission_ != null;\n }", "public boolean hasCreateStore() {\n return ((bitField0_ & 0x00000100) == 0x00000100);\n }", "public boolean isLastList() {\r\n return lastList;\r\n }", "public boolean isValid() {\n return true;\n }" ]
[ "0.6135717", "0.6085271", "0.6041464", "0.6031988", "0.6023589", "0.59629893", "0.59629893", "0.59629893", "0.5954136", "0.5940805", "0.5936492", "0.5936492", "0.5904767", "0.5895637", "0.5895637", "0.58820796", "0.5871501", "0.58315444", "0.58230084", "0.57968533", "0.57889014", "0.5747523", "0.572544", "0.5716717", "0.5694093", "0.56731296", "0.5669519", "0.56567353", "0.5644041", "0.56256443", "0.5623155", "0.56173617", "0.55763793", "0.5570544", "0.5555452", "0.5533001", "0.55220115", "0.551", "0.54871744", "0.54870445", "0.5480143", "0.54670155", "0.5464915", "0.54645723", "0.54645723", "0.54613435", "0.54516995", "0.5449804", "0.54399586", "0.5438957", "0.5438957", "0.5415531", "0.5412234", "0.5398573", "0.53978264", "0.53886086", "0.53879684", "0.53870076", "0.53821033", "0.5379199", "0.5367335", "0.53639376", "0.5353914", "0.5352511", "0.5352511", "0.5352511", "0.5348846", "0.5344809", "0.5335368", "0.53274655", "0.5326038", "0.53244495", "0.5322653", "0.5316627", "0.5308717", "0.53042686", "0.52891123", "0.5279982", "0.527895", "0.5266897", "0.52617556", "0.5245014", "0.5241633", "0.52379864", "0.52364504", "0.52293444", "0.52272433", "0.5224215", "0.52056074", "0.5192355", "0.51917976", "0.5191552", "0.5189875", "0.51826054", "0.5181581", "0.51765275", "0.5173125", "0.51730794", "0.5171815", "0.51659185" ]
0.61183083
1
Returns true to indicate this state can create new paragraphs.
@Override public boolean isParagraphFactory() { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic boolean isNew() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isNew() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isNew() {\n\t\treturn false;\n\t}", "public boolean isCreate() {\r\n\t\treturn controller.closedByCreate;\r\n\t}", "public boolean createLesson() {\n\t\treturn false;\n\t}", "public boolean isCreationOfNewTopicAllowed() {\n return !(currentUser == null\n || currentUser.isPublicAccount());\n }", "public boolean isItNew() {\n\t\treturn false;\n\t}", "public boolean isSetCreate_priv() {\n return this.__isset.create_priv;\n }", "@Override\r\n public boolean create(Person person) {\n return false;\r\n }", "public boolean createSlide() {\n\t\treturn false;\n\t}", "public boolean getAllowNewTimeProposal() throws ServiceLocalException {\n\t\treturn (Boolean) this.getPropertyBag().getObjectFromPropertyDefinition(\n\t\t\t\tAppointmentSchema.AllowNewTimeProposal);\n\t}", "public boolean canCreateAnother() {\n\t\treturn new Date(startDate.getTime() + duration + cooldown)\n\t\t\t\t.before(new Date());\n\t}", "public Boolean getIsNew() {\n return isNew;\n }", "private boolean canCreateProposal( Person user ) {\n\t\tApplicationTask task = new ApplicationTask( TaskName.CREATE_PROPOSAL );\n\t\tTaskAuthorizationService taskAuthenticationService = KraServiceLocator.getService( TaskAuthorizationService.class );\n\t\treturn taskAuthenticationService.isAuthorized( user.getPrincipalId(), task );\n\t}", "@Override\n public boolean IsNewObject()\n {\n return _isNewObject;\n }", "boolean hasInstantiatePermission();", "public boolean isNew() {\n return _isNew;\n }", "public boolean isNewInstance() {\n\t\treturn newInstance;\n\t}", "public boolean isSetNewProperties() {\n return this.newProperties != null;\n }", "boolean isNew();", "public boolean isCreated() {\n\t\treturn this.viewer != null;\n\t}", "@objid (\"617db225-55b6-11e2-877f-002564c97630\")\n @Override\n public boolean canCreate(Class<? extends MObject> type) {\n return false;\n }", "public boolean createPermutationSchedule() {\n listOfCoursesPermutation = permutationOfCourseList(activeCourseList);\n\n boolean returnBool = true;\n for (int i = 0; i < listOfCoursesPermutation.size(); i++) {\n if (!simpleDesigner(listOfCoursesPermutation.get(i))) {\n returnBool = false;\n }\n }\n return returnBool;\n }", "public boolean isSetCreated()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(CREATED$0) != 0;\n }\n }", "public boolean isNew(){\n return isNew;\n }", "public boolean hasCreated() {\n return fieldSetFlags()[4];\n }", "public boolean createPose(Poses pose) {\n\t\tif (!pose.getGraphic().equals(\"\") && !pose.getText().equals(\"\") && !pose.getTitle().equals(\"\")) { \n\t\t\tthis.openDataBase();\n\t\t\tContentValues values = new ContentValues();\n\t\t\tvalues.put(DataBaseHelper.COLUMN_GRAPHIC, pose.getGraphic());\n\t\t\tvalues.put(DataBaseHelper.COLUMN_TEXT, pose.getText());\n\t\t\tvalues.put(DataBaseHelper.COLUMN_TITLE, pose.getTitle());\n\t\t\tvalues.put(DataBaseHelper.COLUMN_DIFFICULTY, pose.getDifficulty());\n\t\t\tvalues.put(DataBaseHelper.COLUMN_SKIP, pose.getSkip());\n\t\t\ttry { \n\t\t\t\tlong insertId = myDataBase.insert(DataBaseHelper.TABLE_POSES, null,values);\n\t\t\t\tpose.setId(insertId);\n\t\t\t\tthis.close();\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tcatch (SQLException sqle) {\n\t\t\t\tLog.d(\"Database Error\", \"Error inserting Pose into database\");\n\t\t\t\tLog.d(\"SQL Exception\", sqle.toString());\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tLog.d(\"Exception\", e.toString());\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\telse { \n\t\t\tLog.d(\"Insert Pose Error\", \"Pose does not have all information\");\n\t\t\treturn false;\n\t\t\t\n\t\t}\t\n\t\t\n\t}", "public boolean isNew() {\r\n return getController().isNew();\r\n }", "@Override\r\n\t\tpublic boolean createItem() {\n\t\t\treturn false;\r\n\t\t}", "public boolean isNew() {\r\n\t\treturn (this.id == null);\r\n\t}", "public boolean isSetCreateId() {\n return this.createId != null;\n }", "public boolean isGameNew() {\n\t\treturn isGameNew;\n\t}", "@java.lang.Override\n public boolean hasInstantiatePermission() {\n return instantiatePermission_ != null;\n }", "public boolean isNew() {\r\n\t\treturn (this.getId() == null);\r\n\t}", "Paragraph createParagraph();", "public boolean isNew() {\r\n return id == null ? true : false;\r\n }", "@Override\n\tpublic boolean create(Langues obj) {\n\t\treturn false;\n\t}", "@Override\n public boolean isValid() {\n return isAdded() && !isDetached();\n }", "@Override\n\tpublic boolean create(NPC_tmpl obj) {\n\t\treturn false;\n\t}", "public boolean isCreateRight() {\r\n if (getUser() != null) {\r\n return getUser().hasPermission(\"/vocabularies\", \"c\");\r\n }\r\n return false;\r\n }", "public void setIsNew(Boolean isNew) {\n this.isNew = isNew;\n }", "public boolean isNewRecord() {\n return newRecord;\n }", "public boolean isSetIs_new() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __IS_NEW_ISSET_ID);\n }", "public boolean hasInstantiatePermission() {\n return instantiatePermissionBuilder_ != null || instantiatePermission_ != null;\n }", "public boolean isNew() {\n return this.lastUpdateTime == NOT_YET;\n }", "protected boolean isCreateMessageIds() {\n\t\treturn this.createMessageIds;\n\t}", "public Integer getIsNew() {\n return isNew;\n }", "public boolean canCreatePatch() {\n try {\n getClass().getDeclaredMethod(\"createNewPatch\", null);\n return true;\n } catch (Exception ex) {\n return false;\n }\n }", "private boolean requiresCreate( EntityInstanceImpl ei )\n {\n // Can't create an entity that wasn't created...\n if ( !ei.isCreated() )\n return false;\n\n // Skip deleted entities; they've been created then deleted so no need to save them.\n if ( ei.isDeleted() )\n return false;\n\n // Check to see if this EI has already been inserted into the DB.\n if ( ei.dbhCreated )\n return false;\n\n EntityDef entityDef = ei.getEntityDef();\n if ( entityDef.isDerivedPath() )\n return false;\n\n // Skip the entity if we don't allow creates.\n if ( ! entityDef.isCreate() )\n return false;\n\n DataRecord dataRecord = entityDef.getDataRecord();\n if ( dataRecord == null )\n return false;\n\n return true;\n }", "public boolean isSetCreateTime() {\n return this.createTime != null;\n }", "public boolean createPalvelupiste(Palvelupiste palvelupiste);", "@Override\n public final Boolean getIsNew() {\n return this.manufacture.getIsNew();\n }", "public boolean isPropagateOnCreate() {\n return propagateOnCreate;\n }", "public boolean isSetCreatetime() {\n return this.createtime != null;\n }", "public boolean isSetCreateTime() {\n return this.createTime != null;\n }", "public boolean isNew() {\r\n\t return access == null || access.length() == 0;\r\n\t}", "Para createPara();", "public boolean isSetCreateTime() {\n\t\treturn this.createTime != null;\n\t}", "private boolean isValid() {\n\t\treturn proposalTable != null && !proposalTable.isDisposed();\n\t}", "public boolean createTransaction() {\n\t\t\treturn false;\n\t\t}", "public boolean isCreated() {\n\t\treturn mqttClient != null;\n\t}", "public boolean canEdit() throws GTClientException\n {\n return isNewEntity();\n }", "@Override\r\n\tpublic boolean isValid() {\n\t\treturn false;\r\n\t}", "public boolean isAddNewHistoryRequired()\r\n {\r\n return addNewHistoryRequired_;\r\n }", "public boolean hasCreateTaskPack() {\n return packCase_ == 3;\n }", "@Override\n\t\tpublic boolean isValid() {\n\t\t\treturn false;\n\t\t}", "@Override\n public boolean hasNext() {\n return this.paragraphIndex < this.paragraphs.size();\n }", "public boolean create()\n\t{\n\t\ttry\n\t\t{\n\t\t\treturn file.createNewFile() ;\n\t\t}\n\t\tcatch( IOException ex )\n\t\t{\n\t\t\tex.printStackTrace() ;\n\t\t\treturn false ;\n\t\t}\n\t}", "public boolean hasCreateTaskPack() {\n return packCase_ == 3;\n }", "@Override\n\tpublic boolean isValid() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isValid() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isValid() {\n\t\treturn false;\n\t}", "public boolean validate() {\n\t\tboolean rv = true;\n\t\tsynchronized (list) {\n\t\t\tfor (Pooled<T> t : list) {\n\t\t\t\tif (!creator.isValid(t.content)) {\n\t\t\t\t\trv = false;\n\t\t\t\t\tt.toss();\n\t\t\t\t\tlist.remove(t);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn rv;\n\t}", "public boolean isClientsidecreated() {\n return clientsidecreated.get();\n }", "boolean hasNotes();", "@Override\n public boolean create(Revue objet) {\n return false;\n }", "boolean hasConstruct();", "public boolean promptForNew()\r\n {\r\n \tAnimatedSpriteEditor singleton = AnimatedSpriteEditor.getEditor();\t\r\n \tAnimatedSpriteEditorGUI gui = singleton.getGUI();\r\n \tString currentSpriteTypeName = singleton.getSpriteTypeName();\r\n \tString currentStateName = singleton.getAnimationStateName();\r\n \tFile fileToGetIndex;\r\n \tint index = -1;\r\n \tint i=0;\r\n \twhile (index == -1)\r\n \t{\r\n \t\tfileToGetIndex = new File(SPRITE_TYPE_PATH + currentSpriteTypeName + \"/\" +POSE_FOLDER_PATH + currentStateName + \"_\" + i + POSE_FILE_EXTENSION);\r\n \t\tif(!fileToGetIndex.exists())\r\n \t\t{\r\n \t\t\tindex = i;\r\n \t\t}\r\n \t\ti++;\t\r\n \t}\r\n\r\n \tcurrentPoseName = currentStateName + \"_\" + index;\r\n currentFileName = currentPoseName + POSE_FILE_EXTENSION;\r\n currentFile = new File(SPRITE_TYPE_PATH + currentSpriteTypeName + \"/\" +POSE_FOLDER_PATH + currentFileName);\r\n poseDuration = DEFAULT_POSE_DURATION;\r\n \r\n \t // SAVE OUR NEW FILE\r\n boolean created = poseIO.savePose(currentFile, true);\r\n if(created)\r\n {\r\n \tposeIO.loadPose(currentFile.getAbsolutePath());\r\n \tposeIO.savePoseImage(currentPoseName, poseID);\r\n \t\t\t\t\r\n \tsaved = true;\r\n \r\n \t// AND PUT THE FILE NAME IN THE TITLE BAR\r\n \tString appName = gui.getAppName();\r\n \tgui.setTitle(appName + APP_NAME_FILE_NAME_SEPARATOR + currentFile); \r\n \r\n singleton.setSpriteTypeName(currentSpriteTypeName);\r\n singleton.getPoseFileNames().put(poseID, currentFile.getAbsolutePath()); \r\n \t\r\n \t// WE DID IT!\r\n return true;\r\n }\r\n \t\r\n gui.updatePoseList();\r\n \tJOptionPane.showMessageDialog(\r\n gui,\r\n POSE_SAVING_ERROR_TEXT,\r\n POSE_SAVING_ERROR_TITLE_TEXT,\r\n JOptionPane.ERROR_MESSAGE);\r\n return false;\r\n }", "@DISPID(8)\n\t// = 0x8. The runtime will prefer the VTID if present\n\t@VTID(17)\n\tboolean canAddChild();", "public boolean isSetCreateDate() {\n return this.createDate != null;\n }", "public boolean isSetCreateDate() {\n return this.createDate != null;\n }", "public boolean isValid() {\n return true;\n }", "public boolean canAddThreePid() {\n return (supportStage(LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY) && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY))\n || (supportStage(LoginRestClient.LOGIN_FLOW_TYPE_MSISDN) && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_MSISDN));\n }", "public boolean getCheckNew() {\n return getBoolean(\"check-new\", false);\n }", "public boolean isEditableByUser() {\r\n if ((this.currentStatusChange == null) ||\r\n (this.currentStatusChange.equals(PoStatusCode.PROPOSED)))\r\n return true;\r\n return false;\r\n }", "@Override\n public final void setIsNew(final Boolean isNew) {\n //stub\n }", "boolean isSetParlay();", "public boolean isStateAvailable(int paraState) {\n\t\treturn true;\n\t}", "public boolean isValid(){\r\n\t\t\r\n\t\t// TODO\r\n\t\t\r\n\t\treturn true;\r\n\t}", "public boolean isValid() {\n return true;\n }", "public boolean isValid() {\n return true;\n }", "public boolean isValid() {\n // TODO: Question 2.2.\n \n return false;\n }", "public String getNewParagraph(){\r\n\t\treturn newParagraph;\r\n\t}", "public boolean isCreateNewSiteCodeAllowed() {\r\n \r\n if (getUser() != null) {\r\n try {\r\n return SecurityUtil.hasPerm(getUserName(), \"/sitecodes\", \"i\");\r\n } catch (Exception e) {\r\n LOGGER.error(e.getMessage(), e);\r\n }\r\n }\r\n return false;\r\n }", "public boolean isValid(){\n\t\treturn true;\n\t}", "public abstract boolean create(T newInstance);", "boolean isPostive();", "boolean canTakeNewPhoto();", "public boolean isValid() {\n\t\treturn false;\n\t}", "public boolean isValid() {\n //primary variables must have proper values to identify the Book with\n if (this.author == null || this.title == null || dop == 0) {\n return false;\n }\n return true;\n }" ]
[ "0.6332843", "0.6332843", "0.6332843", "0.62547606", "0.62333435", "0.6195184", "0.61448145", "0.61296517", "0.60611784", "0.60501313", "0.60392976", "0.5868174", "0.58449656", "0.5823374", "0.58233374", "0.58107686", "0.5779836", "0.5763403", "0.57178044", "0.5696156", "0.56606925", "0.5654265", "0.5653206", "0.5633791", "0.5613979", "0.5611201", "0.55954796", "0.55934805", "0.5577144", "0.5555376", "0.55463344", "0.5536016", "0.5533734", "0.5515063", "0.55066156", "0.5492994", "0.5486154", "0.54499733", "0.5446238", "0.5445926", "0.54311293", "0.5427103", "0.542179", "0.5396988", "0.53948027", "0.53893524", "0.53849113", "0.53839713", "0.53742504", "0.53439736", "0.5335307", "0.5329334", "0.5328116", "0.53275573", "0.5326422", "0.53159845", "0.53124344", "0.53070307", "0.5284019", "0.5283769", "0.5242065", "0.5238822", "0.5229072", "0.5225198", "0.5222168", "0.52215487", "0.522141", "0.5214336", "0.52018917", "0.5191979", "0.5191979", "0.5191979", "0.51818043", "0.5174985", "0.5168793", "0.5160906", "0.5158068", "0.51553494", "0.5153867", "0.51527554", "0.51527554", "0.5140813", "0.51380366", "0.51366657", "0.51320624", "0.5131517", "0.5129105", "0.51175624", "0.511547", "0.51133114", "0.51133114", "0.5112387", "0.51060855", "0.51048845", "0.51031494", "0.5102834", "0.5097538", "0.5095236", "0.50948745", "0.5093612" ]
0.59735584
11
Returns true to indicate this state can create new tables.
@Override public boolean isTableFactory() { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean createTable();", "public boolean createAllTables (){\n try {\n this.execute(CREATE_PEOPLE);\n this.execute(CREATE_AUTHOR);\n this.execute(CREATE_EMPLOYEE);\n this.execute(CREATE_MEETING);\n this.execute(CREATE_COVERPRICE);\n this.execute(CREATE_PRICEPARAMETERS);\n this.execute(CREATE_ORDER);\n this.execute(CREATE_CORRECTIONS);\n this.execute(CREATE_BOOK);\n this.execute(CREATE_COVERLINK);\n return true;\n } catch (SQLException | IOException | ClassNotFoundException e) {\n log.error(e);\n return false;\n }\n }", "public boolean createTable(String name) {\n\t\tif (!tables.containsKey(name)) {\n\t\t\tTable newTable = new Table(name);\n\t\t\ttables.put(name, newTable);\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean create() throws Exception {\n\t\treturn tableDao.create();\r\n\t}", "protected boolean createTable() {\n\t\t// --- 1. Dichiarazione della variabile per il risultato ---\n\t\tboolean result = false;\n\t\t// --- 2. Controlli preliminari sui dati in ingresso ---\n\t\t// n.d.\n\t\t// --- 3. Apertura della connessione ---\n\t\tConnection conn = getCurrentJDBCFactory().getConnection();\n\t\t// --- 4. Tentativo di accesso al db e impostazione del risultato ---\n\t\ttry {\n\t\t\t// --- a. Crea (se senza parametri) o prepara (se con parametri) lo statement\n\t\t\tStatement stmt = conn.createStatement();\n\t\t\t// --- b. Pulisci e imposta i parametri (se ve ne sono)\n\t\t\t// n.d.\n\t\t\t// --- c. Esegui l'azione sul database ed estrai il risultato (se atteso)\n\t\t\tstmt.execute(getCreate());\n\t\t\t// --- d. Cicla sul risultato (se presente) pe accedere ai valori di ogni sua tupla\n\t\t\t// n.d. Qui devo solo dire al chiamante che è andato tutto liscio\n\t\t\tresult = true;\n\t\t\t// --- e. Rilascia la struttura dati del risultato\n\t\t\t// n.d.\n\t\t\t// --- f. Rilascia la struttura dati dello statement\n\t\t\tstmt.close();\n\t\t}\n\t\t// --- 5. Gestione di eventuali eccezioni ---\n\t\tcatch (Exception e) {\n\t\t\tgetCurrentJDBCFactory().getLogger().debug(\"failed to create publisher table\",e);\n\t\t}\n\t\t// --- 6. Rilascio, SEMPRE E COMUNQUE, la connessione prima di restituire il controllo al chiamante\n\t\tfinally {\n\t\t\tgetCurrentJDBCFactory().releaseConnection(conn);\n\t\t}\n\t\t// --- 7. Restituzione del risultato (eventualmente di fallimento)\n\t\treturn result;\n\t}", "public boolean createTable() {\n boolean success = false;\n if (conn != null) {\n Statement stmt = null;\n\n try {\n stmt = conn.createStatement();\n stmt.execute(\"CREATE TABLE sample_table (id INT IDENTITY, first_name VARCHAR(30), last_name VARCHAR(30), age INT)\");\n log.info(\"Creating sample_table\");\n success = true;\n } catch (SQLException e) {\n log.error(\"Unable to create the database table\", e);\n } finally {\n if (stmt != null) {\n try {\n stmt.close();\n } catch (SQLException e) {\n }\n }\n }\n }\n return success;\n }", "public boolean supportsTableCheck() {\n \t\treturn true;\n \t}", "public boolean createTransaction() {\n\t\t\treturn false;\n\t\t}", "public boolean tableRequired()\n {\n return true;\n }", "protected synchronized boolean createTable(Database db){\n\t\ttry {\n\t\t\treturn db.executeUpdate (\n\t\t\t\t\"CREATE TABLE \"+db.getDbSchema()+\".\" + DataTablePostalCode.Id + \" ( \" +\n\t\t\t\t\tfieldChar(\"postalId\", \"12\", \"0\", \"Key postalId\") +\n\t\t\t\t\tfieldChar(\"countryId\", \"12\", \"1\", \"CountryId\") +\n\t\t\t\t\tfieldChar(\"stateId\", \"12\", \"2\", \"StateId\") + \n\t\t\t\t\tfieldChar(\"cityId\", \"12\", \"3\", \"CityId\") +\n\t\t\t\t\tfieldChar(\"postalCode\", \"128\", \"4\", \"CountryId\") +\n\t\t\t\t\ttableAdditions(\"5\") + \n\t\t\t\t\t\"PRIMARY KEY (postalId)\" +\n\t\t\t\t\t\")\" + tableDriver(\"TABLE of Internal Postal Codes \"));\n\t\t\n\t\t} catch (Exception e) {\n\t\t\tLogger.log(DataTablePostalCode.class, e);\n\n\t\t} /* catch */\n\t\t\n\t\treturn false;\n\t}", "public boolean hasAlterTable() {\n \t\treturn true;\n \t}", "private boolean tableAlreadyExists(SQLException e) {\r\n boolean exists;\r\n if(e.getSQLState().equals(\"X0Y32\")) {\r\n exists = true;\r\n } else {\r\n exists = false;\r\n }\r\n return exists;\r\n }", "boolean createTable(\n String tableName,\n MapStoreTableKey tableKey\n );", "public boolean createStateTable(Connection c) {\n Statement stmt = null;\n try {\n stmt = c.createStatement();\n String sql = \"CREATE TABLE IF NOT EXISTS GAMEBOARD \" \n + \"(PLAYER_TYPE CHAR(1) NOT NULL,\" \n + \"COORD_X INT NOT NULL, \" \n + \"COORD_Y INT NOT NULL, \"\n + \"PLAYER_ID INT NOT NULL\"\n + \") \"; \n stmt.executeUpdate(sql);\n } catch (Exception e) {\n System.err.println(e.getClass().getName() + \": \" + e.getMessage());\n return false;\n } finally {\n if (stmt != null) {\n try {\n stmt.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n }\n System.out.println(\"BOARDSTATE Table created successfully\");\n return true;\n }", "@Test\n public void testTableFactoryCreateNoOtherTables() {\n TableController tableController = tableFactory.getTableController();\n tableController.addTable(2);\n assertNull(tableController.getTableMap().get(1));\n assertNotNull(tableController.getTableMap().get(2));\n assertNull(tableController.getTableMap().get(3));\n }", "abstract boolean tableExist() throws SQLException;", "private boolean requiresCreate( EntityInstanceImpl ei )\n {\n // Can't create an entity that wasn't created...\n if ( !ei.isCreated() )\n return false;\n\n // Skip deleted entities; they've been created then deleted so no need to save them.\n if ( ei.isDeleted() )\n return false;\n\n // Check to see if this EI has already been inserted into the DB.\n if ( ei.dbhCreated )\n return false;\n\n EntityDef entityDef = ei.getEntityDef();\n if ( entityDef.isDerivedPath() )\n return false;\n\n // Skip the entity if we don't allow creates.\n if ( ! entityDef.isCreate() )\n return false;\n\n DataRecord dataRecord = entityDef.getDataRecord();\n if ( dataRecord == null )\n return false;\n\n return true;\n }", "private boolean createTableStructure(Table table, boolean commit,\n\t\t\tString serverName, String databaseName) {\n\t\tlog.debug(\"createTableStructure\");\n\n\t\tif (table == null) {\n\t\t\tlog.error(\"Null table provided. Unable to work with this.\");\n\t\t\treturn false;\n\t\t}\n\n\t\tString tableName = getNormalisedTableName(table.getName());\n\n\t\t//\n\t\t// Create the table with a dummy column\n\t\t//\n\t\tString command = String.format(\"create table \\\"%s\\\" (\\\"%s\\\" integer);\",\n\t\t\t\ttableName, DUMMY_COLUMN_NAME);\n\n\t\t//\n\t\t// Actually create the table\n\t\t//\n\t\tif (commit) {\n\t\t\ttry {\n\t\t\t\t/*\n\t\t\t\t * We need to use the root creds to create tables. This is\n\t\t\t\t * because only using those creds do the correct ODBC\n\t\t\t\t * permissions get used as set up in the schema. Surely that\n\t\t\t\t * shouldn't be?\n\t\t\t\t */\n\t\t\t\tQueryRunner qr = new QueryRunner(serverName, databaseName);\n\t\t\t\tif (qr.runDBQuery(command) == false) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t} catch (ClassNotFoundException | SQLException e) {\n\t\t\t\tlog.debug(\"Error trying to create table\", e);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\t//\n\t\t// Create each column\n\t\t//\n\t\tfor (Column column : table.getColumns()) {\n\t\t\tif (!(column.getName().startsWith(\"s_\") || column.getName()\n\t\t\t\t\t.startsWith(\"Gen_\"))) {\n\t\t\t\tif (commit) {\n\t\t\t\t\tif (column.isAutoNumber()) {\n\t\t\t\t\t\taddColumnToTable(serverName, databaseName, tableName,\n\t\t\t\t\t\t\t\tcolumn.getName(), \"SERIAL\");\n\t\t\t\t\t\t\n\t\t\t\t\t\t//\n\t\t\t\t\t\t// Autonumber columns need some extra work, so we flag them\n\t\t\t\t\t\t// for later\n\t\t\t\t\t\t//\n\t\t\t\t\t\tPair<String, String> sequence = Pair.of(column.getName(), tableName);\n\t\t\t\t\t\tsequences.add(sequence);\n\t\t\t\t\t} else {\n\t\t\t\t\t\taddColumnToTable(serverName, databaseName,tableName,\n\t\t\t\t\t\t\t\tcolumn.getName(),\n\t\t\t\t\t\t\t\tgetPostgresTypeForAccessDataType(column\n\t\t\t\t\t\t\t\t\t\t.getType()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tlog.info(String.format(\n\t\t\t\t\t\t\"Column <%s> is not suitable for processing\",\n\t\t\t\t\t\tcolumn.getName()));\n\t\t\t}\n\t\t}\n\n\t\t//\n\t\t// Add primary keys\n\t\t//\n\t\tList<String> primaryKeyList = getPrimaryKeys(table);\n\t\tif (commit && !primaryKeyList.isEmpty()) {\n\t\t\taddPrimaryKeysToTable(serverName, databaseName, tableName,\n\t\t\t\t\tprimaryKeyList);\n\t\t}\n\n\t\t//\n\t\t// Remove dummy column\n\t\t//\n\t\tcommand = String.format(\"alter table \\\"%s\\\" drop column \\\"%s\\\"\",\n\t\t\t\ttableName, DUMMY_COLUMN_NAME);\n\t\tif (commit) {\n\t\t\ttry {\n\t\t\t\treturn new QueryRunner(serverName, databaseName).runDBQuery(command);\n\t\t\t} catch (ClassNotFoundException | SQLException e) {\n\t\t\t\tlog.debug(\"Error removing dummy column\", e);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "public boolean isCreate() {\r\n\t\treturn controller.closedByCreate;\r\n\t}", "public boolean hasCreated() {\n return fieldSetFlags()[4];\n }", "public boolean isSetWholeTbl()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(WHOLETBL$2) != 0;\n }\n }", "public boolean isSetTableType() {\n return this.tableType != null;\n }", "@Test\n public void testTableFactoryCreate() {\n TableController tableController = tableFactory.getTableController();\n tableController.addTable(2);\n assertEquals(1, tableController.getTableMap().get(2).size());\n }", "public boolean maketable() {\n String query = \"\";\n if (connect != null) {\n try {\n java.sql.DatabaseMetaData dbmd = connect.getMetaData();\n ResultSet rs = dbmd.getTables(null, null, \"PLAYERNAME\", null);\n if (rs.next()) {//If it is existed\n System.out.println(\"table exists\");\n } else {//otherwise, create the table\n query = \"create table score(\\n\"\n + \"nickname varchar(40) not null,\\n\"\n + \"levels integer not null,\\n\"\n + \"highscore integer,\\n\"\n + \"numberkill integer,\\n\"\n + \"constraint pk_nickname_score PRIMARY KEY (nickname)\\n\"\n + \")\";\n ps = connect.prepareStatement(query);\n ps.execute();//Execute the SQL statement\n System.out.println(\"new table created\");\n }\n } catch (SQLException ex) {\n System.out.println(\"table create failed\");\n ex.printStackTrace();\n }\n } else {\n System.out.println(\"Connect failed.\");\n }\n return true;\n }", "boolean hasCreateStore();", "private static boolean initializeRolesTable() {\n try {\n UserHelper.insertRole(\"STUDENT\");\n UserHelper.insertRole(\"PROFESSOR\");\n return true;\n } catch (RoleAlreadyExistsException e) {\n return false;\n }\n }", "private boolean isTableNameSelected(final String tableName) {\n \n final DataSource tableDataSource = DataSourceFactory.createDataSource();\n tableDataSource.addTable(ProjectUpdateWizardConstants.AFM_FLDS_TRANS);\n tableDataSource.addField(\"autonumbered_id\");\n tableDataSource.addRestriction(Restrictions.in(ProjectUpdateWizardConstants.AFM_FLDS_TRANS,\n CHANGE_TYPE, DifferenceMessage.TBL_IS_NEW.name()));\n tableDataSource.addRestriction(Restrictions.eq(ProjectUpdateWizardConstants.AFM_FLDS_TRANS,\n CHOSEN_ACTION, Actions.APPLY_CHANGE.getMessage()));\n tableDataSource.addRestriction(Restrictions.eq(ProjectUpdateWizardConstants.AFM_FLDS_TRANS,\n TABLE_NAME, tableName));\n\n return tableDataSource.getRecords().size() > 0;\n }", "public boolean isSetCreate_priv() {\n return this.__isset.create_priv;\n }", "@Override\n\tpublic void handle(ActionEvent arg0) {\n\t\tCreateTables creator = new CreateTables(tlp);\n\t\tcreator.createLogTable();\n//\t\tcreator.createRacesTable();\n//\t\tcreator.createTravelHistoryTable();\n\t\tSystem.out.println(\"log exist: \"+creator.checkExistingTable(\"log\"));\n\t\tSystem.out.println(\"races exist: \"+creator.checkExistingTable(\"races\"));\n\t\tSystem.out.println(\"travelhistory exist: \"+creator.checkExistingTable(\"travelhistory\"));\n\t}", "public boolean isTableNameInitialized() {\n return tableName_is_initialized; \n }", "public void IsReady() {\n\t\tSystem.out.println(\"Table now ready for customers.\");\n\t\ttable.setState(table.GetReady());\n\t}", "private boolean isValid() {\n\t\treturn proposalTable != null && !proposalTable.isDisposed();\n\t}", "boolean isNewDatabase() {\n String sql = \"SELECT tbl_name FROM sqlite_master WHERE tbl_name=?\";\n\n return query(new QueryStatement<Boolean>(sql) {\n @Override\n public void prepare(PreparedStatement statement) throws SQLException {\n statement.setString(1, tableName);\n }\n\n @Override\n public Boolean processResults(ResultSet set) throws SQLException {\n return !set.next();\n }\n });\n }", "public boolean isCreationOfNewTopicAllowed() {\n return !(currentUser == null\n || currentUser.isPublicAccount());\n }", "public static boolean is_Create_Table_Statement(String schemaStr)\n\t{\n\t\treturn schemaStr.toLowerCase().contains(\"create table\");\n\t}", "private boolean tableExistsAndIsOK() throws SQLException {\n trace(\"tableExistsAndIsOK\");\n boolean result;\n Statement stmt = _connection.createStatement();\n try {\n stmt.setMaxRows(1);\n String command = \"SELECT \" + LONG_VALUE + \" FROM \" + _tableName;\n ResultSet rs = stmt.executeQuery(command);\n rs.close();\n result = true;\n } catch (SQLException e) {\n result = false;\n }\n stmt.close();\n return result;\n }", "@objid (\"617db225-55b6-11e2-877f-002564c97630\")\n @Override\n public boolean canCreate(Class<? extends MObject> type) {\n return false;\n }", "public boolean isSetTableName() {\n return this.tableName != null;\n }", "protected void createTable() throws Exception {\n startService();\n assertEquals(true, sqlDbManager.isReady());\n\n Connection conn = sqlDbManager.getConnection();\n assertNotNull(conn);\n assertFalse(sqlDbManager.tableExists(conn, \"testtable\"));\n assertTrue(sqlDbManager.createTableIfMissing(conn, \"testtable\",\n\t\t\t\t\t TABLE_CREATE_SQL));\n assertTrue(sqlDbManager.tableExists(conn, \"testtable\"));\n sqlDbManager.logTableSchema(conn, \"testtable\");\n assertFalse(sqlDbManager.createTableIfMissing(conn, \"testtable\",\n\t\t\t\t\t TABLE_CREATE_SQL));\n }", "public boolean isSetCreated()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(CREATED$0) != 0;\n }\n }", "public boolean tableExists(String pTableName)\n {\n \t// Busca en el esquema la existencia de la tabla.\n \treturn true;\n }", "public boolean hasCreateStore() {\n return ((bitField0_ & 0x00000100) == 0x00000100);\n }", "public boolean createTable(SQLiteDatabase db, String tableName) {\n\t\t//\n//\t\tif (!tableExists(db, tableName)) {\n\t\tif (tableExists(db, tableName)) {\n\t\t\t// Log\n\t\t\tLog.d(\"DBUtils.java\" + \"[\"\n\t\t\t\t\t+ Thread.currentThread().getStackTrace()[2].getLineNumber()\n\t\t\t\t\t+ \"]\", \"Table exists => \" + tableName);\n\t\t\t\n\t\t\treturn false;\n\t\t}//if (!tableExists(SQLiteDatabase db, String tableName))\n\t\t\n\t\t//\n\t\tString sql = \"CREATE TABLE \" + tableName + \" (\"\n\t\t\t\t+ android.provider.BaseColumns._ID\n\t\t\t\t+ \" INTEGER PRIMARY KEY AUTOINCREMENT, \" +\n\t\t\t\t\"store TEXT, name TEXT, price INTEGER, genre TEXT);\";\n\t\t\n\t\t//\n\t\ttry {\n\t\t\tdb.execSQL(sql);\n\t\t\t\n\t\t\t// Log\n\t\t\tLog.d(\"DBUtils.java\" + \"[\"\n\t\t\t\t\t+ Thread.currentThread().getStackTrace()[2].getLineNumber()\n\t\t\t\t\t+ \"]\", \"Table created => \" + tableName);\n\t\t\t\n\t\t\t\n\t\t\treturn true;\n\t\t} catch (SQLException e) {\n\t\t\t// Log\n\t\t\tLog.d(\"MemoDBHelper.java\" + \"[\"\n\t\t\t\t\t+ Thread.currentThread().getStackTrace()[2].getLineNumber()\n\t\t\t\t\t+ \"]\", \"Exception => \" + e.toString());\n\t\t\t\n\t\t\treturn false;\n\t\t}//try\n\t\t\n\t}", "public boolean isSetTableName() {\r\n return this.tableName != null;\r\n }", "public boolean isSetTableName() {\r\n return this.tableName != null;\r\n }", "public boolean isSetTableName() {\r\n return this.tableName != null;\r\n }", "public boolean isSetTableName() {\r\n return this.tableName != null;\r\n }", "public boolean isSetTableName() {\r\n return this.tableName != null;\r\n }", "public boolean hasCreateStore() {\n return ((bitField0_ & 0x00000100) == 0x00000100);\n }", "public Boolean isDatabaseReady() {\n\t\tif (databaseIsReady == false) {\n\t\t\tdatabaseIsReady = tableExists(SERVICE_STATE_TABLE);\n\t\t}\n\t\treturn databaseIsReady;\n\t}", "public boolean isNewPartDbTable(String tbName) {\n return partInfoCtxCache.containsKey(tbName);\n }", "private void validateCreateTable(ConnectorTableMetadata meta)\n {\n validateColumns(meta);\n validateLocalityGroups(meta);\n if (!AccumuloTableProperties.isExternal(meta.getProperties())) {\n validateInternalTable(meta);\n }\n }", "private boolean checkTableExists(String plate){\n //there is no need to close or start connection\n //function is only used in the context of an already created connection\n \n try {\n rs = stmt.executeQuery(\"SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'PUBLIC'\");\n \n while(rs.next()){\n if(plate.equalsIgnoreCase(rs.getString(\"TABLE_NAME\"))){\n return true;\n }\n }\n \n rs.close();\n \n } catch (SQLException ex) {\n Logger.getLogger(DBHandler.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n return false;\n }", "public boolean isSetPktable_db() {\n return this.pktable_db != null;\n }", "private boolean distBeltExists(){ \n String table = \"DISTBELT\";\n \n try {\n stmt = conn.createStatement();\n rs = stmt.executeQuery(\"SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'PUBLIC'\");\n \n while(rs.next()){\n if(table.equalsIgnoreCase(rs.getString(\"TABLE_NAME\"))){\n return true;\n }\n }\n \n stmt.close();\n rs.close();\n \n } catch (SQLException ex) {\n Logger.getLogger(DBHandler.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n return false; \n }", "public boolean isSetPktable_name() {\n return this.pktable_name != null;\n }", "public static Boolean create(SQLiteDatabase db) {\n db.execSQL(CREATE);\n return true;\n }", "@Override\r\n\tpublic boolean doCreate(Action vo) throws SQLException {\n\t\treturn false;\r\n\t}", "public void IsInUse() {\n\t\tSystem.out.println(\"Table being cleaned, cannot be used.\");\n\t}", "public boolean supportsTemporaryTables() {\n \t\treturn false;\n \t}", "public boolean canCreateAnother() {\n\t\treturn new Date(startDate.getTime() + duration + cooldown)\n\t\t\t\t.before(new Date());\n\t}", "@Test(timeout = 4000)\n public void test101() throws Throwable {\n Boolean boolean0 = SQLUtil.mutatesStructure(\"executealter table\");\n assertFalse(boolean0);\n }", "public void createTable() throws DatabaseException\n\t{\n\t\tConnection connection = DatabaseManager.getSingleton().getConnection();\n\t\ttry\n\t\t{\n\t\t\tClosingPreparedStatement stmt = new ClosingPreparedStatement(connection,\n\t\t\t\t\t\"DROP TABLE IF EXISTS QuestStates\");\n\t\t\tstmt.executeUpdate();\n\t\t\tstmt.close();\n\n\t\t\tstmt = new ClosingPreparedStatement(connection,\n\t\t\t\t\t\"Create TABLE QuestStates (playerID INT NOT NULL, questID INT NOT NULL , questState INT NOT NULL, needingNotification BOOLEAN NOT NULL)\");\n\t\t\tstmt.executeUpdate();\n\t\t} catch (SQLException e)\n\t\t{\n\t\t\tthrow new DatabaseException(\"Unable to create the Quest table\", e);\n\t\t}\n\t}", "public void doCreateTable();", "public boolean isCreateRight() {\r\n if (getUser() != null) {\r\n return getUser().hasPermission(\"/vocabularies\", \"c\");\r\n }\r\n return false;\r\n }", "@Test\n public void testTableFactoryGetVacantTableNotVacant() {\n TableController tableController = tableFactory.getTableController();\n tableController.addTable(4);\n tableController.getTableMap().get(4).get(0).setStatus(TableStatus.RESERVED);\n assertNull(tableController.getVacantTable(4));\n tableController.getTableMap().get(4).get(0).setStatus(TableStatus.VACANT);\n assertNotNull(tableController.getVacantTable(4));\n }", "public void createTable() {\r\n\t\tclient.createTable();\r\n\t}", "public void shouldCreate() {\n }", "@Override\n\tpublic boolean isNew() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isNew() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isNew() {\n\t\treturn false;\n\t}", "private boolean isTableInDb() throws SQLException\n {\n final String sqlQuery = \"SELECT name FROM sqlite_master WHERE type='table' AND name='\" + TABLE_NAME +\n \"'\";\n\n try (\n final PreparedStatement statement = database.connection().prepareStatement(sqlQuery);\n final ResultSet resultSet = statement.executeQuery();\n )\n {\n if (!resultSet.next())\n return false;\n\n // read table name\n final String tableName = resultSet.getString(1);\n if (resultSet.wasNull() || !tableName.equals(TABLE_NAME))\n return false;\n }\n\n return true;\n }", "public boolean createTilesTable(String tableName, int pxWidthHeight) {\n\t\t\n\t\tTilesTable tt = new TilesTable(geoPackage, tableName);\n\t\tboolean added = false;\n\t\ttry {\n\t\t\tadded = tt.create( pxWidthHeight );\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn added;\n\t}", "public boolean isCreateTestSuite() {\n\n return createTestSuite;\n }", "public boolean createLesson() {\n\t\treturn false;\n\t}", "protected boolean hasTable(String tableName) {\n\t\tboolean tableNameAlreadyExists = false;\n\t\ttry {\n\t\t\tDatabaseMetaData dbm = conn.getMetaData();\n\t\t\t\n\t\t\tResultSet tableNameSet = dbm.getTables(null, null, \"Persons\", null);\n\t\t\tif (tableNameSet.next()) {\n\t\t\t\ttableNameAlreadyExists = true;\n\t\t\t}\n\t\t\ttableNameSet.close();\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"ERROR in addTable(String tableName)...\");\n\t\t}\n\t\treturn tableNameAlreadyExists;\n\t}", "boolean supportsRollbackAfterDDL();", "public boolean isCreated() {\n\t\treturn mqttClient != null;\n\t}", "public boolean getCreationRights() {\r\n return creationRights;\r\n }", "public static void createTable() {\n\n // Create statement\n Statement statement = null;\n try {\n statement = Database.getDatabase().getConnection().createStatement();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n // Attempt to create table\n try {\n statement.execute(\n \"CREATE TABLE \" + Constants.SANITATION_TABLE + \"(\" +\n \"requestID INT PRIMARY KEY GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1),\" +\n \"nodeID VARCHAR(100) References \" + Constants.LOCATION_TABLE + \" (nodeID), \" +\n \"priority VARCHAR(10), \" +\n \"status VARCHAR(100), \" +\n \"description VARCHAR(100), \" +\n \"requesterID INT REFERENCES \" + Constants.USERS_TABLE + \"(userID), \" +\n \"requestTime TIMESTAMP, \" +\n \"servicerID INT REFERENCES \" + Constants.USERS_TABLE + \"(userID), \" +\n \"claimedTime TIMESTAMP, \" +\n \"completedTime TIMESTAMP, \" +\n \"CONSTRAINT priority_enum CHECK (priority in ('LOW', 'MEDIUM', 'HIGH')), \" +\n \"CONSTRAINT status_enum CHECK (status in ('INCOMPLETE', 'COMPLETE')))\"\n );\n } catch (SQLException | NullPointerException e) {\n e.printStackTrace();\n }\n }", "public boolean hasFailed() {\n return creationFailure;\n }", "private void createRolePermissionsTableIfNotExist() {\n Connection conn = null;\n PreparedStatement ps = null;\n String query = null;\n try {\n conn = getConnection();\n conn.setAutoCommit(false);\n query = queryManager.getQuery(conn, QueryManager.CREATE_ROLE_PERMISSIONS_TABLE_QUERY);\n ps = conn.prepareStatement(query);\n ps.executeUpdate();\n conn.commit();\n } catch (SQLException e) {\n log.debug(\"Failed to execute SQL query {}\", query);\n throw new PermissionException(\"Unable to create the '\" + QueryManager.ROLE_PERMISSIONS_TABLE +\n \"' table.\", e);\n } finally {\n closeConnection(conn, ps, null);\n }\n }", "@Override\n public void createTable() throws Exception {\n }", "public boolean isAddNewHistoryRequired()\r\n {\r\n return addNewHistoryRequired_;\r\n }", "public static void main(String args[]) throws IOException {\n\t\tboolean bool = HBaseUtil.getAdmin().tableExists(\n\t\t\t\tTableName.valueOf(HBaseUtil.TABLE_NAME));\n\t\tSystem.out.println(bool);\n\t}", "@Test\n public void testReservationFactoryTableOccupied() {\n ReservationController reservationController = reservationFactory.getReservationController();\n Customer customer = new Customer(CUSTOMER_NAME, CUSTOMER_CONTACT, false);\n Calendar date = Calendar.getInstance();\n // create a 2 seater table // default is vacant\n tableFactory.getTableController().addTable(2);\n Table table = tableFactory.getTableController().getTable(1);\n reservationController.addReservation(date, customer, 2, table);\n assertEquals(1, reservationController.getReservationList().size());\n assertEquals(1, table.getTableId());\n assertEquals(2, table.getNumSeats());\n assertEquals(TableStatus.RESERVED, table.getStatus());\n }", "public boolean isTableExists(String tableName, boolean openDb) {\n if (openDb)\n {\n if (db == null || !db.isOpen())\n {\n\n }\n\n if (!db.isReadOnly()) {\n\n\n }\n }\n\n Cursor cursor = db.rawQuery(\"select DISTINCT tbl_name from sqlite_master where tbl_name = '\" + tableName + \"'\", null);\n if (cursor != null) {\n if (cursor.getCount() > 0) {\n cursor.close();\n return true;\n }\n cursor.close();\n }\n return false;\n }", "public void createNewTable() throws WoodsException{\n\t\t\tuserTable = new Table(tableName);\n\t\t\tDatabase.get().storeTable(tableName, userTable);\n\t\t}", "public boolean createTable(String input) throws IOException{\n\t\tString orgQuery = input;\n\t\torgQuery = orgQuery.trim();\n\t\tString query = input.toLowerCase().trim();\n\t\tboolean queryFailed = false;\n\t\t//Schema Instance \n\t\tSchema currentSchema = Schema.getSchemaInstance();\n\t\tString currentSchemaName = currentSchema.getCurrentSchema();\n\n\t\t//TableSchemaManager Instance\n\t\tTableSchemaManager currentTableSchemaManager = TableSchemaManager.getTableSchemaManagerInstance();\n\n\t\t//Extracting Table name\n\t\ttableName = orgQuery.substring(query.indexOf(\"table \")+6,query.indexOf(\"(\")).trim();\n\n\t\t//Updating SCHEMA.TABLE.TBL\n\t\tif(updateInformationSchemaTable()){\n\t\t\tqueryFailed = true;\n\t\t\treturn queryFailed;\n\t\t}\n\n\t\t//Extracting Table contents\n\t\tString tableContentsWithQuotes = orgQuery.substring(orgQuery.indexOf(\"(\")+1,orgQuery.length());\n\t\tString tableContents = tableContentsWithQuotes.replace(\"))\", \")\");\n\t\ttableContents = tableContents.trim();\n\n\t\tTableSchemaManager.ordinalMap = new TreeMap<Integer,List<String>>();\n\t\tTableSchemaManager.tableMap = new TreeMap<String,TreeMap<Integer,List<String>>>();\n\t\t\n\t\t//Creating n instances of Table helper\n\t\tString[] createTableContents = tableContents.split(\"\\\\,\"); \n\t\tnoOfColumns = createTableContents.length;\n\t\tCreateTableHelper[] th = new CreateTableHelper[noOfColumns];\n\n\t\t\n\t\t//Handles single row of Create Table \n\t\tfor(int item = 0; item < noOfColumns ; item++){\n\t\t\tth[item] = new CreateTableHelper(); \n\t\t\t//To remove any leading or trailing spaces\n\t\t\tcreateTableContents[item] = createTableContents[item].trim();\n\t\t\tString columnName = createTableContents[item].substring(0, createTableContents[item].indexOf(\" \"));\n\t\t\tth[item].setColumnName(columnName);\n\n\t\t\t//Setting Primary Key\n\t\t\tString primaryKeyExp = \"(.*)[pP][rR][iI][mM][aA][rR][yY](.*)\";\n\t\t\tif (createTableContents[item].matches(primaryKeyExp))\n\t\t\t\tth[item].setPrimaryKey(true);\n\t\t\telse\n\t\t\t\tth[item].setPrimaryKey(false);\n\n\t\t\t//Setting Null Value\t\n\t\t\tString notNullExp = \"(.*)[nN][uU][lL][lL](.*)\";\n\t\t\tif (createTableContents[item].matches(notNullExp))\n\t\t\t\tth[item].setNull(true);\n\t\t\telse\n\t\t\t\tth[item].setNull(false);\n\n\t\t\t//Extracting data types \n\t\t\t//BYTE\n\t\t\tString byteExp = \"(.*)[bB][yY][tT][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(byteExp)){\n\t\t\t\tth[item].setDataType(\"BYTE\");\n\t\t\t}\n\t\t\t//SHORT\n\t\t\tString shortExp = \"(.*)[sS][hH][oO][rR][tT](.*)\";\n\t\t\tif (createTableContents[item].matches(shortExp)){\n\t\t\t\tth[item].setDataType(\"SHORT\");\n\t\t\t}\n\t\t\t//INT\n\t\t\tString intExp = \"(.*)[iI][nN][tT](.*)\";\n\t\t\tif (createTableContents[item].matches(intExp)){\n\t\t\t\tth[item].setDataType(\"INT\");\n\t\t\t}\n\t\t\t//LONG\n\t\t\tString longExp = \"(.*)[lL][oO][nN][gG](.*)\";\n\t\t\tif (createTableContents[item].matches(longExp)){\n\t\t\t\tth[item].setDataType(\"LONG\");\n\t\t\t}\n\t\t\t//CHAR\n\t\t\tString charExp = \"(.*)[cC][hH][aA][rR](.*)\";\n\t\t\tif (createTableContents[item].matches(charExp)){\n\t\t\t\tString size = createTableContents[item].substring(createTableContents[item].indexOf(\"(\")+1, createTableContents[item].indexOf(\")\"));\n\t\t\t\tth[item].setDataType(\"CHAR(\" + size + \")\");\n\t\t\t}\n\t\t\t//VARCHAR\n\t\t\tString varcharExp = \"(.*)[vV][aA][rR][cC][hH][aA][rR](.*)\";\n\t\t\tif (createTableContents[item].matches(varcharExp)){\n\t\t\t\tString size = createTableContents[item].substring(createTableContents[item].indexOf(\"(\")+1, createTableContents[item].indexOf(\")\"));\n\t\t\t\tth[item].setDataType(\"VARCHAR(\" + size + \")\");\n\t\t\t}\n\t\t\t//FLOAT\n\t\t\tString floatExp = \"(.*)[fF][lL][oO][aA][tT](.*)\";\n\t\t\tif (createTableContents[item].matches(floatExp)){\n\t\t\t\tth[item].setDataType(\"FLOAT\");\t\t\t\t\n\t\t\t}\n\t\t\t//DOUBLE\n\t\t\tString doubleExp = \"(.*)[dD][oO][uU][bB][lL][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(doubleExp)){\n\t\t\t\tth[item].setDataType(\"DOUBLE\");\n\t\t\t}\n\t\t\t//DATETIME\n\t\t\tString dateTimeExp = \"(.*)[dD][aA][tT][eE][tT][iI][mM][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(dateTimeExp)){\n\t\t\t\tth[item].setDataType(\"DATETIME\");\n\t\t\t}\n\t\t\t//DATE\n\t\t\tString dateExp = \"(.*)[dD][aA][tT][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(dateExp)){\n\t\t\t\tth[item].setDataType(\"DATE\");\n\t\t\t}\n\n\t\t\tcurrentTableSchemaManager.newTableSchema(\n\t\t\t\t\ttableName,\n\t\t\t\t\titem,\n\t\t\t\t\tth[item].getColumnName(),\n\t\t\t\t\tth[item].getDataType(),\n\t\t\t\t\tth[item].isNull(),\n\t\t\t\t\tth[item].isPrimaryKey()\n\t\t\t\t\t);\n\n\t\t\t//Updating SCHEMA.COLUMNS.TBL\n\t\t\tupdateInformationSchemaColumn(\n\t\t\t\t\tth[item].getColumnName(),\n\t\t\t\t\titem,\n\t\t\t\t\tth[item].getDataType(),\n\t\t\t\t\tth[item].isNull(),\n\t\t\t\t\tth[item].isPrimaryKey()\n\t\t\t\t\t);\n\t\t\t//Create tables to insert index\n\t\t\tString newTableIndexName = currentSchemaName + \".\" + tableName + \".\" +th[item].getColumnName()+ \".tbl.ndx\";\n\t\t\tRandomAccessFile newTableIndexFile = new RandomAccessFile(newTableIndexName, \"rw\");\n\t\t\tnewTableIndexFile.close();\n\n\t\t}\n\n\t\tTableSchemaManager.tableMap.put(tableName, TableSchemaManager.ordinalMap);\n\t\tcurrentTableSchemaManager.updateTableSchema(currentSchemaName,tableName);\n\t\t\n\t\t//Create tables to insert data \n\t\tString newTableDataName = currentSchemaName + \".\" + tableName + \".tbl\";\n\t\tRandomAccessFile newTableDataFile = new RandomAccessFile(newTableDataName, \"rw\");\n\t\tnewTableDataFile.close();\n\t\treturn queryFailed;\n\t}", "public boolean isSetFktable_name() {\n return this.fktable_name != null;\n }", "@Test(timeout = 4000)\n public void test064() throws Throwable {\n Boolean boolean0 = SQLUtil.mutatesStructure(\"alter table\");\n assertTrue(boolean0);\n }", "private void createTables() throws SQLException\r\n {\r\n createTableMenuItems();\r\n createTableOrdersWaiting();\r\n }", "private int createTable(ComboPooledDataSource cpds, String sql) throws SQLException {\n\t\tConnection con = cpds.getConnection();\n\t\tPreparedStatement pst = null;\n\n\t\t// Create table if not exist\n\t\tint tableCreated = -1;\n\t\ttry {\n\t\t\tpst = con.prepareStatement(sql);\n\t\t\tpst.executeUpdate();\n\t\t\ttableCreated = 1;\n\t\t} catch (SQLException exception) {\n\t\t\tif (exception.getSQLState().equals(\"X0Y32\")) {\n\t\t\t\ttableCreated = 0;\n\t\t\t}\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (pst != null) {\n\t\t\t\t\tpst.close();\n\t\t\t\t}\n\t\t\t} catch (Exception ignorable) {\n\t\t\t}\n\t\t}\n\t\treturn tableCreated;\n\t}", "private boolean createDatabase(CreateDatabaseStatement cds) {\n\t\tif(dbs.containsKey(cds.dbname)) {\n\t\t\tSystem.out.println(\"Error: Can't create database \" + cds.dbname + \"; database exists\");\n\t\t\treturn false;\n\t\t}\n\t\telse {\n\t\t\tDatabase newdb = new Database();\n\t\t\tdbs.put(cds.dbname, newdb);\n\t\t\treturn true;\n\t\t\t\n\t\t}\n\t}", "private void createTable(HTableDescriptor tableDesc, boolean ignoreTableExists) {\n\n\t\tHBaseAdmin admin = HBaseConfigurationManager.getHbaseAdmin();\n\n\t\ttry {\n\n\t\t\tadmin.createTable(tableDesc);\n\t\t\tJOptionPane.showMessageDialog(this, \"Table Created and Enabled Successfully\");\n\t\t}\n\t\tcatch (TableExistsException e) {\n\t\t\tif (!ignoreTableExists) {\n\t\t\t\tint sel = JOptionPane.showConfirmDialog(this, \"Table Already Exist, Add Data ???\", \"Warning!\", JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE);\n\n\t\t\t\tif (sel == JOptionPane.NO_OPTION) {\n\t\t\t\t\tthis.dispose();\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\tcatch (IOException ex) {\n\t\t\tJOptionPane.showMessageDialog(this, \"Table Creation Failed\", \"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\tLogger.getLogger(HBaseManagerTableDesign.class.getName()).log(Level.SEVERE, null, ex);\n\t\t}\n\n\t}", "private void createTables() throws DatabaseAccessException {\n\t\tStatement stmt = null;\n\t\tPreparedStatement prepStmt = null;\n\n\t\ttry {\n\t\t\tstmt = this.connection.createStatement();\n\n\t\t\t// be sure to drop all tables in case someone manipulated the database manually\n\t\t\tstmt.executeUpdate(\"DROP TABLE IF EXISTS DynamicConstraints;\");\n\t\t\tstmt.executeUpdate(\"DROP TABLE IF EXISTS Features;\");\n\t\t\tstmt.executeUpdate(\"DROP TABLE IF EXISTS Groups;\");\n\t\t\tstmt.executeUpdate(\"DROP TABLE IF EXISTS Metadata;\");\n\t\t\tstmt.executeUpdate(\"DROP TABLE IF EXISTS Objects;\");\n\t\t\tstmt.executeUpdate(\"DROP TABLE IF EXISTS StaticConstraints;\");\n\t\t\tstmt.executeUpdate(\"DROP TABLE IF EXISTS Subspaces;\");\n\n\t\t\t// populate database with tables.. by using ugly sql\n\t\t\tstmt.executeUpdate(\"CREATE TABLE DynamicConstraints(Id INTEGER PRIMARY KEY AUTOINCREMENT,\"\n\t\t\t\t\t+ \" Operator INTEGER, FeatureReference INTEGER,\"\n\t\t\t\t\t+ \" GroupReference INTEGER, Value FLOAT, Active BOOLEAN);\");\n\t\t\tstmt.executeUpdate(\"CREATE TABLE Features(Id INTEGER PRIMARY KEY AUTOINCREMENT,\" + \" Name VARCHAR(\"\n\t\t\t\t\t+ DatabaseConfiguration.VARCHARLENGTH + \"), OutlierFlag BOOLEAN, Min FLOAT, Max FLOAT);\");\n\t\t\tstmt.executeUpdate(\"CREATE TABLE Groups(Id INTEGER PRIMARY KEY AUTOINCREMENT, Name VARCHAR(\"\n\t\t\t\t\t+ DatabaseConfiguration.VARCHARLENGTH + \"),\"\n\t\t\t\t\t+ \" Visibility BOOLEAN, Color INTEGER, ColorCalculatedByFeature INTEGER, Description TEXT);\");\n\t\t\tstmt.executeUpdate(\"CREATE TABLE Metadata(Version INTEGER);\");\n\n\t\t\t// Object table is created in initFeatures, to boost performance\n\n\t\t\tstmt.executeUpdate(\"CREATE TABLE StaticConstraints(Id INTEGER, GroupReference INTEGER,\"\n\t\t\t\t\t+ \" ObjectReference INTEGER, Active BOOLEAN);\");\n\t\t\tstmt.executeUpdate(\"CREATE TABLE Subspaces(Id INTEGER, FeatureReference INTEGER,\" + \" Name VARCHAR(\"\n\t\t\t\t\t+ DatabaseConfiguration.VARCHARLENGTH + \"));\");\n\n\t\t\tstmt.close();\n\n\t\t\t// after creating the tables, write the layout version\n\t\t\tprepStmt = this.connection.prepareStatement(\"INSERT INTO Metadata VALUES(?);\");\n\t\t\tprepStmt.setInt(1, DatabaseConfiguration.LAYOUTVERSION);\n\t\t\tprepStmt.execute();\n\n\t\t\tprepStmt.close();\n\n\t\t} catch (SQLException e) {\n\t\t\tthrow new DatabaseAccessException(Failure.LAYOUT);\n\t\t}\n\t}", "public void createTable() throws SQLException {\r\n\t\t\r\n\t\t//SQL query for inserting a new table \"user\" in the \"users\" database\r\n\t\tString sql = \"create table if not exists user(id INT primary key auto_increment, \"\r\n\t\t\t\t+ \"name VARCHAR(30), country VARCHAR(30), age INT)\";\r\n\t\t\r\n\t\t//Execute this query\r\n\t\t\r\n\t\tStatement statement = connection.createStatement();\r\n\t\t\r\n\t\tboolean result = statement.execute(sql); //Can return false even if the operation is successful. Mostly used for creating a table\r\n\t\t\r\n\t\tlogger.info(\"result of create operation is {}\",result);\r\n//\t\tstatement.executeQuery(sql); //Execute and return resultSet. Mostly used with select queries when we want to retrive the data\r\n//\t\tstatement.executeUpdate(sql);//Return no of rows being affected.Works with any type of queries but only returns no of rows being affected\r\n\t\t\r\n\t}", "public boolean isSetFktable_db() {\n return this.fktable_db != null;\n }", "public boolean isSetCreateId() {\n return this.createId != null;\n }", "@Override\r\n\tpublic boolean create(Moteur obj, Connection conn) throws SQLException {\n\t\treturn false;\r\n\t}" ]
[ "0.72070897", "0.68834156", "0.68068683", "0.67595875", "0.6655409", "0.6642103", "0.64617926", "0.6303331", "0.62819976", "0.62490624", "0.6232415", "0.62117183", "0.6201397", "0.6088927", "0.6031586", "0.6000901", "0.59928215", "0.5970549", "0.59572744", "0.5924979", "0.5914799", "0.59147316", "0.59142834", "0.59122235", "0.59059846", "0.5905169", "0.5865256", "0.58560944", "0.58244455", "0.58127785", "0.5798107", "0.5790093", "0.5780196", "0.57775086", "0.57709384", "0.5747172", "0.5745517", "0.57442105", "0.573438", "0.57335067", "0.5722394", "0.5713657", "0.5713054", "0.5712733", "0.5712733", "0.5712733", "0.5712733", "0.5712733", "0.56989783", "0.5698568", "0.5694616", "0.5677682", "0.56659245", "0.56541234", "0.56511366", "0.5628331", "0.56272894", "0.5621837", "0.5619425", "0.55967915", "0.55881333", "0.5579216", "0.5563897", "0.55573756", "0.55449426", "0.5533163", "0.552396", "0.55176806", "0.5515292", "0.5515292", "0.5515292", "0.54928756", "0.5489319", "0.5465068", "0.54584527", "0.5451751", "0.544958", "0.5449574", "0.54436356", "0.54429704", "0.5439036", "0.54293853", "0.54228526", "0.54097426", "0.54059947", "0.5394811", "0.53929895", "0.53893197", "0.5383925", "0.5375256", "0.53708816", "0.53581816", "0.53511864", "0.5350141", "0.5343359", "0.53426427", "0.53368783", "0.533201", "0.5331048", "0.5328178" ]
0.63732
7
Created by mike on 7/27/2017.
public interface Shop extends SecondaryIndustry { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "public final void mo51373a() {\n }", "private stendhal() {\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private void m50366E() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "protected boolean func_70814_o() { return true; }", "public void mo38117a() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "private void poetries() {\n\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n public int retroceder() {\n return 0;\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override public int describeContents() { return 0; }", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "public void gored() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n public void init() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\n void init() {\n }", "@Override\n public void init() {}", "@Override\r\n\tpublic void init() {}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void method_4270() {}", "public void m23075a() {\n }", "private static void cajas() {\n\t\t\n\t}", "public final void mo91715d() {\n }", "@Override\n protected void initialize() {\n\n \n }", "private Rekenhulp()\n\t{\n\t}", "private MetallicityUtils() {\n\t\t\n\t}", "public void mo21877s() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "private void kk12() {\n\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n protected void initialize() \n {\n \n }", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\n public int getSize() {\n return 1;\n }", "@Override\n protected void init() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "private void m50367F() {\n }", "private void init() {\n\n\t}", "public void mo12628c() {\n }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo21779D() {\n }", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public void mo12930a() {\n }", "@Override\n\tpublic void init() {\n\t}", "@Override\n public void initialize() { \n }", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "public abstract void mo70713b();", "@Override\n public void memoria() {\n \n }", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\r\n\tpublic void just() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "Consumable() {\n\t}" ]
[ "0.5924127", "0.58161867", "0.57572734", "0.5710163", "0.5679936", "0.56389284", "0.56330144", "0.5596721", "0.55859274", "0.55859274", "0.55824333", "0.5552038", "0.55164105", "0.5502171", "0.5498702", "0.549064", "0.5468172", "0.54509556", "0.54433984", "0.54229796", "0.5402323", "0.5398325", "0.53982556", "0.5388204", "0.5382143", "0.537557", "0.537557", "0.537557", "0.537557", "0.537557", "0.5371161", "0.53704983", "0.5368304", "0.5363781", "0.5359078", "0.53519636", "0.53519636", "0.53519636", "0.53519636", "0.53519636", "0.53519636", "0.5340689", "0.5336613", "0.5336613", "0.53342813", "0.5330307", "0.5325075", "0.53122675", "0.53067183", "0.52848566", "0.5282776", "0.52762747", "0.5274224", "0.527346", "0.5271779", "0.52702457", "0.5265665", "0.5253543", "0.5249654", "0.5249498", "0.5249093", "0.5247204", "0.5247035", "0.5247035", "0.5247035", "0.5247035", "0.5247035", "0.5247035", "0.5247035", "0.5246266", "0.52452797", "0.5242102", "0.52417696", "0.52380174", "0.5232601", "0.5232601", "0.5232601", "0.52322215", "0.52313685", "0.5213178", "0.52129", "0.52129", "0.52091336", "0.5206904", "0.52001387", "0.5198254", "0.5198254", "0.5198254", "0.519674", "0.5195516", "0.51950574", "0.5194215", "0.5194215", "0.5194215", "0.51789", "0.5176483", "0.5176398", "0.51708156", "0.5167582", "0.51646245", "0.5163064" ]
0.0
-1
SharedPreferences SP = PreferenceManager.getDefaultSharedPreferences(context); String trigger = SP.getString("triger", "test");
@Override public void onReceive(Context context, Intent intent) { settings = PreferenceManager.getDefaultSharedPreferences(context); String ric1 = "", ric2 = "", ric3 = "", ric4 = ""; String triger = ""; boolean useRic = false; boolean handleSMS = false; if (settings.getBoolean("checkboxRICtriger", false)) { ric1 = settings.getString("ric1", ""); ric2 = settings.getString("ric2", ""); ric3 = settings.getString("ric3", ""); ric4 = settings.getString("ric4", ""); useRic = true; } else { triger = settings.getString("triger_text", "ReCO"); } if (intent.getAction().equals(SMS_RECIVED)) { Bundle bundle = intent.getExtras(); Object[] pdus = (Object[]) bundle.get("pdus"); SmsMessage smsMsg = SmsMessage.createFromPdu((byte[]) pdus[0]); if (useRic) { //filter by RIC number String messageBody = smsMsg.getMessageBody(); if (ric1 != "") if (messageBody.contains(ric1)) handleSMS = true; if (ric2 != "") if (messageBody.contains(ric2)) handleSMS = true; if (ric3 != "") if (messageBody.contains(ric3)) handleSMS = true; if (ric4 != "") if (messageBody.contains(ric4)) handleSMS = true; } else { if (smsMsg.getMessageBody().contains(triger)) handleSMS = true; } if (handleSMS) { abortBroadcast(); Intent startAlertIntent = new Intent(context, alertActivity.class); startAlertIntent.putExtra("SMS", smsMsg.getMessageBody().toString()); startAlertIntent.putExtra("ADRESS", smsMsg.getOriginatingAddress().toString()); //startAlertIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK); startAlertIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); context.startActivity(startAlertIntent); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onCreatePreferences(Bundle bundle, String s) {\n addPreferencesFromResource(R.xml.pref);\n sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getActivity());\n //onSharedPreferenceChanged(sharedPreferences, getString(R.string.language_key));\n onSharedPreferenceChanged(sharedPreferences, getString(R.string.difficulty_key));\n onSharedPreferenceChanged(sharedPreferences, getString(R.string.word_category_key));\n }", "public String getCurrentIdentity(){\n mSharedPreference = mContext.getSharedPreferences( mContext.getString(R.string.sharedpreferencesFileName),Context.MODE_PRIVATE);\n if(mSharedPreference.contains(\"zzxxyz\")) {\n\n return mSharedPreference.getString(\"zzxxyz\", \"\");\n }\n else\n return \"\";\n}", "public String getPrefrence(String key) {\n SharedPreferences prefrence = context.getSharedPreferences(\n context.getString(R.string.app_name), 0);\n String data = prefrence.getString(key, \"\");\n return data;\n }", "public String getPrefrence(String key) {\n SharedPreferences prefrence = context.getSharedPreferences(\n context.getString(R.string.app_name), 0);\n String data = prefrence.getString(key, \"\");\n return data;\n }", "SharedPreferences mo117960a();", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n addPreferencesFromResource(R.xml.preferences);\n\n SharedPreferences SP = PreferenceManager.getDefaultSharedPreferences(getBaseContext());\n\n //String ip = SP.getString(\"ip\", \"NULL\");\n // Config.ip = SP.getString(\"ip\", \"NULL\");\n // Log.e(\"IP\",Config.ip );\n String language = SP.getString(\"language\",\"NULL\");\n // Toast.makeText(getApplicationContext(),Config.ip,Toast.LENGTH_SHORT).show();\n //Toast.makeText(getApplicationContext(),language,Toast.LENGTH_SHORT).show();\n }", "public void showPreference(View v){\n String prefvalue = settings.getString(\"key1\",\"Not Found\");\n cHelpers.show_toast(this,\"key1 was \"+prefvalue);\n }", "private static final String getStringPreference(String key, String defValue) {\n final SharedPreferences settings = DemoApp.getSharedPreferences();\n return settings.getString(key, defValue);\n }", "public String getPref(String key) {\n\t SharedPreferences settings = activity.getSharedPreferences(PREFS_NAME, 0);\n\t settings = activity.getSharedPreferences(PREFS_NAME, 0);\n\t String value = settings.getString(key, \"\");\n\t return value;\n\t}", "private static SharedPreferences getSharedPreference(Context context){\n return PreferenceManager.getDefaultSharedPreferences(context);\n }", "@Override\r\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\r\n\t\treallynowDB = new ReallyNowDB(this);\r\n\t\t\r\n\t\tprefs = PreferenceManager.getDefaultSharedPreferences(this);\r\n\t\tString str = prefs.getString(\"refresh\", \"10\");\r\n\t\tLog.d(TAG, \"OnCreate\" + str);\r\n\t}", "private void readSharedPreferences() {\n SharedPreferences sharedPref = getActivity().getSharedPreferences(SETTINGS_FILE_KEY, MODE_PRIVATE);\n currentDeviceAddress = sharedPref.getString(SETTINGS_CURRENT_DEVICE_ADDRESS, \"\");\n currentDeviceName = sharedPref.getString(SETTINGS_CURRENT_DEVICE_NAME, \"\");\n currentFilenamePrefix = sharedPref.getString(SETTINGS_CURRENT_FILENAME_PREFIX, \"\");\n currentSubjectName = sharedPref.getString(SETTINGS_SUBJECT_NAME, \"\");\n currentShoes = sharedPref.getString(SETTINGS_SHOES, \"\");\n currentTerrain = sharedPref.getString(SETTINGS_TERRAIN, \"\");\n }", "protected void makePref(){\n //Creates a shared pref called MyPref and 0-> MODE_PRIVATE\n sharedPref = getSharedPreferences(AppCSTR.PREF_NAME, Context.MODE_PRIVATE);\n //so the pref can be edit\n edit = sharedPref.edit();\n}", "String getFlashPref();", "private void loadSettings(){\n SharedPreferences sharedPreferences = getActivity().getSharedPreferences(SHARED_PREF, Context.MODE_PRIVATE);\n notificationSwtich = sharedPreferences.getBoolean(SWITCH, false);\n reminderOnOff.setChecked(notificationSwtich);\n }", "public void loadData(){\n SharedPreferences sharedPreferences=getSharedPreferences(\"logDetails\",Context.MODE_PRIVATE);\n nameText=sharedPreferences.getString(\"name\",\"na\");\n regText=sharedPreferences.getString(\"regnum\",\"na\");\n count=sharedPreferences.getInt(\"count\",1);\n\n\n }", "private void storeKeyWord(String keyWord) {\n SharedPrefsUtils.setStringPreference(application.getApplicationContext(),\"KEY\",keyWord);\n }", "int getTelecommutePreferenceValue();", "public static String getPrefStringData(Context context, String key) {\n try {\n SharedPreferences pref = context.getSharedPreferences(APP_CONFIG_PREF, Context.MODE_PRIVATE);\n return pref.getString(key, \"\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n return \"\";\n }", "private void savePreferenceData(String role){\n if (getIntent()!=null){\n SharedPreferences preferences = getSharedPreferences(detailPreference, MODE_PRIVATE);\n SharedPreferences.Editor editor = preferences.edit();\n editor.putString(preferenceKey, role);\n editor.apply();\n }\n }", "@Override\n public String getString(String key, String defaultVal) {\n return mSharedPreferences.getString(key, defaultVal);\n }", "private void loadPreferences() {\n SharedPreferences sp = getActivity().getSharedPreferences(SETTINGS, Context.MODE_PRIVATE );\n boolean lm = sp.getBoolean(getString(R.string.live_match), true);\n boolean ls = sp.getBoolean(getString(R.string.live_score), true);\n\n if(lm) live_match.setChecked(true);\n else live_match.setChecked(false);\n\n if(ls) live_score.setChecked(true);\n else live_score.setChecked(false);\n }", "public void getLocal(){\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);\n user = preferences.getString(\"Username\", \"\");\n email = preferences.getString(\"Email\", \"\").replace(\".\", \",\");\n role = preferences.getString(\"Role\", \"\");\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.alarm12);\n\n anglelimitshared = getSharedPreferences(\"Mydata\", Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = anglelimitshared.edit();\n temp = anglelimitshared.getInt(\"angle_limit\", 0);\n text = (TextView) findViewById(R.id.disp_text);\n text.setText(String.valueOf(temp));\n\n\n }", "public void saveString(int prefKey, String value) {\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putString(getResources().getString(prefKey), value);\n editor.apply();\n }", "public void retrieveDataFromSharedPreference(View view) {\n\n name = sharedPreferences.getString(\"name\",\"no data\");\n email = sharedPreferences.getString(\"email\",\"no data\");\n\n nameEditText.setText(name);\n emailEditText.setText(email);\n\n }", "protected abstract String getHintGivenSharedPreferencesKey();", "public void saveString(String key,String value)\n {\n preference.edit().putString(key,value).apply();\n }", "private void getSettings(){\n SharedPreferences sp = getSharedPreferences(\"PACERUNNER_SETTINGS\", Activity.MODE_PRIVATE);\n AMOUNT_OF_SECONDS_WHEN_TRIGGERING_NOTIFICATION = sp.getInt(\"NOTIFICATION_SENSITIVITY\", -15);\n REQUIRED_METERS_BEFORE_SHOWING_AVGPACE = sp.getInt(\"NOTIFICATION_METERS_BEFORE_START\", 500);\n }", "public void setPreference(View v){\n SharedPreferences.Editor editor = settings.edit();\n String prefValue = cHelpers.getText(this, R.id.editText);\n editor.putString(\"key1\",prefValue);\n editor.commit();\n cHelpers.show_toast(this, \"Preference Saved\");\n }", "private void savePrefsData() {\n SharedPreferences pref = getApplicationContext().getSharedPreferences(\"myPrefs\", MODE_PRIVATE);\n SharedPreferences.Editor editor = pref.edit();\n editor.putBoolean(\"isIntroOpnend\", true);\n editor.commit();\n }", "public static String getSetting(Context context, String key) {\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context);\n return sp.getString(key, null);\n\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t\t\tSharedPreferences preferences=getSharedPreferences(\"user\",Context.MODE_PRIVATE);\n\n\t\t\t str2=preferences.getString(\"str1\", \"defaultname\");\n\t\t\t\t//Toast.makeText(MainActivity.this, str2, Toast.LENGTH_SHORT).show();\n\t\t\t\tTextView txCounter2 = (TextView) findViewById(R.id.textView2);\n\t\t txCounter2.setText(str2);\n\t\t\t}", "public void update_storage( ) {\n SharedPreferences sp_file = getPreferences(Context.MODE_PRIVATE); //make shared preferences object\n SharedPreferences.Editor editor = sp_file.edit(); //make editor object\n editor.putInt(\"alarm_set\", alarm_set);\n editor.apply();\n }", "public void shared() {\n\n String Email = editTextEmail.getText().toString();\n String Password = editTextPassword.getText().toString();\n String username = userstring;\n\n SharedPreferences sharedlog = getSharedPreferences(\"usernamelast\" , MODE_PRIVATE);\n SharedPreferences.Editor editorlogin = sharedlog.edit();\n editorlogin.putString(\"usernamelast\", username);\n editorlogin.apply();\n\n SharedPreferences sharedPref = getSharedPreferences(\"email\", MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putString(\"email\", Email);\n editor.apply();\n //Los estados los podemos setear en la siguiente actividad\n SharedPreferences sharedPref2 = getSharedPreferences(\"password\", MODE_PRIVATE);\n SharedPreferences.Editor editor2 = sharedPref2.edit();\n editor2.putString(\"password\", Password);\n editor2.apply();\n\n\n }", "public static String getAppliedValue(Context context) {\n return Utilities.getDevicePrefs(context).getString(KEY_PREFERENCE, \"\");\n }", "public static String getStringPreference(Context pContext, String strKey) {\n if (pContext.getSharedPreferences(PREF_KEY, 0) != null) {\n return pContext.getSharedPreferences(PREF_KEY, 0)\n .getString(strKey, \"\");\n } else {\n return null;\n }\n }", "public String getFromPreference(String variable_name) {\n\t\tString preference_return;\n\t\tSharedPreferences preferences = PreferenceManager\n\t\t\t\t.getDefaultSharedPreferences(this);\n\t\tpreference_return = preferences.getString(variable_name, \"\");\n\n\t\treturn preference_return;\n\t}", "private void saveInPreferences(String gameName) {\n //Store name in shared preferences\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);\n SharedPreferences.Editor editor = preferences.edit();\n editor.putString(\"gameName\", gameName);\n editor.commit();\n\n //Check if gameName stored\n //String storedPreference = preferences.getString(\"gameName\",\"none\");\n //Log.d(\"checkGameName\", storedPreference);\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n btn_login_dia= findViewById(R.id.btnLogin);\n btn_login_dia.setOnClickListener(this);\n btn_signup_dia= findViewById(R.id.btnSignup);\n btn_signup_dia.setOnClickListener(this);\n mAuth = FirebaseAuth.getInstance();\n sp=getSharedPreferences(\"details1\",0);\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);\n int id = prefs.getInt(\"id\", R.id.radioButton1);\n\n if(id == R.id.radioButton1){\n Toast my_toast = Toast.makeText(context, R.string.rb1, Toast.LENGTH_LONG);\n my_toast.show();\n }\n else {\n Toast my_toast = Toast.makeText(context, R.string.rb2, Toast.LENGTH_LONG);\n my_toast.show();\n }\n\n }", "public static String getTaskName1(Context context) {\n SharedPreferences prefs = context.getSharedPreferences(\"com.mobile.counterappmobile\", 0);\n return prefs.getString(\"taskName\", \"click to edit\");\n }", "@JavascriptInterface\n public String getPreference(String name) {\n Log.d(TAG, \"getPreference: \" + name);\n return preferences.getString(name, \"\");\n }", "public void writeSyncPreferences(String string){\n mSharedPreference = mContext.getSharedPreferences(mContext.getString(\n R.string.sharedpreferencesFileName),Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = mSharedPreference.edit();\n editor.putString(getCurrentIdentity(),string);\n editor.commit();\n }", "@Override\n public void setNotificationPreferences(String notificationPreferences) {\n this.notificationPreferences = notificationPreferences;\n SharedPreferences sharedPreferences = this.getSharedPreferences(KEY_SHAREDPREF_FILE, Context.MODE_PRIVATE);\n sharedPreferences.edit()\n .putString(KEY_SHARED_PREF_NOTIF,notificationPreferences)\n .apply();\n\n Log.i(TAG_MAIN, \"setNotificationPreferences: \" + notificationPreferences);\n }", "public void shareData(){\n SharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(this);\n //now get Editor\n SharedPreferences.Editor editor = sharedPref.edit();\n //put your value\n editor.putInt(\"score3\", points);\n\n //commits your edits\n editor.commit();\n }", "public void savingVariablesWebConfig(){\n SharedPreferences prefs = getSharedPreferences(Constants.PREFERENCES_NAME, Context.MODE_PRIVATE);\n //Save data of user in preferences\n SharedPreferences.Editor editor = prefs.edit();\n\n editor.putString(Constants.PREF_VALUE_MAX_ORDERS_ACCEPTED, \"3\");\n editor.putString(Constants.PREF_VALUE_MAX_ORDERS_VISIBLE, \"10\");\n editor.putString(Constants.PREF_VALUE_MAX_TIME_ORDERS, \"15\");\n editor.commit();\n }", "public static String getTaskName3(Context context) {\n SharedPreferences prefs = context.getSharedPreferences(\"com.mobile.counterappmobile\", 0);\n return prefs.getString(\"taskName3\", \"click to edit\");\n }", "@Override\n public void openSharedPreferences(Activity activity) {\n SharedPreferences sharedPreferences = activity.getSharedPreferences(\"auth\", MODE_PRIVATE);\n //default value is \"\"\n String savedPendingEmail = sharedPreferences.getString(KEY_PENDING_EMAIL,\"\");\n Log.d(TAG, \"savedPendingEmail : \" + savedPendingEmail);\n authPresenter.openSavedPendingEmail(savedPendingEmail);\n }", "private void getPreferences() {\n Constants constants = new Constants();\n android.content.SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getActivity());\n\n serverUrl = sharedPreferences.getString(\"LedgerLinkBaseUrl\", constants.DEFAULTURL);\n IsEditing = SharedPrefs.readSharedPreferences(getActivity(), \"IsEditing\", \"0\");\n tTrainerId = SharedPrefs.readSharedPreferences(getActivity(), \"ttrainerId\", \"-1\");\n vslaId = SharedPrefs.readSharedPreferences(getActivity(), \"vslaId\", \"-1\");\n\n vslaName = DataHolder.getInstance().getVslaName();\n representativeName = DataHolder.getInstance().getGroupRepresentativeName();\n representativePost = DataHolder.getInstance().getGroupRepresentativePost();\n repPhoneNumber = DataHolder.getInstance().getGroupRepresentativePhoneNumber();\n grpBankAccount = DataHolder.getInstance().getGroupBankAccount();\n physAddress = DataHolder.getInstance().getPhysicalAddress();\n regionName = DataHolder.getInstance().getRegionName();\n grpPhoneNumber = DataHolder.getInstance().getGroupPhoneNumber();\n grpBankAccount = DataHolder.getInstance().getGroupBankAccount();\n locCoordinates = DataHolder.getInstance().getLocationCoordinates();\n grpSupportType = DataHolder.getInstance().getSupportTrainingType();\n numberOfCycles = DataHolder.getInstance().getNumberOfCycles();\n }", "public String getPrefsAutoLoadDescription();", "public String prefsAutomaticallyCheck();", "public void saveSettings(View v) {\n SharedPreferences sharedPref = this.getPreferences(Context.MODE_PRIVATE); // get shared preferences\n SharedPreferences.Editor editor = sharedPref.edit();\n int seconds_rec = Integer.parseInt(time_recording.getText().toString());\n int notif_occ = Integer.parseInt(time_occurance.getText().toString());\n\n editor.putInt(getString(R.string.time_recording_seconds), seconds_rec); // save values to a sp\n editor.putInt(getString(R.string.time_notification_minutes), notif_occ);\n editor.commit(); // commit the differences\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n }", "@Override\n public void onCreatePreferences(Bundle bundle, String s) {\n addPreferencesFromResource(R.xml.preferences);\n }", "public void writeEncounterNumPreferences(long encounterNum){\n mSharedPreference = mContext.getSharedPreferences(mContext.getString(\n R.string.sharedpreferencesFileName),Context.MODE_PRIVATE);\n SharedPreferences.Editor editor=mSharedPreference.edit();\n editor.putLong(mContext.getString(R.string.encounter),encounterNum);\n editor.commit();\n}", "public void saveData(){\n SharedPreferences sharedPreferences = getSharedPreferences(\"SHARED_PREFS\",MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(\"email_pref\",email.getText().toString());\n editor.putString(\"password_pref\",uPassword.getText().toString());\n editor.apply();\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t str1=editText1.getText().toString();\n\t\t\t\t\tSharedPreferences preferences=getSharedPreferences(\"user\",Context.MODE_PRIVATE);\n\t\t\t Editor editor=preferences.edit();\n\t\t\t editor.putString(\"str1\", str1);\n\t\t\t editor.commit();\n\t\t\t \n\t\t\t}", "private String getUserStringPref(String key, String defaultVal)\n\t{\n\t\treturn mVDH.getUserStringPreference(key, defaultVal, PreferencesModel.class);\n\t}", "protected void onPref(String name, String value){}", "public void setPrefrence(String key, String value) {\n SharedPreferences prefrence = context.getSharedPreferences(\n context.getString(R.string.app_name), 0);\n SharedPreferences.Editor editor = prefrence.edit();\n editor.putString(key, value);\n editor.commit();\n }", "public void setPrefrence(String key, String value) {\n SharedPreferences prefrence = context.getSharedPreferences(\n context.getString(R.string.app_name), 0);\n SharedPreferences.Editor editor = prefrence.edit();\n editor.putString(key, value);\n editor.commit();\n }", "public void restoringPreferences()\n {\n SharedPreferences sharedPreferences = getSharedPreferences(preferenceSaveInfo,MODE_PRIVATE);\n\n //lay gia tri checkbook, k co mac dinh la false\n boolean bchk = sharedPreferences.getBoolean(\"checked\",false);\n if(bchk)\n {\n //lay user, pass, neu k co mac dinh gia tri la rong\n String user = sharedPreferences.getString(\"user\",\"\");\n String pass = sharedPreferences.getString(\"pass\",\"\");\n txtUserName.setText(\"user\");\n txtPassWord.setText(\"pass\");\n }\n\n chkSave.setChecked(bchk);\n }", "@Override\n public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String s) {\n if (s.equals(getString(R.string.cryto_key))) {\n String fromSymbols = sharedPreferences.getString(getString(R.string.cryto_key), getString(R.string.cryto_value));\n String toSymbols = sharedPreferences.getString(getString(R.string.currencies_key), getString(R.string.currencies_value));\n new FetchUrlTask().execute(fromSymbols, toSymbols);\n Intent intent = getIntent();\n finish();\n startActivity(intent);\n } else if (s.equals(getString(R.string.currencies_key))) {\n String toSymbols = sharedPreferences.getString(getString(R.string.currencies_key), getString(R.string.cryto_value));\n String fromSymbols = sharedPreferences.getString(getString(R.string.cryto_key), getString(R.string.currencies_value));\n new FetchUrlTask().execute(fromSymbols, toSymbols);\n Intent intent = getIntent();\n finish();\n startActivity(intent);\n }\n }", "public void UniversitySelected(View view) {\n\n SharedPreferences storeduniversity = getSharedPreferences(\"universityfile\",Activity.MODE_PRIVATE);\n SharedPreferences.Editor editor=storeduniversity.edit();\n\n EditText editText = (EditText) findViewById(R.id.enterDescription);\n String uni=editText.getText().toString();\n\n editor.putString(\"university\",uni);\n editor.apply();\n\n\n \n\n\n Intent intent = new Intent(this, ClassAdder.class);\n //String message = String.valueOf(id.UniversitySelect);\n //intent.putExtra(EXTRA_MESSAGE, message);\n startActivity(intent);\n }", "public static void save(String s, boolean flag){\n SharedPreferences prefs = cont.getSharedPreferences(\"PAFF_SETTINGS\", Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = prefs.edit();\n editor.putBoolean(s,flag);\n editor.commit();\n }", "public void pindah_ke_log(View v)\n {\n Intent dashboard = new Intent(DashboardUser.this,BuyerTransactionActivity.class) ;\n dashboard.putExtra(\"param1\",value1);\n dashboard.putExtra(\"param2\",value2);\n dashboard.putExtra(\"param3\",value3);\n dashboard.putExtra(\"param4\",value4);\n dashboard.putExtra(\"param5\",value5);\n// SharedPreferences sharedPreferences = getSharedPreferences(SHARED_PREFS, MODE_PRIVATE);\n// SharedPreferences.Editor editor = sharedPreferences.edit();\n// editor.putString(TEXT, value1);\n// editor.putString(SWITCH, value2);\n// editor.apply();\n startActivityForResult(dashboard, 100);\n }", "private void GetSharedPrefs()\n {\n// SharedPreferences pref = getActivity().getSharedPreferences(\"LoginPref\", 0);\n// UserId = pref.getInt(\"user_id\", 0);\n// Mobile = pref.getString(\"mobile_number\",DEFAULT);\n// Email = pref.getString(\"email_id\",DEFAULT);\n// Username = pref.getString(\"user_name\",DEFAULT);\n// Log.i(TAG, \"GetSharedPrefs: UserId: \"+UserId);\n\n SharedPreferences pref = getActivity().getSharedPreferences(\"RegPref\", 0); // 0 - for private mode\n UserId = pref.getInt(\"user_id\", 0);\n Mobile = pref.getString(\"mobile_number\",DEFAULT);\n Email = pref.getString(\"email_id\",DEFAULT);\n Log.i(TAG, \"GetSharedPrefs: UserId: \"+UserId);\n CallOnGoingRideAPI();\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n ml = getSharedPreferences(\"musicList\", Context.MODE_PRIVATE);\n Intent receivem = getIntent();\n\n received = receivem.getIntExtra(\"MUS\",0);\n\n if(received==1)\n {\n MusKey=\"MUSICONE\";\n\n }\n\n if(received==2)\n {\n MusKey=\"MUSICTWO\";\n Toast.makeText(getApplicationContext(), \"Its shit\",\n Toast.LENGTH_SHORT).show();\n\n }\n if(received==3)\n {\n MusKey=\"MUSICTHREE\";\n }\n if(received==4)\n {\n MusKey=\"MUSICFOUR\";\n }\n\n if(received==9)\n {\n MusKey=\"EASYMUSIC\";\n }\n init_phone_music_grid();\n }", "public SharedPreferences getPrefs() { return this.prefs; }", "public void getProfile() {\n\n String mKey = getString(R.string.preference_name);\n SharedPreferences mPrefs = getSharedPreferences(mKey, MODE_PRIVATE);\n\n // Load the user email\n\n /*userEmail = getString(R.string.preference_key_profile_email);\n userPassword = getString(R.string.preference_key_profile_password);*/\n\n // Load the user email\n\n mKey = getString(R.string.preference_key_profile_email);\n userEmail = mPrefs.getString(mKey, \"\");\n\n // Load the user password\n\n mKey = getString(R.string.preference_key_profile_password);\n userPassword = mPrefs.getString(mKey, \"\");\n\n\n //userEmail = getString(R.string.register_email);\n //userPassword = getString(R.string.register_password);\n\n }", "@Override\n protected void onResume() {\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(this);\n sp.registerOnSharedPreferenceChangeListener(this);\n super.onResume();\n }", "@Override\n protected void onResume() {\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(this);\n sp.registerOnSharedPreferenceChangeListener(this);\n super.onResume();\n }", "@Override\n public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {\n Preference pref = findPreference(\"email\");\n \n EditTextPreference editTextPreference=(EditTextPreference)findPreference(\"email\"); \n \n if(!check(editTextPreference.getText())){\n \t \n \t editTextPreference.setText(\"\");\n \t AlertDialog alertDialog = new AlertDialog.Builder(AppPreferences.this).create();\n \talertDialog.setTitle(\"Erreur...\");\n \talertDialog.setMessage(\"Email non valide\");\n \talertDialog.show();\n }\n \n \n\n }", "public interface GeneralPreferenceHelper {\n String PREF_USER_NAME = \"pref_name_user\";\n String PREF_ENABLE_SOCIAL = \"pref_social_recomendation\";\n}", "private String getSharedPrefs (String folder, String file, String defaultValue)\t{\n\n\t\tSharedPreferences sp = getSharedPreferences(folder, MODE_PRIVATE);\n\t\treturn sp.getString(file, defaultValue);\n\t}", "private static SharedPreferences getSharedPreferences(Context context) {\n return PreferenceManager.getDefaultSharedPreferences(context);\n }", "public static String getFromPrefs(Context context, String key,\n String defaultValue) {\n SharedPreferences sharedPrefs = getSettings();\n try {\n return sharedPrefs.getString(key, defaultValue);\n } catch (Exception e) {\n e.printStackTrace();\n return defaultValue;\n }\n }", "private SharedPreferences getSharedPrefs() {\n return Freelancer.getContext().getSharedPreferences(SHARED_PREFS_NAME, Context.MODE_PRIVATE);\n }", "@Override\n public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {\n if(key.equals(context.getResources().getString(R.string.preferences_key_actualizacion))){\n\n String actualizacion = sharedPreferences.getString(\n context.getResources().getString(R.string.preferences_key_actualizacion),\n context.getResources().getString(R.string.preferences_key_actualizacion_default));\n\n Long actualizacionLong = Long.parseLong(actualizacion);\n\n //Se cancela la anterior tarea programada\n alarmManager.cancel(pendingIntent);\n\n //Si es distinto de 0 e, periodo de actualización, se pone en marcha de nuevo la\n //tarea programada con el nuevo valor\n if (actualizacionLong != 0) {\n alarmManager.setInexactRepeating(\n AlarmManager.RTC_WAKEUP,\n 0,\n actualizacionLong * 1000,\n pendingIntent);\n }\n }\n }", "static synchronized SharedPreferences m45630a(Context context) {\n synchronized (C7529d.class) {\n if (Build.VERSION.SDK_INT >= 11) {\n f31839a = context.getSharedPreferences(\".tpush_mta\", 4);\n } else {\n f31839a = context.getSharedPreferences(\".tpush_mta\", 0);\n }\n if (f31839a == null) {\n f31839a = PreferenceManager.getDefaultSharedPreferences(context);\n }\n return f31839a;\n }\n }", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\t\n\t\tthis.prefs = PreferenceManager.getDefaultSharedPreferences(this);\n\t\t/*\n\t\t * Each app has its own shared preferences available to all components\n\t\t * of the app and this loads the default preferences that are saved on\n\t\t * the phone\n\t\t */\n\t\tthis.prefs.registerOnSharedPreferenceChangeListener(this);\n\t\t/*\n\t\t * Each user can change preferences. So this listener is a mechanism to\n\t\t * notify this activity that the old values are stale\n\t\t */\n\t}", "private void checkFirstLaunch(){\n SharedPreferencesEditor editor = new SharedPreferencesEditor(this);\n boolean test = editor.GetBoolean(\"firstLaunch\");\n if(test){\n loadData();\n return;\n }\n startActivity(new Intent(MainActivity.this, FirstLaunch.class));\n editor.WriteBoolean(\"firstLaunch\", true);\n }", "public interface PreferenceHelper {\r\n // Preference Name\r\n String PREFERENCE_NAME = \"Embedded_Downloads_preference\";\r\n // Preference mode\r\n int PRIVATE_MODE = 0;\r\n String INITIAL_START = \"initial_start\";\r\n String WALLET_ADDRESS = \"wallet_address\";\r\n String WALLET_NAME = \"wallet_name\";\r\n String TRANSACTION_WALLET_ADDRESS = \"transaction_wallet_address\";\r\n String WALLET_POSITION =\"wallet_position\";\r\n String CALL_TRANSACTION_STATUS = \"call_transaction_status\";\r\n String CALL_INCOMING = \"call_incoming\";\r\n String CALL_OUTGOING = \"call_outgoing\";\r\n}", "private void getPrefs() {\n SharedPreferences prefs = PreferenceManager\n .getDefaultSharedPreferences(getBaseContext());\n \n int size = prefs.getInt(\"textsizePref\", 20);\n int color = Integer.valueOf(prefs.getString(\"textcolorPref\", \"7f070006\"),16);\n int bakcolor = Integer.valueOf(prefs.getString(\"backgroundcolorPref\", \"1\"));\n int font = Integer.valueOf(prefs.getString(\"fontPref\", \"1\"));\n mQuoteTxt.setTextColor(getResources().getColor(color));\n \n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(this);\n Editor editor = sp.edit();\n switch (bakcolor) {\n case 1: \t\n \tmScrollview.setBackgroundColor(getResources().getColor(R.color.white));\n \tif (color == 1) {\n \t\tmQuoteTxt.setTextColor(getResources().getColor(R.color.black));\n \t\teditor.putString(\"textcolorPref\", \"2\");\n \t} \t\t\n \tmHeader.setTextColor(getResources().getColor(R.color.black));\n \tbreak;\n case 2:\n \tmScrollview.setBackgroundColor(getResources().getColor(R.color.black));\n \tif (color == 2) {\n \t\tmQuoteTxt.setTextColor(getResources().getColor(R.color.white));\n \t\teditor.putString(\"textcolorPref\", \"1\");\n \t} \t\t\n \tmHeader.setTextColor(getResources().getColor(R.color.white));\n break;\n } \n editor.commit();\n switch (font) {\n case 1:\n \tmQuoteTxt.setTypeface(Typeface.DEFAULT);\n \tbreak;\n case 2:\n \tmQuoteTxt.setTypeface(Typeface.SANS_SERIF);\n \tbreak;\n case 3:\n \tmQuoteTxt.setTypeface(Typeface.SERIF);\n \tbreak;\n case 4:\n \tmQuoteTxt.setTypeface(Typeface.MONOSPACE);\n \tbreak;\n }\n mQuoteTxt.setTextSize((float) size);\n \n }", "public static String getStringPreference(String key) {\n return sharedPreferences.getString(key, null);\n }", "@Override\n public void onCreate() {\n\n mNM = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);\n\n if(AlarmTask.code == 3) {\n spref = getApplicationContext().getSharedPreferences(\"my_data\", 0);\n food = new AddFoodActivity();\n editor = spref.edit();\n message = \"Reset data\";\n Toast.makeText(NotifyService.this, \"Notification reset: \" + spref.getFloat(\"kalori\",0), Toast.LENGTH_LONG).show();\n editor.putStringSet(\"SetSiang\", null);\n editor.putStringSet(\"SetPagi\", null);\n editor.putStringSet(\"SetMalam\", null);\n editor.commit();\n food.setNull();\n }\n\n\n }", "@Override\n public void onPause() {\n \t\t//Save settings Enabled, Alarm Hour, Alarm Minute\n SharedPreferences settings = getSharedPreferences(MainActivity.PREFS_NAME, 0);\n SharedPreferences.Editor editor = settings.edit();\n editor.putBoolean(MainActivity.ALARM_ENABLED, AlarmEnabled);\n editor.putInt(MainActivity.SNOOZE_MINUTE, SnoozeMin);\n \n //Commit the edits\n editor.commit();\n \n super.onPause();\n }", "public void displayData(View view){\n SharedPreferences sharedPref = getSharedPreferences(\"userinfo\", Context.MODE_PRIVATE);\n\n String name = sharedPref.getString(\"username\",\"\");\n displaytext.setText(\"welcome \" + name + \"!\");\n\n }", "@Override\n protected void onResume() {\n super.onResume();\n SharedPreferences preferences = getSharedPreferences(luuthongtin, MODE_PRIVATE);\n String username = preferences.getString(\"UserName\", \"\");\n String password = preferences.getString(\"PassWord\", \"\");\n Boolean save = preferences.getBoolean(\"Save\",false);\n if(save)\n {\n edtUserName.setText(username);\n edtPassword.setText(password);\n checkBox.setChecked(save);\n }\n }", "public static java.lang.String getDefaultSharedPreferencesName(android.content.Context context) { throw new RuntimeException(\"Stub!\"); }", "private void currentStateRestoreFromSharedPref() {\n sharedPreferences = getPreferences(MODE_PRIVATE);\n int key1DeffaultValue = -1;\n key1OfActiveChallenge = sharedPreferences.getInt(\"key1OfActiveChallenge\", key1DeffaultValue);\n nameOfCurrentChallenge = sharedPreferences.getString(\"nameOfActiveChallenge\", nameOfCurrentChallenge);\n\n dateOfLastEdit = sharedPreferences.getString(\"dateOfLastEdit\", dateOfLastEdit);\n\n goal = sharedPreferences.getFloat(\"goal\", goal);\n carry = sharedPreferences.getFloat(\"carry\", carry);\n\n challengeDaysRunning = sharedPreferences.getInt(\"challengeDaysRunning\", challengeDaysRunning);\n }", "public static void initPrefs(){\n prefs = context.getSharedPreferences(PREFS_FILE, 0);\n SharedPreferences.Editor editor = prefs.edit();\n editor.remove(Constants.IS_FIRST_RUN);\n editor.putBoolean(Constants.ACTIVITY_SENSE_SETTING,false);\n editor.commit();\n }", "public static String getTaskName4(Context context) {\n SharedPreferences prefs = context.getSharedPreferences(\"com.mobile.counterappmobile\", 0);\n return prefs.getString(\"taskName4\", \"click to edit\");\n }", "public void updatePreferences() {\n\n Toast.makeText(this, \"enter your data\", Toast.LENGTH_SHORT).show();\n startActivity(new Intent(this, SipSettingsActivity.class));\n\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n\n\n code = intent.getStringExtra(SMSreceiver.CODE);\n System.out.println(\"got the code information\");\n if (code.length() == 4) {\n try {\n\n otp1.setText(String.valueOf(code).charAt(0));\n otp2.setText(String.valueOf(code.charAt(1)));\n otp3.setText(String.valueOf(code.charAt(2)));\n otp4.setText(String.valueOf(code.charAt(3)));\n SharedPreferences sharedpreferences = getSharedPreferences(\"buddyotp\", Context.MODE_PRIVATE);\n w = sharedpreferences.getInt(\"shareflow\", 1);\n }\n catch (Exception e)\n {}}}", "private static SharedPreferences getSharedPrefs(final Context context) {\n final String prefsName = context.getString(R.string.sharedprefs_name);\n return context.getSharedPreferences(prefsName, Context.MODE_PRIVATE);\n }", "private void setupSharedPreferences() {\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);\n\n String aaString = sharedPreferences.getString(getString(R.string.pref_antalAktier_key), getString(R.string.pref_antalAktier_default));\n// float aaFloat = Float.parseFloat(aaString);\n editTextAntalAktier.setText(aaString);\n\n String kk = sharedPreferences.getString(getString(R.string.pref_koebskurs_key), getString(R.string.pref_koebskurs__default));\n editTextKoebskurs.setText(kk);\n\n String k = sharedPreferences.getString(getString(R.string.pref_kurtage_key), getString(R.string.pref_kurtage_default));\n editTextKurtage.setText(k);\n\n// float minSize = Float.parseFloat(sharedPreferences.getString(getString(R.string.pref_size_key),\n// getString(R.string.pref_size_default)));\n// mVisualizerView.setMinSizeScale(minSize);\n\n // Register the listener\n sharedPreferences.registerOnSharedPreferenceChangeListener(this);\n }", "public static void setPrefStringData(Context context, String key, String value) {\n SharedPreferences appInstallInfoSharedPref = context.\n getSharedPreferences(APP_CONFIG_PREF, Context.MODE_PRIVATE);\n SharedPreferences.Editor appInstallInfoEditor = appInstallInfoSharedPref.edit();\n appInstallInfoEditor.putString(key, value);\n appInstallInfoEditor.apply();\n }", "private void LoadSavedPreferences() {\n\t\tString value;\n\t\tSharedPreferences sharedPreferences = PreferenceManager\n\t\t\t\t.getDefaultSharedPreferences(this);\n\t\t// tab 3 ************************************************\n\t\tvalue = sharedPreferences.getString(\"tempSzad\", \"22\");\n\t\tettempSzad_.setText(value);\n\t\tvalue = sharedPreferences.getString(\"tempPmaxdop\", \"70\");\n\t\tettempPmaxdop_.setText(value);\n\t\tvalue = sharedPreferences.getString(\"tempZmaxdop\", \"22\");\n\t\tettempZmaxdop_.setText(value);\n\t\tvalue = sharedPreferences.getString(\"tempPumpaON\", \"50\");\n\t\tettempPumpaON_.setText(value);\n\n\t\t// tab 1 ************************************************\n\t\tvalue = sharedPreferences.getString(\"tv1\", \"20.20\");\n\t\ttvS1.setText(value);\n\t\tvalue = sharedPreferences.getString(\"tv2\", \"44.22\");\n\t\ttvS2.setText(value);\n\t\tvalue = sharedPreferences.getString(\"tv3\", \"19.22\");\n\t\ttvS3.setText(value);\n\t}", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n addPreferencesFromResource(R.xml.framework_setting);\n SharedPreferences sharedPreferences = this.getPreferenceManager().getSharedPreferences();\n String preference_smartbar_default_type = getResources().getString(R.string.preference_smartbar_default_type);\n final ListPreference listPreference = (ListPreference) findPreference(preference_smartbar_default_type);\n //修改Smartbar类型\n String smart_type = sharedPreferences.getString(preference_smartbar_default_type, null);\n int index = listPreference.findIndexOfValue(String.valueOf(smart_type));\n if (index != -1) {\n CharSequence[] entries = listPreference.getEntries();\n listPreference.setTitle(entries[index]);\n }\n if (listPreference != null) {\n listPreference.setOnPreferenceChangeListener(new Preference.OnPreferenceChangeListener() {\n @Override\n public boolean onPreferenceChange(Preference preference, Object newValue) {\n int index = listPreference.findIndexOfValue(newValue.toString());\n CharSequence[] entries = listPreference.getEntries();\n listPreference.setTitle(entries[index]);\n return true;\n }\n });\n }\n }", "private static void storeActivation(Context context) {\n\t\t//securely store in shared preference\n\t\tSharedPreferences secureSettings = new SecurePreferences(context);\n\t\tString account = UserEmailFetcher.getEmail(context);\n\n\t\t//update preference\n\t\tSharedPreferences.Editor secureEdit = secureSettings.edit();\n\t\tsecureEdit.putBoolean(account + \"_paid\", true);\n\t\tsecureEdit.apply();\n\t}" ]
[ "0.6826624", "0.6562088", "0.6516414", "0.6516414", "0.64694566", "0.6427471", "0.62806886", "0.62641054", "0.6249715", "0.6243954", "0.62111735", "0.617097", "0.6153518", "0.61511827", "0.6139763", "0.61338884", "0.6106127", "0.60788476", "0.60393393", "0.60370684", "0.60288864", "0.6022412", "0.6018738", "0.60063183", "0.59948224", "0.59930366", "0.5991901", "0.5949236", "0.5942611", "0.5929571", "0.5899707", "0.58988893", "0.58847815", "0.5864067", "0.584556", "0.5840049", "0.5818819", "0.5810929", "0.5804956", "0.5795556", "0.57954854", "0.5793828", "0.5790803", "0.5789413", "0.57876533", "0.5775253", "0.5775177", "0.5771398", "0.5766801", "0.57547796", "0.57274026", "0.5719177", "0.57177716", "0.57158947", "0.5709454", "0.5696327", "0.56932503", "0.5690902", "0.5689099", "0.5687365", "0.5687365", "0.5675701", "0.56630766", "0.56592387", "0.5657166", "0.5653868", "0.5652942", "0.5649341", "0.56398684", "0.5621295", "0.5613771", "0.5613771", "0.5598649", "0.5587169", "0.5565945", "0.55607074", "0.5559731", "0.55571413", "0.55546117", "0.5551459", "0.55415356", "0.55388635", "0.5538629", "0.5534307", "0.5530714", "0.55285347", "0.5526739", "0.5522599", "0.55211276", "0.55144614", "0.5512323", "0.5512008", "0.5506624", "0.55048835", "0.5499486", "0.54968774", "0.5489806", "0.5489118", "0.54784477", "0.5477021", "0.5465709" ]
0.0
-1
If paused don't update anything, else continue rendering
@Override public void render(float delta) { if(paused) { if (Gdx.input.isKeyPressed(Keys.P)) { paused = false; try { Thread.sleep(150); } catch (InterruptedException e) { e.printStackTrace(); } } } else { //Clear the screen Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT); //Controlled ball control.color = Color.CYAN; control.update(); shape.begin(ShapeRenderer.ShapeType.Filled); control.draw(shape); shape.end(); //Create bouncing balls for (Ball ball : balls) { ball.update(); shape.begin(ShapeRenderer.ShapeType.Filled); ball.draw(shape); shape.end(); //When ball and controller collide make collision sound effect and flash to Red if (control.overlaps(ball) == true) { if (Options.isFxOn == true) collideSound.render(); control.color = Color.RED; shape.begin(ShapeRenderer.ShapeType.Filled); control.draw(shape); shape.end(); hasCollided = 1; } if (control.overlaps(ball) == false && hasCollided == 1) { healthcounter++; hasCollided = 0; } } //Drawing the timer batch.begin(); time.drawTime(batch); batch.end(); //Adding Balls Every 30 seconds if (time.thirtySecPassed() == true && hasThirty == 0) { balls.add(new Ball(gen.nextInt(100) + size, gen.nextInt(100) + size, gen.nextInt(25) + 5, gen.nextInt(15) + 1, gen.nextInt(15) + 1)); hasThirty = 1; } if ((int)time.dt % 30 != 0) hasThirty = 0; //Setting T or F Var for Ball Spawn if (time.tenSecPrior()) tenPrior = 1; if (time.thirtySecPassed()) tenPrior = 0; //Setting T or F Var for speed and size change if (time.fiveSecPrior()) fivePrior = 1; if (time.fifteenSecPassed()) fivePrior = 0; if (tenPrior == 1) { batch.begin(); alert.showAlertTwenty(batch); batch.end(); } if (fivePrior == 1) { batch.begin(); alert.showAlertTen(batch); batch.end(); } //Draw the healthbar batch.begin(); Healthbar.health.get(healthcounter).setSize(180f, 30f); Healthbar.health.get(healthcounter).setPosition(2, 450); Healthbar.health.get(healthcounter).draw(batch);; batch.end(); if (healthcounter >= 4) { score = time.dt; actualScore = df.format(score); System.out.println(actualScore); dispose(); goToEndScreen(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void pause() {\n log.debug(\"pause()\");\n // reset renderInterrupted\n renderInterrupted = true;\n\n }", "public final void \n onPause( ) {\n \t\n synchronized( this.mRenderLock ) {\n \tthis.isPaused = true;\n \tthis.isNewRenderQueueAvailable = true;\n \tthis.mRenderLock.notify();\n }\n \n super.onPause();\n }", "public void isPaused() { \r\n myGamePaused = !myGamePaused; \r\n repaint(); \r\n }", "public void checkPaused()\n {\n paused = true;\n }", "public void pause()\n {\n paused = true;\n }", "private void pause() {\n if (!isStarted) {\n return;\n }\n\n isPaused = !isPaused;\n\n if (isPaused) {\n\n statusbar.setText(\"paused\");\n } else {\n\n statusbar.setText(String.valueOf(numLinesRemoved));\n }\n }", "public void pause() {\n paused = true;\n }", "public void pause() {\n paused = true;\n }", "public void resume()\n\t{\n\t\tisPaused = false;\n\t}", "@Override\n public void resume() {\n log.debug(\"resume()\");\n // set renderInterrupted to true\n renderInterrupted = true;\n\n }", "public void repaint() {\n if ( clock != null && clock.isPaused() ) {\n super.repaint();\n }\n }", "public void pause() {\r\n\t\tsetState(PAUSED);\r\n\t}", "public boolean isPaused();", "public void paused() {\n System.out.println(\"Paused\");\n }", "synchronized void pause() {\n\t\tpaused = true;\n\t}", "@Override\r\n\tpublic void render(float delta) {\n\t\tGdx.gl.glClearColor(0.1f, 0.1f, 0.1f, 1);\r\n\t\tGdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT);\r\n\r\n\t\tif(!affSideMenu.isPaused()){\r\n\t\t\tcontrol.update(delta);\r\n\t\t\t\r\n\t\t\ttirs.update(delta);\r\n\t\t\tepee.update(delta);\r\n\t\t\tanimaux.update(delta);\r\n\t\t}\r\n\t\taffMonde.render();\r\n\t\taffSideMenu.render();\r\n\t}", "synchronized boolean isPaused(){\n\t\treturn paused;\n\t}", "public void resume() {\n paused = false;\n }", "public synchronized void pause() {\r\n\r\n\t\tpaused = true;\r\n\t}", "@Override\r\n public void run() {\r\n while (playState.mPlaying) {\r\n if (!playState.mPaused) {\r\n // Update 10 times a second\r\n if (updateRequired()) {\r\n update();\r\n }\r\n }\r\n\r\n draw();\r\n }\r\n }", "@Override\n public boolean isRunning() {\n return !paused;\n }", "public void pause() {\n running = false;\n }", "public void onPause() {\n\t\tdouble maxBlur = Game.SIZE/20d;\n\t\tdouble maxBrighnessChange = -.4;\n\t\tdouble maxSaturationChange = -.3;\n\t\tif(!Game.instance().getEngine().isPaused()) {\n\t\t\tSystem.out.println(\"Paused!\");\n\t\t\tGame.instance().getEngine().setPaused(true);\n\t\t\t\n\t\t\tblur.setInput(ca);\n\t\t\tmapPane.setEffect(blur);\n\t\t\tsliding.fromDown(pauseOverlay, new Extra() {\n\t\t\t\t@Override\n\t\t\t\tpublic void interpolate(double frac) {\n\t\t\t\t\tblur.setRadius(maxBlur*frac);\n\t\t\t\t\tca.setBrightness(maxBrighnessChange*frac);\n\t\t\t\t\tca.setSaturation(maxSaturationChange*frac);\n\t\t\t\t}\n\t\t\t\t@Override public void onFinish() {}\n\t\t\t});\n\t\t}else {\n\t\t\tSystem.out.println(\"Unpaused!\");\n\t\t\tGame.instance().getEngine().setPaused(false);\n\t\t\tsliding.fromUp(Game.instance().getGameHud(), new Extra() {\n\t\t\t\t@Override\n\t\t\t\tpublic void interpolate(double frac) {\n\t\t\t\t\tfrac = 1-frac;\n\t\t\t\t\tblur.setRadius(maxBlur*frac);\n\t\t\t\t\tca.setBrightness(maxBrighnessChange*frac);\n\t\t\t\t\tca.setSaturation(maxSaturationChange*frac);\n\t\t\t\t}\n\t\t\t\t@Override\n\t\t\t\tpublic void onFinish() {\n\t\t\t\t\tmapPane.setEffect(null);\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t}\n\t}", "@Override\n public void pause() {\n Gdx.app.log(TAG, \"Paused\");\n }", "public void pause() {\n isPaused = true;\n System.out.println(\"pausing\");\n timeline.stop();\n }", "public void fullRenderRefresh() {\n gameChanged = true;\n visionChanged = true;\n backgroundChanged = true;\n selectionChanged = true;\n movementChanged = true;\n }", "private void togglePaused() {\n \t\tif (!isPaused) {\n \t\t\ttimeFirstPaused = System.nanoTime();\n \t\t} else {\n \t\t\t// Offset the time spent paused.\n \t\t\ttimeGameStarted += (System.nanoTime() - timeFirstPaused);\n \t\t}\n \t\tisPaused = !isPaused;\n \t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\n public void render(float deltaTime) {\n userInterface.act(deltaTime); //to update the actor based on time\n\n //verifies if the game is pause, and if isn't, updates the mainStage\n if (!isPaused()) {\n mainStage.act(deltaTime);\n update(deltaTime);\n }\n\n //clears the oldest frames\n Gdx.gl.glClearColor(0, 0, 0, 1);\n Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);\n\n //draws the new frames\n mainStage.draw();\n userInterface.draw();\n }", "@Override\n\tpublic void onResume() {\n\t\tsuper.onResume();\n\t\tifneedUpdate();\n\t}", "private void resumeGame() {\n\n gameCountDownTimer = getGameTimer();\n gameCountDownTimer.start();\n if(globalAnimatorMap != null && !globalAnimatorMap.isEmpty() && globalAnimatorMap.size() > 0) {\n for (Map.Entry<Integer, AnimatorSet> entry : globalAnimatorMap.entrySet()) {\n AnimatorSet animatorSet = entry.getValue();\n if (animatorSet != null) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {\n if (animatorSet.isPaused()) {\n animatorSet.resume();\n }\n } else {\n animatorSet.start();\n }\n }\n }\n }else{\n animateBalloonView(balloon1,false);\n animateBalloonView(balloon2,false);\n animateBalloonView(balloon3,false);\n animateBalloonView(balloon4,false);\n animateBalloonView(balloon5,false);\n }\n String controlButtonTitle = getResources().getString(R.string.pause_btn);\n conttroler.setText(controlButtonTitle);\n currentScreenGameState = GameState.PLAYING;\n setCurrentScreenCover();\n invalidateOptionsMenu();\n }", "public boolean doPause() {\n return false;\n }", "@Override\n public void pause() {\n }", "public void run() {\n\t\tif (!Sequencer.isPaused()) update(Sequencer.getTempo());\n\t\tdisplay();\n\t}", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tmPaused=false;\n\t\tsynchronized (obj) {\n\t\t\t\n\t\t\tobj.notify();\n\t\t}\n\t}", "@Override\n public void pause() {\n \n }", "@Override\n protected void result(Object object) {\n gamePaused = false;\n }", "@Override\n protected void result(Object object) {\n gamePaused = false;\n }", "@Override\r\n public void pause() {}", "public void pauseGame() {\n paused = true;\r\n cam.zoom = worldWidth/screenWidth;\r\n boundCamera();\r\n topHud.setPauseButtonCanDraw(false);\r\n gameHud.setCanPress(false);\r\n\r\n playButton.setDrawable(!(win || lose));\r\n homeButton.setDrawable(true);\r\n restartButton.setDrawable(true);\r\n\r\n playButton.setCanPress(true);\r\n homeButton.setCanPress(true);\r\n restartButton.setCanPress(true);\r\n\r\n bindInput(pauseProcessors);\r\n\r\n timeGap = centralTimer - timer;\r\n }", "@Override\r\n public void pause() {\r\n\r\n }", "@Override\r\n public void pause() {\r\n\r\n }", "private void pause() {\n\t\t// TODO\n\t}", "public void pause() {\n pause = true;\n }", "public synchronized void resume() {\n paused = false;\n this.notify();\n }", "@Override\n public void pause() {\n // Not used\n }", "@Override\n\t\tpublic void pause() {\n\t\t \n\t\t}", "synchronized void resumeGame() {\n myShouldPause = false;\n notify();\n }", "synchronized void resumeGame() {\n myShouldPause = false;\n notify();\n }", "public void pause() {\n\t\tsynchronized(this) {\n\t\t\tpaused = true;\n\t\t}\n\t}", "@Override\r\n public void pause() {\n }", "@Override\r\n public void pause() {\n }", "@Override\r\n public void pause() {\n }", "public boolean isPaused() {\n \t\treturn isPaused;\n \t}", "public void resumeUpdates();", "@Override\n public void pause() {\n }", "public void render(float dt) {\n uiStage.act(dt);\n// only pause gameplay events, not UI events\n if (!isPaused()) {\n mainStage.act(dt);\n update(dt);\n }\n// render\n Gdx.gl.glClearColor(1, 1, 1, 1);\n Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);\n mainStage.draw();\n uiStage.draw();\n }", "@Override\r\n\tpublic void pause() {\n\t}", "@Override\n public void pause() {\n }", "@Override\n public void pause() {\n }", "@Override\n public void pause() {\n }", "@Override\n public void pause() {\n }", "@Override\n public void pause() {\n }", "public void togglePauseResume() {\n // MODIFIES: field \"running\"\n // EFFECTS: changes the boolean field \"running\" of this instance.\n if (running) {\n System.out.println(\"Physics engine paused.\");\n running = false;\n } else {\n System.out.println(\"Physics engine resumed.\");\n running = true;\n }\n }", "public boolean isPaused() {\n return _isPaused;\n }", "public void update(){\n\t\tif (!VisualizerMain.selectedRun.equals(\"\")){\n\t\t\tupdateEpochNum();\n\t\t\tupdateParticles();\n\t\t\tthis.repaint();\n\t\t}\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\tsuper.pause();\n\t}", "public synchronized void resume() {\r\n\r\n\t\tpaused = false;\r\n\t\tnotifyAll();\r\n\t}", "@Override\r\n\tpublic void onFragmentPaused() {\n\t}", "@Override\n public void Pause() {\n }", "@Override\n public void pause() {\n \n }", "@Override\n\tpublic void resume() {\n\t\tif (mPlayId == mPlayTotal) {\n\t\t\tmPlayId = 0;\n\t\t}\n\t\tsetChange();\n\t}", "@Override\n protected void onResume() {\n super.onResume();\n isPaused = false;\n if(!mRefreshThread.isAlive()) {\n mRefreshThread.start();\n }\n }", "@Override public void run() {\n mRenderer.notifyPausing();\n }", "@Override\n\tpublic void pause() {\n\t}", "@Override\n\tpublic void pause() {\n\t}", "@Override\n\tpublic void pause() {\n\t}", "@Override\n\tpublic void pause() {\n\t}", "@Override\n\tpublic void pause() {\n\t}", "@Override\n\tpublic void pause() {\n\t}", "@Override\n\tpublic void pause() {\n\t}", "@Override\n \tpublic void pause() {\n \t}", "public void pause() {\r\n fPause = true;\r\n }", "@Override\r\n\tpublic void pause() {\n\r\n\t}", "@Override\r\n\tpublic void pause() {\n\r\n\t}", "@Override\r\n\tpublic void pause() {\n\r\n\t}", "@Override\r\n\tpublic void pause() {\n\r\n\t}", "@Override\r\n\tpublic void pause() {\n\r\n\t}", "@Override\r\n\tpublic void pause() {\n\r\n\t}", "@Override\r\n\tpublic void pause() {\n\r\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}" ]
[ "0.7225078", "0.68345124", "0.67297417", "0.6644395", "0.65816945", "0.6573008", "0.6563635", "0.6563635", "0.65244055", "0.6483382", "0.6467916", "0.64506733", "0.6449861", "0.64468664", "0.6445293", "0.64405423", "0.6419878", "0.64152914", "0.6407279", "0.6399801", "0.63873863", "0.63279694", "0.6318575", "0.62912655", "0.62691873", "0.62687165", "0.62595516", "0.6230054", "0.6230054", "0.6230054", "0.6230054", "0.6230054", "0.6230054", "0.6230054", "0.6230054", "0.6230054", "0.62219435", "0.6218185", "0.6216619", "0.6201653", "0.62007886", "0.61961585", "0.6194906", "0.6193368", "0.61878103", "0.61878103", "0.61796695", "0.61668223", "0.614244", "0.614244", "0.61417997", "0.61339986", "0.6133878", "0.6133189", "0.6128671", "0.61259764", "0.61259764", "0.61208385", "0.61116654", "0.61116654", "0.61116654", "0.6107975", "0.6107944", "0.610126", "0.6101246", "0.6099504", "0.60988086", "0.60988086", "0.60988086", "0.60988086", "0.60988086", "0.6088666", "0.60852414", "0.6077219", "0.6072043", "0.60607857", "0.6058479", "0.60548544", "0.6049767", "0.60417897", "0.6035465", "0.6030956", "0.60297674", "0.60297674", "0.60297674", "0.60297674", "0.60297674", "0.60297674", "0.60297674", "0.60274345", "0.6022219", "0.602168", "0.602168", "0.602168", "0.602168", "0.602168", "0.602168", "0.602168", "0.6015607", "0.6015607", "0.6015607" ]
0.0
-1
HiddenField fieldTroca = (HiddenField) demandasTrocaItemForm.getField("trocaPor"); if(fieldTroca) fieldTroca.setValueObject(idItemTroca);
public void onAdicionarItemTroca() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void execute(ProgramContext pc) throws ParserException {\n\t\tif (!pc.isEscribe()){\n\t\t\t//marco el field como hide, para que endform sepa que hacer con el\n\t\t\tfield.setHide(true);\n\t\t\treturn;\n\t\t}\n\t\tString res = \"\";\n\t\tString itemName = field.getItemName();\n\t\tString itemType = field.getItemType();\n\t\tint itemUi = field.getItemUi();\n\t\tString resto = field.getResto();\n\t\tString valor = pc.getDocAct().getItemValue(itemName);\n\t\tif (valor == null) valor = \"\";\n\t\t\n\t\tif (itemName.toLowerCase().startsWith(\"fecha\")){\n\t\t\tlog.debug(\"###########################################################################\");\n\t\t\tlog.debug(\"# itemName=\"+itemName+\" valor=\"+valor+\" class:\"+pc.getDocAct().getItem(itemName));\n\t\t\tlog.debug(\"###########################################################################\");\n\t\t}\n\t\t\n\t\tvalor = Arguments.scapeHTML(valor);\n\t\t\n\t\tif (((pc.getActionType()==ProgramContext.ACTION_NEW)||(pc.getActionType()==ProgramContext.ACTION_EDIT))&&(field.getItemKind()==Field.KIND_EDITABLE)){\n\t\t\t//veo si hay lista dinamica y statica y las proceso\n\t\t\tList<String> options = new ArrayList<String>();\n\t\t\tif (field.getDinamicList()!=null) options.addAll(pc.getDomSession().executeGetList(field.getDinamicList()));\n\t\t\tif (field.getTextList()!=null) {\n\t\t\t\tString[] opts = field.getTextList().split(field.getSeparator());\n\t\t\t\tfor(String opt:opts) options.add(opt);\n\t\t\t}\n\t\t\t//arreglo para poner columnas en checks y radios\n\t\t\tint col=0;\n\t\t\tint numCols = field.getNumCols();\n\t\t\tif (numCols==0) numCols=options.size();\n\n\t\t\t//veo si el valor es multivaluado y lo proceso\n\t\t\tString isep = field.getInternalSeparator();\n\t\t\tSystem.out.println(\"#### isep=\"+isep+\" valor=\"+valor);\n\t\t\tList<String> valores = new ArrayList<String>();\n\t\t\tif (isep!=null){\n\t\t\t\tString[] vals = valor.split(isep);\n\t\t\t\tfor(String val:vals) valores.add(val.trim());\n\t\t\t} else valores.add(valor);\n\t\t\t\n\t\t\tswitch(itemUi){\n\t\t\tcase Field.UI_TEXT:\n\t\t\t\tres = \"<input type=\\\"text\\\" id=\\\"\"+itemName+\"\\\" name=\\\"\" + itemName + \"\\\" \"+resto+\" value=\\\"\" + valor + \"\\\">\";\n\t\t\t\tbreak;\n\t\t\tcase Field.UI_TEXTAREA:\n\t\t\t\tres = \"<textarea id=\\\"\"+itemName+\"\\\" name=\\\"\" + itemName + \"\\\" \"+resto+\">\" + valor + \"</textarea>\";\n\t\t\t\tbreak;\n\t\t\tcase Field.UI_CHECKBOX:\n\t\t\t\tfor(String option:options){\n\t\t\t\t\t//ver caso especial donde | separa texto de valor\n\t\t\t\t\tint i1=option.indexOf(\"|\");\n\t\t\t\t\tString val = option.trim();\n\t\t\t\t\tString txt = option.trim();\n\t\t\t\t\tif (i1>0){\n\t\t\t\t\t\ttxt = option.substring(0,i1).trim();\n\t\t\t\t\t\tval = option.substring(i1+1).trim();\n\t\t\t\t\t}\n\t\t\t\t\tres += \"<input type=\\\"checkbox\\\" name=\\\"\" + itemName + \"\\\" \"+resto+\" value=\\\"\" + val + \"\\\"\";\n\t\t\t\t\t//comprobar debo marcar la opcion teniendo en cuenta los multivaluados (internalSeparator)\n\t\t\t\t\tif (valores.contains(val)) res+=\" checked=\\\"true\\\"\";\n\t\t\t\t\tres += \">\"+txt;\n\t\t\t\t\tcol++;\n\t\t\t\t\tif (col>=numCols) {\n\t\t\t\t\t\tres += \"<br>\";\n\t\t\t\t\t\tcol = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Field.UI_RADIOBUTTON:\n\t\t\t\tfor(String option:options){\n\t\t\t\t\t//ver caso especial donde | separa texto de valor\n\t\t\t\t\tint i1=option.indexOf(\"|\");\n\t\t\t\t\tString val = option.trim();\n\t\t\t\t\tString txt = option.trim();\n\t\t\t\t\tif (i1>0){\n\t\t\t\t\t\ttxt = option.substring(0,i1).trim();\n\t\t\t\t\t\tval = option.substring(i1+1).trim();\n\t\t\t\t\t}\n\t\t\t\t\tres += \"<input type=\\\"radio\\\" name=\\\"\" + itemName + \"\\\" \"+resto+\" value=\\\"\" + val + \"\\\"\";\n\t\t\t\t\t//comprobar debo marcar la opcion teniendo en cuenta los multivaluados (internalSeparator)\n\t\t\t\t\tif (valores.contains(val)) res+=\" checked=\\\"true\\\"\";\n\t\t\t\t\tres += \">\"+txt;\n\t\t\t\t\t//ajuste de columna segun el atributo numCols de field\n\t\t\t\t\tcol++;\n\t\t\t\t\tif (col>=numCols) {\n\t\t\t\t\t\tres += \"<br>\";\n\t\t\t\t\t\tcol = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Field.UI_COMBOBOX:\n\t\t\tcase Field.UI_DIALOGLIST:\n\t\t\tcase Field.UI_LISTBOX:\n\t\t\t\tres = \"<select id=\\\"\"+itemName+\"\\\" name=\\\"\" + itemName + \"\\\" \"+resto+\">\\n\";\n\t\t\t\tfor(String option:options) {\n\t\t\t\t\t//ver caso especial donde | separa texto de valor\n\t\t\t\t\tint i1=option.indexOf(\"|\");\n\t\t\t\t\tString val = option.trim();\n\t\t\t\t\tString txt = option.trim();\n\t\t\t\t\tif (i1>0){\n\t\t\t\t\t\ttxt = option.substring(0,i1).trim();\n\t\t\t\t\t\tval = option.substring(i1+1).trim();\n\t\t\t\t\t}\n\t\t\t\t\tres += \"<option value=\\\"\"+val+\"\\\"\";\n\t\t\t\t\t//comprobar debo marcar la opcion teniendo en cuenta los multivaluados (internalSeparator)\n\t\t\t\t\tif (valores.contains(val)) res+=\" selected=\\\"true\\\"\";\n\t\t\t\t\tres+=\">\"+txt+\"</option>\";\n\t\t\t\t}\n\t\t\t\tres += \"</select>\";\n\t\t\t\tbreak;\n\t\t\t}\n\t\t} else res+=valor;\n\t\tpc.append(res);\n\t}", "private void editar(HttpPresentationComms comms) throws HttpPresentationException, KeywordValueException {\n/* 149 */ int idRecurso = 0;\n/* */ try {\n/* 151 */ idRecurso = Integer.parseInt(comms.request.getParameter(\"idRecurso\"));\n/* */ }\n/* 153 */ catch (Exception e) {}\n/* */ \n/* */ \n/* 156 */ PrcRecursoDAO ob = new PrcRecursoDAO();\n/* 157 */ PrcRecursoDTO reg = ob.cargarRegistro(idRecurso);\n/* 158 */ if (reg != null) {\n/* 159 */ this.pagHTML.getElementIdRecurso().setValue(\"\" + reg.getIdRecurso());\n/* 160 */ this.pagHTML.getElementDescripcionRecurso().setValue(\"\" + reg.getDescripcionRecurso());\n/* 161 */ this.pagHTML.getElementUsuarioInsercion().setValue(\"\" + reg.getUsuarioInsercion());\n/* 162 */ this.pagHTML.getElementFechaInsercion().setValue(\"\" + reg.getFechaInsercion());\n/* 163 */ this.pagHTML.getElementUsuarioModificacion().setValue(\"\" + reg.getUsuarioModificacion());\n/* 164 */ this.pagHTML.getElementFechaModificacion().setValue(\"\" + reg.getFechaModificacion());\n/* 165 */ HTMLSelectElement combo = this.pagHTML.getElementIdTipoRecurso();\n/* 166 */ comboMultivalores(combo, \"tipo_recurso\", \"\" + reg.getIdTipoRecurso(), true);\n/* */ \n/* 168 */ combo = this.pagHTML.getElementIdProcedimiento();\n/* 169 */ llenarCombo(combo, \"prc_procedimientos\", \"id_procedimiento\", \"objetivo\", \"1=1\", \"\" + reg.getIdProcedimiento(), true);\n/* */ \n/* 171 */ combo = this.pagHTML.getElementEstado();\n/* 172 */ comboMultivalores(combo, \"estado_activo_inactivo\", \"\" + reg.getEstado(), true);\n/* */ \n/* */ \n/* 175 */ this.pagHTML.getElementIdRecurso().setReadOnly(true);\n/* */ } \n/* 177 */ this.pagHTML.getElement_operacion().setValue(\"M\");\n/* 178 */ activarVista(\"nuevo\");\n/* */ }", "private void btnActualizarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnActualizarActionPerformed\n boolean respuesta = false;\n int id =Integer.parseInt(this.txtCodigoPlatDia.getText());\n String valor = this.txtValueModified.getText();\n String atributo = \"\";\n switch (this.cbxTypeModified.getSelectedIndex()) {\n case 1: atributo = \"PDIA_NOMBRE\"; break;\n case 2: atributo = \"PDIA_DESCRIPCION\"; break;\n case 3: atributo = \"PDIA_ENTRADA\"; break;\n case 4: atributo = \"PDIA_PRINCIPIO\"; break;\n case 5: atributo = \"PDIA_BEBIDA\"; break;\n case 6: atributo = \"PDIA_CARNE\"; break;\n case 7: atributo = \"PDIA_PRECIO\"; break;\n default: break;\n }\n if(atributo.equals(\"PDIA_PRECIO\")){\n if(!Utilities.isNumeric(valor)){\n JOptionPane.showMessageDialog(null, \"el precio debe contener valores numericos, VERIFIQUE\");\n return;\n }\n }\n try {\n respuesta = this.servicioRestaurante.updatePlatoDia(id, atributo, valor);\n if(!respuesta){\n JOptionPane.showMessageDialog(null, \"verifique los datos, ITEM NO ENCONTRADO\");\n }else{\n this.listar();\n }\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(null, \"ha fallado el servicio, intentelo de nuevo\");\n }\n this.txtCodigoPlatDia.setText(null);\n this.cbxTypeModified.setSelectedIndex(0);\n this.txtValueModified.setText(null);\n this.btnActualizar.setEnabled(false);\n }", "public static JTextField gettxtIDFormaPago() {\n return txtIDFormaPago;\n }", "public void setHiddenField(Expression hiddenField) {\n\t\tthis.hiddenField = hiddenField;\n\t}", "public void editarMateria() {\n materia.setIdDepartamento(departamento);\n ejbFacade.edit(materia);\n RequestContext requestContext = RequestContext.getCurrentInstance();\n requestContext.execute(\"PF('MateriaEditDialog').hide()\");\n ejbFacade.limpiarCache();\n items = ejbFacade.findAll();\n departamento = new Departamento();\n materia = new Materia();\n// FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_INFO, \"Información\", \"La materia se editó con éxito\"));\n// requestContext.execute(\"PF('mensajeRegistroExitoso').show()\");\n\n FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Información\", \"La materia se editó con éxito\");\n FacesContext.getCurrentInstance().addMessage(null, msg);\n\n requestContext.update(\"msg\");//Actualiza la etiqueta growl para que el mensaje pueda ser mostrado\n\n requestContext.update(\"MateriaListForm\");\n requestContext.update(\"MateriaCreateForm\");\n\n }", "public void modificar() {\n try {\n if(!fecha.equals(null)){\n Dr_siseg_usuarioBean usuario = new Dr_siseg_usuarioBean();\n FacesContext facesContext = FacesContext.getCurrentInstance();\n usuario = (Dr_siseg_usuarioBean) facesContext.getExternalContext().getSessionMap().get(\"usuario\");\n \n calendar.setTime((Date) this.fecha);\n this.Selected.setApel_fecha_sesion(calendar.getTime());\n\n ApelacionesDao apelacionesDao = new ApelacionesDao();\n apelacionesDao.IME_APELACIONES(2, Selected); \n\n BitacoraSolicitudDao bitacoraSolicitudDao = new BitacoraSolicitudDao();//INSERTA EL MOVIMIENTO EN LA BITACORA\n BitacoraSolicitudBean bitacoraSolicitudBean = new BitacoraSolicitudBean();\n bitacoraSolicitudBean.setBit_sol_id(this.Selected.getApel_sol_numero());\n bitacoraSolicitudBean.setUsuarioBean(usuario);\n bitacoraSolicitudBean.setBit_tipo_movimiento(\"1\");\n bitacoraSolicitudBean.setBit_detalle(\"Fue modificada la apelacion\");\n bitacoraSolicitudDao.dmlDr_regt_bitacora_solicitud(bitacoraSolicitudBean);\n\n this.Listar();\n this.Selected = new ApelacionesBean();\n addMessage(\"Guadado Exitosamente\", 1);\n }else\n {\n addMessage(\"Es requerida la fecha\",1 );\n }\n } catch (ExceptionConnection ex) {\n Logger.getLogger(ApelacionController.class.getName()).log(Level.SEVERE, null, ex);\n addMessage(\"Se produjo un error al insertar el registro, contacte al administrador del sistema\", 1);\n }\n }", "@Override\n public void setField(int id, int value) {\n \n }", "public void actualizar() {\n\n try {\n\n servtpDocumento.actualizarTipoDocumento(tipoDocumento);\n req = RequestContext.getCurrentInstance();\n req.execute(\"PF('dialogoTpDocuActualizar').hide();\");//Cierra el dialogo para actualizar\n req = null;\n tipoDocumento = new TipoDocumento();\n MensajesFaces.informacion(\"Actualizado\", \"Exitoso\");\n\n } catch (Exception e) {\n MensajesFaces.error(\"Error\", \"detalle\" + e);\n\n }\n\n }", "public void setIdfilial(int idfilial){\r\n this.idfilial = idfilial;\r\n }", "@Override\n protected void carregaObjeto() throws ViolacaoRegraNegocioException {\n entidade.setNome( txtNome.getText() );\n entidade.setDescricao(txtDescricao.getText());\n entidade.setTipo( txtTipo.getText() );\n entidade.setValorCusto(new BigDecimal((String) txtCusto.getValue()));\n entidade.setValorVenda(new BigDecimal((String) txtVenda.getValue()));\n \n \n }", "public void set(Object requestor, String field, JDialog comp);", "@Override\n\tpublic void setField(int id, int value) {\n\t\t\n\t}", "@Override\n\tpublic void setField(int id, int value) {\n\t\t\n\t}", "public void limpiarDatos() {\r\n FormularioUtil.limpiarComponentes(groupboxEditar, idsExcluyentes);\r\n tbxNro_identificacion.setValue(\"\");\r\n tbxNro_identificacion.setDisabled(false);\r\n deshabilitarCampos(true);\r\n\r\n }", "private void btnModificaActionPerformed(java.awt.event.ActionEvent evt) { \n try {\n // Exceptie pentru neselectarea unui element\n if (ContactList.isSelectionEmpty()) {\n throw new ItemNotSelectedException();\n }\n // Prelucrarea datelor contactului selectat pentru a le prelua in campurile din fereastra de dialog\n Contact actual = (Contact) model.getElementAt(ContactList.getSelectedIndex());\n String sc[] = actual.toString().split(\",\");\n diAdauga.setVisible(true);\n String name[] = sc[0].split(\" \");\n tfNume.setText(name[0]);\n tfPrenume.setText(name[1]);\n tfNumarTelefon.setText(sc[1].trim());\n if (tfNumarTelefon.getText().substring(0, 2).equals(\"02\") || tfNumarTelefon.getText().substring(0, 2).equals(\"03\")) {\n cbFix.setSelected(true);\n } else {\n cbMobil.setSelected(true);\n }\n String d = sc[2].trim();\n String dataNasterii[] = d.split(\"-\");\n String a = dataNasterii[0];\n String l = dataNasterii[1];\n String z = dataNasterii[2];\n String dt = z + \".\" + l + \".\" + a;\n tfDataNasterii.setText(dt);\n btnConfirma.setVisible(false);\n } catch (ArrayIndexOutOfBoundsException e) {\n JOptionPane.showMessageDialog(this, \"Lista este goala!\");\n } catch (ItemNotSelectedException e) {\n JOptionPane.showMessageDialog(this, \"Nu exista un index selectat\");\n }\n\n\n }", "public void setM_Splitting_ID (int M_Splitting_ID)\n{\nset_ValueNoCheck (\"M_Splitting_ID\", new Integer(M_Splitting_ID));\n}", "public void cancelarRegistro() {\n this.departamento = new Departamento();\n this.materia = new Materia();\n RequestContext requestContext = RequestContext.getCurrentInstance();\n requestContext.execute(\"PF('MateriaCreateDlg').hide()\");\n }", "public EditarDados(Produto dados) {\n \tthis.dados = dados;\n initComponents();\n setLocationRelativeTo(null);\n }", "public void setEmpresa(Empresa empresa)\r\n/* 89: */ {\r\n/* 90:141 */ this.empresa = empresa;\r\n/* 91: */ }", "public void setValor(String valor)\n/* 22: */ {\n/* 23:34 */ this.valor = valor;\n/* 24: */ }", "private void modi() { \n try {\n cvo.getId_cliente();\n cvo.setNombre_cliente(vista.txtNombre.getText());\n cvo.setApellido_cliente(vista.txtApellido.getText());\n cvo.setDireccion_cliente(vista.txtDireccion.getText());\n cvo.setCorreo_cliente(vista.txtCorreo.getText());\n cvo.setClave_cliente(vista.txtClave.getText());\n cdao.actualizar(cvo);\n vista.txtNombre.setText(\"\");\n vista.txtApellido.setText(\"\");\n vista.txtDireccion.setText(\"\");\n vista.txtCorreo.setText(\"\");\n vista.txtClave.setText(\"\");\n JOptionPane.showMessageDialog(null, \"Registro Modificado\");\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Debe ingresar Datos para Modificar registro!\");\n }\n }", "public void setM_Locator_ID (int M_Locator_ID)\n{\nset_Value (\"M_Locator_ID\", new Integer(M_Locator_ID));\n}", "public void setDataSourceFormulario(BeanItem<ConciliacionVO> item)\r\n\t{\r\n\t\t\r\n\t\tthis.fieldGroup.setItemDataSource(item);\r\n\t\t\r\n\t\tConciliacionVO ing = new ConciliacionVO();\r\n\t\ting = fieldGroup.getItemDataSource().getBean();\r\n\t\tString fecha = new SimpleDateFormat(\"dd/MM/yyyy\").format(ing.getFechaMod());\r\n\t\t\r\n\t\tthis.importeTotalCalculado = ing.getImpTotMo();\r\n\t\t\r\n\t\tif(fieldGroup != null)\r\n\t\t\tfieldGroup.buildAndBindMemberFields(this);\r\n\t\t\r\n\t\tthis.inicializarComboBancos(ing.getCodBanco());\r\n\t\tthis.inicializarComboCuentas(ing.getCodCuenta(), \"CuentaBanco\");\r\n\t\tthis.inicializarComboCajaBanco(ing.getTipo());\r\n\t\tthis.inicializarComboMoneda(ing.getCodMoneda());\r\n\t\t\r\n\t\tif(this.operacion.equals(Variables.OPERACION_LECTURA))\r\n\t\t\tthis.iniFormLectura();\r\n\t}", "public void setFormacao(String formacao) {\n\t\tthis.formacao = formacao;\n\t}", "public void editarImovel_Valor(String titulo, double novoValor) {\n\t\tString sql = \"UPDATE imovel SET valor='\"+novoValor+\"' WHERE titulo ='\" +titulo+\"'\";\n\t\tboolean imovelEncontrado = buscaImovel_BD(titulo);\n\t\tif(imovelEncontrado==false) {\n\t\t\ttry{\n\t\t\t\tPreparedStatement stmt = conexaoBD.prepareStatement(sql); \n\t\t\t\tstmt.execute();\n\t\t\t\tstmt.close();\n\t\t\t}catch(Exception e) {\n\t\t\t\tSystem.out.println(e.getMessage()); \n\t\t\t}\n\t\t}else{\n\t\t\tJOptionPane.showMessageDialog(null, \"Verifique o título do imóvel.\");\n\t\t}\n\t}", "@Override\n\tpublic void setObject(TemplateDeDescripcion objeto, int profundidadActual,\n\t\t\tint profundidadDeseada) {\n\n\t}", "public void setIdacesso(int pIdacesso){\n this.idacesso = pIdacesso;\n }", "private void azzeraInsertForm() {\n\t\tviewInserimento.getCmbbxTipologia().setSelectedIndex(-1);\n\t\tviewInserimento.getTxtFieldDataI().setText(\"\");\n\t\tviewInserimento.getTxtFieldValore().setText(\"\");\n\t\tviewInserimento.getTxtFieldDataI().setBackground(Color.white);\n\t\tviewInserimento.getTxtFieldValore().setBackground(Color.white);\n\t}", "AbiFormsForm selectByPrimaryKey(Integer idField);", "public void setVoid_Inventory_ID (int Void_Inventory_ID)\n{\nif (Void_Inventory_ID <= 0) set_Value (\"Void_Inventory_ID\", null);\n else \nset_Value (\"Void_Inventory_ID\", new Integer(Void_Inventory_ID));\n}", "public void setId(int idNuevo)\n { \n this.id = idNuevo;\n }", "public MostraVenta(String idtrasp, Object[][] clienteM1, Object[][] vendedorM1, String idmarc, String responsable,ListaTraspaso panel)\n{\n this.padre = panel;\n this.clienteM = clienteM1;\n this.vendedorM = vendedorM1;\n this.idtraspaso= idtrasp;\n this.idmarca=idmarc;\n//this.tipoenvioM = new String[]{\"INGRESO\", \"TRASPASO\"};\n String tituloTabla =\"Detalle Venta\";\n // padre=panel;\n String nombreBoton1 = \"Registrar\";\n String nombreBoton2 = \"Cancelar\";\n // String nombreBoton3 = \"Eliminar Empresa\";\n\n setId(\"win-NuevaEmpresaForm1\");\n setTitle(tituloTabla);\n setWidth(400);\n setMinWidth(ANCHO);\n setHeight(250);\n setLayout(new FitLayout());\n setPaddings(WINDOW_PADDING);\n setButtonAlign(Position.CENTER);\n setCloseAction(Window.CLOSE);\n setPlain(true);\n\n but_aceptar = new Button(nombreBoton1);\n but_cancelar = new Button(nombreBoton2);\n // addButton(but_aceptarv);\n addButton(but_aceptar);\n addButton(but_cancelar);\n\n formPanelCliente = new FormPanel();\n formPanelCliente.setBaseCls(\"x-plain\");\n //formPanelCliente.setLabelWidth(130);\n formPanelCliente.setUrl(\"save-form.php\");\n formPanelCliente.setWidth(ANCHO);\n formPanelCliente.setHeight(ALTO);\n formPanelCliente.setLabelAlign(Position.LEFT);\n\n formPanelCliente.setAutoWidth(true);\n\n\ndat_fecha1 = new DateField(\"Fecha\", \"d-m-Y\");\n fechahoy = new Date();\n dat_fecha1.setValue(fechahoy);\n dat_fecha1.setReadOnly(true);\n\ncom_vendedor = new ComboBox(\"Vendedor al que enviamos\", \"idempleado\");\ncom_cliente = new ComboBox(\"Clientes\", \"idcliente\");\n//com_tipo = new ComboBox(\"Tipo Envio\", \"idtipo\");\n initValues1();\n\n\n\n formPanelCliente.add(dat_fecha1);\n// formPanelCliente.add(com_tipo);\n// formPanelCliente.add(tex_nombreC);\n// formPanelCliente.add(tex_codigoBarra);\n // formPanelCliente.add(tex_codigoC);\nformPanelCliente.add(com_vendedor);\n formPanelCliente.add(com_cliente);\n add(formPanelCliente);\nanadirListenersTexfield();\n addListeners();\n\n }", "public void setIdDetalleComponenteCosto(int idDetalleComponenteCosto)\r\n/* 63: */ {\r\n/* 64: 87 */ this.idDetalleComponenteCosto = idDetalleComponenteCosto;\r\n/* 65: */ }", "public void setIdPreventivo(int idPreventivo) {\n this.idPreventivo = idPreventivo;\n }", "public void setIdade(int idade) {\r\n\t\t// QUALIFICADOR = THIS\r\n\t\tthis.idade = idade;\r\n\t}", "public FormFuncionario(FormMenu telaPai) {\n initComponents();\n this.telaPai = telaPai;\n\n txtNome.setText(\"Nome\");\n lblNome.setVisible(false);\n txtSobrenome.setText(\"Sobrenome\");\n lblSobrenome.setVisible(false);\n campoMensagem.setVisible(false);\n lblMensagem.setVisible(false);\n\n }", "public void setIdCargaEmpleado(int idCargaEmpleado)\r\n/* 108: */ {\r\n/* 109:195 */ this.idCargaEmpleado = idCargaEmpleado;\r\n/* 110: */ }", "public interface GuardarDatosForm\r\n{\r\n /**\r\n * Sets the <code>valor</code> field.\r\n *\r\n * \r\n */\r\n public void setValor(java.lang.String valor);\r\n\r\n /**\r\n * Gets the <code>valor</code> field.\r\n *\r\n * \r\n */\r\n public java.lang.String getValor();\r\n \r\n /**\r\n * Resets the <code>valor</code> field.\r\n */\r\n public void resetValor();\r\n\r\n}", "public void setIdproducto(int idproducto) {\r\n\t\tthis.idproducto = idproducto;\r\n\t}", "public void set(Object requestor, String field, JFrame comp);", "public void saveValue() {\n String[] idCol = assignedDataObject.getIdentifyTemplate().getIdentifyColumnNames();\n if (!(idCol.length == 1 && name.equals(idCol[0]))) { // method \"copy\" must not change unique key name! For any other methods it is not needed to save from frame.\n if (this.getText().equals(\"\")) {\n assignedDataObject.setInt(name, 0);\n } else {\n assignedDataObject.setInt(name, this.getIntValue());\n }\n }\n }", "public void setC_UOM_ID (int C_UOM_ID)\n{\nset_Value (\"C_UOM_ID\", new Integer(C_UOM_ID));\n}", "public void editar(HttpServletRequest request, HttpServletResponse response) throws Exception{\n int id=Integer.parseInt(request.getParameter(\"id\"));\n GestionMov_diversos modelo=new GestionMov_diversos(); \n MovDiversos movimiento=modelo.obtenerPorId(id);\n \n //int id_bendiv=movimiento.getId_bendiv();\n //Obteniendo el catalogo de beneficiarios diversos\n GestionBendiv modelo_benDiv= new GestionBendiv();\n ArrayList beneficiarios=modelo_benDiv.obtenerTodos();\n \n //Obteniendo el catalogo de movimientos diversos\n GestionClaveDiversos modelo_claveDiv= new GestionClaveDiversos();\n ArrayList clavediv=modelo_claveDiv.obtenerTodos();\n \n //Obteniendo el catalogo de programas\n GestionProgramas modelo_programas= new GestionProgramas();\n ArrayList programas=modelo_programas.obtenerTodos();\n \n //Obteniendo el catalogo de emisores\n GestionEmisor modelo_emisores= new GestionEmisor();\n ArrayList emisores=modelo_emisores.obtenerTodos();\n \n request.setAttribute(\"movimiento\", movimiento);\n request.setAttribute(\"beneficiarios\", beneficiarios);\n request.setAttribute(\"clavediv\", clavediv);\n request.setAttribute(\"programas\", programas);\n request.setAttribute(\"emisores\", emisores);\n \n RequestDispatcher rd=request.getRequestDispatcher(\"frm_modificamov_diversos.jsp\");\n rd.forward(request,response);\n }", "public void setM_Product_ID (int M_Product_ID)\n{\nset_Value (\"M_Product_ID\", new Integer(M_Product_ID));\n}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n \r\n Vehiculo modificado=new Vehiculo(Integer.valueOf(request.getParameter(\"id\")),\r\n request.getParameter(\"marca\"),\r\n request.getParameter(\"modelo\"),\r\n request.getParameter(\"matricula\"),\r\n Integer.valueOf(request.getParameter(\"plazas\")));\r\n \r\n \r\n try {\r\n service.updateVehiculo(modificado);\r\n List<Vehiculo> vehiculos=service.loadVehiculos();\r\n HttpSession mySession=request.getSession(true);\r\n mySession.setAttribute(\"vehiculos\", vehiculos);\r\n \r\n RequestDispatcher rd=request.getRequestDispatcher(\"/WEB-INF/list.jsp\");\r\n rd.forward(request, response);\r\n \r\n } catch (SQLException ex) {\r\n Logger.getLogger(ServletUpdate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n \r\n \r\n \r\n \r\n }", "public void asignarAutomovilPersona(){\r\n persona.setAutomovil(automovil);\r\n }", "public void setM_Inventory_ID (int M_Inventory_ID)\n{\nif (M_Inventory_ID <= 0) set_Value (\"M_Inventory_ID\", null);\n else \nset_Value (\"M_Inventory_ID\", new Integer(M_Inventory_ID));\n}", "private void limpiar2() {\n txtValorRel.setText(null);\n txtImptoRel.setText(null);\n txtNotariaRel.setText(null);\n txtReperRel.setText(null);\n jcFechaConstitucion.setCalendar(null);\n txtRutRelac.setText(null);\n// txtFolioRelac.setText(null);\n txtApellMatRelac.setText(null);\n txtApellPatRel.setText(null);\n txtNombreRelac.setText(null);\n txtDescripcionRelac.setText(null);\n txtOtroComentarioRelac.setText(null);\n btnGuardarRelac.setVisible(false);\n }", "public void setM_Warehouse_ID (int M_Warehouse_ID)\n{\nset_Value (\"M_Warehouse_ID\", new Integer(M_Warehouse_ID));\n}", "public JFrmCadDeclaAcompanhante1() {\n initComponents();\n int diaSelecionado;\n }", "public void setIdCliente(Integer id_cliente){\n this.id_cliente=id_cliente;\n }", "private void validarForm(AtualizarTramiteEspecificacaoActionForm form){\n\n\t\tString idLocalidade = form.getIdLocalidade();\n\t\tString codigoSetorComercial = form.getCodigoSetorComercial();\n\t\tString idMunicipio = form.getIdMunicipio();\n\t\tString codigoBairro = form.getCodigoBairro();\n\t\tString idSistemaAbastecimento = form.getIdSistemaAbastecimento();\n\t\tString idDistritoOperacional = form.getIdDistritoOperacional();\n\t\tString idZonaAbastecimento = form.getIdZonaAbastecimento();\n\t\tString idSetorAbastecimento = form.getIdSetorAbastecimento();\n\t\tString idSistemaEsgoto = form.getIdSistemaEsgoto();\n\t\tString idSubsistemaEsgoto = form.getIdSubsistemaEsgoto();\n\t\tString idBacia = form.getIdBacia();\n\t\tString idSubBacia = form.getIdSubBacia();\n\t\tString idUnidadeOrganizacionalOrigem = form.getIdUnidadeOrganizacionalOrigem();\n\t\tString idUnidadeOrganizacionalDestino = form.getIdUnidadeOrganizacionalDestino();\n\t\tString indicadorUso = form.getIndicadorUso();\n\n\t\tString numeroNaoInformadoStr = Integer.toString(ConstantesSistema.NUMERO_NAO_INFORMADO);\n\n\t\tFachada fachada = Fachada.getInstancia();\n\n\t\t// Localidade\n\t\tif(!Util.isVazioOuBranco(idLocalidade)){\n\t\t\tFiltroLocalidade filtro = new FiltroLocalidade();\n\t\t\tfiltro.adicionarParametro(new ParametroSimples(FiltroLocalidade.INDICADORUSO, ConstantesSistema.INDICADOR_USO_ATIVO));\n\t\t\tfiltro.adicionarParametro(new ParametroSimples(FiltroLocalidade.ID, idLocalidade));\n\n\t\t\tCollection<Localidade> colecao = fachada.pesquisar(filtro, Localidade.class.getName());\n\t\t\tif(colecao == null || colecao.isEmpty()){\n\t\t\t\tthrow new ActionServletException(\"atencao.pesquisa_inexistente\", null, \"Localidade\");\n\t\t\t}\n\t\t}\n\n\t\t// Setor Comercial\n\t\tif(Util.isVazioOuBranco(idLocalidade) && !Util.isVazioOuBranco(codigoSetorComercial)){\n\t\t\tthrow new ActionServletException(\"atencao.required\", null, \"Localidade\");\n\t\t}else if(!Util.isVazioOuBranco(idLocalidade) && !Util.isVazioOuBranco(codigoSetorComercial)){\n\t\t\tFiltroSetorComercial filtro = new FiltroSetorComercial();\n\t\t\tfiltro.adicionarParametro(new ParametroSimples(FiltroSetorComercial.INDICADORUSO, ConstantesSistema.INDICADOR_USO_ATIVO));\n\t\t\tfiltro.adicionarParametro(new ParametroSimples(FiltroSetorComercial.ID_LOCALIDADE, idLocalidade));\n\t\t\tfiltro.adicionarParametro(new ParametroSimples(FiltroSetorComercial.CODIGO_SETOR_COMERCIAL, codigoSetorComercial));\n\n\t\t\tCollection<SetorComercial> colecao = fachada.pesquisar(filtro, SetorComercial.class.getName());\n\t\t\tif(colecao == null || colecao.isEmpty()){\n\t\t\t\tthrow new ActionServletException(\"atencao.pesquisa_inexistente\", null, \"Setor Comercial\");\n\t\t\t}\n\t\t}\n\n\t\t// Bairro\n\t\tif(Util.isVazioOuBranco(idMunicipio) && !Util.isVazioOuBranco(codigoBairro)){\n\t\t\tthrow new ActionServletException(\"atencao.required\", null, \"Município\");\n\t\t}else if(!Util.isVazioOuBranco(idMunicipio) && !Util.isVazioOuBranco(codigoBairro)){\n\t\t\tFiltroBairro filtro = new FiltroBairro();\n\t\t\tfiltro.adicionarParametro(new ParametroSimples(FiltroBairro.INDICADOR_USO, ConstantesSistema.INDICADOR_USO_ATIVO));\n\t\t\tfiltro.adicionarParametro(new ParametroSimples(FiltroBairro.MUNICIPIO_ID, idMunicipio));\n\t\t\tfiltro.adicionarParametro(new ParametroSimples(FiltroBairro.CODIGO, codigoBairro));\n\n\t\t\tCollection<Bairro> colecao = fachada.pesquisar(filtro, Bairro.class.getName());\n\t\t\tif(colecao == null || colecao.isEmpty()){\n\t\t\t\tthrow new ActionServletException(\"atencao.pesquisa_inexistente\", null, \"Bairro\");\n\t\t\t}\n\t\t}\n\n\t\t// Sistema de Abastecimento\n\t\tif(!Util.isVazioOuBranco(idSistemaAbastecimento) && !idSistemaAbastecimento.equals(numeroNaoInformadoStr)){\n\t\t\tFiltroSistemaAbastecimento filtro = new FiltroSistemaAbastecimento();\n\t\t\tfiltro\n\t\t\t\t\t\t\t.adicionarParametro(new ParametroSimples(FiltroSistemaAbastecimento.INDICADOR_USO,\n\t\t\t\t\t\t\t\t\t\t\tConstantesSistema.INDICADOR_USO_ATIVO));\n\t\t\tfiltro.adicionarParametro(new ParametroSimples(FiltroSistemaAbastecimento.ID, idSistemaAbastecimento));\n\n\t\t\tCollection<SistemaAbastecimento> colecao = fachada.pesquisar(filtro, SistemaAbastecimento.class.getName());\n\t\t\tif(colecao == null || colecao.isEmpty()){\n\t\t\t\tthrow new ActionServletException(\"atencao.pesquisa_inexistente\", null, \"Sistema de Abastecimento\");\n\t\t\t}\n\t\t}\n\n\t\t// Unidade Operacional\n\t\tif(!Util.isVazioOuBranco(idDistritoOperacional) && !idDistritoOperacional.equals(numeroNaoInformadoStr)){\n\t\t\tFiltroDistritoOperacional filtro = new FiltroDistritoOperacional();\n\t\t\tfiltro.adicionarParametro(new ParametroSimples(FiltroDistritoOperacional.INDICADORUSO, ConstantesSistema.INDICADOR_USO_ATIVO));\n\t\t\tfiltro.adicionarParametro(new ParametroSimples(FiltroDistritoOperacional.ID, idDistritoOperacional));\n\n\t\t\tCollection<DistritoOperacional> colecao = fachada.pesquisar(filtro, DistritoOperacional.class.getName());\n\t\t\tif(colecao == null || colecao.isEmpty()){\n\t\t\t\tthrow new ActionServletException(\"atencao.pesquisa_inexistente\", null, \"Unidade Operacional\");\n\t\t\t}\n\t\t}\n\n\t\t// Zona de Abastecimento\n\t\tif(!Util.isVazioOuBranco(idZonaAbastecimento) && !idZonaAbastecimento.equals(numeroNaoInformadoStr)){\n\t\t\tFiltroZonaAbastecimento filtro = new FiltroZonaAbastecimento();\n\t\t\tfiltro.adicionarParametro(new ParametroSimples(FiltroZonaAbastecimento.INDICADOR_USO, ConstantesSistema.INDICADOR_USO_ATIVO));\n\t\t\tfiltro.adicionarParametro(new ParametroSimples(FiltroZonaAbastecimento.ID, idZonaAbastecimento));\n\n\t\t\tCollection<ZonaAbastecimento> colecao = fachada.pesquisar(filtro, ZonaAbastecimento.class.getName());\n\t\t\tif(colecao == null || colecao.isEmpty()){\n\t\t\t\tthrow new ActionServletException(\"atencao.pesquisa_inexistente\", null, \"Zona de Abastecimento\");\n\t\t\t}\n\t\t}\n\n\t\t// Setor de Abastecimento\n\t\tif(!Util.isVazioOuBranco(idSetorAbastecimento) && !idSetorAbastecimento.equals(numeroNaoInformadoStr)){\n\t\t\tFiltroSetorAbastecimento filtro = new FiltroSetorAbastecimento();\n\t\t\tfiltro.adicionarParametro(new ParametroSimples(FiltroSetorAbastecimento.INDICADOR_USO, ConstantesSistema.INDICADOR_USO_ATIVO));\n\t\t\tfiltro.adicionarParametro(new ParametroSimples(FiltroSetorAbastecimento.ID, idSetorAbastecimento));\n\n\t\t\tCollection<SetorAbastecimento> colecao = fachada.pesquisar(filtro, SetorAbastecimento.class.getName());\n\t\t\tif(colecao == null || colecao.isEmpty()){\n\t\t\t\tthrow new ActionServletException(\"atencao.pesquisa_inexistente\", null, \"Setor de Abastecimento\");\n\t\t\t}\n\t\t}\n\n\t\t// Sistema de Esgoto\n\t\tif(!Util.isVazioOuBranco(idSistemaEsgoto) && !idSistemaEsgoto.equals(numeroNaoInformadoStr)){\n\t\t\tFiltroSistemaEsgoto filtro = new FiltroSistemaEsgoto();\n\t\t\tfiltro.adicionarParametro(new ParametroSimples(FiltroSistemaEsgoto.INDICADOR_USO, ConstantesSistema.INDICADOR_USO_ATIVO));\n\t\t\tfiltro.adicionarParametro(new ParametroSimples(FiltroSistemaEsgoto.ID, idSistemaEsgoto));\n\n\t\t\tCollection<SistemaEsgoto> colecao = fachada.pesquisar(filtro, SistemaEsgoto.class.getName());\n\t\t\tif(colecao == null || colecao.isEmpty()){\n\t\t\t\tthrow new ActionServletException(\"atencao.pesquisa_inexistente\", null, \"Sistema de Esgoto\");\n\t\t\t}\n\t\t}\n\n\t\t// Subsistema de Esgoto\n\t\tif(!Util.isVazioOuBranco(idSubsistemaEsgoto) && !idSubsistemaEsgoto.equals(numeroNaoInformadoStr)){\n\t\t\tFiltroSubsistemaEsgoto filtro = new FiltroSubsistemaEsgoto();\n\t\t\tfiltro.adicionarParametro(new ParametroSimples(FiltroSubsistemaEsgoto.INDICADOR_USO, ConstantesSistema.INDICADOR_USO_ATIVO));\n\t\t\tfiltro.adicionarParametro(new ParametroSimples(FiltroSubsistemaEsgoto.ID, idSubsistemaEsgoto));\n\n\t\t\tCollection<SubsistemaEsgoto> colecao = fachada.pesquisar(filtro, SubsistemaEsgoto.class.getName());\n\t\t\tif(colecao == null || colecao.isEmpty()){\n\t\t\t\tthrow new ActionServletException(\"atencao.pesquisa_inexistente\", null, \"Subsistema de Esgoto\");\n\t\t\t}\n\t\t}\n\n\t\t// Bacia\n\t\tif(!Util.isVazioOuBranco(idBacia) && !idBacia.equals(numeroNaoInformadoStr)){\n\t\t\tFiltroBacia filtro = new FiltroBacia();\n\t\t\tfiltro.adicionarParametro(new ParametroSimples(FiltroBacia.INDICADORUSO, ConstantesSistema.INDICADOR_USO_ATIVO));\n\t\t\tfiltro.adicionarParametro(new ParametroSimples(FiltroBacia.ID, idBacia));\n\n\t\t\tCollection<Bacia> colecao = fachada.pesquisar(filtro, Bacia.class.getName());\n\t\t\tif(colecao == null || colecao.isEmpty()){\n\t\t\t\tthrow new ActionServletException(\"atencao.pesquisa_inexistente\", null, \"Bacia\");\n\t\t\t}\n\t\t}\n\n\t\t// Subbacia\n\t\tif(!Util.isVazioOuBranco(idSubBacia) && !idSubBacia.equals(numeroNaoInformadoStr)){\n\t\t\tFiltroSubBacia filtro = new FiltroSubBacia();\n\t\t\tfiltro.adicionarParametro(new ParametroSimples(FiltroSubBacia.INDICADOR_USO, ConstantesSistema.INDICADOR_USO_ATIVO));\n\t\t\tfiltro.adicionarParametro(new ParametroSimples(FiltroSubBacia.ID, idSubBacia));\n\n\t\t\tCollection<SubBacia> colecao = fachada.pesquisar(filtro, SubBacia.class.getName());\n\t\t\tif(colecao == null || colecao.isEmpty()){\n\t\t\t\tthrow new ActionServletException(\"atencao.pesquisa_inexistente\", null, \"Subbacia\");\n\t\t\t}\n\t\t}\n\n\t\t// Unidade Origem\n\t\tif(!Util.isVazioOuBranco(idUnidadeOrganizacionalOrigem)){\n\t\t\tFiltroUnidadeOrganizacional filtro = new FiltroUnidadeOrganizacional();\n\t\t\tfiltro\n\t\t\t\t\t\t\t.adicionarParametro(new ParametroSimples(FiltroUnidadeOrganizacional.INDICADOR_USO,\n\t\t\t\t\t\t\t\t\t\t\tConstantesSistema.INDICADOR_USO_ATIVO));\n\t\t\tfiltro.adicionarParametro(new ParametroSimples(FiltroUnidadeOrganizacional.ID, idUnidadeOrganizacionalOrigem));\n\n\t\t\tCollection<UnidadeOrganizacional> colecao = fachada.pesquisar(filtro, UnidadeOrganizacional.class.getName());\n\t\t\tif(colecao == null || colecao.isEmpty()){\n\t\t\t\tthrow new ActionServletException(\"atencao.pesquisa_inexistente\", null, \"Unidade Origem\");\n\t\t\t}\n\t\t}\n\n\t\t// Unidade Destino\n\t\tif(Util.isVazioOuBranco(idUnidadeOrganizacionalDestino)){\n\t\t\tthrow new ActionServletException(\"atencao.required\", null, \"Unidade Destino\");\n\t\t}else{\n\t\t\tFiltroUnidadeOrganizacional filtro = new FiltroUnidadeOrganizacional();\n\t\t\tfiltro\n\t\t\t\t\t\t\t.adicionarParametro(new ParametroSimples(FiltroUnidadeOrganizacional.INDICADOR_USO,\n\t\t\t\t\t\t\t\t\t\t\tConstantesSistema.INDICADOR_USO_ATIVO));\n\t\t\tfiltro.adicionarParametro(new ParametroSimples(FiltroUnidadeOrganizacional.ID, idUnidadeOrganizacionalDestino));\n\n\t\t\tCollection<UnidadeOrganizacional> colecaoUnidadeOrganizacional = fachada.pesquisar(filtro, UnidadeOrganizacional.class\n\t\t\t\t\t\t\t.getName());\n\t\t\tif(colecaoUnidadeOrganizacional == null || colecaoUnidadeOrganizacional.isEmpty()){\n\t\t\t\tthrow new ActionServletException(\"atencao.pesquisa_inexistente\", null, \"Unidade Destino\");\n\t\t\t}\n\t\t}\n\n\t\t// Indicador de Uso\n\t\tif(Util.isVazioOuBranco(indicadorUso)){\n\t\t\tthrow new ActionServletException(\"atencao.required\", null, \"Indicador de Uso\");\n\t\t}\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n \r\n String acao = request.getParameter(\"acao\"); //busca o value do botao clicado\r\n \r\n if (acao.equals(\"Cadastrar\")) {\r\n try {\r\n doGet(request, response);\r\n \r\n \r\n \r\n String nome = request.getParameter(\"nome\");\r\n String peso = request.getParameter(\"peso\");\r\n String data = request.getParameter(\"data_producao\");\r\n String dias_validade = request.getParameter(\"validade_dias\");\r\n \r\n Produto produto = new Produto();\r\n produto.setData_producao(Date.valueOf(data));\r\n produto.setNome(nome);\r\n produto.setPeso(Float.valueOf(peso));\r\n produto.setValidade_dias(Integer.valueOf(dias_validade));\r\n \r\n ProdutoDAO produtoDAO = new ProdutoDAO();\r\n produtoDAO.Cadastra(produto);\r\n \r\n } catch (ClassNotFoundException ex) {\r\n Logger.getLogger(GerenciarFornecedor.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (SQLException ex) {\r\n Logger.getLogger(GerenciarProduto.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n RequestDispatcher requestDispatcher = request\r\n .getRequestDispatcher(\"controleProdutos.jsp\");\r\n requestDispatcher.forward(request, response);\r\n \r\n } else if(acao.equals(\"Excluir\")) {\r\n \r\n String id = request.getParameter(\"id_editar\");\r\n \r\n try {\r\n \r\n ProdutoDAO produtoDAO = new ProdutoDAO();\r\n System.out.println(id);\r\n produtoDAO.remove(Integer.valueOf(id));\r\n \r\n RequestDispatcher requestDispatcher = request\r\n\t .getRequestDispatcher(\"controleProdutos.jsp\");\r\n requestDispatcher.forward(request, response);\r\n \r\n } catch (ClassNotFoundException | SQLException ex) {\r\n Logger.getLogger(GerenciarUser.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n \r\n } else if(acao.equals(\"Editar\")) {\r\n String id = request.getParameter(\"id_editar\");\r\n try {\r\n \r\n ProdutoDAO produtoDAO = new ProdutoDAO();\r\n Produto produto = produtoDAO.getOneById(Integer.valueOf(id));\r\n \r\n if(produto != null) {\r\n request.setAttribute(\"produto\", produto);\r\n RequestDispatcher requestDispatcher = request\r\n .getRequestDispatcher(\"editarProduto.jsp\");\r\n requestDispatcher.forward(request, response);\r\n }\r\n \r\n } catch (ClassNotFoundException | SQLException ex) {\r\n Logger.getLogger(GerenciarUser.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n } else if(acao.equals(\"Alterar\")) {\r\n \r\n String nome = request.getParameter(\"nome\");\r\n String peso = request.getParameter(\"peso\");\r\n String data_producao = request.getParameter(\"data_producao\");\r\n String validade = request.getParameter(\"validade_dias\");\r\n String id = request.getParameter(\"id\");\r\n \r\n try {\r\n \r\n ProdutoDAO produtoDAO = new ProdutoDAO();\r\n Produto produto = produtoDAO.getOneById(Integer.valueOf(id));\r\n produto.setData_producao(Date.valueOf(data_producao));\r\n produto.setNome(nome);\r\n produto.setPeso(Float.valueOf(peso));\r\n produto.setValidade_dias(Integer.valueOf(validade));\r\n produto.setFornecedor(null);\r\n produtoDAO.edita(produto);\r\n \r\n RequestDispatcher requestDispatcher = request\r\n .getRequestDispatcher(\"controleProdutos.jsp\");\r\n requestDispatcher.forward(request, response);\r\n } catch (ClassNotFoundException | SQLException ex) {\r\n Logger.getLogger(GerenciarUser.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n \r\n \r\n }\r\n }", "public void set(Object requestor, String field, JMenu comp);", "public void setCodProd(IProduto codigo);", "public void limpiar(){\n vistaCarrera.txtId.setText(null);\n vistaCarrera.txtNombre.setText(null);\n vistaCarrera.txtFacultad.setText(null);\n vistaCarrera.labelMsg.setText(null);\n }", "private void setFormVisible(boolean value){\r\n vb_form.setVisible(value); //Establece el estado grafico del formulario\r\n// if(value){ //Si el estado es visible entonces \r\n// vb_table.relocate(30, 439);\r\n// vb_table.setPrefHeight(133);\r\n// }else{\r\n// vb_table.relocate(30, 64);\r\n// vb_table.setPrefHeight(508);\r\n// }\r\n }", "protected void preencheCampo(WebElement elemento, Object valor) {\n anexaDescricao(\"Preenchendo campo: \" + getReferenceNameElement(elemento) + \" com o valor: \" + valor);\n aguardaElemento(ExpectedConditions.elementToBeClickable(elemento)).sendKeys((String) valor);\n }", "public void setFECHAFORMALIZ(int value) {\n this.fechaformaliz = value;\n }", "private void mostrarEditForm(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tint id = Integer.parseInt(request.getParameter(\"id\"));\n\t\tUsuario existingUser = dao.selecionarUsuario(id);\n\t\tRequestDispatcher dispatcher = request.getRequestDispatcher(\"usuario-form.jsp\");\n\t\trequest.setAttribute(\"usuario\", existingUser);\n\t\tdispatcher.forward(request, response);\n\t}", "public void validarLocalidad(ActionEvent e) {\n CommandButton botonSelecionado = (CommandButton) e.getSource();\n\n // if (this.getPersona().getLugarNacimiento() != null) {\n //this.setsDireccion(this.getPersona().getLugarNacimiento().getDepartamento().getDescripcion() + \", \" + this.getPersona().getLugarNacimiento().getDescripcion());\n RequestContext context = RequestContext.getCurrentInstance();\n\n if (botonSelecionado.getId().equals(\"cbDomicilio\")) {\n context.execute(\"PF('dgDomicilio').hide();\");\n context.update(\":frmPri:pnDomicilio\");\n }\n\n// } else {\n// FacesMessage fm = new FacesMessage(FacesMessage.SEVERITY_INFO, \"No seleccionó localidad!!\\n \"\n// + \"si no existe, comuniquese con el administrador\", null);\n// FacesContext fc = FacesContext.getCurrentInstance();\n// fc.addMessage(null, fm);\n//\n//\n// }\n }", "public void asignarID(Object id) {\n\n propiedad temporal;\n for (int i = 0; i < this.listadoElementos.size(); i++) {\n temporal = listadoElementos.get(i);\n if (temporal instanceof propiedadId) {\n propiedadId v = (propiedadId) temporal;\n if (!id.toString().equalsIgnoreCase(\"\")) {\n v.idElemento = id.toString();\n this.listadoElementos.set(i, v);\n break;\n\n }\n }\n }\n \n propiedadId n =new propiedadId(id);\n this.listadoElementos.add(n);\n }", "public void set(Object requestor, String field, JLabel comp);", "public void editarImovel_Detalhes(String titulo, String novoDetalhes) {\n\t\tString sql = \"UPDATE imovel SET detalhes='\"+novoDetalhes+\"' WHERE titulo ='\" +titulo+\"'\";\n\t\tboolean imovelEncontrado = buscaImovel_BD(titulo);\n\t\tif(imovelEncontrado==false) {\n\t\t\ttry{\n\t\t\t\tPreparedStatement stmt = conexaoBD.prepareStatement(sql); \n\t\t\t\tstmt.execute();\n\t\t\t\tstmt.close();\n\t\t\t}catch(Exception e) {\n\t\t\t\tSystem.out.println(e.getMessage()); \n\t\t\t}\n\t\t}else {\n\t\t\tJOptionPane.showMessageDialog(null, \"Verifique o título do imóvel.\");\n\t\t}\n\t}", "private void setDataInFields() \n {\n quantityTxtFld.setText(farmer.getCropQuantity()+\"\");\n quantityTxtFld.setEnabled(false);\n }", "public void editarProveedor() {\n try {\n proveedorFacadeLocal.edit(proTemporal);\n this.proveedor = new Proveedor();\n FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_INFO, \"Proveedor editado\", \"Proveedor editado\"));\n } catch (Exception e) {\n \n }\n\n }", "public void setIdventa( Integer idventa ) {\n this.idventa = idventa ;\n }", "public void limpiarCamposFormBusqueda() {\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents(Object partido) {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jRadioButton1 = new javax.swing.JRadioButton();\n jRadioButton2 = new javax.swing.JRadioButton();\n jTextFieldID = new javax.swing.JTextField();\n jTextFieldRival = new javax.swing.JTextField();\n jTextFieldNJornada = new javax.swing.JTextField();\n jLabel6 = new javax.swing.JLabel();\n jTextFieldLugar = new javax.swing.JTextField();\n jLabel8 = new javax.swing.JLabel();\n jTextFieldHora = new javax.swing.JTextField();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n jTextFieldMinuto = new javax.swing.JTextField();\n jTextFieldAnyo = new javax.swing.JTextField();\n jLabel11 = new javax.swing.JLabel();\n jTextFieldDia = new javax.swing.JTextField();\n jLabel12 = new javax.swing.JLabel();\n jTextFieldMes = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jButton3 = new javax.swing.JButton();\n jButton4 = new javax.swing.JButton();\n jButton5 = new javax.swing.JButton();\n jButton6 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jLabel1.setFont(new java.awt.Font(\"Comic Sans MS\", 1, 12)); // NOI18N\n jLabel1.setText(\"ID:\");\n\n jLabel4.setFont(new java.awt.Font(\"Comic Sans MS\", 1, 12)); // NOI18N\n jLabel4.setText(\"Nº JORNADA:\");\n\n jLabel5.setFont(new java.awt.Font(\"Comic Sans MS\", 1, 12)); // NOI18N\n jLabel5.setText(\"LOCAL/VISITANTE:\");\n\n jLabel7.setFont(new java.awt.Font(\"Comic Sans MS\", 1, 12)); // NOI18N\n jLabel7.setText(\"RIVAL:\");\n\n jRadioButton1.setText(\"LOCAL\");\n\n jRadioButton2.setSelected(true);\n jRadioButton2.setText(\"VISITANTE\");\n\n jLabel6.setFont(new java.awt.Font(\"Comic Sans MS\", 1, 12)); // NOI18N\n jLabel6.setText(\"LUGAR:\");\n\n jLabel8.setFont(new java.awt.Font(\"Comic Sans MS\", 1, 12)); // NOI18N\n jLabel8.setText(\"HORA:\");\n\n \n\n jLabel9.setFont(new java.awt.Font(\"Comic Sans MS\", 1, 12)); // NOI18N\n jLabel9.setText(\"/\");\n\n jLabel10.setFont(new java.awt.Font(\"Comic Sans MS\", 1, 12)); // NOI18N\n jLabel10.setText(\"/\");\n\n\n\n\n jLabel11.setFont(new java.awt.Font(\"Comic Sans MS\", 1, 12)); // NOI18N\n jLabel11.setText(\"FECHA:\");\n\n \n\n jLabel12.setFont(new java.awt.Font(\"Comic Sans MS\", 1, 12)); // NOI18N\n jLabel12.setText(\":\");\n\n\n\n jLabel2.setFont(new java.awt.Font(\"Comic Sans MS\", 1, 12)); // NOI18N\n jLabel2.setText(\"H.\");\n\n jButton1.setFont(new java.awt.Font(\"Comic Sans MS\", 1, 12)); // NOI18N\n jButton1.setText(\"CREAR\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonCrearActionPerformed(evt);\n }\n });\n\n jButton2.setFont(new java.awt.Font(\"Comic Sans MS\", 1, 12)); // NOI18N\n jButton2.setText(\"VER\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonVerActionPerformed(evt);\n }\n });\n\n jButton3.setFont(new java.awt.Font(\"Comic Sans MS\", 1, 12)); // NOI18N\n jButton3.setText(\"ACTUALIZAR\");\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonActualizarActionPerformed(evt);\n }\n });\n\n jButton4.setFont(new java.awt.Font(\"Comic Sans MS\", 1, 12)); // NOI18N\n jButton4.setText(\"ELIMINAR\");\n jButton4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonEliminarActionPerformed(evt);\n }\n });\n\n jButton5.setFont(new java.awt.Font(\"Comic Sans MS\", 1, 12)); // NOI18N\n jButton5.setText(\"VER ESTADISTICAS\");\n jButton5.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonVerEstadisticasActionPerformed(evt);\n }\n });\n\n jButton6.setFont(new java.awt.Font(\"Comic Sans MS\", 1, 12)); // NOI18N\n jButton6.setText(\"SALIR\");\n jButton6.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonSalirActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextFieldID, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel7)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextFieldRival, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextFieldNJornada, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel6)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextFieldLugar, javax.swing.GroupLayout.PREFERRED_SIZE, 196, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel8)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextFieldHora, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel12, javax.swing.GroupLayout.PREFERRED_SIZE, 8, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextFieldMinuto, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel2))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel5)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jRadioButton1)\n .addComponent(jRadioButton2))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jButton3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(11, 11, 11))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel11)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextFieldDia, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 8, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(10, 10, 10)\n .addComponent(jTextFieldMes, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel10)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextFieldAnyo, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jButton6, javax.swing.GroupLayout.PREFERRED_SIZE, 139, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(jTextFieldID, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel7)\n .addComponent(jTextFieldRival, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(27, 27, 27)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(jTextFieldNJornada, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(jTextFieldLugar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel9)\n .addComponent(jLabel10)\n .addComponent(jTextFieldAnyo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel11)\n .addComponent(jTextFieldDia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextFieldMes, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel8)\n .addComponent(jTextFieldHora, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel12)\n .addComponent(jTextFieldMinuto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(jRadioButton1))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jRadioButton2))\n .addGroup(layout.createSequentialGroup()\n .addGap(1, 1, 1)\n .addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton5, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jButton6, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n \n if(partido!=null){\n \tthis.jTextFieldDia.setText(((TransferPartido) partido).getFechaYhora().getDayOfMonth()+\"\");\n \tthis.jTextFieldMes.setText(((TransferPartido) partido).getFechaYhora().getMonthOfYear()+\"\");\n \tthis.jTextFieldAnyo.setText(((TransferPartido) partido).getFechaYhora().getYearOfCentury()+\"\");\n \tthis.jTextFieldHora.setText(((TransferPartido) partido).getFechaYhora().getHourOfDay()+\"\");\n \tthis.jTextFieldMinuto.setText(((TransferPartido) partido).getFechaYhora().getMinuteOfHour()+\"\");\n \tthis.jTextFieldID.setText(((TransferPartido) partido).getId()+\"\");\n \tthis.jTextFieldLugar.setText(((TransferPartido) partido).getLugar());\n \tthis.jTextFieldNJornada.setText(((TransferPartido) partido).getNumJornada()+\"\");\n \tthis.jTextFieldRival.setText(((TransferPartido) partido).getRival());\n }\n\n pack();\n }", "public void setEjercicio(Ejercicio ejercicio)\r\n/* 150: */ {\r\n/* 151:193 */ this.ejercicio = ejercicio;\r\n/* 152: */ }", "Form setElementValue(String elementId, String value);", "public void editaItemLivro(ItemLivro itemLivro) {\n itemLivroDAOBD.atualizar(itemLivro);\n }", "public Paises obtenerPaisPorID(Integer txtPais);", "private void iniFormEditar()\r\n\t{\r\n\t\tthis.operacion = Variables.OPERACION_EDITAR;\r\n\t\t\r\n\t\t/*Verificamos que tenga permisos*/\r\n\t\tboolean permisoNuevoEditar = this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_CONCILIACION, VariablesPermisos.OPERACION_NUEVO_EDITAR);\r\n\t\t\r\n\t\tif(permisoNuevoEditar){\r\n\t\t\t\r\n\t\t\tthis.btnEditar.setVisible(false);\r\n\t\t\tthis.conciliar.setVisible(true);\r\n\t\t\tthis.btnEliminar.setVisible(false);\r\n\t\t\tthis.conciliar.setCaption(\"Guardar\");\r\n\t\t\t\r\n\t\t\tthis.nroDocum.setEnabled(false);\r\n\t\t\tthis.fecDoc.setEnabled(true);\r\n\t\t\tthis.observaciones.setEnabled(true);\r\n\t\t\t\r\n\t\t\tthis.botones.setWidth(\"187\");\r\n\t\t}\r\n\t\telse{\r\n\t\t\t\r\n\t\t\t/*Mostramos mensaje Sin permisos para operacion*/\r\n\t\t\tMensajes.mostrarMensajeError(Variables.USUSARIO_SIN_PERMISOS);\r\n\t\t}\r\n\t}", "public void setC_Subscription_Delivery_ID (int C_Subscription_Delivery_ID)\n{\nset_ValueNoCheck (\"C_Subscription_Delivery_ID\", new Integer(C_Subscription_Delivery_ID));\n}", "public ActionForward editarUbicacion(ActionMapping mapping,\n\t\t\tActionForm form, HttpServletRequest request,\n\t\t\tHttpServletResponse response) {\n\t\tlong idOferta = Utils.parseLong(request.getParameter(\"idOferta\").toString());\n\t\trequest.setAttribute(\"idOferta\", idOferta+\"\");\n\t\t\n\t\t\n\t\ttry {\n\t\t\tlong idEmpresa = Utils.parseLong(request.getSession().getAttribute(\"idEmpresa\").toString());\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tArrayList<RegistroEntidadesVO> listaEntidadesSeleccionadas = (ArrayList<RegistroEntidadesVO>) request\n\t\t\t\t\t.getSession().getAttribute(\"listaEntidadesSeleccionadas\");\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tArrayList<String> listaSectoresSeleccionados = (ArrayList<String>) request\n\t\t\t\t\t.getSession().getAttribute(\"listaSectoresSeleccionados\");\n\t\t\tRegistroUbicacionForm f = (RegistroUbicacionForm) form;\n\n\t\t\tif (listaEntidadesSeleccionadas == null\n\t\t\t\t\t&& f.getPrefiereCandidatosEntidad() != null) {\n\t\t\t\tArrayList<RegistroEntidadesVO> listaEnt = new ArrayList<RegistroEntidadesVO>();\n\t\t\t\tRegistroEntidadesVO entidad = new RegistroEntidadesVO();\n\t\t\t\tentidad.setEntidad(Utils.parseLong(f\n\t\t\t\t\t\t.getPrefiereCandidatosEntidad()));\n\t\t\t\tentidad.setMunicipio(Utils.parseLong(f\n\t\t\t\t\t\t.getPrefiereCandidatosMunicipio()));\n\t\t\t\tlistaEnt.add(entidad);\n\t\t\t\trequest.getSession().setAttribute(\n\t\t\t\t\t\t\"listaEntidadesSeleccionadas\", listaEnt);\n\t\t\t}\n\n\t\t\tif (listaEntidadesSeleccionadas != null\n\t\t\t\t\t&& f.getPrefiereCandidatosEntidad() != null) {\n\t\t\t\tRegistroEntidadesVO entidad = new RegistroEntidadesVO();\n\t\t\t\tentidad.setEntidad(Utils.parseLong(f\n\t\t\t\t\t\t.getPrefiereCandidatosEntidad()));\n\t\t\t\tentidad.setMunicipio(Utils.parseLong(f\n\t\t\t\t\t\t.getPrefiereCandidatosMunicipio()));\n\t\t\t\tlistaEntidadesSeleccionadas.add(entidad);\n\t\t\t\trequest.getSession().setAttribute(\n\t\t\t\t\t\t\"listaEntidadesSeleccionadas\",\n\t\t\t\t\t\tlistaEntidadesSeleccionadas);\n\t\t\t}\n\n\t\t\tif (listaSectoresSeleccionados == null && f.getSector() != null) {\n\t\t\t\tArrayList<String> listaSectores = new ArrayList<String>();\n\t\t\t\tString sector = f.getSector();\n\t\t\t\tlistaSectores.add(sector);\n\t\t\t\trequest.getSession().setAttribute(\"listaSectoresSeleccionados\",\n\t\t\t\t\t\tlistaSectores);\n\t\t\t}\n\n\t\t\tif (listaSectoresSeleccionados != null && f.getSector() != null) {\n\t\t\t\tString sector = f.getSector();\n\t\t\t\tlistaSectoresSeleccionados.add(sector);\n\t\t\t\trequest.getSession().setAttribute(\"listaSectoresSeleccionados\",\n\t\t\t\t\t\tlistaSectoresSeleccionados);\n\t\t\t}\n\n\t\t\tRegistroUbicacionVO registroUbicacionVO = converterUbicacion(form,\n\t\t\t\t\tidEmpresa);\n\t\t\tregistroUbicacionVO.setIdOferta(idOferta);\n\t\t\trequest.getSession().setAttribute(\"listaPrestaciones\",\n\t\t\t\t\tregistroUbicacionVO.getPrestaciones());\n\n\t\t\trequest.getSession().setAttribute(\"registroUbicacionVO\",\n\t\t\t\t\tregistroUbicacionVO);\n\n\t\t\t// idOferta = services.guardarUbicacion(registroUbicacionVO);\n\t\t\t// idOferta = services.editarUbicacion(registroUbicacionVO);\n\n\t\t\t// request.getSession().setAttribute(\"id_oferta\", \"\" + idOferta);\n\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e); // TODO Notificar error al usuario\n\t\t}\n\n\t\t// request.getSession().setAttribute(BODY_JSP,\n\t\t// mapping.findForward(FORWARD_NEXT).getPath());\n\t\treturn mapping.findForward(FORWARD_NEXT);\n\t}", "public int getXX_SalesBudgetForm_ID() \r\n {\r\n return get_ValueAsInt(\"XX_SalesBudgetForm_ID\");\r\n \r\n }", "public void setTipoDocumento(int tipoDocumento);", "public void setXX_SalesBudgetForm_ID (int XX_SalesBudgetForm_ID)\r\n {\r\n if (XX_SalesBudgetForm_ID < 1) throw new IllegalArgumentException (\"XX_SalesBudgetForm_ID is mandatory.\");\r\n set_Value (\"XX_SalesBudgetForm_ID\", Integer.valueOf(XX_SalesBudgetForm_ID));\r\n \r\n }", "public void setBloqueado(java.lang.String param){\n \n this.localBloqueado=param;\n \n\n }", "public void setIdDispositivo(Integer idDispositivo) {\n\t\tthis.idDispositivo = idDispositivo;\n\t}", "public void setIdLocacion(Integer idLocacion);", "public void setIdDetalle_Ventaf(int idDetalle_Ventaf) {\n this.idDetalle_Ventaf = idDetalle_Ventaf;\n }", "public void setIdAutorizacionEmpresaSRI(int idAutorizacionEmpresaSRI)\r\n/* 79: */ {\r\n/* 80:122 */ this.idAutorizacionEmpresaSRI = idAutorizacionEmpresaSRI;\r\n/* 81: */ }", "public void setIDFactura(es.gob.agenciatributaria.www2.static_files.common.internet.dep.aplicaciones.es.aeat.ssii.fact.ws.SuministroInformacion_xsd.IDFacturaConsulta2Type IDFactura) {\r\n this.IDFactura = IDFactura;\r\n }", "public ingresarBiblioteca() {\n initComponents();\n this.nombreUsuario.setText(usuariosID[0].getNombre());\n this.Picture.setFont(new java.awt.Font(\"Dialog\", java.awt.Font.PLAIN,10));\n usuario.insertarInicio(this.nombreUsuario.getText()/*, carpeta*/);\n usuario.obtenerNodo(0).getArchivo().insertarFinal(\"GENERAL\");//carpeta.insertarFinal(\"GENERAL\");\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\n\n if(request.getParameter(\"btn_edit\")!=null) \n {\t\n \t String company_name=request.getParameter(\"Name\"); \n\t String address_line_1=request.getParameter(\"address1\"); \n\t String address_line_2=request.getParameter(\"address2\"); \n\t String city =request.getParameter(\"city\");\n\t String email=request.getParameter(\"email\");\n\t String mobile=request.getParameter(\"mobile\");\n\t String item_name=request.getParameter(\"itemname\");\n\t \n\t double unit_Price=Double.parseDouble(request.getParameter(\"unitprice\"));\n \t \n int hidden_id=Integer.parseInt(request.getParameter(\"hidden_id\")); \n \n ORM_AddMetModel m=new ORM_AddMetModel(); \n \n m.setCompany_name(company_name);\n\t m.setAddress_line_1(address_line_1);\n\t m.setAddress_line_2(address_line_2);\t \n\t m.setCity(city);\n\t m.setEmail(email);\n\t m.setMobile(mobile);\n\t m.setItem_name(item_name);\n\t m.setUnit_Price(unit_Price);\n\t m.setId(hidden_id);\n\t \n \n ORM_EditMetDao editDao=new ORM_EditMetDao();\n \n String updateValidate=editDao.checkUpdate(m); \n \n if(updateValidate.equals(\"UPDATE SUCCESS\")) \n {\n request.setAttribute(\"UpdateSuccessMsg\",updateValidate); \n RequestDispatcher rd=request.getRequestDispatcher(\"6_ORM_MetPortal.jsp\");\n rd.forward(request, response);\n }\n else\n {\n request.setAttribute(\"UpdateErrorMsg\",updateValidate); \n RequestDispatcher rd=request.getRequestDispatcher(\"6_ORM_Material.jsp\");\n rd.include(request, response);\n }\n }\n\t}", "protected void editField(HttpServletRequest request, HttpServletResponse response, CleanerServiceItem _CleanerServiceItem) throws Exception{\n\r\n if (!isMissing(request.getParameter(\"serviceId\"))) {\r\n m_logger.debug(\"updating param serviceId from \" +_CleanerServiceItem.getServiceId() + \"->\" + request.getParameter(\"serviceId\"));\r\n _CleanerServiceItem.setServiceId(WebParamUtil.getLongValue(request.getParameter(\"serviceId\")));\r\n\r\n }\r\n if (!isMissing(request.getParameter(\"serviceItemId\"))) {\r\n m_logger.debug(\"updating param serviceItemId from \" +_CleanerServiceItem.getServiceItemId() + \"->\" + request.getParameter(\"serviceItemId\"));\r\n _CleanerServiceItem.setServiceItemId(WebParamUtil.getLongValue(request.getParameter(\"serviceItemId\")));\r\n\r\n }\r\n if (!isMissing(request.getParameter(\"itemType\"))) {\r\n m_logger.debug(\"updating param itemType from \" +_CleanerServiceItem.getItemType() + \"->\" + request.getParameter(\"itemType\"));\r\n _CleanerServiceItem.setItemType(WebParamUtil.getIntegerValue(request.getParameter(\"itemType\")));\r\n\r\n }\r\n if (!isMissing(request.getParameter(\"title\"))) {\r\n m_logger.debug(\"updating param title from \" +_CleanerServiceItem.getTitle() + \"->\" + request.getParameter(\"title\"));\r\n _CleanerServiceItem.setTitle(WebParamUtil.getStringValue(request.getParameter(\"title\")));\r\n\r\n }\r\n if (!isMissing(request.getParameter(\"imagePath\"))) {\r\n m_logger.debug(\"updating param imagePath from \" +_CleanerServiceItem.getImagePath() + \"->\" + request.getParameter(\"imagePath\"));\r\n _CleanerServiceItem.setImagePath(WebParamUtil.getStringValue(request.getParameter(\"imagePath\")));\r\n\r\n }\r\n if (!isMissing(request.getParameter(\"imagePathLocal\"))) {\r\n m_logger.debug(\"updating param imagePathLocal from \" +_CleanerServiceItem.getImagePathLocal() + \"->\" + request.getParameter(\"imagePathLocal\"));\r\n _CleanerServiceItem.setImagePathLocal(WebParamUtil.getStringValue(request.getParameter(\"imagePathLocal\")));\r\n\r\n }\r\n if (!isMissing(request.getParameter(\"basePrice\"))) {\r\n m_logger.debug(\"updating param basePrice from \" +_CleanerServiceItem.getBasePrice() + \"->\" + request.getParameter(\"basePrice\"));\r\n _CleanerServiceItem.setBasePrice(WebParamUtil.getDoubleValue(request.getParameter(\"basePrice\")));\r\n\r\n }\r\n if (!isMissing(request.getParameter(\"note\"))) {\r\n m_logger.debug(\"updating param note from \" +_CleanerServiceItem.getNote() + \"->\" + request.getParameter(\"note\"));\r\n _CleanerServiceItem.setNote(WebParamUtil.getStringValue(request.getParameter(\"note\")));\r\n\r\n }\r\n\r\n m_actionExtent.beforeUpdate(request, response, _CleanerServiceItem);\r\n m_ds.update(_CleanerServiceItem);\r\n m_actionExtent.afterUpdate(request, response, _CleanerServiceItem);\r\n }", "public void setCadastro() {\n jb_novo1.setEnabled(false);\n }", "public void localizarDados(int idOrcamento){\n OrcamentoCursoController orcamentoCursoController = new OrcamentoCursoController();\n this.orcamentocurso = orcamentoCursoController.consultar(idOrcamento);\n if (orcamentocurso!=null){\n ClienteController clienteController = new ClienteController();\n cliente = clienteController.consultar(orcamentocurso.getCliente());\n if (cliente!=null){\n parajTextField.setText(cliente.getEmail());\n }\n }\n }", "public void setar_campos()\n {\n int setar = tblCliNome.getSelectedRow();\n txtCliId.setText(tblCliNome.getModel().getValueAt(setar, 0).toString());\n txtCliNome.setText(tblCliNome.getModel().getValueAt(setar, 1).toString());\n txtCliRua.setText(tblCliNome.getModel().getValueAt(setar, 2).toString());\n txtCliNumero.setText(tblCliNome.getModel().getValueAt(setar, 3).toString());\n txtCliComplemento.setText(tblCliNome.getModel().getValueAt(setar, 4).toString());\n txtCliBairro.setText(tblCliNome.getModel().getValueAt(setar, 5).toString());\n txtCliCidade.setText(tblCliNome.getModel().getValueAt(setar, 6).toString());\n txtCliUf.setText(tblCliNome.getModel().getValueAt(setar, 7).toString());\n txtCliFixo.setText(tblCliNome.getModel().getValueAt(setar, 8).toString());\n txtCliCel.setText(tblCliNome.getModel().getValueAt(setar, 9).toString());\n txtCliMail.setText(tblCliNome.getModel().getValueAt(setar, 10).toString());\n txtCliCep.setText(tblCliNome.getModel().getValueAt(setar, 11).toString());\n \n // A LINHA ABAIXO DESABILITA O BOTÃO ADICIONAR PARA QUE O CADASTRO NÃO SEJA DUPLICADO\n btnAdicionar.setEnabled(true);\n \n }", "private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {\n if (txtBusquedaNumHist.getText().isEmpty() == false) {\n try {\n limpiar();\n CP.buscarpacienteNumHistoria(Integer.valueOf(txtBusquedaNumHist.getText()));\n int id = Integer.valueOf(txtBusquedaNumHist.getText());\n if (CP.paciente(id) == null) {\n JOptionPane.showMessageDialog(null, \"No se encontro ningun Paciente\", \"Información\", 1);\n }\n jTextField3.setText(CP.paciente(id).getIdpaciente().toString());\n jTextField4.setText(CP.paciente(id).getCedpaciente());\n jTextField5.setText(CP.paciente(id).getApeppaciente());\n jTextField6.setText(CP.paciente(id).getApempaciente());\n jTextField7.setText(CP.paciente(id).getNom1paciente());\n jTextField8.setText(CP.paciente(id).getNom2paciente());\n jButton1.setEnabled(true);\n } catch (Exception e) {\n }\n } else {\n JOptionPane.showMessageDialog(null, \"Ingres Bun. Historia\", \"Información\", 1);\n }\n\n\n }", "public void setId_joueur(int id_joueur)\r\n/* */ {\r\n/* 50 */ this.id_joueur = id_joueur;\r\n/* */ }", "public void set(Object requestor, String field, JComponent comp);", "private void actualizarMedicamentoExistente() {\n medicamentoSeleccionado.setCodigoMedicamento(codigoMedicamento);\r\n medicamentoSeleccionado.setCodigoCums(codigoCums);\r\n medicamentoSeleccionado.setCodigoCups(codigoCups);\r\n medicamentoSeleccionado.setNombreMedicamento(nombreMedicamento);\r\n medicamentoSeleccionado.setNombreGenerico(nombreGenerico);\r\n medicamentoSeleccionado.setNombreComercial(nombreComercial);\r\n medicamentoSeleccionado.setFormaMedicamento(formaMedicamento);\r\n medicamentoSeleccionado.setPos(pos);\r\n medicamentoSeleccionado.setConcentracion(concentracion);\r\n medicamentoSeleccionado.setUnidadMedida(unidadMedida);\r\n medicamentoSeleccionado.setControlMedico(controlMedico);\r\n medicamentoSeleccionado.setRegistroSanitario(registroSanitario);\r\n medicamentoSeleccionado.setModAdmin(modAdmin);\r\n medicamentoSeleccionado.setValor(valor);\r\n medicamentoFacade.edit(medicamentoSeleccionado);\r\n limpiarFormularioMedicamentos();\r\n RequestContext.getCurrentInstance().update(\"IdFormMedicamentos\");\r\n imprimirMensaje(\"Correcto\", \"El medicamento ha sido actualizado.\", FacesMessage.SEVERITY_INFO);\r\n }", "public CarroVO getFormCarro() {\n try {\n String placa = cadastroView.getTxtPlaca().getText().trim();\n String cor = (String) cadastroView.getCbCor().getSelectedItem();\n ModeloVO modelo = (ModeloVO) cadastroView.getCbModelo().getSelectedItem();\n MarcaVO marca = (MarcaVO) cadastroView.getCbMarca().getSelectedItem();\n modelo.setMarca(marca);\n return new CarroVO(placa, cor, modelo);\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }", "public void cambioEstadAvaluo() {\r\n try {\r\n if (\"\".equals(mBRadicacion.Radi.getObservacionAvaluo()) || \"\".equals(mBRadicacion.Radi.getEstadoAvaluo())) {\r\n mbTodero.setMens(\"Falta informacion por Llenar\");\r\n mbTodero.warn();\r\n } else {\r\n mBRadicacion.Radi.CambioEstRad(mBsesion.codigoMiSesion());\r\n mbTodero.setMens(\"La informacion ha sido guardada correctamente\");\r\n mbTodero.info();\r\n mbTodero.resetTable(\"FRMSeguimiento:SeguimientoTable\");\r\n RequestContext.getCurrentInstance().execute(\"PF('DlgEstAvaluo').hide()\");\r\n ListSeguimiento = Seg.ConsulSeguimAvaluos(mBsesion.codigoMiSesion());//VARIABLES DE SESION\r\n }\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".cambioEstadAvaluo()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n }", "public String editar()\r\n/* 59: */ {\r\n/* 60: 74 */ if ((getMotivoLlamadoAtencion() != null) && (getMotivoLlamadoAtencion().getIdMotivoLlamadoAtencion() != 0)) {\r\n/* 61: 75 */ setEditado(true);\r\n/* 62: */ } else {\r\n/* 63: 77 */ addInfoMessage(getLanguageController().getMensaje(\"msg_info_seleccionar\"));\r\n/* 64: */ }\r\n/* 65: 79 */ return \"\";\r\n/* 66: */ }", "public void setIdade(int idade) {\n\t\tthis.idade = idade;\n\t}", "public void setIdUsuario(int value) {\n this.idUsuario = value;\n }" ]
[ "0.5780279", "0.57271814", "0.5646472", "0.5553224", "0.5551422", "0.5480064", "0.54778516", "0.5436215", "0.5425701", "0.54044086", "0.53776366", "0.536219", "0.5358684", "0.5358684", "0.53284293", "0.532251", "0.5302528", "0.52953094", "0.5293188", "0.5273258", "0.5263081", "0.5257976", "0.5229972", "0.5224266", "0.5217592", "0.52144164", "0.52066064", "0.51990134", "0.5174696", "0.5174425", "0.5164674", "0.5157932", "0.5136842", "0.51223046", "0.51136273", "0.51108754", "0.5105796", "0.5105393", "0.5103737", "0.5093377", "0.5089856", "0.5087334", "0.5085318", "0.50835896", "0.5083249", "0.50804216", "0.5078895", "0.5077952", "0.50753844", "0.5075045", "0.5072551", "0.5070358", "0.50677466", "0.50673765", "0.5067258", "0.5061466", "0.5052395", "0.5051378", "0.5045594", "0.5034698", "0.5031693", "0.5028247", "0.5024942", "0.5024579", "0.5022872", "0.50182575", "0.5016818", "0.50149417", "0.50089526", "0.5005485", "0.50023323", "0.50015134", "0.50001466", "0.49906716", "0.49882022", "0.49875444", "0.4987048", "0.49869776", "0.4976864", "0.49754706", "0.49685073", "0.49678323", "0.49654514", "0.4961783", "0.49598885", "0.49567673", "0.49537277", "0.4953533", "0.4952317", "0.49515522", "0.49513555", "0.49508736", "0.4948927", "0.4941862", "0.49398348", "0.49380702", "0.49354842", "0.49311024", "0.49298942", "0.49231708", "0.49225956" ]
0.0
-1
private static final ThreadLocal service = new ThreadLocal(); private static final ThreadLocal session = new ThreadLocal(); private static final ThreadLocal transaction = new ThreadLocal(); private static final String _MYOWN = "sKmArKeR"; private static final long _SESSION_FACTORY_WAIT_TIME = 2000; // 10 seconds Tries to create SessionFactory and logs success or failure. Must be called on web application startup.
public static synchronized void init() { lazyinit(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private ThreadLocalTransaction() {\n }", "public WebServiceConfig()\n {\n// session1 = new sessionmanager(getApplicationContext);\n\n }", "public ThreadLocal() {}", "SessionManagerImpl() {\n }", "public void testContextManager() throws Exception {\n System.out.println(\"testContextManager\");\n \n // init the session information\n ThreadsPermissionContainer permissions = new ThreadsPermissionContainer();\n SessionManager.init(permissions);\n UserStoreManager userStoreManager = new UserStoreManager();\n UserSessionManager sessionManager = new UserSessionManager(permissions,\n userStoreManager);\n LoginManager.init(sessionManager,userStoreManager);\n // instanciate the thread manager\n CoadunationThreadGroup threadGroup = new CoadunationThreadGroup(sessionManager,\n userStoreManager);\n \n // add a user to the session for the current thread\n RoleManager.getInstance();\n \n InterceptorFactory.init(permissions,sessionManager,userStoreManager);\n \n // add a new user object and add to the permission\n Set set = new HashSet();\n set.add(\"test\");\n UserSession user = new UserSession(\"test1\", set);\n permissions.putSession(new Long(Thread.currentThread().getId()),\n new ThreadPermissionSession(\n new Long(Thread.currentThread().getId()),user));\n \n \n NamingDirector.init(threadGroup);\n \n Context context = new InitialContext();\n \n context.bind(\"java:comp/env/test\",\"fred\");\n context.bind(\"java:comp/env/test2\",\"fred2\");\n \n if (!context.lookup(\"java:comp/env/test\").equals(\"fred\")) {\n fail(\"Could not retrieve the value for test\");\n }\n if (!context.lookup(\"java:comp/env/test2\").equals(\"fred2\")) {\n fail(\"Could not retrieve the value for test2\");\n }\n System.out.println(\"Creating the sub context\");\n Context subContext = context.createSubcontext(\"java:comp/env/test3/test3\");\n System.out.println(\"Adding the binding for bob to the sub context\");\n subContext.bind(\"bob\",\"bob\");\n System.out.println(\"Looking up the binding for bob on the sub context.\");\n Object value = subContext.lookup(\"bob\");\n System.out.println(\"Object type is : \" + value.getClass().getName());\n if (!value.equals(\"bob\")) {\n fail(\"Could not retrieve the value bob\");\n }\n if (!context.lookup(\"java:comp/env/test3/test3/bob\").equals(\"bob\")) {\n fail(\"Could not retrieve the value bob\");\n }\n \n ClassLoader loader = new URLClassLoader(new URL[0]);\n ClassLoader original = Thread.currentThread().getContextClassLoader();\n Thread.currentThread().setContextClassLoader(loader);\n NamingDirector.getInstance().initContext();\n \n context.bind(\"java:comp/env/test5\",\"fred5\");\n if (!context.lookup(\"java:comp/env/test5\").equals(\"fred5\")) {\n fail(\"Could not retrieve the value fred5\");\n }\n \n Thread.currentThread().setContextClassLoader(original);\n \n try{\n context.lookup(\"java:comp/env/test5\");\n fail(\"Failed retrieve a value that should not exist\");\n } catch (NameNotFoundException ex) {\n // ignore\n }\n \n Thread.currentThread().setContextClassLoader(loader);\n \n NamingDirector.getInstance().releaseContext();\n \n try{\n context.lookup(\"java:comp/env/test5\");\n fail(\"Failed retrieve a value that should not exist\");\n } catch (NameNotFoundException ex) {\n // ignore\n }\n Thread.currentThread().setContextClassLoader(original);\n System.out.println(\"Add value 1\");\n context.bind(\"basic\",\"basic\");\n System.out.println(\"Add value 2\");\n context.bind(\"basic2/bob\",\"basic2\");\n if (context.lookup(\"basic\") != null) {\n fail(\"Could not retrieve the basic value from the [\" + \n context.lookup(\"basic\") + \"]\");\n }\n if (context.lookup(\"basic2/bob\") != null) {\n fail(\"Could not retrieve the basic value from the JNDI [\" +\n context.lookup(\"basic2/bob\") + \"]\");\n }\n \n try {\n context.bind(\"java:network/env/test\",\"fred\");\n fail(\"This should have thrown as only relative urls can be used \" +\n \"JNDI\");\n } catch (NamingException ex) {\n // ignore\n }\n \n try {\n context.unbind(\"java:network/env/test\");\n fail(\"This should have thrown as only relative urls can be used \" +\n \"JNDI\");\n } catch (NamingException ex) {\n // ignore\n }\n context.rebind(\"basic\",\"test1\");\n context.rebind(\"basic2/bob\",\"test2\");\n \n if (context.lookup(\"basic\") != null) {\n fail(\"Could not retrieve the basic value from the JNDI\");\n }\n if (context.lookup(\"basic2/bob\") != null) {\n fail(\"Could not retrieve the basic value from the JNDI\");\n }\n \n context.unbind(\"basic\");\n context.unbind(\"basic2/bob\");\n \n try{\n context.lookup(\"basic2/bob\");\n fail(\"The basic bob value could still be found\");\n } catch (NameNotFoundException ex) {\n // ignore\n }\n \n NamingDirector.getInstance().shutdown();\n }", "private static synchronized void lazyinit()\n {\n try\n {\n if (sessionFactory == null)\n {\n System.out.println(\"Going to create SessionFactory \");\n sessionFactory = new Configuration().configure().buildSessionFactory();\n// sessionFactory.openSession();\n System.out.println(\"Hibernate could create SessionFactory\");\n }\n } catch (Throwable t)\n {\n System.out.println(\"Hibernate could not create SessionFactory\");\n t.printStackTrace();\n }\n }", "private SessionFactoryUtil() {\r\n\t}", "public interface SessionFactory {\n /**\n * Retrieves a new session. If the session isn't closed, second call from the same thread would\n * result in retrieving the same session\n *\n * @return\n */\n Session getSession();\n\n /**\n * Closes the current session associated with this transaction if present\n */\n void closeSession();\n\n /**\n * Returns true if we have connected the factory to redis\n *\n * @return\n */\n boolean isConnected();\n\n /**\n * Closes the session factory which disposes of the underlying redis pool\n */\n void close();\n}", "public synchronized static SessionFactory createSessionFactory() {\r\n\r\n if (sessionFactory == null) {\r\n LOG.debug(MODULE + \"in createSessionFactory\");\r\n sessionFactory = new Configuration().configure().buildSessionFactory();\r\n// ApplicationContext appcontext = ApplicationContextProvider.getApplicationContext();\r\n// sessionFactory = (SessionFactory) appcontext.getBean(\"sessionFactory\");\r\n LOG.debug(MODULE + \"sessionFactory created\");\r\n }\r\n\r\n return sessionFactory;\r\n }", "public static Session currentSession() throws HibernateException {\n Session s = (Session) threadLocal.get();\n\n if (s == null) {\n try {\n\t\t\t\tif (getInterceptor() != null) {\n\t\t\t\t\tlog.debug(\"Using Interceptor: \" + getInterceptor().getClass());\n\t\t\t\t\ts = sessionFactory.openSession(getInterceptor());\n\t\t\t\t} else {\n\t\t\t\t\ts = sessionFactory.openSession();\n\t\t\t\t}\n }\n catch (HibernateException he) {\n System.err.println(\"%%%% Error Creating SessionFactory %%%%\");\n throw new RuntimeException(he);\n }\n }\n return s;\n }", "@Override\n public Session getSession() throws HibernateException {\n Session session = threadLocal.get();\n\n if (session == null || !session.isOpen()) {\n session = (sessionFactory != null) ? sessionFactory.openSession()\n : null;\n threadLocal.set(session);\n }\n return session;\n }", "public interface TransactionContext extends Serializable {\n\n\n class Factory {\n public static TransactionContext getInstance() {\n TransactionContext instance = TransactionContextImpl.getInstance();\n if (instance == null) {\n instance = TransactionContextImpl.newInstance();\n }\n return instance;\n }\n }\n\n void setContextData(String key, Object value);\n\n <T> T getContextData(String key, Class<T> valueType);\n\n EncodeProtocol getProtocol();\n\n String getServiceName();\n\n String getMethod();\n\n String getVersion();\n\n /** 获取option整个值(int型) */\n int getOptions();\n\n /** 判断option中二进制第index位是否为1 */\n boolean getOption(int index);\n\n int getSequence();\n\n String getCallerId();\n\n long getSessionTid();\n\n long getCallerTid();\n\n long getCalleeTid();\n\n @Deprecated\n long getUid();\n\n long getStartTime();\n\n @Deprecated\n int getConcurrentCount();\n\n String getUip();\n\n String getForwardedFor();\n\n String getProxyIP();\n\n InetAddress getCallerIP();\n\n int getCallerPort();\n\n Map<String, String> getCookie();\n\n TransactionContext setCookie(Map<String, String> cookie);\n\n TransactionContext setCookie(String key, String value);\n\n String getUserSign();\n\n TransactionContext setTimeout(long timeout);\n\n long getTimeout();\n\n String getReturnCode();\n\n void setReturnCode(String returnCode);\n\n String getReturnMessage();\n\n void setReturnMessage(String returnMessage);\n\n String getErrorGroup();\n\n void setErrorGroup(String errorGroup);\n\n String getErrorLevel();\n\n String getErrorLocation();\n\n boolean isCircuitBroken();\n\n void setCircuitBroken(boolean circuitBroken);\n\n /** 是否重试 */\n boolean isRetry();\n\n void setRetry(boolean retry);\n\n @Deprecated\n long getReceivedTime();\n\n @Deprecated\n int getCalleeTime1();\n\n @Deprecated\n int getCalleeTime2();\n\n @Deprecated\n int getSendLength();\n\n @Deprecated\n int getRecvLength();\n\n @Deprecated\n Long getMscTraceId();\n\n @Deprecated\n Long getMscSpanId();\n\n String getRemoteAddress();\n\n String getLocalAddress();\n\n String getDomain();\n}", "protected\r\n JpaDaoFactory()\r\n {\r\n ISessionStrategy mySessionStrategy = new JpaSessionStrategy();\r\n ITransactionStrategy myTransactionStrategy = \r\n new JpaTransactionStrategy(mySessionStrategy);\r\n\r\n setSessionStrategy(mySessionStrategy);\r\n setTransactionStrategy(myTransactionStrategy);\r\n }", "private SessionFactoryUtils() {\n super();\n }", "public SessionService() {\n user = new User();\n project = new Project();\n project.setId(-1);\n project.setName(\"не выбран\");\n logged = false;\n textUpdated = false;\n }", "@Override\n @Test(groups = {\"SessionContext access\"})\n public void testSessionContext00() throws Exception {\n super.testSessionContext00();\n }", "@Override\n @Test(groups = {\"SessionContext access\"})\n public void testSessionContext01() throws Exception {\n super.testSessionContext01();\n }", "static void startSession() {\n /*if(ZeTarget.isDebuggingOn()){\n Log.d(TAG,\"startSession() called\");\n }*/\n if (!isContextAndApiKeySet(\"startSession()\")) {\n return;\n }\n final long now = System.currentTimeMillis();\n\n runOnLogWorker(new Runnable() {\n @Override\n public void run() {\n logWorker.removeCallbacks(endSessionRunnable);\n long previousEndSessionId = getEndSessionId();\n long lastEndSessionTime = getEndSessionTime();\n if (previousEndSessionId != -1\n && now - lastEndSessionTime < Constants.Z_MIN_TIME_BETWEEN_SESSIONS_MILLIS) {\n DbHelper dbHelper = DbHelper.getDatabaseHelper(context);\n dbHelper.removeEvent(previousEndSessionId);\n }\n //startSession() can be called in every activity by developer, hence upload events and sync datastore\n // only if it is a new session\n //syncToServerIfNeeded(now);\n startNewSessionIfNeeded(now);\n\n openSession();\n\n // Update last event time\n setLastEventTime(now);\n //syncDataStore();\n //uploadEvents();\n\n }\n });\n }", "public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException {\n\n response.setContentType( \"text/html\");\n /* set up the intrinsic variables using the pageContext goober:\n ** session = HttpSession\n ** application = ServletContext\n ** out = JspWriter\n ** page = this\n ** config = ServletConfig\n ** all session/app beans declared in globals.jsa\n */\n PageContext pageContext = JspFactory.getDefaultFactory().getPageContext( this, request, response, null, false, JspWriter.DEFAULT_BUFFER, true);\n // Note: session is false, so no session variable is defined.\n int __jsp_tag_starteval;\n ServletContext application = pageContext.getServletContext();\n JspWriter out = pageContext.getOut();\n _AppsLocalLogin page = this;\n ServletConfig config = pageContext.getServletConfig();\n\n try {\n\n\n out.write(__oracle_jsp_text[0]);\n out.write(__oracle_jsp_text[1]);\n out.write(__oracle_jsp_text[2]);\n out.write(__oracle_jsp_text[3]);\n out.write(__oracle_jsp_text[4]);\n out.write(__oracle_jsp_text[5]);\n out.write(__oracle_jsp_text[6]);\n out.write(__oracle_jsp_text[7]);\n out.write(__oracle_jsp_text[8]);\n out.write(__oracle_jsp_text[9]);\n out.write(__oracle_jsp_text[10]);\n \n Utils.setRequestCharacterEncoding(request);\n String requestUrl = request.getParameter(\"requestUrl\");\n \n WebAppsContext wctx = null;\n boolean alreadySet = false;\n \n Connection conn = null;\n if (Utils.isAppsContextAvailable()) {\n wctx = Utils.getAppsContext();\n alreadySet = true;\n } else {\n wctx = Utils.getAppsContext();\n }\n try {\n String params;\n StringBuffer tmp = new StringBuffer();\n tmp.append(\"requestUrl=\");\n if( requestUrl != null && !requestUrl.equals(\"\"))\n tmp.append(URLEncoder.encode(requestUrl,SessionMgr.getCharSet()));\n \n Enumeration paramNames = request.getParameterNames();\n while (paramNames != null && paramNames.hasMoreElements()) {\n String name = (String) paramNames.nextElement();\n if (!(name.equals(\"requestUrl\")))\n {\n String value = request.getParameter(name);\n tmp.append(\"&\");\n tmp.append(oracle.apps.fnd.util.URLEncoder.encode(name,SessionMgr.getCharSet()));\n tmp.append(\"=\");\n tmp.append(oracle.apps.fnd.util.URLEncoder.encode(value,SessionMgr.getCharSet()));\n }\n } \n \n \n conn = Utils.getConnection();\n boolean getIcxLang = false;\n String langCode = request.getParameter(\"langCode\");\n String sessionLang = null;\n if ( langCode != null)\n {\n // This is from language selection bean\n if (SessionMgr.isInstalledLanguage(langCode))\n {\n sessionLang = langCode;\n Utils.writeToLog(\"sso/html\", \"Language: \"+langCode+\" is installed\", wctx);\n }\n else\n {\n getIcxLang = true;\n Utils.writeToLog(\"sso/html\", \"Language: \"+langCode+\" is not installed in apps\", wctx);\n }\n \n }\n else\n {\n // try getting language from browser\n Utils.writeToLog(\"sso/html\", \"trying to get browser's Language\", wctx);\n \n String browserLanguages = request.getHeader(\"Accept-Language\");\n Utils.writeToLog(\"sso/html\", \"Browser Language:\"+browserLanguages, wctx);\n \n sessionLang = LoginPage.getAppsLangFromBrowser(browserLanguages, wctx);\n getIcxLang = (sessionLang == null || sessionLang.equals(\"\"));\n }\n \n String cval = SessionMgr.getAppsCookie(request); \n String pNlsLanguage = null;\n if(cval!= null && !cval.equals(\"-1\") && !cval.equals(\"\") )\n { \n \n Utils.writeToLog(\"sso/html\", \"Session exists:: \"+cval+\" setting lang :: \"+langCode, wctx); \n LangInfo info = wctx.getLangInfo(sessionLang , null, conn);\n pNlsLanguage = info.getNLSLanguage();\n wctx.validateSession(cval); \n boolean check = wctx.setLanguageContext(pNlsLanguage, null, null, null, null, null, null); \n } else {\n SessionMgr.createGuestSession(request, response, false, sessionLang);\n }\n \n String returnUrl = SSOUtil.getLocalLoginRFUrl(tmp.toString());\n response.sendRedirect(returnUrl );\n } \n catch(Exception e)\n {\n Utils.writeToLog(\"sso/html\", \"Exception occurred\"+e.toString(), wctx); \n throw new Exception(e.toString());\n }\n finally {\n if (alreadySet == false) {\n Utils.releaseAppsContext();\n }\n }\n \n out.write(__oracle_jsp_text[11]);\n\n }\n catch (Throwable e) {\n if (!(e instanceof javax.servlet.jsp.SkipPageException)){\n try {\n if (out != null) out.clear();\n }\n catch (Exception clearException) {\n }\n pageContext.handlePageException(e);\n }\n }\n finally {\n OracleJspRuntime.extraHandlePCFinally(pageContext, true);\n JspFactory.getDefaultFactory().releasePageContext(pageContext);\n }\n\n }", "public static Session getSession() throws HException {\r\n\t\tSession s = (Session) threadSession.get();\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tif (s == null) {\r\n\t\t\t\tlog.debug(\"Opening new Session for this thread.\");\r\n\t\t\t\tif (getInterceptor() != null) {\r\n\t\t\t\t\t\r\n\t\t\t\t\ts = getSessionFactory().withOptions().interceptor(getInterceptor()).openSession();\r\n\t\t\t\t} else {\r\n\t\t\t\t\ts = getSessionFactory().openSession();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tthreadSession.set(s);\r\n\t\t\t\tsetConnections(1);\r\n\t\t\t}\r\n\t\t} catch (HibernateException ex) {\r\n\t\t\tthrow new HException(ex);\r\n\t\t}\r\n\t\treturn s;\r\n\t}", "private SessionFactoryUtil() {\r\n try {\r\n LOG.info(\"Configurando hibernate.cfg.xml\");\r\n CfgFile cfgFile = new CfgFile();\r\n Configuration configure = new Configuration().configure(new File(cfgFile.getPathFile()));\r\n cfgFile.toBuildMetaData(configure);\r\n ServiceRegistry serviceRegistry = new StandardServiceRegistryBuilder().applySettings(configure.getProperties()).build();\r\n sessionFactory = configure.buildSessionFactory(serviceRegistry);\r\n LOG.info(\"Configuracion se cargo a memoria de forma correcta\");\r\n } // try\r\n catch (Exception e) {\r\n Error.mensaje(e);\r\n } // catch\r\n }", "private Session getSession() {\n\t\treturn factory.getCurrentSession();\n\t}", "private static Session getInstance() {\n return SingletonHolder.INSTANCE;\n }", "public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException {\n\n response.setContentType( \"text/html\");\n /* set up the intrinsic variables using the pageContext goober:\n ** session = HttpSession\n ** application = ServletContext\n ** out = JspWriter\n ** page = this\n ** config = ServletConfig\n ** all session/app beans declared in globals.jsa\n */\n PageContext pageContext = JspFactory.getDefaultFactory().getPageContext( this, request, response, null, true, JspWriter.DEFAULT_BUFFER, true);\n // Note: this is not emitted if the session directive == false\n HttpSession session = pageContext.getSession();\n int __jsp_tag_starteval;\n ServletContext application = pageContext.getServletContext();\n JspWriter out = pageContext.getOut();\n _servicioProfesional page = this;\n ServletConfig config = pageContext.getServletConfig();\n javax.servlet.jsp.el.VariableResolver __ojsp_varRes = (VariableResolver)new OracleVariableResolverImpl(pageContext);\n\n try {\n\n\n out.write(__oracle_jsp_text[0]);\n out.write(__oracle_jsp_text[1]);\n out.write(__oracle_jsp_text[2]);\n out.write(__oracle_jsp_text[3]);\n {\n org.apache.taglibs.standard.tag.rt.core.SetTag __jsp_taghandler_1=(org.apache.taglibs.standard.tag.rt.core.SetTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.SetTag.class,\"org.apache.taglibs.standard.tag.rt.core.SetTag var value\");\n __jsp_taghandler_1.setParent(null);\n __jsp_taghandler_1.setVar(\"context\");\n __jsp_taghandler_1.setValue(request.getContextPath());\n __jsp_tag_starteval=__jsp_taghandler_1.doStartTag();\n if (__jsp_taghandler_1.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_1,1);\n }\n out.write(__oracle_jsp_text[4]);\n {\n org.springframework.web.servlet.tags.form.FormTag __jsp_taghandler_2=(org.springframework.web.servlet.tags.form.FormTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.FormTag.class,\"org.springframework.web.servlet.tags.form.FormTag modelAttribute\");\n __jsp_taghandler_2.setParent(null);\n __jsp_taghandler_2.setModelAttribute(\"expedienteDTO\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_2.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[5]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_3=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_3.setParent(__jsp_taghandler_2);\n __jsp_taghandler_3.setCode(\"sireh.label.expediente.titulo12\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_3.doStartTag();\n if (__jsp_taghandler_3.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_3.doCatch(th);\n } finally {\n __jsp_taghandler_3.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_3,2);\n }\n out.write(__oracle_jsp_text[6]);\n {\n _oracle._jsp._tag._label_tag __jsp_taghandler_4=(_oracle._jsp._tag._label_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._label_tag.class, pageContext);\n __jsp_taghandler_4.setParent(__jsp_taghandler_2);\n __jsp_taghandler_4.setJspContext(pageContext);\n __jsp_taghandler_4.setPath(\"nombreEmp\");\n __jsp_taghandler_4.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_4, pageContext);\n }\n out.write(__oracle_jsp_text[7]);\n {\n org.apache.taglibs.standard.tag.rt.core.OutTag __jsp_taghandler_5=(org.apache.taglibs.standard.tag.rt.core.OutTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.OutTag.class,\"org.apache.taglibs.standard.tag.rt.core.OutTag value\");\n __jsp_taghandler_5.setParent(__jsp_taghandler_2);\n __jsp_taghandler_5.setValue((java.lang.Object)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${expedienteDTO.gruesolinea}\",java.lang.Object.class, __ojsp_varRes,null));\n __jsp_tag_starteval=__jsp_taghandler_5.doStartTag();\n if (__jsp_taghandler_5.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_5,2);\n }\n out.write(__oracle_jsp_text[8]);\n {\n org.apache.taglibs.standard.tag.rt.core.OutTag __jsp_taghandler_6=(org.apache.taglibs.standard.tag.rt.core.OutTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.OutTag.class,\"org.apache.taglibs.standard.tag.rt.core.OutTag value\");\n __jsp_taghandler_6.setParent(__jsp_taghandler_2);\n __jsp_taghandler_6.setValue((java.lang.Object)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${expedienteDTO.colormarco}\",java.lang.Object.class, __ojsp_varRes,null));\n __jsp_tag_starteval=__jsp_taghandler_6.doStartTag();\n if (__jsp_taghandler_6.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_6,2);\n }\n out.write(__oracle_jsp_text[9]);\n {\n org.apache.taglibs.standard.tag.rt.core.OutTag __jsp_taghandler_7=(org.apache.taglibs.standard.tag.rt.core.OutTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.OutTag.class,\"org.apache.taglibs.standard.tag.rt.core.OutTag value\");\n __jsp_taghandler_7.setParent(__jsp_taghandler_2);\n __jsp_taghandler_7.setValue((java.lang.Object)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${expedienteDTO.gruesoletra}\",java.lang.Object.class, __ojsp_varRes,null));\n __jsp_tag_starteval=__jsp_taghandler_7.doStartTag();\n if (__jsp_taghandler_7.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_7,2);\n }\n out.write(__oracle_jsp_text[10]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_8=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag text\");\n __jsp_taghandler_8.setParent(__jsp_taghandler_2);\n __jsp_taghandler_8.setText(\"Servicio Profesional\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_8.doStartTag();\n if (__jsp_taghandler_8.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_8.doCatch(th);\n } finally {\n __jsp_taghandler_8.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_8,2);\n }\n out.write(__oracle_jsp_text[11]);\n {\n org.springframework.web.servlet.tags.ThemeTag __jsp_taghandler_9=(org.springframework.web.servlet.tags.ThemeTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.ThemeTag.class,\"org.springframework.web.servlet.tags.ThemeTag code\");\n __jsp_taghandler_9.setParent(__jsp_taghandler_2);\n __jsp_taghandler_9.setCode(\"persona.jpg\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_9.doStartTag();\n if (__jsp_taghandler_9.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_9.doCatch(th);\n } finally {\n __jsp_taghandler_9.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_9,2);\n }\n out.write(__oracle_jsp_text[12]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_10=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag text\");\n __jsp_taghandler_10.setParent(__jsp_taghandler_2);\n __jsp_taghandler_10.setText(\"de Carrera\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_10.doStartTag();\n if (__jsp_taghandler_10.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_10.doCatch(th);\n } finally {\n __jsp_taghandler_10.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_10,2);\n }\n out.write(__oracle_jsp_text[13]);\n {\n org.apache.taglibs.standard.tag.rt.core.OutTag __jsp_taghandler_11=(org.apache.taglibs.standard.tag.rt.core.OutTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.OutTag.class,\"org.apache.taglibs.standard.tag.rt.core.OutTag value\");\n __jsp_taghandler_11.setParent(__jsp_taghandler_2);\n __jsp_taghandler_11.setValue(\"Registros localizados: \");\n __jsp_tag_starteval=__jsp_taghandler_11.doStartTag();\n if (__jsp_taghandler_11.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_11,2);\n }\n out.write(__oracle_jsp_text[14]);\n {\n org.apache.taglibs.standard.tag.rt.core.OutTag __jsp_taghandler_12=(org.apache.taglibs.standard.tag.rt.core.OutTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.OutTag.class,\"org.apache.taglibs.standard.tag.rt.core.OutTag value\");\n __jsp_taghandler_12.setParent(__jsp_taghandler_2);\n __jsp_taghandler_12.setValue((java.lang.Object)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${expedienteDTO.locSPC}\",java.lang.Object.class, __ojsp_varRes,null));\n __jsp_tag_starteval=__jsp_taghandler_12.doStartTag();\n if (__jsp_taghandler_12.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_12,2);\n }\n out.write(__oracle_jsp_text[15]);\n {\n org.apache.taglibs.standard.tag.rt.core.OutTag __jsp_taghandler_13=(org.apache.taglibs.standard.tag.rt.core.OutTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.OutTag.class,\"org.apache.taglibs.standard.tag.rt.core.OutTag value\");\n __jsp_taghandler_13.setParent(__jsp_taghandler_2);\n __jsp_taghandler_13.setValue((java.lang.Object)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${expedienteDTO.jsonSPC}\",java.lang.Object.class, __ojsp_varRes,null));\n __jsp_tag_starteval=__jsp_taghandler_13.doStartTag();\n if (__jsp_taghandler_13.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_13,2);\n }\n out.write(__oracle_jsp_text[16]);\n out.write(__oracle_jsp_text[17]);\n out.write(__oracle_jsp_text[18]);\n {\n org.apache.taglibs.standard.tag.rt.core.OutTag __jsp_taghandler_14=(org.apache.taglibs.standard.tag.rt.core.OutTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.OutTag.class,\"org.apache.taglibs.standard.tag.rt.core.OutTag value\");\n __jsp_taghandler_14.setParent(__jsp_taghandler_2);\n __jsp_taghandler_14.setValue((java.lang.Object)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${context}\",java.lang.Object.class, __ojsp_varRes,null));\n __jsp_tag_starteval=__jsp_taghandler_14.doStartTag();\n if (__jsp_taghandler_14.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_14,2);\n }\n out.write(__oracle_jsp_text[19]);\n {\n org.springframework.web.servlet.tags.ThemeTag __jsp_taghandler_15=(org.springframework.web.servlet.tags.ThemeTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.ThemeTag.class,\"org.springframework.web.servlet.tags.ThemeTag code\");\n __jsp_taghandler_15.setParent(__jsp_taghandler_2);\n __jsp_taghandler_15.setCode(\"pdf-download.jpg\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_15.doStartTag();\n if (__jsp_taghandler_15.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_15.doCatch(th);\n } finally {\n __jsp_taghandler_15.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_15,2);\n }\n out.write(__oracle_jsp_text[20]);\n out.write(__oracle_jsp_text[21]);\n } while (__jsp_taghandler_2.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_2.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_2.doCatch(th);\n } finally {\n __jsp_taghandler_2.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_2,1);\n }\n\n }\n catch (Throwable e) {\n if (!(e instanceof javax.servlet.jsp.SkipPageException)){\n try {\n if (out != null) out.clear();\n }\n catch (Exception clearException) {\n }\n pageContext.handlePageException(e);\n }\n }\n finally {\n OracleJspRuntime.extraHandlePCFinally(pageContext, true);\n JspFactory.getDefaultFactory().releasePageContext(pageContext);\n }\n\n }", "private static void sessionFromCurrentSession(final Context context) {\n\n \t// The session itself\n final Session newSession = Session.getInstance();\n \n // The service\n Service newService = new Service();\n newSession.setService(newService);\n\n // The shared preferences\n Preferences preferences = new Preferences(context);\n newSession.setPreferences(preferences);\n\n // The database\n RestaurantDBAdapter restaurantDBAdapter = new RestaurantDBAdapter(context);\n newSession.setRestaurantDBAdapter(restaurantDBAdapter);\n\n // The hashmap of all the restaurants\n HashMap<String, Restaurant> restaurants = restaurantDBAdapter.getAllRestaurants();\n newSession.setRestaurants(restaurants);\n\n //Save the current session\n Session.setCurrentSession(newSession);\n Session.currentSession.saveAsCurrentSession(context);\n }", "@Local\npublic interface UserSession extends Service {\n\n\t/**\n\t * Getter for the user name.\n\t *\n\t * @return the user name\n\t */\n\tString getUserName();\n\n\t/**\n\t * Setter for the\n\t *\n\t * @param userName\n\t */\n\tvoid setUserName(String userName);\n}", "public void setSessionFactory(SessionFactory sessionFactory) {\n template = new HibernateTemplate(sessionFactory);\n}", "public interface AccessSessionLocal\n extends javax.ejb.EJBLocalObject\n{\n /**\n * Business Method\n */\n public boolean authenticateUser( java.security.cert.X509Certificate[] certificates ) throws org.emayor.servicehandling.kernel.AccessSessionException;\n\n /**\n * Business Method\n */\n public org.emayor.servicehandling.interfaces.ServiceSessionLocal[] getAllServiceSessions( ) throws org.emayor.servicehandling.kernel.AccessSessionException;\n\n /**\n * Business Method\n */\n public org.emayor.servicehandling.interfaces.ServiceSessionLocal getServiceSession( java.lang.String ssid ) throws org.emayor.servicehandling.kernel.AccessSessionException;\n\n /**\n * Business Method\n */\n public java.lang.String startServiceSession( java.lang.String serviceId,boolean isForwarded,java.lang.String xmlDoc,java.lang.String docSig ) throws org.emayor.servicehandling.kernel.AccessSessionException;\n\n /**\n * Business Method\n */\n public java.lang.String startServiceSession( java.lang.String serviceId,java.lang.String requestDocument ) throws org.emayor.servicehandling.kernel.AccessSessionException;\n\n /**\n * Business Method\n */\n public boolean stopServiceSession( java.lang.String ssid ) throws org.emayor.servicehandling.kernel.AccessSessionException;\n\n /**\n * Business Method\n */\n public boolean stopAllServiceSessions( ) throws org.emayor.servicehandling.kernel.AccessSessionException;\n\n /**\n * Business Method\n */\n public org.emayor.servicehandling.kernel.ServiceInfo[] listAvailableServices( ) throws org.emayor.servicehandling.kernel.AccessSessionException;\n\n /**\n * Business Method\n */\n public boolean stop( ) throws org.emayor.servicehandling.kernel.AccessSessionException;\n\n /**\n * Business Method\n */\n public org.eMayor.PolicyEnforcement.C_UserProfile getUserProfile( ) throws org.emayor.servicehandling.kernel.AccessSessionException;\n\n /**\n * Business Method\n */\n public java.lang.String getSessionId( ) throws org.emayor.servicehandling.kernel.SessionException;\n\n /**\n * Business Method\n */\n public java.lang.String getUserId( ) throws org.emayor.servicehandling.kernel.AccessSessionException;\n\n /**\n * Business Method\n */\n public void setUserId( java.lang.String userId ) throws org.emayor.servicehandling.kernel.AccessSessionException;\n\n /**\n * Business Method\n */\n public java.util.Date getStartDate( ) throws org.emayor.servicehandling.kernel.SessionException;\n\n}", "HibernateTransactionTemplate() {\n _transactionTemplate = getTransactionTemplate();\n _hibernateTemplate = getHibernateTemplate();\n }", "public static Session createSession(SessionFactory factory){\n Session s;\n\n if((s = (Session) _sessionRef.get()) == null) {\n s = factory.openSession();\n _sessionRef.set(s);\n }\n else{\n if(!s.isConnected())s.reconnect();\n }\n\n return s; \n }", "Session getSession();", "Session getSession();", "public HibernateTrapdIpMgr() {\n }", "public PaymentDAOImpl(SessionFactory sessionfactory)\n\t{\n\tthis.sessionFactory=sessionfactory; \n\tlog.debug(\"Successfully estblished connection\");\n\t}", "public interface SessionManager {\n\n /**\n * Return the distributable flag for the sessions supported by\n * this SessionManager.\n */\n public boolean getDistributable();\n\n\n /**\n * Set the distributable flag for the sessions supported by this\n * SessionManager. If this flag is set, all user data objects added to\n * sessions associated with this manager must implement Serializable.\n *\n * @param distributable The new distributable flag\n */\n public void setDistributable(boolean distributable);\n\n /**\n * Return the default maximum inactive interval (in seconds)\n * for Sessions created by this SessionManager.\n */\n public int getMaxInactiveInterval();\n\n /**\n * Set the default maximum inactive interval (in seconds)\n * for Sessions created by this SessionManager.\n *\n * @param interval The new default value\n */\n public void setMaxInactiveInterval(int interval);\n\n /**\n * Returns the total number of sessions created by this manager.\n *\n * @return Total number of sessions created by this manager.\n */\n public long getSessionCounter();\n\n\n /**\n * Sets the total number of sessions created by this manager.\n *\n * @param sessionCounter Total number of sessions created by this manager.\n */\n public void setSessionCounter(long sessionCounter);\n\n\n /**\n * Gets the maximum number of sessions that have been active at the same\n * time.\n *\n * @return Maximum number of sessions that have been active at the same\n * time\n */\n public int getMaxActive();\n\n\n /**\n * (Re)sets the maximum number of sessions that have been active at the\n * same time.\n *\n * @param maxActive Maximum number of sessions that have been active at\n * the same time.\n */\n public void setMaxActive(int maxActive);\n\n\n /**\n * Gets the number of currently active sessions.\n *\n * @return Number of currently active sessions\n */\n public int getActiveSessions();\n\n\n /**\n * Gets the number of sessions that have expired.\n *\n * @return Number of sessions that have expired\n */\n public long getExpiredSessions();\n\n\n /**\n * Sets the number of sessions that have expired.\n *\n * @param expiredSessions Number of sessions that have expired\n */\n public void setExpiredSessions(long expiredSessions);\n\n\n /**\n * Gets the number of sessions that were not created because the maximum\n * number of active sessions was reached.\n *\n * @return Number of rejected sessions\n */\n public int getRejectedSessions();\n\n\n /**\n * Gets the longest time (in seconds) that an expired session had been\n * alive.\n *\n * @return Longest time (in seconds) that an expired session had been\n * alive.\n */\n public int getSessionMaxAliveTime();\n\n\n /**\n * Sets the longest time (in seconds) that an expired session had been\n * alive.\n *\n * @param sessionMaxAliveTime Longest time (in seconds) that an expired\n * session had been alive.\n */\n public void setSessionMaxAliveTime(int sessionMaxAliveTime);\n\n\n /**\n * Gets the average time (in seconds) that expired sessions had been\n * alive. This may be based on sample data.\n *\n * @return Average time (in seconds) that expired sessions had been\n * alive.\n */\n public int getSessionAverageAliveTime();\n\n\n /**\n * Gets the current rate of session creation (in session per minute). This\n * may be based on sample data.\n *\n * @return The current rate (in sessions per minute) of session creation\n */\n public int getSessionCreateRate();\n\n\n /**\n * Gets the current rate of session expiration (in session per minute). This\n * may be based on sample data\n *\n * @return The current rate (in sessions per minute) of session expiration\n */\n public int getSessionExpireRate();\n // --------------------------------------------------------- Public Methods\n\n\n /**\n * Add this Session to the set of active Sessions for this SessionManager.\n *\n * @param session Session to be added\n */\n public void add(Session session);\n\n /**\n * Change the session ID of the current session to a new randomly generated\n * session ID.\n *\n * @param session The session to change the session ID for\n */\n public void changeSessionId(Session session);\n\n\n /**\n * Get a session from the recycled ones or create a new empty one.\n * The PersistentManager manager does not need to create session data\n * because it reads it from the Store.\n */\n public Session createEmptySession();\n\n\n /**\n * Construct and return a new session object, based on the default\n * settings specified by this SessionManager's properties. The session\n * id specified will be used as the session id.\n * If a new session cannot be created for any reason, return\n * <code>null</code>.\n *\n * @param sessionId The session id which should be used to create the\n * new session; if <code>null</code>, the session\n * id will be assigned by this method, and available via the getId()\n * method of the returned session.\n * @exception IllegalStateException if a new session cannot be\n * instantiated for any reason\n */\n public Session createSession(String sessionId);\n\n\n /**\n * Return the active Session, associated with this SessionManager, with the\n * specified session id (if any); otherwise return <code>null</code>.\n *\n * @param id The session id for the session to be returned\n *\n * @exception IllegalStateException if a new session cannot be\n * instantiated for any reason\n * @exception IOException if an input/output error occurs while\n * processing this request\n */\n public Session findSession(String id) throws IOException;\n\n\n /**\n * Return the set of active Sessions associated with this SessionManager.\n * If this SessionManager has no active Sessions, a zero-length array is returned.\n */\n public Session[] findSessions();\n\n\n /**\n * Load any currently active sessions that were previously unloaded\n * to the appropriate persistence mechanism, if any. If persistence is not\n * supported, this method returns without doing anything.\n *\n * @exception ClassNotFoundException if a serialized class cannot be\n * found during the reload\n * @exception IOException if an input/output error occurs\n */\n public void load() throws ClassNotFoundException, IOException;\n\n\n /**\n * Remove this Session from the active Sessions for this SessionManager.\n *\n * @param session Session to be removed\n */\n public void remove(Session session);\n\n\n /**\n * Remove this Session from the active Sessions for this SessionManager.\n *\n * @param session Session to be removed\n * @param update Should the expiration statistics be updated\n */\n public void remove(Session session, boolean update);\n\n /**\n * Save any currently active sessions in the appropriate persistence\n * mechanism, if any. If persistence is not supported, this method\n * returns without doing anything.\n *\n * @exception IOException if an input/output error occurs\n */\n public void unload() throws IOException;\n\n /**\n * This method will be invoked by the context/container on a periodic\n * basis and allows the manager to implement\n * a method that executes periodic tasks, such as expiring sessions etc.\n */\n public void backgroundProcess();\n\n}", "@Autowired\n\tpublic HibernateAccountManager(SessionFactory sessionFactory) {\n\t\tthis.sessionFactory = sessionFactory;\n\t\tthis.hibernateTemplate = new HibernateTemplate(sessionFactory);\n\t}", "public void testHttpSessionEagerlyCreatedWhenDirected()\n throws Exception {\n MockHttpServletRequest request = new MockHttpServletRequest(null, null);\n MockHttpServletResponse response = new MockHttpServletResponse();\n FilterChain chain = new MockFilterChain(null, null, null);\n \n // Prepare filter\n HttpSessionContextIntegrationFilter filter = new HttpSessionContextIntegrationFilter();\n filter.setContext(SecurityContextImpl.class);\n filter.setForceEagerSessionCreation(true); // non-default\n filter.afterPropertiesSet();\n \n // Execute filter\n executeFilterInContainerSimulator(new MockFilterConfig(), filter, request, response, chain);\n \n // Check the session is not null\n assertNotNull(request.getSession(false));\n }", "public interface ISessionService {\n\n /**\n * Indicates what's the current server's bank.\n * @return\n */\n shared.data.Bank getBank();\n\n /**\n * Sets the current server's bank at startup.\n * Should not be changed once server is online.\n * @param bank\n */\n void setBank(shared.data.Bank bank);\n\n /**\n * Returns a file logger where to write the logs for the server.\n * @return\n */\n IFileLogger log();\n}", "public MainSessionBean() {\r\n init();\r\n }", "public void startFactory() {\n if (!isStarted) {\n logger.info(\"Starting SessionListenerFactory.\");\n APIEventBus.getInstance().subscribe(this);\n isStarted = true;\n }\n }", "private Session fetchSession()\n\t{\n\t\t\tlog.info (\"******Fetching Hibernate Session\");\n\n\t\t\tSession session = HibernateFactory.currentSession();\n\n\t\t\treturn session;\n\t \n\t}", "public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException {\n\n response.setContentType( \"text/html;charset=windows-1252\");\n /* set up the intrinsic variables using the pageContext goober:\n ** session = HttpSession\n ** application = ServletContext\n ** out = JspWriter\n ** page = this\n ** config = ServletConfig\n ** all session/app beans declared in globals.jsa\n */\n PageContext pageContext = JspFactory.getDefaultFactory().getPageContext( this, request, response, null, true, JspWriter.DEFAULT_BUFFER, true);\n // Note: this is not emitted if the session directive == false\n HttpSession session = pageContext.getSession();\n int __jsp_tag_starteval;\n ServletContext application = pageContext.getServletContext();\n JspWriter out = pageContext.getOut();\n _DummyMenu page = this;\n ServletConfig config = pageContext.getServletConfig();\n javax.servlet.jsp.el.VariableResolver __ojsp_varRes = (VariableResolver)new OracleVariableResolverImpl(pageContext);\n\n try {\n\n\n out.write(__oracle_jsp_text[0]);\n out.write(__oracle_jsp_text[1]);\n out.write(__oracle_jsp_text[2]);\n out.write(__oracle_jsp_text[3]);\n out.write(__oracle_jsp_text[4]);\n out.write(__oracle_jsp_text[5]);\n \n String strServerName = request.getServerName();\n String strServerPort = \"\"+request.getServerPort();\n String lstrCtxPath = request.getContextPath();\n \n String strUserid = (String)request.getParameter(\"userid\");\n String strAppId = (String) request.getParameter(\"appId\");\n if(strAppId == null || \"\".equals(strAppId)){\n strAppId = \"webbkg\";\n }\n //String strUserid = \"\"; // for Dolphin testing\n \n out.write(__oracle_jsp_text[6]);\n out.write(__oracle_jsp_text[7]);\n out.print(\"http://\" + strServerName + \":\" + strServerPort);\n out.write(__oracle_jsp_text[8]);\n out.print(lstrCtxPath);\n out.write(__oracle_jsp_text[9]);\n out.print(strUserid);\n out.write(__oracle_jsp_text[10]);\n out.print(lstrCtxPath);\n out.write(__oracle_jsp_text[11]);\n out.print(lstrCtxPath);\n out.write(__oracle_jsp_text[12]);\n out.print(lstrCtxPath);\n out.write(__oracle_jsp_text[13]);\n out.print(lstrCtxPath);\n out.write(__oracle_jsp_text[14]);\n out.print(lstrCtxPath);\n out.write(__oracle_jsp_text[15]);\n out.print(strUserid);\n out.write(__oracle_jsp_text[16]);\n out.print(lstrCtxPath);\n out.write(__oracle_jsp_text[17]);\n out.print(strUserid);\n out.write(__oracle_jsp_text[18]);\n out.print(lstrCtxPath);\n out.write(__oracle_jsp_text[19]);\n out.print(lstrCtxPath);\n out.write(__oracle_jsp_text[20]);\n out.print(strUserid);\n out.write(__oracle_jsp_text[21]);\n out.print(lstrCtxPath);\n out.write(__oracle_jsp_text[22]);\n out.print(lstrCtxPath);\n out.write(__oracle_jsp_text[23]);\n out.print(strUserid);\n out.write(__oracle_jsp_text[24]);\n out.print(lstrCtxPath);\n out.write(__oracle_jsp_text[25]);\n out.print(strUserid);\n out.write(__oracle_jsp_text[26]);\n out.print(lstrCtxPath);\n out.write(__oracle_jsp_text[27]);\n out.print(strUserid);\n out.write(__oracle_jsp_text[28]);\n out.print(lstrCtxPath);\n out.write(__oracle_jsp_text[29]);\n out.print(strUserid);\n out.write(__oracle_jsp_text[30]);\n out.print(lstrCtxPath);\n out.write(__oracle_jsp_text[31]);\n out.print(strUserid);\n out.write(__oracle_jsp_text[32]);\n out.print(lstrCtxPath);\n out.write(__oracle_jsp_text[33]);\n out.print(strUserid);\n out.write(__oracle_jsp_text[34]);\n out.print(lstrCtxPath);\n out.write(__oracle_jsp_text[35]);\n out.print(strUserid);\n out.write(__oracle_jsp_text[36]);\n out.print(lstrCtxPath);\n out.write(__oracle_jsp_text[37]);\n out.print(strUserid);\n out.write(__oracle_jsp_text[38]);\n out.print(lstrCtxPath);\n out.write(__oracle_jsp_text[39]);\n out.print(strUserid);\n out.write(__oracle_jsp_text[40]);\n out.print(lstrCtxPath);\n out.write(__oracle_jsp_text[41]);\n out.print(strUserid);\n out.write(__oracle_jsp_text[42]);\n out.print(lstrCtxPath);\n out.write(__oracle_jsp_text[43]);\n out.print(strUserid);\n out.write(__oracle_jsp_text[44]);\n out.print(lstrCtxPath);\n out.write(__oracle_jsp_text[45]);\n\n }\n catch (Throwable e) {\n if (!(e instanceof javax.servlet.jsp.SkipPageException)){\n try {\n if (out != null) out.clear();\n }\n catch (Exception clearException) {\n }\n pageContext.handlePageException(e);\n }\n }\n finally {\n OracleJspRuntime.extraHandlePCFinally(pageContext, true);\n JspFactory.getDefaultFactory().releasePageContext(pageContext);\n }\n\n }", "public SessionManager ()\r\n\t{\r\n\t\tactiveSessions = new ArrayList<Session>();\r\n\t}", "public NationalityDAO() {\n //sessionFactory = HibernateUtil.getSessionFactory();\n session=HibernateUtil.openSession();\n }", "private static void init(){\n entityManager = HibernateUtil.getEntityManager();\n transaction = entityManager.getTransaction();\n }", "public static Session openSession() {\n \treturn sessionFactory.openSession();\n }", "DatabaseSession openSession();", "@Override\n public void initSessionFactories() {\n super.initSessionFactories();\n\n sessionFactories.put(EntityCache.class, new SessionFactory() {\n\n @Override\n public Class<?> getSessionType() {\n return EntityCache.class;\n }\n @Override\n public Session openSession(CommandContext commandContext) {\n return new EntityCacheImpl();\n }\n });\n }", "private void initialisation()\n\t{\n\t\tdaoFactory = new DaoFactory();\n\n\t\ttry\n\t\t{\n\t\t\tequationStandardSessions = EquationCommonContext.getContext().getGlobalProcessingEquationStandardSessions(\n\t\t\t\t\t\t\tsession.getSessionIdentifier());\n\t\t}\n\t\tcatch (Exception eQException)\n\t\t{\n\t\t\tif (LOG.isErrorEnabled())\n\t\t\t{\n\t\t\t\tStringBuilder message = new StringBuilder(\"There is a problem creating Global processing the sessions\");\n\t\t\t\tLOG.error(message.toString(), eQException);\n\t\t\t}\n\t\t}\n\t}", "@Override\r\npublic void sessionCreated(HttpSessionEvent arg0) {\n\t\r\n}", "public SessionService session() {\n return service;\n }", "@Override\n\t\tpublic HttpSession getSession(boolean create) {\n\t\t\treturn null;\n\t\t}", "public static Session register(SessionFactory factory) throws IllegalStateException {\n if(_sessionRef.get() != null) {\n throw new IllegalStateException(\n \"Thread already registered with a session\");\n }\n\n Session s = factory.openSession();\n _sessionRef.set(s);\n return s;\n }", "public Session() {\n\t\tLogger.log(\"Creating application session\");\n\t}", "public void testGetSessionContext() throws Exception {\n assertNotNull(\"The session context has to be set.\", invoiceSessionBean.getSessionContext());\n }", "private Session openSession() {\n return sessionFactory.getCurrentSession();\n }", "public static SessionFactory getSessionFactory() {\r\n\t\t/*\r\n\t\t * Instead of a static variable, use JNDI: SessionFactory sessions =\r\n\t\t * null; try { Context ctx = new InitialContext(); String jndiName =\r\n\t\t * \"java:hibernate/HibernateFactory\"; sessions =\r\n\t\t * (SessionFactory)ctx.lookup(jndiName); } catch (NamingException ex) {\r\n\t\t * throw new InfrastructureException(ex); } return sessions;\r\n\t\t */\r\n\t\treturn sessionFactory;\r\n\t}", "Session getCurrentSession();", "Session getCurrentSession();", "Session begin();", "public void setSession(Session session) {\n\tthis.session = session; \r\n}", "private static SessionFactory buildSessionFact() {\n try {\n\n return new Configuration().configure(\"hibernate.cfg.xml\").buildSessionFactory();\n\n \n } catch (Throwable ex) {\n \n System.err.println(\"Initial SessionFactory creation failed.\" + ex);\n throw new ExceptionInInitializerError(ex);\n }\n }", "@Override\n\tpublic Session getSession() throws Exception {\n\t\treturn null;\n\t}", "@Override\n\tpublic HttpSessionContext getSessionContext() {\n\t\treturn null;\n\t}", "public abstract Thread startSession();", "public interface IFactory {\n\t/**\n\t * créer un service transactionel (un proxy de service) gérant les Users\n\t * \n\t * @param caller\n\t * objet transactionel appelant ce service. null si début de\n\t * transaction\n\t * @return\n\t */\n\tpublic abstract IUserService createUserService(ITransactional caller);\n\n\t/**\n\t * créer un dao transactionel dédié à la table utilisateur (un proxy de dao)\n\t * \n\t * @param caller\n\t * objet transactionel appelant ce service. null si début de\n\t * transaction\n\t * @return\n\t */\n\tpublic abstract IUtilisateurDAO createUserDAO(ITransactional caller);\n\n\t/**\n\t * créer un dao transactionel dédié à la table cursus (un proxy de dao)\n\t * \n\t * @param caller\n\t * objet transactionel appelant ce service. null si début de\n\t * transaction\n\t * @return\n\t */\n\tpublic abstract ICursusDAO createCursusDAO(ITransactional caller);\n\n\t/**\n\t * créer un dao transactionel dédié à la table competence (un proxy de dao)\n\t * \n\t * @param caller\n\t * objet transactionel appelant ce service. null si début de\n\t * transaction\n\t * @return\n\t */\n\tpublic abstract ICompetenceDAO createCompetenceDAO(ITransactional caller);\n\n\tpublic abstract INiveauxDAO createNiveauDAO(ITransactional caller);\n\n\tpublic abstract IProfilDAO createProfilDAO(ITransactional caller);\n\n\tpublic abstract IGroupeDAO createGroupeDAO(ITransactional caller);\n\n\tpublic abstract IFenetreDAO createFenetreDAO(ITransactional caller);\n\n\tpublic abstract IFonctionDAO createFonctionDAO(ITransactional caller);\n\n\tpublic abstract INatureDAO createNatureDAO(ITransactional caller);\n\n\tpublic abstract IDroitDAO createDroitDAO(ITransactional caller);\n\n\tpublic abstract ISecurityService createSecurityService(ITransactional caller);\n\n\tpublic abstract IProjectService createProjectService(ITransactional caller);\n\n\tpublic abstract IKeywordDAO createKeywordDAO(ITransactional caller);\n\n\tpublic abstract IStatutDAO createStatutDAO(ITransactional caller);\n\n\tpublic abstract IAdresseDAO createAdresseDAO(ITransactional caller);\n\t\n}", "public static Transaction getThreadLocalTransaction() {\n return threadlocal.get();\n }", "@Override\r\n public void onModuleLoad() {\r\n //register auto refreshing timer\r\n// autoRefresh = new Timer() {\r\n// @Override\r\n// public void run() {\r\n// Shared.EVENT_BUS.fireEvent(new UIRefreshEvent());\r\n// }\r\n// };\r\n// autoRefresh.scheduleRepeating(AUTO_REFRESH_INTERVAL);\r\n \r\n \r\n //read cookies to recover previous session\r\n if (cookie.getSeesionID().isEmpty()) {\r\n //create new session\r\n newSession();\r\n }else{\r\n //try to rebind the old session\r\n Shared.RPC.getSession(cookie.getSeesionID(), new AsyncCallback<Session>() {\r\n @Override\r\n public void onSuccess(Session s) {\r\n if (s == null){\r\n //the session is absent on server\r\n Info.display(\"Expired\", \"Your session is expired, please sign in again\");\r\n newSession();\r\n }else{\r\n Shared.MY_SESSION = s; \r\n //try to auto sign in using saved accountKey\r\n if (cookie.getAccountKey(s).isEmpty() || s.getAccount() == null){\r\n //not to keep signed in / or not yet signed in\r\n //do nothing, wait for signing in\r\n }else{\r\n //try to sign in\r\n Shared.EVENT_BUS.fireEvent(new SignEvent(SignEvent.Action.SIGN_IN)); //didn't set the account key because setting it result in overwrite the cookies\r\n Shared.RPC.signInAndBindSession(s.getAccount(), s, cookie.getAccountKey(s), new AsyncCallback<Session>() {\r\n @Override\r\n public void onSuccess(Session s) {\r\n if (s != null) {\r\n //login successful\r\n Shared.MY_SESSION = s;\r\n //dispatch sign in event\r\n Shared.EVENT_BUS.fireEvent(new SignEvent(SignEvent.Action.SIGNED_IN));\r\n } else {\r\n Info.display(\"Incorrect\", \"Please check your password and try again\");\r\n }\r\n }\r\n\r\n @Override\r\n public void onFailure(Throwable caught) {\r\n Info.display(\"Error\", caught.getMessage());\r\n }\r\n }); \r\n }\r\n }\r\n }\r\n @Override\r\n public void onFailure(Throwable caught) {\r\n Info.display(\"Error\", caught.getMessage());\r\n }\r\n });\r\n }\r\n \r\n\r\n\r\n \r\n \r\n res.common_css().ensureInjected(); \r\n Widget loginpage = new LoginPage();\r\n RootPanel.get().add(loginpage);\r\n\r\n //add event handler for SignEvent event\r\n Shared.EVENT_BUS.addHandler(SignEvent.TYPE, new SignEvent.SignEventHandler(){\r\n @Override\r\n public void onSign(SignEvent event){\r\n //process sign_in\r\n //process signed_in\r\n if (event.getAction().equals(SignEvent.Action.SIGNED_IN)) {\r\n //write cookies if keep signed in\r\n if (event.getAccountKey() != null && !event.getAccountKey().isEmpty()) {\r\n cookie.setAccountKey(Shared.MY_SESSION, event.getAccountKey());\r\n }\r\n //already signed in, load workspace\r\n RootPanel.get().clear();\r\n Widget workspace = new Workspace().asWidget();\r\n RootPanel.get().add(workspace); \r\n Info.display(\"Welcome\", \"Signed in as \" + Shared.MY_SESSION.getAccount().getFullName());\r\n }\r\n //process sign_out\r\n if (event.getAction().equals(SignEvent.Action.SIGN_OUT)){\r\n String accountKey = cookie.getAccountKey(Shared.MY_SESSION);\r\n Shared.RPC.signOutAndDetachSession(Shared.MY_SESSION, accountKey, new AsyncCallback<Session>() {\r\n @Override\r\n public void onSuccess(Session s) {\r\n if (s != null) {\r\n Shared.MY_SESSION = s;\r\n //sign out seems OK on server side, dispatch SIGNED_OUT event\r\n Shared.EVENT_BUS.fireEvent(new SignEvent(SignEvent.Action.SIGNED_OUT)); //WARN: don't dispatch SIGN_OUT avoiding deadlock call\r\n } else {\r\n Info.display(\"Error\", \"Account is already signed out or database error\");\r\n }\r\n }\r\n\r\n @Override\r\n public void onFailure(Throwable caught) {\r\n Info.display(\"Error\", caught.getMessage());\r\n }\r\n });\r\n }\r\n //process signed_out\r\n if (event.getAction().equals(SignEvent.Action.SIGNED_OUT)){\r\n //delete cookies\r\n cookie.discardCookie(Shared.MY_SESSION); \r\n //return UI to welcome status\r\n RootPanel.get().clear();\r\n RootPanel.get().add(new LoginPage()); \r\n Info.display(\"See you\", \"You are now signed out!\");\r\n }\r\n }\r\n });\r\n \r\n \r\n }", "public static void setThreadLocalTransaction(Transaction tx) {\n threadlocal.set(tx);\n }", "public /*static*/ Session getSession() {\n return sessionFactory.getCurrentSession();\n }", "private static Session secondLevelCacheHibernate(SessionFactory factory,\n\t\t\tSession session) {\n\t\tsession.close();\n\t\tsession=factory.openSession();\n\t\tsession.get(Employee.class, Long.valueOf(7));\n\t\tsession.close();\n\t\tsession=factory.openSession();\n\t\tsession.get(Employee.class, Long.valueOf(7));\n\t\treturn session;\n\t}", "public synchronized static Session getInstance(){\n if (_instance == null) {\n _instance = new Session();\n }\n return _instance;\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n HttpSession session = new HttpSession() {\n public long getCreationTime() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public String getId() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public long getLastAccessedTime() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public ServletContext getServletContext() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public void setMaxInactiveInterval(int interval) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public int getMaxInactiveInterval() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public HttpSessionContext getSessionContext() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public Object getAttribute(String name) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public Object getValue(String name) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public Enumeration<String> getAttributeNames() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public String[] getValueNames() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public void setAttribute(String name, Object value) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public void putValue(String name, Object value) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public void removeAttribute(String name) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public void removeValue(String name) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public void invalidate() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public boolean isNew() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n };\n try {\n String bsubmit = request.getParameter(\"submit\");\n String inUsername = request.getParameter(\"username\");\n String inPassword = request.getParameter(\"password\");\n if (bsubmit != null) {\n UserDAO userDAO = new UserDAO();\n User user = userDAO.findUserByNameAndPassword(inUsername, inPassword);\n if (user == null) {\n out.write(\"<script type='text/javascript'>\\n\");\n out.write(\"alert(' Sorry, invalid username or password\");\n out.write(\".');\\n\");\n out.write(\"setTimeout(function(){window.location.href='login.jsp'},1000);\");\n out.write(\"</script>\\n\");\n } else {\n if (user.getUserName().equals(inUsername) && user.getPassword().equals(inPassword)) {\n session = request.getSession();\n session.setAttribute(\"userId\", String.valueOf(user.getId()));\n session.setAttribute(\"userName\", user.getUserName());\n out.write(\"<script type='text/javascript'>\\n\");\n out.write(\"alert(' Thank you! You are login with \");\n out.write(user.getUserName());\n out.write(\" account.');\\n\");\n out.write(\"setTimeout(function(){window.location.href='index.jsp'},1000);\");\n out.write(\"</script>\\n\");\n }\n }\n\n }\n\n } finally {\n out.close();\n }\n }", "@RequestMapping(\"/sayHello\")\r\n @Transactional\r\n public String sayHello(HttpServletRequest request) {\n\r\n return request.getSession().getId() + \"888\";\r\n }", "@Test\n @Tag(\"CREATE\")\n @Tag(\"RESOURCE\")\n @DisplayName(\"Test Hibernate Lazy Loading in Default with Session Close\")\n public void testHibernateDefaultLazyLoadingWithSessionClose()\n {\n System.out.println(\"Programme Start\");\n long startTime = System.nanoTime();\n\n SBAddressVal01 addressVal01 = SBAddressVal01.of(\n \"Kusumarama Road\",\n \"Seenigama\",\n \"Hikkaduwa\",\n \"Sri Lanka\",\n \"292000\"\n );\n\n SBCustomerOrder order01 = SBCustomerOrder.of(\n \"IN0000001\",\n new Timestamp(new java.util.Date().getTime()),\n 2024.50\n );\n\n SBCustomerOrder order02 = SBCustomerOrder.of(\n \"IN0000002\",\n new Timestamp(new java.util.Date().getTime()),\n 1024.50\n );\n\n SBCustomerOrder order03 = SBCustomerOrder.of(\n \"IN0000003\",\n new Timestamp(new java.util.Date().getTime()),\n 3024.50\n );\n\n SBCustomerOrder order04 = SBCustomerOrder.of(\n \"IN0000004\",\n new Timestamp(new java.util.Date().getTime()),\n 5024.50\n );\n\n SBCustomer05 sbCustomer05 = new SBCustomer05();\n\n sbCustomer05.getCustomer05Orders().add(order01);\n sbCustomer05.getCustomer05Orders().add(order02);\n sbCustomer05.getCustomer05Orders().add(order03);\n sbCustomer05.getCustomer05Orders().add(order04);\n\n sbCustomer05.setCustomer05Email(\"[email protected]\");\n sbCustomer05.setCustomer05Sex(\"Male\");\n sbCustomer05.setCustomer05FirstName(\"Umesh\");\n sbCustomer05.setCustomer05LastName(\"Gunasekara\");\n sbCustomer05.setCustomer05Nic(\"901521344V\");\n sbCustomer05.setCustomer05Mobile(\"0711233000\");\n try {\n sbCustomer05.setCustomer05Birthday(new SimpleDateFormat(\"dd/MM/yyyy\").parse(\"31/05/1990\"));\n } catch (ParseException e) {\n LOGGER.error(ExceptionUtils.getFullStackTrace(e));\n e.printStackTrace();\n }\n sbCustomer05.setCustomer05Address(addressVal01);\n sbCustomer05.setRawLastUpdateDateTime(new Timestamp(new java.util.Date().getTime()));\n sbCustomer05.setRawLastUpdateLogId(1);\n sbCustomer05.setUpdateUserAccountId(1);\n sbCustomer05.setRawActiveStatus(1);\n sbCustomer05.setRawDeleteStatus(1);\n sbCustomer05.setRawShowStatus(1);\n sbCustomer05.setRawUpdateStatus(1);\n\n\n Transaction transaction = null;\n try (Session session = HibernateUtil.getSessionFactory().openSession();) {\n transaction = session.beginTransaction();\n session.save(sbCustomer05);\n transaction.commit();\n System.out.println(\"Added Customer 03: \" + sbCustomer05.getCustomer05FirstName());\n } catch (Throwable throwable) {\n if (transaction != null) {\n transaction.rollback();\n }\n LOGGER.error(ExceptionUtils.getFullStackTrace(throwable));\n throwable.printStackTrace();\n }\n\n //********************************************\n //The first session has benn closed with end of try catch\n //*******************************************\n\n SBCustomer05 customer = null;\n\n try (Session session = HibernateUtil.getSessionFactory().openSession();) {\n transaction = session.beginTransaction();\n customer = session.get(SBCustomer05.class, sbCustomer05.getCustomer05Id());\n transaction.commit();\n } catch (Throwable throwable) {\n if (transaction != null) {\n transaction.rollback();\n }\n LOGGER.error(ExceptionUtils.getFullStackTrace(throwable));\n throwable.printStackTrace();\n }\n\n System.out.println(\"Get Customer 05: \" + customer.getCustomer05FirstName());\n System.out.println(\"Get Customer 05 Orders \");\n customer.getCustomer05Orders().forEach(\n order ->\n {\n System.out.println(\"Order Invoice Number :\" + order.getCustomerOrderInvoiceNumber());\n System.out.println(\"\\tDate & Time :\" + order.getCustomerOrderDateTime());\n System.out.println(\"\\tTotal Amount:\" + order.getCustomerOrderTotal());\n });\n\n long endTime = System.nanoTime();\n ELAPSED_TIME = endTime - startTime;\n System.out.println(\"Programme End\");\n\n }", "public interface SessionManager {\n void getSession(String request);\n}", "public Session(){\n\t\tdb = ALiteOrmBuilder.getInstance().openWritableDatabase();\n\t\texternalsCallbacks = new ArrayList<EntityListener>();\n\t}", "@Test\n public void testStartSession() {\n startSession();\n }", "public static void open() {\r\n final Session session = sessionFactory.isClosed() ? sessionFactory.openSession() : sessionFactory.getCurrentSession();\r\n session.beginTransaction();\r\n }", "private Session() {\n userId = -1;\n onUserDeletion = null;\n }", "public static Session currentSession() {\n Session session = (Session) sessionThreadLocal.get();\n // Open a new Session, if this Thread has none yet\n try {\n if (session == null) {\n session = sessionFactory.openSession();\n sessionThreadLocal.set(session);\n }\n } catch (HibernateException e) {\n logger.error(\"Get current session error: \" + e.getMessage());\n }\n return session;\n }", "@Before\r\n\tpublic void setUp() throws Exception {\n\t\tTransactionSynchronizationManager.bindResource(sessionFactory, new SessionHolder(sessionFactory.openSession()));\r\n\r\n\t\trequest = new MockHttpServletRequest();\r\n\t\tsuper.request = new MockHttpServletRequest();\r\n\r\n\t\tresponse = new MockHttpServletResponse();\r\n\t\tsession = new MockHttpSession();\r\n\r\n\t\tsessionMap = new HashMap<String, Object>();\r\n\r\n\t\t//contexte spring\r\n\t\tApplicationContext context = ApplicationContextHolder.getContext();\r\n\r\n\t\tsuper.setApplicationContext(context);\r\n\r\n\t\t// seulement dans le cas d'utilisation de spring security //\r\n\t\tAuthenticationManager authenticationManager = (AuthenticationManager) context.getBean(\"authenticationManager\");\r\n\t\tfinal ProviderManager providerManager = (ProviderManager) authenticationManager;\r\n\r\n\r\n\t\t//\t\tUSERMOCK\t\t\r\n\r\n\t\t//\t\tUtilisateur userMock = new Utilisateur();\r\n\t\t//\t\t\r\n\t\t//\t\tuserMock.setUsername(\"ooo\");\r\n\t\t//\t\tuserMock.setPassword(\"1233456\");\r\n\t\t//\t\tAuthority aut = new Authority();\r\n\t\t//\t\taut.setAuthority(\"ROLE_USER\");\r\n\t\t//\t\tuserMock.authorities.add(aut);\r\n\r\n\t\t//\t\tfinal Authentication authToken = new UsernamePasswordAuthenticationToken (userMock.getUsername(), userMock.getPassword(), userMock.getAuthorities());\r\n\r\n\t\tfinal Authentication authToken = new UsernamePasswordAuthenticationToken (\"jlafosse\", \"jerome\");\r\n\t\tSecurityContextHolder.getContext().setAuthentication(authToken);\r\n\r\n\t\tSystem.out.println(\" ===> \" + authenticationManager.authenticate(authToken));\r\n\r\n\t\t//envoi du context spring dans la session\r\n\t\tsessionMap.put(\"SPRING_SECURITY_CONTEXT\", SecurityContextHolder.getContext());\r\n\t}", "@Override\n\tpublic void init() throws ServletException {\n\t\tsuper.init();\n\t\tObject object=getServletContext().getAttribute(\"entitymanagerfactory\");\n\n\t\tif(object==null){\n\t\t\temf=Persistence.createEntityManagerFactory(\"10-em-jsp\");\n\t\t\tgetServletContext().setAttribute(\"entitymanagerfactory\", emf);\n\t\t}else {\n\t\t\temf=(EntityManagerFactory) object;\n\t\t}\n\t\tservice=new StudentService(emf.createEntityManager());\n\t}", "public interface SessionService {\n\n Session addSession(Session session);\n Session getSession(Long id);\n boolean deleteSession(Long id);\n List<Session> getSessions();\n boolean updateRecord(Long id, String record);\n}", "@Test\n\tpublic static void testThreadLocal() {\n\t\tExecutorService service = Executors.newCachedThreadPool();\n\n\t\tRunnable task = new Runnable() {\n\t\t\tThreadLocal<AtomicInteger> tlocal = new ThreadLocal<AtomicInteger>() {\n\t\t\t\t@Override\n\t\t\t\tpublic AtomicInteger initialValue() {\n\t\t\t\t\treturn new AtomicInteger(1);\n\t\t\t\t}\n\t\t\t};\n\n\t\t\tpublic void run() {\n\t\t\t\tSystem.out.println(Thread.currentThread().getName() + \" start with value: \" + tlocal.get());\n\t\t\t\ttry {\n\t\t\t\t\tTimeUnit.SECONDS.sleep(1);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\ttlocal.set(new AtomicInteger(tlocal.get().addAndGet(1)));\n\t\t\t\tSystem.out.println(Thread.currentThread().getName() + \" ends with value: \" + tlocal.get());\n\t\t\t}\n\t\t};\n\t\tfor (int i = 0; i < 5; i++)\n\t\t\tservice.submit(task);\n\t\tservice.shutdown();\n\t}", "private ThreadLocalSSLSocketFactory(SocketFactory socketFactory) {\n this.socketFactory = socketFactory;\n }", "public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException {\n\n response.setContentType( \"text/html;charset=UTF-8\");\n /* set up the intrinsic variables using the pageContext goober:\n ** session = HttpSession\n ** application = ServletContext\n ** out = JspWriter\n ** page = this\n ** config = ServletConfig\n ** all session/app beans declared in globals.jsa\n */\n PageContext pageContext = JspFactory.getDefaultFactory().getPageContext( this, request, response, null, true, JspWriter.DEFAULT_BUFFER, true);\n // Note: this is not emitted if the session directive == false\n HttpSession session = pageContext.getSession();\n int __jsp_tag_starteval;\n ServletContext application = pageContext.getServletContext();\n JspWriter out = pageContext.getOut();\n _mapclient page = this;\n ServletConfig config = pageContext.getServletConfig();\n\n com.evermind.server.http.JspCommonExtraWriter __ojsp_s_out = (com.evermind.server.http.JspCommonExtraWriter) out;\n try {\n\n\n __ojsp_s_out.write(__oracle_jsp_text[0]);\n __ojsp_s_out.write(__oracle_jsp_text[1]);\n __ojsp_s_out.write(__oracle_jsp_text[2]);\n __ojsp_s_out.write(__oracle_jsp_text[3]);\n __ojsp_s_out.write(__oracle_jsp_text[4]);\n __ojsp_s_out.write(__oracle_jsp_text[5]);\n __ojsp_s_out.write(__oracle_jsp_text[6]);\n mapdemo.MapClientBean mcb;\n synchronized (session) {\n if ((mcb = (mapdemo.MapClientBean) pageContext.getAttribute( \"mcb\", PageContext.SESSION_SCOPE)) == null) {\n mcb = (mapdemo.MapClientBean) new mapdemo.MapClientBean();\n pageContext.setAttribute( \"mcb\", mcb, PageContext.SESSION_SCOPE);\n __ojsp_s_out.write(__oracle_jsp_text[7]);\n mcb.setMapViewerServerURL(OracleJspRuntime.toStr( mcb.determineURL(request)));\n __ojsp_s_out.write(__oracle_jsp_text[8]);\n pageContext.setAttribute( \"mcb\", mcb, PageContext.SESSION_SCOPE);\n }\n }\n __ojsp_s_out.write(__oracle_jsp_text[9]);\n {\n String[] __paramList = request.getParameterValues( \"mapViewerServerURL\");\n if ((__paramList != null) && (__paramList[0] != null) && (__paramList[0].length() > 0)) {\n mcb.setMapViewerServerURL(__paramList[0]);\n }\n }\n __ojsp_s_out.write(__oracle_jsp_text[10]);\n OracleJspRuntime.__jspSetAllParams(request, (Object)mcb, true);\n __ojsp_s_out.write(__oracle_jsp_text[11]);\n \n mcb.processRequest(request);\n \n __ojsp_s_out.write(__oracle_jsp_text[12]);\n out.print(mcb.getMapViewerServerURL());\n __ojsp_s_out.write(__oracle_jsp_text[13]);\n out.print( mcb.getDataSource() );\n __ojsp_s_out.write(__oracle_jsp_text[14]);\n out.print( mcb.getTitle() );\n __ojsp_s_out.write(__oracle_jsp_text[15]);\n out.print( mcb.getBaseMap() );\n __ojsp_s_out.write(__oracle_jsp_text[16]);\n out.print( mcb.getCenterX() );\n __ojsp_s_out.write(__oracle_jsp_text[17]);\n out.print( mcb.getCenterY() );\n __ojsp_s_out.write(__oracle_jsp_text[18]);\n out.print( mcb.getSize() );\n __ojsp_s_out.write(__oracle_jsp_text[19]);\n out.print(mcb.getImageW());\n __ojsp_s_out.write(__oracle_jsp_text[20]);\n if (mcb.getSuccess()) { \n __ojsp_s_out.write(__oracle_jsp_text[21]);\n out.print( mcb.getMapImageURL() );\n __ojsp_s_out.write(__oracle_jsp_text[22]);\n out.print( mcb.getImageW() );\n __ojsp_s_out.write(__oracle_jsp_text[23]);\n out.print( mcb.getImageH() );\n __ojsp_s_out.write(__oracle_jsp_text[24]);\n } else { \n __ojsp_s_out.write(__oracle_jsp_text[25]);\n } \n __ojsp_s_out.write(__oracle_jsp_text[26]);\n out.print( mcb.getImageW() );\n __ojsp_s_out.write(__oracle_jsp_text[27]);\n out.print( mcb.getImageW() );\n __ojsp_s_out.write(__oracle_jsp_text[28]);\n out.print(mcb.getXMLRequest());\n __ojsp_s_out.write(__oracle_jsp_text[29]);\n out.print(mcb.getXMLResponse());\n __ojsp_s_out.write(__oracle_jsp_text[30]);\n \n if(mcb.getErrorMsg()!=null && mcb.getDataSource()!=null)\n {\n \n __ojsp_s_out.write(__oracle_jsp_text[31]);\n out.print(mcb.getErrorMsg());\n __ojsp_s_out.write(__oracle_jsp_text[32]);\n \n }\n \n __ojsp_s_out.write(__oracle_jsp_text[33]);\n\n }\n catch (Throwable e) {\n if (!(e instanceof javax.servlet.jsp.SkipPageException)){\n try {\n if (out != null) out.clear();\n }\n catch (Exception clearException) {\n }\n pageContext.handlePageException(e);\n }\n }\n finally {\n OracleJspRuntime.extraHandlePCFinally(pageContext, true);\n JspFactory.getDefaultFactory().releasePageContext(pageContext);\n }\n\n }", "@Before\n public void getTestSession() {\n if (sessionId == null) {\n sessionId = Util.getSessionID();\n }\n }", "@Override\r\n\tpublic HttpSession getSession(boolean create)\r\n\t{\r\n\t\treturn getSession();\r\n\t}", "public Session createSession() {\n\t\treturn this.session;\n\t}", "static void initialize() {\n final StandardServiceRegistry registry = new StandardServiceRegistryBuilder()\r\n .configure() // configures settings from hibernate.cfg.xml\r\n .build();\r\n try {\r\n sessionFactory = new MetadataSources( registry ).buildMetadata().buildSessionFactory();\r\n }\r\n catch (Exception e) {\r\n StandardServiceRegistryBuilder.destroy( registry );\r\n }\r\n }", "public Session openSession() {\r\n //Interceptor interceptor= new Interceptor();\r\n //Session regresar = sessionFactory.withOptions().interceptor(interceptor).openSession();\r\n Session regresar = sessionFactory.openSession();\r\n //interceptor.setSession(regresar);\r\n return regresar;\r\n }", "public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException {\n\n response.setContentType( \"text/html\");\n /* set up the intrinsic variables using the pageContext goober:\n ** session = HttpSession\n ** application = ServletContext\n ** out = JspWriter\n ** page = this\n ** config = ServletConfig\n ** all session/app beans declared in globals.jsa\n */\n PageContext pageContext = JspFactory.getDefaultFactory().getPageContext( this, request, response, null, true, JspWriter.DEFAULT_BUFFER, true);\n // Note: this is not emitted if the session directive == false\n HttpSession session = pageContext.getSession();\n int __jsp_tag_starteval;\n ServletContext application = pageContext.getServletContext();\n JspWriter out = pageContext.getOut();\n _consultaCurso page = this;\n ServletConfig config = pageContext.getServletConfig();\n javax.servlet.jsp.el.VariableResolver __ojsp_varRes = (VariableResolver)new OracleVariableResolverImpl(pageContext);\n\n try {\n\n\n out.write(__oracle_jsp_text[0]);\n out.write(__oracle_jsp_text[1]);\n out.write(__oracle_jsp_text[2]);\n out.write(__oracle_jsp_text[3]);\n out.write(__oracle_jsp_text[4]);\n out.write(__oracle_jsp_text[5]);\n out.write(__oracle_jsp_text[6]);\n {\n org.springframework.web.servlet.tags.form.FormTag __jsp_taghandler_1=(org.springframework.web.servlet.tags.form.FormTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.FormTag.class,\"org.springframework.web.servlet.tags.form.FormTag name modelAttribute\");\n __jsp_taghandler_1.setParent(null);\n __jsp_taghandler_1.setName(\"checkBoxTest\");\n __jsp_taghandler_1.setModelAttribute(\"consultaCursoDTO\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_1.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[7]);\n {\n org.springframework.web.servlet.tags.form.HiddenInputTag __jsp_taghandler_2=(org.springframework.web.servlet.tags.form.HiddenInputTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.HiddenInputTag.class,\"org.springframework.web.servlet.tags.form.HiddenInputTag path\");\n __jsp_taghandler_2.setParent(__jsp_taghandler_1);\n __jsp_taghandler_2.setPath(\"beanName\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_2.doStartTag();\n if (__jsp_taghandler_2.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_2.doCatch(th);\n } finally {\n __jsp_taghandler_2.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_2,2);\n }\n out.write(__oracle_jsp_text[8]);\n {\n org.springframework.web.servlet.tags.form.HiddenInputTag __jsp_taghandler_3=(org.springframework.web.servlet.tags.form.HiddenInputTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.HiddenInputTag.class,\"org.springframework.web.servlet.tags.form.HiddenInputTag path\");\n __jsp_taghandler_3.setParent(__jsp_taghandler_1);\n __jsp_taghandler_3.setPath(\"urlOrigen\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_3.doStartTag();\n if (__jsp_taghandler_3.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_3.doCatch(th);\n } finally {\n __jsp_taghandler_3.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_3,2);\n }\n out.write(__oracle_jsp_text[9]);\n {\n org.springframework.web.servlet.tags.form.HiddenInputTag __jsp_taghandler_4=(org.springframework.web.servlet.tags.form.HiddenInputTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.HiddenInputTag.class,\"org.springframework.web.servlet.tags.form.HiddenInputTag path\");\n __jsp_taghandler_4.setParent(__jsp_taghandler_1);\n __jsp_taghandler_4.setPath(\"urlDestino\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_4.doStartTag();\n if (__jsp_taghandler_4.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_4.doCatch(th);\n } finally {\n __jsp_taghandler_4.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_4,2);\n }\n out.write(__oracle_jsp_text[10]);\n {\n org.springframework.web.servlet.tags.form.HiddenInputTag __jsp_taghandler_5=(org.springframework.web.servlet.tags.form.HiddenInputTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.HiddenInputTag.class,\"org.springframework.web.servlet.tags.form.HiddenInputTag path\");\n __jsp_taghandler_5.setParent(__jsp_taghandler_1);\n __jsp_taghandler_5.setPath(\"urlRegistroCurso\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_5.doStartTag();\n if (__jsp_taghandler_5.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_5.doCatch(th);\n } finally {\n __jsp_taghandler_5.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_5,2);\n }\n out.write(__oracle_jsp_text[11]);\n {\n org.springframework.web.servlet.tags.form.HiddenInputTag __jsp_taghandler_6=(org.springframework.web.servlet.tags.form.HiddenInputTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.HiddenInputTag.class,\"org.springframework.web.servlet.tags.form.HiddenInputTag path\");\n __jsp_taghandler_6.setParent(__jsp_taghandler_1);\n __jsp_taghandler_6.setPath(\"urlDeleteRegistroCurso\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_6.doStartTag();\n if (__jsp_taghandler_6.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_6.doCatch(th);\n } finally {\n __jsp_taghandler_6.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_6,2);\n }\n out.write(__oracle_jsp_text[12]);\n {\n org.springframework.web.servlet.tags.form.HiddenInputTag __jsp_taghandler_7=(org.springframework.web.servlet.tags.form.HiddenInputTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.HiddenInputTag.class,\"org.springframework.web.servlet.tags.form.HiddenInputTag path\");\n __jsp_taghandler_7.setParent(__jsp_taghandler_1);\n __jsp_taghandler_7.setPath(\"linkDestino\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_7.doStartTag();\n if (__jsp_taghandler_7.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_7.doCatch(th);\n } finally {\n __jsp_taghandler_7.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_7,2);\n }\n out.write(__oracle_jsp_text[13]);\n {\n org.springframework.web.servlet.tags.form.HiddenInputTag __jsp_taghandler_8=(org.springframework.web.servlet.tags.form.HiddenInputTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.HiddenInputTag.class,\"org.springframework.web.servlet.tags.form.HiddenInputTag path\");\n __jsp_taghandler_8.setParent(__jsp_taghandler_1);\n __jsp_taghandler_8.setPath(\"paramIdDestino\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_8.doStartTag();\n if (__jsp_taghandler_8.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_8.doCatch(th);\n } finally {\n __jsp_taghandler_8.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_8,2);\n }\n out.write(__oracle_jsp_text[14]);\n {\n org.springframework.web.servlet.tags.form.HiddenInputTag __jsp_taghandler_9=(org.springframework.web.servlet.tags.form.HiddenInputTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.HiddenInputTag.class,\"org.springframework.web.servlet.tags.form.HiddenInputTag path\");\n __jsp_taghandler_9.setParent(__jsp_taghandler_1);\n __jsp_taghandler_9.setPath(\"propertyDestino\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_9.doStartTag();\n if (__jsp_taghandler_9.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_9.doCatch(th);\n } finally {\n __jsp_taghandler_9.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_9,2);\n }\n out.write(__oracle_jsp_text[15]);\n {\n org.springframework.web.servlet.tags.form.HiddenInputTag __jsp_taghandler_10=(org.springframework.web.servlet.tags.form.HiddenInputTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.HiddenInputTag.class,\"org.springframework.web.servlet.tags.form.HiddenInputTag path\");\n __jsp_taghandler_10.setParent(__jsp_taghandler_1);\n __jsp_taghandler_10.setPath(\"interior\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_10.doStartTag();\n if (__jsp_taghandler_10.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_10.doCatch(th);\n } finally {\n __jsp_taghandler_10.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_10,2);\n }\n out.write(__oracle_jsp_text[16]);\n {\n org.springframework.web.servlet.tags.form.HiddenInputTag __jsp_taghandler_11=(org.springframework.web.servlet.tags.form.HiddenInputTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.HiddenInputTag.class,\"org.springframework.web.servlet.tags.form.HiddenInputTag path\");\n __jsp_taghandler_11.setParent(__jsp_taghandler_1);\n __jsp_taghandler_11.setPath(\"control\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_11.doStartTag();\n if (__jsp_taghandler_11.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_11.doCatch(th);\n } finally {\n __jsp_taghandler_11.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_11,2);\n }\n out.write(__oracle_jsp_text[17]);\n {\n org.springframework.web.servlet.tags.form.HiddenInputTag __jsp_taghandler_12=(org.springframework.web.servlet.tags.form.HiddenInputTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.HiddenInputTag.class,\"org.springframework.web.servlet.tags.form.HiddenInputTag path\");\n __jsp_taghandler_12.setParent(__jsp_taghandler_1);\n __jsp_taghandler_12.setPath(\"rolAdministradorCapacitacion\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_12.doStartTag();\n if (__jsp_taghandler_12.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_12.doCatch(th);\n } finally {\n __jsp_taghandler_12.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_12,2);\n }\n out.write(__oracle_jsp_text[18]);\n {\n org.springframework.web.servlet.tags.form.HiddenInputTag __jsp_taghandler_13=(org.springframework.web.servlet.tags.form.HiddenInputTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.HiddenInputTag.class,\"org.springframework.web.servlet.tags.form.HiddenInputTag path\");\n __jsp_taghandler_13.setParent(__jsp_taghandler_1);\n __jsp_taghandler_13.setPath(\"rolOperadorCapacitacion\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_13.doStartTag();\n if (__jsp_taghandler_13.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_13.doCatch(th);\n } finally {\n __jsp_taghandler_13.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_13,2);\n }\n out.write(__oracle_jsp_text[19]);\n {\n org.springframework.web.servlet.tags.form.HiddenInputTag __jsp_taghandler_14=(org.springframework.web.servlet.tags.form.HiddenInputTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.HiddenInputTag.class,\"org.springframework.web.servlet.tags.form.HiddenInputTag path\");\n __jsp_taghandler_14.setParent(__jsp_taghandler_1);\n __jsp_taghandler_14.setPath(\"cursoFecIniTxt\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_14.doStartTag();\n if (__jsp_taghandler_14.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_14.doCatch(th);\n } finally {\n __jsp_taghandler_14.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_14,2);\n }\n out.write(__oracle_jsp_text[20]);\n {\n org.springframework.web.servlet.tags.form.HiddenInputTag __jsp_taghandler_15=(org.springframework.web.servlet.tags.form.HiddenInputTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.HiddenInputTag.class,\"org.springframework.web.servlet.tags.form.HiddenInputTag path\");\n __jsp_taghandler_15.setParent(__jsp_taghandler_1);\n __jsp_taghandler_15.setPath(\"cursoFecFinTxt\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_15.doStartTag();\n if (__jsp_taghandler_15.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_15.doCatch(th);\n } finally {\n __jsp_taghandler_15.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_15,2);\n }\n out.write(__oracle_jsp_text[21]);\n {\n org.apache.taglibs.standard.tag.common.core.ChooseTag __jsp_taghandler_16=(org.apache.taglibs.standard.tag.common.core.ChooseTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.common.core.ChooseTag.class,\"org.apache.taglibs.standard.tag.common.core.ChooseTag\");\n __jsp_taghandler_16.setParent(__jsp_taghandler_1);\n __jsp_tag_starteval=__jsp_taghandler_16.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[22]);\n {\n org.apache.taglibs.standard.tag.rt.core.WhenTag __jsp_taghandler_17=(org.apache.taglibs.standard.tag.rt.core.WhenTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.WhenTag.class,\"org.apache.taglibs.standard.tag.rt.core.WhenTag test\");\n __jsp_taghandler_17.setParent(__jsp_taghandler_16);\n __jsp_taghandler_17.setTest(OracleJspRuntime.toBoolean( (java.lang.Boolean)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${consultaCursoDTO.control eq 'ASIGNAR_INSTRUCTOR'}\",java.lang.Boolean.class, __ojsp_varRes,null)));\n __jsp_tag_starteval=__jsp_taghandler_17.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[23]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_18=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code arguments\");\n __jsp_taghandler_18.setParent(__jsp_taghandler_17);\n __jsp_taghandler_18.setCode(\"sireh.label.spc.capcer.registro.general.consultaCursos.title\");\n __jsp_taghandler_18.setArguments((java.lang.Object)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${consultaCursoDTO.interior}\",java.lang.Object.class, __ojsp_varRes,null));\n try {\n __jsp_tag_starteval=__jsp_taghandler_18.doStartTag();\n if (__jsp_taghandler_18.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_18.doCatch(th);\n } finally {\n __jsp_taghandler_18.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_18,4);\n }\n out.write(__oracle_jsp_text[24]);\n } while (__jsp_taghandler_17.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_17.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_17,3);\n }\n out.write(__oracle_jsp_text[25]);\n {\n org.apache.taglibs.standard.tag.common.core.OtherwiseTag __jsp_taghandler_19=(org.apache.taglibs.standard.tag.common.core.OtherwiseTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.common.core.OtherwiseTag.class,\"org.apache.taglibs.standard.tag.common.core.OtherwiseTag\");\n __jsp_taghandler_19.setParent(__jsp_taghandler_16);\n __jsp_tag_starteval=__jsp_taghandler_19.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[26]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_20=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code arguments\");\n __jsp_taghandler_20.setParent(__jsp_taghandler_19);\n __jsp_taghandler_20.setCode(\"sireh.label.spc.capcer.registro.general.consultaCursos.title\");\n __jsp_taghandler_20.setArguments((java.lang.Object)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${consultaCursoDTO.interior}\",java.lang.Object.class, __ojsp_varRes,null));\n try {\n __jsp_tag_starteval=__jsp_taghandler_20.doStartTag();\n if (__jsp_taghandler_20.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_20.doCatch(th);\n } finally {\n __jsp_taghandler_20.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_20,4);\n }\n out.write(__oracle_jsp_text[27]);\n } while (__jsp_taghandler_19.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_19.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_19,3);\n }\n out.write(__oracle_jsp_text[28]);\n } while (__jsp_taghandler_16.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_16.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_16,2);\n }\n out.write(__oracle_jsp_text[29]);\n {\n org.apache.taglibs.standard.tag.rt.core.IfTag __jsp_taghandler_21=(org.apache.taglibs.standard.tag.rt.core.IfTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.IfTag.class,\"org.apache.taglibs.standard.tag.rt.core.IfTag test\");\n __jsp_taghandler_21.setParent(__jsp_taghandler_1);\n __jsp_taghandler_21.setTest(OracleJspRuntime.toBoolean( (java.lang.Boolean)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${consultaCursoDTO.rolAdministradorCapacitacion || consultaCursoDTO.rolAdministradorCertificacion}\",java.lang.Boolean.class, __ojsp_varRes,null)));\n __jsp_tag_starteval=__jsp_taghandler_21.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[30]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_22=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_22.setParent(__jsp_taghandler_21);\n __jsp_taghandler_22.setCode(\"sireh.label.spc.capcer.registro.registrarCurso.filtro.coordinacion\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_22.doStartTag();\n if (__jsp_taghandler_22.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_22.doCatch(th);\n } finally {\n __jsp_taghandler_22.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_22,3);\n }\n out.write(__oracle_jsp_text[31]);\n {\n _oracle._jsp._tag._option_tag __jsp_taghandler_23=(_oracle._jsp._tag._option_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._option_tag.class, pageContext);\n __jsp_taghandler_23.setParent(__jsp_taghandler_21);\n __jsp_taghandler_23.setJspContext(pageContext);\n __jsp_taghandler_23.setKey(\"\");\n __jsp_taghandler_23.setValue(\"selectList.nonValue\");\n __jsp_taghandler_23.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_23, pageContext);\n }\n out.write(__oracle_jsp_text[32]);\n {\n _oracle._jsp._tag._selectList_tag __jsp_taghandler_24=(_oracle._jsp._tag._selectList_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._selectList_tag.class, pageContext);\n __jsp_taghandler_24.setParent(__jsp_taghandler_21);\n __jsp_taghandler_24.setJspContext(pageContext);\n __jsp_taghandler_24.setBeanName(\"tcCapCoordinacion-consultaCurso\");\n __jsp_taghandler_24.setPath(\"idCoordinacion\");\n __jsp_taghandler_24.setStyle(\"width:200px;\");\n __jsp_taghandler_24.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_24, pageContext);\n }\n out.write(__oracle_jsp_text[33]);\n } while (__jsp_taghandler_21.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_21.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_21,2);\n }\n out.write(__oracle_jsp_text[34]);\n {\n org.apache.taglibs.standard.tag.rt.core.IfTag __jsp_taghandler_25=(org.apache.taglibs.standard.tag.rt.core.IfTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.IfTag.class,\"org.apache.taglibs.standard.tag.rt.core.IfTag test\");\n __jsp_taghandler_25.setParent(__jsp_taghandler_1);\n __jsp_taghandler_25.setTest(OracleJspRuntime.toBoolean( (java.lang.Boolean)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${(consultaCursoDTO.rolAdministradorCapacitacion || consultaCursoDTO.rolOperadorCapacitacion) and (consultaCursoDTO.control eq 'REG_CURSO' || consultaCursoDTO.control eq 'ASIGNAR_INSTRUCTOR') }\",java.lang.Boolean.class, __ojsp_varRes,null)));\n __jsp_tag_starteval=__jsp_taghandler_25.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[35]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_26=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_26.setParent(__jsp_taghandler_25);\n __jsp_taghandler_26.setCode(\"sireh.label.spc.capcer.registro.registrarCurso.filtro.proveedor\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_26.doStartTag();\n if (__jsp_taghandler_26.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_26.doCatch(th);\n } finally {\n __jsp_taghandler_26.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_26,3);\n }\n out.write(__oracle_jsp_text[36]);\n {\n _oracle._jsp._tag._option_tag __jsp_taghandler_27=(_oracle._jsp._tag._option_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._option_tag.class, pageContext);\n __jsp_taghandler_27.setParent(__jsp_taghandler_25);\n __jsp_taghandler_27.setJspContext(pageContext);\n __jsp_taghandler_27.setKey(\"\");\n __jsp_taghandler_27.setValue(\"selectList.nonValue\");\n __jsp_taghandler_27.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_27, pageContext);\n }\n out.write(__oracle_jsp_text[37]);\n {\n _oracle._jsp._tag._selectList_tag __jsp_taghandler_28=(_oracle._jsp._tag._selectList_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._selectList_tag.class, pageContext);\n __jsp_taghandler_28.setParent(__jsp_taghandler_25);\n __jsp_taghandler_28.setJspContext(pageContext);\n __jsp_taghandler_28.setBeanName(\"tcCapProveedor-consultaCurso\");\n __jsp_taghandler_28.setPath(\"idProveedor\");\n __jsp_taghandler_28.setStyle(\"width:200px;\");\n __jsp_taghandler_28.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_28, pageContext);\n }\n out.write(__oracle_jsp_text[38]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_29=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_29.setParent(__jsp_taghandler_25);\n __jsp_taghandler_29.setCode(\"sireh.label.spc.capcer.registro.registrarCurso.filtro.operadorDGRH\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_29.doStartTag();\n if (__jsp_taghandler_29.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_29.doCatch(th);\n } finally {\n __jsp_taghandler_29.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_29,3);\n }\n out.write(__oracle_jsp_text[39]);\n {\n _oracle._jsp._tag._option_tag __jsp_taghandler_30=(_oracle._jsp._tag._option_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._option_tag.class, pageContext);\n __jsp_taghandler_30.setParent(__jsp_taghandler_25);\n __jsp_taghandler_30.setJspContext(pageContext);\n __jsp_taghandler_30.setKey(\"\");\n __jsp_taghandler_30.setValue(\"selectList.nonValue\");\n __jsp_taghandler_30.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_30, pageContext);\n }\n out.write(__oracle_jsp_text[40]);\n {\n _oracle._jsp._tag._selectList_tag __jsp_taghandler_31=(_oracle._jsp._tag._selectList_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._selectList_tag.class, pageContext);\n __jsp_taghandler_31.setParent(__jsp_taghandler_25);\n __jsp_taghandler_31.setJspContext(pageContext);\n __jsp_taghandler_31.setBeanName(\"tcCapOperDgrh-consultaCurso\");\n __jsp_taghandler_31.setPath(\"rfcOperDgrh\");\n __jsp_taghandler_31.setStyle(\"width:200px;\");\n __jsp_taghandler_31.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_31, pageContext);\n }\n out.write(__oracle_jsp_text[41]);\n } while (__jsp_taghandler_25.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_25.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_25,2);\n }\n out.write(__oracle_jsp_text[42]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_32=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_32.setParent(__jsp_taghandler_1);\n __jsp_taghandler_32.setCode(\"sireh.label.spc.capcer.registro.registrarCurso.filtro.subprograma\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_32.doStartTag();\n if (__jsp_taghandler_32.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_32.doCatch(th);\n } finally {\n __jsp_taghandler_32.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_32,2);\n }\n out.write(__oracle_jsp_text[43]);\n {\n _oracle._jsp._tag._option_tag __jsp_taghandler_33=(_oracle._jsp._tag._option_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._option_tag.class, pageContext);\n __jsp_taghandler_33.setParent(__jsp_taghandler_1);\n __jsp_taghandler_33.setJspContext(pageContext);\n __jsp_taghandler_33.setKey(\"\");\n __jsp_taghandler_33.setValue(\"selectList.nonValue\");\n __jsp_taghandler_33.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_33, pageContext);\n }\n out.write(__oracle_jsp_text[44]);\n {\n _oracle._jsp._tag._selectList_tag __jsp_taghandler_34=(_oracle._jsp._tag._selectList_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._selectList_tag.class, pageContext);\n __jsp_taghandler_34.setParent(__jsp_taghandler_1);\n __jsp_taghandler_34.setJspContext(pageContext);\n __jsp_taghandler_34.setBeanName(\"tcCapSubprograma-consultaCurso\");\n __jsp_taghandler_34.setPath(\"idSubprograma\");\n __jsp_taghandler_34.setStyle(\"width:200px;\");\n __jsp_taghandler_34.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_34, pageContext);\n }\n out.write(__oracle_jsp_text[45]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_35=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_35.setParent(__jsp_taghandler_1);\n __jsp_taghandler_35.setCode(\"sireh.label.spc.capcer.registro.registrarCurso.filtro.ejeTematico\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_35.doStartTag();\n if (__jsp_taghandler_35.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_35.doCatch(th);\n } finally {\n __jsp_taghandler_35.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_35,2);\n }\n out.write(__oracle_jsp_text[46]);\n {\n _oracle._jsp._tag._option_tag __jsp_taghandler_36=(_oracle._jsp._tag._option_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._option_tag.class, pageContext);\n __jsp_taghandler_36.setParent(__jsp_taghandler_1);\n __jsp_taghandler_36.setJspContext(pageContext);\n __jsp_taghandler_36.setKey(\"\");\n __jsp_taghandler_36.setValue(\"selectList.nonValue\");\n __jsp_taghandler_36.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_36, pageContext);\n }\n out.write(__oracle_jsp_text[47]);\n {\n _oracle._jsp._tag._selectList_tag __jsp_taghandler_37=(_oracle._jsp._tag._selectList_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._selectList_tag.class, pageContext);\n __jsp_taghandler_37.setParent(__jsp_taghandler_1);\n __jsp_taghandler_37.setJspContext(pageContext);\n __jsp_taghandler_37.setBeanName(\"tcCapEjeTematico-consultaCurso\");\n __jsp_taghandler_37.setPath(\"idEjeTematico\");\n __jsp_taghandler_37.setStyle(\"width:200px;\");\n __jsp_taghandler_37.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_37, pageContext);\n }\n out.write(__oracle_jsp_text[48]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_38=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_38.setParent(__jsp_taghandler_1);\n __jsp_taghandler_38.setCode(\"sireh.label.spc.capcer.registro.registrarCurso.filtro.modalidad\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_38.doStartTag();\n if (__jsp_taghandler_38.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_38.doCatch(th);\n } finally {\n __jsp_taghandler_38.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_38,2);\n }\n out.write(__oracle_jsp_text[49]);\n {\n _oracle._jsp._tag._option_tag __jsp_taghandler_39=(_oracle._jsp._tag._option_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._option_tag.class, pageContext);\n __jsp_taghandler_39.setParent(__jsp_taghandler_1);\n __jsp_taghandler_39.setJspContext(pageContext);\n __jsp_taghandler_39.setKey(\"\");\n __jsp_taghandler_39.setValue(\"selectList.nonValue\");\n __jsp_taghandler_39.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_39, pageContext);\n }\n out.write(__oracle_jsp_text[50]);\n {\n _oracle._jsp._tag._selectList_tag __jsp_taghandler_40=(_oracle._jsp._tag._selectList_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._selectList_tag.class, pageContext);\n __jsp_taghandler_40.setParent(__jsp_taghandler_1);\n __jsp_taghandler_40.setJspContext(pageContext);\n __jsp_taghandler_40.setBeanName(\"tcCapModalidad-consultaCurso\");\n __jsp_taghandler_40.setPath(\"idModalidad\");\n __jsp_taghandler_40.setStyle(\"width:200px;\");\n __jsp_taghandler_40.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_40, pageContext);\n }\n out.write(__oracle_jsp_text[51]);\n {\n org.apache.taglibs.standard.tag.rt.core.IfTag __jsp_taghandler_41=(org.apache.taglibs.standard.tag.rt.core.IfTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.IfTag.class,\"org.apache.taglibs.standard.tag.rt.core.IfTag test\");\n __jsp_taghandler_41.setParent(__jsp_taghandler_1);\n __jsp_taghandler_41.setTest(OracleJspRuntime.toBoolean( (java.lang.Boolean)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${(consultaCursoDTO.rolEjecutivoContratacion) and consultaCursoDTO.control ne 'ASIGNAR_CALENDARIO'}\",java.lang.Boolean.class, __ojsp_varRes,null)));\n __jsp_tag_starteval=__jsp_taghandler_41.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[52]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_42=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_42.setParent(__jsp_taghandler_41);\n __jsp_taghandler_42.setCode(\"sireh.label.spc.capcer.registro.registrarCurso.filtro.finalidad\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_42.doStartTag();\n if (__jsp_taghandler_42.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_42.doCatch(th);\n } finally {\n __jsp_taghandler_42.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_42,3);\n }\n out.write(__oracle_jsp_text[53]);\n {\n _oracle._jsp._tag._option_tag __jsp_taghandler_43=(_oracle._jsp._tag._option_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._option_tag.class, pageContext);\n __jsp_taghandler_43.setParent(__jsp_taghandler_41);\n __jsp_taghandler_43.setJspContext(pageContext);\n __jsp_taghandler_43.setKey(\"\");\n __jsp_taghandler_43.setValue(\"selectList.nonValue\");\n __jsp_taghandler_43.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_43, pageContext);\n }\n out.write(__oracle_jsp_text[54]);\n {\n _oracle._jsp._tag._selectList_tag __jsp_taghandler_44=(_oracle._jsp._tag._selectList_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._selectList_tag.class, pageContext);\n __jsp_taghandler_44.setParent(__jsp_taghandler_41);\n __jsp_taghandler_44.setJspContext(pageContext);\n __jsp_taghandler_44.setBeanName(\"tcCapFinalidad-consultaCurso\");\n __jsp_taghandler_44.setPath(\"idFinalidad\");\n __jsp_taghandler_44.setStyle(\"width:200px;\");\n __jsp_taghandler_44.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_44, pageContext);\n }\n out.write(__oracle_jsp_text[55]);\n } while (__jsp_taghandler_41.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_41.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_41,2);\n }\n out.write(__oracle_jsp_text[56]);\n {\n org.apache.taglibs.standard.tag.rt.core.IfTag __jsp_taghandler_45=(org.apache.taglibs.standard.tag.rt.core.IfTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.IfTag.class,\"org.apache.taglibs.standard.tag.rt.core.IfTag test\");\n __jsp_taghandler_45.setParent(__jsp_taghandler_1);\n __jsp_taghandler_45.setTest(OracleJspRuntime.toBoolean( (java.lang.Boolean)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${(consultaCursoDTO.rolAdministradorCapacitacion || consultaCursoDTO.rolCoordinacionAdministrativa || consultaCursoDTO.rolOperadorCapacitacion) && (consultaCursoDTO.control == 'ASIGNAR_PARTICIPANTE' or consultaCursoDTO.control eq 'ASIGNAR_CALENDARIO' or consultaCursoDTO.control == 'ASIGNAR_INSTRUCTOR')}\",java.lang.Boolean.class, __ojsp_varRes,null)));\n __jsp_tag_starteval=__jsp_taghandler_45.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[57]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_46=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_46.setParent(__jsp_taghandler_45);\n __jsp_taghandler_46.setCode(\"sireh.label.spc.capcer.registro.registrarCurso.filtro.fechaInicio\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_46.doStartTag();\n if (__jsp_taghandler_46.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_46.doCatch(th);\n } finally {\n __jsp_taghandler_46.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_46,3);\n }\n out.write(__oracle_jsp_text[58]);\n {\n _oracle._jsp._tag._calendar_tag __jsp_taghandler_47=(_oracle._jsp._tag._calendar_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._calendar_tag.class, pageContext);\n __jsp_taghandler_47.setParent(__jsp_taghandler_45);\n __jsp_taghandler_47.setJspContext(pageContext);\n __jsp_taghandler_47.setPath(\"cursoFecIni\");\n __jsp_taghandler_47.setReadonly(\"true\");\n __jsp_taghandler_47.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_47, pageContext);\n }\n out.write(__oracle_jsp_text[59]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_48=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_48.setParent(__jsp_taghandler_45);\n __jsp_taghandler_48.setCode(\"sireh.label.spc.capcer.registro.registrarCurso.filtro.fechaFin\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_48.doStartTag();\n if (__jsp_taghandler_48.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_48.doCatch(th);\n } finally {\n __jsp_taghandler_48.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_48,3);\n }\n out.write(__oracle_jsp_text[60]);\n {\n _oracle._jsp._tag._calendar_tag __jsp_taghandler_49=(_oracle._jsp._tag._calendar_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._calendar_tag.class, pageContext);\n __jsp_taghandler_49.setParent(__jsp_taghandler_45);\n __jsp_taghandler_49.setJspContext(pageContext);\n __jsp_taghandler_49.setPath(\"cursoFecFin\");\n __jsp_taghandler_49.setReadonly(\"true\");\n __jsp_taghandler_49.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_49, pageContext);\n }\n out.write(__oracle_jsp_text[61]);\n } while (__jsp_taghandler_45.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_45.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_45,2);\n }\n out.write(__oracle_jsp_text[62]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_50=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_50.setParent(__jsp_taghandler_1);\n __jsp_taghandler_50.setCode(\"sireh.label.spc.capcer.registro.registrarCurso.filtro.claveCurso\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_50.doStartTag();\n if (__jsp_taghandler_50.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_50.doCatch(th);\n } finally {\n __jsp_taghandler_50.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_50,2);\n }\n out.write(__oracle_jsp_text[63]);\n {\n _oracle._jsp._tag._input_tag __jsp_taghandler_51=(_oracle._jsp._tag._input_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._input_tag.class, pageContext);\n __jsp_taghandler_51.setParent(__jsp_taghandler_1);\n __jsp_taghandler_51.setJspContext(pageContext);\n __jsp_taghandler_51.setPath(\"claveCurso\");\n __jsp_taghandler_51.setMaxlength(\"60\");\n __jsp_taghandler_51.setSize(\"60\");\n __jsp_taghandler_51.setCss(\"anchoInput claveCurso\");\n __jsp_taghandler_51.setUppercase(\"true\");\n __jsp_taghandler_51.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_51, pageContext);\n }\n out.write(__oracle_jsp_text[64]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_52=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_52.setParent(__jsp_taghandler_1);\n __jsp_taghandler_52.setCode(\"sireh.label.spc.capcer.registro.registrarCurso.filtro.estatus\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_52.doStartTag();\n if (__jsp_taghandler_52.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_52.doCatch(th);\n } finally {\n __jsp_taghandler_52.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_52,2);\n }\n out.write(__oracle_jsp_text[65]);\n {\n _oracle._jsp._tag._filter_tag __jsp_taghandler_53=(_oracle._jsp._tag._filter_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._filter_tag.class, pageContext);\n __jsp_taghandler_53.setParent(__jsp_taghandler_1);\n __jsp_taghandler_53.setJspContext(pageContext);\n __jsp_taghandler_53.setProperty(\"ID_CONTROL_CURSO\");\n __jsp_taghandler_53.setCondition(\"IN\");\n __jsp_taghandler_53.setPath(\"estatusCursos\");\n __jsp_taghandler_53.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_53, pageContext);\n }\n out.write(__oracle_jsp_text[66]);\n {\n _oracle._jsp._tag._option_tag __jsp_taghandler_54=(_oracle._jsp._tag._option_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._option_tag.class, pageContext);\n __jsp_taghandler_54.setParent(__jsp_taghandler_1);\n __jsp_taghandler_54.setJspContext(pageContext);\n __jsp_taghandler_54.setKey(\"\");\n __jsp_taghandler_54.setValue(\"selectList.nonValue\");\n __jsp_taghandler_54.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_54, pageContext);\n }\n out.write(__oracle_jsp_text[67]);\n {\n _oracle._jsp._tag._selectList_tag __jsp_taghandler_55=(_oracle._jsp._tag._selectList_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._selectList_tag.class, pageContext);\n __jsp_taghandler_55.setParent(__jsp_taghandler_1);\n __jsp_taghandler_55.setJspContext(pageContext);\n __jsp_taghandler_55.setBeanName(\"tcCapControlCurso-consultaCurso\");\n __jsp_taghandler_55.setPath(\"idControlCurso\");\n __jsp_taghandler_55.setStyle(\"width:200px;\");\n __jsp_taghandler_55.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_55, pageContext);\n }\n out.write(__oracle_jsp_text[68]);\n {\n org.apache.taglibs.standard.tag.common.core.ChooseTag __jsp_taghandler_56=(org.apache.taglibs.standard.tag.common.core.ChooseTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.common.core.ChooseTag.class,\"org.apache.taglibs.standard.tag.common.core.ChooseTag\");\n __jsp_taghandler_56.setParent(__jsp_taghandler_1);\n __jsp_tag_starteval=__jsp_taghandler_56.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[69]);\n {\n org.apache.taglibs.standard.tag.rt.core.WhenTag __jsp_taghandler_57=(org.apache.taglibs.standard.tag.rt.core.WhenTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.WhenTag.class,\"org.apache.taglibs.standard.tag.rt.core.WhenTag test\");\n __jsp_taghandler_57.setParent(__jsp_taghandler_56);\n __jsp_taghandler_57.setTest(OracleJspRuntime.toBoolean( (java.lang.Boolean)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${consultaCursoDTO.control eq 'ASIGNAR_CALENDARIO' || consultaCursoDTO.control eq 'ASIGNAR_PARTICIPANTE' || consultaCursoDTO.control eq 'ASIGNAR_INSTRUCTOR'}\",java.lang.Boolean.class, __ojsp_varRes,null)));\n __jsp_tag_starteval=__jsp_taghandler_57.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[70]);\n {\n _oracle._jsp._tag._submit_tag __jsp_taghandler_58=(_oracle._jsp._tag._submit_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._submit_tag.class, pageContext);\n __jsp_taghandler_58.setParent(__jsp_taghandler_57);\n __jsp_taghandler_58.setJspContext(pageContext);\n __jsp_taghandler_58.setPath(\"muestraRegistros\");\n __jsp_taghandler_58.setAction((java.lang.String) (\"registroCursoSPC/\"+ (java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${consultaCursoDTO.urlOrigen}\",java.lang.String.class, __ojsp_varRes, null)));\n __jsp_taghandler_58.setValue(\"submit.search\");\n __jsp_taghandler_58.setOnclick(\"cambioFechas()\");\n __jsp_taghandler_58.setProgressBar(\"true\");\n __jsp_taghandler_58.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_58, pageContext);\n }\n out.write(__oracle_jsp_text[71]);\n } while (__jsp_taghandler_57.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_57.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_57,3);\n }\n out.write(__oracle_jsp_text[72]);\n {\n org.apache.taglibs.standard.tag.common.core.OtherwiseTag __jsp_taghandler_59=(org.apache.taglibs.standard.tag.common.core.OtherwiseTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.common.core.OtherwiseTag.class,\"org.apache.taglibs.standard.tag.common.core.OtherwiseTag\");\n __jsp_taghandler_59.setParent(__jsp_taghandler_56);\n __jsp_tag_starteval=__jsp_taghandler_59.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[73]);\n {\n _oracle._jsp._tag._submit_tag __jsp_taghandler_60=(_oracle._jsp._tag._submit_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._submit_tag.class, pageContext);\n __jsp_taghandler_60.setParent(__jsp_taghandler_59);\n __jsp_taghandler_60.setJspContext(pageContext);\n __jsp_taghandler_60.setPath(\"muestraRegistros\");\n __jsp_taghandler_60.setAction((java.lang.String) (\"registroCursoSPC/\"+ (java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${consultaCursoDTO.urlOrigen}\",java.lang.String.class, __ojsp_varRes, null)));\n __jsp_taghandler_60.setValue(\"submit.search\");\n __jsp_taghandler_60.setProgressBar(\"true\");\n __jsp_taghandler_60.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_60, pageContext);\n }\n out.write(__oracle_jsp_text[74]);\n } while (__jsp_taghandler_59.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_59.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_59,3);\n }\n out.write(__oracle_jsp_text[75]);\n } while (__jsp_taghandler_56.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_56.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_56,2);\n }\n out.write(__oracle_jsp_text[76]);\n {\n _oracle._jsp._tag._submit_tag __jsp_taghandler_61=(_oracle._jsp._tag._submit_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._submit_tag.class, pageContext);\n __jsp_taghandler_61.setParent(__jsp_taghandler_1);\n __jsp_taghandler_61.setJspContext(pageContext);\n __jsp_taghandler_61.setPath(\"cancel\");\n __jsp_taghandler_61.setAction((java.lang.String) (\"registroCursoSPC/\"+ (java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${consultaCursoDTO.urlOrigen}\",java.lang.String.class, __ojsp_varRes, null)));\n __jsp_taghandler_61.setValue(\"submit.clean\");\n __jsp_taghandler_61.setProgressBar(\"true\");\n __jsp_taghandler_61.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_61, pageContext);\n }\n out.write(__oracle_jsp_text[77]);\n {\n org.apache.taglibs.standard.tag.common.core.ChooseTag __jsp_taghandler_62=(org.apache.taglibs.standard.tag.common.core.ChooseTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.common.core.ChooseTag.class,\"org.apache.taglibs.standard.tag.common.core.ChooseTag\");\n __jsp_taghandler_62.setParent(__jsp_taghandler_1);\n __jsp_tag_starteval=__jsp_taghandler_62.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[78]);\n {\n org.apache.taglibs.standard.tag.rt.core.WhenTag __jsp_taghandler_63=(org.apache.taglibs.standard.tag.rt.core.WhenTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.WhenTag.class,\"org.apache.taglibs.standard.tag.rt.core.WhenTag test\");\n __jsp_taghandler_63.setParent(__jsp_taghandler_62);\n __jsp_taghandler_63.setTest(OracleJspRuntime.toBoolean( (java.lang.Boolean)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${consultaCursoDTO.muestraRegistros}\",java.lang.Boolean.class, __ojsp_varRes,null)));\n __jsp_tag_starteval=__jsp_taghandler_63.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[79]);\n {\n _oracle._jsp._tag._filter_tag __jsp_taghandler_64=(_oracle._jsp._tag._filter_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._filter_tag.class, pageContext);\n __jsp_taghandler_64.setParent(__jsp_taghandler_63);\n __jsp_taghandler_64.setJspContext(pageContext);\n __jsp_taghandler_64.setProperty(\"C.ID_COORDINACION\");\n __jsp_taghandler_64.setCondition(\"=\");\n __jsp_taghandler_64.setPath(\"idCoordinacion\");\n __jsp_taghandler_64.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_64, pageContext);\n }\n out.write(__oracle_jsp_text[80]);\n {\n _oracle._jsp._tag._filter_tag __jsp_taghandler_65=(_oracle._jsp._tag._filter_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._filter_tag.class, pageContext);\n __jsp_taghandler_65.setParent(__jsp_taghandler_63);\n __jsp_taghandler_65.setJspContext(pageContext);\n __jsp_taghandler_65.setProperty(\"C.ID_PROVEEDOR\");\n __jsp_taghandler_65.setCondition(\"=\");\n __jsp_taghandler_65.setPath(\"idProveedor\");\n __jsp_taghandler_65.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_65, pageContext);\n }\n out.write(__oracle_jsp_text[81]);\n {\n _oracle._jsp._tag._filter_tag __jsp_taghandler_66=(_oracle._jsp._tag._filter_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._filter_tag.class, pageContext);\n __jsp_taghandler_66.setParent(__jsp_taghandler_63);\n __jsp_taghandler_66.setJspContext(pageContext);\n __jsp_taghandler_66.setProperty(\"C.RFC_OPER_DGRH\");\n __jsp_taghandler_66.setCondition(\"=\");\n __jsp_taghandler_66.setPath(\"rfcOperDgrh\");\n __jsp_taghandler_66.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_66, pageContext);\n }\n out.write(__oracle_jsp_text[82]);\n {\n _oracle._jsp._tag._filter_tag __jsp_taghandler_67=(_oracle._jsp._tag._filter_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._filter_tag.class, pageContext);\n __jsp_taghandler_67.setParent(__jsp_taghandler_63);\n __jsp_taghandler_67.setJspContext(pageContext);\n __jsp_taghandler_67.setProperty(\"C.ID_SUBPROGRAMA\");\n __jsp_taghandler_67.setCondition(\"=\");\n __jsp_taghandler_67.setPath(\"idSubprograma\");\n __jsp_taghandler_67.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_67, pageContext);\n }\n out.write(__oracle_jsp_text[83]);\n {\n _oracle._jsp._tag._filter_tag __jsp_taghandler_68=(_oracle._jsp._tag._filter_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._filter_tag.class, pageContext);\n __jsp_taghandler_68.setParent(__jsp_taghandler_63);\n __jsp_taghandler_68.setJspContext(pageContext);\n __jsp_taghandler_68.setProperty(\"C.ID_EJE_TEMATICO\");\n __jsp_taghandler_68.setCondition(\"=\");\n __jsp_taghandler_68.setPath(\"idEjeTematico\");\n __jsp_taghandler_68.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_68, pageContext);\n }\n out.write(__oracle_jsp_text[84]);\n {\n _oracle._jsp._tag._filter_tag __jsp_taghandler_69=(_oracle._jsp._tag._filter_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._filter_tag.class, pageContext);\n __jsp_taghandler_69.setParent(__jsp_taghandler_63);\n __jsp_taghandler_69.setJspContext(pageContext);\n __jsp_taghandler_69.setProperty(\"CP.ID_MODALIDAD\");\n __jsp_taghandler_69.setCondition(\"=\");\n __jsp_taghandler_69.setPath(\"idModalidad\");\n __jsp_taghandler_69.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_69, pageContext);\n }\n out.write(__oracle_jsp_text[85]);\n {\n _oracle._jsp._tag._filter_tag __jsp_taghandler_70=(_oracle._jsp._tag._filter_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._filter_tag.class, pageContext);\n __jsp_taghandler_70.setParent(__jsp_taghandler_63);\n __jsp_taghandler_70.setJspContext(pageContext);\n __jsp_taghandler_70.setProperty(\"C.CURSO_CLAVE\");\n __jsp_taghandler_70.setCondition(\"contains\");\n __jsp_taghandler_70.setPath(\"claveCurso\");\n __jsp_taghandler_70.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_70, pageContext);\n }\n out.write(__oracle_jsp_text[86]);\n {\n _oracle._jsp._tag._filter_tag __jsp_taghandler_71=(_oracle._jsp._tag._filter_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._filter_tag.class, pageContext);\n __jsp_taghandler_71.setParent(__jsp_taghandler_63);\n __jsp_taghandler_71.setJspContext(pageContext);\n __jsp_taghandler_71.setProperty(\"C.ID_CONTROL_CURSO\");\n __jsp_taghandler_71.setCondition(\"=\");\n __jsp_taghandler_71.setPath(\"idControlCurso\");\n __jsp_taghandler_71.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_71, pageContext);\n }\n out.write(__oracle_jsp_text[87]);\n {\n org.apache.taglibs.standard.tag.rt.core.IfTag __jsp_taghandler_72=(org.apache.taglibs.standard.tag.rt.core.IfTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.IfTag.class,\"org.apache.taglibs.standard.tag.rt.core.IfTag test\");\n __jsp_taghandler_72.setParent(__jsp_taghandler_63);\n __jsp_taghandler_72.setTest(OracleJspRuntime.toBoolean( (java.lang.Boolean)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${consultaCursoDTO.control eq 'ASIGNAR_CALENDARIO' || consultaCursoDTO.control eq 'ASIGNAR_PARTICIPANTE' || consultaCursoDTO.control eq 'ASIGNAR_INSTRUCTOR'}\",java.lang.Boolean.class, __ojsp_varRes,null)));\n __jsp_tag_starteval=__jsp_taghandler_72.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[88]);\n {\n _oracle._jsp._tag._filter_tag __jsp_taghandler_73=(_oracle._jsp._tag._filter_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._filter_tag.class, pageContext);\n __jsp_taghandler_73.setParent(__jsp_taghandler_72);\n __jsp_taghandler_73.setJspContext(pageContext);\n __jsp_taghandler_73.setProperty(\"to_char(C.CURSO_FEC_INI, 'yyyy/mm/dd') >\");\n __jsp_taghandler_73.setCondition(\"=\");\n __jsp_taghandler_73.setPath(\"cursoFecIniTxt\");\n __jsp_taghandler_73.setType(\"string\");\n __jsp_taghandler_73.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_73, pageContext);\n }\n out.write(__oracle_jsp_text[89]);\n {\n _oracle._jsp._tag._filter_tag __jsp_taghandler_74=(_oracle._jsp._tag._filter_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._filter_tag.class, pageContext);\n __jsp_taghandler_74.setParent(__jsp_taghandler_72);\n __jsp_taghandler_74.setJspContext(pageContext);\n __jsp_taghandler_74.setProperty(\"to_char(C.CURSO_FEC_FIN, 'yyyy/mm/dd') <\");\n __jsp_taghandler_74.setCondition(\"=\");\n __jsp_taghandler_74.setPath(\"cursoFecFinTxt\");\n __jsp_taghandler_74.setType(\"string\");\n __jsp_taghandler_74.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_74, pageContext);\n }\n out.write(__oracle_jsp_text[90]);\n } while (__jsp_taghandler_72.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_72.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_72,4);\n }\n out.write(__oracle_jsp_text[91]);\n {\n _oracle._jsp._tag._pagedList_tag __jsp_taghandler_75=(_oracle._jsp._tag._pagedList_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._pagedList_tag.class, pageContext);\n __jsp_taghandler_75.setParent(__jsp_taghandler_63);\n __jsp_taghandler_75.setJspContext(pageContext);\n __jsp_taghandler_75.setBeanName((java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${consultaCursoDTO.beanName}\",java.lang.String.class, __ojsp_varRes,null));\n __jsp_taghandler_75.setBaseUrl((java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${consultaCursoDTO.urlOrigen}\",java.lang.String.class, __ojsp_varRes,null));\n __jsp_taghandler_75.setAppendFilters(\"false\");\n __jsp_taghandler_75.setCheckbox(\"true\");\n __jsp_taghandler_75.setChkProperty(\"idCursos\");\n __jsp_taghandler_75.setJspBody(new _consultaCurso_OjspFragmentSupport( 0, pageContext, __jsp_taghandler_75, __ojsp_varRes));\n __jsp_taghandler_75.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_75, pageContext);\n }\n out.write(__oracle_jsp_text[92]);\n } while (__jsp_taghandler_63.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_63.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_63,3);\n }\n out.write(__oracle_jsp_text[93]);\n {\n org.apache.taglibs.standard.tag.common.core.OtherwiseTag __jsp_taghandler_131=(org.apache.taglibs.standard.tag.common.core.OtherwiseTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.common.core.OtherwiseTag.class,\"org.apache.taglibs.standard.tag.common.core.OtherwiseTag\");\n __jsp_taghandler_131.setParent(__jsp_taghandler_62);\n __jsp_tag_starteval=__jsp_taghandler_131.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[94]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_132=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_132.setParent(__jsp_taghandler_131);\n __jsp_taghandler_132.setCode(\"pagedList.empty.content\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_132.doStartTag();\n if (__jsp_taghandler_132.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_132.doCatch(th);\n } finally {\n __jsp_taghandler_132.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_132,4);\n }\n out.write(__oracle_jsp_text[95]);\n } while (__jsp_taghandler_131.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_131.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_131,3);\n }\n out.write(__oracle_jsp_text[96]);\n } while (__jsp_taghandler_62.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_62.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_62,2);\n }\n out.write(__oracle_jsp_text[97]);\n {\n org.apache.taglibs.standard.tag.rt.core.IfTag __jsp_taghandler_133=(org.apache.taglibs.standard.tag.rt.core.IfTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.IfTag.class,\"org.apache.taglibs.standard.tag.rt.core.IfTag test\");\n __jsp_taghandler_133.setParent(__jsp_taghandler_1);\n __jsp_taghandler_133.setTest(OracleJspRuntime.toBoolean( (java.lang.Boolean)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${(consultaCursoDTO.rolAdministradorCapacitacion || consultaCursoDTO.rolOperadorCapacitacion) && consultaCursoDTO.control eq 'REG_CURSO'}\",java.lang.Boolean.class, __ojsp_varRes,null)));\n __jsp_tag_starteval=__jsp_taghandler_133.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[98]);\n {\n _oracle._jsp._tag._submit_tag __jsp_taghandler_134=(_oracle._jsp._tag._submit_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._submit_tag.class, pageContext);\n __jsp_taghandler_134.setParent(__jsp_taghandler_133);\n __jsp_taghandler_134.setJspContext(pageContext);\n __jsp_taghandler_134.setAction((java.lang.String) (\"registroCursoSPC/\"+ (java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${consultaCursoDTO.urlRegistroCurso}\",java.lang.String.class, __ojsp_varRes, null)));\n __jsp_taghandler_134.setValue(\"submit.registrar\");\n __jsp_taghandler_134.setProgressBar(\"true\");\n __jsp_taghandler_134.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_134, pageContext);\n }\n out.write(__oracle_jsp_text[99]);\n } while (__jsp_taghandler_133.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_133.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_133,2);\n }\n out.write(__oracle_jsp_text[100]);\n {\n org.apache.taglibs.standard.tag.rt.core.IfTag __jsp_taghandler_135=(org.apache.taglibs.standard.tag.rt.core.IfTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.IfTag.class,\"org.apache.taglibs.standard.tag.rt.core.IfTag test\");\n __jsp_taghandler_135.setParent(__jsp_taghandler_1);\n __jsp_taghandler_135.setTest(OracleJspRuntime.toBoolean( (java.lang.Boolean)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${consultaCursoDTO.rolAdministradorCapacitacion && consultaCursoDTO.control eq 'REG_CURSO'}\",java.lang.Boolean.class, __ojsp_varRes,null)));\n __jsp_tag_starteval=__jsp_taghandler_135.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[101]);\n {\n _oracle._jsp._tag._submit_tag __jsp_taghandler_136=(_oracle._jsp._tag._submit_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._submit_tag.class, pageContext);\n __jsp_taghandler_136.setParent(__jsp_taghandler_135);\n __jsp_taghandler_136.setJspContext(pageContext);\n __jsp_taghandler_136.setPath(\"eliminarCursos\");\n __jsp_taghandler_136.setAction((java.lang.String) (\"registroCursoSPC/\"+ (java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${consultaCursoDTO.urlDeleteRegistroCurso}\",java.lang.String.class, __ojsp_varRes, null)));\n __jsp_taghandler_136.setValue(\"submit.delete\");\n __jsp_taghandler_136.setAlertCode(\"confirm.spc.capcer.registro.eliminarCurso\");\n __jsp_taghandler_136.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_136, pageContext);\n }\n out.write(__oracle_jsp_text[102]);\n } while (__jsp_taghandler_135.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_135.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_135,2);\n }\n out.write(__oracle_jsp_text[103]);\n } while (__jsp_taghandler_1.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_1.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_1.doCatch(th);\n } finally {\n __jsp_taghandler_1.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_1,1);\n }\n\n }\n catch (Throwable e) {\n if (!(e instanceof javax.servlet.jsp.SkipPageException)){\n try {\n if (out != null) out.clear();\n }\n catch (Exception clearException) {\n }\n pageContext.handlePageException(e);\n }\n }\n finally {\n OracleJspRuntime.extraHandlePCFinally(pageContext, true);\n JspFactory.getDefaultFactory().releasePageContext(pageContext);\n }\n\n }", "public void setSession(Session session) { this.session = session; }", "@Test\r\n void checkSession() {\n }", "@Context\r\npublic interface ThreadContext\r\n{\r\n /**\r\n * Get the minimum thread level.\r\n *\r\n * @param min the default minimum value\r\n * @return the minimum thread level\r\n */\r\n int getMin( int min );\r\n \r\n /**\r\n * Return maximum thread level.\r\n *\r\n * @param max the default maximum value\r\n * @return the maximum thread level\r\n */\r\n int getMax( int max );\r\n \r\n /**\r\n * Return the deamon flag.\r\n *\r\n * @param flag true if a damon thread \r\n * @return the deamon thread policy\r\n */\r\n boolean getDaemon( boolean flag );\r\n \r\n /**\r\n * Get the thread pool name.\r\n *\r\n * @param name the pool name\r\n * @return the name\r\n */\r\n String getName( String name );\r\n \r\n /**\r\n * Get the thread pool priority.\r\n *\r\n * @param priority the thread pool priority\r\n * @return the priority\r\n */\r\n int getPriority( int priority );\r\n \r\n /**\r\n * Get the maximum idle time.\r\n *\r\n * @param idle the default maximum idle time\r\n * @return the maximum idle time in milliseconds\r\n */\r\n int getIdle( int idle );\r\n \r\n}", "public Session getSession() throws DAOException {\n // Injection fails for this non-managed class.\n DAOException ex = null;\n String pu = PERSISTENCE_UNIT;\n if(session == null || !em.isOpen()) {\n session = null;\n try {\n em = (EntityManager)new InitialContext().lookup(pu);\n } catch(Exception loopEx) {\n ex = new DAOException(loopEx);\n logger.error(\"Persistence unit JNDI name \" + pu + \" failed.\");\n }\n }\n\n getHibernateSession();\n if(ex != null) {\n ex.printStackTrace();\n }\n return session;\n }", "private void setupSession() {\n // TODO Retreived the cached Evernote AuthenticationResult if it exists\n// if (hasCachedEvernoteCredentials) {\n// AuthenticationResult result = new AuthenticationResult(authToken, noteStoreUrl, webApiUrlPrefix, userId);\n// session = new EvernoteSession(info, result, getTempDir());\n// }\n ConnectionUtils.connectFirstTime();\n updateUiForLoginState();\n }", "private static PersistenceSession getPersistenceSession() {\n return NakedObjectsContext.getPersistenceSession();\n }", "protected Session getCurrentSession()\n \t{\n \t\treturn this.sessionFactory.getCurrentSession();\n \t}", "public LocalSession session() { return session; }" ]
[ "0.6473966", "0.63263845", "0.61471355", "0.6061772", "0.6022456", "0.5986965", "0.5984618", "0.59053445", "0.58927196", "0.5854209", "0.58172375", "0.57504666", "0.5729264", "0.5709379", "0.570514", "0.5650756", "0.5629556", "0.5619899", "0.56184995", "0.5589165", "0.5588636", "0.5587264", "0.55586934", "0.55526084", "0.5549756", "0.553332", "0.5525361", "0.5520768", "0.5518443", "0.55182445", "0.5517289", "0.5517289", "0.5503349", "0.5502861", "0.54978573", "0.5493193", "0.548792", "0.54598266", "0.54564077", "0.54176325", "0.53971744", "0.53967625", "0.53831625", "0.53709424", "0.5365145", "0.53611344", "0.53557754", "0.5353759", "0.5345912", "0.5341891", "0.5331591", "0.5325726", "0.53216726", "0.5321385", "0.531892", "0.5316479", "0.5310382", "0.53013223", "0.53013223", "0.52940154", "0.5293898", "0.5289585", "0.528624", "0.5282156", "0.5280791", "0.52796304", "0.5267187", "0.5251715", "0.5250416", "0.52496743", "0.52474445", "0.52289873", "0.5213191", "0.52098596", "0.52088654", "0.5201188", "0.5199426", "0.5199288", "0.51982296", "0.51960987", "0.51935935", "0.5176626", "0.5175149", "0.51701397", "0.5164553", "0.51641977", "0.5160572", "0.5159964", "0.51594627", "0.5155657", "0.51496303", "0.51469606", "0.51443267", "0.51439935", "0.5143837", "0.5139859", "0.5137244", "0.5121727", "0.51183265", "0.51119953", "0.5110371" ]
0.0
-1
Tries to create SessionFactory and logs success or failure. Must be called on web application startup.
private static synchronized void lazyinit() { try { if (sessionFactory == null) { System.out.println("Going to create SessionFactory "); sessionFactory = new Configuration().configure().buildSessionFactory(); // sessionFactory.openSession(); System.out.println("Hibernate could create SessionFactory"); } } catch (Throwable t) { System.out.println("Hibernate could not create SessionFactory"); t.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static SessionFactory buildSessionFact() {\n try {\n\n return new Configuration().configure(\"hibernate.cfg.xml\").buildSessionFactory();\n\n \n } catch (Throwable ex) {\n \n System.err.println(\"Initial SessionFactory creation failed.\" + ex);\n throw new ExceptionInInitializerError(ex);\n }\n }", "public void startFactory() {\n if (!isStarted) {\n logger.info(\"Starting SessionListenerFactory.\");\n APIEventBus.getInstance().subscribe(this);\n isStarted = true;\n }\n }", "public synchronized static SessionFactory createSessionFactory() {\r\n\r\n if (sessionFactory == null) {\r\n LOG.debug(MODULE + \"in createSessionFactory\");\r\n sessionFactory = new Configuration().configure().buildSessionFactory();\r\n// ApplicationContext appcontext = ApplicationContextProvider.getApplicationContext();\r\n// sessionFactory = (SessionFactory) appcontext.getBean(\"sessionFactory\");\r\n LOG.debug(MODULE + \"sessionFactory created\");\r\n }\r\n\r\n return sessionFactory;\r\n }", "static void initialize() {\n final StandardServiceRegistry registry = new StandardServiceRegistryBuilder()\r\n .configure() // configures settings from hibernate.cfg.xml\r\n .build();\r\n try {\r\n sessionFactory = new MetadataSources( registry ).buildMetadata().buildSessionFactory();\r\n }\r\n catch (Exception e) {\r\n StandardServiceRegistryBuilder.destroy( registry );\r\n }\r\n }", "static void initialize() {\n final StandardServiceRegistry registry = new StandardServiceRegistryBuilder()\n .configure() // configures settings from hibernate.cfg.xml\n .build();\n try {\n sessionFactory = new MetadataSources( registry ).buildMetadata().buildSessionFactory();\n }\n catch (Exception e) {\n StandardServiceRegistryBuilder.destroy( registry );\n }\n }", "protected static void setUp() throws Exception {\n // A SessionFactory is set up once for an application!\n final StandardServiceRegistry registry = new StandardServiceRegistryBuilder()\n .configure(\"conflict.cfg.xml\")\n .build();\n try {\n sessionFactory = new MetadataSources(registry).buildMetadata().buildSessionFactory();\n } catch (Exception e) {\n e.printStackTrace();\n StandardServiceRegistryBuilder.destroy(registry);\n }\n }", "private SessionFactoryUtil() {\r\n try {\r\n LOG.info(\"Configurando hibernate.cfg.xml\");\r\n CfgFile cfgFile = new CfgFile();\r\n Configuration configure = new Configuration().configure(new File(cfgFile.getPathFile()));\r\n cfgFile.toBuildMetaData(configure);\r\n ServiceRegistry serviceRegistry = new StandardServiceRegistryBuilder().applySettings(configure.getProperties()).build();\r\n sessionFactory = configure.buildSessionFactory(serviceRegistry);\r\n LOG.info(\"Configuracion se cargo a memoria de forma correcta\");\r\n } // try\r\n catch (Exception e) {\r\n Error.mensaje(e);\r\n } // catch\r\n }", "public static boolean isInitialized() {\n \treturn sessionFactory != null;\n }", "protected void afterSessionFactoryCreation() throws Exception {\n\t}", "protected final SessionFactory getSessionFactory() {\n\t\tif (this.sessionFactory == null) {\n\t\t\tthrow new IllegalStateException(\"SessionFactory not initialized yet\");\n\t\t}\n\t\treturn this.sessionFactory;\n\t}", "protected abstract SessionFactory buildSessionFactory() throws Exception;", "protected void setUp() throws Exception {\n\t\tfinal StandardServiceRegistry registry = new StandardServiceRegistryBuilder().configure().build();\n\t\ttry {\n\t\t\tsessionFactory = new MetadataSources(registry).buildMetadata().buildSessionFactory();\n\t\t} catch (Exception e) {\n\t\t\tStandardServiceRegistryBuilder.destroy(registry);\n\t\t}\n\t}", "private static void createSessionFactory() {\n\t\ttry {\n\t\t\tif (sessionFactory == null) {\n\n\t\t\t\tProperties properties = new Properties();\n\t\t\t\tproperties.load(ClassLoader.getSystemResourceAsStream(\"hibernate.properties\"));\n\n\t\t\t\tConfiguration configuration = new Configuration();\n\t\t\t\tEntityScanner.scanPackages(\"musala.schoolapp.model\").addTo(configuration);\n\t\t\t\tconfiguration.mergeProperties(properties).configure();\n\t\t\t\tStandardServiceRegistry builder = new StandardServiceRegistryBuilder()\n\t\t\t\t\t\t.applySettings(configuration.getProperties()).build();\n\t\t\t\tsessionFactory = configuration.buildSessionFactory(builder);\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tSystem.out.println(\"Failed to create session factory object.\");\n\t\t\tex.printStackTrace();\n\t\t}\n\t}", "@Test\n\tpublic void testIsSession() {\n\t\t\n\t\tclub.CreerSession();\n\t\tassertNotNull(\"Aucune session n'a été pas créée\", club.getSession());\n\t\t\n\t}", "public static Session createSession(SessionFactory factory){\n Session s;\n\n if((s = (Session) _sessionRef.get()) == null) {\n s = factory.openSession();\n _sessionRef.set(s);\n }\n else{\n if(!s.isConnected())s.reconnect();\n }\n\n return s; \n }", "@Override\n public void initSessionFactories() {\n super.initSessionFactories();\n\n sessionFactories.put(EntityCache.class, new SessionFactory() {\n\n @Override\n public Class<?> getSessionType() {\n return EntityCache.class;\n }\n @Override\n public Session openSession(CommandContext commandContext) {\n return new EntityCacheImpl();\n }\n });\n }", "private SessionFactoryUtil() {\r\n\t}", "@BeforeClass\n public static void initTestClass() throws Exception {\n Map props = MapUtil.mapIt(\"hibernate.connection.url\", \"jdbc:mysql://localhost:3306/event_test\");\n SnowTestSupportNG.initWebApplication(\"src/main/webapp\", props);\n\n inView = appInjector.getInstance(HibernateSessionInViewHandler.class);\n categoryDao = appInjector.getInstance(CategoryDao.class);\n }", "public Session() {\n\t\tLogger.log(\"Creating application session\");\n\t}", "public static SessionFactory getSessionFactory() {\r\n\t\t/*\r\n\t\t * Instead of a static variable, use JNDI: SessionFactory sessions =\r\n\t\t * null; try { Context ctx = new InitialContext(); String jndiName =\r\n\t\t * \"java:hibernate/HibernateFactory\"; sessions =\r\n\t\t * (SessionFactory)ctx.lookup(jndiName); } catch (NamingException ex) {\r\n\t\t * throw new InfrastructureException(ex); } return sessions;\r\n\t\t */\r\n\t\treturn sessionFactory;\r\n\t}", "@Override\n\tpublic void sessionCreated(IoSession arg0) throws Exception {\n\n\t}", "private void initialisation()\n\t{\n\t\tdaoFactory = new DaoFactory();\n\n\t\ttry\n\t\t{\n\t\t\tequationStandardSessions = EquationCommonContext.getContext().getGlobalProcessingEquationStandardSessions(\n\t\t\t\t\t\t\tsession.getSessionIdentifier());\n\t\t}\n\t\tcatch (Exception eQException)\n\t\t{\n\t\t\tif (LOG.isErrorEnabled())\n\t\t\t{\n\t\t\t\tStringBuilder message = new StringBuilder(\"There is a problem creating Global processing the sessions\");\n\t\t\t\tLOG.error(message.toString(), eQException);\n\t\t\t}\n\t\t}\n\t}", "public void init(SessionFactory sessFactory) throws HibException;", "public void sessionCreated(IoSession session) { }", "public static SessionFactory getSessionFactory() {\n\t\treturn sessionFactory;\r\n\t}", "@Test\r\n void checkSession() {\n }", "public SessionFactory getFactory() {\n\t\treturn factory;\n\t}", "public interface SessionFactory {\n /**\n * Retrieves a new session. If the session isn't closed, second call from the same thread would\n * result in retrieving the same session\n *\n * @return\n */\n Session getSession();\n\n /**\n * Closes the current session associated with this transaction if present\n */\n void closeSession();\n\n /**\n * Returns true if we have connected the factory to redis\n *\n * @return\n */\n boolean isConnected();\n\n /**\n * Closes the session factory which disposes of the underlying redis pool\n */\n void close();\n}", "public static void open() {\r\n final Session session = sessionFactory.isClosed() ? sessionFactory.openSession() : sessionFactory.getCurrentSession();\r\n session.beginTransaction();\r\n }", "public static SessionFactory getSessionFactory() {\n\t\tif (sessionFactory == null) {\n\t\t\tcreateSessionFactory();\n\t\t}\n\t\treturn sessionFactory;\n\t}", "public static SessionFactory getSessionFactory() {\n\t\treturn sessionFactory;\n\t}", "public PaymentDAOImpl(SessionFactory sessionfactory)\n\t{\n\tthis.sessionFactory=sessionfactory; \n\tlog.debug(\"Successfully estblished connection\");\n\t}", "public static SessionFactory getSessionFactory() {\n \t\n \treturn sessionFactory;\n }", "@Test\n public void testInit() {\n assertNotNull(\"The before class is not working properly\", session);\n }", "@Test\n public void testStartSession() {\n startSession();\n }", "@Override\n public void sessionCreated(IoSession session) {\n }", "public static void rebuildSessionFactory() {\r\n\t\t\ttry {\r\n\t\t\t\t\r\n\t\t\t\tserviceRegistry = new ServiceRegistryBuilder().applySettings(\r\n\t\t\t\t\t\tcfg.getProperties()).buildServiceRegistry();\r\n\t\t\t\tsessionFactory = cfg.buildSessionFactory(serviceRegistry);\r\n\t\t\t\t\r\n\r\n\t\t\t} catch (Throwable ex) {\r\n\t\t\t\tSystem.err.println(\"Failed to create sessionFactory object.\" + ex);\r\n\t\t\t\tthrow new ExceptionInInitializerError(ex);\r\n\t\t\t}\r\n\t\t}", "public abstract void initialize(ISession session);", "public static void initialize(Configuration config) {\n // Create the SessionFactory\n \tif (sessionFactory != null) {\n \t\tthrow new IllegalStateException(\"HibernateUtil already initialized.\");\n \t}\n \tHibernateUtil.configuration = config;\n \t\n sessionFactory = config.buildSessionFactory();\n }", "private static SessionFactory buildSessionFactory() {\n\t\ttry {\n\t\t\tConfiguration config = new Configuration().configure(); \n\t\t\tServiceRegistry serviceRegistry =\n\t\t\t\t\tnew StandardServiceRegistryBuilder()\n\t\t\t.applySettings(config.getProperties()).build();\n\n\t\t\tHibernatePBEEncryptorRegistry registry = HibernatePBEEncryptorRegistry.getInstance();\n\t\t\t\n\t\t\tStandardPBEStringEncryptor myEncryptor = new StandardPBEStringEncryptor();\n\t\t\t// FIXME : this is insecure and needs to be fixed\n\t\t\tmyEncryptor.setPassword(\"123\");\n\t\t\tregistry.registerPBEStringEncryptor(\"myHibernateStringEncryptor\", myEncryptor);\n\t\t\t\n\t\t\t\n\t\t\treturn config.buildSessionFactory(serviceRegistry); \n\t\t}\n\t\tcatch (Throwable ex) {\n\t\t\t// Make sure you log the exception, as it might be swallowed\n\t\t\tSystem.err.println(\"Initial SessionFactory creation failed.\" + ex);\n\t\t\tthrow new ExceptionInInitializerError(ex);\n\t\t}\n\t}", "public void testGetSessionContext() throws Exception {\n assertNotNull(\"The session context has to be set.\", invoiceSessionBean.getSessionContext());\n }", "@Override\n\t\tpublic SessionFactoryImpl call() throws Exception {\n\t\t\tClassPathXmlApplicationContext applicationContext=new ClassPathXmlApplicationContext(\"spring-mybatis.xml\");\n\t\t\t\n\t\t\tSessionFactoryImpl sessionFactoryImpl=(SessionFactoryImpl) applicationContext.getBean(\"sessionFactory\");\n\n\t\t\treturn sessionFactoryImpl;\n\t\t}", "@AfterClass\n\tpublic static void closeSessionFactory() {\n sessionFactory.close();\n\t}", "public static Session openSession() {\n \treturn sessionFactory.openSession();\n }", "protected SessionFactory getSessionFactory() {\n\t\treturn this.sessionFactory;\n\t}", "public static SessionFactory getSessionFactory() {\n\n if(sessionFactory == null) {\n try {\n MetadataSources metadataSources = new MetadataSources(configureServiceRegistry());\n\n addEntityClasses(metadataSources);\n\n sessionFactory = metadataSources.buildMetadata()\n .getSessionFactoryBuilder()\n .build();\n\n } catch (Exception e) {\n e.printStackTrace();\n if(registry != null)\n StandardServiceRegistryBuilder.destroy(registry);\n }\n }\n\n return sessionFactory;\n }", "public SessionFactory getSessionFactory()\n {\n return sessionFactory;\n }", "public static Session register(SessionFactory factory) throws IllegalStateException {\n if(_sessionRef.get() != null) {\n throw new IllegalStateException(\n \"Thread already registered with a session\");\n }\n\n Session s = factory.openSession();\n _sessionRef.set(s);\n return s;\n }", "@BeforeClass\n\tpublic static void setUp() throws Exception {\n\t\tSession session = Preparation.getSessionFactory().openSession();\n\t\tcatDAO = new CategoryHibernateDAO();\n\t\tcatDAO.setSession(session);\n\t}", "@Override\n\tpublic void onStart(Session session) {\n\t\tlogger.info(\"onStart session created:id= {}, begin at {}\", session.getId(), session.getStartTimestamp());\n\t}", "public static synchronized void destroy()\n {\n try\n {\n if (sessionFactory != null)\n {\n sessionFactory.close();\n System.out.println(\"Hibernate could destroy SessionFactory\");\n }\n } catch (Throwable t)\n {\n System.out.println(\"Hibernate could not destroy SessionFactory\");\n t.printStackTrace();\n }\n sessionFactory = null;\n }", "private static SessionFactory buildSessionFactory() {\n\t\ttry {\n\t\t\t// Create the SessionFactory from hibernate.cfg.xml\n\t\t\tConfiguration configuration = new Configuration().configure();\n\t\t\tServiceRegistry serviceRegistry = new ServiceRegistryBuilder()\n\t\t\t\t\t.applySettings(configuration.getProperties())\n\t\t\t\t\t.buildServiceRegistry();\n\t\t\tSessionFactory sessionFactory = configuration\n\t\t\t\t\t.buildSessionFactory(serviceRegistry);\n\t\t\treturn sessionFactory;\n\t\t} catch (Throwable ex) {\n\t\t}\n\t\treturn null;\n\t}", "public static Session openSession(SessionFactory sessionFactory)\r\n\t\t\tthrows HibernateException {\n\r\n\t\tSession session = sessionFactory.getCurrentSession();\r\n\t\treturn session;\r\n\t}", "public void testCreateSession() throws Exception {\n assertNotNull(mSession.getSessionToken());\n assertFalse(\"New session should not be active\", mSession.isActive());\n\n // Verify by getting the controller and checking all its fields\n MediaController controller = mSession.getController();\n assertNotNull(controller);\n verifyNewSession(controller, TEST_SESSION_TAG);\n }", "public SessionFactory getSessionFactory() {\r\n return sessionFactory;\r\n }", "public static SessionFactory getSessionFactory() {\n if (sessionFactory == null) sessionFactory = buildSessionFactory();\n return sessionFactory;\n }", "@Test\r\n public void testInitSession() {\r\n System.out.println(\"initSession\");\r\n assertNotNull(sm);\r\n \r\n boolean result = sm.initSession(\"test1\", programsHome, programsHome + \"files1/\", requester);\r\n assertFalse(result);\r\n \r\n result = sm.initSession(\"test2\", programsHome, programsHome + \"files2/\", requester);\r\n assertFalse(result);\r\n \r\n result = sm.initSession(\"test3\", programsHome, programsHome + \"files3/\", requester);\r\n assertFalse(result);\r\n \r\n result = sm.initSession(\"test4\", programsHome, programsHome + \"files4/\", requester);\r\n assertTrue(result);\r\n \r\n sm.removeSession(\"test4\");\r\n }", "public SessionFactory getSessionFactory() {\n return sessionFactory;\n }", "private static SessionFactory buildSessionFactory() {\n\t\ttry {\r\n\t\t\tConfiguration config=new Configuration();\r\n\t\t\tconfig.addClass(Customer.class);\r\n\t\t\treturn config\r\n\t\t\t\t\t.buildSessionFactory(new StandardServiceRegistryBuilder().build());\r\n\t\t} catch(Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tthrow new RuntimeException(\"error building sessions\");\r\n\t\t}\r\n\t}", "private static SessionFactory buildSessionFactory() {\n Configuration configObj = new Configuration();\n configObj.configure(\"hibernate.cfg.xml\");\n\n ServiceRegistry serviceRegistryObj = new StandardServiceRegistryBuilder().applySettings(configObj.getProperties()).build();\n\n // Creating Hibernate SessionFactory Instance\n sessionFactoryObj = configObj.buildSessionFactory(serviceRegistryObj);\n return sessionFactoryObj;\n }", "public void afterPropertiesSet() throws Exception {\n\t\tSessionFactory rawSf = buildSessionFactory();\n\t\tthis.sessionFactory = wrapSessionFactoryIfNecessary(rawSf);\n\t\tafterSessionFactoryCreation();\n\t}", "public void sessionCreated(IoSession session) {\r\n\t\tServerLogger.log(\"Session created...\" + session, Constants.DEBUG);\r\n\t\tsession.getConfig().setIdleTime(IdleStatus.BOTH_IDLE, 5);\r\n\t}", "public SessionFactory getSessionFactory() {\r\n\t\treturn sessionFactory;\r\n\t}", "protected void beforeSessionFactoryDestruction() {\n\t}", "private void getHibernateSession() {\n try {\n session = em.unwrap(Session.class)\n .getSessionFactory().openSession();\n\n } catch(Exception ex) {\n logger.error(\"Failed to invoke the getter to obtain the hibernate session \" + ex.getMessage());\n ex.printStackTrace();\n }\n\n if(session == null) {\n logger.error(\"Failed to find hibernate session from \" + em.toString());\n }\n }", "private Session openSession() {\n return sessionFactory.getCurrentSession();\n }", "@Autowired\r\n public void setSessionFactory(SessionFactory sessionFactory) {\r\n this.sessionFactory = sessionFactory;\r\n }", "public SessionFactory getSessionFactory() {\n\t\treturn sessionFactory;\n\t}", "public SessionFactory getSessionFactory() {\n\t\treturn sessionFactory;\n\t}", "public static SessionFactory getSessionFactory() {\n\t\tConfiguration configObj = new Configuration();\n\t\tconfigObj.addAnnotatedClass(com.training.org.User.class);\n\t\tconfigObj.configure(\"hibernate.cfg.xml\");\n\t\t\n\t\t\n\t\n\n\t\t// Since Hibernate Version 4.x, Service Registry Is Being Used\n\t\tServiceRegistry serviceRegistryObj = new StandardServiceRegistryBuilder().applySettings(configObj.getProperties()).build(); \n\n\t\t// Creating Hibernate Session Factory Instance\n\t\tSessionFactory factoryObj = configObj.buildSessionFactory(serviceRegistryObj);\t\t\n\t\treturn factoryObj;\n\t}", "@Override\n\tpublic void sessionCreated(HttpSessionEvent se) {\n\t\tSystem.out.println(\"HttpSessionListener:sessionCreated\");\n\t}", "private void setupSession() {\n // TODO Retreived the cached Evernote AuthenticationResult if it exists\n// if (hasCachedEvernoteCredentials) {\n// AuthenticationResult result = new AuthenticationResult(authToken, noteStoreUrl, webApiUrlPrefix, userId);\n// session = new EvernoteSession(info, result, getTempDir());\n// }\n ConnectionUtils.connectFirstTime();\n updateUiForLoginState();\n }", "private SessionFactoryUtils() {\n super();\n }", "@Autowired\n\tpublic HibernateAccountManager(SessionFactory sessionFactory) {\n\t\tthis.sessionFactory = sessionFactory;\n\t\tthis.hibernateTemplate = new HibernateTemplate(sessionFactory);\n\t}", "public void initialiseSession() {\n LOGGER.info(\"Initialising session...\");\n if (this.mKsession == null) {\n for (String ruleFile : mRuleFiles) {\n mKbuilder.add(ResourceFactory.newClassPathResource(ruleFile,\n IronSyslogDrools.class), ResourceType.DRL);\n }\n if (mKbuilder.hasErrors()) {\n LOGGER.error(mKbuilder.getErrors().toString());\n throw new RuntimeException(\"Unable to compile drl\\\".\");\n }\n mPkgs = mKbuilder.getKnowledgePackages();\n\n KnowledgeBaseConfiguration config = KnowledgeBaseFactory\n .newKnowledgeBaseConfiguration();\n config.setOption(EventProcessingOption.STREAM);\n mKbase = KnowledgeBaseFactory.newKnowledgeBase(config);\n\n mKbase.addKnowledgePackages(mPkgs);\n\n // KnowledgeSessionConfiguration conf = KnowledgeBaseFactory\n // .newKnowledgeSessionConfiguration();\n // conf.setOption(ClockTypeOption.get(\"pseudo\"));\n // ksession = kbase.newStatefulKnowledgeSession(conf, null);\n mKsession = mKbase.newStatefulKnowledgeSession();\n // entryPoint1 = ksession.getWorkingMemoryEntryPoint(\"entryone\");\n\n Thread ruleFire = new Thread() {\n\n @Override\n public void run() {\n mKsession.fireUntilHalt();\n }\n };\n ruleFire.start();\n } else {\n retractAll();\n }\n }", "@Override\n @Test(groups = {\"SessionContext access\"})\n public void testSessionContext00() throws Exception {\n super.testSessionContext00();\n }", "public void sessionCreated(HttpSessionEvent sessionEvent) {\n\t\tHttpSession session = sessionEvent.getSession();\n\t\tDate date = new Date();\n\t\tSystem.out.println(\">>> Created Session : [\" + session.getId() + \"] at [\" + date.toString() + \"] <<<\"); \n\t\tSystem.out.println(\">>> getMaxInactiveInterval : [\" + session.getMaxInactiveInterval() + \" ] <<<\"); \n\t}", "SessionManagerImpl() {\n }", "void sessionCreated(SessionEvent se);", "public Session createSession() {\n\t\treturn this.session;\n\t}", "public void testInit() {\n System.out.println(\"init\");\n CloudResourceFactoryFactory instance = new CloudResourceFactoryFactory();\n instance.init();\n\n WebDavResponseHandler result = instance.createResponseHandler();\n assertNotNull(result);\n\n\n ResourceFactory result2 = instance.createResourceFactory();\n assertNotNull(result2);\n\n }", "@Before\n public void getTestSession() {\n if (sessionId == null) {\n sessionId = Util.getSessionID();\n }\n }", "public static void close() {\r\n if (sessionFactory != null) {\r\n sessionFactory.close();\r\n }\r\n LOG.debug(MODULE + \"SessionFactory Close\");\r\n sessionFactory = null;\r\n }", "@Override\n @Test(groups = {\"SessionContext access\"})\n public void testSessionContext02() throws Exception {\n try {\n super.testSessionContext02();\n } catch (EJBException e) {\n checkCause(e, IllegalStateException.class);\n }\n }", "@Test\r\n public void testGetInstance() {\r\n System.out.println(\"getInstance\");\r\n assertNotNull(sm);\r\n \r\n SessionManager instance = SessionManager.getInstance();\r\n assertEquals(instance, sm);\r\n }", "public void setSessionFactory(SessionFactory sessionFactory) {\n template = new HibernateTemplate(sessionFactory);\n}", "@SuppressWarnings({ \"deprecation\"})\r\n\tpublic static SessionFactory getSessionFactory() \r\n\t{\r\n //configuration object\r\n Configuration configuration=new Configuration();\r\n //configuring xml file\r\n \tconfiguration.configure(\"hibernate.cfg.xml\");\r\n \t//SessionFactory object\r\n \tsessionFactory=configuration.buildSessionFactory();\r\n //returning sessonFactory+\r\n return sessionFactory;\r\n }", "public static void close() {\r\n if (sessionFactory != null) {\r\n sessionFactory.close();\r\n }\r\n sessionFactory = null;\r\n }", "public static void close() {\r\n\t\tif (sessionFactory != null)\r\n\t\t\tsessionFactory.close();\r\n\t\tsessionFactory = null;\r\n\r\n\t}", "private static SessionFactory buildSessionFactory() {\n\t\t// Creating Configuration Instance & Passing Hibernate Configuration File\n\t\tConfiguration configObj = new Configuration();\n\t\tconfigObj.configure(\"hibernate.cfg.xml\");\n\n\t\t// Since Hibernate Version 4.x, ServiceRegistry Is Being Used\n\t\tServiceRegistry serviceRegistryObj = new StandardServiceRegistryBuilder()\n\t\t\t\t.applySettings(configObj.getProperties()).build();\n\n\t\t// Creating Hibernate SessionFactory Instance\n\t\tsessionFactoryObj = configObj.buildSessionFactory(serviceRegistryObj);\n\t\treturn sessionFactoryObj;\n\t}", "public ETLLogDAOImpl(SessionFactory factory) {\r\n this.factory = factory;\r\n }", "public void setSessionFactory(SessionFactory sessionFactory) {\r\n this.sessionFactory = sessionFactory;\r\n }", "protected final void logInitializationError() {\n SimpleServerException e = new SimpleServerException(\n SimpleServerException.service_state_exception, new Object[] {});\n getLogger().log(Level.SEVERE, \"\", e);\n }", "@Before\npublic void before() throws Exception {\n\n //TODO Test Controller\n //request = new MockHttpServletRequest();\n //response = new MockHttpServletResponse();\n //request.setCharacterEncoding(\"UTF-8\");\n \n //TODO Test mybaties\n //ctx= new ClassPathXmlApplicationContext(\"classpath*:spring-config.xml\");\n //sqlSessionFactory = (SqlSessionFactory) ctx.getBean(\"sqlSessionFactory\");\n //sqlSession = sqlSessionFactory.openSession();\n}", "Session begin();", "public void sessionStarted() {\n\t\t\r\n\t}", "public void setSessionFactory(SessionFactory sessionFactory) {\n this.sessionFactory = sessionFactory;\n }", "public void setSessionFactory(SessionFactory sessionFactory) {\n this.sessionFactory = sessionFactory;\n }", "public void setSessionFactory(SessionFactory sessionFactory) {\n this.sessionFactory = sessionFactory;\n }", "public void setSessionFactory(SessionFactory sessionFactory) {\n this.sessionFactory = sessionFactory;\n }" ]
[ "0.6444905", "0.6375678", "0.6228", "0.60237664", "0.6017885", "0.6001004", "0.58617365", "0.5815554", "0.5715745", "0.5630308", "0.5593397", "0.55802166", "0.55502397", "0.55365837", "0.55168754", "0.54946595", "0.5483284", "0.54629093", "0.54185504", "0.5417341", "0.5416015", "0.54099405", "0.5402413", "0.539932", "0.53978187", "0.5387644", "0.5375095", "0.53729206", "0.53623277", "0.5340354", "0.53382915", "0.5338108", "0.5332569", "0.5319626", "0.5316732", "0.5314483", "0.5314224", "0.5311436", "0.5275874", "0.5273258", "0.5269263", "0.5260775", "0.52515453", "0.5232985", "0.52253914", "0.5205368", "0.5186106", "0.51755273", "0.51636124", "0.51544", "0.5149829", "0.51348126", "0.51300097", "0.51282036", "0.5124972", "0.5107743", "0.5103745", "0.50993335", "0.50945336", "0.5085881", "0.5077413", "0.50671136", "0.50451845", "0.50359386", "0.5034879", "0.50222915", "0.50104374", "0.50071925", "0.50071925", "0.49971795", "0.4991199", "0.4986108", "0.49768108", "0.49729958", "0.49700618", "0.49590197", "0.4958456", "0.4956303", "0.49470297", "0.49405015", "0.49330613", "0.4924243", "0.49234396", "0.49170777", "0.49162814", "0.4908598", "0.49068037", "0.49003664", "0.48950443", "0.48898005", "0.48883444", "0.48832107", "0.48822168", "0.48783043", "0.48631948", "0.48631787", "0.48595402", "0.48595402", "0.48595402", "0.48595402" ]
0.65434897
0
Tries to destroy SessionFactory and logs success or failure. Must be called on web application shutdown.
public static synchronized void destroy() { try { if (sessionFactory != null) { sessionFactory.close(); System.out.println("Hibernate could destroy SessionFactory"); } } catch (Throwable t) { System.out.println("Hibernate could not destroy SessionFactory"); t.printStackTrace(); } sessionFactory = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void shutdown() {\n\t\tgetSessionFactory().close();\n\t}", "@PreDestroy\n protected void destroy() {\n sessionFactory.getCurrentSession().close();\n }", "public void destroy() throws HibernateException {\n\t\tlogger.info(\"Closing Hibernate SessionFactory\");\n\t\ttry {\n\t\t\tbeforeSessionFactoryDestruction();\n\t\t}\n\t\tfinally {\n\t\t\tthis.sessionFactory.close();\n\t\t}\n\t}", "public static void close() {\r\n if (sessionFactory != null) {\r\n sessionFactory.close();\r\n }\r\n sessionFactory = null;\r\n }", "@AfterClass\n public static void tearDownClass() {\n ApplicationSessionManager.getInstance().stopSession();\n }", "@AfterClass\n\tpublic static void closeSessionFactory() {\n sessionFactory.close();\n\t}", "public static void close() {\r\n\t\tif (sessionFactory != null)\r\n\t\t\tsessionFactory.close();\r\n\t\tsessionFactory = null;\r\n\r\n\t}", "public /*static*/ void close() {\n sessionFactory.close();\n }", "public static void close() {\r\n if (sessionFactory != null) {\r\n sessionFactory.close();\r\n }\r\n sessionFactory = null;\r\n }", "public static void shutdown() {\n getSessionFactory().close();\n }", "public void stopFactory() {\n if (isStarted) {\n logger.info(\"Stopping SessionListenerFactory.\");\n APIEventBus.getInstance().unsubscribe(this);\n isStarted = false;\n }\n }", "public static void close() {\r\n if (sessionFactory != null) {\r\n sessionFactory.close();\r\n }\r\n LOG.debug(MODULE + \"SessionFactory Close\");\r\n sessionFactory = null;\r\n }", "@After\r\n\tpublic void tearDown() throws Exception {\n\t\tSessionHolder sessionHolder = (SessionHolder) TransactionSynchronizationManager.unbindResource(sessionFactory);\r\n\t\tSessionFactoryUtils.closeSession(sessionHolder.getSession());\r\n\r\n\t\t// seulement dans le cas d'utilisation de spring security //\r\n\t\tSecurityContextHolder.getContext().setAuthentication(null);\r\n\t}", "protected void beforeSessionFactoryDestruction() {\n\t}", "private void destroySession(Session session) {\n\r\n\t}", "void fireSessionDestroyedListeners(Session session);", "public void onSessionDestroyed() {\n }", "public void shutdownFactory() {\n // TODO(oalexan1) The app does not exit gracefully. Need to understand why.\n m_robot_factory.shutdown();\n m_microphone_factory.shutdown();\n }", "void sessionDestroyed(SessionEvent se);", "public void destroy() throws Exception {\n\t\tapplicationContext = null;\r\n\t}", "@Override\n\tpublic void contextDestroyed(ServletContextEvent arg0) {\n\t\tif(factory != null){\n\t\t\tfactory.close();\n\t\t}\n\t}", "@Override\r\n\tpublic void destroy() {\r\n\t\tsuper.destroy();\r\n\t\ttry {\r\n\t\t\tspringContext.close();\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.warn(e);\r\n\t\t}\r\n\t}", "public default void sessionDestroyed(HttpSessionEvent se) {\n }", "public void sessionDestroyed(HttpSessionEvent se) {\r\n }", "public void sessionDestroyed(HttpSessionEvent se) {\n }", "public final void destroy()\n {\n log.info(\"PerformanceData Servlet: Done shutting down!\");\n }", "public void doLogout() {\r\n\t\tdestroy();\r\n\r\n\t\t/* ++++++ Kills the Http session ++++++ */\r\n\t\t// HttpSession s = (HttpSession)\r\n\t\t// Sessions.getCurrent().getNativeSession();\r\n\t\t// s.invalidate();\r\n\t\t/* ++++++ Kills the zk session +++++ */\r\n\t\t// Sessions.getCurrent().invalidate();\r\n\t\tExecutions.sendRedirect(\"/j_spring_logout\");\r\n\r\n\t}", "public void sessionDestroyed(HttpSessionEvent se) {\n }", "public void sessionDestroyed(HttpSessionEvent se) {\n }", "@AfterEach\n public void tearDown() throws Exception\n {\n\n application = null;\n config = null;\n externalContext = null;\n if (facesContext != null)\n {\n facesContext.release();\n }\n facesContext = null;\n lifecycle = null;\n lifecycleFactory = null;\n renderKit = null;\n request = null;\n response = null;\n servletContext = null;\n session = null;\n FactoryFinder.releaseFactories();\n ResourceBundleVarNames.resetNames();\n\n tearDownClassloader();\n }", "@Override\n\tprotected void onDestroy(HttpSession session) {\n\t}", "@Override\n protected void tearDown() throws Exception {\n mSession.release();\n super.tearDown();\n }", "public void shutdown() {\n for (Entry<String,Session> entry : _sessions.entrySet())\n entry.getValue().disconnect();\n \n writeLine(\"\\nDebugServer shutting down.\");\n close();\n }", "@Override\n protected void tearDown() throws Exception\n {\n if (session != null)\n {\n session.close();\n }\n \n super.tearDown();\n }", "@Override\n\tpublic void contextDestroyed(ServletContextEvent event)\n\t{\n\t\tlogger.debug(\"应用程序关闭,这里负责销毁所有Session\");\n\t}", "private void doCloseSession()\n {\n if (session != null)\n {\n try\n {\n database.closeHibernateSession(session);\n }\n finally\n {\n session = null;\n }\n }\n }", "@Override\n\tpublic void sessionDestroyed(HttpSessionEvent httpSessionEvent) {\n\t}", "@AfterClass(alwaysRun = true)\n\tpublic void destroy() throws Exception {\n\t\tsuper.cleanup();\n\t}", "@After\n public void destroyDatabase() {\n dbService.closeCurrentSession();\n dbService.getDdlInitializer()\n .cleanDB();\n }", "@Override\r\n\tpublic void destroy() throws Exception {\n\t\t\r\n\t}", "@Override\n\tpublic void sessionCreated(HttpSessionEvent httpSessionEvent) {\n\t\tSystem.out.println(\"sessionDestroyed dice: Abriendo session\");\n\t}", "@Override\r\n \t\t\tpublic void deleteSessions() {\n \t\t\t\t\r\n \t\t\t}", "@Override\n\tpublic void destroy() {\n\t\tlogService=null;\n\t\tnoInterceptUrlRegxList=null;\n\n\t}", "@Override\n\tpublic void contextDestroyed(ServletContextEvent evt) {\n\t\ttry {\n\t\t\tPersistenceManager.getInstance().closeEntityManagerFactory();\n\t\t} catch (Exception ex) {\n\t\t\tevt.getServletContext().log(ex.getMessage(), ex);\n\t\t}\n\t}", "@Override\r\n \t\t\tpublic void cleanInvalidSessions() {\n \t\t\t\t\r\n \t\t\t}", "private static void closeSession() {\n isSessionOpen = false;\n }", "@Override\n\tpublic void destroy() throws Exception {\n\t\t\n\t}", "void closeSessionFactory();", "@Override\n\tpublic void destroy() {\n\t\tsuper.destroy();\n\t\tSystem.out.println(\"Destory LoginServlet\");\n\t}", "@After\r\n\tpublic void teardown() throws FindFailed {\r\n\t\t//TODO: check if not LoginPage is displayed > then\r\n\t\tnew HomePage(s).logOut();\r\n\t\tSystemActions.closeClient(app);\r\n\t}", "public void cleanUp() {\r\n\t\temfactory.close();\r\n\t}", "@AfterClass\n public static void afterStories() throws Exception {\n Thucydides.getCurrentSession().clear();\n }", "@Override\n\tpublic void sessionDestroyed(HttpSessionEvent arg0) {\n\t\tlog.info(\"------ sessionListen-----init------\");\n\t}", "public void destroySession() {\n existingSession().ifPresent(session -> {\n session.clear();\n context().session().clear();\n });\n }", "static void cerrarGestion(){\r\n manager.close();\r\n factory.close();\r\n }", "public void sessionDestroyed(HttpSessionEvent arg0) {\r\n\t}", "public void destroy()\r\n\t{\r\n\t\tlog.fine(\"destroy\");\r\n\t}", "@Override\n\tpublic void sessionDestroyed(HttpSessionEvent se) {\n\t\tSystem.out.println(\"HttpSessionListener:sessionDestroyed\");\n\t}", "public void close() {\n\n try {\n try {\n try {\n if (exception == null) {\n flushSessions();\n }\n\n } catch (Throwable exception) {\n exception(exception);\n } finally {\n\n try {\n if (exception == null) {\n transactionContext.commit();\n }\n } catch (Throwable exception) {\n exception(exception);\n }\n transactionContext.rollback();\n }\n } catch (Throwable exception) {\n exception(exception);\n } finally {\n closeSessions();\n\n }\n } catch (Throwable exception) {\n exception(exception);\n } \n\n // rethrow the original exception if there was one\n if (exception != null) {\n if (exception instanceof Error) {\n throw (Error) exception;\n } else if (exception instanceof RuntimeException) {\n throw (RuntimeException) exception;\n }\n }\n }", "public void destroy() throws Exception;", "@AfterClass\n public static void shutdown()\n {\n }", "protected void beforeSessionManagerDestroyed() {\n }", "@Override\r\npublic void sessionDestroyed(HttpSessionEvent arg0) {\n\t\r\n}", "@PreDestroy\n public void destroy() {\n System.out.println(\"kafka-flink is closing...\");\n }", "@Override\n\tprotected void shutdown() throws Throwable {\n\t\t\n\t}", "public static void shut () {\r\n if(factory != null) { \t \r\n factory.finalixe(); \r\n }\r\n factory = null ;\r\n }", "@AfterClass\r\n public static void cleanUpTestFixture(){\r\n entityManagerFactory.close();\r\n }", "public static void closeSession() {\n Session session = (Session) sessionThreadLocal.get();\n sessionThreadLocal.set(null);\n try {\n if (session != null)\n session.close();\n } catch (HibernateException e) {\n logger.error(\"Close current session error: \" + e.getMessage());\n }\n }", "protected void shutdown()\n throws SwiftletException {\n if (config == null)\n return;\n if (traceSpace.enabled) traceSpace.trace(getName(), \"shutdown ...\");\n rlgroups.clear();\n groups.clear();\n users.clear();\n publicRLGroup = null;\n publicGroup = null;\n authenticationOff = true;\n config = null;\n if (traceSpace.enabled) traceSpace.trace(getName(), \"shutdown: done.\");\n }", "@Override\n @Destroy\n\n public void destroy() {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"destroy\");\n }\n\n }", "@Override\n @Destroy\n\n public void destroy() {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"destroy\");\n }\n\n }", "@After\r\n public void tearDown() throws Exception {\r\n super.tearDown();\r\n TestHelper.cleanupEnvironment();\r\n instance = null;\r\n }", "public void destroy() throws Exception {\n\t\t\r\n\t}", "@Override\n\tpublic void destroy() throws Exception {\n\t\tSystem.out.println(\"call destroy()...\");\n\t}", "@OnClose\n public void onClose(Session session) {\n }", "protected boolean closeSessionOnUnrecoverableError() {\n return false;\n }", "@Override\n\tpublic void onApplicationEvent(SessionDestroyedEvent event) {\n\t\tString sessionId = event.getId();\n\t\n\t\tSessionInformation destroyedSession = sessionRegistry.getSessionInformation(sessionId);\n\t\t\n\t\tif(destroyedSession == null) {\n\t\t\t\n\t\t\tLocalTime time = LocalTime.now();\n\t\t\t\n\t\t\tlogger.info(\"Session is destroyed - Time: \" + time);\n//\t\t\tSystem.out.println(\"Session is destroyed - Time: \" + time);\n\t\t}else {\n\t\t\t\n\t\t\tSystem.out.println(\">>>> Removing session from session registry : \" + sessionId);\n\t\t\t\n\t\t\tdestroyedSession.expireNow();\n\t\t\t\n\t\t} \n\t\t \n//\t\tSystem.out.println(destroyedSession.toString());\n\t\t\n//\t\tif (destroyedSession.isExpired() == false) {\n//\t\t\t\n//\t\t\tSystem.out.println(\">>>> Removing session from session registry : \" + sessionId);\n//\t\t\t\n//\t\t\tdestroyedSession.expireNow();\n//\t\t}\n\t\t\n//\t\tUserDetails tempUserDetails = (UserDetails)destroyedSession.getPrincipal();\n\n\t\t\n\t}", "protected void afterSessionFactoryCreation() throws Exception {\n\t}", "@Override\n\tpublic void clearSession() throws Exception {\n\t\t\n\t}", "@Override\n public void destroy() {\n // destroy any persistent resources\n // such as thread pools or persistent connections\n }", "public void sessionDestroyed(HttpSessionEvent sessionEvent) {\n\t\tHttpSession session = sessionEvent.getSession();\n\t\tDate date = new Date();\n\t\tSystem.out.println(\">>> Destroyed Session : [\" + session.getId() + \"] at [\" + date.toString() + \"] <<<\");\n\t\tSystem.out.println(\">>> getCreationTime : [\" + session.getCreationTime() + \" ] <<<\");\n\t\tSystem.out.println(\">>> getLastAccessedTime : [\" + session.getLastAccessedTime() + \" ] <<<\");\n\t\tSystem.out.println(\">>> getMaxInactiveInterval : [\" + session.getMaxInactiveInterval() + \" ] <<<\"); \n\t}", "@Override\r\n\tpublic void dispose(IoSession session) throws Exception {\n\r\n\t}", "public static void shutdown() {\n\t}", "@PreDestroy\n\tpublic void destroy() {\n\t\tthis.executorService.shutdown();\n\t}", "public static void shutdown() {\n if(registry != null)\n StandardServiceRegistryBuilder.destroy(registry);\n }", "@AfterClass\n\tpublic void tearDown() {\n\n\t\tsettings.clickLogout();\n\t\ttest.log(Status.INFO, \"Signed off\");\n\t\tapp.quit();\n\t\ttest.log(Status.INFO, \"Closed firefox\");\n\n\t}", "public void shutdown() {\n // no-op\n }", "@PreDestroy\n public void destroy() {\n LOG.debug(\"destroy\");\n }", "@Override\n public void afterConnectionClosed(WebSocketSession session, CloseStatus status) throws Exception {\n sessionMap.remove(session.getId());\n }", "@AfterClass\r\n\tpublic static void testCleanup() {\r\n\t\tConfig.teardown();\r\n\t}", "@Override\n public void contextDestroyed(ServletContextEvent sce) {\n Log.closeLogger();\n }", "@After\n public void cleanUp(){\n mockUserRepo = null;\n mockSession = null;\n sut = null;\n }", "@Override\n\tpublic void destroy() {\n\t\t// TODO Auto-generated method stub\n\t\tsuper.destroy();\n\t\tSystem.out.println(\"Servlet Destroy Call\");\n\t}", "@Override\n public void sessionClosed(IoSession session) throws Exception {\n super.sessionClosed(session);\n }", "public void ShutDown()\n {\n bRunning = false;\n \n LaunchLog.Log(COMMS, LOG_NAME, \"Shut down instruction received...\");\n\n for(LaunchServerSession session : Sessions.values())\n {\n LaunchLog.Log(COMMS, LOG_NAME, \"Closing session...\");\n session.Close();\n }\n \n LaunchLog.Log(COMMS, LOG_NAME, \"...All sessions are closed.\");\n }", "@AfterClass\r\n public static void tearDown() throws Exception {\r\n instance = null;\r\n }", "@OnClose\n public void onClose(Session session) {\n if (WebsocketServer.session == session) {\n System.out.println(\"Session \" +session.getId()+\" has ended\");\n }\n }", "public void logout() throws SessionException{\n\t\t\n\t\tLog.getLogger().info(\"Logging out of session\");\n\t\tRestAPIDelete logout = new RestAPIDelete(\"/session\");\n\t\tlogout.execute(this);\n\t}", "void closeSession();", "void closeSession();" ]
[ "0.77477473", "0.70333517", "0.6834316", "0.6712773", "0.6712761", "0.6689727", "0.6687472", "0.6668764", "0.66535604", "0.66505104", "0.66466266", "0.65418404", "0.6391534", "0.6380047", "0.6358851", "0.62298495", "0.6222568", "0.6164187", "0.613584", "0.60844743", "0.60807735", "0.6067146", "0.5980884", "0.5978507", "0.596483", "0.5949102", "0.5938876", "0.5937925", "0.5937925", "0.59368545", "0.5932181", "0.5880224", "0.58556247", "0.5849553", "0.5839224", "0.581807", "0.58087623", "0.58040535", "0.5797651", "0.57942814", "0.5778113", "0.57752883", "0.57619584", "0.5724763", "0.57169944", "0.571436", "0.5709659", "0.5690156", "0.56774586", "0.5659179", "0.5646037", "0.5639445", "0.5629071", "0.5626697", "0.5622061", "0.56120735", "0.5610996", "0.56099474", "0.56096584", "0.560033", "0.5578968", "0.5570556", "0.5570005", "0.55654603", "0.5565027", "0.55492276", "0.55487907", "0.5539799", "0.5525538", "0.5515263", "0.5515263", "0.5513556", "0.55103606", "0.55040014", "0.55013967", "0.5500557", "0.5499687", "0.54994875", "0.54983026", "0.5487963", "0.5462601", "0.54595613", "0.5442847", "0.54420024", "0.54403836", "0.5430624", "0.5421183", "0.541951", "0.541089", "0.54073036", "0.54018605", "0.5401566", "0.5396028", "0.53897935", "0.5386473", "0.5380736", "0.5379407", "0.5378935", "0.53780836", "0.53780836" ]
0.7637337
1
Return a transaction that is associated with the current resource
public static void beginTransaction() throws UAPersistenceException { final Session session = currentSession(); session.beginTransaction(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Transaction getCurrentTransaction();", "public Transaction getTransaction()\n {\n return transaction;\n }", "public final static Transaction getCurrentTransaction() {\n return (Transaction) transactionTable.get();\n }", "public GlobalTransaction getCurrentTransaction()\n {\n return getCurrentTransaction(true);\n }", "public Transaction getTransaction() {\n return transaction;\n }", "OBasicTransaction getMicroOrRegularTransaction();", "public Transaction getTransaction() {\n return this.transaction;\n }", "Transaction getTransaction() { \r\n return tx;\r\n }", "protected Transaction getTransaction() {\n return sessionFactory.getCurrentSession().getTransaction();\n }", "@Override\n public SimpleTransaction getTransaction() throws SystemException {\n SimpleTransaction txn = txns.get();\n if (txn == null) {\n txn = new SimpleTransaction();\n txn.setStatus(Status.STATUS_ACTIVE);\n txns.set(txn);\n }\n return txn;\n }", "public Transaction currentTransaction() {\r\n\t\treturn threadTransaction.get();\r\n\t}", "@Override\r\n\t@Transactional\r\n\tpublic Transactions getTransaction() {\r\n\r\n\t\tArrayList<Transactions> closedTransactions=null;\r\n\t\tif(closedTransactions == null)\r\n\t\t{\r\n\t\tclosedTransactions = new ArrayList<Transactions>();\r\n\t\tclosedTransactions = this.getClosedTransactions();\r\n\t\t}\r\n\r\n\r\n\t\tif (index < closedTransactions.size()) {\r\n\t\t\tTransactions transaction = closedTransactions.get(index++);\r\n\t\t\treturn transaction;\r\n\t\t} else {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "Transaction createTransaction();", "@Override\r\n\tpublic Transaction getTransaction() throws SystemException {\r\n\t\tif (threadTransaction.get()==null)\r\n\t\t\tsetNewTransaction();\r\n\t\treturn threadTransaction.get();\r\n\t}", "public Transaction getTransaction() {\n\t\treturn null;\n\t}", "public String getTransaction() {\n return transaction;\n }", "public Object getCurrentTransaction() {\r\n\r\n // Get the current Spring ConnectionHolder associated to the current spring managed transaction\r\n ConnectionHolder holder = (ConnectionHolder) TransactionSynchronizationManager.getResource(dataSource);\r\n\r\n if (holder == null || !holder.isSynchronizedWithTransaction()) {\r\n // no current Spring transaction\r\n SpiTransaction currentEbeanTransaction = DefaultTransactionThreadLocal.get(serverName);\r\n if (currentEbeanTransaction != null){\r\n // NOT expecting this so log WARNING\r\n String msg = \"SpringTransaction - no current spring txn BUT using current Ebean one \"+currentEbeanTransaction.getId();\r\n logger.log(Level.WARNING, msg);\r\n \r\n } else if (logger.isLoggable(Level.FINEST)) {\r\n logger.log(Level.FINEST, \"Spring Txn - no current transaction \");\r\n }\r\n return currentEbeanTransaction;\r\n }\r\n \r\n SpringTxnListener springTxnLister = getSpringTxnListener();\r\n \r\n if (springTxnLister != null){\r\n // we have already seen this transaction \r\n return springTxnLister.getTransaction();\r\n \r\n } else {\r\n // This is a new spring transaction that we have not seen before.\r\n // \"wrap\" it in a SpringJdbcTransaction for use with Ebean \r\n SpringJdbcTransaction newTrans = new SpringJdbcTransaction(holder, transactionManager);\r\n \r\n // Create and register a Spring TransactionSynchronization for this transaction\r\n springTxnLister = createSpringTxnListener(newTrans);\r\n TransactionSynchronizationManager.registerSynchronization(springTxnLister);\r\n \r\n // also put in Ebean ThreadLocal\r\n DefaultTransactionThreadLocal.set(serverName, newTrans);\r\n return newTrans;\r\n }\r\n }", "Transaction getTransctionByTxId(String txId);", "protected abstract Object getTransactionObject() throws TransactionInfrastructureException;", "Transaction get(String id) throws Exception;", "public GlobalTransaction getCurrentTransaction(Transaction tx)\n {\n return getCurrentTransaction(tx, true);\n }", "Transaction findTransactionById(Long id);", "public Transaction getTransaction(int id){\n return accSystem.get(id);\n }", "@JsonProperty(\"transaction\")\n public TransactionReference getTransaction() {\n return transaction;\n }", "public Object getTransactionId() throws StandardException;", "public void createTransaction(Transaction trans);", "public Transaction getTransactionById(Integer id) throws MiddlewareQueryException;", "public Transaction getTransaction() throws RuntimeException{\n\t\tif(tr == null)\n\t\t\tthrow new RuntimeException(\"The transaction has not been started\");\n\t\treturn tr;\n\t}", "public TransactionTemplate getTransactionTemplate() {\n return _transactionTemplate;\n }", "private TaskTransaction tx() {\n if (this.taskTx == null) {\n /*\n * NOTE: don't synchronized(this) due to scheduler thread hold\n * this lock through scheduleTasks(), then query tasks and wait\n * for db-worker thread after call(), the tx may not be initialized\n * but can't catch this lock, then cause dead lock.\n * We just use this.eventListener as a monitor here\n */\n synchronized (this.eventListener) {\n if (this.taskTx == null) {\n BackendStore store = this.graph.loadSystemStore();\n TaskTransaction tx = new TaskTransaction(this.graph, store);\n assert this.taskTx == null; // may be reentrant?\n this.taskTx = tx;\n }\n }\n }\n assert this.taskTx != null;\n return this.taskTx;\n }", "UUID getTransactionId();", "public Object getObject()\n\t{\n\t\treturn transactionManager;\n\t}", "Transaction createTransaction(Settings settings);", "public int getTransactionId() {\n return transactionId;\n }", "public Transaction findTransaction(long transactionId) {\n log.trace(\"findTransaction {}\", transactionId);\n TransactionEntity entity = transactionRepository.findOne(transactionId);\n if (entity == null) {\n throw new NotFoundException(\"not found\");\n }\n\n Transaction transaction = new Transaction();\n transaction.setAmount(entity.getAmount());\n transaction.setType(entity.getType());\n if (entity.getParent() != null) {\n transaction.setParentId(entity.getParent().getId());\n }\n return transaction;\n }", "AcctgTrans getAcctgTrans();", "BusinessTransaction get(String tenantId, String id);", "public TransactionObj getTransaction(String sID){\n\t\treturn hmTransaction.get(sID);\n\t}", "protected String getTransactionId() {\n return transactionId;\n }", "public Long getTransactionId() {\n return this.transactionId;\n }", "public String getTransactionId() {\n return transactionId;\n }", "public String getTransactionId() {\n return transactionId;\n }", "public long getTransactionId();", "@Override\n\tpublic EntityTransaction getTransaction() {\n\t\treturn null;\n\t}", "public Transaction getById(String id) throws Exception;", "public javax.resource.spi.LocalTransaction getLocalTransaction()\n throws ResourceException {\n throw new NotSupportedException(resource.getString(\"NO_TRANSACTION\"));\n }", "public static Transaction getThreadLocalTransaction() {\n return threadlocal.get();\n }", "public GlobalTransaction getCurrentTransaction(boolean createIfNotExists)\n {\n Transaction tx;\n\n if ((tx = getLocalTransaction()) == null)\n {// no transaction is associated with the current thread\n return null;\n }\n\n if (!isValid(tx))\n {// we got a non-null transaction, but it is not active anymore\n int status = -1;\n try\n {\n status = tx.getStatus();\n }\n catch (SystemException e)\n {\n }\n\n // JBCACHE-982 -- don't complain if COMMITTED\n if (status != Status.STATUS_COMMITTED)\n {\n log.warn(\"status is \" + status + \" (not ACTIVE or PREPARING); returning null)\");\n }\n else\n {\n log.trace(\"status is COMMITTED; returning null\");\n }\n\n return null;\n }\n\n return getCurrentTransaction(tx, createIfNotExists);\n }", "public Transaction startTransaction(){\n\t\ttr = new Transaction(db);\n\t\treturn tr;\n\t}", "public String getTransactionId() {\n return this.transactionId;\n }", "public Double getTransaction() {\r\n return transaction;\r\n }", "TransactionManager getTransactionManager();", "public long getTransactionId() {\n return _sTransaction.getTransactionId();\n }", "String getTransactionId();", "String getTransactionId();", "public Connection getTransactionConnection(){\n try {\n return rawDataSource.getConnection();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return null;\n }", "@GetMapping(\"/{id}\")\n\tpublic Transaction getTransactionById(@PathVariable Long id) {\n\t\tTransaction transaction = null;\n\t\t\n\t\ttry {\n\t\t\ttransaction = transactionService.getTransactionById(id);\n\t\t}\n\t\tcatch (TransactionNotFoundException e) {\n\t\t\tthrow new TransactionNotFoundException(id);\n\t\t}\n\t\tcatch (UserDoesNotOwnResourceException e) {\n\t\t\tthrow new UserDoesNotOwnResourceException();\n\t\t}\n\t\t\n\t\treturn transaction;\n\t}", "public SpringJdbcTransaction getTransaction() {\r\n return transaction;\r\n }", "public Transaction getTransactionById(int id) throws SQLException {\n String sql = \"SELECT * FROM LabStore.Transaction_Detail WHERE id = ?\";\n Transaction transaction = new Transaction();\n\n try (Connection conn = database.getConnection();\n PreparedStatement preStmt = conn.prepareStatement(sql)) {\n preStmt.setInt(1, id);\n try (ResultSet rs = preStmt.executeQuery()) {\n while (rs.next()) {\n transaction.setId(id);\n transaction.setUser(userDbManager.getUser(rs.getInt(\"uId\")));\n transaction.setPurchaseDetail(purchaseDetailDbManager\n .getPurchaseDetailById(rs.getInt(\"pdId\")));\n transaction.setCount(rs.getInt(\"count\"));\n transaction.setTime(rs.getTimestamp(\"time\"));\n }\n }\n }\n\n return transaction;\n }", "public Long getTransactionId() {\n\t\treturn transactionId;\n\t}", "protected abstract Transaction createAndAdd();", "public static Transactions getTransactions() {\n return Transactions;\n }", "public ClientTransaction getRegisterTransaction(){\n\t\treturn this.registerTransaction;\n\t}", "public GlobalTransaction getCurrentTransaction(Transaction tx, boolean createIfNotExists)\n {\n // removed synchronization on txTable because underlying implementation is thread safe\n // and JTA spec (section 3.4.3 Thread of Control, par 2) says that only one thread may\n // operate on the transaction at one time so no concern about 2 threads trying to call\n // this method for the same Transaction instance at the same time\n //\n GlobalTransaction gtx = get(tx);\n if (gtx == null && createIfNotExists)\n {\n Address addr = rpcManager.getLocalAddress();\n gtx = GlobalTransaction.create(addr);\n put(tx, gtx);\n TransactionContext transactionContext;\n try\n {\n transactionContext = contextFactory.createTransactionContext(tx);\n }\n catch (Exception e)\n {\n throw new CacheException(\"Unable to create a transaction entry!\", e);\n }\n\n put(gtx, transactionContext);\n if (trace)\n {\n log.trace(\"created new GTX: \" + gtx + \", local TX=\" + tx);\n }\n }\n return gtx;\n }", "public Transaction returnTransaction(Transaction transaction) {\n\t\tTransaction returnTransaction = null;\n\t\t\n\t\t//Verify there isn't a transaction currently open by switching register mode to return\n\t\tif(register[registerSelected].setReturnMode()) {\n\t\t\t//Return each item in the transaction\n\t\t\tfor(int i = 0; i < transaction.getSize(); i++) {\n\t\t\t\tthis.scanItem(transaction.items.get(i));\n\t\t\t}\n\t\t\t//Complete the return transaction\n\t\t\treturnTransaction = this.completeTransaction();\n\t\t}\n\t\treturn returnTransaction;\n\t}", "public java.lang.String getTransactionReference() {\n return transactionReference;\n }", "Transaction selectByPrimaryKey(Long id);", "@Override\r\n\tpublic Transaction getTran(int tranNo) throws Exception {\n\t\treturn tranDao.selectTran(tranNo);\r\n\t}", "public String getTransactionId()\n\t{\n\t\treturn transactionId;\n\t}", "public interface TransactionService {\n\n /**\n * @return TransactionManager\n */\n TransactionManager getTransactionManager();\n\n /**\n * @return UserTransaction\n */\n UserTransaction getUserTransaction();\n\n /**\n * @return default timeout in seconds\n */\n int getDefaultTimeout();\n\n /**\n * Sets timeout in seconds,\n * \n * @param seconds int\n * @throws SystemException\n */\n void setTransactionTimeout(int seconds) throws SystemException;\n\n /**\n * Enlists XA resource in transaction manager.\n * \n * @param xares XAResource\n * @throws RollbackException\n * @throws SystemException\n */\n void enlistResource(ExoResource xares) throws RollbackException, SystemException;\n\n /**\n * Delists XA resource from transaction manager.\n * \n * @param xares XAResource\n * @throws RollbackException\n * @throws SystemException\n */\n void delistResource(ExoResource xares) throws RollbackException, SystemException;\n\n /**\n * Creates unique XA transaction identifier.\n * \n * @return Xid\n */\n Xid createXid();\n\n}", "public GlobalTransaction get(Transaction tx)\n {\n if (tx == null)\n {\n return null;\n }\n return tx2gtxMap.get(tx);\n }", "public java.lang.String getTransactionId() {\n return transactionId;\n }", "public java.lang.String getTransactionId() {\n return transactionId;\n }", "public Transaction createTransaction(Credentials user, TransactionType tt) throws RelationException;", "public TransID beginTransaction()\n {\n\t //TransID tid = new TransID();\n\t Transaction collect_trans = new Transaction(this);\n\t atranslist.put(collect_trans);\n\t return collect_trans.getTid();\n }", "public int getTransactionId() {\n\t\treturn transactionId;\n\t}", "public java.lang.String getTransactionId() {\r\n return transactionId;\r\n }", "public String getTransactionId() {\n\t\treturn transactionId;\n\t}", "public String getTransactionId() {\n\t\treturn transactionId;\n\t}", "public java.lang.String getTransactionId() {\n return transactionId;\n }", "public java.lang.String getTransactionId() {\n return transactionId;\n }", "public interface LocalTransaction {\n /**\n * Begins a local transaction on the userlying resource.\n */\n public void begin() throws ResourceException;\n\n /**\n * Commits a local transaction on the userlying resource.\n */\n public void commit() throws ResourceException;\n\n /**\n * Rolls back a local transaction on the userlying resource.\n */\n public void rollback() throws ResourceException;\n}", "@Override\n\tpublic EquationStandardTransaction getTransaction() throws Exception\n\t{\n\t\tEquationStandardTransaction transaction = getEquationStandardTransaction(programName + optionId);\n\t\ttransaction.setWorkStationId(WORKSTATIONID);\n\t\treturn transaction;\n\t}", "@Override\n\tpublic EquationStandardTransaction getTransaction() throws Exception\n\t{\n\t\tEquationStandardTransaction transaction = getEquationStandardTransaction(programName + optionId);\n\t\ttransaction.setWorkStationId(WORKSTATIONID);\n\t\treturn transaction;\n\t}", "@Override\n\tpublic EquationStandardTransaction getTransaction() throws Exception\n\t{\n\t\tEquationStandardTransaction transaction = getEquationStandardTransaction(programName + optionId);\n\t\ttransaction.setWorkStationId(WORKSTATIONID);\n\t\treturn transaction;\n\t}", "@Override\n\tpublic EquationStandardTransaction getTransaction() throws Exception\n\t{\n\t\tEquationStandardTransaction transaction = getEquationStandardTransaction(programName + optionId);\n\t\ttransaction.setWorkStationId(WORKSTATIONID);\n\t\treturn transaction;\n\t}", "@Override\r\n\tpublic Transaction getTranWhere(Transaction transaction) throws Exception {\n\t\treturn null;\r\n\t}", "TransactionType createTransactionType();", "public Optional<Transaction> findTransactionById(int id);", "public Transaction startTransaction() {\r\n return getManager().startTransaction();\r\n }", "public Optional<TransactionHistory> readTransaction()\n {\n return null;\n }", "@Override\n\tpublic Transaction findTransactionById(int id) {\n\t\treturn null;\n\t}", "public long getTransactionID() {\r\n return transactionID;\r\n }", "public int getTransactionID() {\r\n return transactionID;\r\n }", "boolean getTransactional();", "java.lang.String getTxId();", "@RequestMapping(value = \"/transactionservice/transaction/{transaction_id}\", method=RequestMethod.GET, produces = \"application/json\")\n\t@ResponseBody\n\tpublic Transaction getTransaction(@PathVariable long transaction_id) {\n\t\tif(transactions.size() > transaction_id) {\n\t\t\treturn transactions.get((int) transaction_id);\n\t\t} else {\n\t\t\tthrow new TransactionNotFoundException(transaction_id);\n\t\t}\n\t}", "public interface InstrumentedTransaction extends Transaction, UserDataStorage, DataSourceMember {\n\n /**\n * Returns a unique identifier for this transaction.\n */\n String getTransactionId();\n\n /**\n * Returns the metadata-aware ConnectionProvider that is being used for connections that resulted in this\n * transaction.\n */\n InstrumentedConnectionProvider getConnectionProvider();\n\n /**\n * Returns the timestamp when this transaction began, in nanoseconds since the Unix epoch. If this transaction\n * has not yet begun (from the perspective of the database server), then this method will return zero.\n */\n long getOpenedTimestampNanos();\n\n /**\n * Returns the duration in milliseconds that this transaction has been active. If the transaction object has been\n * created but the transaction has not yet begun, then this method will return <code>-1</code>.\n */\n long getDurationNanos();\n\n /**\n * Returns the Connection currently associated with this Transaction, if one has been leased already. If there is no\n * connection attached and connected, then this method will return <code>null</code> rather than forcing the\n * acquisition of one now.\n */\n InstrumentedConnection getConnection();\n\n /**\n * Attaches a single transaction listener instance to this transaction. Whenever this transaction performs any\n * operations, it will invoke callbacks on any attached listeners.\n */\n void addTransactionListener(TransactionListener listener);\n\n /**\n * Returns the optional user data object that may have been attached to this transaction.\n */\n Object getUserData();\n\n /**\n * Attaches a custom user data object to this transaction. This user data object will be removed automatically as\n * soon as the transaction is finished.\n */\n void setUserData(Object userData);\n}", "public TransactionState state();", "public TransactionType getTransactionType()\n {\n return transactionType;\n }", "public TransactionManagerLookup transactionManagerLookup() {\n return transactionManagerLookup;\n }" ]
[ "0.7759502", "0.72488856", "0.7215", "0.7112496", "0.7066651", "0.70381546", "0.69801617", "0.6948386", "0.6884214", "0.6822667", "0.6818843", "0.6763989", "0.6746152", "0.67298687", "0.66291636", "0.6619946", "0.6608853", "0.65854836", "0.6559885", "0.6553909", "0.6542858", "0.65306467", "0.6527522", "0.6516767", "0.64607775", "0.64378786", "0.63596076", "0.6320185", "0.6311172", "0.6281482", "0.62706643", "0.6266299", "0.62361336", "0.6228604", "0.62060374", "0.61908627", "0.61827517", "0.61407465", "0.6135623", "0.6123232", "0.6114523", "0.6114523", "0.6111337", "0.61005807", "0.6099806", "0.60910714", "0.6089671", "0.6085471", "0.6067662", "0.6037713", "0.6036879", "0.6032539", "0.60252225", "0.59913766", "0.59913766", "0.59896135", "0.59876615", "0.59833133", "0.59812635", "0.5933806", "0.59142613", "0.5909666", "0.5898984", "0.5896912", "0.588502", "0.58775723", "0.5872536", "0.58707887", "0.58677113", "0.5853619", "0.585044", "0.5844977", "0.5844977", "0.58371454", "0.58330005", "0.58063745", "0.5806143", "0.57852364", "0.57852364", "0.5773016", "0.5773016", "0.5767233", "0.5736338", "0.5736338", "0.5736338", "0.5736338", "0.5717023", "0.56719184", "0.56707966", "0.5667462", "0.56492627", "0.5635476", "0.5632289", "0.5617913", "0.5600215", "0.5591473", "0.55796444", "0.5556863", "0.55415", "0.5540654", "0.55389917" ]
0.0
-1
Commit the open transaction that is associated with the current resource.
public static void commitTransaction() throws UAPersistenceException { final Session session = currentSession(); Transaction tx = session.getTransaction(); if (tx != null) { try { tx.commit(); // session commited and closed. New session will be spawned upon calling currentSession on factory. } catch (HibernateException e) { System.out.println("commitTransaction: Throwing Exception e = " + e); throw new UAPersistenceException("cannot commit transaction, see stack trace", e); } } else { throw new IllegalStateException("Cannot commit transaction, no open transaction available!"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void commit() throws ResourceException\n {\n if (inManagedTransaction)\n {\n try\n {\n inManagedTransaction = false;\n con.commit();\n }\n catch (SQLException e)\n {\n checkException(e);\n } // end of try-catch\n } // end of if ()\n else\n {\n throw new JBossResourceException(\"Trying to commit outside of a local tx\");\n } // end of else\n\n }", "public void commit() throws ResourceException;", "void commit() {\r\n tx.commit();\r\n tx = new Transaction();\r\n }", "@Override\n public void commit() throws SQLException {\n if (isTransActionAlive() && !getTransaction().getStatus().isOneOf(TransactionStatus.MARKED_ROLLBACK,\n TransactionStatus.ROLLING_BACK)) {\n // Flush synchronizes the database with in-memory objects in Session (and frees up that memory)\n getSession().flush();\n // Commit those results to the database & ends the Transaction\n getTransaction().commit();\n }\n }", "public void commit() {\n doCommit();\n }", "public void commitTransaction() {\n\r\n\t}", "public void commit() {\n tryCommit(true);\n }", "void commitTransaction();", "@Override\n public void commit() throws HeuristicMixedException, HeuristicRollbackException, IllegalStateException,\n RollbackException, SecurityException, SystemException {\n assertActiveTransaction();\n try {\n getTransaction().commit();\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n txns.set(null);\n }\n\n }", "public void commitTransaction() {\n final EntityTransaction entityTransaction = em.getTransaction();\n if (!entityTransaction.isActive()) {\n entityTransaction.begin();\n }\n entityTransaction.commit();\n }", "public void commitTransaction() throws TransactionException {\n\t\t\r\n\t}", "void commitTransaction(ConnectionContext context) throws IOException;", "public void close() throws RemoteException {\r\n tx.commit();\r\n }", "void commit(Transaction transaction);", "public void commit() {\n }", "public void commit();", "public TransactionalElement<E> commit();", "public void commit() {\n\t\tcommitted = true;\n\t}", "public final void commit() throws com.mendix.core.CoreException\r\n\t{\r\n\t\tcom.mendix.core.Core.commit(context, getMendixObject());\r\n\t}", "public final void commit() throws com.mendix.core.CoreException\r\n\t{\r\n\t\tcom.mendix.core.Core.commit(context, getMendixObject());\r\n\t}", "public final void commit() throws com.mendix.core.CoreException\r\n\t{\r\n\t\tcom.mendix.core.Core.commit(context, getMendixObject());\r\n\t}", "public final void commit() throws com.mendix.core.CoreException\r\n\t{\r\n\t\tcom.mendix.core.Core.commit(context, getMendixObject());\r\n\t}", "public final void commit() throws com.mendix.core.CoreException\r\n\t{\r\n\t\tcom.mendix.core.Core.commit(context, getMendixObject());\r\n\t}", "public void closeTransaction(){\n\t\ttr.rollback();\n\t\ttr = null;\n\t}", "public static void commitTransaction() throws HException {\r\n\t\t\r\n\t\tTransaction tx = (Transaction) threadTransaction.get();\r\n\t\ttry {\r\n\t\t\tif (tx != null && !tx.wasCommitted() && !tx.wasRolledBack()) {\r\n\t\t\t\t// log.debug(\"Committing database transaction of this thread.\");\r\n\t\t\t\ttx.commit();\r\n\t\t\t}\r\n\t\t\tthreadTransaction.set(null);\r\n\t\t} catch (HibernateException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t\tthrow new HException(ex);\r\n\t\t}\r\n\t}", "public synchronized void commit(int trxnId)\n {\n ResourceManager rm;\n for (Enumeration e = transactionTouch.keys(); e.hasMoreElements();) {\n rm = (ResourceManager)e.nextElement();\n try {\n rm.commit(trxnId);\n } catch (Exception x)\n {\n System.out.println(\"EXCEPTION:\");\n System.out.println(x.getMessage());\n x.printStackTrace();\n }\n }\n transactionTouch.remove(trxnId);\n lm.UnlockAll(trxnId);\n }", "public final void commit() throws com.mendix.core.CoreException\n\t{\n\t\tcom.mendix.core.Core.commit(context, getMendixObject());\n\t}", "public final void commit() throws com.mendix.core.CoreException\n\t{\n\t\tcom.mendix.core.Core.commit(context, getMendixObject());\n\t}", "public final void commit() throws com.mendix.core.CoreException\n\t{\n\t\tcom.mendix.core.Core.commit(context, getMendixObject());\n\t}", "public final void commit() throws com.mendix.core.CoreException\n\t{\n\t\tcom.mendix.core.Core.commit(context, getMendixObject());\n\t}", "public void commitTransaction(TransID tid) \n throws IOException, IllegalArgumentException{// Not yet complete\n\t try {\n\t\t ADisk_lock.lock();\n\t\t // Call commit\n\t\t atranslist.get(tid).commit();\n\t\t Transaction temp = atranslist.remove(tid);\n\t\t wblist.addCommitted(temp);\t \n\t }\n\t finally{\n\t\t ADisk_lock.unlock();\n\t }\n }", "@Override\n public void commitTransaction() {\n try {\n connection.commit();\n } catch (SQLException e) {\n LOGGER.error(\"Can't commit transaction \", e);\n } finally {\n closeConnection();\n }\n }", "@Override\n public void commitTx() {\n \n }", "private void commitTransaction(GraphTraversalSource g) {\n if (graphFactory.isSupportingTransactions()) {\n g.tx().commit();\n }\n }", "public void commitTransaction() throws SQLException {\n dbConnection.commit();\n }", "@Override\n public void commit() {\n }", "void commit();", "void commit();", "void commit() {\n }", "@Override\n public void close() throws IOException {\n if (connection != null) {\n try {\n if (complete) {\n connection.commit();\n }\n else {\n connection.rollback();\n }\n }\n catch (SQLException e) {\n throw new StoreException(e);\n }\n finally {\n try {\n connection.close();\n }\n catch (SQLException e) {\n throw new StoreException(e);\n }\n }\n }\n }", "public static void finishTransaction()\n {\n if (currentSession().getTransaction().isActive())\n {\n try\n {\n System.out.println(\"INFO: Transaction not null in Finish Transaction\");\n Thread.dumpStack();\n rollbackTransaction();\n// throw new UAPersistenceException(\"Incorrect Transaction handling! While finishing transaction, transaction still open. Rolling Back.\");\n } catch (UAPersistenceException e)\n {\n System.out.println(\"Finish Transaction threw an exception. Don't know what to do here. TODO find solution for handling this situation\");\n }\n }\n }", "void commit() throws CommitException;", "@Override\n\tpublic void commit() {\n\n\t}", "void endTransaction();", "public void commitEntity();", "@Override\r\n\t\tpublic void commit() throws SQLException {\n\t\t\t\r\n\t\t}", "public abstract void commit();", "public void commitTransaction(long id) throws RelationException;", "public void close() {\n if (stmt == null) {\n return;\n }\n\n try {\n commit();\n } catch (HandledException ex) {\n Exceptions.ignore(ex);\n }\n\n safeClose();\n context.unregister(this);\n }", "@Override\n\tpublic int commit() {\n\t\treturn 0;\n\t}", "void commit() throws SoarException\n {\n // if lazy, commit\n if(db != null && params.lazy_commit.get() == LazyCommitChoices.on)\n {\n // Commit and then start next lazy-commit transaction\n try\n {\n db.commitExecuteUpdate( /* soar_module::op_reinit */);\n db.beginExecuteUpdate( /* soar_module::op_reinit */);\n }\n catch(SQLException e)\n {\n throw new SoarException(\"Error while forcing commit: \" + e.getMessage(), e);\n }\n }\n \n }", "public void transactionComplete(TransactionId tid) throws IOException {\n // some code goes here\n // not necessary for proj1\\\n \t//should always commit, simply call transactionComplete(tid,true)\n \ttransactionComplete(tid, true);\n \t\n }", "public void commitTransactionBlock() throws SQLException {\n masterNodeConnection.commit();\n masterNodeConnection.setAutoCommit(true);\n }", "public void commit(){\n \n }", "public void rollback() throws ResourceException;", "protected abstract void commitIndividualTrx();", "@Override\n\tpublic void close() throws SQLException {\n\t\t//Commit must be explicit before closing the connection\n\t\tconnection.commit();\n\t\tconnection.close();\n\t}", "protected abstract boolean commitTxn(Txn txn) throws PersistException;", "public void flushAndClose() throws TxnBatchFailure, TxnFailure, CommitFailure,\n IOException, InterruptedException {\n flush(false);\n close();\n }", "public void commit() throws SQLException {\n\t\tconnection.commit();\n\t}", "private void commit() {\n if (vote != Vote.COMMIT) {\n throw new IllegalStateException(\"Cannot commit transaction with vote: \" + vote);\n }\n\n for (ObjectVersion<V> objectVersion : objectVersions.values()) {\n objectVersion.commit();\n }\n }", "public void commitTransaction(Connection con){\n try {\n con.commit();\n con.setAutoCommit(true);\n con.setTransactionIsolation(Connection.TRANSACTION_READ_COMMITTED);\n } catch (SQLException e) {\n try {\n con.rollback();\n } catch (SQLException e1) {\n e1.printStackTrace();\n }\n }\n }", "public void storeAndCommit() {\n \tsynchronized(mDB.lock()) {\n \t\ttry {\n \t \t\tstoreWithoutCommit();\n \t \t\tcheckedCommit(this);\n \t\t}\n \t\tcatch(RuntimeException e) {\n \t\t\tcheckedRollbackAndThrow(e);\n \t\t}\n \t}\n }", "void commit(Session session);", "public GlBuffer commit(){\n return commit(true);\n }", "public final void commit(com.mendix.systemwideinterfaces.core.IContext context) throws com.mendix.core.CoreException\r\n\t{\r\n\t\tcom.mendix.core.Core.commit(context, getMendixObject());\r\n\t}", "public final void commit(com.mendix.systemwideinterfaces.core.IContext context) throws com.mendix.core.CoreException\r\n\t{\r\n\t\tcom.mendix.core.Core.commit(context, getMendixObject());\r\n\t}", "public final void commit(com.mendix.systemwideinterfaces.core.IContext context) throws com.mendix.core.CoreException\r\n\t{\r\n\t\tcom.mendix.core.Core.commit(context, getMendixObject());\r\n\t}", "public final void commit(com.mendix.systemwideinterfaces.core.IContext context) throws com.mendix.core.CoreException\r\n\t{\r\n\t\tcom.mendix.core.Core.commit(context, getMendixObject());\r\n\t}", "public final void commit(com.mendix.systemwideinterfaces.core.IContext context) throws com.mendix.core.CoreException\r\n\t{\r\n\t\tcom.mendix.core.Core.commit(context, getMendixObject());\r\n\t}", "public void commit() {\r\n for (Iterator<Connection> it = connections.values().iterator(); it.hasNext();) {\r\n Connection conn = it.next();\r\n try {\r\n conn.commit();\r\n } catch (SQLException ex) {\r\n log.severe(\"Partial commit failure: \" + ex.getMessage());\r\n }\r\n }\r\n closeConnections();\r\n }", "public Transaction completeTransaction() {\n\t\tTransaction transaction;\n\t\t\n\t\t//Complete the transaction\n\t\ttransaction = register[registerSelected].completeTransaction();\n\t\t//Check if a transaction was successfully closed, this happens if the object isn't null\n\t\tif(transaction != null) {\n\t\t\t//Update the inventory, for sales decrement from the inventory otherwise increment for returns\n\t\t\tif(register[registerSelected].getMode()) {\n\t\t\t\t//Sale mode so decrement items from inventory\n\t\t\t\tfor(int i = 0; i < transaction.getSize(); i++) {\n\t\t\t\t\tinventory.decrementItemStock(transaction.items.get(i));\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\t//Return mode so add items back into the inventory\n\t\t\t\tfor(int i = 0; i < transaction.getSize(); i++) {\n\t\t\t\t\tinventory.incrementItemStock(transaction.items.get(i));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn transaction;\n\t}", "protected void commit()\n\t{\n\t\t_Status = DBRowStatus.Unchanged;\n\t}", "public static void commitJta() throws DBException {\r\n\t\tgetJtaTransactionManager().commit();\r\n\t}", "public void commit() {\n\t\ttry {\n\t\t\tconn.commit();\n\t\t\tSystem.out.println(\"完了したコミット/Commit Done\");\n\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"接続エラーが発生しました/Connection Commit Error Occured\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "void commit() throws IndexTransactionException;", "public final void commit(com.mendix.systemwideinterfaces.core.IContext context) throws com.mendix.core.CoreException\n\t{\n\t\tcom.mendix.core.Core.commit(context, getMendixObject());\n\t}", "public final void commit(com.mendix.systemwideinterfaces.core.IContext context) throws com.mendix.core.CoreException\n\t{\n\t\tcom.mendix.core.Core.commit(context, getMendixObject());\n\t}", "public final void commit(com.mendix.systemwideinterfaces.core.IContext context) throws com.mendix.core.CoreException\n\t{\n\t\tcom.mendix.core.Core.commit(context, getMendixObject());\n\t}", "public final void commit(com.mendix.systemwideinterfaces.core.IContext context) throws com.mendix.core.CoreException\n\t{\n\t\tcom.mendix.core.Core.commit(context, getMendixObject());\n\t}", "public void commit() throws SQLException {\n if (conn != null) {\n conn.commit();\n }\n }", "public void forceCommitTx()\n{\n}", "public void openTheTransaction() {\n openTransaction();\n }", "public void endTransaction(int transactionID);", "Transaction beginTx();", "@Override\r\n\tpublic boolean commit() {\n\t\ttry {\r\n\t\t\tconn = DriverManager.getConnection(URL, USER, PASS);\r\n\t\t\tString sql = \"commit\";\r\n\t\t\tps = conn.prepareStatement(sql);\r\n\t\t\tps.executeUpdate();\r\n\t\t\trs.close();\r\n\t\t\tps.close();\r\n\t\t\treturn true;\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "@Override\n public void rollback() throws SQLException {\n if (isTransActionAlive()) {\n getTransaction().rollback();\n }\n }", "public void close(boolean successful) throws DataLayerException {\r\n // If connection is null or transactionClosed is true, exit.\r\n if (connection == null && !transactionClosed)\r\n throw new DataLayerException(\r\n \"Error completing database transaction. Illegal state. Connection is null but transaction not showing closed.\");\r\n\r\n if (connection == null)\r\n return;\r\n\r\n try {\r\n if (successful) {\r\n log.debug(\"Committing transaction...\");\r\n connection.commit();\r\n } else {\r\n log.debug(\"Rolling back transaction due to unsuccessful execution...\");\r\n connection.rollback();\r\n }\r\n\r\n close();\r\n } catch (SQLException se) {\r\n throw new DataLayerException(\"Error completing database transaction.\", se);\r\n } catch (Exception e) {\r\n throw new DataLayerException(\"Error closing database connection.\", e);\r\n }\r\n }", "private static boolean commitTransaction(int trans_id) {\n Transaction txn = null;\n if (transactions.containsKey(trans_id))\n txn = transactions.get(trans_id);\n else\n return false;\n\n if (txn != null)\n txn.commit();\n\n return true;\n }", "public void close(){\n\t\tif(tr != null && tr.inTransaction()){\n\t\t\ttr.rollback();\n\t\t}\n\t\ttry{\n\t\t\tif(db != null)\n\t\t\t\tdb.close();\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void commit () throws IOException {\n log.info(\"Internal committing index ... \");\n this.writer().commit();\n commitCounter = 0;\n this.closeReader();\n }", "@Override\n public void rollback() throws IllegalStateException, SecurityException, SystemException {\n assertActiveTransaction();\n try {\n getTransaction().rollback();\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n txns.set(null);\n }\n }", "@Override\n\tpublic final void close() throws SailException {\n\t\tconnectionLock.writeLock().lock();\n\n\t\ttry {\n\t\t\tif (isOpen) {\n\t\t\t\ttry {\n\t\t\t\t\tforceCloseActiveOperations();\n\n\t\t\t\t\tif (txnActive) {\n\t\t\t\t\t\tlogger.warn(\"Rolling back transaction due to connection close\",\n\t\t\t\t\t\t\t\tdebugEnabled ? new Throwable() : null);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t// Use internal method to avoid deadlock: the public\n\t\t\t\t\t\t\t// rollback method will try to obtain a connection lock\n\t\t\t\t\t\t\trollbackInternal();\n\t\t\t\t\t\t} finally {\n\t\t\t\t\t\t\ttxnActive = false;\n\t\t\t\t\t\t\ttxnPrepared = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tcloseInternal();\n\t\t\t\t} finally {\n\t\t\t\t\tisOpen = false;\n\t\t\t\t\tsailBase.connectionClosed(this);\n\t\t\t\t}\n\t\t\t}\n\t\t} finally {\n\t\t\t// Release the exclusive lock. Any threads waiting to obtain a\n\t\t\t// non-exclusive read lock will get one and then fail with an\n\t\t\t// IllegalStateException, because the connection is no longer open.\n\t\t\tconnectionLock.writeLock().unlock();\n\t\t}\n\t}", "IDbTransaction beginTransaction();", "void rollbackTransaction(ConnectionContext context) throws IOException;", "@Override\n\tpublic void commit() throws Throwable {\n\t\tthrow new Warning(\"please use commit(context)\");\n\t}", "public static Transaction commit(String database) throws SQLException {\n HashMap<String, Transaction> transactions = instance.getTransactions();\n Transaction transaction = transactions.get(database);\n if (transaction != null) {\n transaction.commit();\n } else {\n ensureConfigured(database);\n }\n return transaction;\n }", "public void commitWriter () {\n try {\n writer.commit();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public static void establecerTransaccion() throws SQLException {\n con.commit();\n }", "public synchronized void writeCommit(Transaction t) {\n\t\tflush();\n\t\tpw.println(t.transactionId() + \" commit\");\t\n\t\tflush();\n\t}" ]
[ "0.7573112", "0.7336362", "0.70192635", "0.6923765", "0.68889934", "0.6875608", "0.68488306", "0.68242764", "0.67923504", "0.6732723", "0.67305964", "0.66900843", "0.66834056", "0.661148", "0.6584033", "0.656523", "0.6530989", "0.6520697", "0.6499851", "0.6499851", "0.6499851", "0.6499851", "0.6499851", "0.64673185", "0.64351803", "0.6433786", "0.6427091", "0.6427091", "0.6427091", "0.6427091", "0.6419194", "0.6404674", "0.63496983", "0.6308931", "0.6276128", "0.62694573", "0.6222984", "0.6222984", "0.6216536", "0.6208485", "0.61904526", "0.61848575", "0.6179339", "0.61786544", "0.6144991", "0.60969144", "0.60957754", "0.6076927", "0.60540545", "0.6007381", "0.59987444", "0.5984493", "0.59768176", "0.5975974", "0.5929511", "0.5910756", "0.5908365", "0.5855076", "0.5843487", "0.58400065", "0.58346117", "0.5819098", "0.5810095", "0.5786533", "0.5776373", "0.57743144", "0.57743144", "0.57743144", "0.57743144", "0.57743144", "0.5774271", "0.57682574", "0.5757112", "0.575503", "0.57446796", "0.57445484", "0.5744023", "0.5744023", "0.5744023", "0.5744023", "0.57244617", "0.5719783", "0.5712387", "0.5661773", "0.5610225", "0.5604312", "0.5582358", "0.558079", "0.55766875", "0.55701554", "0.5557243", "0.5542367", "0.5531722", "0.55297977", "0.55266654", "0.5523301", "0.5497532", "0.54973614", "0.54942554", "0.5492154" ]
0.5796174
63
Checks for open transaction. If one exists, rollback will be applied, session will be flushed and closed
public static void finishTransaction() { if (currentSession().getTransaction().isActive()) { try { System.out.println("INFO: Transaction not null in Finish Transaction"); Thread.dumpStack(); rollbackTransaction(); // throw new UAPersistenceException("Incorrect Transaction handling! While finishing transaction, transaction still open. Rolling Back."); } catch (UAPersistenceException e) { System.out.println("Finish Transaction threw an exception. Don't know what to do here. TODO find solution for handling this situation"); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void openTheTransaction() {\n openTransaction();\n }", "public static void open() {\r\n final Session session = sessionFactory.isClosed() ? sessionFactory.openSession() : sessionFactory.getCurrentSession();\r\n session.beginTransaction();\r\n }", "public void closeTransaction(){\n\t\ttr.rollback();\n\t\ttr = null;\n\t}", "@Test\n public void testTransactional() throws Exception {\n try (CloseableCoreSession session = coreFeature.openCoreSessionSystem()) {\n IterableQueryResult results = session.queryAndFetch(\"SELECT * from Document\", \"NXQL\");\n TransactionHelper.commitOrRollbackTransaction();\n TransactionHelper.startTransaction();\n assertFalse(results.mustBeClosed());\n assertWarnInLogs();\n }\n }", "public boolean isTransactionRunning();", "Transaction beginTx();", "public void close() {\n\n try {\n try {\n try {\n if (exception == null) {\n flushSessions();\n }\n\n } catch (Throwable exception) {\n exception(exception);\n } finally {\n\n try {\n if (exception == null) {\n transactionContext.commit();\n }\n } catch (Throwable exception) {\n exception(exception);\n }\n transactionContext.rollback();\n }\n } catch (Throwable exception) {\n exception(exception);\n } finally {\n closeSessions();\n\n }\n } catch (Throwable exception) {\n exception(exception);\n } \n\n // rethrow the original exception if there was one\n if (exception != null) {\n if (exception instanceof Error) {\n throw (Error) exception;\n } else if (exception instanceof RuntimeException) {\n throw (RuntimeException) exception;\n }\n }\n }", "@Override\n public void rollback() throws SQLException {\n if (isTransActionAlive()) {\n getTransaction().rollback();\n }\n }", "private void testRollback003() {\n DmtSession session = null;\n try {\n DefaultTestBundleControl.log(\"#testRollback003\");\n session = tbc.getDmtAdmin().getSession(\".\",DmtSession.LOCK_TYPE_ATOMIC);\n session.rollback();\n TestCase.assertEquals(\"Asserting that after a rollback(), the session is not closed.\", session.getState(), DmtSession.STATE_OPEN);\n } catch (Exception e) {\n \ttbc.failUnexpectedException(e);\n } finally {\n tbc.closeSession(session);\n }\n }", "@Override\n public void rollbackTx() {\n \n }", "public synchronized void close() {\n if (session != null) {\n if (!suspended) {\n try {\n if (transacted == Transacted.Jms) {\n if (rollbackOnly) {\n session.rollback();\n } else {\n session.commit();\n }\n afterClose();\n } else if (transacted == Transacted.Xa) {\n destroy();\n try {\n if (rollbackOnly) {\n if (logger.isDebugEnabled()) {\n logger.debug(\"Rolling back XA transaction\");\n }\n transactionManager.rollback();\n } else {\n if (logger.isDebugEnabled()) {\n logger.debug(\"Committing XA transaction\");\n }\n transactionManager.commit();\n }\n } catch (Exception e) {\n throw new TransactionException(e);\n }\n } else if (transacted == Transacted.ClientAck) {\n if (message != null) {\n if (!rollbackOnly) {\n message.acknowledge();\n } else {\n destroyConsumer();\n }\n }\n afterClose();\n } else {\n afterClose();\n }\n } catch (JMSException e) {\n destroy();\n throw convertJmsAccessException(e);\n }\n }\n }\n }", "public boolean rolledback() throws HibException;", "public void beginTransaction() throws Exception;", "protected Transaction getTransaction() {\n return sessionFactory.getCurrentSession().getTransaction();\n }", "boolean requiresRollbackAfterSqlError();", "public boolean beginTransaction() {\n boolean result = false;\n if (_canDisableAutoCommit) {\n try {\n _connection.setAutoCommit(false);\n result = true;\n } catch (SQLException e) {\n Log.warning(\"Transactions not supported\", this, \"startTransaction\");\n _canDisableAutoCommit = false;\n }\n }\n return result;\n }", "public boolean flushTransactions() {\n return true;\n }", "IDbTransaction beginTransaction();", "private void doCloseSession()\n {\n if (session != null)\n {\n try\n {\n database.closeHibernateSession(session);\n }\n finally\n {\n session = null;\n }\n }\n }", "@Override\n public Session getSession() throws SQLException {\n // If we don't yet have a live transaction, start a new one\n // NOTE: a Session cannot be used until a Transaction is started.\n if (!isTransActionAlive()) {\n sessionFactory.getCurrentSession().beginTransaction();\n configureDatabaseMode();\n }\n // Return the current Hibernate Session object (Hibernate will create one if it doesn't yet exist)\n return sessionFactory.getCurrentSession();\n }", "@Override\n public void rollback() throws IllegalStateException, SecurityException, SystemException {\n assertActiveTransaction();\n try {\n getTransaction().rollback();\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n txns.set(null);\n }\n }", "Transaction getCurrentTransaction();", "void beginTransaction();", "@Override\n public boolean isSessionAlive() {\n return sessionFactory.getCurrentSession() != null && sessionFactory.getCurrentSession().isOpen();\n }", "@Override\n public boolean isTransActionAlive() {\n Transaction transaction = getTransaction();\n return transaction != null && transaction.isActive();\n }", "void rollback() {\r\n tx.rollback();\r\n tx = new Transaction();\r\n }", "public static void commitTransaction() throws UAPersistenceException\n {\n final Session session = currentSession();\n Transaction tx = session.getTransaction();\n if (tx != null)\n {\n try\n {\n tx.commit();\n // session commited and closed. New session will be spawned upon calling currentSession on factory.\n } catch (HibernateException e)\n {\n System.out.println(\"commitTransaction: Throwing Exception e = \" + e);\n throw new UAPersistenceException(\"cannot commit transaction, see stack trace\", e);\n }\n } else\n {\n throw new IllegalStateException(\"Cannot commit transaction, no open transaction available!\");\n }\n\n }", "public void iniciaOperacion() throws HibernateException\r\n\t{\r\n\t\t\r\n\t\t//Creamos conexión BBDD e inicamos una sesion\r\n\t sesion = HibernateUtil.getSessionFactory().openSession();\r\n\t //iniciamos transaccion\r\n\t tx = sesion.beginTransaction();\r\n\t}", "public boolean rollback() {\r\n\tboolean result = false;\r\n\r\n\tif (conn != null && isConnected()) {\r\n\t try {\r\n\t\tboolean autoCommit = getAutoCommit();\r\n\r\n\t\tif (!autoCommit) {\r\n\t\t conn.rollback();\r\n\t\t result = true;\r\n\t\t}\r\n\t } catch (Exception e) {\r\n\t\te.printStackTrace();\r\n\t }\r\n\t}\r\n\r\n\treturn result;\r\n }", "@Override\n public void rollbackTransaction() {\n if (connection != null) {\n try {\n connection.rollback();\n } catch (SQLException e) {\n LOGGER.error(\"Can't rollback transaction \", e);\n } finally {\n closeConnection();\n }\n }\n }", "@Override\n\tpublic final void close() throws SailException {\n\t\tconnectionLock.writeLock().lock();\n\n\t\ttry {\n\t\t\tif (isOpen) {\n\t\t\t\ttry {\n\t\t\t\t\tforceCloseActiveOperations();\n\n\t\t\t\t\tif (txnActive) {\n\t\t\t\t\t\tlogger.warn(\"Rolling back transaction due to connection close\",\n\t\t\t\t\t\t\t\tdebugEnabled ? new Throwable() : null);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t// Use internal method to avoid deadlock: the public\n\t\t\t\t\t\t\t// rollback method will try to obtain a connection lock\n\t\t\t\t\t\t\trollbackInternal();\n\t\t\t\t\t\t} finally {\n\t\t\t\t\t\t\ttxnActive = false;\n\t\t\t\t\t\t\ttxnPrepared = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tcloseInternal();\n\t\t\t\t} finally {\n\t\t\t\t\tisOpen = false;\n\t\t\t\t\tsailBase.connectionClosed(this);\n\t\t\t\t}\n\t\t\t}\n\t\t} finally {\n\t\t\t// Release the exclusive lock. Any threads waiting to obtain a\n\t\t\t// non-exclusive read lock will get one and then fail with an\n\t\t\t// IllegalStateException, because the connection is no longer open.\n\t\t\tconnectionLock.writeLock().unlock();\n\t\t}\n\t}", "public void close(){\n\t\tif(tr != null && tr.inTransaction()){\n\t\t\ttr.rollback();\n\t\t}\n\t\ttry{\n\t\t\tif(db != null)\n\t\t\t\tdb.close();\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "boolean getTransactional();", "public void testRollback() throws Exception {\n Properties props = new Properties();\n props.setProperty(LockssRepositoryImpl.PARAM_CACHE_LOCATION, tempDirPath);\n props\n\t.setProperty(ConfigManager.PARAM_PLATFORM_DISK_SPACE_LIST, tempDirPath);\n ConfigurationUtil.setCurrentConfigFromProps(props);\n\n startService();\n Connection conn = sqlDbManager.getConnection();\n assertNotNull(conn);\n assertFalse(sqlDbManager.tableExists(conn, \"testtable\"));\n assertTrue(sqlDbManager.createTableIfMissing(conn, \"testtable\",\n\t\t\t\t\t TABLE_CREATE_SQL));\n assertTrue(sqlDbManager.tableExists(conn, \"testtable\"));\n\n SqlDbManager.safeRollbackAndClose(conn);\n conn = sqlDbManager.getConnection();\n assertNotNull(conn);\n assertFalse(sqlDbManager.tableExists(conn, \"testtable\"));\n }", "public Session createTransactionAwareSession() throws TopLinkException {\n\t\tthrow new UnsupportedOperationException(\"SingleSessionFactory does not support transaction-aware Sessions\");\n\t}", "public boolean isTransactional()\n {\n return _isTransactional;\n }", "public long openTransaction() {\n try (var conn = openConnection()) {\n // Notify the user of a new connection\\\n var oos = new ObjectOutputStream(conn.getOutputStream());\n var ois = new ObjectInputStream(conn.getInputStream());\n oos.writeObject(new OpenMessage());\n return ois.readLong();\n } catch (Exception e) {\n System.err.println(\"Couldn't open transaction!\");\n e.printStackTrace();\n return -1l;\n }\n }", "public void beginTransaction() {\n\r\n\t}", "final void ensureOngoingTransaction() throws SQLException {\n if (!transactionLock.isHeldByCurrentThread()) {\n throw new SQLNonTransientException(Errors.getResources(getLocale())\n .getString(Errors.Keys.ThreadDoesntHoldLock));\n }\n }", "void rollbackTransaction();", "@Override\n\t\tpublic void rewind() throws DbException, TransactionAbortedException {\n\t\t\tclose();\n\t\t\topen();\n\t\t}", "public void checkForTransaction() throws SystemException;", "void commit() {\r\n tx.commit();\r\n tx = new Transaction();\r\n }", "@Override\n public void commit() throws SQLException {\n if (isTransActionAlive() && !getTransaction().getStatus().isOneOf(TransactionStatus.MARKED_ROLLBACK,\n TransactionStatus.ROLLING_BACK)) {\n // Flush synchronizes the database with in-memory objects in Session (and frees up that memory)\n getSession().flush();\n // Commit those results to the database & ends the Transaction\n getTransaction().commit();\n }\n }", "IDbTransaction beginTransaction(IsolationLevel il);", "public interface SessionTransactionManager {\n /**\n * Flush the current ORM session.\n */\n void flushSession();\n \n /**\n * Clear the first-level cache of the current ORM session.\n */ \n void clearSession();\n \n /**\n * Start a new transaction.\n */ \n void beginTransaction();\n \n /**\n * Commit the current transaction.\n */ \n void commitTransaction();\n \n /**\n * Roll back the current transaction.\n */ \n void rollbackTransaction();\n}", "void commitTransaction();", "void storeSession() {\n retrieveSessionIfNeeded(false);\n\n if (session != null) {\n try {\n session.commit();\n } catch (Exception e) { // NOSONAR - some error occured, log it\n logger.warn(\"cannot store session: {}\", session, e);\n throw e;\n }\n } else {\n logger.debug(\"session was null, nothing to commit\");\n }\n }", "public void testCommitOrRollback() throws Exception {\n Properties props = new Properties();\n props.setProperty(LockssRepositoryImpl.PARAM_CACHE_LOCATION, tempDirPath);\n props\n\t.setProperty(ConfigManager.PARAM_PLATFORM_DISK_SPACE_LIST, tempDirPath);\n ConfigurationUtil.setCurrentConfigFromProps(props);\n\n startService();\n Connection conn = sqlDbManager.getConnection();\n Logger logger = Logger.getLogger(\"testCommitOrRollback\");\n SqlDbManager.commitOrRollback(conn, logger);\n SqlDbManager.safeCloseConnection(conn);\n\n conn = null;\n try {\n SqlDbManager.commitOrRollback(conn, logger);\n } catch (NullPointerException sqle) {\n }\n }", "boolean propagateSession() {\n if (committed && !isDirty()) {\n return true;\n }\n if (getRepositoryBackedSession(false) == null) {\n setPropagateOnCreate(true);\n return false;\n }\n return doPropagateAndStoreIfFirstWrapper();\n }", "public int startTransaction();", "private Session openSession() {\n return sessionFactory.getCurrentSession();\n }", "public boolean createTransaction() {\n\t\t\treturn false;\n\t\t}", "Transaction createTransaction();", "@Override\n protected void doBegin(Object transaction, TransactionDefinition definition) {\n DataSourceTransactionObject txObject = (DataSourceTransactionObject) transaction;\n Connection con = null;\n\n try {\n if (txObject.getConnectionHolder() == null ||\n txObject.getConnectionHolder().isSynchronizedWithTransaction()) {\n Connection newCon = this.dataSource.getConnection();\n if (logger.isDebugEnabled()) {\n logger.debug(\"Acquired Connection [\" + newCon + \"] for JDBC transaction\");\n }\n txObject.setConnectionHolder(new ConnectionHolder(newCon), true);\n }\n\n txObject.getConnectionHolder().setSynchronizedWithTransaction(true);\n con = txObject.getConnectionHolder().getConnection();\n\n Integer previousIsolationLevel = DataSourceUtils.prepareConnectionForTransaction(con, definition);\n txObject.setPreviousIsolationLevel(previousIsolationLevel);\n\n // Switch to manual commit if necessary. This is very expensive in some JDBC drivers,\n // so we don't want to do it unnecessarily (for example if we've explicitly\n // configured the connection pool to set it already).\n if (con.getAutoCommit()) {\n txObject.setMustRestoreAutoCommit(true);\n if (logger.isDebugEnabled()) {\n logger.debug(\"Switching JDBC Connection [\" + con + \"] to manual commit\");\n }\n con.setAutoCommit(false);\n }\n txObject.getConnectionHolder().setTransactionActive(true);\n\n int timeout = determineTimeout(definition);\n if (timeout != TransactionDefinition.TIMEOUT_DEFAULT) {\n txObject.getConnectionHolder().setTimeoutInSeconds(timeout);\n }\n\n // Bind the session holder to the thread.\n if (txObject.isNewConnectionHolder()) {\n TransactionSynchronizationManager.bindResource(getDataSource(), txObject.getConnectionHolder());\n }\n } catch (Throwable ex) {\n if (txObject.isNewConnectionHolder()) {\n DataSourceUtils.releaseConnection(con, this.dataSource);\n txObject.setConnectionHolder(null, false);\n }\n throw new CannotCreateTransactionException(\"Could not open JDBC Connection for transaction\", ex);\n }\n }", "public void commitTransaction() {\n\r\n\t}", "@Override\n public Object doInTransaction(TransactionStatus transactionStatus) {\n transactionStatus.setRollbackOnly();\n return null;\n }", "void endTransaction();", "public DAO rollback() throws IllegalStateException\r\n\t{\r\n\t\treturn rollback(false);\r\n\t}", "private void testRollback001() {\n\t\tDmtSession session = null;\n\t\ttry {\n\t\t\tDefaultTestBundleControl.log(\"#testRollback001\");\n\t\t\tsession = tbc.getDmtAdmin().getSession(\".\", DmtSession.LOCK_TYPE_EXCLUSIVE);\n\t\t\tsession.rollback();\n\t\t\tDefaultTestBundleControl.failException(\"#\",DmtIllegalStateException.class);\n\t\t} catch (DmtIllegalStateException e) {\n\t\t\tDefaultTestBundleControl.pass(\"DmtIllegalStateException correctly thrown\");\n\t\t} catch (Exception e) {\n tbc.failExpectedOtherException(DmtIllegalStateException.class, e);\n\t\t} finally {\n\t\t\ttbc.closeSession(session);\n\t\t}\n\t}", "public boolean transactionStarted();", "public static void rollbackTransaction() throws HException {\r\n\t\t\r\n\t\tTransaction tx = (Transaction) threadTransaction.get();\r\n\t\ttry {\r\n\t\t\tthreadTransaction.set(null);\r\n\t\t\tif (tx != null && !tx.wasCommitted() && !tx.wasRolledBack()) {\r\n\t\t\t\ttx.rollback();\r\n\t\t\t}\r\n\t\t} catch (Exception ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t} finally {\r\n\t\t\t//closeSession();\r\n\t\t}\r\n\t}", "protected boolean isTransactionRollback()\n {\n try\n {\n UMOTransaction tx = TransactionCoordination.getInstance().getTransaction();\n if (tx != null && tx.isRollbackOnly())\n {\n return true;\n }\n }\n catch (TransactionException e)\n {\n // TODO MULE-863: What should we really do?\n logger.warn(e.getMessage());\n }\n return false;\n }", "public void rollbackTx()\n\n{\n\n}", "public GlobalTransaction getCurrentTransaction(boolean createIfNotExists)\n {\n Transaction tx;\n\n if ((tx = getLocalTransaction()) == null)\n {// no transaction is associated with the current thread\n return null;\n }\n\n if (!isValid(tx))\n {// we got a non-null transaction, but it is not active anymore\n int status = -1;\n try\n {\n status = tx.getStatus();\n }\n catch (SystemException e)\n {\n }\n\n // JBCACHE-982 -- don't complain if COMMITTED\n if (status != Status.STATUS_COMMITTED)\n {\n log.warn(\"status is \" + status + \" (not ACTIVE or PREPARING); returning null)\");\n }\n else\n {\n log.trace(\"status is COMMITTED; returning null\");\n }\n\n return null;\n }\n\n return getCurrentTransaction(tx, createIfNotExists);\n }", "@Override\n\t\tpublic void open() throws DbException, TransactionAbortedException {\n\t\t\ttplItr = tpls.iterator();\n\t\t}", "public void beginTransaction() throws TransactionException {\n\t\t\r\n\t}", "@Override\n\tpublic void rollbackTran(Connection con) throws SQLException {\n\t\tcon.rollback();\n\t this.closeAll(null, null, con);\n\t}", "@Override\n public void setRollbackOnly() throws IllegalStateException, SystemException {\n assertActiveTransaction();\n getTransaction().setRollbackOnly();\n }", "@PreDestroy\n protected void destroy() {\n sessionFactory.getCurrentSession().close();\n }", "@Override\n public void commitTx() {\n \n }", "void startTransaction();", "public boolean hasTransaction() {\n\t\treturn (this.transactionStatus != null);\n\t}", "@Override\n\tpublic void createTransaction(Transaction t) { \n\t\t/* begin transaction */ \n\t\tSession session = getCurrentSession(); \n\t\tsession.beginTransaction(); \n\n\t\t/* save */ \n\t\tsession.save(t);\n\n\t\t/* commit */ \n\t\tsession.getTransaction().commit();\n\t}", "@Override\n public void startTransaction() throws DAOManagerException {\n openConnection();\n try {\n connection.setAutoCommit(false);\n } catch (SQLException e) {\n LOGGER.error(\"Can't start transaction \", e);\n throw new DAOManagerException(e);\n }\n }", "void commit(Session session);", "public void forceCommitTx()\n{\n}", "@Transactional(Transactional.TxType.SUPPORTS)\n\tpublic void supports() {\n\t System.out.println(getClass().getName() + \"Transactional.TxType.SUPPORTS\");\n\t // Here the container will allow the method to be called by a client whether the client already has a transaction or not\n\t}", "@Override\n public void closeDBConnection() throws SQLException {\n if (sessionFactory.getCurrentSession() != null && sessionFactory.getCurrentSession().isOpen()) {\n sessionFactory.getCurrentSession().close();\n }\n }", "public void commitTransaction() {\n final EntityTransaction entityTransaction = em.getTransaction();\n if (!entityTransaction.isActive()) {\n entityTransaction.begin();\n }\n entityTransaction.commit();\n }", "public Object doInTransaction(TransactionStatus status) {\n sendEvent();\n sendEvent();\n sendEvent();\n sendEvent();\n status.setRollbackOnly();\n return null;\n }", "void rollbackTransaction(ConnectionContext context) throws IOException;", "protected abstract boolean commitTxn(Txn txn) throws PersistException;", "@Override\n public void closeSession() throws HibernateException {\n Session session = threadLocal.get();\n threadLocal.set(null);\n\n if (session != null) {\n session.close();\n }\n }", "@Transactional\n public StatusDTO finalizeImport(String session) {\n return null;\n }", "public void closeAndReopenSession() {\n\n\t\ttry {\n\t\t\tif (getHSession() != null) {\n\t\t\t\tgetHSession().close();\n\t\t\t}\n\t\t\tsetHSession(HibernateUtil.getNewSession());\n\t\t} catch (HibernateException he) {\n\t\t\tgetLog().error(he);\n\t\t}\n\t}", "public void beginTransaction() throws SQLException {\r\n conn.setAutoCommit(false);\r\n beginTransactionStatement.executeUpdate();\r\n }", "void beginTransaction(ConnectionContext context) throws IOException;", "@Override\r\n\t@Transactional\r\n\tpublic Transactions getTransaction() {\r\n\r\n\t\tArrayList<Transactions> closedTransactions=null;\r\n\t\tif(closedTransactions == null)\r\n\t\t{\r\n\t\tclosedTransactions = new ArrayList<Transactions>();\r\n\t\tclosedTransactions = this.getClosedTransactions();\r\n\t\t}\r\n\r\n\r\n\t\tif (index < closedTransactions.size()) {\r\n\t\t\tTransactions transaction = closedTransactions.get(index++);\r\n\t\t\treturn transaction;\r\n\t\t} else {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public boolean commit(Connection conn) throws SQLException {\n boolean status = true;\n try {\n // Start of system transaction\n conn.setAutoCommit(false);\n BookingMapper bm = new BookingMapper();\n status = status && bm.addNewBooking(newBooking, conn);\n status = status && bm.updateBooking(modifiedBooking, conn);\n status = status && bm.deleteBooking(deleteBooking, conn);\n if (!status) {\n\n throw new Exception(\"Business Transaction aborted\");\n }\n // System transaction ends with success\n conn.commit();\n } catch (Exception e) {\n System.out.println(\"fail in UnitOfWork - commit()\");\n System.err.println(e);\n // System transaction fails, rollsback\n conn.rollback();\n status = false;\n }\n return status;\n }", "public static void closeSession() throws HException {\r\n\t\ttry {\r\n\t\t\tcommitTransaction();\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\trollbackTransaction();\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tSession s = (Session) threadSession.get();\r\n\t\t\tthreadSession.set(null);\r\n\t\t\tthreadTransaction.set(null);\r\n\t\t\tif (s != null && s.isOpen()) {\r\n\t\t\t\ts.close();\r\n\t\t\t\tsetConnections(-1);\r\n\t\t\t}\r\n\t\t} catch (Exception ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t}", "public int orderCountByUser(int userId)throws ApplicationEXContainer.ApplicationCanNotChangeException{\n int count;\n try(Connection connection = MySQLDAOFactory.getConnection();\n AutoRollback autoRollback = new AutoRollback(connection)){\n count = orderDao.orderCountByUser(connection,userId);\n autoRollback.commit();\n } catch (SQLException | NamingException | DBException throwables) {\n LOGGER.error(throwables.getMessage());\n throw new ApplicationEXContainer.ApplicationCanNotChangeException(throwables.getMessage(),throwables);\n }\n return count;\n}", "public static void deshacerTransaccion() {\n try {\n con.rollback();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public interface ITransaction extends Serializable {\n /**\n * Open a transaction.\n * @throws Exception exception.\n */\n void open() throws Exception;\n\n /**\n * Close the current transaction.\n * @throws Exception exception.\n */\n void close() throws Exception;\n\n /**\n * Return true if transaction is opened.\n * @return true/false.\n * @throws Exception exception.\n */\n boolean isOpened() throws Exception;\n\n /**\n * Return true if transaction is marked as rollabck.\n * @return true/false.\n * @throws Exception exception.\n */\n boolean isMarkedRollback() throws Exception;\n\n /**\n * Join current transaction.\n * @throws Exception exception.\n */\n void join() throws Exception;\n\n /**\n * Unjoin current transaction.\n * @throws Exception exception.\n */\n void unjoin() throws Exception;\n}", "@Override\n public void begin() throws NotSupportedException, SystemException {\n SimpleTransaction txn = getTransaction();\n int status = txn.getStatus();\n if (status == Status.STATUS_COMMITTED || status == Status.STATUS_ROLLEDBACK || status == Status.STATUS_UNKNOWN\n || status == Status.STATUS_ACTIVE)\n txn.setStatus(Status.STATUS_ACTIVE);\n else\n throw new IllegalStateException(\"Can not begin \" + txn);\n }", "public void close() throws DataLayerException {\r\n // If connection is null or transactionClosed is true, exit.\r\n if (connection == null && !transactionClosed)\r\n throw new DataLayerException(\r\n \"Error completing database transaction. Illegal state. Connection is null but transaction not showing closed.\");\r\n\r\n if (connection == null) {\r\n log.debug(\"Transaction already closed...\");\r\n return;\r\n }\r\n\r\n try {\r\n driver.releaseConnection(connection);\r\n connection = null;\r\n transactionClosed = true;\r\n log.debug(\"Transaction closed successfully.\");\r\n } catch (Exception e) {\r\n throw new DataLayerException(\"Error closing database connection.\", e);\r\n }\r\n }", "public GlobalTransaction getCurrentTransaction()\n {\n return getCurrentTransaction(true);\n }", "private void testRollback002() {\n\t\tDmtSession session = null;\n\t\ttry {\n\t\t\tDefaultTestBundleControl.log(\"#testRollback002\");\n\t\t\tsession = tbc.getDmtAdmin().getSession(\".\", DmtSession.LOCK_TYPE_SHARED);\n\t\t\tsession.rollback();\n\t\t\tDefaultTestBundleControl.failException(\"#\",DmtIllegalStateException.class);\n\t\t} catch (DmtIllegalStateException e) {\n\t\t\tDefaultTestBundleControl.pass(\"DmtIllegalStateException correctly thrown\");\n\t\t} catch (Exception e) {\n tbc.failExpectedOtherException(DmtIllegalStateException.class, e);\n\t\t} finally {\n\t\t\ttbc.closeSession(session);\n\t\t}\n\t}", "private void rollbackTransaction(GraphTraversalSource g) {\n if (graphFactory.isSupportingTransactions()) {\n g.tx().rollback();\n }\n }", "@Override\r\n\tpublic void rollback() throws IllegalStateException, SecurityException, SystemException {\r\n\r\n\t\trequireTransaction(\"rollback\");\r\n\t\tif (getStatus()==Status.STATUS_COMMITTING) {\r\n\t\t\tthrow new IllegalStateException(\"Cannot rollback transaction while it's committing\");\r\n\t\t}\r\n\t\tgetTransaction().rollback();\r\n\t\tremoveTransaction();\r\n\r\n\t}" ]
[ "0.6821852", "0.66827023", "0.6410682", "0.6331674", "0.630202", "0.6239069", "0.6237839", "0.6222842", "0.6215649", "0.616809", "0.6109568", "0.6001687", "0.5992928", "0.5991708", "0.59847933", "0.59821653", "0.5978091", "0.5947041", "0.5945475", "0.5942566", "0.59343314", "0.59330106", "0.5922257", "0.5919425", "0.5909444", "0.5908248", "0.5906055", "0.58911437", "0.5886399", "0.5864035", "0.5857209", "0.58405393", "0.5829682", "0.58258826", "0.58208036", "0.5804074", "0.58027786", "0.5795233", "0.57898915", "0.57874787", "0.5769076", "0.5768187", "0.57593375", "0.574661", "0.57371294", "0.5733068", "0.5726969", "0.57209766", "0.5711008", "0.5704767", "0.5703981", "0.57021415", "0.569168", "0.56892663", "0.56844765", "0.56802076", "0.5678855", "0.56737256", "0.5669053", "0.56684476", "0.5667677", "0.56648165", "0.5663542", "0.5662624", "0.56369907", "0.56257725", "0.5622778", "0.56219274", "0.5620632", "0.561467", "0.56013787", "0.55954516", "0.5588728", "0.5574369", "0.5569848", "0.5567712", "0.555417", "0.5552118", "0.55335814", "0.55060995", "0.5505956", "0.55018353", "0.5497885", "0.5492389", "0.54886746", "0.547835", "0.5474585", "0.54734236", "0.5473319", "0.546893", "0.54612464", "0.54536283", "0.5450162", "0.54476655", "0.5433625", "0.54327327", "0.54272246", "0.5423708", "0.54221964", "0.54055476" ]
0.6574963
2
Return a list of objects matching the given hibernate query string, with the given parameter value map.
public static List find(String query, Map parameters) throws UAPersistenceException { // System.out.println("HibernateUtil.find: will execute HQL=" + query + "; params=" + parameters); Session sess = HibernateUtil.currentSession(); List retVal; try { Query q = sess.createQuery(query); setParameters(parameters, q); retVal = q.list(); // System.out.println("HibernateUtil.find: query result=" + retVal); } catch (HibernateException e) { throw new UAPersistenceException("HibernateUtil.find:: problems creating query, see stack trace", e); } return retVal; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List findByNamedQuery(String queryName, String[] paramNames, Object[] paramValues);", "@Override\r\n\tpublic List<T> find(String hql, List<Object> params) {\n\t\tQuery q = this.getcurrentSession().createQuery(hql);\r\n\t\tif (params != null && params.size() > 0) {\r\n\t\t\tfor (int i = 0; i < params.size(); i++) {\r\n\t\t\t\tq.setParameter(i, params.get(i));\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn q.list();\r\n\t}", "ZZW queryByHql(String hql,Map<String,Object> param);", "List<T> findByCriteria(String eCriteria, Object... parameters);", "public List<T> findByNamedQuery(final String queryName, final Map<String, ? extends Object> params) {\n\t\tjavax.persistence.Query query = em.createNamedQuery(queryName);\n\n\t\tfor (final Map.Entry<String, ? extends Object> param : params.entrySet()) {\n\t\t\tquery.setParameter(param.getKey(), param.getValue());\n\t\t}\n\n\t\tfinal List<T> result = (List<T>) query.getResultList();\n\t\treturn result;\n\t}", "public List sqlQuery(String sql,Object... params);", "List<?> query(Object inputObject, Settings settings);", "public List<String> queryForStrings(String sql, Object[] params);", "public <T> List<T> select(final String sqlQuery, final Class<T> clzz, final Map<String, Object> param) throws Exception;", "public abstract <T> List<T> query(String paramString, Class<T> paramClass, Object[] paramArrayOfObject);", "public List<Usuario> findWhere(Map<String, String> params){\n try {\n QueryBuilder<Usuario, Integer> queryBuilder = dao.queryBuilder();\n Where<Usuario, Integer> where = queryBuilder.where();\n\n for(Map.Entry<String, String> param: params.entrySet()) {\n where.eq(param.getKey(), param.getValue());\n }\n\n where.and(params.size());\n PreparedQuery<Usuario> preparedQuery = queryBuilder.prepare();\n return dao.query(preparedQuery);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return null;\n }", "List<Object[]> findBySql(String sql, final Object... objects);", "@Override\n\tpublic List<T> find(String hql, Map<String, Object> params, int page, int rows) {\n\t\tQuery q = hibernateTemplate.getSessionFactory().getCurrentSession().createQuery(hql);\n\t\tif (params != null && !params.isEmpty()) {\n\t\t\tfor (String key : params.keySet()) {\n\t\t\t\tq.setParameter(key, params.get(key));\n\t\t\t}\n\t\t}\n\t\treturn q.setFirstResult((page - 1) * rows).setMaxResults(rows).list();\n\t}", "@Override\r\n\tpublic List<T> find(String hql, Object[] param) {\n\t\tQuery q = this.getcurrentSession().createQuery(hql);\r\n\t\tif (param != null && param.length > 0) {\r\n\t\t\tfor (int i = 0; i < param.length; i++) {\r\n\t\t\t\tq.setParameter(i, param[i]);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn q.list();\r\n\t}", "List<Object[]> findByHql(String hql, final Object... objects) ;", "List<E> queryAll(String namedQuery);", "@Override\r\n\tpublic List<Object> findReturnObject(String hql, List<Object> params) {\n\t\tQuery q = this.getcurrentSession().createQuery(hql);\r\n\t\tif (params != null && params.size() > 0) {\r\n\t\t\tfor (int i = 0; i < params.size(); i++) {\r\n\t\t\t\tq.setParameter(i, params.get(i));\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn q.list();\r\n\t}", "@SuppressWarnings(\"unchecked\")\n public List<T> findByQuery(String queryString, QueryParameter... parameters)\n {\n return findByQuery(queryString, 0, 0, Arrays.asList(parameters));\n }", "@SuppressWarnings(\"unchecked\")\n public List<T> findByQuery(String queryString, Collection<QueryParameter> parameters)\n {\n return findByQuery(queryString, 0, 0, parameters);\n }", "public void filterBy(Map<String, List<String>> queryMap) {\n }", "public static List<?> queryDatabase(String sql, Map<String, Object> params) {\r\n final Session session = sessionFactory.isClosed() ? sessionFactory.openSession() : sessionFactory.getCurrentSession();\r\n session.beginTransaction();\r\n try {\r\n final Query query = session.createQuery(sql);\r\n if (params != null) {\r\n params.forEach(query::setParameter);\r\n }\r\n return query.list();\r\n } finally {\r\n session.getTransaction().commit();\r\n }\r\n }", "@Override\n\tpublic List<Zongjie> findList(Map<String, Object> queryMap) {\n\t\treturn zongjieDao.findList(queryMap);\n\t}", "List<Order> findOrdersByParameters(Map<String, Object> orderParameters) throws DaoProjectException;", "@SuppressWarnings(\"unchecked\")\n public List<T> findBySQLQuery(String queryString)\n {\n SQLQuery sqlQuery = session.createSQLQuery(queryString);\n\n if (logger.isDebugEnabled())\n logger.debug(sqlQuery.getQueryString());\n\n return sqlQuery.list();\n }", "public void search(Map<String, String> searchParam);", "@Override\n\tpublic List<T> getListHql(String hql, Object... param) {\n\t\treturn getQuery(hql, param).list();\n\t}", "List<T> findByCriteria(Criteria criteria) ;", "public List<Orders> findOrder(Map<String, Object> params);", "public List findByNamedQuery(String queryName);", "@SuppressWarnings(\"unchecked\")\n public <T extends BaseEntity> List<T> select(String hql, List<Object> param) {\n Query q = this.getCurrentSession().createQuery(hql);\n if (param != null && param.size() > 0) {\n for (int i = 0; i < param.size(); i++) {\n q.setParameter(i, param.get(i));\n }\n }\n return q.list();\n }", "List<T> getAllWithQuery(String query);", "public List<?> queryByNative(String jql, Map<String, Object> params){\r\n\t\treturn queryByNative(jql, Object.class, params);\r\n\t}", "ArrayList<E> getWhere(String parameterName, String parameterValue, E dummyObject) throws DatabaseNotAccessibleException, DatabaseObjectNotFoundException, NoSuchFieldException;", "public List<String> findString(String hql, Object[] param) {\n\t\tQuery q = this.getSession().createQuery(hql);\n\t\tif (param != null && param.length > 0) {\n\t\t\tfor (int i = 0; i < param.length; i++) {\n\t\t\t\tq.setParameter(i, param[i]);\n\t\t\t}\n\t\t}\n\t\treturn q.list();\n\t}", "public <T> List<T> findByQuery(AnutaQuery<T> query);", "@SuppressWarnings(\"unchecked\")\n public <T extends BaseEntity> List<T> select(String hql, Object[] param) {\n Query q = this.getCurrentSession().createQuery(hql);\n if (param != null && param.length > 0) {\n for (int i = 0; i < param.length; i++) {\n q.setParameter(i, param[i]);\n }\n }\n return q.list();\n }", "@Override\r\n\tpublic List<Object> findReturnObject(String hql, Object[] param) {\n\t\tQuery q = this.getcurrentSession().createQuery(hql);\r\n\t\tif (param != null && param.length > 0) {\r\n\t\t\tfor (int i = 0; i < param.length; i++) {\r\n\t\t\t\tq.setParameter(i, param[i]);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn q.list();\r\n\t}", "@Override\r\n public <T> List<T> query(String query, RowMapper<T> rowMapper, Object... parameters) {\n List<T> results = new ArrayList<>();\r\n Connection connection = null;\r\n PreparedStatement prepareStatement = null;\r\n ResultSet resultSet = null;\r\n try {\r\n connection = getConnection();\r\n prepareStatement = connection.prepareStatement(query);\r\n setParameter(prepareStatement, parameters);\r\n resultSet = prepareStatement.executeQuery();\r\n while (resultSet.next()) {\r\n results.add(rowMapper.mapRow(resultSet));\r\n }\r\n return results;\r\n } catch (SQLException e) {\r\n return null;\r\n } finally {\r\n try {\r\n connection.close();\r\n if (prepareStatement != null) {\r\n prepareStatement.close();\r\n }\r\n if (resultSet != null) {\r\n resultSet.close();\r\n }\r\n } catch (SQLException e) {\r\n return null;\r\n }\r\n }\r\n }", "public List<User> find(String hql, Class<User> class1, String[] strings);", "public List<Map<String, Object>> findForListMap(final String sql, Map<String, Object> parameters) {\n\t\ttry {\n\t\t\tAssert.hasText(sql, \"sql语句不正确!\");\n\t\t\tif (parameters != null) {\n\t\t\t\treturn simpleJdbcTemplate.queryForList(sql, parameters);\n\t\t\t} else {\n\t\t\t\treturn simpleJdbcTemplate.queryForList(sql);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\treturn null;\n\t\t}\n\t}", "public List<Esysmeudef> list(Map<String, Object> params);", "@SuppressWarnings(\"unchecked\")\n protected List<T> findByCriteria(Criterion... criterions)\n {\n Criteria crit = session.createCriteria(getPersistentClass());\n\n for (Criterion c : criterions)\n crit.add(c);\n\n return crit.list();\n }", "public <V> List<V> executeListNamedQuery(String name, Map<String, Object> params) {\n\t Query q = getEntityManager().createNamedQuery(name);\n\t for (Map.Entry<String, Object> entry : params.entrySet()) {\n\t q.setParameter(entry.getKey(), entry.getValue());\n\t }\n\t return q.getResultList();\n\t }", "@SuppressWarnings(\"unchecked\")\n public List<T> findByQuery(String queryString, int offset, int limit, Collection<QueryParameter> parameters)\n {\n Query query = session.createQuery(queryString);\n for (QueryParameter parameter : parameters)\n {\n if (parameter.getParameterValue() instanceof Collection)\n query.setParameterList(parameter.getParameterName(), (Collection) parameter.getParameterValue());\n else\n query.setParameter(parameter.getParameterName(), parameter.getParameterValue());\n }\n\n if (limit > 0)\n query.setMaxResults(limit);\n\n if (offset > 0)\n query.setFirstResult(offset);\n\n if (logger.isDebugEnabled())\n logger.debug(query.getQueryString());\n\n return query.list();\n }", "public List<T> findByNamedQuery(final String queryName, Object... params) {\n\t\tjavax.persistence.Query query = em.createNamedQuery(queryName);\n\n\t\tfor (int i = 0; i < params.length; i++) {\n\t\t\tquery.setParameter(i + 1, params[i]);\n\t\t}\n\t\t\n\t\tfinal List<T> result = (List<T>) query.getResultList();\n\t\treturn result;\n\t}", "public List<DomainObject> getListByKeyandValue(String colname, Object value) {\r\n Session session = getSession();\r\n List<DomainObject> retList = null;\r\n try {\r\n Criteria query = session.createCriteria(getPersistentClass()).add(Restrictions.eq(colname, value));\r\n retList = query.list();\r\n } catch (HibernateException e) {\r\n LOG.error(MODULE + \"Exception in getListByKeyandValue Method:\" + e, e);\r\n } finally {\r\n// if (session.isOpen()) {\r\n// session.close();\r\n// }\r\n }\r\n return retList;\r\n }", "public <T> List<T> queryByNative(String jql, Class<T> clazz, Map<String, Object> params) {\r\n\t\treturn queryByNative(jql, clazz, 0, 0, params);\r\n\t}", "ArrayList<E> getWhere(String parameterName, int parameterValue, E dummyObject) throws DatabaseNotAccessibleException, DatabaseObjectNotFoundException, NoSuchFieldException;", "protected abstract List<Object> getParamValues(SqlKeyWord sqlKeyWord, Object dbEntity, TableInfo tableInfo, Map<String, Object> params) throws Exception;", "List<EmpTaskInfo> queryEmpTasksByCond(Map paramMap);", "public List<ViewXwZqkh> Query(String filters, String orders, Object... values);", "@Override\r\n\tpublic List<HashMap<String, Object>> queryList(HashMap<String, Object> map) {\n\t\treturn crawlerCronJobDao.queryList(map);\r\n\t}", "SearchResponse query(SearchRequest request, Map<SearchParam, String> params);", "public abstract List createQuery(String query);", "public List find(final Session session, final String query, final Object[] values, final Type[] types) {\n try {\n return session.find(query, values, types);\n } catch (HibernateException e) {\n throw new ModMarccatException(e);\n }\n }", "List<ReportPair> getParameterValues(String hsql);", "protected final List<T> findByQuery(String query, Object... params) {\n return this.findSortedByQuery(query, null, params);\n }", "public List<Map<String, Object>> findForListMap(final String sql, Object... parameters) {\n\t\ttry {\n\t\t\tAssert.hasText(sql, \"sql语句不正确!\");\n\t\t\treturn simpleJdbcTemplate.queryForList(sql, parameters);\n\t\t} catch (Exception e) {\n\t\t\treturn null;\n\t\t}\n\t}", "List<ResultDTO> search(String query);", "@Override\n\tpublic List<OrderDetail> listBy(Map<String, Object> paramMap) {\n\t\tList<OrderDetail> listBy = orderDetailDao.listBy(paramMap);\n\t\treturn listBy;\n\t}", "@Override\n\tpublic List<T> find(String hql) {\n\t\treturn hibernateTemplate.find(hql);\n\t}", "List<T> findAll(ListParams params);", "public List<AnnexDetail> getByMap(Object[] params) {\n\t\treturn null;\n\t}", "@SuppressWarnings(\"unchecked\")\n public List<T> findByQuery(String queryString, int offset, int limit, QueryParameter... parameters)\n {\n return findByQuery(queryString, offset, limit, Arrays.asList(parameters));\n }", "public List getObjectByQuery(StringBuffer sqlquery)\n {\n List list = new ArrayList();\n Query query = getSession().createQuery(sqlquery.toString());\n list = query.list();\n return list;\n }", "public interface UserDao {\n List<User> queryUserList(Map<String, Object> param);\n}", "public List<Student> searchStudent(Map<String, String> map);", "public List<Contact> searchContacts(Map<SearchTerm,String> criteria);", "protected List findAllByParam(Class clazz, String operation, String value) {\r\n try {\r\n Query q = entityManager.createNamedQuery(clazz.getSimpleName() + \".findBy\" + operation);\r\n q.setParameter(operation.toLowerCase(), value);\r\n return q.getResultList();\r\n } catch (Exception e) {\r\n //Nao e um erro :)\r\n }\r\n return null;\r\n }", "public List<DomainObject> getListByCondition(String condition) {\r\n Session session = getSession();\r\n List<DomainObject> lst = null;\r\n try {\r\n if (condition == null || \"null\".equals(condition)) {\r\n condition = \" \";\r\n }\r\n lst = session.createQuery(\"from \" + getPersistentClass().getName() + \" \" + condition).list();\r\n } catch (HibernateException e) {\r\n LOG.error(MODULE + \"Exception in getListByCondition Method:\" + e, e);\r\n } finally {\r\n if (session.isOpen()) {\r\n session.close();\r\n }\r\n }\r\n return lst;\r\n }", "public static List<Map<String, Object>> executeSearchQuery(String sql, Object... params) {\n Search search = new Search(sql, result1 -> {\n }, params);\n getInstance().add(search);\n\n while (search.getResult() == null) {\n getInstance().executeThread();\n }\n return search.getResult();\n }", "<T> List<T> getResultList(Class<T> type, Query query);", "public List<?> query(String jql, int offset, int size, Map<String, Object> params) {\r\n\t\treturn query(jql, Object.class, offset, size, params);\r\n\t}", "List<Map<String, String>> getFilteredDocuments(Map<String, Object> paramsMap);", "public List<DomainObject> getListByKeyandValue(String colname, List<Object> keyValue) {\r\n Session session = getSession();\r\n List<DomainObject> retList = null;\r\n try {\r\n Criteria query = session.createCriteria(getPersistentClass()).add(Restrictions.in(colname, keyValue));\r\n retList = query.list();\r\n } catch (HibernateException e) {\r\n LOG.error(MODULE + \"Exception in getListByKeyandValue with List<Values> Method:\" + e, e);\r\n } finally {\r\n// if (session.isOpen()) {\r\n// session.close();\r\n// }\r\n }\r\n return retList;\r\n }", "public Collection<String> query(String queryStr) {\n\t\t// TODO: Implement this method (FOR A BONUS)\n\t\tArrayList<String> result = new ArrayList<String>();\n\t\t\n\t\tfor(Map.Entry<String,Integer> entry : this.dict.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String temp = wild(key,queryStr); \n\t\t\t if(temp != null && !(\"\".equalsIgnoreCase(temp))){\n\t\t\t\t result.add(temp);\n\t\t\t }\n\t\t\t // System.out.println(key + \" => \" + value);\n\t\t\t}\n\t\t\t//wild(this.dict.get,queryStr);\n\t\tif(result.isEmpty()){\n\t\t\treturn null;\n\t\t}\n\t\tSystem.out.println(result);\n\t\treturn result;\n\t}", "List<T> getSQLList(String sql);", "@Override\n\tpublic List<T> findListByQueryDinamic(String s) throws Exception {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic List<T> find(String hql,List<Object> params,Integer firstResult,Integer maxResults) throws Exception {\n\t\tQuery q = this.getcurrentSession().createQuery(hql);\r\n\t\t\r\n\t\tif (params != null && params.size() > 0) {\r\n\t\t\tfor (int i = 0; i < params.size(); i++) {\r\n\t\t\t\tq.setParameter(i, params.get(i));\r\n\t\t\t}\r\n\t\t}\r\n\t\tq.setFirstResult(firstResult);\r\n\t\tq.setMaxResults(maxResults);\r\n\t\treturn q.list();\r\n\t\t\r\n\t}", "public <T> List<T> query(String jql, Class<T> clazz, int offset, int size, Map<String, Object> params) {\r\n\t\treturn query(jql, clazz, false, offset, size, params);\r\n\t}", "public List executeQuery(String hql, Map params) throws RepositoryException {\n\t\tList retorno = DatanucleusCRUDUtils.executeQuery(hql, params); \n\t\tparams.clear();\n\t\treturn retorno;\n\t}", "public Cliente[] findByDynamicWhere(String sql, Object[] sqlParams) throws ClienteDaoException;", "public List<Persona> findPersonaList(String query){\n\t\tif(StringUtils.isBlank(query)){\n\t\t\treturn new ArrayList<Persona>();\n\t\t}\n\t\n\t\tGenericCriteria<Persona> criteria = GenericCriteria.forClass(Persona.class);\n\t\tcriteria.addAliasedJoins(Persona_.creador);\n\t\t\n\t\tif(NumberUtils.tryParseLong(query)){\n\t\t\tcriteria.addEqualsIfNotZero(Persona_.id, NumberUtils.parseLong(query));\n\t\t\tif(criteria.isChanged()){\n\t\t\t\treturn findByCriteria(criteria);\n\t\t\t}\n\t\t}\n\t\t\n\t\tcriteria.addMultiLikeTokens(query, Persona_.nombres, Persona_.apellidos);\n\n\t\treturn findByCriteria(criteria);\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic List sqlQuery(String sql,HashMap entities,HashMap joins,Object... params);", "List<OwnerOperatorDTO> search(String query);", "@Override\n\tpublic List<Object> getAll(String hql) {\n\t\tSession session = HibernateSessionFactory.getSession();\n\t\tTransaction ts = session.beginTransaction();\n\n\t\tList<Object> list = new ArrayList<Object>();\n\t\tlist = session.createQuery(hql).list();\n\t\tts.commit();\n\t\tsession.close();\n\t\treturn list;\n\t}", "public static List<Handset> search(Map<String, String> reqParam) {\n\n\t\tList<Handset> temp = new ArrayList<Handset>();\n\t\ttemp.addAll(cache.values());\n\n\t\tfor (String param : reqParam.keySet()) {\n\t\t\tString val = (String) reqParam.get(param);\n\n\t\t\tswitch (param) {\n\t\t\tcase \"priceEur\": {\n\t\t\t\ttemp = temp.stream().filter(handset -> handset.getRelease().getPriceEur() == Integer.parseInt(val))\n\t\t\t\t\t\t.collect(Collectors.toList());\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase \"sim\": {\n\t\t\t\ttemp = temp.stream().filter(handset -> handset.getSim().toLowerCase().contains(val.toLowerCase()))\n\t\t\t\t\t\t.collect(Collectors.toList());\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase \"announceDate\": {\n\t\t\t\ttemp = temp.stream().filter(handset -> handset.getRelease().getAnnounceDate().equalsIgnoreCase(val))\n\t\t\t\t\t\t.collect(Collectors.toList());\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tdefault:\n\t\t\t\ttemp = new ArrayList<Handset>();\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"filtered handset size \" + temp.size());\n\t\treturn temp;\n\n\t}", "List<ShipmentInfoPODDTO> search(String query);", "@SuppressWarnings(\"unchecked\")\n public <T extends BaseEntity> List<T> select(String hql, Object[] param, Integer page, Integer rows) {\n\n int start = 0;\n int limit = DEFAULT_LIMIT;\n\n if (rows != null && rows > 0) {\n limit = rows.intValue();\n }\n if (page != null && page > 0) {\n start = (page - 1) * limit;\n }\n\n Query q = this.getCurrentSession().createQuery(hql);\n if (param != null && param.length > 0) {\n for (int i = 0; i < param.length; i++) {\n q.setParameter(i, param[i]);\n }\n }\n return q.setFirstResult(start).setMaxResults(limit).list();\n }", "public List<IEntity> query(IQuery query) throws SQLException;", "@SuppressWarnings(\"unchecked\")\n public <T extends BaseEntity> List<T> select(String hql, List<Object> param, Integer page, Integer rows) {\n\n int start = 0;\n int limit = DEFAULT_LIMIT;\n\n if (rows != null && rows > 0) {\n limit = rows.intValue();\n }\n if (page != null && page > 0) {\n start = (page - 1) * limit;\n }\n\n Query q = this.getCurrentSession().createQuery(hql);\n if (param != null && param.size() > 0) {\n for (int i = 0; i < param.size(); i++) {\n q.setParameter(i, param.get(i));\n }\n }\n return q.setFirstResult(start).setMaxResults(limit).list();\n }", "List<TypePatientPropertyCondition> search(String query);", "Object callQuery(String name, Map<String, String> params);", "public Faq[] findByDynamicSelect(String sql, Object[] sqlParams) throws FaqDaoException;", "public List<Map<String,Object>> ejecutarQuery(String sql){\n return this.jdbcTemplate.queryForList(sql);\n }", "public abstract <T> List<? extends T> createQuery(String query, Class<T> type);", "public Cliente[] findByDynamicSelect(String sql, Object[] sqlParams) throws ClienteDaoException;", "@RequestMapping(\"/Subject/ListBySearch\")\n\t@ResponseBody\n\tpublic List<SubjectVo> getSubjectBySearch(@RequestParam HashMap<String, Object> map){\n\t\t\n\t\tSystem.out.println(map);\n\t\t\n\t\tList<SubjectVo> subjectList = subjectService.getSubjectBySearch(map); \n\t\t\n\t\tSystem.out.println(subjectList);\n\t\t\n\t\treturn subjectList;\n\t}", "public List<Map<String, Object>> query(String sql, Object[] parameters) throws SQLException {\n PreparedStatement statement = null;\n\n try {\n statement = conn.prepareStatement(sql);\n\n if(parameters != null) {\n for(int i = 0; i < parameters.length; i++) {\n statement.setObject(i + 1, parameters[i]);\n }\n }\n\n List<Map<String, Object>> rows = new ArrayList<Map<String, Object>>();\n ResultSet rs = statement.executeQuery();\n ResultSetMetaData md = rs.getMetaData();\n while (rs.next()) {\n Map<String, Object> row = new HashMap<String, Object>();\n\n for (int i = 0; i < md.getColumnCount(); i++) {\n row.put(md.getColumnName(i + 1), rs.getObject(i + 1));\n }\n rows.add(row);\n }\n return rows;\n\n }\n finally {\n if (statement != null) {\n statement.close();\n }\n }\n }", "@Override\r\n\tpublic DeptBean[] findByDynamicWhere(String sql, Object[] sqlParams)\r\n\t\t\tthrows SQLException {\n\t\tList<Map<String, Object>> resultList = new ArrayList<Map<String,Object>>();\r\n\t\tdeptConn = this.getConnection();\r\n\t\tfinal String SQL = SQL_SELECT + \" WHERE \" + sql;\r\n\t\tresultList = this.executeQuery(deptConn, SQL, sqlParams);\r\n\t\tif (deptConn != null) {\r\n\t\t\tthis.closeConnection(deptConn);\r\n\t\t}\r\n\t\treturn MapToObject(resultList);\r\n\t}" ]
[ "0.6648815", "0.6575358", "0.6512504", "0.64843804", "0.64351845", "0.63820666", "0.6341811", "0.6283842", "0.6273755", "0.62510335", "0.6244373", "0.6240908", "0.62354755", "0.62351304", "0.6226764", "0.6210411", "0.6184829", "0.6175506", "0.6167854", "0.614842", "0.6140461", "0.61384606", "0.6130068", "0.61128116", "0.61075914", "0.61049616", "0.606948", "0.60501194", "0.60354066", "0.6023919", "0.60109687", "0.6003355", "0.59967226", "0.5993853", "0.593315", "0.592585", "0.592039", "0.5915904", "0.5895767", "0.5879503", "0.58495533", "0.5845947", "0.5837689", "0.583768", "0.5835281", "0.5827653", "0.5825402", "0.5822038", "0.58214116", "0.5816078", "0.58160114", "0.5806459", "0.57637554", "0.5763368", "0.5740888", "0.5733234", "0.5724704", "0.57124466", "0.5694908", "0.56923455", "0.5680701", "0.56780815", "0.5674542", "0.56716734", "0.5669451", "0.56591225", "0.5653658", "0.5648785", "0.56402254", "0.56238014", "0.56165177", "0.56159425", "0.5615662", "0.5612577", "0.5609159", "0.5577879", "0.5573588", "0.55649114", "0.5555443", "0.55547464", "0.5554007", "0.55514795", "0.55492455", "0.55364376", "0.55352265", "0.55338687", "0.553116", "0.5519044", "0.55158633", "0.55150104", "0.5514725", "0.55031174", "0.5494082", "0.5491467", "0.5488434", "0.5486406", "0.5481287", "0.54768556", "0.5475992", "0.54740864" ]
0.6220639
15
System.out.println("HibernateUtil.find: will execute HQL=" + query + "; params=" + parameters);
public static List pagedFind(String query, Map parameters, int firstResult, int maxResults) throws UAPersistenceException { Session sess = HibernateUtil.currentSession(); List retVal; try { Query q = sess.createQuery(query); q.setFirstResult(firstResult) .setMaxResults(maxResults); setParameters(parameters, q); retVal = q.list(); // System.out.println("HibernateUtil.find: query result=" + retVal); } catch (HibernateException e) { throw new UAPersistenceException("HibernateUtil.find:: problems creating query, see stack trace", e); } return retVal; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static List find(String query, Map parameters) throws UAPersistenceException\n {\n // System.out.println(\"HibernateUtil.find: will execute HQL=\" + query + \"; params=\" + parameters);\n Session sess = HibernateUtil.currentSession();\n List retVal;\n try\n {\n Query q = sess.createQuery(query);\n setParameters(parameters, q);\n retVal = q.list();\n // System.out.println(\"HibernateUtil.find: query result=\" + retVal);\n } catch (HibernateException e)\n {\n throw new UAPersistenceException(\"HibernateUtil.find:: problems creating query, see stack trace\", e);\n }\n return retVal;\n }", "@Override\r\n\tpublic List<T> find(String hql, List<Object> params) {\n\t\tQuery q = this.getcurrentSession().createQuery(hql);\r\n\t\tif (params != null && params.size() > 0) {\r\n\t\t\tfor (int i = 0; i < params.size(); i++) {\r\n\t\t\t\tq.setParameter(i, params.get(i));\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn q.list();\r\n\t}", "@Override\r\n\tpublic List<T> find(String hql, Object[] param) {\n\t\tQuery q = this.getcurrentSession().createQuery(hql);\r\n\t\tif (param != null && param.length > 0) {\r\n\t\t\tfor (int i = 0; i < param.length; i++) {\r\n\t\t\t\tq.setParameter(i, param[i]);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn q.list();\r\n\t}", "public static void main( String[] args )\n {\n \tSessionFactory sf = HibernateSessionFactoryUtil.getSessionFactory(); \n \tSession session1 = sf.openSession();\n \t\n \t// insertTestData(session1);\n \t\n \tsession1.beginTransaction();\n \t\n \t\n \tSystem.out.println(\"List of objects\\n\");\n \tQuery query1 = session1.createQuery(\"from Student s where s.rollno>45\");\n \tList<Student> students= query1.list();\n \t\n \tfor(Student s: students) {\n \t\tSystem.out.println(s);\n \t}\n \t\n \tSystem.out.println(\"\\n*****************\\n\");\n \t\n \tint rollno = 7;\n \t\n \tSystem.out.println(\"Single object via explicit parameter\\n\");\n \tQuery query2 = session1.createQuery(\"from Student where rollno=:param\");\n \tquery2.setParameter(\"param\", rollno);\n \tStudent student1 = (Student) query2.uniqueResult();\n \tSystem.out.println(student1);\n \t\n \tSystem.out.println(\"\\n*****************\\n\");\n \t\n \tSystem.out.println(\"Single object with certain columns\\\\n\");\n \t\n \tQuery query3 = session1.createQuery(\"Select rollno, name from Student where rollno=7\");\n \tObject[] student2 = (Object[]) query3.uniqueResult();\n \tSystem.out.println(student2[0] + \" - \" + student2[1]);\n \t\n \tSystem.out.println(\"\\n*****************\\n\");\n \t\n \tSystem.out.println(\"Returns results of adding data (summation)\\n\");\n \t\n \tQuery query4 = session1.createQuery(\"Select sum(marks) from Student\");\n \tLong sumOfMarks = (Long) query4.uniqueResult();\n \tSystem.out.println(\"sumOfMarks: \" + sumOfMarks);\n \t\n \tSystem.out.println(\"\\n*****************\\n\");\n \t\n \t\n \tSystem.out.println(\"Returns results by using original SQL\\n\");\n \t\n \tSQLQuery query5 = session1.createSQLQuery(\"SELECT * FROM student WHERE marks>60\");\n \tquery5.addEntity(Student.class);\n \tList<Student> students2 = query5.getResultList();\n \t\n \tfor(Student s1: students2) {\n \t\tSystem.out.println(s1);\n \t}\n \t\n \tSystem.out.println(\"\\n*****************\\n\");\n \t\n \tSystem.out.println(\"Return results by using original SQL/Native Query\\n\");\n \t\n \tNativeQuery query6 = session1.createSQLQuery(\"SELECT rollno, name FROM student WHERE marks>60\");\n \tquery6.setResultTransformer(Criteria.ALIAS_TO_ENTITY_MAP);\n \tList<?> students3 = query6.list();\n \t\n \tfor(Object s1: students3) {\n \t\tMap<?, ?> m1 = (Map) s1;\n \t\tSystem.out.println(m1.get(\"name\") + \" : \" + m1.get(\"rollno\"));\n \t}\n \t\n \tSystem.out.println(\"\\n*****************\\n\");\n \t\n \tsession1.getTransaction().commit();\n }", "@Test\n @Tag(\"CREATE\")\n @Tag(\"RESOURCE\")\n @DisplayName(\"Test HQL Query with Parameter Binding with Address 02\")\n public void testHQLQueryWithParameterBindingWithAddress02()\n {\n System.out.println(\"Programme Start\");\n long startTime = System.nanoTime();\n\n UuidUtilities utilities = new UuidUtilities();\n List<SBAddress02> addresses = null;\n\n try (Session session = HibernateUtil.getSessionFactory().openSession()) {\n Transaction transaction = null;\n try {\n transaction = session.beginTransaction();\n\n// Query query = session.createQuery(\"from SBAddress02 where address02Zip = '292000' or address02Zip = '2920013'\");\n// Query query = session.createQuery(\"from SBAddress02 where address02Zip = ? or address02Zip = ?\"); // No longer support\n Query query = session.createQuery(\"from SBAddress02 where address02Zip = ?1 or address02Zip = :searchParam\");\n// .setParameter(1,\"292000\")\n// .setParameter(\"searchParam\",\"2920013\");\n query.setParameter(1, \"292000\");\n query.setParameter(\"searchParam\", \"2920013\");\n\n addresses = query.list();\n\n transaction.commit();\n\n addresses.forEach(address -> System.out.println(\"Added Address : \" + address.getAddress02Street()));\n } catch (Exception e) {\n if (transaction != null) {\n transaction.rollback();\n }\n LOGGER.error(ExceptionUtils.getFullStackTrace(e));\n e.printStackTrace();\n }\n\n } catch (Throwable throwable) {\n LOGGER.error(ExceptionUtils.getFullStackTrace(throwable));\n throwable.printStackTrace();\n }\n\n System.out.println(\"Address : \" + addresses.size());\n\n long endTime = System.nanoTime();\n ELAPSED_TIME = endTime - startTime;\n System.out.println(\"Programme End\");\n\n }", "public static void main(String[] args) {\n\r\n\t\tEntityManager em = PersistanceManager.INSTANCE.getEntityManager();\r\n\t\tSystem.out.println(\"Print ALL\");\r\n\t\tQuery query = em.createQuery(\"FROM Employee e\");\r\n\t\tArrayList<Employee> result = (ArrayList<Employee>) query.getResultList();\r\n\t\tfor (Employee current : result)\r\n\t\t\tSystem.out.println(current.toString());\r\n\t\tSystem.out.println(\"Print id = 3\");\r\n\t\tQuery query1 = em.createQuery(\"FROM Employee e where e.id=3\");\r\n\t\tArrayList<Employee> result1 = (ArrayList<Employee>) query1.getResultList();\r\n\t\tfor (Employee current : result1)\r\n\t\t\tSystem.out.println(current.toString());\r\n\t\tSystem.out.println(\"Print Named Query \");\r\n\t\tArrayList<Employee> result2 = (ArrayList<Employee>) em.createNamedQuery(\"Employee.searchAll\").setParameter(\"empName\", \"D%\")\r\n\t\t\t\t.getResultList();\r\n\t\tfor (Employee current : result2)\r\n\t\t\tSystem.out.println(current.toString());\r\n\t}", "@Override\r\n\tpublic List<T> find(String hql,List<Object> params,Integer firstResult,Integer maxResults) throws Exception {\n\t\tQuery q = this.getcurrentSession().createQuery(hql);\r\n\t\t\r\n\t\tif (params != null && params.size() > 0) {\r\n\t\t\tfor (int i = 0; i < params.size(); i++) {\r\n\t\t\t\tq.setParameter(i, params.get(i));\r\n\t\t\t}\r\n\t\t}\r\n\t\tq.setFirstResult(firstResult);\r\n\t\tq.setMaxResults(maxResults);\r\n\t\treturn q.list();\r\n\t\t\r\n\t}", "@Override\r\n\tpublic List<Object> findReturnObject(String hql, List<Object> params) {\n\t\tQuery q = this.getcurrentSession().createQuery(hql);\r\n\t\tif (params != null && params.size() > 0) {\r\n\t\t\tfor (int i = 0; i < params.size(); i++) {\r\n\t\t\t\tq.setParameter(i, params.get(i));\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn q.list();\r\n\t}", "@Override\n\tpublic List<T> find(String hql) {\n\t\treturn hibernateTemplate.find(hql);\n\t}", "@Override\n\tpublic List<T> find(String hql, Map<String, Object> params, int page, int rows) {\n\t\tQuery q = hibernateTemplate.getSessionFactory().getCurrentSession().createQuery(hql);\n\t\tif (params != null && !params.isEmpty()) {\n\t\t\tfor (String key : params.keySet()) {\n\t\t\t\tq.setParameter(key, params.get(key));\n\t\t\t}\n\t\t}\n\t\treturn q.setFirstResult((page - 1) * rows).setMaxResults(rows).list();\n\t}", "@Override\r\n\tpublic List<T> find(String hql) throws Exception {\n\t\treturn this.getcurrentSession().createQuery(hql).list();\r\n\t}", "public static void main(String[] args) throws Exception {\n\r\n Session session = ourSessionFactory.openSession();\r\n Transaction tx = null;\r\n\r\n try {\r\n tx = session.beginTransaction();\r\n List<BooksEntity> books = session.createQuery(\"FROM\" + BooksEntity.class.getName()).list();\r\n\r\n for (BooksEntity book : books) {\r\n System.out.println(\" Tytuł: \" + book.getTitle());\r\n System.out.println(\" Autor\" + book.getAuthor());\r\n }\r\n tx.commit();\r\n }catch (HibernateException e){\r\n if (tx!=null) tx.rollback();\r\n e.printStackTrace();\r\n }finally {\r\n session.close();\r\n }\r\n }", "private void executeQuery() {\n }", "public List executeQuery(String hql, Map params) throws RepositoryException {\n\t\tList retorno = DatanucleusCRUDUtils.executeQuery(hql, params); \n\t\tparams.clear();\n\t\treturn retorno;\n\t}", "@Override\n\tvoid executeQuery(String query) {\n\t\tSystem.out.println(\"Mssql ==> \" + query);\n\t}", "public List sqlQuery(String sql,Object... params);", "@Override\r\n\tpublic T findEntity(String hql, List<Object> params) throws Exception {\n\t\tList<T> list = this.find(hql, params);\r\n\t\tif (list != null && list.size() > 0) {\r\n\t\t\treturn list.get(0);\r\n\t\t} else {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\tSessionFactory sf=Util.getSessionFactory();\r\n\t\tSession session=sf.openSession();\r\n\t\tString hql=\"from Employee\";\r\n\t\tQuery q=session.createQuery(hql);\r\n\t\tList<Employee> li = q.list();\r\n\t\tfor(Employee e:li)\r\n\t\t\tSystem.out.println(e);\r\n\t\t/*String hql1=\"Update Employee set eName='YYY' sal=30000 where eNo=101\";\r\n\t\tQuery q1=session.createQuery(hql1);\r\n\t\tList<Employee> li1 = q1.list();\r\n\t\tfor(Employee e:li1)\r\n\t\t\tSystem.out.println(e);*/\r\n\t\tsession.close();\r\n\t}", "public Result findByPage(Page page,String hql, Object... params) ;", "@Override\n\tpublic Object getObjectByInfo(String hql) {\n\t\tSession session = HibernateSessionFactory.getSession();\n\t\tTransaction transaction = session.beginTransaction();\n\t\tQuery query = session.createQuery(hql);\n\t\tObject obj = query.uniqueResult();\n\t\ttransaction.commit();\n\t\tsession.close();\n\t\tSystem.out.println(\"查询完毕\");\n\t\treturn obj;\n\t}", "@Override\r\n\tpublic List<Object> findReturnObject(String hql, Object[] param) {\n\t\tQuery q = this.getcurrentSession().createQuery(hql);\r\n\t\tif (param != null && param.length > 0) {\r\n\t\t\tfor (int i = 0; i < param.length; i++) {\r\n\t\t\t\tq.setParameter(i, param[i]);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn q.list();\r\n\t}", "ZZW queryByHql(String hql,Map<String,Object> param);", "@Override\r\n\tpublic PageUtil<T> find(String hql, List<Object> params,\r\n\t\t\tPageUtil<T> pageUtil,String countHQL) {\n\t\ttry {\r\n\t\t\tif (pageUtil==null || pageUtil.getPage()==null) {\r\n\t\t\t\tpageUtil = new PageUtil();\r\n\t\t\t}\r\n\t\t\tQuery q = this.getcurrentSession().createQuery(hql);\r\n\t\t\tif (params != null && params.size() > 0) {\r\n\t\t\t\tfor (int i = 0; i < params.size(); i++) {\r\n\t\t\t\t\tq.setParameter(i, params.get(i));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t \r\n\t\t\tpageUtil.setTotal(this.count(countHQL, params));\r\n \r\n\t\t\tpageUtil.setDatas(q.setFirstResult(pageUtil.getStartPoint())\r\n\t\t\t\t\t.setMaxResults(pageUtil.getRows()).list());\r\n\t\t\treturn pageUtil;\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public void executeWithSession(AbstractSession session) {\n }", "public int executeHql(String hql, Object[] param) {\n Query q = this.getCurrentSession().createQuery(hql);\n if (param != null && param.length > 0) {\n for (int i = 0; i < param.length; i++) {\n q.setParameter(i, param[i]);\n }\n }\n return q.executeUpdate();\n }", "public static void main(String[] args) {\n\t\tSessionFactory sf=HibernateUtility.getSessionFactory();\n\t\tSession s=sf.openSession();\n\t\tCriteria crt=s.createCriteria(Employee.class);\n\t\tcrt.add(Restrictions.between(\"id\", 200, 3000));\n\t\tcrt.add(Restrictions.gt(\"salary\", 40000));\n\t\tList list=crt.list();\n\t\tIterator it =list.iterator();\n\t\twhile(it.hasNext()){\n\t\t\tEmployee e=(Employee)it.next();\n\t\t\tSystem.out.println(\"id= \"+e.getId()+\"Salary = \"+e.getSalary());\n\t\t\t\n\t\t\n\n\t}\n\t\ts.close();\n\t\tsf.close();\n\t}", "@Test\n\tpublic void testFindUserById() throws Exception {\n\t\tSqlSession sqlSession = factory.openSession();\n\t\tUser user = sqlSession.selectOne(\"com.wistron.meal.user.findUserById\",3);\n\t\tSystem.out.println(user);\n\t\tsqlSession.close();\n\t\t\n\t}", "@Override\r\n\tpublic PageUtil<Object> findReturnObject(String hql, List<Object> params,\r\n\t\t\tPageUtil<Object> pageUtil) {\n\t\ttry {\r\n\t\t\tQuery q = this.getcurrentSession().createQuery(hql);\r\n\t\t\tif (params != null && params.size() > 0) {\r\n\t\t\t\tfor (int i = 0; i < params.size(); i++) {\r\n\t\t\t\t\tq.setParameter(i, params.get(i));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tpageUtil.setTotal(this.count(hql, params));\r\n\t\t\tpageUtil.setDatas(q.setFirstResult(pageUtil.getStartPoint())\r\n\t\t\t\t\t.setMaxResults(pageUtil.getRows()).list());\r\n\t\t\treturn pageUtil;\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public static List<Book> getBookDetails_2() throws HibernateException{\r\n \r\n session = sessionFactory.openSession();\r\n session.beginTransaction();\r\n \r\n Query query=session.getNamedQuery(\"INVENTORY_getAllBookList_2\");\r\n List<Book> bookList=query.list();\r\n \r\n session.getTransaction().commit();\r\n session.close();\r\n \r\n return bookList;\r\n}", "@Override\r\n\tpublic PageUtil<T> find(String hql, List<Object> params,\r\n\t\t\tPageUtil<T> pageUtil) {\n\t\ttry {\r\n\t\t\tif (pageUtil==null || pageUtil.getPage()==null) {\r\n\t\t\t\tpageUtil = new PageUtil();\r\n\t\t\t}\r\n\t\t\tQuery q = this.getcurrentSession().createQuery(hql);\r\n\t\t\tif (params != null && params.size() > 0) {\r\n\t\t\t\tfor (int i = 0; i < params.size(); i++) {\r\n\t\t\t\t\tq.setParameter(i, params.get(i));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tLong count = this.count(hql, params);\r\n\t\t\tif (count==null) {\r\n\t\t\t\tSystem.err.println(hql+\" 翻页查询错误\");\r\n\t\t\t}\r\n\t\t\tpageUtil.setTotal(count);\r\n\t\t\tint startpoint = pageUtil.getStartPoint();\r\n\t\t\tpageUtil.setDatas(q.setFirstResult(startpoint)\r\n\t\t\t\t\t.setMaxResults(pageUtil.getRows()).list());\r\n\t\t\treturn pageUtil;\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public void test_findListBySqlMap() {\r\n\t\t// step 1:\r\n\t\tList personList = this.persistenceService.findListBySqlMap(FIND_PERSON_BY_SQLMAP, NAME_PARAM[0]);\r\n\t\tassertForFindGoingmm(personList);\r\n\t}", "private static void hqlQuery(Session session) {\n\t\tint departmentId=300;\n\t\tQuery query=session.createQuery(\"from Employee e where e.dp.departmentId<=:\"+DtoConstants.DEPARTMENT_ID+\" order by e.name desc\");\n\t\tquery.setInteger(DtoConstants.DEPARTMENT_ID, departmentId);\n\t\t/**Below query properties used for pagination */\n\t\tquery.setFirstResult(0);\n\t\tquery.setMaxResults(10);\n\t\tList<Employee> empList=(List<Employee>)query.list();\n\t\tint i=1;\n\t\tfor(Employee e:empList){\n\t\t\tSystem.out.println(i+++\") Name:\"+e.getName()+\" Salary:\"+e.getSalary());\n\t\t}\n\t}", "public static List<Book> getBookLocation() throws HibernateException{\r\n \r\n session = sessionFactory.openSession();\r\n session.beginTransaction();\r\n \r\n Query query=session.getNamedQuery(\"INVENTORY_getBookLocation\");\r\n List<Book> bookLocationList=query.list();\r\n \r\n session.getTransaction().commit();\r\n session.close();\r\n \r\n return bookLocationList;\r\n}", "public List<IEntity> query(IQuery query) throws SQLException;", "public int executeHql(String hql, List<Object> param) {\n Query q = this.getCurrentSession().createQuery(hql);\n if (param != null && param.size() > 0) {\n for (int i = 0; i < param.size(); i++) {\n q.setParameter(i, param.get(i));\n }\n }\n return q.executeUpdate();\n }", "@Test\n @Tag(\"CREATE\")\n @Tag(\"RESOURCE\")\n @DisplayName(\"Test HQL Query for Where with Address 02\")\n public void testHQLQueryForWhereWithAddress02()\n {\n System.out.println(\"Programme Start\");\n long startTime = System.nanoTime();\n\n List<SBAddress02> addresses = null;\n\n try (Session session = HibernateUtil.getSessionFactory().openSession();) {\n Transaction transaction = null;\n try {\n transaction = session.beginTransaction();\n\n Query query = session.createQuery(\"from SBAddress02 where address02Zip like '%1%'\");\n addresses = query.list();\n\n transaction.commit();\n\n addresses.forEach(address -> System.out.println(\"Added Address : \" + address.getAddress02Street()));\n } catch (Exception e) {\n if (transaction != null) {\n transaction.rollback();\n }\n LOGGER.error(ExceptionUtils.getFullStackTrace(e));\n e.printStackTrace();\n }\n\n } catch (Throwable throwable) {\n LOGGER.error(ExceptionUtils.getFullStackTrace(throwable));\n throwable.printStackTrace();\n }\n\n System.out.println(\"Address : \" + addresses.size());\n\n long endTime = System.nanoTime();\n ELAPSED_TIME = endTime - startTime;\n System.out.println(\"Programme End\");\n\n }", "public static void main(String[] args) {\n\t\tSessionFactory factory=new Configuration().configure(\"hibernate.cfg.xml\").addAnnotatedClass(Employee.class)\n .buildSessionFactory();\nSession session=factory.openSession();\nQuery query=session.createQuery(\"from Employee\");\nList<Employee> list=query.getResultList();\nfor(Employee e:list) {\n\tSystem.out.println(e);\n}\n\t}", "@Override\r\n\tpublic List<UserModule> find(String hql, Class<UserModule> entityClass, Object[] params) {\n\t\treturn baseDao.find(hql, entityClass, params);\r\n\t}", "@Test\n @Tag(\"CREATE\")\n @Tag(\"RESOURCE\")\n @DisplayName(\"Test HQL Query with Criteria Query for where with Address 04\")\n public void testHQLQueryWithCriteriaQueryForWhereWithAddress04()\n {\n System.out.println(\"Programme Start\");\n long startTime = System.nanoTime();\n\n List<SBAddress04> addresses = null;\n\n try (Session session = HibernateUtil.getSessionFactory().openSession()) {\n Transaction transaction = null;\n try {\n transaction = session.beginTransaction();\n\n CriteriaBuilder criteriaBuilder = session.getCriteriaBuilder();\n CriteriaQuery<SBAddress04> criteriaQuery = criteriaBuilder.createQuery(SBAddress04.class);\n Root<SBAddress04> root = criteriaQuery.from(SBAddress04.class);\n\n criteriaQuery.select(root)\n .where(criteriaBuilder.equal(root.get(\"address04Zip\"),\"292000\"))\n .orderBy(criteriaBuilder.asc(root.get(\"address04Street\")));\n\n Query query = session.createQuery(criteriaQuery);\n\n addresses = query.list();\n\n transaction.commit();\n\n addresses.forEach(address -> System.out.println(\"Added Address : \" + address.getAddress04Street()));\n } catch (Exception e) {\n if (transaction != null) {\n transaction.rollback();\n }\n LOGGER.error(ExceptionUtils.getFullStackTrace(e));\n e.printStackTrace();\n }\n\n } catch (Throwable throwable) {\n LOGGER.error(ExceptionUtils.getFullStackTrace(throwable));\n throwable.printStackTrace();\n }\n\n System.out.println(\"Address : \" + addresses.size());\n\n long endTime = System.nanoTime();\n ELAPSED_TIME = endTime - startTime;\n System.out.println(\"Programme End\");\n\n }", "@Override\n\t\tpublic void executeQuery(String query) {\n\t\t\t\n\t\t}", "@Test\n public void testQuery() throws Exception {\n StatefulKnowledgeSession session = getKbase().newStatefulKnowledgeSession();\n \n initializeTemplate(session);\n \n List<Person> persons = new ArrayList<Person>();\n persons.add(new Person(\"john\", \"john\", 25));\n persons.add(new Person(\"sarah\", \"john\", 35));\n \n session.execute(CommandFactory.newInsertElements(persons));\n assertEquals(2, session.getFactCount());\n \n QueryResults results = query(\"people over the age of x\", new Object[] {30});\n assertNotNull(results);\n }", "public static void main(String[] args) {\n\t\t\r\n\r\n\t\tSession se2 = impl.getSe();\r\n\t\tTransaction tx2 = se2.beginTransaction();\r\n\t\t\r\n\t\tString sql = \"SELECT * FROM member\";\r\n\t\tSQLQuery sql1=se2.createSQLQuery(\"SELECT * FROM member\");\r\n\r\n\t\tsql1.addEntity(\"member\",member.class);\r\n\t\t\r\n\t\tList<member> l = sql1.list();\r\n\t\t\r\n\t\tl.forEach(s -> System.out.println(s));\r\n\t\t\r\n\t\tse2.close();\r\n\t\t\r\n\t\t\r\n//\t\t\r\n//\t\t\r\n\r\n\t}", "public List<Usuario> findWhere(Map<String, String> params){\n try {\n QueryBuilder<Usuario, Integer> queryBuilder = dao.queryBuilder();\n Where<Usuario, Integer> where = queryBuilder.where();\n\n for(Map.Entry<String, String> param: params.entrySet()) {\n where.eq(param.getKey(), param.getValue());\n }\n\n where.and(params.size());\n PreparedQuery<Usuario> preparedQuery = queryBuilder.prepare();\n return dao.query(preparedQuery);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return null;\n }", "public static List<?> queryDatabase(String sql, Map<String, Object> params) {\r\n final Session session = sessionFactory.isClosed() ? sessionFactory.openSession() : sessionFactory.getCurrentSession();\r\n session.beginTransaction();\r\n try {\r\n final Query query = session.createQuery(sql);\r\n if (params != null) {\r\n params.forEach(query::setParameter);\r\n }\r\n return query.list();\r\n } finally {\r\n session.getTransaction().commit();\r\n }\r\n }", "public static void main(String[] args) { \n\t\t\n\t\tConfiguration conf = new Configuration().configure(\"hibernate.cfg.xml\");\n\t\tServiceRegistry registry = new StandardServiceRegistryBuilder().applySettings(conf.getProperties()).build();\n\t\tSessionFactory factory = conf.buildSessionFactory(registry);\n\t\tSession session = factory.openSession();\n\t\tTransaction tx = session.beginTransaction();\n\t\t/*Employee emp = new Employee();\n emp.setId(1023);\n\t\temp.setFirstname(\"shahil\");\n\t\temp.setLastname(\"duby\");*/\n\t\t//session.save(emp);\n\t\t//session.update(emp);\n\t\t//session.persist(emp);\n\t\t//session.saveOrUpdate(emp);\n\t\t\n\t/*\tTransaction tx=null;\n\t\ttry { \n\t\t\ttx=session.beginTransaction();\n\t\t\tList emp=session.createQuery((\"from hibernatetb\").list();\n\t\t\tfor (Iterable<= emp.iterator();Iterator.ha)\n\t\t}catch(HibernateException E) {}*/\n\t\t\n\t\tCriteria c = session.createCriteria(Employee.class);\n\t c.setProjection(Projections.property(\"lastname\"));\n\t\tList employees = c.list();\n\n\t\tfor (Object o : employees) {\n\t\t\tString s = (String)o;\n\t\t\tSystem.out.println(\"empname :\"+s);\n\t\t}/*\n\t\tIterator itr = employees.iterator();\n\t\twhile (itr.hasNext()) {\n\n//\t\t\tEmployee emp = (Employee) itr.next();\n\t\t\tSystem.out.println(itr.`);\n\t\t\tSystem.out.println(emp.getFirstname());\n\t\t\tSystem.out.println(emp.getLastname());\n\t\t}\n\t\t \n\t\t\n\t\ttx.commit();*/\n\t\tsession.close();\n\t}", "Object executeSelectQuery(String sql) { return null;}", "@Test\n @Tag(\"CREATE\")\n @Tag(\"RESOURCE\")\n @DisplayName(\"Test HQL Query with Criteria Query with Address 04\")\n public void testHQLQueryWithCriteriaQueryWithAddress04()\n {\n System.out.println(\"Programme Start\");\n long startTime = System.nanoTime();\n\n List<SBAddress04> addresses = null;\n\n try (Session session = HibernateUtil.getSessionFactory().openSession()) {\n Transaction transaction = null;\n try {\n transaction = session.beginTransaction();\n\n CriteriaBuilder criteriaBuilder = session.getCriteriaBuilder();\n CriteriaQuery<SBAddress04> criteriaQuery = criteriaBuilder.createQuery(SBAddress04.class);\n Root<SBAddress04> root = criteriaQuery.from(SBAddress04.class);\n criteriaQuery.select(root);\n\n Query query = session.createQuery(criteriaQuery);\n\n addresses = query.list();\n\n transaction.commit();\n\n addresses.forEach(address -> System.out.println(\"Added Address : \" + address.getAddress04Zip()));\n } catch (Exception e) {\n if (transaction != null) {\n transaction.rollback();\n }\n LOGGER.error(ExceptionUtils.getFullStackTrace(e));\n e.printStackTrace();\n }\n\n } catch (Throwable throwable) {\n LOGGER.error(ExceptionUtils.getFullStackTrace(throwable));\n throwable.printStackTrace();\n }\n\n System.out.println(\"Address : \" + addresses.size());\n\n long endTime = System.nanoTime();\n ELAPSED_TIME = endTime - startTime;\n System.out.println(\"Programme End\");\n\n }", "@Test\n @Tag(\"CREATE\")\n @Tag(\"RESOURCE\")\n @DisplayName(\"Test HQL Query with Address 02\")\n public void testHQLQueryWithAddress02()\n {\n System.out.println(\"Programme Start\");\n long startTime = System.nanoTime();\n\n List address = null;\n\n try (Session session = HibernateUtil.getSessionFactory().openSession();) {\n Transaction transaction = null;\n try {\n transaction = session.beginTransaction();\n\n Query query = session.createQuery(\"from SBAddress02\");\n address = query.list();\n\n transaction.commit();\n } catch (Exception e) {\n if (transaction != null) {\n transaction.rollback();\n }\n LOGGER.error(ExceptionUtils.getFullStackTrace(e));\n e.printStackTrace();\n }\n } catch (Throwable throwable) {\n LOGGER.error(ExceptionUtils.getFullStackTrace(throwable));\n throwable.printStackTrace();\n }\n\n System.out.println(\"Address : \" + address.size());\n\n long endTime = System.nanoTime();\n ELAPSED_TIME = endTime - startTime;\n System.out.println(\"Programme End\");\n\n }", "public Iterator iterate(QueryParameters queryParameters, EventSource session)\n \t\t\tthrows HibernateException {\n \n \t\tboolean stats = session.getFactory().getStatistics().isStatisticsEnabled();\n \t\tlong startTime = 0;\n \t\tif ( stats ) startTime = System.currentTimeMillis();\n \n \t\ttry {\n-\n-\t\t\tPreparedStatement st = prepareQueryStatement( queryParameters, false, session );\n-\t\t\tResultSet rs = getResultSet( st, queryParameters.hasAutoDiscoverScalarTypes(), false, queryParameters.getRowSelection(), session );\n+\t\t\tfinal ResultSet rs = executeQueryStatement( queryParameters, false, session );\n+\t\t\tfinal PreparedStatement st = (PreparedStatement) rs.getStatement();\n \t\t\tHolderInstantiator hi = HolderInstantiator.createClassicHolderInstantiator(holderConstructor, queryParameters.getResultTransformer());\n \t\t\tIterator result = new IteratorImpl( rs, st, session, queryParameters.isReadOnly( session ), returnTypes, getColumnNames(), hi );\n \n \t\t\tif ( stats ) {\n \t\t\t\tsession.getFactory().getStatisticsImplementor().queryExecuted(\n \t\t\t\t\t\t\"HQL: \" + queryString,\n \t\t\t\t\t\t0,\n \t\t\t\t\t\tSystem.currentTimeMillis() - startTime\n \t\t\t\t\t);\n \t\t\t}\n \n \t\t\treturn result;\n \n \t\t}\n \t\tcatch ( SQLException sqle ) {\n \t\t\tthrow getFactory().getSQLExceptionHelper().convert(\n \t\t\t\t\tsqle,\n \t\t\t\t\t\"could not execute query using iterate\",\n \t\t\t\t\tgetSQLString()\n \t\t\t\t);\n \t\t}\n \n \t}", "@Test\r\n\tpublic void fun1(){\r\n\t\t//3 获得session\r\n\t\t\t\tSession session = HebernateUtils.openSession();\t\r\n\t\t\t\tsession.beginTransaction();\r\n\t\t\t\t//-------------------\r\n\t\t\t\tOrder o = (Order) session.get(Order.class, 1);\r\n\t\t\t\t\r\n//\t\t\t\tHibernate: \r\n//\t\t\t\t select\r\n//\t\t\t\t order0_.id as id4_0_,\r\n//\t\t\t\t order0_.name as name4_0_,\r\n//\t\t\t\t order0_.cid as cid4_0_ \r\n//\t\t\t\t from\r\n//\t\t\t\t t_order order0_ \r\n//\t\t\t\t where\r\n//\t\t\t\t order0_.id=?\r\n//\t\t\t\tHibernate: \r\n//\t\t\t\t select\r\n//\t\t\t\t customer0_.id as id3_0_,\r\n//\t\t\t\t customer0_.name as name3_0_ \r\n//\t\t\t\t from\r\n//\t\t\t\t t_customer customer0_ \r\n//\t\t\t\t where\r\n//\t\t\t\t customer0_.id=?\r\n//\t\t\t\tHibernate: \r\n//\t\t\t\t select\r\n//\t\t\t\t orders0_.cid as cid3_1_,\r\n//\t\t\t\t orders0_.id as id1_,\r\n//\t\t\t\t orders0_.id as id4_0_,\r\n//\t\t\t\t orders0_.name as name4_0_,\r\n//\t\t\t\t orders0_.cid as cid4_0_ \r\n//\t\t\t\t from\r\n//\t\t\t\t t_order orders0_ \r\n//\t\t\t\t where\r\n//\t\t\t\t orders0_.cid=?\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(o.getCustomer().getName());\r\n\t\t\t\t\r\n\t\t\t\t//------------------\r\n\t\t\t\tsession.getTransaction().commit();\r\n\t\t\t\tsession.close();\r\n\t}", "public String getFindByIdSql() {\r\n\t\treturn getSelectPrefix() + \" and XH=? \";\r\n\t}", "Query query();", "public static void main(String[] args) {\n\n SessionFactory factory = new Configuration().configure().buildSessionFactory();\n Session session = factory.openSession();\n session.beginTransaction();\n\n System.out.println(\"First step\");\n\n Query query = session.createQuery(\"from UserDetails where userId = 2\");\n query.setCacheable(true);\n query.list();\n\n UserDetails user = session.get(UserDetails.class, 2);\n// System.out.println(\"User1: \" + user);\n\n\n session.close();\n\n System.out.println(\"Second step\");\n\n Session session2 = factory.openSession();\n session2.beginTransaction();\n\n\n Query query2 = session2.createQuery(\"from UserDetails where userId = 2\");\n query2.setCacheable(true);\n query2.list();\n\n UserDetails user1 = session2.get(UserDetails.class, 2);\n// System.out.println(\"User2: \" +user1);\n\n session2.close();\n factory.close();\n\n }", "@Test\n @Tag(\"CREATE\")\n @Tag(\"RESOURCE\")\n @DisplayName(\"Test HQL Query with Named Query with Address 04\")\n public void testHQLQueryWithNamedQueryWithAddress04()\n {\n System.out.println(\"Programme Start\");\n long startTime = System.nanoTime();\n\n List<SBAddress04> addresses = null;\n\n try (Session session = HibernateUtil.getSessionFactory().openSession()) {\n Transaction transaction = null;\n try {\n transaction = session.beginTransaction();\n\n Query query = session.getNamedQuery(\"SBAddress04.getFromZip\")\n .setParameter(1,\"292000\");\n\n addresses = query.list();\n\n transaction.commit();\n\n addresses.forEach(address -> System.out.println(\"Added Address : \" + address.getAddress04Street()));\n } catch (Exception e) {\n if (transaction != null) {\n transaction.rollback();\n }\n LOGGER.error(ExceptionUtils.getFullStackTrace(e));\n e.printStackTrace();\n }\n\n } catch (Throwable throwable) {\n LOGGER.error(ExceptionUtils.getFullStackTrace(throwable));\n throwable.printStackTrace();\n }\n\n System.out.println(\"Address : \" + addresses.size());\n\n long endTime = System.nanoTime();\n ELAPSED_TIME = endTime - startTime;\n System.out.println(\"Programme End\");\n\n }", "private void executeRequest(String sql) {\n\t}", "public static List<Book> getBookSellers() throws HibernateException{\r\n \r\n session = sessionFactory.openSession();\r\n session.beginTransaction();\r\n \r\n Query query=session.getNamedQuery(\"INVENTORY_getBookSellers\");\r\n List<Book> bookLocationList=query.list();\r\n \r\n session.getTransaction().commit();\r\n session.close();\r\n \r\n return bookLocationList;\r\n}", "public static void main(String[] args)\r\n {\n\t\t\r\n\t \r\n\t SessionFactory factory = new Configuration().configure(\"hibernate_cfg.xml\").buildSessionFactory();\r\n\t// Employee e=new Employee();\r\n//\t\t e.setId(2);\r\n//\t\t e.setName(\"mayuri\");\r\n//\t\t e.setSalary(38000);\r\n//\t \t e.setAddress(\"solapur\");\r\n\t\t\r\n\t Session session = factory.openSession(); \r\n\t org.hibernate.Transaction t = session.beginTransaction();\r\n//\t\tsession.save(e);\r\n\t\t//session.update(e);\r\n\t // session.delete(e);\r\n\t \r\n\t /**\r\n\t * \r\n\t * fetch data from database using list and without passing object\r\n\t */\r\n\t /* int i=0;\r\n Employee emp=new Employee();\r\n emp=null;\r\n for(i=0;i<=4;i++)\r\n {\r\n emp=(Employee) session.get(Employee.class,i);\r\n System.out.println(\"\\n\"+emp.getId()+\"\\n\"+emp.getName()+\"\\n\"+emp.getSalary()+\"\\n\"+emp.getAddress());\r\n \r\n }*/\r\n\t /**\r\n\t * fetch data from database using object\r\n\t */\r\n\t Employee e=new Employee();\r\n\t e=(Employee) session.get(Employee.class, 1);\r\n\t System.out.println(e);\r\n\t\t\t \r\n//\t \r\n//\t emp =(Employee) session.get(Employee.class,1);\r\n//\t System.out.println(emp);\r\n\t \r\n\t /**\r\n\t * use of createCriteria() from criteria API\r\n\t */\r\n\t // List<Employee> employees = (List<Employee>) session.createCriteria(Employee.class).list();\r\n\t // System.out.println(\"\\n\"+employees);\r\n\r\n\t \r\n\t \r\n\t // Employee e=session.get(Employee.class,new Integer(4));\r\n\t // System.out.println(\"\\n\"+e.getId()+\"\\n\"+e.getName()+\"\\n\"+e.getSalary()+\"\\n\"+e.getAddress());\r\n\t\t\r\n\t \r\n\t \r\n\t\tt.commit();\r\n\t\tSystem.out.println(\"successfully saved\");\r\n\t\t\r\n\r\n\t \r\n }", "public void test_findByNativeQuery() {\r\n\t\t// step 1:\r\n\t\tList personList = this.persistenceService.findByNativeQuery(NATIVE_SQL_FIND_ALL_PERSON);\r\n\t\tassertNotNull(personList);\r\n\t\tassertEquals(ALL_PERSON_COUNT, personList.size());\r\n\t\t\r\n\t\t// init again\r\n\t\tpersonList = null;\r\n\t\t// step 2:\r\n\t\tpersonList = this.persistenceService.findByNativeQuery(NATIVE_SQL_FIND_PERSON_BY_NAME_EXT, NAME_PARAM[0]);\r\n\t\tassertForFindGoingmm(personList);\r\n\t\t\r\n\t\t// init again\r\n\t\tpersonList = null;\r\n\t\t// step 3:\r\n\t\tpersonList = this.persistenceService.findByNativeQuery(NATIVE_SQL_FIND_PERSON_BY_NAME, this.getParamMap(0));\r\n\t\tassertForFindGoingmm(personList);\r\n\t\t\r\n\t\t// init again\r\n\t\tpersonList = null;\r\n\t\t// step 4:\r\n\t\tpersonList = this.persistenceService.findByNativeQuery(Person.class, NATIVE_SQL_FIND_PERSON_BY_NAME_EXT, NAME_PARAM[0]);\r\n\t\tassertForFindGoingmm(personList);\r\n\t\t\r\n\t\t// init again\r\n\t\tpersonList = null;\r\n\t\t// step 5:\r\n\t\tpersonList = this.persistenceService.findByNativeQuery(Person.class, NATIVE_SQL_FIND_PERSON_BY_NAME, this.getParamMap(0));\r\n\t\tassertForFindGoingmm(personList);\r\n\t\t\r\n\t\t// init again\r\n\t\tpersonList = null;\r\n\t\t// step 6:\r\n\t\tpersonList = this.persistenceService.findByNativeQuery(NATIVE_SQL_FIND_PERSON_BY_NAME_EXT, 0, PAGE_MAX_SIZE, NAME_PARAM[0]);\r\n\t\tassertForFindGoingmm(personList);\r\n\t\t\r\n\t\t// init again\r\n\t\tpersonList = null;\r\n\t\t// step 7:\r\n\t\tpersonList = this.persistenceService.findByNativeQuery(NATIVE_SQL_FIND_PERSON_BY_NAME, 0, PAGE_MAX_SIZE, this.getParamMap(0));\r\n\t\tassertForFindGoingmm(personList);\r\n\t\t\r\n\t\t// init again\r\n\t\tpersonList = null;\r\n\t\t// step 8:\r\n\t\tpersonList = this.persistenceService.findByNativeQuery(Person.class, NATIVE_SQL_FIND_PERSON_BY_NAME_EXT, 0, PAGE_MAX_SIZE, NAME_PARAM[0]);\r\n\t\tassertForFindGoingmm(personList);\r\n\t\t\r\n\t\t// init again\r\n\t\tpersonList = null;\r\n\t\t// step 9:\r\n\t\tpersonList = this.persistenceService.findByNativeQuery(Person.class, NATIVE_SQL_FIND_PERSON_BY_NAME, 0, PAGE_MAX_SIZE, this.getParamMap(0));\r\n\t\tassertForFindGoingmm(personList);\r\n\t}", "private static void namedQuery(Session session) {\n\t\tint departmentId=300;\n\t\tQuery query=session.getNamedQuery(DtoConstants.EMPLOYEE_DEP_ID_NQ);\n\t\tquery.setInteger(DtoConstants.DEPARTMENT_ID, departmentId);\n\t\t/**Below query properties used for pagination */\n\t\tquery.setFirstResult(0);\n\t\tquery.setMaxResults(10);\n\t\tList<Employee> empList=(List<Employee>)query.list();\n\t\tint i=1;\n\t\tSystem.out.println(\"Named Query result for query with department id\");\n\t\tfor(Employee e:empList){\n\t\t\tSystem.out.println(i+++\") Name:\"+e.getName()+\" Salary:\"+e.getSalary());\n\t\t}\n\t\t\n\t\tint employeeId=5;\n\t\tquery=session.getNamedQuery(DtoConstants.EMPLOYEE_ID_NQ);\n\t\tquery.setInteger(DtoConstants.EMP_ID, employeeId);\n\t\t/**Below query properties used for pagination */\n\t\tquery.setFirstResult(0);\n\t\tquery.setMaxResults(10);\n\t\tempList=(List<Employee>)query.list();\n\t\ti=1;\n\t\tSystem.out.println(\"Named Query result for query with employee id\");\n\t\tfor(Employee e:empList){\n\t\t\tSystem.out.println(i+++\") Name:\"+e.getName()+\" Salary:\"+e.getSalary());\n\t\t}\n\t\t\n\t\temployeeId=10;\n\t\tquery=session.getNamedQuery(DtoConstants.EMPLOYEE_ID_NNQ);\n\t\tquery.setInteger(DtoConstants.EMP_ID, employeeId);\n\t\t/**Below query properties used for pagination */\n\t\tquery.setFirstResult(0);\n\t\tquery.setMaxResults(10);\n\t\tempList=(List<Employee>)query.list();\n\t\ti=1;\n\t\tSystem.out.println(\"Named Native Query result for query with employee id\");\n\t\tfor(Employee e:empList){\n\t\t\tSystem.out.println(i+++\") Name:\"+e.getName()+\" Salary:\"+e.getSalary());\n\t\t}\n\t}", "public static List<Map<String, Object>> executeSearchQuery(String sql, Object... params) {\n Search search = new Search(sql, result1 -> {\n }, params);\n getInstance().add(search);\n\n while (search.getResult() == null) {\n getInstance().executeThread();\n }\n return search.getResult();\n }", "public static void main(String[] args) {\n\t\tSessionFactory factory = new Configuration()\n\t\t\t\t.configure(\"hibernate.cfg.xml\")\n\t\t\t\t.addAnnotatedClass(thangnd15.entity.Student.class)\n\t\t\t\t.addAnnotatedClass(thangnd15.entity.Course.class)\n\t\t\t\t.addAnnotatedClass(thangnd15.entity.Description.class)\n\t\t\t\t.addAnnotatedClass(thangnd15.entity.School.class)\n\t\t\t\t.buildSessionFactory();\n\n\t\t// create session\n\t\tSession session = factory.getCurrentSession();\n\t\t\n\t\t\n\t\ttry {\t\t\t\n\t\t\tSystem.out.println(\"Start !!!\");\n\t\t\t\n\t\t\tsession.beginTransaction();\n\t\t\t\n\t\t\t\n\t\t\t// get Student\n\t\t\tQuery query = session.createQuery(\"from Student\");\n\t\t\t\n\t\t\tList<Student> students = query.list();\n\t\t\t\n\t\t\tSystem.out.println(students);\n\t\t\t\n//\t\t\t// get School\n//\t\t\tQuery query2 = session.createQuery(\"from School\");\n//\t\t\t\n//\t\t\tList<School> schools = query2.list();\n//\t\t\t\n//\t\t\tSystem.out.println(schools);\n//\t\t\t\n//\t\t\t// get Course\n//\t\t\tQuery query3 = session.createQuery(\"from Course\");\n//\t\t\t\n//\t\t\tList<Course> courses = query.list();\n//\t\t\t\n//\t\t\tSystem.out.println(courses);\n//\t\t\t\n//\t\t\t// get Description\n//\t\t\tQuery query4 = session.createQuery(\"from Description\");\n//\t\t\t\n//\t\t\tList<Description> descriptions = query.list();\n//\t\t\t\n//\t\t\tSystem.out.println(descriptions);\n\t\t\t\t\t\t\n\t\t\t// ===============================\n\t\t\t\n\t\t\tsession.getTransaction().commit();\n\t\t\t\n\t\t\tSystem.out.println(\"End !!!\");\n\t\t}\n\t\tfinally {\n\t\t\tsession.close();\n\t\t\t\n\t\t\tfactory.close();\n\t\t}\n\t\t\n\t}", "List<T> findByCriteria(String eCriteria, Object... parameters);", "public static void main(String[] args) {\n \n Session s = HibernateUtil.getSessionFactory().openSession();\n s.beginTransaction();\n String sql = \"SELECT id FROM Solicitacao ORDER BY id DESC\";\n Query query = s.createQuery(sql);\n query.setMaxResults(1);\n int i = (int) query.uniqueResult();\n System.out.println(i);\n }", "@Test\n public void queryTest() {\n // TODO: test query\n }", "public ResultSet doQuery(String sql, Object[] params) throws SQLException {\r\n\t\t\r\n\t/*\tSystem.out.println(\"doQuery_sql: \" + sql);\r\n\t\tfor (int i = 0 ;i< params.length; i++)\r\n\t\t\tSystem.out.println(\"param: \" + params[i]);\t\r\n\t\t\r\n\t\t*/\r\n\t\tif (dbConnection == null)\r\n\t\t\treturn null;\r\n\t\toutstmt = dbConnection.prepareStatement(sql);\r\n\t\t// stuff parameters in\r\n\t\tfor (int i=0; i<params.length; i++){\r\n\t\t\toutstmt.setObject(i + 1,params[i]);\r\n\t\t}\r\n\t\t\r\n\t\tif (outstmt == null){\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t// return a collection that can be iterated on\r\n\t\tif (outstmt.execute()){\r\n\t\t\t//return stmt.getResultSet();\r\n\t\t\toutrs = outstmt.getResultSet();\r\n\t\t}\r\n\t\telse\r\n\t\t\treturn null;\r\n\t\treturn outrs;\r\n\t}", "abstract public void execute(Parameters p);", "public static List<Book> getBookCategory() throws HibernateException{\r\n \r\n session = sessionFactory.openSession();\r\n session.beginTransaction();\r\n \r\n Query query=session.getNamedQuery(\"INVENTORY_getBookCategory\");\r\n List<Book> bookLocationList=query.list();\r\n \r\n session.getTransaction().commit();\r\n session.close();\r\n \r\n return bookLocationList;\r\n}", "public List executeQuery(String hql, Map params, int init, int end) throws RepositoryException {\n\t\treturn DatanucleusCRUDUtils.executeQuery(hql, params, init, end);\n\t}", "public void Query() {\n }", "@Test\r\n\tpublic void fun4(){\r\n\t\t//3 获得session\r\n\t\t\t\tSession session = HebernateUtils.openSession();\t\r\n\t\t\t\tsession.beginTransaction();\r\n\t\t\t\t//-------------------\r\n\t\t\t\tOrder o = (Order) session.get(Order.class, 2);\r\n\t\t\t\t\r\n//\t\t\t\tHibernate: \r\n//\t\t\t\t select\r\n//\t\t\t\t order0_.id as id4_1_,\r\n//\t\t\t\t order0_.name as name4_1_,\r\n//\t\t\t\t order0_.cid as cid4_1_,\r\n//\t\t\t\t customer1_.id as id3_0_,\r\n//\t\t\t\t customer1_.name as name3_0_ \r\n//\t\t\t\t from\r\n//\t\t\t\t t_order order0_ \r\n//\t\t\t\t left outer join\r\n//\t\t\t\t t_customer customer1_ \r\n//\t\t\t\t on order0_.cid=customer1_.id \r\n//\t\t\t\t where\r\n//\t\t\t\t order0_.id=?\r\n\t\t\t\t \t\t\r\n\t\t\t\tSystem.out.println(o.getCustomer().getName());\r\n//\t\t\t\ttom\r\n\t\t\t\t//------------------\r\n\t\t\t\tsession.getTransaction().commit();\r\n\t\t\t\tsession.close();\r\n\t}", "@Override\n\tpublic void execute(String[] params) {\n\n\t}", "List<Object[]> findBySql(String sql, final Object... objects);", "public void getSelect(String query, ArrayList<Object> params) {\r\n\t\tif (null != connection) {\r\n\t\t\tSystem.out.println(QueryProcessor.exec(connection, query, params));\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"Hubo algún error con la conexión...\");\r\n\t\t}\r\n\t}", "@Test\n @Tag(\"CREATE\")\n @Tag(\"RESOURCE\")\n @DisplayName(\"Test HQL Query for Single Select and Pagination with Address 02\")\n public void testHQLQueryForSingleSelectAndPaginationWithAddress02()\n {\n System.out.println(\"Programme Start\");\n long startTime = System.nanoTime();\n\n try (Session session = HibernateUtil.getSessionFactory().openSession()) {\n Transaction transaction = null;\n try {\n transaction = session.beginTransaction();\n\n Query query = session.createQuery(\"select address02Street from SBAddress02 order by address02Street asc\");\n query.setFirstResult(5);\n query.setMaxResults(10);\n\n List<String> addressStreets = query.list();\n\n transaction.commit();\n\n addressStreets.forEach(System.out::println);\n } catch (Exception e) {\n if (transaction != null) {\n transaction.rollback();\n }\n LOGGER.error(ExceptionUtils.getFullStackTrace(e));\n e.printStackTrace();\n }\n\n } catch (Throwable throwable) {\n LOGGER.error(ExceptionUtils.getFullStackTrace(throwable));\n throwable.printStackTrace();\n }\n\n long endTime = System.nanoTime();\n ELAPSED_TIME = endTime - startTime;\n System.out.println(\"Programme End\");\n\n }", "@Test\npublic void testCreateQueryForClazzHql() throws Exception { \n//TODO: Test goes here... \n}", "public Query createQuery(String hql, Object... params) ;", "@SuppressWarnings(\"unchecked\")\n\tpublic List sqlQuery(String sql,HashMap entities,HashMap joins,Object... params);", "public static List<Book> searchBookByNameAndLocation(String name,String location) throws HibernateException{\r\n \r\n session = sessionFactory.openSession();\r\n session.beginTransaction();\r\n\r\n Query query = session.getNamedQuery(\"INVENTORY_searchBookByNameAndLocation\").setString(\"name\", name).setString(\"location\", location);\r\n\r\n List<Book> resultList = query.list();\r\n \r\n session.getTransaction().commit();\r\n session.close();\r\n \r\n return resultList;\r\n \r\n }", "@Test\r\n public void testFind() throws Exception {\r\n Map props = new HashMap();\r\n// props.put(\"org.glassfish.ejb.embedded.glassfish.instance.root\",\r\n// \"/Applications/GlassFish/glassfishv3-webprofile/glassfish/domains/domain1\");\r\n props.put(EJBContainer.MODULES, new File[]{\r\n new File(\"web/WEB-INF/classes\"),\r\n new File(\"test/conf/\")\r\n });\r\n\r\n \r\n System.out.println(\"find\");\r\n String key = \"\";\r\n// EJBContainer container = javax.ejb.embeddable.EJBContainer.createEJBContainer();\r\n EJBContainer container = javax.ejb.embeddable.EJBContainer.createEJBContainer(props);\r\n LoginSessionBean instance = (LoginSessionBean)container.getContext().lookup(\"java:global/classes/LoginSessionBean\");\r\n Users expResult = null;\r\n Users result = instance.find(key);\r\n assertEquals(expResult, result);\r\n container.close();\r\n // TODO review the generated test code and remove the default call to fail.\r\n //fail(\"The test case is a prototype.\");\r\n }", "public Usuario[] findByDynamicWhere(String sql, Object[] sqlParams) throws SQLException;", "@Test\n\tpublic void testQuery1() {\n\t}", "public List<User> find(String hql, Class<User> class1, String[] strings);", "public void testFindAuthorByID() {\r\n //given\r\n System.out.println(\"findAuthorByID\");\r\n int authorID = 18;\r\n AuthorHibernateDao instance = new AuthorHibernateDao();\r\n \r\n //when\r\n Author result = instance.findAuthorByID(authorID);\r\n \r\n //then\r\n assertEquals(\"Maksim Gorky\", result.getName()); \r\n }", "@Override\n\tpublic List<Role> find(String hql, Class<Role> entityClass, Object[] params) {\n\t\treturn baseDao.find(hql, entityClass, params);\n\t}", "public Object executeQueryOneResult(String hql, Map params) throws RepositoryException {\n\t\tObject retorno = DatanucleusCRUDUtils.executeQueryOneResult(hql, params); \n\t\tparams.clear();\n\t\treturn retorno;\n\t}", "public static void main(String[] args) {\n\t\t\n\t\ttry(Session session = HibernateUtil.getSessionFactory().openSession()) {\n\t\t\t\n\t\t\tString sql =\"SELECT version()\";\n\t\t\tString result = (String) session.createNativeQuery(sql).getSingleResult();\n\t\t\tSystem.out.println(\"Mysql version without cfg file:::\"+result);\n\t\t}catch (HibernateException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public List<String> findString(String hql, Object[] param) {\n\t\tQuery q = this.getSession().createQuery(hql);\n\t\tif (param != null && param.length > 0) {\n\t\t\tfor (int i = 0; i < param.length; i++) {\n\t\t\t\tq.setParameter(i, param[i]);\n\t\t\t}\n\t\t}\n\t\treturn q.list();\n\t}", "@Test\n public void selectById(){\n User user=iUserDao.selectById(\"158271202\");\n System.out.println(user.toString());\n }", "public abstract ResultList executeQuery(DatabaseQuery query);", "public void test_findByNamedOfQuery() {\r\n\t\t// step 1:\r\n\t\tList personList = this.persistenceService.findByNamedOfQuery(FIND_ALL_PERSON);\r\n\t\tassertNotNull(personList);\r\n\t\tassertEquals(ALL_PERSON_COUNT, personList.size());\r\n\t\t\r\n\t\t// init again\r\n\t\tpersonList = null;\r\n\t\t// step 2:\r\n\t\tpersonList = this.persistenceService.findByNamedOfQuery(FIND_PERSON_BY_NAME_EXT, NAME_PARAM[0]);\r\n\t\tassertForFindGoingmm(personList);\r\n\t\t\r\n\t\t// init again\r\n\t\tpersonList = null;\r\n\t\t// step 3:\r\n\t\tpersonList = this.persistenceService.findByNamedOfQuery(FIND_PERSON_BY_NAME, getParamMap(1));\r\n\t\tassertForFindGoogle(personList);\r\n\t}", "public static void main(String[] args) {\n\t\tSession s2=util.getSession();\r\n\t\tQuery qry=s2.getNamedQuery(\"q2\");\r\n\t\t//Query qry=s2.getNamedQuery(\"q3\");\r\n\t\t//qry.setInteger(0, 50);\r\n\t\tList<Object[]> lust=qry.list();\r\n\t\tfor(Object[] row:lust) {\r\n\t\t\tSystem.out.println(Arrays.toString(row));\r\n\t\t}\r\n\t\tSystem.out.println(\"Completed\");\r\n\t}", "public ORM executeQuery(String query) {\n ResultSet rs = null;\n this.query =query;\n System.out.println(\"run: \" + this.query);\n //this.curId = 0;\n Statement statement;\n try {\n statement = this.conn.createStatement();\n rs = statement.executeQuery(this.query);\n //this.saveLog(0,\"\",query);\n } catch (SQLException e) {\n System.out.println( ColorCodes.ANSI_RED +\"ERROR in SQL: \" + this.query);\n // e.printStackTrace();\n }\n lastResultSet=rs;\n this.fields_values = \"\";\n return this;\n\n }", "public Page page(Page page, String hql,Object[] objWhere){\r\n if(hql==null || \"\".equals(hql))\r\n {\r\n hql = \" from SearchMessageDTO Z\";\r\n }\r\n return searchMessageDAO.findPage(page, hql, objWhere);\r\n}", "@Test\n public void test3() throws Exception {\n String jpql = \"SELECT c FROM Course c where SQL('course_mapped ->> ''?'' = ''Second one''',c.name) \";\n Query q = em.createQuery(jpql, Course.class);\n List<Course> courses = q.getResultList();\n Assert.assertEquals(1, courses.size());\n Assert.assertEquals(\"Second one\", courses.get(0).getCourseMapped().getName());\n\n }", "@Test\n\tpublic void selectFromCourseTable_where() {\n\t\tList arrayList = em.createNamedQuery(\"query_with_where_name_like_call\",Course.class).getResultList();\n\t\tlogger.info(\"\\n\\n>>>>>>> Select c FROM Course c WHERE name like '%call%' -> {}\", arrayList);\n\t}", "public Ruta[] findByDynamicWhere(String sql, Object[] sqlParams) throws RutaDaoException;", "@Test\n public void test2(){\n String sql = \"select order_id orderID, order_name orderName, order_date orderDate from order_table where order_id = ?\";\n Order order = getOrder(sql, 4);\n System.out.println(order);\n }", "@Override\n\tpublic void find() {\n\t\tSystem.out.println(\"find method\");\n\t}", "public static List<Book> getBookDetails_1() throws HibernateException{\r\n \r\n session = sessionFactory.openSession();\r\n session.beginTransaction();\r\n \r\n Query query=session.getNamedQuery(\"INVENTORY_getAllBookList_1\");\r\n List<Book> bookList=query.list();\r\n \r\n session.getTransaction().commit();\r\n session.close();\r\n \r\n return bookList;\r\n \r\n }", "public static List<Book> searchEBookByName(String name) throws HibernateException{\r\n \r\n session = sessionFactory.openSession();\r\n session.beginTransaction();\r\n\r\n Query query = session.getNamedQuery(\"INVENTORY_searchBookByName\").setString(\"name\", name);\r\n\r\n List<Book> resultList = query.list();\r\n \r\n session.getTransaction().commit();\r\n session.close();\r\n \r\n return resultList;\r\n \r\n }" ]
[ "0.69942516", "0.6607828", "0.6313396", "0.6283012", "0.6274406", "0.62657434", "0.6244058", "0.6207623", "0.61547995", "0.6148329", "0.6093276", "0.6084257", "0.60828745", "0.6069476", "0.6051213", "0.6022513", "0.598759", "0.5972766", "0.59689224", "0.5930214", "0.5919472", "0.59061956", "0.5896602", "0.5854659", "0.58488834", "0.5844783", "0.58353317", "0.5834615", "0.5823109", "0.5801059", "0.5796196", "0.57811546", "0.57753", "0.5768754", "0.5754617", "0.5742037", "0.57313657", "0.57103866", "0.57089776", "0.57016164", "0.570015", "0.5674742", "0.5673218", "0.566768", "0.565901", "0.5641342", "0.56412274", "0.56254995", "0.5622633", "0.5610268", "0.559168", "0.5591077", "0.55739945", "0.55526567", "0.5550012", "0.5549779", "0.554775", "0.5538215", "0.55258834", "0.5497011", "0.54944223", "0.5482589", "0.5471018", "0.54674923", "0.54644597", "0.54641193", "0.54616654", "0.5458988", "0.5457279", "0.5454011", "0.5438462", "0.54368424", "0.54280716", "0.54111654", "0.5407199", "0.54000777", "0.5394421", "0.5388591", "0.5385521", "0.5380301", "0.5377945", "0.537123", "0.53674364", "0.5367161", "0.536587", "0.53628796", "0.5359134", "0.5354639", "0.5345036", "0.5344608", "0.5344278", "0.5338289", "0.5332135", "0.5329997", "0.53162336", "0.5308598", "0.5307898", "0.5303463", "0.5299203", "0.5293145" ]
0.53921276
77
query (with given params map) returns exactly one result
public static Object getUnique(String query, Map parameters) throws UAPersistenceException { Session sess = HibernateUtil.currentSession(); Object retVal; try { Query q = sess.createQuery(query).setCacheable(true); setParameters(parameters, q); retVal = q.uniqueResult(); } catch (HibernateException e) { throw new UAPersistenceException("problems creating query, see stack trace", e); } return retVal; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Object queryAll(Map<String, Object> params) throws Exception {\n\t\treturn null;\n\t}", "SearchResponse query(SearchRequest request, Map<SearchParam, String> params);", "public List<Usuario> findWhere(Map<String, String> params){\n try {\n QueryBuilder<Usuario, Integer> queryBuilder = dao.queryBuilder();\n Where<Usuario, Integer> where = queryBuilder.where();\n\n for(Map.Entry<String, String> param: params.entrySet()) {\n where.eq(param.getKey(), param.getValue());\n }\n\n where.and(params.size());\n PreparedQuery<Usuario> preparedQuery = queryBuilder.prepare();\n return dao.query(preparedQuery);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return null;\n }", "Object callQuery(String name, Map<String, String> params);", "Pair<Boolean, List<Result>> execQuery(int matchLimit);", "Query query();", "@Override\n\tpublic JSONObject query(HashMap<String,Object> map) {\n\t\treturn queryExpress(map);\n\t}", "public Object executeQueryOneResult(String hql, Map params) throws RepositoryException {\n\t\tObject retorno = DatanucleusCRUDUtils.executeQueryOneResult(hql, params); \n\t\tparams.clear();\n\t\treturn retorno;\n\t}", "SparqlResultObject callSelectQuery(String name, Map<String, String> params);", "Boolean callAskQuery(String name, Map<String, String> params);", "ZZW queryByHql(String hql,Map<String,Object> param);", "@Override\n\tpublic Object queryModel(Map<String, Object> params) throws Exception {\n\t\treturn null;\n\t}", "public Long findCountByParam(Map<String,Object> map);", "public QueryResponse query(SolrParams params) throws SolrServerException, IOException {\n return new QueryRequest(params).process(this);\n }", "public void testUsingQueriesFromQueryManger(){\n\t\tSet<String> names = testDataMap.keySet();\n\t\tUtils.prtObMess(this.getClass(), \"atm query\");\n\t\tDseInputQuery<BigDecimal> atmq = \n\t\t\t\tqm.getQuery(new AtmDiot());\n\t\tMap<String, ComplexQueryResult<BigDecimal>> bdResult = \n\t\t\t\tatmq.get(names, 1, TimeUnit.SECONDS);\n\t\tCollectionsStaticMethods.prtMapItems(bdResult);\n\n\t\tUtils.prtObMess(this.getClass(), \"vol query\");\n\t\tDseInputQuery<BigDecimal> volq = \n\t\t\t\tqm.getQuery(new VolDiotForTest());\n\t\tMap<String, ComplexQueryResult<BigDecimal>> dbResult = \n\t\t\t\tvolq.get(names, 1, TimeUnit.SECONDS);\n\t\tCollectionsStaticMethods.prtMapItems(dbResult);\n\t\n\t\tUtils.prtObMess(this.getClass(), \"integer query\");\n\t\tDseInputQuery<BigDecimal> strikeq = \n\t\t\t\tqm.getQuery(new StrikeDiotForTest());\n\t\tMap<String, ComplexQueryResult<BigDecimal>> strikeResult = \n\t\t\t\tstrikeq.get(names, 1, TimeUnit.SECONDS);\n\t\tCollectionsStaticMethods.prtMapItems(strikeResult);\n\t\n\t}", "JsonObject search(JsonObject params, ConcurrentMap<String, String> precisionMap);", "@Test\n public void test_singleRetrieve_withoutParens_ParamQuery() {\n BridgeRequest request = new BridgeRequest();\n\n // Add the fields\n List<String> fields = new ArrayList<>();\n fields.add(\"name\");\n fields.add(\"sn\");\n request.setFields(fields);\n\n // Set the Structure\n // This gets appended to the filter as (objectClass=STRUCTURE)\n request.setStructure(\"User\");\n\n // Set the Query\n request.setQuery(\"<%=parameter[\\\"Search String\\\"]%>\");\n\n // Set the Parameters to be replaced in the Query\n Map parameters = new HashMap();\n parameters.put(\"Search String\", \"samaccountname=mary.olowu\");\n request.setParameters(parameters);\n\n Map<String, Object> recordMap = null;\n BridgeError expectedError = null;\n try {\n Record record = getAdapter().retrieve(request);\n } catch (BridgeError e) {\n expectedError = e;\n }\n\n assertNotNull(expectedError);\n }", "@Override\n\tpublic ResultBO<?> queryBill(Map<String, String> map) {\n\t\treturn super.queryBill(map);\n\t}", "@Query(\"SELECT entity FROM Clientes entity WHERE (:id is null OR entity.id = :id) AND (:nome is null OR entity.nome like concat('%',:nome,'%')) AND (:negocio is null OR entity.negocio like concat('%',:negocio,'%')) AND (:sigla is null OR entity.sigla like concat('%',:sigla,'%')) AND (:status is null OR entity.status like concat('%',:status,'%'))\")\n public Page<Clientes> specificSearch(@Param(value=\"id\") java.lang.Double id, @Param(value=\"nome\") java.lang.String nome, @Param(value=\"negocio\") java.lang.String negocio, @Param(value=\"sigla\") java.lang.String sigla, @Param(value=\"status\") java.lang.String status, Pageable pageable);", "@Test\n public void test_singleRetrieve_withParens_ParamQuery() {\n BridgeRequest request = new BridgeRequest();\n\n // Add the fields\n List<String> fields = new ArrayList<>();\n fields.add(\"name\");\n fields.add(\"sn\");\n request.setFields(fields);\n\n // Set the Structure\n // This gets appended to the filter as (objectClass=STRUCTURE)\n request.setStructure(\"User\");\n\n // Set the Query\n request.setQuery(\"<%=parameter[\\\"Search String\\\"]%>\");\n\n // Set the Parameters to be replaced in the Query\n Map parameters = new HashMap();\n parameters.put(\"Search String\", \"(samaccountname=mary.olowu)\");\n request.setParameters(parameters);\n\n Map<String, Object> recordMap = null;\n BridgeError unexpectedError = null;\n try {\n Record record = getAdapter().retrieve(request);\n recordMap = record.getRecord();\n } catch (BridgeError e) {\n unexpectedError = e;\n }\n\n assertNull(unexpectedError);\n assertNotNull(recordMap);\n }", "boolean hasQuery();", "ApplyInfo queryByApplyId(Map<String, Object> map);", "QueryResponse query(SolrParams solrParams) throws SolrServerException;", "public void search(Map<String, String> searchParam);", "Page<MLPSolution> findSolutions(Map<String, ? extends Object> queryParameters, boolean isOr, Pageable pageable);", "@Test\n public void learnToQueryWithMultipleParams() throws Exception {\n SqlSession session = null;\n\n // TODO: get a Koan06Mapper object\n Koan06Mapper mapper = null;\n\n List<Country> lc = mapper.getCountryRange(22, 33);\n\n assertEquals(12, lc.size());\n Country finland = lc.get(11);\n assertEquals(\"Finland\", finland.getCountry());\n\n }", "@Override\r\n\tpublic List<?> getByParams(JsonRequestParams params, Query query) {\n\t\treturn null;\r\n\t}", "public void getSingleTransQuery(HashMap<String, String> params) {\n\t\tID = params.get(\"transactionID\");\n\t\tREPORT_START = params.get(\"reportStart\");\n\t\tREPORT_END = params.get(\"reportEnd\");\n\t\tEXCLUDE_ERRORS = params.get(\"excludeErrors\");\n\t\tAPI = \"stq\";\n\t}", "IQuery getQuery();", "List<ResultDTO> search(String query);", "public Object findUniqueByHql(String hql, Object... params);", "<K, R extends IResponse> R query(IQueryRequest<K> queryRequest);", "<T extends BaseDto, V extends BaseDto> List<T> executeQuery(String reqResQuery, V req, QueryResultTransformer<T> transformer, Connection conn);", "List<?> query(Object inputObject, Settings settings);", "<T> T getSingleResult(Class<T> type, Query query);", "T findSingleByCriteria(String eCriteria, Object... parameters);", "public static List<Map<String, Object>> executeSearchQuery(String sql, Object... params) {\n Search search = new Search(sql, result1 -> {\n }, params);\n getInstance().add(search);\n\n while (search.getResult() == null) {\n getInstance().executeThread();\n }\n return search.getResult();\n }", "String query();", "public HashMap<Integer,NeurolexPageId> runSelectQueryBAMS() {\n\t\tString queryString = getComposedQuery();\n\n\t\ttry {\n\t\t\t// URL encode query string\n\t\t\tqueryString = URLEncoder.encode(queryString, \"UTF-8\");\n\n\t\t\t// compose the final URL\n\t\t\tURL sparqlConnection = new URL(this.sparqlEndPointURL + \n\t\t\t\t\t\"?query=\" + queryString);\n\n\t\t\tHttpURLConnection httpConnection = (HttpURLConnection)sparqlConnection.openConnection();\n\t\t\thttpConnection.setRequestProperty(\"accept\", \"application/sparql-results+xml\");\n\t\t\tInputStream queryResult = httpConnection.getInputStream();\n\n\t\t\treturn parseSPARQLResultBAMS(queryResult);\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "@Override\r\n\tpublic HitsVo hitsSelectOne(Map<String, Object> map) {\n\t\treturn sqlSession.selectOne(namespace + \"hitsSelectOne\", map);\r\n\t}", "List<OwnerOperatorDTO> search(String query);", "List<E> queryAll(String namedQuery);", "@Override\n\tpublic <T> T findOne(Map<String, CustmerCriteria> params, Class<T> t) throws Exception {\n\t\treturn null;\n\t}", "int[][] query(Specification specification) throws RepositoryException;", "public <T> int select(final String sqlQuery, final Map<String, Object> param) throws Exception;", "@Override\n\tpublic QueryRes getQueryResByKeys(String[] keys) throws ServiceException {\n\t\treturn null;\n\t}", "ResultDto selectByPrimaryKey(String number);", "QueryResult(Pair<Integer, String>[] queries) {\n results = new ConcurrentHashMap<>(queries.length);\n for (Pair<Integer, String> query : queries)\n results.put(query.first, new int[0]);\n }", "@Query(\"name = ? and age = ?\")\n List<PersonDocument> findByNameAndAge(String name, Integer age);", "CampusSearchQuery generateQuery();", "@Test\n public void testGetValuesByResult() throws Exception {\n map.set(\"key-1\", \"value-1\", 10);\n map.set(\"key-2\", \"value-2\", 10);\n map.set(\"key-3\", \"value-3\", 10);\n \n List<TpMapResult> results = map.getValuesByResult(Arrays.asList(\"key-1\", \"key-2\", \"key-3\"));\n {\n TpMapResult result = results.get(0);\n Assert.assertEquals(result.getKey(), MemcachedMap.DEFAULT_ROOT_KEY_PREFIX + TpMap.KEY_SEPARATOR + \"key-1\");\n Assert.assertEquals(result.getValue(), \"value-1\");\n }\n {\n TpMapResult result = results.get(1);\n Assert.assertEquals(result.getKey(), MemcachedMap.DEFAULT_ROOT_KEY_PREFIX + TpMap.KEY_SEPARATOR + \"key-2\");\n Assert.assertEquals(result.getValue(), \"value-2\");\n }\n {\n TpMapResult result = results.get(2);\n Assert.assertEquals(result.getKey(), MemcachedMap.DEFAULT_ROOT_KEY_PREFIX + TpMap.KEY_SEPARATOR + \"key-3\");\n Assert.assertEquals(result.getValue(), \"value-3\");\n }\n }", "List<EmpTaskInfo> queryEmpTasksByCond(Map paramMap);", "<T extends BaseDto> List<T> executeQuery(String resQuery, QueryResultTransformer<T> transformer, Connection conn);", "Flowable<T> query(IDynamoDBMapper mapper);", "@Override\r\n\tpublic void query(Integer paramInteger1, Integer paramInteger2,\r\n\t\t\tHttpServletRequest paramHttpServletRequest,\r\n\t\t\tHttpServletResponse paramHttpServletResponse, ModelMap paramModelMap) {\n\t\t\r\n\t}", "public static void testQuery() {\n\t\tParameters parameters = new Parameters();\r\n\t\tparameters.setUrl(\"VchicleServlet.json?action=pagequery\");\r\n\t\tparameters.setList(new ArrayList<NameValuePair>());\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"pageSize\", \"2\"));\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"currPage\", \"3\"));\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tString string = (String) MainUtilityTools.execute(parameters);\r\n\t}", "List<ResultDTO> searchUser(String query);", "@Transactional\n @Override\n public PageUtils queryPage(Map<String, Object> params) {\n QueryWrapper<PurchaseDetailEntity> wrapper = new QueryWrapper<>();\n String key = (String) params.get(\"key\");\n if (!StringUtils.isEmpty(key)) {\n wrapper.and(w->{\n w.eq(\"purchase_id\", key).or().like(\"sku_id\", key);\n });\n }\n String status = (String) params.get(\"status\");\n if (!StringUtils.isEmpty(status)) {\n wrapper.eq(\"status\", status);\n }\n String wareId = (String) params.get(\"wareId\");\n if (!StringUtils.isEmpty(wareId)) {\n wrapper.eq(\"ware_id\", wareId);\n }\n IPage<PurchaseDetailEntity> page = this.page(\n new Query<PurchaseDetailEntity>().getPage(params),\n wrapper\n );\n\n return new PageUtils(page);\n }", "public void testQuery() throws Exception {\n DummyApprovalRequest req1 = new DummyApprovalRequest(reqadmin, null, caid, SecConst.EMPTY_ENDENTITYPROFILE, false);\n DummyApprovalRequest req2 = new DummyApprovalRequest(admin1, null, caid, SecConst.EMPTY_ENDENTITYPROFILE, false);\n DummyApprovalRequest req3 = new DummyApprovalRequest(admin2, null, 3, 2, false);\n\n approvalSessionRemote.addApprovalRequest(admin1, req1, gc);\n approvalSessionRemote.addApprovalRequest(admin1, req2, gc);\n approvalSessionRemote.addApprovalRequest(admin1, req3, gc);\n\n // Make som queries\n Query q1 = new Query(Query.TYPE_APPROVALQUERY);\n q1.add(ApprovalMatch.MATCH_WITH_APPROVALTYPE, BasicMatch.MATCH_TYPE_EQUALS, \"\" + req1.getApprovalType());\n\n List result = approvalSessionRemote.query(admin1, q1, 0, 3, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() >= 2 && result.size() <= 3);\n\n result = approvalSessionRemote.query(admin1, q1, 1, 3, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() >= 1 && result.size() <= 3);\n\n result = approvalSessionRemote.query(admin1, q1, 0, 1, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() == 1);\n\n Query q2 = new Query(Query.TYPE_APPROVALQUERY);\n q2.add(ApprovalMatch.MATCH_WITH_STATUS, BasicMatch.MATCH_TYPE_EQUALS, \"\" + ApprovalDataVO.STATUS_WAITINGFORAPPROVAL, Query.CONNECTOR_AND);\n q2.add(ApprovalMatch.MATCH_WITH_REQUESTADMINCERTSERIALNUMBER, BasicMatch.MATCH_TYPE_EQUALS, reqadmincert.getSerialNumber().toString(16));\n\n result = approvalSessionRemote.query(admin1, q1, 1, 3, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() >= 1 && result.size() <= 3);\n\n // Remove the requests\n int id1 = ((ApprovalDataVO) approvalSessionRemote.findApprovalDataVO(admin1, req1.generateApprovalId()).iterator().next()).getId();\n int id2 = ((ApprovalDataVO) approvalSessionRemote.findApprovalDataVO(admin1, req2.generateApprovalId()).iterator().next()).getId();\n int id3 = ((ApprovalDataVO) approvalSessionRemote.findApprovalDataVO(admin1, req3.generateApprovalId()).iterator().next()).getId();\n approvalSessionRemote.removeApprovalRequest(admin1, id1);\n approvalSessionRemote.removeApprovalRequest(admin1, id2);\n approvalSessionRemote.removeApprovalRequest(admin1, id3);\n }", "@Test\n public void testBatchedInQuery() {\n TestDataCreator creator = new TestDataCreator(getSessionFactory());\n Town town = creator.createTestTown();\n\n int n = 10;\n List<Long> ids = new ArrayList<>(n);\n for (long i=0; i < n; i++) {\n Person savedPerson = creator.createTestPerson(town, \"P\" + i);\n ids.add(savedPerson.getId());\n }\n for (long i=0; i < n; i++) {\n creator.createTestPerson(town, \"P\" + i);\n }\n\n Person person = query.from(Person.class);\n query.where(person.getId()).in(ids, 2);\n\n validate(\"from Person hobj1 where hobj1.id in (:np1)\", ids);\n assertEquals(n, doQueryResult.size());\n }", "public QueryResult<T> getResult();", "Future<Map<String, Object>> computeQueryResult(Request request) {\n String query = request.getParam(\"q\");\n Map<String, String> results = new HashMap<String, String>();\n results.put(\"a\", \"1\");\n results.put(\"b\", \"2\");\n results.put(\"c\", \"3\");\n results.put(\"d\", \"4\");\n results.put(\"e\", \"5\");\n\n Map<String, Object> result = new HashMap<String, Object>();\n result.put(\"query\", query);\n result.put(\"numResults\", \"5\");\n result.put(\"results\", results);\n result.put(\"user\", \"Bob\");\n result.put(\"timestamp\", \"Thu, 19 May 2016 00:00:00 +00:00\");\n return Future.value(result);\n }", "private static Map buildQueryMap(List<Map> listParam, int size) {\n Map filterMap = putMap(null, \"script\", putMap(null, \"script\", putMap(null, \"source\", \"doc['message'].values.length==0\")));\n Map boolMap = new HashMap();\n putMap(boolMap, \"must\", listParam);\n putMap(boolMap, \"filter\", filterMap);\n\n Map root = new HashMap();\n putMap(root, \"query\", putMap(null, \"bool\", boolMap));\n putMap(root, \"from\", 0);\n putMap(root, \"size\", size);\n\n return root;\n }", "@Test(expected = IllegalArgumentException.class)\n public void testSearchQuery03() {\n ISearchQuery query = new SearchQuery(null, null, null, null);\n SearchOption option = new SearchOption();\n option.setStrategy(strategy);\n SearchResult result = searchService.search(query, option, raptorContext);\n Assert.assertEquals(result.getResultSize(), 1);\n }", "private List<Map<String, PrimitiveTypeProvider>> executeQuery(QueryMessage qm) {\r\n ListenableFuture<QueryResultsMessage> f = this.adampro.standardQuery(qm);\r\n QueryResultsMessage result;\r\n try {\r\n result = f.get();\r\n } catch (InterruptedException | ExecutionException e) {\r\n LOGGER.error(LogHelper.getStackTrace(e));\r\n return new ArrayList<>(0);\r\n }\r\n\r\n if (result.getAck().getCode() != AckMessage.Code.OK) {\r\n LOGGER.error(result.getAck().getMessage());\r\n }\r\n\r\n if (result.getResponsesCount() == 0) {\r\n return new ArrayList<>(0);\r\n }\r\n\r\n QueryResultInfoMessage response = result.getResponses(0); // only head (end-result) is important\r\n\r\n List<QueryResultTupleMessage> resultList = response.getResultsList();\r\n return resultsToMap(resultList);\r\n }", "@Test\n public void mapContains() {\n check(MAPCONT);\n query(MAPCONT.args(MAPNEW.args(), 1), false);\n query(MAPCONT.args(MAPENTRY.args(1, 2), 1), true);\n }", "@Test\n public void mapGet() {\n check(MAPGET);\n query(MAPGET.args(MAPNEW.args(\"()\"), 1), \"\");\n query(MAPGET.args(MAPENTRY.args(1, 2), 1), 2);\n }", "@RequestMapping(\"/query.do\")\n\tpublic @ResponseBody Map<String, Object> query(@RequestParam Map reqMap) {\nList<CpzProductLevelBean> cpzproductlevelBeans=null;\ntry {\ncpzproductlevelBeans=cpzProductLevelService.get(reqMap);\n} catch (Exception e) {\n\te.printStackTrace();\n}\nMap r=new HashMap();\nr.put(\"returnData\",cpzproductlevelBeans);\n\t return CommonUtil.ReturnWarp(Constant.TRAN_SUCCESS, Constant.ERRORTYPE,\"\",r);\n\t}", "Query queryOn(Connection connection);", "List<ResultsView1> findByCadd(String addrs);", "protected abstract List performQuery(String[] ids);", "public List<Orders> findOrder(Map<String, Object> params);", "List<Cemetery> search(String query);", "public SingleQuery query(String sql, Object... params) {\r\n PreparedStatement stmt = prepare(sql);\r\n\r\n try {\r\n if (params != null && params.length > 0) {\r\n for (int i = 0; i < params.length; i++) {\r\n stmt.setObject(i + 1, params[i]);\r\n }\r\n }\r\n } catch (SQLException e1) {\r\n throw new DbException(e1);\r\n }\r\n\r\n return runQuery(stmt);\r\n }", "@Override\n public boolean hasNext() {\n return !query.isEmpty();\n }", "@Query(\"SELECT p FROM Person p WHERE p.name=?1 OR p.age=?2\")\n List<Person> FindByNameOrAge(String name, Integer age);", "@Query(value = \"Select * From Seat Where row_number = ?1 and col_number = ?2 and train_train_id = ?3 \",nativeQuery=true)\n public Optional<Seat> checkSeatAvailability(int r, int c, int trainId);", "@Override\n\tpublic List<T> find(String hql, Map<String, Object> params, int page, int rows) {\n\t\tQuery q = hibernateTemplate.getSessionFactory().getCurrentSession().createQuery(hql);\n\t\tif (params != null && !params.isEmpty()) {\n\t\t\tfor (String key : params.keySet()) {\n\t\t\t\tq.setParameter(key, params.get(key));\n\t\t\t}\n\t\t}\n\t\treturn q.setFirstResult((page - 1) * rows).setMaxResults(rows).list();\n\t}", "@Override\r\n\tpublic List<Object> findReturnObject(String hql, List<Object> params) {\n\t\tQuery q = this.getcurrentSession().createQuery(hql);\r\n\t\tif (params != null && params.size() > 0) {\r\n\t\t\tfor (int i = 0; i < params.size(); i++) {\r\n\t\t\t\tq.setParameter(i, params.get(i));\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn q.list();\r\n\t}", "@Override\r\n\tpublic void test() {\n\t\t\r\n\t\tMap<String, Object> map = new HashMap<>();\r\n\t\t\r\n\t\tcarModelMapper.queryCarModel(map);\r\n\t\tInteger count = (Integer) map.get(\"result\");\r\n\t\tSystem.out.println(count);\r\n\t}", "@Query(nativeQuery = true, value = \"select * from integral i where i.app_id = :appId and i.ip= :ip and i.channel = :code and i.ad_id = :adId limit 1\")\n Integral findByUser_IpAndChannel_CodeAndAdId(@Param(\"appId\") String appId,@Param(\"ip\") String userId, @Param(\"code\") String code, @Param(\"adId\") String adId);", "List<MorePracticeClass> selectQueryNotProMng(HashMap map, RowBounds rowBounds);", "private QueryResponse query(Query query) throws ElasticSearchException{\r\n\t\tQueryResponse response = executor.executeQuery(query);\r\n\t\tresponse.setObjectMapper(mapper);\r\n\t\treturn response;\t\t\r\n\t}", "<T> T queryFirst(\n\t\t\tfinal Builder<T> builder,\n\t\t\tfinal String query,\n\t\t\tfinal Object... parameters);", "QueryResult(String... queries) {\n results = new ConcurrentHashMap<>(queries.length);\n for (String query : queries)\n results.put(query.hashCode(), new int[0]);\n }", "@Override\n public List<PrescriptionRecord> findListByParams(Map map) {\n Map<String, Object> param = new HashMap<String, Object>(map);\n \n String sort = (String) map.get(\"sortType\");\n if(sort!=null) {\n param.put(\"sortType\", sort);\n }else {\n param.put(\"sortType\", \"DESC\");\n }\n \n List<ShardMeta> shardMetas = generateShardMetas();\n Integer pageSize = (Integer) param.get(\"pageSize\");\n boolean findRange = StringUtils.isBlank((String) param.get(\"orderNo\")) && pageSize != null;\n Integer startNum = findRange ? (Integer) param.get(\"startNum\") : 0;\n Integer subStartNum = startNum / shardMetas.size();\n \n List<PrescriptionRecord> allOrders = new ArrayList<PrescriptionRecord>();\n try {\n // 指定订单号则跳过\n if (findRange) {\n param.put(\"subStartNum\", subStartNum);\n // 提交第一次查询,查询每个分片的订单范围\n List<Future<List<Long>>> rangeTasks = submitRangeQuery(param, shardMetas, queryPool);\n long minTime = Long.MAX_VALUE;\n long maxTime = Long.MIN_VALUE;\n Iterator<ShardMeta> iterator = shardMetas.iterator();\n // 根据每个分片的订单范围计算出全局的订单范围\n for (int i = 0; i < rangeTasks.size(); i++) {\n ShardMeta shardMeta = iterator.next();\n List<Long> timestamps = rangeTasks.get(i).get();\n if (timestamps.isEmpty()) {\n continue;\n }\n \n shardMeta.setMaxTime(timestamps.get(0));\n shardMeta.setMinTime(timestamps.get(timestamps.size() - 1));\n if (maxTime < shardMeta.getMaxTime()) {\n maxTime = shardMeta.getMaxTime();\n }\n if (minTime > shardMeta.getMinTime()) {\n minTime = shardMeta.getMinTime();\n }\n }\n param.put(\"startTime\", minTime);\n param.put(\"endTime\", maxTime);\n }\n \n // 提交第二次查询,查询每个分片符合范围的订单\n List<Future<List<PrescriptionRecord>>> orderTasks = submitOrderQuery(param, shardMetas, queryPool);\n int offset = 0;\n Iterator<ShardMeta> iterator = shardMetas.iterator();\n List<ShardMeta> offsetShards = new ArrayList<ShardMeta>();\n // 合并所有分片的结果\n for (Future<List<PrescriptionRecord>> orderTask : orderTasks) {\n ShardMeta shardMeta = iterator.next();\n List<PrescriptionRecord> orderViews = orderTask.get();\n if (findRange) {\n if (shardMeta.getMaxTime() == Long.MIN_VALUE) {\n offsetShards.add(shardMeta);\n } else {\n int shardAheadCount = getAheadCount(orderViews, shardMeta.getMaxTime());\n // 累加全局偏移量\n offset += subStartNum - shardAheadCount;\n // 删除不需要后补齐查询的分片信息\n if (orderViews.size() - shardAheadCount < pageSize)\n iterator.remove();\n }\n }\n allOrders.addAll(orderViews);\n }\n \n if (!findRange || allOrders.isEmpty())\n return allOrders;\n /*\n // 进行分片偏移量查询\n if (!offsetShards.isEmpty()) {\n Object startTime = param.get(\"startTime\");\n param.put(\"startTime\", param.get(\"endTime\"));\n param.put(\"endTime\", map.get(\"endTime\"));\n \n List<Future<Long>> offsetTasks = submitOffsetQuery(param, offsetShards, queryPool);\n for (Future<Long> offsetTask : offsetTasks)\n offset += offsetTask.get();\n \n param.put(\"startTime\", startTime);\n }\n \n // 进行第三次查询\n int targetOffset = startNum - offset;\n int endIndex = targetOffset + pageSize;\n if (endIndex > allOrders.size() && !shardMetas.isEmpty()) {\n int backfill = endIndex - allOrders.size();\n param.put(\"backfill\", backfill);\n param.put(\"endTime\", param.get(\"startTime\"));\n param.put(\"startTime\", map.get(\"startTime\"));\n orderTasks = submitOrderQuery(param, shardMetas, queryPool);\n for (Future<List<PrescriptionRecord>> orderTask : orderTasks)\n allOrders.addAll(orderTask.get());\n }\n \n */\n int targetOffset = startNum;\n int endIndex = startNum + pageSize;\n \n if (allOrders.size() <= targetOffset)\n return Collections.EMPTY_LIST;\n \n \n // 对合并后的结果统一排序,并根据全局偏移量定位分页的第一条订单的偏移量,提取分页结果\n \n sortByCreateTime(allOrders);\n return allOrders.subList(targetOffset, Math.min(endIndex, allOrders.size()));\n } catch (Exception e) {\n e.printStackTrace();\n throw new SystemException(e);\n }\n }", "@Override\n\tpublic List<Setting> query(Map<?, ?> map) {\n\t\treturn settingDao.query(map);\n\t}", "@Override\n public List<BankAccount> findAllByFilters(Map<String, String> map1) {\n try {\n\n CriteriaBuilder builder = manager.getCriteriaBuilder();\n CriteriaQuery<BankAccount> criteria = builder.createQuery(BankAccount.class);\n Root<BankAccount> root = criteria.from(BankAccount.class);\n\n criteria.distinct(true).select(root);\n\n TypedQuery<BankAccount> banksAccountsQuery = manager.createQuery(criteria);\n\n if(map1.get(\"page\")!=null && map1.get(\"limit\")!=null){\n banksAccountsQuery.setFirstResult(Integer.parseInt(map1.get(\"page\")));\n banksAccountsQuery.setMaxResults(Integer.parseInt(map1.get(\"limit\")));\n }\n\n return banksAccountsQuery.getResultList();\n\n }catch (Exception e){\n\n log.error(e.getMessage());\n List<BankAccount> bankAccountsError = new ArrayList<>();\n BankAccount bankAccountError = new BankAccount();\n bankAccountError.setId(-500L);\n bankAccountsError.add(bankAccountError);\n\n return bankAccountsError;\n }\n }", "List<Corretor> search(String query);", "public Map<String, DataModel> getQuery() {\n if (queries == null) {\n queries = FxSharedUtils.getMappedFunction(new FxSharedUtils.ParameterMapper<String, DataModel>() {\n @Override\n public DataModel get(Object key) {\n try {\n final FxResultSet result = EJBLookup.getSearchEngine().search((String) key, 0, -1, null);\n return new FxResultSetDataModel(result);\n } catch (FxApplicationException e) {\n throw e.asRuntimeException();\n }\n }\n }, true);\n }\n return queries;\n }", "public <V> V executeSingleNamedQuery(String name, Map<String, Object> params) {\n\t Query q = getEntityManager().createNamedQuery(name);\n\t for (Map.Entry<String, Object> entry : params.entrySet()) {\n\t q.setParameter(entry.getKey(), entry.getValue());\n\t }\n\t return (V) q.getSingleResult();\n\t }", "SearchResult getBestResult(List<SearchResult> results, SearchQuery query);", "List<SearchResult> search(SearchQuery searchQuery);", "@Test\n public void findByTripTest() {\n Set<Reservation> expected = new HashSet<>();\n expected.add(reservation2);\n expected.add(reservation4);\n Mockito.when(reservationDao.findByTripId(Mockito.anyLong())).thenReturn(expected);\n Collection<Reservation> result = reservationService.findByTrip(25L);\n Assert.assertEquals(result.size(), 2);\n Assert.assertTrue(result.contains(reservation2));\n Assert.assertTrue(result.contains(reservation4));\n }", "public boolean query(int a, int b) {\n\t\treturn find(a) == find(b);\n }", "@Override\r\n\tpublic List<Repair> queryAll(int pageSize, int page, Map<String, Object> param) {\n\t\treturn repairDao.queryAll(pageSize, page, param);\r\n\t}", "@Test\n public void queryWithOneInnerQueryCreate() throws IOException {\n BaseFuseClient fuseClient = new BaseFuseClient(\"http://localhost:8888/fuse\");\n //query request\n CreateQueryRequest request = new CreateQueryRequest();\n request.setId(\"1\");\n request.setName(\"test\");\n request.setQuery(Q1());\n //submit query\n given()\n .contentType(\"application/json\")\n .header(new Header(\"fuse-external-id\", \"test\"))\n .with().port(8888)\n .body(request)\n .post(\"/fuse/query\")\n .then()\n .assertThat()\n .body(new TestUtils.ContentMatcher(o -> {\n try {\n final QueryResourceInfo queryResourceInfo = fuseClient.unwrap(o.toString(), QueryResourceInfo.class);\n assertTrue(queryResourceInfo.getAsgUrl().endsWith(\"fuse/query/1/asg\"));\n assertTrue(queryResourceInfo.getCursorStoreUrl().endsWith(\"fuse/query/1/cursor\"));\n assertEquals(1,queryResourceInfo.getInnerUrlResourceInfos().size());\n assertTrue(queryResourceInfo.getInnerUrlResourceInfos().get(0).getAsgUrl().endsWith(\"fuse/query/1->q2/asg\"));\n assertTrue(queryResourceInfo.getInnerUrlResourceInfos().get(0).getCursorStoreUrl().endsWith(\"fuse/query/1->q2/cursor\"));\n return fuseClient.unwrap(o.toString()) != null;\n } catch (Exception e) {\n e.printStackTrace();\n return false;\n }\n }))\n .statusCode(201)\n .contentType(\"application/json;charset=UTF-8\");\n\n //get query resource by id\n given()\n .contentType(\"application/json\")\n .header(new Header(\"fuse-external-id\", \"test\"))\n .with().port(8888)\n .get(\"/fuse/query/\"+request.getId()+\"->\"+Q2().getName())\n .then()\n .assertThat()\n .body(new TestUtils.ContentMatcher(o -> {\n try {\n final QueryResourceInfo queryResourceInfo = fuseClient.unwrap(o.toString(), QueryResourceInfo.class);\n assertTrue(queryResourceInfo.getAsgUrl().endsWith(\"fuse/query/1->q2/asg\"));\n assertTrue(queryResourceInfo.getCursorStoreUrl().endsWith(\"fuse/query/1->q2/cursor\"));\n return fuseClient.unwrap(o.toString()) != null;\n } catch (Exception e) {\n e.printStackTrace();\n return false;\n }\n }))\n .statusCode(200)\n .contentType(\"application/json;charset=UTF-8\");\n\n\n }", "private QueryResult performMappedQuery() throws VizException {\n\n if (database == null) {\n throw new VizException(\"Database not specified for query\");\n }\n if (query == null) {\n throw new VizException(\"Cannot execute null query\");\n }\n\n QlServerRequest request = new QlServerRequest(query);\n request.setDatabase(database);\n request.setType(QueryType.QUERY);\n request.setParamMap(paramMap);\n\n // set the mode so the handler knows what to do\n if (queryLanguage == null) {\n throw new VizException(\"Query language not specified\");\n } else if (queryLanguage.equals(QueryLanguage.HQL)) {\n request.setLang(QlServerRequest.QueryLanguage.HQL);\n } else {\n request.setLang(QlServerRequest.QueryLanguage.SQL);\n }\n\n // create request object\n QueryResult retVal = null;\n // get result\n AbstractResponseMessage response = (AbstractResponseMessage) ThriftClient\n .sendRequest(request);\n\n if (response instanceof ResponseMessageGeneric) {\n retVal = (QueryResult) ((ResponseMessageGeneric) response)\n .getContents();\n\n } else if (response instanceof ResponseMessageError) {\n ResponseMessageError rme = (ResponseMessageError) response;\n VizServerSideException innerException = new VizServerSideException(\n rme.toString());\n throw new VizServerSideException(rme.getErrorMsg(), innerException);\n }\n\n return retVal;\n }", "@GetMapping(\"/query\")\n\tpublic String query(@RequestParam(name = \"name\", required = false, defaultValue = \"Rajni\") String name,\n\t\t\t@RequestParam(name = \"age\", required = false) Integer age, ModelMap map) {\n\n\t\tmap.addAttribute(\"name\", name);\n\t\tmap.addAttribute(\"age\", age);\n\n\t\treturn \"query\";\n\t}", "default CompletableFuture<List<Box>> queryVisible() {\n //Fill search Map with the Values\n final Map<String,Object> searchData = new HashMap<String,Object>() {\n {\n put(BoxPersistenceDAO.QUERY_PARAM_DELFLAG, false);\n }\n\n @Override\n public Object put(String key, Object o) {\n if (o != null) return super.put(key, o);\n return null;\n }\n };\n\n return query(searchData);\n }" ]
[ "0.6403971", "0.6387395", "0.63570684", "0.62691534", "0.6191131", "0.6119495", "0.60820365", "0.5877547", "0.5810742", "0.57819355", "0.57747036", "0.567583", "0.56249434", "0.5621501", "0.56169015", "0.5543441", "0.5541021", "0.5536474", "0.551309", "0.55067265", "0.5496749", "0.54930866", "0.54845476", "0.5479739", "0.5475804", "0.54703546", "0.54605716", "0.544403", "0.542696", "0.5424801", "0.5418126", "0.5398787", "0.5397905", "0.53901523", "0.538341", "0.5380932", "0.5362182", "0.5355097", "0.53454477", "0.5345066", "0.53354853", "0.5332666", "0.53224266", "0.5312688", "0.53114057", "0.53001064", "0.52995235", "0.52961326", "0.5295519", "0.52815074", "0.5276183", "0.5269847", "0.5254511", "0.52536964", "0.5252055", "0.52410686", "0.5240932", "0.52170676", "0.51984453", "0.51892066", "0.518406", "0.518132", "0.518109", "0.51781166", "0.51744246", "0.5173046", "0.5165419", "0.51639825", "0.5142666", "0.5135498", "0.51350266", "0.5131168", "0.5130403", "0.5124951", "0.51196444", "0.5118967", "0.5117072", "0.5106639", "0.5102556", "0.5101145", "0.50999093", "0.5099644", "0.50972754", "0.509372", "0.50878596", "0.50854796", "0.5083771", "0.50779074", "0.5077663", "0.50758004", "0.50722975", "0.50707555", "0.50653094", "0.50630826", "0.50623727", "0.5059965", "0.50561863", "0.5049282", "0.50454116", "0.5043127" ]
0.5219144
57
Returns an exemplar of this enum.
public static EjbcaExceptionClasses fromClass(Class<?> clazz) { EjbcaExceptionClasses ejbcaExceptionClasses = ExceptionClassHolder.map.get(clazz); return ejbcaExceptionClasses != null ? ejbcaExceptionClasses : UNKNOWN; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Value setNotDontEnum() {\n checkNotUnknown();\n if (isNotDontEnum())\n return this;\n Value r = new Value(this);\n r.flags &= ~ATTR_DONTENUM_ANY;\n r.flags |= ATTR_NOTDONTENUM;\n return canonicalize(r);\n }", "public static Value makeAbsent() {\n return theAbsent;\n }", "public Value setDontEnum() {\n checkNotUnknown();\n if (isDontEnum())\n return this;\n Value r = new Value(this);\n r.flags &= ~ATTR_DONTENUM_ANY;\n r.flags |= ATTR_DONTENUM;\n return canonicalize(r);\n }", "public Value joinNotDontEnum() {\n checkNotUnknown();\n if (isMaybeNotDontEnum())\n return this;\n Value r = new Value(this);\n r.flags |= ATTR_NOTDONTENUM;\n return canonicalize(r);\n }", "public boolean getExempt();", "protected EnumTypeAdapterFactory allowUnregistered(){\n\t\tallowUnregistered = true;\n\t\treturn this;\n\t}", "public boolean getNegated() {\r\n return Negated;\r\n }", "public boolean isDontEnum() {\n checkNotUnknown();\n return (flags & ATTR_DONTENUM_ANY) == ATTR_DONTENUM;\n }", "public Heading negate() {\r\n return new Heading(HeadingType.DEGREES, -this.degreeNum);\r\n }", "Object getUnless();", "Object getUnless();", "public Value joinAbsent() {\n checkNotUnknown();\n if (isMaybeAbsent())\n return this;\n Value r = new Value(this);\n r.flags |= ABSENT;\n return canonicalize(r);\n }", "public Value restrictToNotAbsent() {\n checkNotUnknown();\n if (isNotAbsent())\n return this;\n Value r = new Value(this);\n r.flags &= ~ABSENT;\n if (r.var != null && (r.flags & (PRESENT_DATA | PRESENT_ACCESSOR)) == 0)\n r.var = null;\n return canonicalize(r);\n }", "public Money negate() {\n return new Money(getAmount().negate(), getCurrency());\n }", "int getExclusionTypeValue();", "@Override\n public CharMatcher negate() {\n return new Negated(this);\n }", "public boolean isNotDontEnum() {\n checkNotUnknown();\n return (flags & ATTR_DONTENUM_ANY) == ATTR_NOTDONTENUM;\n }", "public boolean isMaybeDontEnum() {\n checkNotUnknown();\n return (flags & ATTR_DONTENUM) != 0;\n }", "public DockSituationIgnore getIgnore() {\r\n return ignore;\r\n }", "com.google.privacy.dlp.v2.CustomInfoType.ExclusionType getExclusionType();", "public bit not()\n\t{\n\t\tbit notBit = new bit();\n\t\t\n\t\tnotBit.setValue(Math.abs(bitHolder.getValue() - 1));\n\t\t\n\t\treturn notBit;\n\t}", "public DisabledReason disabledReason() {\n return this.disabledReason;\n }", "public NM getDaysWithoutBilling() { \r\n\t\tNM retVal = this.getTypedField(27, 0);\r\n\t\treturn retVal;\r\n }", "public boolean isInhibited() {\n return inhibited;\n }", "protected String getEnumeration()\n {\n return enumeration;\n }", "public boolean hasDontEnum() {\n checkNotUnknown();\n return (flags & ATTR_DONTENUM_ANY) != 0;\n }", "public AbsenceReason getAbsenceReason() {\n\treturn absenceReason;\n }", "public Value restrictToNonAttributes() {\n Value r = new Value(this);\n r.flags &= ~(PROPERTYDATA | ABSENT | PRESENT_DATA | PRESENT_ACCESSOR);\n return canonicalize(r);\n }", "@OAMany(\n displayName = \"Exclude Award Types\", \n toClass = AwardType.class, \n reverseName = AwardType.P_ExcludeItems, \n createMethod = false\n )\n @OALinkTable(name = \"AwardTypeExcludeItem\", indexName = \"AwardTypeExcludeItem\", columns = {\"ItemId\"})\n private Hub<AwardType> getExcludeAwardTypes() {\n return null;\n }", "public boolean isMaybeNotDontEnum() {\n checkNotUnknown();\n return (flags & ATTR_NOTDONTENUM) != 0;\n }", "public MissiveType.Enum getMissiveType() {\n\n // Get the missive document type\n return this.sepamailMissive001.getMsvTyp();\n }", "boolean getNegated();", "public Pile getDiscardPile(){\n return piles.getDiscardPile();\n }", "@Override\n\tpublic Type inverse() {\n\t\treturn Nothing.INSTANCE;\n\t}", "public boolean isExempt();", "public Pile getExhaustPile(){\n return piles.getExhaustPile();\n }", "public boolean excludeUnmated() {\n return mExcludeUnmated;\n }", "public HexDirection opposite() {\n return values()[(ordinal() + 3) % 6];\n }", "public List<WafExcludeListEntry> getExcludeList() {\n return excludeList;\n }", "@Override\n public Literal not() {\n if (negation == null) {\n negation = new NotBoolVar(this);\n }\n return negation;\n }", "public CodeableConcept dataAbsentReason() {\n return getObject(CodeableConcept.class, FhirPropertyNames.PROPERTY_DATA_ABSENT_REASON);\n }", "@Override\r\n\tpublic StateBruceDanner swallowSubstance() {\n\t\treturn NON_CONTAMINED;\r\n\t}", "public static Value makeUnknown() {\n return theUnknown;\n }", "ExcludeType createExcludeType();", "public String getReason();", "public Agg exclude(Object value) {\n attrList.put(\"exclude\", value);\n return this;\n }", "default void negate()\n {\n getAxis().negate();\n setAngle(-getAngle());\n }", "public EnumBase realResultEnum() {\n return realResultEnum;\r\n }", "public TypeOffreDTO getAlternance(){\n\t\talternance = null;\n\t\tList<TypeOffreDTO> l = getNomenclatureDomainService().getTypesOffre();\n\t\tfor(TypeOffreDTO t : l){\n\t\t\tif(t.getCodeCtrl().equalsIgnoreCase(DonneesStatic.TYPE_OFFRE_CODE_CTRL_ALTERNANCE)){\n\t\t\t\talternance=t;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn alternance;\n\t}", "public Integer[] enumProperty() {\n return null;\n }", "public String getUnlessName()\n {\n return (String) getAttributes().get(ATTR_UNLESS_NAME);\n }", "public abstract ArithValue negate();", "public Complex negate() {\n return new Complex(-re, -im);\n }", "com.unitedtote.schema.totelink._2008._06.program.ExchangeWagers.Enum getExchange();", "public Boolean isProhibited() {\n throw new NotImplementedException();\n }", "public static Value makeAbsentModified() {\n return theAbsentModified;\n }", "public boolean isNotIn() {\n return notIn;\n }", "public java.lang.CharSequence getALLOWMISCINVCREATION() {\n return ALLOW_MISC_INV_CREATION;\n }", "public IotaEnum getIotaEnum() {\n return _iotaEnum ;\n }", "public java.lang.CharSequence getALLOWMISCINVCREATION() {\n return ALLOW_MISC_INV_CREATION;\n }", "org.hl7.fhir.Boolean getInactive();", "public int GetNoElises(){\n\t\treturn NoElises;\n\t}", "public String getEnum() {\n if (model == null)\n return strEnum;\n return model.getEnum();\n }", "public java.lang.String getUnavailabilityReason() {\n return unavailabilityReason;\n }", "public String getExcellent() {\n return excellent;\n }", "Rule EnumValue() {\n return Sequence(\n Identifier(),\n Optional(EnumConst()),\n Optional(ListSeparator()),\n WhiteSpace(),\n actions.pushEnumValueNode());\n }", "public String getElement()\n {\n return \"enum\";\n }", "public String getNotAcceptReason() {\r\n\t\treturn notAcceptReason;\r\n\t}", "public Component noPerm() {\n return MiniMessage.get().parse(noPerm);\n }", "public List<AXProperty> getIgnoredReasons() {\n return ignoredReasons;\n }", "Relation getNegation();", "public Scalar neg() {\n\t\treturn mul(new RealScalar(-1));\n\t}", "public Value removeAttributes() {\n checkNotUnknown();\n Value r = new Value(this);\n r.flags &= ~ATTR;\n r.flags |= ATTR_NOTDONTDELETE | ATTR_NOTDONTENUM | ATTR_NOTREADONLY;\n return canonicalize(r);\n }", "private static Enumeration getEmptyEnum() {\r\n return Collections.enumeration(Collections.EMPTY_LIST);\r\n }", "public LoanApplicationResponse rejectLoanRequest() {\n return new LoanApplicationResponse(this, false);\n }", "Property<Boolean> getIgnoreExitValue();", "public NotSearch not()\n\t\t{\n\t\t\treturn new NotSearch();\n\t\t}", "public java.math.BigInteger getNotOkForPickupReasonCode() {\r\n return notOkForPickupReasonCode;\r\n }", "@Override\n protected ExchangeUse getExchangeUse() {return ExchangeUse.DEAD;}", "protected Permissions getExcludedPolicy(){\n\treturn stateIs(INSERVICE_STATE) ? this.excludedPermissions : null;\n }", "public BoundCodeDt<ModalityEnum> getModalityElement() { \n\t\tif (myModality == null) {\n\t\t\tmyModality = new BoundCodeDt<ModalityEnum>(ModalityEnum.VALUESET_BINDER);\n\t\t}\n\t\treturn myModality;\n\t}", "@gw.internal.gosu.parser.ExtendedProperty\n public typekey.AccidentCircumstancePEL getAccidentCircumstance();", "public ID getRestrictedDisclosureIndicator() { \r\n\t\tID retVal = this.getTypedField(21, 0);\r\n\t\treturn retVal;\r\n }", "EDataType getApparentPower();", "public ETicketEligibility getETicketEligibility1() {\n return ETicketEligibility1;\n }", "public Enum() \n { \n set(\"\");\n }", "public MenuOption getUndone() { return this.option; }", "public Value setNotDontDelete() {\n checkNotUnknown();\n if (isNotDontDelete())\n return this;\n Value r = new Value(this);\n r.flags &= ~ATTR_DONTDELETE_ANY;\n r.flags |= ATTR_NOTDONTDELETE;\n return canonicalize(r);\n }", "@Override\n\tpublic Value apprise() {\n\t\treturn null;\n\t}", "public Character getNotGoingToRenewFlag() {\n return notGoingToRenewFlag;\n }", "public String getOthers() {\n return others;\n }", "public String getOthers() {\n return others;\n }", "abstract com.amazon.kindle.kindlet.net.NetworkDisabledReason getReason();", "public Character getStolenFlag() {\n return stolenFlag;\n }", "public EnumCreatureAttribute getCreatureAttribute()\n {\n return EnumCreatureAttribute.ILLAGER;\n }", "Collection<String> getExcludeExceptions();", "public int getBonus() {\n throw new UnsupportedOperationException(\"TODO: Implement\");\n\n }", "public List<ExcludeClasses> getExcludes()\n {\n return excludes;\n }", "public Number getIdexped()\n {\n return (Number)getAttributeInternal(IDEXPED);\n }", "@com.exedio.cope.instrument.Generated // customize with @WrapperType(constructor=...) and @WrapperInitial\n\[email protected]({\"RedundantSuppression\",\"TypeParameterExtendsFinalClass\",\"UnnecessarilyQualifiedInnerClassAccess\"})\n\tWrapEnumItem()\n\t{\n\t\tthis(com.exedio.cope.SetValue.EMPTY_ARRAY);\n\t}", "public Direction getOpposite() {\n if (equals(Direction.NORTH)) return Direction.SOUTH;\n else if (equals(Direction.EAST)) return Direction.WEST;\n else if (equals(Direction.SOUTH)) return Direction.NORTH;\n else if (equals(Direction.WEST)) return Direction.EAST;\n else return null;\n }" ]
[ "0.6359047", "0.635019", "0.62335753", "0.60565585", "0.5914171", "0.5867217", "0.58427805", "0.5731876", "0.5711543", "0.5704692", "0.5704692", "0.57010514", "0.5656273", "0.5651372", "0.5639977", "0.5636513", "0.5610889", "0.55630785", "0.5545987", "0.5522247", "0.5455515", "0.5448666", "0.5403688", "0.5397633", "0.53759736", "0.537363", "0.5371398", "0.53536", "0.5345498", "0.5333293", "0.5316384", "0.53095984", "0.52753556", "0.5268891", "0.5220181", "0.52199256", "0.5213394", "0.5204879", "0.520256", "0.51772594", "0.5176387", "0.5167847", "0.51658505", "0.5157213", "0.5147153", "0.5146855", "0.5146557", "0.5145075", "0.51442", "0.5143772", "0.5142628", "0.51291484", "0.51291126", "0.5127313", "0.5126527", "0.5115714", "0.5108833", "0.51049316", "0.509991", "0.5090843", "0.50855637", "0.50817996", "0.5074406", "0.50696987", "0.50661176", "0.50517917", "0.5046216", "0.5034771", "0.50277716", "0.50255764", "0.5019193", "0.50172263", "0.5016853", "0.50163025", "0.5011589", "0.50053227", "0.49947447", "0.4989336", "0.4980572", "0.4979375", "0.49625346", "0.49611878", "0.4959096", "0.49513003", "0.4945326", "0.49450135", "0.49368122", "0.49324757", "0.49241775", "0.49233577", "0.49193022", "0.49193022", "0.4918201", "0.49176493", "0.49158356", "0.49139047", "0.49115756", "0.49100843", "0.4901733", "0.49017254", "0.4885996" ]
0.0
-1
Approach 1: sort string first, then use str.equal. Time Limit Exceeded.!!! Every time needs to sort two string.
private List<List<String>> groupAnagrams(String[] strs) { List<List<String>> ans = new ArrayList<>(); if (strs.length == 0) { return ans; } List<String> group = new ArrayList<>(); group.add(strs[0]); ans.add(group); for (int i = 1; i < strs.length; i++) { boolean flag = false; for (int j = 0; j < ans.size(); j++) { // cause time cost if (isAnagram(strs[i], ans.get(j).get(0))) { ans.get(j).add(strs[i]); flag = true; break; } } if (!flag) { List<String> newGroup = new ArrayList<>(); newGroup.add(strs[i]); ans.add(newGroup); } } return ans; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int cmp( String str1, String str2 )\n \t\t{\n \t\t\tif ( str1==null && str2==null )\n \t\t\t\treturn 0;\n \t\t\tif ( str1==null )\n \t\t\t\treturn -1;\n \t\t\tif ( str2==null )\n \t\t\t\treturn 1;\n \t\t\t\n \t\t\tint p1 = 0;\n \t\t\tint p2 = 0;\n \t\t\tfor ( ;; ) {\n \t\t\t\tif ( p1>=str1.length() ) {\n \t\t\t\t\tif ( p2>=str2.length() )\n \t\t\t\t\t\treturn 0;\n \t\t\t\t\treturn 1;\n \t\t\t\t}\n \t\t\t\tif ( p2>=str2.length() )\n \t\t\t\t\treturn -1;\n \t\t\t\tchar ch1 = str1.charAt(p1);\n \t\t\t\tchar ch2 = str2.charAt(p2);\n \t\t\t\tif ( ch1>='0' && ch1<='9' && ch2>='0' && ch2<='9' ) {\n \t\t\t\t\tint n1 = 0;\n \t\t\t\t\tint n2 = 0;\n \t\t\t\t\twhile ( ch1>='0' && ch1<='9' ) {\n \t\t\t\t\t\tp1++;\n \t\t\t\t\t\tn1 = n1 * 10 + (ch1-'0');\n \t\t\t\t\t\tif ( p1>=str1.length() )\n \t\t\t\t\t\t\tbreak;\n \t\t\t\t\t\tch1 = str1.charAt(p1);\n \t\t\t\t\t}\n \t\t\t\t\twhile ( ch2>='0' && ch2<='9' ) {\n \t\t\t\t\t\tp2++;\n \t\t\t\t\t\tn2 = n2 * 10 + (ch2-'0');\n \t\t\t\t\t\tif ( p2>=str2.length() )\n \t\t\t\t\t\t\tbreak;\n \t\t\t\t\t\tch2 = str2.charAt(p2);\n \t\t\t\t\t}\n \t\t\t\t\tint c = cmp(n1, n2);\n \t\t\t\t\tif ( c!=0 )\n \t\t\t\t\t\treturn c;\n \t\t\t\t} else {\n \t\t\t\t\tif ( ch1<ch2 )\n \t\t\t\t\t\treturn -1;\n \t\t\t\t\tif ( ch1>ch2 )\n \t\t\t\t\t\treturn 1;\n \t\t\t\t\tp1++;\n \t\t\t\t\tp2++;\n \t\t\t\t}\n \t\t\t}\n \t\t}", "protected int stringCompare(String s1,String s2)\r\n\t{\r\n\t\tint shortLength=Math.min(s1.length(), s2.length());\r\n\t\tfor(int i=0;i<shortLength;i++)\r\n\t\t{\r\n\t\t\tif(s1.charAt(i)<s2.charAt(i))\r\n\t\t\t\treturn 0;\r\n\t\t\telse if(s1.charAt(i)>s2.charAt(i))\r\n\t\t\t\treturn 1;\t\r\n\t\t}\r\n\t\t//if the first shrotLenghtTH characters of s1 and s2 are same \r\n\t\tif(s1.length()<=s2.length()) //it's a close situation. \r\n\t\t\treturn 0;\r\n\t\telse \r\n\t\t\treturn 1; \r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\n\t\tString a = \"aabbbc\", b =\"cbad\";\n\t\t// a=abc\t\t\t\tb=cab\n\t\t\n\t\t\n\t\tString a1 =\"\" , b1 = \"\"; // to store all the non duplicated values from a\n\t\t\n\t\tfor(int i=0; i<a.length();i++) {\n\t\t\tif(!a1.contains(a.substring(i,i+1)))\n\t\t\t\ta1 += a.substring(i,i+1);\n\t\t}\n\t\t\n\t\tfor(int i=0; i<b.length();i++) {\n\t\t\tif(!b1.contains(b.substring(i,i+1)))\n\t\t\t\tb1 += b.substring(i,i+1);\n\t\t}\n\t\t\t\t\n\t\tchar[] ch1 = a1.toCharArray();\n\t\tSystem.out.println(Arrays.toString(ch1));\n\t\t\n\t\tchar[] ch2 = b1.toCharArray();\n\t\tSystem.out.println(Arrays.toString(ch2));\n\t\t\n\t\tArrays.sort(ch1);\n\t\tArrays.sort(ch2);\n\t\t\n\t\tSystem.out.println(\"=====================================================\");\n\t\t\n\t\tSystem.out.println(Arrays.toString(ch1));\n\t\tSystem.out.println(Arrays.toString(ch2));\n\t\t\n\t\tString str1 = Arrays.toString(ch1);\n\t\tString str2 = Arrays.toString(ch2);\n\t\t\n\t\tif(str1.contentEquals(str2)) {\n\t\t\tSystem.out.println(\"true, they build out of same letters\");\n\t\t}else { \n\t\t\tSystem.out.println(\"fasle, there is something different\");\n\t\t}\n\t\t\n\n\t\t\n\t\t// SHORTER SOLUTION !!!!!!!!!!!!!!!!!!!!\n\t\t\n//\t\tString Str1 = \"aaaabbbcc\", Str2 = \"cccaabbb\";\n//\t\t\n//\t\tStr1 = new TreeSet<String>( Arrays.asList(Str1.split(\"\"))).toString();\n//\t\tStr2 = new TreeSet<String>( Arrays.asList(Str2.split(\"\"))).toString();\n//\t\tSystem.out.println(Str1.equals(Str2));\n//\t\t\n//\t\t\n\t\t\n}", "@Test\r\n public void test8() {\r\n String s1 = \"Abc\";\r\n String s2 = \"abc\";\r\n String s3 = \"Abcd\";\r\n System.out.println(s1.compareTo(s2));\r\n System.out.println(s1.compareTo(s3));\r\n }", "public static void main(String[] args) {\n String str1 = \"listen\";\n String str2 = \"silent\";\n for (int i = 0; i < str1.length(); i++) {\n str2 = str2.replaceFirst(\"\" + str1.charAt(i), \"\");\n }\n System.out.println(str2.isEmpty() ? \"Anagram\" : \"NOT Anagram\");\n\n/*\n //Approach Two:\n String str1 = \"listen\";\n String str2 = \"silent\";\n String str11 = \"\";\n String str22 = \"\";\n char[] ch1 = str1.toCharArray();\n char[] ch2 = str2.toCharArray();\n Arrays.sort(ch1);\n Arrays.sort(ch2);\n for (char each:ch1) {\n str11+=each;\n }\n for (char each:ch2) {\n str22+=each;\n }\n System.out.println(str11.equalsTo(str22)? \"Anagram\" : \"NOT Anagram\");\n\n */\n/*\n\n //Approach Three:\n public static boolean Same(String str12, String str2) {\n str1 = new TreeSet<String>(Arrays.asList( str1.split(\"\") ) ).toString( );\n str2 = new TreeSet<String>(Arrays.asList( str2.split(\"\") ) ).toString( );\n return str1.equals(str2); }\n*/\n }", "static int compare(String a, String b) {\n if (a == null) a = \"\";\n if (b == null) b = \"\";\n\n int i = 0;\n while (i < a.length() && i < b.length()) {\n char x = a.charAt(i), y = b.charAt(i);\n if (x != y) return x - y;\n i++;\n }\n return a.length() - b.length();\n }", "@Override\n\t\tpublic int compare(String o1, String o2) {\n\t\t\treturn sort(o1).compareTo(sort(o2));\n\t\t}", "@Override\r\n\tpublic int compare(String o1, String o2) {\n\t\treturn sortChars(o1).compareTo(sortChars(o2));\r\n\t}", "boolean isUniqueUsingSorting(String str) {\n\t\tchar[] array = str.toCharArray();\n\t\t// Sorting the char array take NlogN time\n\t\tArrays.sort(array);\n\t\tfor (int i = 0; i < array.length - 1; i++) {\n\t\t\t// If adjacent characters are equal, return false\n\t\t\tif (array[i] == array[i + 1]) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public static boolean checkPermutaionSort(String s1, String s2) {\n if (s1.length() != s2.length()) return false;\n\n char c1[] = s1.toCharArray();\n char c2[] = s2.toCharArray();\n Arrays.sort(c1);\n Arrays.sort(c2);\n for (int i = 0; i < s1.length(); ++i) {\n if (c1[i] != c2[i]) return false;\n }\n\n return true;\n }", "@Override \n\tpublic int compare(String str1, String str2) {\n\t\treturn str2.compareTo(str1);\n\t}", "@Override\n\tpublic int compare(String s1, String s2) {\n\t\t// if s1 = s2 returns 0\n\t\t// if s1 > s2 returns 1\n\t\t// if s1 < s2 returns -1\n\n\t\tint len1 = s1.length();\n\t\tint len2 = s2.length();\n\n\t\tif (len1 > len2) {\n\t\t\treturn 1;\n\t\t} else if (len1 < len2) {\n\t\t\treturn -1;\n\t\t}\n\t\treturn 0;\n\t}", "private static int compare(String st1, String st2) {\n if (st1.length() < st2.length()) {\n return -1;\n } else {\n return st1.compareTo(st2);\n }\n }", "public void testCompareStrings() {\n\t\tString one = \"Hello\";\n\t\tString two = \"in the house\";\n\t\t//Gro▀schreibung vor Kleinschreibung\n\t\tassertTrue(comp.compareStrings(one, two) < 0);\n\t\tassertEquals(0, comp.compareStrings(one, one));\n\t\tassertTrue(comp.compareStrings(two, one) > 0);\n\t}", "@Override\n public int compare(String str1, String str2) {\n String digitRegex = \".*\\\\d+.*\";\n boolean hasDigits1 = str1.matches(digitRegex);\n boolean hasDigits2 = str2.matches(digitRegex);\n int result = -Boolean.valueOf(hasDigits1).compareTo(hasDigits2);\n\n if (result == 0) {\n // Secondary order: length, descending\n result = -Integer.valueOf(str1.length()).compareTo(str2.length());\n }\n\n return result;\n }", "@Override\n public int compare(String s1, String s2) {\n return s1.compareTo(s2);\n\n }", "private static boolean checkPermutationSorting(String s1, String s2) {\n // Strings are of unequal length. Cannot be permutations.\n if (s1.length() != s2.length()) {\n return false;\n }\n\n // Since strings are immutable, we wrote a simple sort function that returns the sorted string.\n String sortedS1 = sort(s1);\n String sortedS2 = sort(s2);\n\n return sortedS1.equals(sortedS2);\n }", "@Override\n public int compare(String lhs, String rhs) {\n return lhs.compareTo(rhs);\n }", "@Override\r\n\t\t\tpublic int compare(String o1, String o2) {\n\t\t\t\tString[] values = o1.split(\";\");\r\n\t\t\t\t//Take the second string and do the same thing\r\n\t\t\t\tString[] values2 = o2.split(\";\");\r\n\t\t\t\t//Compare strings according to their integer values\r\n\t\t\t\treturn Integer.valueOf(values[0].replace(\"\\\"\", \"\")).compareTo(Integer.valueOf(values2[0].replace(\"\\\"\", \"\")));\r\n\t\t\t}", "private static String sortString(String str) {\n char[] charArray = str.toCharArray();\n java.util.Arrays.sort(charArray);\n return new String(charArray);\n }", "public boolean compare_same(String x, String y) {\n\t\tint fuzzy = 0;\n\t\tif (x.length() != y.length()) return false;\n\t\tfor (int i = 0, j = 0; i<x.length() && j<y.length();) {\n\t\t\tif (i>0 && x.charAt(i-1)=='_' && '0'<=x.charAt(i) && x.charAt(i)<='9') {\n\t\t\t\twhile (i<x.length() && '0'<=x.charAt(i) && x.charAt(i)<='9') i++;\n\t\t\t}\n\t\t\tif (j>0 && y.charAt(j-1)=='_' && '0'<=y.charAt(j) && y.charAt(j)<='9') {\n\t\t\t\twhile (j<y.length() && '0'<=y.charAt(j) && y.charAt(j)<='9') j++;\n\t\t\t}\n\t\t\tif (i<x.length() && j<y.length() && x.charAt(i) != y.charAt(j)) {\t\t\t\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\ti++; j++;\n\t\t}\n\t\treturn true;\n\t}", "public static boolean b(String str, String str2) {\n int i2 = 0;\n while (i2 < str2.length()) {\n try {\n if (str.charAt(i2) > str2.charAt(i2)) {\n return true;\n }\n if (str.charAt(i2) < str2.charAt(i2)) {\n return false;\n }\n i2++;\n } catch (Throwable unused) {\n }\n }\n return false;\n }", "public int String_Compare(String A, String B) {\n\t\t\n\t\tint shorter_length;\n\t\tif(A.length() >= B.length()) {\n\t\t\tshorter_length=B.length();\n\t\t}\n\t\telse {\n\t\t\tshorter_length=A.length();\n\t\t}\n\t\t\n\n\t\t\n\t\t\n\t\tint i = 0;\n\t\tint A_char;\n\t\tint B_char;\n\t\t\n\t\twhile(i < shorter_length ) {\n\t\t\tA_char = (int)A.charAt(i);\n\t\t\tB_char = (int)B.charAt(i);\n\n\t\t\tif(A_char != B_char) {\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\ti+=1;\n\t\t}\n\t\treturn 0;\n\t}", "public static void main(String[] args) {\r\n String s = \"test\";\r\n String s1 = \"etst\";\r\n boolean result = sort(s, s1);\r\n System.out.println(result);\r\n }", "private static int strCompare(char[] paramArrayOfChar1, int paramInt1, int paramInt2, char[] paramArrayOfChar2, int paramInt3, int paramInt4, boolean paramBoolean)\n/* */ {\n/* 2157 */ int i = paramInt1;\n/* 2158 */ int j = paramInt3;\n/* */ \n/* */ \n/* */ \n/* 2162 */ int i4 = paramInt2 - paramInt1;\n/* 2163 */ int i5 = paramInt4 - paramInt3;\n/* */ \n/* */ int i6;\n/* */ \n/* 2167 */ if (i4 < i5) {\n/* 2168 */ i6 = -1;\n/* 2169 */ k = i + i4;\n/* 2170 */ } else if (i4 == i5) {\n/* 2171 */ i6 = 0;\n/* 2172 */ k = i + i4;\n/* */ } else {\n/* 2174 */ i6 = 1;\n/* 2175 */ k = i + i5;\n/* */ }\n/* */ \n/* 2178 */ if (paramArrayOfChar1 == paramArrayOfChar2) {\n/* 2179 */ return i6;\n/* */ }\n/* */ int n;\n/* */ int i2;\n/* */ for (;;) {\n/* 2184 */ if (paramInt1 == k) {\n/* 2185 */ return i6;\n/* */ }\n/* */ \n/* 2188 */ n = paramArrayOfChar1[paramInt1];\n/* 2189 */ i2 = paramArrayOfChar2[paramInt3];\n/* 2190 */ if (n != i2) {\n/* */ break;\n/* */ }\n/* 2193 */ paramInt1++;\n/* 2194 */ paramInt3++;\n/* */ }\n/* */ \n/* */ \n/* 2198 */ int k = i + i4;\n/* 2199 */ int m = j + i5;\n/* */ \n/* */ int i1;\n/* */ int i3;\n/* 2203 */ if ((n >= 55296) && (i2 >= 55296) && (paramBoolean))\n/* */ {\n/* */ \n/* 2206 */ if ((n > 56319) || (paramInt1 + 1 == k) || \n/* */ \n/* 2208 */ (!UTF16.isTrailSurrogate(paramArrayOfChar1[(paramInt1 + 1)])))\n/* */ {\n/* 2210 */ if ((!UTF16.isTrailSurrogate(n)) || (i == paramInt1) || \n/* 2211 */ (!UTF16.isLeadSurrogate(paramArrayOfChar1[(paramInt1 - 1)])))\n/* */ {\n/* */ \n/* */ \n/* */ \n/* */ \n/* 2217 */ i1 = (char)(n - 10240);\n/* */ }\n/* */ }\n/* 2220 */ if ((i2 > 56319) || (paramInt3 + 1 == m) || \n/* */ \n/* 2222 */ (!UTF16.isTrailSurrogate(paramArrayOfChar2[(paramInt3 + 1)])))\n/* */ {\n/* 2224 */ if ((!UTF16.isTrailSurrogate(i2)) || (j == paramInt3) || \n/* 2225 */ (!UTF16.isLeadSurrogate(paramArrayOfChar2[(paramInt3 - 1)])))\n/* */ {\n/* */ \n/* */ \n/* */ \n/* */ \n/* 2231 */ i3 = (char)(i2 - 10240);\n/* */ }\n/* */ }\n/* */ }\n/* */ \n/* 2236 */ return i1 - i3;\n/* */ }", "public static void main(String[] args) {\n\t\n\tString a = \"aabbbc\", b= \"cabbbac\";\n\t// a = abc, b=cab\n\t//we will remove all dublicated values from \"a\"\n\tString a1 = \"\"; //store all the non duplicated values from \"a\"\n\t\n\tfor (int j=0; j<a.length();j++) //this method is with nested loop\n\tfor (int i=0; i<a.length();i++) {\n\t\tif (!a1.contains(a.substring(j, j+1))) {\n\t\t\ta1 += a.substring(j, j+1);\n\t\t}\n\t\t\t\n\t}\n\tSystem.out.println(a1);\n\t//we will remove all duplicated values from \"b\"\n\tString b1 = \"\"; //store all the non duplicated values from \"b\"\n\tfor(int i=0; i<b.length();i++) { //this is with simple loop\n\t\tif(!b1.contains(b.substring(i, i+1))) {\n\t\t\t // \"\"+b.charAt(i)\n\t\t\tb1 += b.substring(i, i+1);\n\t\t\t// \"\"+b.charAt(i);\n\t\t}\n\t}\n\tSystem.out.println(b1);\n\t\n\t\n\t//a1 = \"acb\", b1 = \"cab\"\n\tchar[] ch1 = a1.toCharArray();\n\tSystem.out.println(Arrays.toString(ch1));\n\t\n\tchar[] ch2 = b1.toCharArray();\n\tSystem.out.println(Arrays.toString(ch2));\n\t\n\tArrays.sort(ch1);\n\tArrays.sort(ch2);\n\t\n\tSystem.out.println(\"========================\");\n\tSystem.out.println(Arrays.toString(ch1));\n\tSystem.out.println(Arrays.toString(ch2));\n\t\n\t\n\tString str1 = Arrays.toString(ch1);\n\tString str2 = Arrays.toString(ch2);\n\t\n\tif(str1.equals(str2)) {\n\t\tSystem.out.println(\"true, they are same letters\");\n\t}else {\n\t\tSystem.out.println(\"false, they are contain different letters\");\n\t}\n\t\n\t\n\t// solution 2:\n\t\t\t String Str1 = \"cccccaaaabbbbccc\" , Str2 = \"cccaaabbb\";\n\t\t\t \n\t\t\t Str1 = new TreeSet<String>( Arrays.asList( Str1.split(\"\"))).toString();\n\t\t\t Str2 = new TreeSet<String>( Arrays.asList( Str2.split(\"\"))).toString();\n\t\t\t \n\t\t\t System.out.println(Str1.equals(Str2));\n\t\t\t\t \n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n}", "@Override\n\t\tpublic int compare(String o1, String o2) {\n\t\t\treturn o1.compareTo(o2);\n\t\t}", "@Override\n public int compare(String s, String t1) {\n return t1.charAt(t1.length()-1)-s.charAt(s.length()-1);\n// return s.charAt(4);\n\n }", "private static int cmpNotNullFirst( String str1, String str2 )\n \t\t{\n \t\t\tif ( str1==null && str2==null )\n \t\t\t\treturn 0;\n \t\t\tif ( str1==null )\n \t\t\t\treturn 1;\n \t\t\tif ( str2==null )\n \t\t\t\treturn -1;\n \t\t\treturn cmp(str1, str2);\n \t\t}", "private int compare(String str1, String str2) {\n int result;\n\n if (str1 == null) {\n result = (str2 == null) ? 0 : -1;\n\n } else if (str2 == null) {\n result = 1;\n\n } else {\n result = str1.compareTo( str2 );\n }\n return result;\n }", "@Override\npublic int compare(String first, String second) {\n\tint ans= Integer.compare(first.length(), second.length());\n\t//\n\t\n\t\n\t\n\t\n\treturn ans;\n\t//\n\t\n\t\n}", "@Override\r\n\tpublic int compare(String str0, String str1) {\n\t\tString[] tempStr0 = str0.split(\",\", 2);\r\n\t\tString[] tempStr1 = str1.split(\",\", 2);\r\n\r\n\t\t// Hilbert code comparison\r\n\t\tint hilbertComparedValue = _hibertComp.compare(tempStr0[0], tempStr1[0]);\r\n\r\n\t\tif (hilbertComparedValue != 0) \r\n\t\t{\r\n\t\t\treturn hilbertComparedValue;\r\n\t\t}\r\n\t\telse \r\n\t\t{\r\n\t\t\treturn tempStr0[1].compareTo(tempStr1[1]);\r\n\t\t}\t\t\r\n\t}", "@Override\n public int compare(String o1, String o2) {\n int res = String.CASE_INSENSITIVE_ORDER.compare(o1, o2);\n if (res == 0) {\n res = o1.compareTo(o2);\n }\n return res;\n }", "@Override\n public int compare(String left, String right) {\n return left.compareTo(right);\n }", "@Override\n\tpublic int compare(String o1, String o2) {\n\t\tif (o1.length() > o2.length()) {\n\t\t\treturn 1;\n\t\t} else if (o1.length() < o2.length()) {\n\t\t\treturn -1;\n\t\t} else {\n\t\t\tif (o1.compareTo(o2) > 0) {\n\t\t\t\treturn 1;\n\t\t\t} else {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\tpublic int compare(String s1, String s2) {\n\t\treturn s1.length() - s2.length();\r\n\t}", "public int compare(String str1, String str2) {\r\n int num1 = Integer.parseInt(str1.substring(4, str1.length()));\r\n int num2 = Integer.parseInt(str2.substring(4, str2.length()));\r\n\r\n return num1 - num2;\r\n\r\n }", "boolean isPermutationSorting(String s1, String s2) {\n\t\tif(s1.length() != s2.length()) return false;\n\t\t\n\t\tchar[] s1Arr = s1.toCharArray();\n\t\tchar[] s2Arr = s2.toCharArray();\n\t\tjava.util.Arrays.sort(s1Arr);\n\t\tjava.util.Arrays.sort(s2Arr);\n\n\t\tString newS1 = new String(s1Arr);\n\t\tString newS2 = new String(s2Arr);\n\t\tif(newS1.equals(newS2)) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "private boolean areCorrectlyOrdered( int i0, int i1 )\n {\n int n = commonLength( i0, i1 );\n \tif( text[i0+n] == STOP ){\n \t // The sortest string is first, this is as it should be.\n \t return true;\n \t}\n \tif( text[i1+n] == STOP ){\n \t // The sortest string is last, this is not good.\n \t return false;\n \t}\n \treturn (text[i0+n]<text[i1+n]);\n }", "public int compare(String o1, String o2) {\n\t\t\t\t\t\tif (o1.compareTo(o2) > 0) {\n\t\t\t\t\t\t\treturn 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn 0;\n\t\t\t\t\t}", "public boolean isPermutationSorted(String str1, String str2) {\n\n\t\tif (str1.length() != str2.length()) {\n\t\t\treturn false;\n\t\t}\n\n\t\tchar[] str1Chars = str1.toCharArray();\n\t\tchar[] str2Chars = str2.toCharArray();\n\n\t\tArrays.sort(str1Chars);\n\t\tArrays.sort(str2Chars);\n\t\tif (String.valueOf(str1Chars).equals(String.valueOf(str2Chars)))\n\t\t\treturn true;\n\t\telse\n\t\t\treturn true;\n\t}", "@Override\n public int compare(String o1, String o2) {\n return o1.length() - o2.length();\n }", "public void stringSelectionSort() {\n int nextMin;\n\n for (int i = 0; i < StringList.length - 1; i++) {\n nextMin = i;\n for (int j = i + 1; j < StringList.length; j++) {\n if (StringList[j].compareTo(StringList[nextMin]) < 0)\n nextMin = j;\n }\n if (nextMin != i)\n swapSelectionStrings(StringList, i, nextMin);\n }\n }", "@Override\r\n\t\t\tpublic int compare(String s1, String s2) {\n\t\t\t\treturn (s1.length() - s2.length());\r\n\t\t\t}", "@Override\n public int compare(String str1, String str2) {\n int count1 = mSSIDMatchCounts.containsKey(str1) ? mSSIDMatchCounts.get(str1) : 0;\n int count2 = mSSIDMatchCounts.containsKey(str2) ? mSSIDMatchCounts.get(str2) : 0;\n\n\n int result = -Integer.valueOf(count1).compareTo(count2);\n if (result == 0) {\n // Secondary order: lexicographical, ascending\n result = str1.compareTo(str2);\n }\n return result;\n }", "@Override\n\t\tpublic int compare(String string1, String string2) {\n\t\t\treturn string2.length() - string1.length();\n\t\t}", "@Override\n\t\tpublic int compare(String string1, String string2) {\n\t\t\treturn string1.length() - string2.length();\n\t\t}", "public boolean compareStrings(String A, String B) {\n if(A.length()<B.length())\n \treturn false;\n char[] a=A.toCharArray();\n char[] b=B.toCharArray();\n ArrayList<Character> aa=new ArrayList<>();\n ArrayList<Character> bb=new ArrayList<>();\n for(int i=0;i<a.length;i++){\n \taa.add(a[i]);\n }\n for(int i=0;i<b.length;i++){\n \tbb.add(b[i]);\n }\n while(bb.size()!=0){\n \tint flag=0;\n \tfor(int i=0;i<aa.size();i++){\n \t\tif(bb.get(0).equals(aa.get(i))){\n \t\t\tbb.remove(0);\n \t\t\taa.remove(i);\n \t\t\tSystem.out.println(bb);\n \t\t\tSystem.out.println(aa);\n \t\t\tflag=1;\n \t\t\tbreak;\n \t\t}\n \t}\n \tif (flag==0)\n \t\treturn false;\n }\n return true; \n }", "public int compare(String str, String str2) {\n return str.compareTo(str2);\n }", "@Override\n public int compare(String left, String right) {\n int result = 0;\n int length = left.length() > right.length()\n ? right.length() : left.length();\n for (int i = 0; i < length; i++) {\n result = Character.compare(left.charAt(i), right.charAt(i));\n if (result != 0) {\n break;\n }\n }\n if (result == 0) {\n result = left.length() - right.length();\n }\n return result;\n\n }", "private static boolean permutation(String string, String string2) {\n\t\tif (string.length() != string2.length()) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn sort(string).equals(sort(string2));\r\n\t}", "@Override\n public int compare(String o1, String o2) {\n return Integer.compare(o2.length(), o1.length());\n }", "@Override\n\t\t\t\tpublic int compare(String o1, String o2) {\n\t\t\t\t\tif(o1.length()-o2.length() != 0) {\n\t\t\t\t\t\treturn o1.length()-o2.length();\n\t\t\t\t\t}else {\n\t\t\t\t\t\treturn o1.compareTo(o2);\n\t\t\t\t\t}\n\t\t\t\t}", "public boolean compare2StringsIgnoringCasses(String s1, String s2)\r\n {\r\n String a=s1.toLowerCase();\r\n String b=s2.toLowerCase();\r\n if(a.length()!= b.length())\r\n {\r\n return false;\r\n }\r\n else\r\n {\r\n for(int i=0; i<a.length(); i++)\r\n {\r\n if(!comparet2Chars(a.charAt(i),b.charAt(i)))\r\n {\r\n return false;\r\n }\r\n }\r\n }\r\n return true;\r\n }", "public static void main(String[] args) {\n String str1=\"abc\";\r\n String s=new String(\"abc\");\r\n //Integer i=new Integer(110);\r\n //Integer j=new Integer(120);\r\n Sortstring sortstring=new Sortstring();\r\n Scanner sc = new Scanner(System.in);\r\n // sortstring.s=sc.next();\r\n //char[] string =sortstring.s.toCharArray();\r\n // Arrays.sort(string);\r\n System.out.println(Objects.equals(s,str1));\r\n //System.out.println(str1.equals(str));\r\n //System.out.println(i.equals(j));\r\n //System.out.println(str.equals(s));\r\n // System.out.println(Arrays.toString(string));\r\n // System.out.println(String.valueOf(string));\r\n //System.out.println(Objects.equals());\r\n\r\n }", "@Override\n\tpublic int compare(String s1, String s2) {\n\t\t// compareTo is a method of the comparaiable interface\n\t\treturn s1.compareTo(s2);\n\t}", "private static boolean equalityTest4(String a, String b)\n {\n if(a.length() == 0 && b.length() == 0)\n {\n return true;\n }\n else\n {\n if(a.length() == 0 || b.length() == 0)\n {\n return false;\n }\n if(a.charAt(0) == b.charAt(0))\n {\n return equalityTest4(a.substring(1), b.substring(1));\n }\n else\n {\n return false;\n }\n }\n }", "@Override\n public int compare(String s1, String s2) {\n String soString1 = s1.replaceAll(\"[\\\\d.]\",\"\");\n String soString2 = s2.replaceAll(\"[\\\\d.]\",\"\");\n if (soString1.equals(soString2)){\n Integer soNumero1 = Integer.parseInt(s1.replaceAll(\"\\\\D\", \"\"));\n Integer soNumero2 = Integer.parseInt(s2.replaceAll(\"\\\\D\", \"\"));\n return soNumero1.compareTo(soNumero2) * this.reverse;\n }\n return soString1.compareTo(soString2) * this.reverse;\n }", "@Override\n public int compare(String o1, String o2) {\n return Integer.compare(o1.length(), o2.length());\n }", "public static void sortStringsDictionary( ArrayList<String> lst )\n {\n PredicateStringPair p = (a, b) -> {\n String[] newA = a.split(\"\");\n String[] newB = b.split(\"\");\n int min;\n boolean mismatch = false;\n String adif = \"\";\n String bdif = \"\";\n if (a.length() < b.length()) {\n min = a.length();\n } else {\n min = b.length();\n }\n\n for (int i = 0; i < min; i++) {\n if (!newA[i].equals(newB[i])) {\n mismatch = true;\n adif = newA[i];\n bdif = newB[i];\n break;\n\n }\n }\n if (mismatch == false) {\n if(a.length() < b.length()) {\n return true;\n }\n else{\n return false;\n }\n }\n else{\n if(adif.matches(\"[a-zA-Z]\") && !bdif.matches(\"[a-zA-Z]\")) {\n return true;\n }\n else if (bdif.matches(\"[a-zA-Z]\") && !adif.matches(\"[a-zA-Z]\")) {\n return false;\n }\n else if (adif.matches(\"[a-zA-Z]\") && bdif.matches(\"[a-zA-Z]\")){\n //Automates the creation of the custom alphabetical ordering\n ArrayList<String> alph = new ArrayList<String>();\n for (int i = 0; i < 26; i++){\n alph.add(Character.toString(97 + i));\n alph.add(Character.toString(65 + i));\n }\n if (alph.indexOf(adif) < alph.indexOf(bdif)){\n return true;\n }\n else {\n return false;\n }\n }\n else {\n if (adif.compareTo(bdif) > 1) {\n return false;\n }\n else{\n return true;\n }\n\n\n }\n\n }\n\n };\n sortStrings(lst, p);\n }", "public static boolean isAnagramFuncApproach(String str1, String str2) {\n List<String> list1 = str1.chars()\n .sorted()\n .mapToObj(c -> Character.valueOf((char) c))\n .map(object -> Objects.toString(object, null))\n .collect(Collectors.toList());\n\n List<String> list2 = str2.chars()\n .sorted()\n .mapToObj(c -> Character.valueOf((char) c))\n .map(object -> Objects.toString(object, null))\n .collect(Collectors.toList());\n\n return list1.equals(list2);\n }", "public static boolean permuteCompare(String strA, String strB) {\n\t\tif(strA == null || strB == null)\n\t\t\treturn false;\n\t\t\n\t\t/*\n\t\t * Step 2: Check if the length of both strings is not equal, then they will not match\n\t\t */\n\t\tif(strA.length() != strB.length()) \n\t\t\treturn false;\n\t\t\n\t\t/*\n\t\t * Step 3: Convert both strings to ArrayList (split method looks like not a elegant way, but works)\n\t\t */\n\t\tList<String> strAList = new ArrayList<String>(Arrays.asList(strA.split(\"\")));\n\t\tList<String> strBList = new ArrayList<String>(Arrays.asList(strB.split(\"\")));\n\t\t\n\t\t/*\n\t\t * Step 4: Sort both ArrayList using Collections\n\t\t */\n\t\tCollections.sort(strAList);\n\t\tCollections.sort(strBList);\n\t\t\n\t\t/*\n\t\t * Step 5: Compare them using equals that will compare size and each element value (Ref: https://docs.oracle.com/javase/8/docs/api/java/util/AbstractList.html#equals-java.lang.Object-)\n\t\t */\n\t\tif(!strAList.equals(strBList))\n\t\t\treturn false;\n\n\t\treturn true;\n\t}", "@Override\n public int compare(String o1, String o2) {\n int d1 = countChars(o1, '.');\n int d2 = countChars(o2, '.');\n if (d1 != d2) {\n return d1 > d2 ? 1 : -1;\n }\n\n // The less the stars the better: postgresql.org is more specific than *.*.postgresql.org\n int s1 = countChars(o1, '*');\n int s2 = countChars(o2, '*');\n if (s1 != s2) {\n return s1 < s2 ? 1 : -1;\n }\n\n // The longer the better: postgresql.org is more specific than sql.org\n int l1 = o1.length();\n int l2 = o2.length();\n if (l1 != l2) {\n return l1 > l2 ? 1 : -1;\n }\n\n return 0;\n }", "public static int compareString(String firstString, String secondString) {\n if (isEmptyString(firstString) || isEmptyString(secondString)) {\n if (isEmptyString(firstString) && isEmptyString(secondString)) {\n return 0;\n } else if (isEmptyString(firstString)) {\n return 1;\n } else if (isEmptyString(secondString)) {\n return -1;\n }\n }\n\n char charOfFirst = firstString.charAt(0);\n char charOfSecond = secondString.charAt(0);\n int result = compareChar(charOfFirst, charOfSecond);\n\n if (result == 0) {\n return compareString(firstString.substring(1), secondString.substring(1));\n }\n\n return result;\n }", "int compareStrings(String s1, String s2) {\n if (s1 == null) {\n return s2 == null ? 0 : -1;\n } else if (caseInsensitive) {\n return s1.compareToIgnoreCase(s2);\n } else {\n return s1.compareTo(s2);\n }\n }", "public static void sortStringsNumAs( ArrayList<String> lst )\n {\n PredicateStringPair p = (a, b) -> {\n String[] A = a.split(\"\");\n String[] B = b.split(\"\");\n int acount = 0;\n int bcount = 0;\n for (String i : A){\n if (i == \"a\" || i == \"A\"){\n acount += 1;\n }\n }\n for (String i : B){\n if (i == \"a\" || i == \"A\"){\n bcount += 1;\n }\n }\n\n if (acount > bcount) return true;\n else return false;\n };\n sortStrings(lst, p);\n \n }", "@Override\n public int compare(Character char1, Character char2) {\n if(char1.charValue() == char2.charValue()){\n return 0;\n }\n int char1Index = findIndex(char1);\n int char2Index = findIndex(char2);\n if(char1Index >= 0 && char2Index >= 0){\n return char1Index < char2Index ? -1: 1;\n }\n // char1 exists in S and char2 doesn't,then char1 should come first.\n if(char1Index >=0 && char2Index == -1){\n return -1;\n }\n else if(char1Index == -1 && char2Index >=0){\n return 1;\n }\n else{\n return 0;\n }\n }", "public static void main(String[] args) {\n\t\tString s1 = \"java\";\n\t\tString s2 = \"Java\";\n\t\t\n\t\tSystem.out.println(s1.compareTo(s2));\n\t\tSystem.out.println(s2.compareTo(s1));\n\t\t\n\t\tString[] sArr = {\"grape\", \"melon\", \"apple\", \"orange\"};\n\t\tfor (String s : sArr){\n\t\t\tSystem.out.print(s+\"\\t\");\n\t\t}System.out.println();\n\t\t\n\t\tString[] copyArr = new String[sArr.length];\n\t\tSystem.arraycopy(sArr, 0, copyArr, 0, sArr.length);\n\t\t\n\t\tfor(int i=0; i<copyArr.length;i++){\n\t\t\tfor(int j=i+1; j<copyArr.length;j++){\n\t\t\t\tif (copyArr[i].compareTo(copyArr[j])>0) {\n\t\t\t\t\tString tmp = copyArr[i];\n\t\t\t\t\tcopyArr[i] = copyArr[j];\n\t\t\t\t\tcopyArr[j] = tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (String s : copyArr){\n\t\t\tSystem.out.print(s+\"\\t\");\n\t\t}System.out.println();\n\t}", "static String morganAndString(String a, String b) {\n\n\t\tString result = \"\";\n\n\t\tint pointerA = 0, pointerB = 0;\n\n\t\touter:\n\t\t\twhile ( pointerA < a.length() || pointerB < b.length()){\n\t\t\t\tif ( pointerA == a.length()) {\n\t\t\t\t\tresult = result + b.charAt(pointerB++);\n\t\t\t\t}\n\t\t\t\telse if ( pointerB == b.length()) {\n\t\t\t\t\tresult = result + a.charAt(pointerA++);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tchar ca = a.charAt ( pointerA );\n\t\t\t\t\tchar cb = b.charAt ( pointerB );\n\n\t\t\t\t\tif ( ca < cb ) {\n\t\t\t\t\t\tresult = result + ca;\n\t\t\t\t\t\tpointerA++;\n\t\t\t\t\t}\n\t\t\t\t\telse if ( cb < ca ){\n\t\t\t\t\t\tresult = result + cb;\n\t\t\t\t\t\tpointerB++;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t// Find the smallest successor.\n\t\t\t\t\t\tint extraPointer = 1;\n\t\t\t\t\t\twhile ( pointerA + extraPointer < a.length() && pointerB + extraPointer < b.length()){\n\t\t\t\t\t\t\tchar cEa = a.charAt ( pointerA + extraPointer);\n\t\t\t\t\t\t\tchar cEb = b.charAt ( pointerB + extraPointer);\n\n\t\t\t\t\t\t\tif ( cEa < cEb ){\n\t\t\t\t\t\t\t\tresult = result + cEa;\n\t\t\t\t\t\t\t\tpointerA++;\n\t\t\t\t\t\t\t\tcontinue outer;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if ( cEb < cEa ){\n\t\t\t\t\t\t\t\tresult = result + cEb;\n\n\n\t\t\t\t\t\t\t\tpointerB++;\n\t\t\t\t\t\t\t\tcontinue outer;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\textraPointer++;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// We got to the point in which both are the same.\n\t\t\t\t\t\tif ( pointerA + extraPointer == a.length() && pointerB + extraPointer == b.length()){\n\t\t\t\t\t\t\t// Both are equal. It doesn't matter which one I take it from.\n\t\t\t\t\t\t\tresult = result + ca;\n\t\t\t\t\t\t\tpointerA++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tif ( pointerA + extraPointer == a.length() ){\n\t\t\t\t\t\t\t\t// Compare the current one of B with the next letter.\n\t\t\t\t\t\t\t\t// If next letter is smaller than current one, cut from here.\n\t\t\t\t\t\t\t\t// else, cut from A.\n\t\t\t\t\t\t\t\tif ( b.charAt ( pointerB + extraPointer ) > b.charAt ( pointerB + extraPointer + 1)){\n\t\t\t\t\t\t\t\t\tresult = result + cb;\n\t\t\t\t\t\t\t\t\tpointerB++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\tresult = result + ca;\n\t\t\t\t\t\t\t\t\tpointerA++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t// The opposite.\n\t\t\t\t\t\t\t\t// Compare the current one of B with the next letter.\n\t\t\t\t\t\t\t\t// If next letter is smaller than current one, cut from here.\n\t\t\t\t\t\t\t\t// else, cut from A.\n\t\t\t\t\t\t\t\tif ( a.charAt ( pointerA + extraPointer ) > a.charAt ( pointerA + extraPointer + 1)){\n\t\t\t\t\t\t\t\t\tresult = result + ca;\n\t\t\t\t\t\t\t\t\tpointerA++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\tresult = result + cb;\n\t\t\t\t\t\t\t\t\tpointerB++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\treturn result;\n\n\n\t}", "@Override\r\n\t public int compare(String o1, String o2) { //compare the two Strings\r\n\t\tif (o1 == null || o2 == null) { //if one of them is 0\r\n\t\t return 0;\r\n\t\t}\r\n\t\tBigDecimal o1bd = new BigDecimal(o1); //creating a BigDecimal variable, value equals String o1\r\n\t\tBigDecimal o2bd = new BigDecimal(o2);\r\n\t\treturn o2bd.compareTo(o1bd); \r\n\t }", "@Override\n public int compare(String s1, String s2) {\n return -s1.compareTo(s2);\n\n }", "public static boolean AdditionalSolution(String str)\r\n\t{\r\n\t\t\r\n\t\t//Precondition if null, length <0 // Assuming the String Contains ASCII characters\r\n\t\tif(str == null || str.length()<0||str.length()>128)\r\n\t\t\treturn false;\r\n\t\t\r\n\t\t//converting into character array\r\n\t\tchar[] res = str.toCharArray();\r\n\t\t\r\n\t\t//Sort using time sort, modified TimeSort in 1.7 ,O(n)< x < O(nlgn)\r\n\t\tArrays.sort(res);\r\n\t\t\r\n\t\tfor(int i =0;i<res.length-1;i++)\t\r\n\t\t{\r\n\t\t\t//Compare the adjacent Elements\r\n\t\t\tif(res[i] == res[i+1])\r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t}", "private int compareInternal(String shorter, String longer) {\n int lengthDiff = longer.length() - shorter.length();\n\n for (int compareStartIndexInsideLonger = 0; compareStartIndexInsideLonger <= lengthDiff; compareStartIndexInsideLonger++) {\n String compariosonPartFromLonger = longer.substring(compareStartIndexInsideLonger, compareStartIndexInsideLonger + shorter.length());\n //we have found an answer if they are not equal\n int result = shorter.compareTo(compariosonPartFromLonger);\n if (result != 0) {\n return result;\n }\n }\n\n //the are equal\n return 0;\n }", "static String sortString(String a){\n char[] charInString = a.toCharArray();\n Arrays.sort(charInString);\n return String.valueOf(charInString);\n }", "public void testCompareIgnoreCase() {\n\t\tString one = \"hello\";\n\t\tString two = \"In the house\";\n\t\t//h vor i\n\t\tassertTrue(comp.compareStrings(one, two) > 0);\n\t\tassertEquals(0, comp.compareStrings(one, one));\n\t\tassertTrue(comp.compareStrings(two, one) < 0);\n\t}", "public int compareTo(XMLString anotherString) {\n/* 242 */ return this.m_str.compareTo(anotherString.toString());\n/* */ }", "static boolean isPermutation_1(String a, String b){\n //get the sorted format of a string\n String sorted_A = sortString(a);\n String sorted_B = sortString(b);\n return sorted_A.equals(sorted_B);\n }", "public static int getVeryLongCompare(String a, String b) {\r\n\t\tif(a.equals(b))\r\n\t\t\treturn 0;\r\n\t\telse {\r\n\t\t\tint result = 0;\r\n\t\t\tboolean minus = false;\r\n\t\t\tif(a.charAt(0) == 45 && b.charAt(0) != 45) return -1;\r\n\t\t\tif(a.charAt(0) != 45 && b.charAt(0) == 45) return 1;\r\n\t\t\tif(a.charAt(0) == 45 && b.charAt(0) == 45) { \r\n\t\t\t\tminus = true;\r\n\t\t\t\ta = a.substring(1,a.length());\r\n\t\t\t\tb = b.substring(1,b.length());\r\n\t\t\t}\r\n\t\t\tif (a.charAt(0) == 46) a = \"0\" + a;\r\n\t\t\tif (b.charAt(0) == 46) b = \"0\" + b;\r\n\t\t\twhile(a.charAt(0) == 48 && a.charAt(1) != 46)\r\n\t\t\t\ta = a.substring(1,a.length());\r\n\t\t\twhile(b.charAt(0) == 48 && b.charAt(1) != 46)\r\n\t\t\t\tb = b.substring(1,b.length());\r\n\t\t\tboolean done = false;\r\n\t\t\tint aPointPos = a.indexOf(\".\");\r\n\t\t\tint bPointPos = b.indexOf(\".\");\r\n\t\t\tint aLength = a.length();\r\n\t\t\tint bLength = b.length();\r\n\t\t\tint aIntegerPart = aLength; \r\n\t\t\tint bIntegerPart = bLength;\r\n\t\t\tint aCurDigit = 0;\r\n\t\t\tint bCurDigit = 0;\r\n\t\t\tif (aPointPos > -1) {\r\n\t\t\t\taIntegerPart = aPointPos;\r\n\t\t\t}\r\n\t\t\tif (bPointPos > -1) {\r\n\t\t\t\tbIntegerPart = bPointPos;\r\n\t\t\t}\r\n\t\t\tif (aIntegerPart != bIntegerPart) {\r\n\t\t\t\tdone = true;\r\n\t\t\t\tif(aIntegerPart > bIntegerPart)\tresult = 1;\r\n\t\t\t\telse result = -1;\r\n\t\t\t} else {\r\n\t\t\t\tfor (int i = 0; i < aIntegerPart; i++) {\r\n\t\t\t\t\taCurDigit = a.charAt(i) - 48;\r\n\t\t\t\t\tbCurDigit = b.charAt(i) - 48;\r\n\t\t\t\t\tif(aCurDigit != bCurDigit) {\r\n\t\t\t\t\t\tdone = true;\r\n\t\t\t\t\t\tif(aCurDigit > bCurDigit) { result = 1; }\r\n\t\t\t\t\t\telse { result = -1; }\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tint maxFloatPart = Math.max(aLength - aIntegerPart - 1, bLength - bIntegerPart - 1);\r\n\t\t\t\tif(!done) {\r\n\t\t\t\t\tfor (int i = 0; i < maxFloatPart; i++) {\r\n\t\t\t\t\t\tif(aLength < aIntegerPart + i + 2) {\r\n\t\t\t\t\t\t\taCurDigit = 0;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\taCurDigit = a.charAt(aIntegerPart + i + 1) - 48;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(bLength < bIntegerPart + i + 2) {\r\n\t\t\t\t\t\t\tbCurDigit = 0;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tbCurDigit = b.charAt(bIntegerPart + i + 1) - 48;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(aCurDigit != bCurDigit) {\r\n\t\t\t\t\t\t\tdone = true;\r\n\t\t\t\t\t\t\tif(aCurDigit > bCurDigit) { result = 1; }\r\n\t\t\t\t\t\t\telse { result = -1; }\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(minus) result = 0 - result;\r\n\t\t\treturn result;\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\tString s1=\"xin chao cac ban\";\n\t\tString s2 = \"hello\";\n\t\tString s3=\"hello\";\n\t\tString s4=\"xin chao\";\n\t\tSystem.out.println(s1.compareTo(s2));\n\t\tSystem.out.println(s3.compareTo(s1));\n\t\tSystem.out.println(s1.compareTo(s4));\n\t\tSystem.out.println(s3.compareTo(s2));\n\t\tSystem.out.println(s3.compareToIgnoreCase(s2));\n\t}", "public abstract int compare(String s1, String s2) throws NumberFormatException, ParseException;", "public int compare(String o1, String o2) {\n\t\tif(base.get(o1) > base.get(o2)){\n\t\t\treturn 1;\n\t\t}\n\t\telse return -1;\n\t\t//return base.get(o1) - base.get(o2);\n\t}", "@Override\n\t\t\t\tpublic int compare(String o1, String o2) {\n\t\t\t\t\tif(o1.compareTo(o2) < 0){\n\t\t\t\t\t\treturn -1;\n\t\t\t\t\t}else if(o1.compareTo(o2) > 0){\n\t\t\t\t\t\treturn 1;\n\t\t\t\t\t}\n\t\t\t\t\treturn 0;\n\t\t\t\t}", "public static int compareStrings(String s1, String s2) {\n\t if (s1 == null) {\n\t\t return (s2 == null) ? 0 : -1;\n\t } else if (s2 == null) return 1;\n\t return s1.compareTo(s2);\n }", "@Override\n\t\t\tpublic int compare(String o1, String o2) {\n\t\t\t\treturn Integer.compare(o1.length(),\n\t\t o2.length());\n\t\t\t}", "static String sort(String s){\n char[] content = s.toCharArray();\n Arrays.sort(content);\n return new String(content);\n }", "public int compare(String str1, String str2) {\n\t\t\t\ttry{\r\n\t\t\t\t\treturn Integer.parseInt(str1) - Integer.parseInt(str2) > 0 ? 1 : -1;\r\n\t\t\t\t}\r\n\t\t\t\tcatch (Exception e){\r\n\t\t\t\t\tSystem.out.print(e.getMessage());\r\n\t\t\t\t}\t\r\n\t\t\t\treturn 1;\r\n\t\t\t}", "@Override\n public int compare(String o1, String o2) {\n return (o1 + o2).compareTo(o2 + o1);\n }", "public static int compareIgnoreCase(String firstString, String secondString){\n\t\tif(firstString.equalsIgnoreCase(secondString)){\n\t\t\treturn 0;\n\t\t}\n\t\tchar[] firstStringCharArray = firstString.toLowerCase().toCharArray();\n\t\tchar[] secondStringCharArray = secondString.toLowerCase().toCharArray();\n\t\tif(firstStringCharArray.length > 0 && !HaikuGenerator.isAWordCharacter(firstStringCharArray[0])\n\t\t\t\t&& secondStringCharArray.length > 0 && HaikuGenerator.isAWordCharacter(secondStringCharArray[0])){\n\t\t\t// First string starts with a non-word character (such as a number) while the second starts with a word-character (such as 'a')\n\t\t\t// -> the second string should be before the first string\n\t\t\treturn -1;\n\t\t}\n\t\tif(firstStringCharArray.length > 0 && HaikuGenerator.isAWordCharacter(firstStringCharArray[0])\n\t\t\t\t&& secondStringCharArray.length > 0 && !HaikuGenerator.isAWordCharacter(secondStringCharArray[0])){\n\t\t\t// First string starts with a word-character (such as 'a') while the second starts with a non-word character (such as a number)\n\t\t\t// -> the first string should be before the second string\n\t\t\treturn 1;\n\t\t}\n\t\tint i = 0;\n\t\twhile(true){\n\t\t\tif(firstStringCharArray[i] < secondStringCharArray[i]){\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\tif(firstStringCharArray[i] > secondStringCharArray[i]){\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\tif(firstStringCharArray.length == i+1){\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\tif(secondStringCharArray.length == i+1){\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t}", "public static boolean isAnagramImperApproach(char[] str1, char[] str2) {\n int n1 = str1.length;\n int n2 = str2.length;\n\n if (n1 != n2) return false;\n\n Arrays.sort(str1);\n Arrays.sort(str2);\n\n for (int i = 0; i < n1; i++) {\n if (str1[i] != str2[i]) {\n return false;\n }\n }\n return true;\n }", "public static String sort(String str){\n char[] chararr = str.toCharArray();\n java.util.Arrays.sort(chararr);\n return String.valueOf(chararr);\n }", "public static void sortStringsLonger( ArrayList<String> lst )\n {\n PredicateStringPair p = (a, b) -> {\n if (a.length() > b.length()) return true;\n else return false;\n };\n sortStrings(lst, p);\n\n }", "boolean equal(String s1, String s2) {\n return compareStrings(s1, s2) == 0;\n }", "@Override\n\tpublic String sortString(String input) {\n\t\tchar[] chars = input.toCharArray();\n\t\tArrays.sort(chars);\n\t\tString sorted = new String(chars);\n\t\treturn sorted;\t\n\t}", "static void stringSort(String[] arr) {\n\t\tfor(int i = 0; i<arr.length-1;i++) {\n\t\t\tint index =i;\n\t\t\tfor(int j =i+1; j<arr.length;j++) {\n\t\t\t\tif(arr[j].compareTo(arr[index])<0) {\n\t\t\t\t\tindex = j; //finding the smallest index\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t//Swap the found minimum element with the first element\n\t\t\tString temp = arr[index]; \n arr[index] = arr[i]; \n arr[i] = temp; \n\t\t}\n for(String a:arr) {\n \t\t\tSystem.out.println(a);\n\t}\n\t}", "@Override\n\t\tpublic int compare(String string1, String string2) {\n\t\t\treturn string1.charAt(string1.length() - 1) - string2.charAt(string2.length() - 1);\n\t\t}", "public boolean isIsomorphic(String str1, String str2) {\r\n if(str1.length() != str2.length()) return false;\r\n \r\n int[] arr1 = new int[256];\r\n int[] arr2 = new int[256];\r\n \r\n Arrays.fill(arr1, -1);\r\n Arrays.fill(arr2, -1);\r\n \r\n for(int i=0;i<str1.length();i++){\r\n int value1 = str1.charAt(i);\r\n int value2 = str2.charAt(i);\r\n if(arr1[value1]== -1){\r\n arr1[value1] = value2;\r\n } else {\r\n if(arr1[value1] != value2) return false;\r\n }\r\n \r\n if(arr2[value2]== -1){\r\n arr2[value2] = value1;\r\n } else {\r\n if(arr2[value2] != value1) return false;\r\n }\r\n \r\n }\r\n return true;\r\n \r\n}", "public static boolean checkIfPermutations(String str1, String str2) {\n\n if(str1.length() != str2.length())\n return false;\n\n char chars1[] = str1.toCharArray();\n char chars2[] = str2.toCharArray();\n\n Arrays.sort(chars1);\n Arrays.sort(chars2);\n\n for(int i=0; i<str1.length(); i++) {\n if(chars1[i] != chars2[i])\n return false;\n }\n\n return true;\n }", "private static int alphaNumericCompare( String s1, String s2 )\n\t{\n\t\tString[] words1 = splitIntoAlphasAndNums( s1 );\n\t\tString[] words2 = splitIntoAlphasAndNums( s2 );\n\t\tfor ( int j = 0; j < Math.min( words1.length, words2.length ); j++ )\n\t\t{\n\t\t\tint c;\n\t\t\tfinal String sp1 = words1[ j ];\n\t\t\tfinal String sp2 = words2[ j ];\n\n\t\t\t// First look for special alpha sequences (e.g., \"alpha\" or \"beta\" or \"rc\"):\n\t\t\tint subScore1 = calculateScore( sp1 );\n\t\t\tint subScore2 = calculateScore( sp2 );\n\t\t\tc = subScore1 - subScore2;\n\t\t\tif ( c != 0 )\n\t\t\t{\n\t\t\t\treturn c;\n\t\t\t}\n\n\t\t\t// Since splitIntoAlphasAndNums() was called, that means that if 1st char is a digit, then\n\t\t\t// all characters are digits:\n\t\t\tif ( startsWithDigit( sp1 ) || startsWithDigit( sp2 ) )\n\t\t\t{\n\t\t\t\tComparable<Long> v1 = toLong( sp1 );\n\t\t\t\tLong v2 = toLong( sp2 );\n\t\t\t\tif ( v1 != null && v2 != null )\n\t\t\t\t{\n\t\t\t\t\tc = v1.compareTo( v2 );\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t// null == null, and null is smaller than non-null\n\t\t\t\t\tc = v1 == v2 ? 0 : v1 == null ? -1 : 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// Both are pure non-numerics, so use regular lexicographic compare:\n\t\t\t\tc = sp1.compareTo( sp2 );\n\t\t\t}\n\n\t\t\tif ( c != 0 )\n\t\t\t{\n\t\t\t\treturn c;\n\t\t\t}\n\t\t}\n\n\t\t// Last resort comparision: sub-splitting array length.\n\t\treturn words1.length - words2.length;\n\t}", "public static boolean timingSafeEquals(String first, String second) {\n if (first == null) {\n return second == null;\n } else if (second == null) {\n return false;\n } else if (second.length() <= 0) {\n return first.length() <= 0;\n }\n char[] firstChars = first.toCharArray();\n char[] secondChars = second.toCharArray();\n char result = (char) ((firstChars.length == secondChars.length) ? 0 : 1);\n int j = 0;\n for (int i = 0; i < firstChars.length; ++i) {\n result |= firstChars[i] ^ secondChars[j];\n j = (j + 1) % secondChars.length;\n }\n return result == 0;\n }", "public static int compareString(NodeValue nv1, NodeValue nv2) {\n return calcReturn(nv1.getString().compareTo(nv2.getString())) ;\n }", "public static void main(String[] args) {\nString a = \"aab\";\nString b = \"baa\";\nSystem.out.println(compare(a,b));\n\t}" ]
[ "0.74832964", "0.74182993", "0.7361579", "0.706036", "0.7018402", "0.7008214", "0.70053345", "0.69800586", "0.6940879", "0.6921308", "0.68923974", "0.68620414", "0.68546736", "0.68501014", "0.68225276", "0.68147486", "0.6775404", "0.6770549", "0.67637926", "0.67581177", "0.675364", "0.6747738", "0.6715157", "0.67142373", "0.66715586", "0.6652056", "0.6648736", "0.66414696", "0.6607873", "0.66044235", "0.66028625", "0.6601566", "0.6598109", "0.6589553", "0.6587672", "0.65869653", "0.6575803", "0.656038", "0.652081", "0.65122074", "0.6511277", "0.64859325", "0.6468671", "0.6467061", "0.64658916", "0.6464377", "0.64615655", "0.64560777", "0.6420319", "0.6412272", "0.6393272", "0.63923013", "0.63884634", "0.6374985", "0.6370899", "0.63664603", "0.6332408", "0.63205206", "0.6313511", "0.6312388", "0.63072217", "0.6298332", "0.62856966", "0.62829787", "0.62762177", "0.62712294", "0.6259949", "0.6257284", "0.6257018", "0.62564826", "0.62493145", "0.6236135", "0.6233603", "0.6229234", "0.62282395", "0.62201387", "0.62201375", "0.62189347", "0.6217302", "0.6215489", "0.62065387", "0.62040466", "0.62035614", "0.6194524", "0.6182534", "0.6180072", "0.61652756", "0.6152835", "0.61449397", "0.6136956", "0.61218804", "0.61150223", "0.61114395", "0.6109065", "0.6107692", "0.60977906", "0.60667956", "0.60624087", "0.6052873", "0.6047039", "0.6042675" ]
0.0
-1
_1: with default state. .id : bedroomsone .value : 1 .title : .class : Html.LABEL .classIndex : 0
protected GuiTestObject bed_1() { return new GuiTestObject( getMappedTestObject("bed_1")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected GuiTestObject bed_5() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"bed_5\"));\n\t}", "public int getBedrooms(){\r\n return bedrooms;\r\n }", "protected GuiTestObject bed_2() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"bed_2\"));\n\t}", "public ReservationUpdatePanel(int id) {\n initComponents();\n this.id = id;\n connectDB();\n String sql = \"SELECT * FROM CAR_Reserve WHERE ReserveID =\"+id;\n reserving_detail = db.queryRows(sql);\n int n = 0;\n for(HashMap i : reserving_detail){\n n++;\n }\n if(n>=1){\n setInitText();\n }\n }", "protected GuiTestObject bed_4() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"bed_4\"));\n\t}", "public void setBed(Integer bed) {\n this.bed = bed;\n }", "private void getUserBedroomsChoice() {\n int checkedChipId = mBinding.chipGroupBedrooms.getCheckedChipId();\n if (checkedChipId == R.id.chip_1_bedroom) {\n mChipBedroomsInput = 1;\n } else if (checkedChipId == R.id.chip_2_bedrooms) {\n mChipBedroomsInput = 2;\n } else if (checkedChipId == R.id.chip_3_bedrooms) {\n mChipBedroomsInput = 3;\n } else if (checkedChipId == R.id.chip_4_bedrooms) {\n mChipBedroomsInput = 4;\n } else if (checkedChipId == R.id.chip_5_bedrooms) {\n mChipBedroomsInput = 5;\n } else {\n mChipBedroomsInput = 0;\n }\n }", "@Override\n public String getId() {\n return \"1\";\n }", "protected GuiTestObject bed_3() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"bed_3\"));\n\t}", "protected GuiTestObject bed_1(TestObject anchor, long flags) \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"bed_1\"), anchor, flags);\n\t}", "BedAssignment parse( String roomBedLabel );", "public Integer getBed() {\n return bed;\n }", "public static void main(String[] ar){\n Room living = new Room(\"Living\");\n Room kitchen = new Room(\"Kitchen\");\n Room bathroom = new Room(\"Bathroom\");\n Room garage = new Room(\"Garage\");\n \n Room bedroom1 = new Room(\"Bedroom1\");\n Room bedroom2 = new Room(\"Bedroom2\");\n Room bathroom1stf=new Room(\"Bathroom\");\n \n \n //Living\n living.addDevice(new Device(\"Aire acondicionado\", \"LG\", \"pm07sp\", true));\n living.addDevice(new Device(\"Luces\", \"Philips\", \"Hue\", true));\n //Kitchen\n kitchen.addDevice(new Device(\"luces\",\"Ahorradoras\",\"34234\", true));\n //Bathroom\n bathroom.addDevice(new Device(\"luce\",\"simple\",\"354676\", true));\n //Garage\n garage.addDevice(new Device(\"lightbulb\",\"the best\",\"X3000\",true));\n \n //Bedroom 1\n bedroom1.addDevice(new Device(\"Aire acondicionado\", \"Mabe\" , \"Mmt12cdbs3\", true));\n bedroom1.addDevice(new Device(\"Luces\",\"Philips\",\"EcoVantage\",true));\n \n //Bedroom 2\n bedroom2.addDevice(new Device(\"Aire acondicionado\", \"Hisense\" , \"AS-12CR5FVETD/1TR\", true));\n bedroom2.addDevice(new Device(\"Luces\",\"Ho Iluminacion\",\"A19 60W Claro\",true));\n \n //baño primer piso\n bathroom1stf.addDevice(new Device(\"Luces\",\"Alefco\",\"lw100\",true));\n \n \n \n Level groundFloor = new Level(\"Ground Floor\");\n Level firstFloor = new Level(\"First Floor\");\n \n \n groundFloor.addRoom(living);\n groundFloor.addRoom(kitchen);\n groundFloor.addRoom(bathroom);\n groundFloor.addRoom(garage);\n \n firstFloor.addRoom(bedroom1);\n firstFloor.addRoom(bedroom2);\n firstFloor.addRoom(bathroom1stf);\n \n\n House myhouse = new House(\"MyHome\");\n \n myhouse.addLevel(groundFloor);\n myhouse.addLevel(firstFloor);\n \n System.out.println(myhouse);\n \n \n /*\n room.addDevice(new Device(\"Reynaldo\", \"LG\", \"123456\", true));\n room.addDevice(new Device(\"Andrea\", \"Nokia\", \"Lumia-520\", true));\n room.addDevice(new Device(\"Karina\",\"Panasonic\",\"465464\", true));\n room.addDevice(new Device(\"Martin\", \"ZTE\", \"V7\",true));\n room.addDevice(new Device(\"Antonio\",\"Samsung\",\"J5\",true));\n room.addDevice(new Device(\"Roberto\",\"HP\",\"SpectreX360\",true));\n room.addDevice(new Device(\"Gabriel\",\"Linu\",\"Ilium_S106\",true));\n room.addDevice(new Device (\"Limberth\",\"LG\", \"lg-206\",true));\n room.addDevice(new Device(\"jesus\", \"hp\",\"2997\", true));\n room.addDevice(new Device(\"Rich\", \"Asus\",\"Zenfone_4_Max\",true));\n room.addDevice(new Device(\"Adrian\",\"Apple\",\"SE\",true));\n room.addDevice(new Device (\"Jonatan\",\"samsung\",\"J5\",true));\n room.addDevice(new Device(\"Jessica\", \"Huaweii\", \"P9LITE\", true));\n */\n \n \n \n \n \n }", "public void printLn1(){\r\n\t\tSystem.out.print(\"Enter the number of Bedrooms in the \" + this.getCategory() + \": \");\r\n\t}", "public Bedroom(int number, int capacity , TypesOfBedrooms type, int nightlyrate) {\n super(capacity);\n this.number = number;\n this.type = type;\n this.nightlyrate = nightlyrate;\n this.guests = new ArrayList<Guest>();\n }", "private void displayBedrijf(){\n if (this.geselecteerdeStageplaats.getBedrijfID() != null){\n this.jTextFieldBedrijfsnaam.setText(this.geselecteerdeStageplaats.getBedrijfID().getNaam());\n this.jTextFieldContactpersoon.setText(this.geselecteerdeStageplaats.getBedrijfID().getContactNaam());\n this.jTextFieldEmail.setText(this.geselecteerdeStageplaats.getBedrijfID().getContactEmail());\n this.jTextAreaActiviteiten.setText(this.geselecteerdeStageplaats.getBedrijfID().getActiviteiten());\n this.jTextAreaAanwervend.setText(this.geselecteerdeStageplaats.getBedrijfID().getAanwervend());\n \n this.jTextFieldStraat.setText(this.geselecteerdeStageplaats.getBedrijfID().getStraat());\n this.jTextFieldNummer.setText(this.geselecteerdeStageplaats.getBedrijfID().getNummer());\n this.jTextFieldPostcode.setText(this.geselecteerdeStageplaats.getBedrijfID().getPostcode());\n this.jTextFieldStad.setText(this.geselecteerdeStageplaats.getBedrijfID().getStad());\n this.jTextFieldLand.setText(this.geselecteerdeStageplaats.getBedrijfID().getLand());\n }\n }", "@AutoEscape\n\tpublic String getBuildingNumber();", "private void BuildingCombo() {\n \n }", "@Override\n\tpublic void build() {\n\t\tif(this.getContainer().isEmpty()){\n\t\t\tthis.addBuilding(new Building(BuildingType.CABSTAND, 150));\n\t\t\tMonopolyTheGame.getInstance().getActivePlayer().decBalance(150);\n\t\t\tsetEnabler(false);\n\t\t\t//currentSquare.setRent(currentSquare.getRent()*2);\n\t\t}else {\n\t\t\tSystem.out.println(\"You cannot bould multiple cab stands on a cab company\");\n\t\t}\n\t\t\n\t}", "public HotDogStand(int standId,int noHDS)//constructor that initializes both instance variables\n{\n\tsuper();//super constructor\n\tthis.standId = standId;//refers to this stand id\n\tthis.noHDS = noHDS;// refers to this stands number of hot dogs sold\n}", "String getSelectedStateName();", "public BuildingList() {\n Building temp = new Building(1);\n temp.createSubAreas(6);\n temp.setSystemPass(\"0000\");\n URL url = this.getClass().getClassLoader()\n .getResource(\"singleHouse.jpg\");\n temp.setImage(url);\n\n buildings.add(temp);\n temp = new Building(2);\n url = this.getClass().getClassLoader()\n .getResource(\"commercial.jpg\");\n temp.setImage(url);\n buildings.add(temp);\n }", "public final int component1() {\n return 0;\n }", "public int getNumberOfBed() {\n return this.numberOfBed;\n }", "public Building getBuilding(int id){\n // Placeholder method stub returns the science building\n return new Building(id, \"Science Building\", 42.931003, -85.588937, \"picture.gif\");\n }", "void display()\r\n\t{\r\n\t\tSystem.out.println(\"bikeid=\"+bikeid+\" bike name==\"+bikename);\r\n\t}", "public void mouseClicked(MouseEvent e) {\n\t\t\tint x = e.getX();\n\t\t\tint y = e.getY();\n\n\t\t\t// selected area is highlighted by drawing a rectangle around it\n\t\t\t// areaLabel flashes the name of the area selected\n\t\t\tif ((x >= 230 && x <= 329) && (y >= 155 && y <= 295)) {\n\n\t\t\t\tsection = new Rectangle(230, 155, 99, 140);\n\t\t\t\trepaint();\n\t\t\t\tsectionLabel.setText(\"TOILET 1\");\n\n\t\t\t\tid = 1;\n\n\t\t\t} else if ((x >= 319 && x <= 480) && (y >= 225 && y <= 507)) {\n\t\t\t\tsection = new Rectangle(319, 225, 161, 282);\n\t\t\t\trepaint();\n\n\t\t\t\tsectionLabel.setText(\"BEDROOM 1\");\n\t\t\t\tsectionLabel.revalidate();\n\n\t\t\t\tid = 2;\n\n\t\t\t} else if ((x >= 478 && x <= 651) && (y >= 226 && y <= 437)) {\n\t\t\t\tsection = new Rectangle(478, 226, 173, 211);\n\t\t\t\trepaint();\n\n\t\t\t\tsectionLabel.setText(\"LIVING ROOM\");\n\t\t\t\tsectionLabel.revalidate();\n\n\t\t\t\tid = 3;\n\n\t\t\t} else if ((x >= 478 && x <= 686) && (y >= 450 && y <= 581)) {\n\t\t\t\tsection = new Rectangle(478, 450, 208, 131);\n\t\t\t\trepaint();\n\n\t\t\t\tsectionLabel.setText(\"DINING ROOM\");\n\t\t\t\tsectionLabel.revalidate();\n\n\t\t\t\tid = 4;\n\n\t\t\t} else if ((x >= 654 && x <= 779) && (y >= 227 && y <= 405)) {\n\t\t\t\tsection = new Rectangle(654, 227, 125, 178);\n\t\t\t\trepaint();\n\n\t\t\t\tsectionLabel.setText(\"KITCHEN\");\n\t\t\t\tsectionLabel.revalidate();\n\n\t\t\t\tid = 5;\n\n\t\t\t} else if ((x >= 776 && x <= 929) && (y >= 225 && y <= 404)) {\n\t\t\t\tsection = new Rectangle(776, 225, 153, 179);\n\t\t\t\trepaint();\n\n\t\t\t\tsectionLabel.setText(\"BEDROOM 2\");\n\t\t\t\tsectionLabel.revalidate();\n\n\t\t\t\tid = 6;\n\n\t\t\t} else if ((x >= 688 && x <= 782) && (y >= 460 && y <= 589)) {\n\t\t\t\tsection = new Rectangle(688, 460, 94, 129);\n\t\t\t\trepaint();\n\n\t\t\t\tsectionLabel.setText(\"TOILET 2\");\n\t\t\t\tsectionLabel.revalidate();\n\n\t\t\t\tid = 7;\n\t\t\t} else if ((x >= 929 && x <= 1094) && (y >= 226 && y <= 486)) {\n\t\t\t\tsection = new Rectangle(929, 224, 165, 262);\n\t\t\t\trepaint();\n\n\t\t\t\tsectionLabel.setText(\"MASTER BEDROOM\");\n\n\t\t\t\tsectionLabel.revalidate();\n\n\t\t\t\tid = 8;\n\n\t\t\t} else if ((x >= 958 && x <= 1095) && (y >= 489 && y <= 590)) {\n\t\t\t\tsection = new Rectangle(958, 489, 137, 101);\n\t\t\t\trepaint();\n\n\t\t\t\tsectionLabel.setText(\"TOILET 3\");\n\t\t\t\tsectionLabel.revalidate();\n\n\t\t\t\tid = 9;\n\n\t\t\t} else if ((x >= 346 && x <= 1095) && (y >= 138 && y <= 223)) {\n\t\t\t\tsection = new Rectangle(346, 138, 748, 85);\n\t\t\t\trepaint();\n\n\t\t\t\tsectionLabel.setText(\"BALCONY\");\n\t\t\t\tsectionLabel.revalidate();\n\n\t\t\t\tid = 10;\n\t\t\t} else {\n\t\t\t\tsection = null;\n\t\t\t\tsectionLabel.setText(\"\");\n\n\t\t\t\tid = 0;\n\t\t\t}\n\n\t\t}", "public static void buildStage2 ()\r\n {\r\n \r\n lgt.findParent(); //4\r\n lgt.findChild(0); //6\r\n lgt.insert(12);\r\n lgt.findParent();\r\n lgt.insert(13);\r\n lgt.findParent();\r\n lgt.insert(14);\r\n \r\n lgt.findRoot();\r\n lgt.findChild(0);//2\r\n lgt.findChild(0);//5\r\n lgt.insert(8);\r\n lgt.findParent();\r\n lgt.insert(9);\r\n lgt.findParent();\r\n lgt.insert(10);\r\n lgt.findParent();\r\n lgt.insert(11);\r\n \r\n }", "@Override\r\n public String storyID() {\r\n return \"HD\";\r\n }", "public void setBuildingNumber(String buildingNumber);", "public int getNbrSingleBed() {\n\t\treturn getNbrOfBeds()[0];\n\t}", "StatePac build();", "public void levelUp1()\r\n {\r\n this.health = 900;\r\n Story.levelUp1Text();\r\n }", "private void updateAgilisaurusState() {\n this.age++;\n\n if (this.age == 30 && this.hasCapability(LifeStage.BABY)) {\n // grow up\n this.removeCapability(LifeStage.BABY);\n this.addCapability(LifeStage.ADULT);\n this.displayChar = 'D';\n }\n\n if (this.foodLevel > 0) {\n this.foodLevel--;\n }\n\n if (this.waterLevel > 0) {\n this.waterLevel--;\n }\n\n if (this.foodLevel < 30) {\n this.behaviour = new HungryBehaviour();\n }\n\n if (this.foodLevel > 50) {\n this.behaviour = new BreedBehaviour();\n }\n\n if (this.foodLevel == 0) {\n this.Starving();\n } else {\n this.starvationLevel = 0;\n }\n\n if (this.waterLevel < 30) {\n this.behaviour = new ThirstBehaviour();\n }\n\n if (this.waterLevel == 0) {\n this.Thirsting();\n } else {\n this.thirstLevel = 0;\n }\n }", "void drawBuilding() {\r\n\t\tgc.setFill(Color.BEIGE);\r\n\t\tgc.fillRect(0, 0, theBuilding.getXSize(), theBuilding.getYSize()); // clear the canvas\r\n\t\ttheBuilding.showBuilding(this); // draw all items\r\n\r\n\t\tString s = theBuilding.toString();\r\n\t\trtPane.getChildren().clear(); // clear rtpane\r\n\t\tLabel l = new Label(s); // turn string to label\r\n\t\trtPane.getChildren().add(l); // add label\r\n\r\n\t}", "int getStateValue1();", "public CityscapeComponent(int x)\n {\n numOfBuildings = x;\n \n }", "private void getUserBathroomsChoice() {\n int checkedChipId = mBinding.chipGroupBathrooms.getCheckedChipId();\n if (checkedChipId == R.id.chip_1_bathroom) {\n mChipBathroomsInput = 1;\n } else if (checkedChipId == R.id.chip_2_bathrooms) {\n mChipBathroomsInput = 2;\n } else if (checkedChipId == R.id.chip_3_bathrooms) {\n mChipBathroomsInput = 3;\n } else if (checkedChipId == R.id.chip_4_bathrooms) {\n mChipBathroomsInput = 4;\n } else if (checkedChipId == R.id.chip_5_bathrooms) {\n mChipBathroomsInput = 5;\n } else {\n mChipBathroomsInput = 0;\n }\n }", "@Override\n public void selectGolem(int id) {\n }", "public void roomOnePressed() {\r\n\t\tkeys.get(keys.put(Keys.ROOM_ONE, true));\r\n\t}", "Label getLabelRootRecherche();", "public sightings (double id,String name,String location,String date) {\n this.name=name;\n this.location=location;\n this.date=date;\n\n }", "public String getStateDescription() {\n return myID;\n }", "protected TextGuiTestObject house_Number() \n\t{\n\t\treturn new TextGuiTestObject(\n getMappedTestObject(\"house_Number\"));\n\t}", "public Nest() {\r\n\t\tnestNo++;\r\n\t\tthis.setName(\"nest #\" + nestNo);\r\n\t}", "public String name() {\r\n return \"GenRoomControl\";\r\n }", "public Integer getBuildingid() {\r\n return buildingid;\r\n }", "public static BorderPane getBuildingInfoBP(Accordion ac) {\n screenBounds = Screen.getPrimary().getBounds();\n\n //Reset TableView tableBuilding\n tableBuilding = new TableView<>();\n tableBuilding.getColumns().clear();\n tableBuilding.setEditable(true);\n\n // Table of Buildings with Info\n // Pane Center\n TableColumn<Building, Long> idCol = new TableColumn<>(\"id\");\n idCol.setMinWidth(100);\n idCol.setCellValueFactory(new PropertyValueFactory<>(\"id\"));\n idCol.getStyleClass().setAll(\"first-col\");\n\n TableColumn<Building, String> buildingCol = new TableColumn<>(\"Building Name\");\n buildingCol.setMinWidth(100);\n buildingCol.setCellValueFactory(new PropertyValueFactory<>(\"name\"));\n buildingCol.setCellFactory(TextFieldTableCell.forTableColumn());\n buildingCol.setOnEditCommit((TableColumn.CellEditEvent<Building, String> t) ->\n t.getTableView().getItems().get(t.getTablePosition().getRow()).setName(t.getNewValue()));\n\n TableColumn<Building, LocalTime> openTimeCol = new TableColumn<>(\"Open Time\");\n openTimeCol.setMinWidth(100);\n openTimeCol.setCellValueFactory(new PropertyValueFactory<>(\"openTime\"));\n openTimeCol.setCellFactory(TextFieldTableCell.forTableColumn(new TimeToStringConverter()));\n openTimeCol.setOnEditCommit((TableColumn.CellEditEvent<Building, LocalTime> t) ->\n t.getTableView().getItems().get(t.getTablePosition().getRow()).setOpenTime(t.getNewValue()));\n\n TableColumn<Building, LocalTime> closeTimeCol = new TableColumn<>(\"Close Time\");\n closeTimeCol.setMinWidth(100);\n closeTimeCol.setCellValueFactory(new PropertyValueFactory<>(\"closeTime\"));\n closeTimeCol.setCellFactory((TextFieldTableCell.forTableColumn(new TimeToStringConverter())));\n closeTimeCol.setOnEditCommit((TableColumn.CellEditEvent<Building, LocalTime> t) ->\n t.getTableView().getItems().get(t.getTablePosition().getRow()).setCloseTime(t.getNewValue()));\n\n TableColumn<Building, String> streetNameCol = new TableColumn<>(\"Street Name\");\n streetNameCol.setMinWidth(100);\n streetNameCol.setCellValueFactory(new PropertyValueFactory<>(\"streetName\"));\n streetNameCol.setCellFactory(TextFieldTableCell.forTableColumn());\n streetNameCol.setOnEditCommit(\n (TableColumn.CellEditEvent<Building, String> t) ->\n t.getTableView().getItems().get(t.getTablePosition().getRow()).setStreetName(t.getNewValue()));\n\n TableColumn<Building, String> streetNumCol = new TableColumn<>(\"Street Number\");\n streetNumCol.setMinWidth(100);\n streetNumCol.setCellValueFactory(new PropertyValueFactory<>(\"streetNumber\"));\n streetNumCol.setCellFactory(TextFieldTableCell.forTableColumn());\n streetNumCol.setOnEditCommit(\n (TableColumn.CellEditEvent<Building, String> t) -> t.getTableView().getItems().get(\n t.getTablePosition().getRow()).setStreetNumber(t.getNewValue()));\n\n TableColumn<Building, String> zipCodeCol = new TableColumn<>(\"Zip Code\");\n zipCodeCol.setMinWidth(100);\n zipCodeCol.setCellValueFactory(new PropertyValueFactory<>(\"zipCode\"));\n zipCodeCol.setCellFactory(TextFieldTableCell.forTableColumn());\n zipCodeCol.setOnEditCommit(\n (TableColumn.CellEditEvent<Building, String> t) -> t.getTableView().getItems().get(\n t.getTablePosition().getRow()).setZipCode(t.getNewValue()));\n\n TableColumn<Building, String> cityCol = new TableColumn<>(\"City\");\n cityCol.setMinWidth(100);\n cityCol.setCellValueFactory(new PropertyValueFactory<>(\"City\"));\n cityCol.setCellFactory(TextFieldTableCell.forTableColumn());\n cityCol.setOnEditCommit(\n (TableColumn.CellEditEvent<Building, String> t) -> t.getTableView().getItems().get(\n t.getTablePosition().getRow()).setCity(t.getNewValue()));\n cityCol.getStyleClass().setAll(\"last-col\");\n\n buildingData = FXCollections.observableList(BuildingCommunication.getBuildings());\n tableBuilding.setItems(buildingData);\n tableBuilding.getColumns().addAll(idCol, buildingCol, openTimeCol, closeTimeCol, streetNameCol, streetNumCol, zipCodeCol, cityCol);\n\n HBox hboxBottom = new HBox();\n hboxBottom.setPadding(new Insets(20, 20, 20, 0));\n hboxBottom.getChildren().setAll(deleteInfoButton, updateInfoButton);\n\n // VBox to add a new building\n // Pane Right\n Text buildingName = new Text(\"Building Name\");\n Text openTime = new Text(\"Open Time\");\n Text closeTime = new Text(\"Close Time\");\n Text streetName = new Text(\"Street Name\");\n Text streetNumber = new Text(\"Street Number\");\n Text zipCode = new Text(\"Zip Code\");\n Text city = new Text(\"City\");\n\n\n ObservableList<LocalTime> time = generateTime();\n TextField buildingNameInput = new TextField();\n ComboBox<LocalTime> openTimeInput = new ComboBox<>();\n openTimeInput.setItems(time);\n ComboBox<LocalTime> closeTimeInput = new ComboBox<>();\n closeTimeInput.setItems(time);\n TextField streetNameInput = new TextField();\n TextField streetNumberInput = new TextField();\n TextField zipCodeInput = new TextField();\n TextField cityInput = new TextField();\n\n Button addButtonBuilding = new Button(\"Add Building\");\n\n VBox vboxRight = new VBox(5);\n vboxRight.getChildren().addAll(buildingName, buildingNameInput, openTime, openTimeInput,\n closeTime, closeTimeInput, streetName, streetNameInput, streetNumber, streetNumberInput,\n zipCode, zipCodeInput, city, cityInput, addButtonBuilding);\n\n // Delete Button\n deleteInfoButton.setOnAction(e -> {\n try {\n deleteBuildingButtonClicked();\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n });\n\n // Update Button\n updateInfoButton.setOnAction(e -> {\n try {\n updateBuildingButtonClicked();\n AdminSceneController.loadBuildingTP(ac);\n ac.setExpandedPane(AdminSceneController.buildingTP);\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n });\n\n // Add Button\n addButtonBuilding.setOnAction(e -> {\n String buildingNameInputText = buildingNameInput.getText();\n String openTimeInputText = openTimeInput.getValue().toString();\n String closeTimeInputText = closeTimeInput.getValue().toString();\n String streetNameInputText = streetNameInput.getText();\n String streetNumberInputText = streetNumberInput.getText();\n String zipCodeInputText = zipCodeInput.getText();\n String cityInputText = cityInput.getText();\n\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"Information Dialog\");\n alert.setHeaderText(null);\n String success = BuildingCommunication.addBuilding(buildingNameInputText, LocalTime.parse(openTimeInputText), LocalTime.parse(closeTimeInputText),\n streetNameInputText, streetNumberInputText, zipCodeInputText, cityInputText);\n if (success.equals(\"Successful\")) {\n alert.hide();\n } else {\n alert.setContentText(success);\n alert.showAndWait();\n }\n\n buildingNameInput.setText(null);\n openTimeInput.setValue(null);\n closeTimeInput.setValue(null);\n streetNameInput.setText(null);\n streetNumberInput.setText(null);\n zipCodeInput.setText(null);\n cityInput.setText(null);\n AdminSceneController.loadBuildingTP(ac);\n ac.setExpandedPane(AdminSceneController.buildingTP);\n });\n\n tableBuilding.setColumnResizePolicy(TableView.CONSTRAINED_RESIZE_POLICY);\n\n tableBuilding.getStyleClass().add(\"center\");\n hboxBottom.getStyleClass().add(\"bottom\");\n vboxRight.getStyleClass().add(\"right\");\n addButtonBuilding.getStyleClass().setAll(\"restaurant-menu-button\");\n deleteInfoButton.getStyleClass().setAll(\"restaurant-menu-button\");\n updateInfoButton.getStyleClass().setAll(\"restaurant-menu-button\");\n deleteTimeButton.getStyleClass().setAll(\"restaurant-menu-button\");\n updateTimeButton.getStyleClass().setAll(\"restaurant-menu-button\");\n\n // All elements in BorderPane\n BorderPane borderPane = new BorderPane();\n borderPane.getStyleClass().add(\"admin-border-pane\");\n borderPane.setCenter(tableBuilding);\n borderPane.setRight(vboxRight);\n borderPane.setBottom(hboxBottom);\n\n return borderPane;\n }", "public Property(String name, int pos, int rent, int oneH, int twoH, int threeH, int fourH,\n\t int hotel, int value, int houses) {\n\t\tthis.rent = rent;\n\t\tthis.oneH = oneH;\n\t\tthis.twoH = twoH;\n\t\tthis.threeH = threeH;\n\t\tthis.fourH = fourH;\n\t\tthis.hotel = hotel;\n\t\tthis.value = value;\n\t\tthis.houses = houses;\n\t\tbuildings = 0;\n\t\tmonopoly = false;\n\t\towned = false;\n\n\t\tthis.pos = pos;\n\t\tthis.name = name;\n\t}", "public static void ViewNewBagType()\r\n{\r\n\r\n\r\n\tselectBagType(RandomString);\r\n\tSystem.out.println(\"BagTypeName Viewed Successfully\");\r\n\t\r\n}", "public void createRooms()\n {\n Room outside,bedroom, bathroom, hallway1, hallway2, spareroom, kitchen, fridge;\n\n // create the rooms\n bedroom = new Room(\"Bedroom\", \"your bedroom. A simple room with a little bit too much lego\");\n bathroom = new Room(\"Bathroom\", \"the bathroom where you take your business calls. Also plenty of toilet paper\");\n hallway1 = new Room(\"Hallway1\", \"the hallway outside your room, there is a dog here blocking your path. Youll need to USE something to distract him\");\n hallway2 = new Room(\"Hallway2\", \"the same hallway? This part leads to the spare room and kitchen\");\n spareroom = new Room(\"Spare room\", \"the spare room. This is for guests\");\n kitchen = new Room(\"Kitchen\", \"your kitchen. There is a bowl with cereal in it waiting for you,But its still missing some things\");\n fridge = new Room (\"Walk in Fridge\", \"a walkin fridge. Have you ever seen Ratatouille? Its like that\");\n outside = new Room(\"Outside\", \"the outside world, breathe it in\");\n \n \n Item toiletPaper, milk, spoon, poison;// creates the items and sets their room\n \n toiletPaper = new Item(\"Toilet-Paper\", hallway1);\n toiletPaper.setDescription(\"Just your standard bog roll. Dont let your dog get a hold of it\");\n bathroom.setItems(\"Toilet-Paper\",toiletPaper);\n \n milk = new Item(\"Milk\", kitchen);\n milk.setDescription(\"white and creamy, just like mama used to make\");\n fridge.setItems(\"Milk\", milk);\n \n spoon = new Item(\"Spoon\", kitchen);\n spoon.setDescription(\"Like a fork but for liquids\");\n spareroom.setItems(\"Spoon\", spoon);\n \n poison = new Item(\"Poison\", outside);\n poison.setDescription(\"This will probably drain all of your energy, dont USE it\");\n outside.setItems(\"Poison\", poison);\n \n // initialise room exits\n bedroom.setExit(\"east\", bathroom);\n bedroom.setExit(\"north\", hallway1);\n \n bathroom.setExit(\"west\", bedroom);\n \n hallway1.setExit(\"south\", bedroom);\n hallway1.setExit(\"north\", hallway2);\n \n hallway2.setExit(\"south\", hallway1);\n hallway2.setExit(\"west\", spareroom);\n hallway2.setExit(\"north\", kitchen);\n \n spareroom.setExit(\"east\", hallway2);\n \n kitchen.setExit(\"east\", outside);\n kitchen.setExit(\"west\", fridge);\n \n fridge.setExit(\"east\", kitchen);\n \n \n outside.setExit(\"west\", kitchen);\n \n\n this.currentRoom = bedroom; // start game in bedroom\n \n }", "@Override\n\tpublic String toString() {\treturn id + \" [\" + value + \"]\" ;}", "public String getBuilding() {\n return building;\n }", "@Override\n\tpublic int getID() {\n\t\treturn 1;\n\t}", "@Override\n public String toString() {\n return \"Apartment(To rent){\" + \"id = \" + id + \n \"description=\" + description + \"price=\" + price + \"rooms=\" + rooms + \"mail= \" + mail + \", name = \" + name + \", phoneNr = \" + phoneNr \n + \"'}'\";\n }", "public void baseLandID(){ \n Log1_AssetCountModel assetCount = new Log1_AssetCountModel();\n List count = assetCount.get();\n\n count.stream().forEach(row -> {\n HashMap hash = (HashMap) row;\n AssetLandCount_txt.setText((String.valueOf(hash.get(\"AssetLand\"))));\n });\n }", "biker(int n,String ss)\r\n\t{\r\n\t\tbikeid=n;\r\n\t\tbikename=ss;\r\n\t\t\r\n\t}", "public SceneLabelObjectState(SceneDivObjectState state){\t\t\n\t\tsuper(state); //will create a SceneDivObjectState from the supplied state\n\t\tsuper.setObjectsPrimaryType(SceneObjectType.Label); //subtypes should also run this statement straight after the super command in order to override their parents type and set their own as the primary/\n\n\t\t//Clear css parameters from general settings passed to this\n\t\t//This is because Dialogue objects treats these differently.\n\t\t//We fill them up correctly when the dialogue specific stuff is processed\n\t\tCurrentBoxCSS=\"\";\n\n\t}", "public Zadatak1() {\r\n\t\tSystem.out.println(ucitajBroj(\"1. broj\") + ucitajBroj(\"2. broj\"));\r\n\t}", "LabState state();", "public Building getBuilding();", "protected GuiTestObject bed_5(TestObject anchor, long flags) \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"bed_5\"), anchor, flags);\n\t}", "@Override\r\n public void Story(){\r\n super.Story();\r\n System.out.println(\"=======================================================================================\");\r\n System.out.println(\"|| Arya harus bergegas untuk menyelamatkan seluruh warga. Dia tidak tau posisi warga ||\");\r\n System.out.println(\"|| yang harus diselamatkan ada pada ruangan yang mana. ||\");\r\n System.out.println(\"=======================================================================================\");\r\n }", "private void createInstances()\n {\n Room EnchantedForest, IdyllicGlade, GumdropHill, DenseWoods, VolcanoHell, SecretHotSpring, MagmaChamber, MysteriousCloud, SkyParadise, Cirrostratus, Nimbostratus, Stratocumulus, WaterTemple, Whirlpool, EyeoftheStorm, BossQuarters, Portal;\n \n random = new Random();\n allrooms = new ArrayList<Room>();\n \n // create the rooms providing an ID to be passed into the room constructor\n EnchantedForest = new EnchantedForestRoom();\n allrooms.add(EnchantedForest);\n IdyllicGlade = new IdyllicGladeRoom();\n allrooms.add(IdyllicGlade);\n GumdropHill = new GumdropHillRoom();\n allrooms.add(GumdropHill);\n DenseWoods = new DenseWoodsRoom();\n allrooms.add(DenseWoods);\n VolcanoHell = new VolcanoHellRoom();\n allrooms.add(VolcanoHell);\n SecretHotSpring = new SecretHotSpringRoom();\n allrooms.add(SecretHotSpring);\n MagmaChamber = new MagmaChamberRoom();\n allrooms.add(MagmaChamber);\n MysteriousCloud = new MysteriousCloudRoom();\n allrooms.add(MysteriousCloud);\n SkyParadise = new SkyParadiseRoom();\n allrooms.add(SkyParadise);\n Cirrostratus = new CirrostratusRoom();\n allrooms.add(Cirrostratus);\n Nimbostratus = new NimbostratusRoom();\n allrooms.add(Nimbostratus);\n Stratocumulus = new StratocumulusRoom();\n allrooms.add(Stratocumulus);\n WaterTemple = new WaterTempleRoom();\n allrooms.add(WaterTemple);\n Whirlpool = new WhirlpoolRoom();\n allrooms.add(Whirlpool);\n EyeoftheStorm = new EyeoftheStormRoom();\n allrooms.add(EyeoftheStorm);\n BossQuarters = new BossQuartersRoom(); \n allrooms.add(BossQuarters);\n Portal = new PortalRoom();\n \n \n // initialise room exits, items and creatures\n EnchantedForest.setExit(\"east\", IdyllicGlade);\n EnchantedForest.setExit(\"west\", GumdropHill);\n EnchantedForest.setExit(\"south\", DenseWoods);\n \n IdyllicGlade.setExit(\"west\", EnchantedForest);\n \n GumdropHill.setExit(\"down\", EnchantedForest);\n GumdropHill.setExit(\"up\", MysteriousCloud);\n\n DenseWoods.setExit(\"north\", EnchantedForest);\n DenseWoods.setExit(\"south\", VolcanoHell);\n \n MagmaChamber.setExit(\"north\",VolcanoHell);\n \n VolcanoHell.setExit(\"east\", SecretHotSpring);\n VolcanoHell.setExit(\"north\", DenseWoods);\n VolcanoHell.setExit(\"west\", MysteriousCloud);\n VolcanoHell.setExit(\"south\", MagmaChamber);\n \n SecretHotSpring.setExit(\"west\", VolcanoHell);\n \n MysteriousCloud.setExit(\"west\", VolcanoHell);\n MysteriousCloud.setExit(\"in\", Portal);\n MysteriousCloud.setExit(\"up\", SkyParadise);\n \n SkyParadise.setExit(\"down\", MysteriousCloud);\n SkyParadise.setExit(\"up\", Cirrostratus);\n SkyParadise.setExit(\"east\", Nimbostratus);\n \n Cirrostratus.setExit(\"north\", SkyParadise);\n Cirrostratus.setExit(\"down\", WaterTemple);\n \n Nimbostratus.setExit(\"west\", SkyParadise);\n Nimbostratus.setExit(\"east\", Stratocumulus);\n \n Stratocumulus.setExit(\"west\", Nimbostratus);\n Stratocumulus.setExit(\"down\", WaterTemple);\n \n WaterTemple.setExit(\"up\",Stratocumulus);\n WaterTemple.setExit(\"high\", Cirrostratus);\n WaterTemple.setExit(\"down\", Whirlpool);\n WaterTemple.setExit(\"in\", BossQuarters);\n \n Whirlpool.setExit(\"up\", WaterTemple);\n Whirlpool.setExit(\"down\", EyeoftheStorm);\n \n EyeoftheStorm.setExit(\"up\", Whirlpool);\n EyeoftheStorm.setExit(\"in\", BossQuarters);\n \n BossQuarters.setExit(\"out\", WaterTemple);\n \n currentRoom = EnchantedForest; \n }", "AdministrativeState adminsatratveState();", "AdministrativeState adminsatratveState();", "public void setNombreArea(String p) { this.nombreArea = p; }", "protected GuiTestObject bungalow() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"bungalow\"));\n\t}", "public SingleRoom(Hotel hotel, String nomor_kamar)\n {\n // initialise instance variables\n super(hotel,nomor_kamar);\n\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public SceneLabelObjectState(){\n\t\tsuper();\n\t\tsuper.setObjectsPrimaryType(SceneObjectType.Label);\n\n\t}", "public String showRoomType()\r\n {\r\n return typeOfRoom + \"\\nAntall sengeplasser: \" + nrOfBedspaces + \"\\nSenger: \" + typeOfBeds;\r\n }", "private void jumpToRoomDetail(UnitFamilyRoomModel roomModel){\n }", "public void setHotelID(int value) {\n this.hotelID = value;\n }", "StatePacBuilder selectLeaf(LeafIdentifier leaf);", "public void LandID(){\n int x = Integer.parseInt(AssetLandCount_txt.getText());\n \n String LandIDwillBe = String.valueOf(x+1);\n \n LandNumber_txt.setText(LandIDwillBe);\n }", "@Override\n\tpublic String Show()\n\t{\n\t\treturn id;\n\t\t\n\t}", "@FXML\r\n void actionInHouseRadioButton(ActionEvent event) {\r\n\r\n labelPartIdName.setText(\"Machine ID\");\r\n }", "public Item() {\n\t\tmenu.add(new Item(\"Snickers\", 10, 1.50, \"1\"));\n\t\tmenu.add(new Item(\"Chips\", 10, .50, \"2\"));\n\t\tmenu.add(new Item(\"Coke\", 10, 1.75, \"3\"));\n\n\t}", "protected GuiTestObject bed_2(TestObject anchor, long flags) \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"bed_2\"), anchor, flags);\n\t}", "@Override\n public String toString(){\n return \"|Lege navn: \"+legeNavn+\" |Kon.ID: \"+konID+\"|\";\n }", "public String getBuild1Number() {\n\t\treturn \"\"+nb_build1;\n\t}", "public void fillIdentity() {\n\t\tString shipName = ship.getShipName();\n\t\tString name = shipsNameLabel.getText();\n\t\tshipsNameLabel.setText( name + shipName);\n\t\t\n\t\tdouble shipStatus = ship.getShipsStatus();\n\t\tString status = shipsStatusLabel.getText();\n\t\tshipsStatusLabel.setText( status + shipStatus + \"HP\");\n\t\t\n\t\tdouble shipCap = ship.getCapacity();\n\t\tString capacity = shipsCurrentCapacityLabel.getText();\n\t\tshipsCurrentCapacityLabel.setText(capacity + String.format(\"%.2f\", shipCap) + \"m^3\");\n\t\t\n\t\tint shipSpeed = ship.getShipsSpeed();\n\t\tString speed = shipsSpeedLabel.getText();\n\t\tshipsSpeedLabel.setText( speed + shipSpeed + \" km/day\");\n\t\t\n\t\tint shipCrew = ship.getCrew();\n\t\tString crew = crewsInShipLabel.getText();\n\t\tcrewsInShipLabel.setText(crew + shipCrew + \" people\");\n\t\t\n\t\tArrayList<Equipment> shipsEquipment = ship.getEquipment();\n\t\tArrayList<String> shipsEquipmentName = new ArrayList<String>();\n\t\tfor (Equipment equipment: shipsEquipment) {\n\t\t\tshipsEquipmentName.add(equipment.getName());\n\t\t}\n\t\tString equipments = shipsEquipmentLabel.getText();\n\t\tshipsEquipmentLabel.setText(equipments + shipsEquipmentName);\n\t\t\n\t}", "public DanhSachHocPhanDaDangKi() {\n initComponents();\n updateTable();\n }", "public Husdjurshotell(){}", "public String getBuilding() {\n return building;\n }", "public void levelBuilder() {\r\n\t\t//round 1\r\n\t\tEnemy[] round1Enemy = new Enemy[1];\r\n\t\tround1Enemy[0] = new Enemy();\r\n\t\t\tround1Enemy[0].type = 0;\r\n\t\t\tround1Enemy[0].imag = (MyFrame.refFrame).client.getOtherPlayer(0).getCardLeader().getCardImage();\r\n\t\t\tround1Enemy[0].position = new vec2(157, 0); \r\n\t\t\tround1Enemy[0].size = new vec2(185, 201); //X: 0~500 Y:250 lower\r\n\t\t\tround1Enemy[0].blood = (MyFrame.refFrame).client.getOtherPlayer(0).getHp();\r\n\t\t\tround1Enemy[0].currentBlood = (MyFrame.refFrame).client.getOtherPlayer(0).getHp();\r\n\t\t\tround1Enemy[0].attackCD = 0;\r\n\t\t\tround1Enemy[0].attack = 0;\r\n\t\t\tround1Enemy[0].initialCD = 0;\r\n\t\t\tround1Enemy[0].defense = 0;\r\n\t\t\t\r\n\t\tround[0].addEnemy(round1Enemy);\r\n\t}", "public MyRoom(int id, String name, String building, int size) {\r\n this.id = id;\r\n this.name = name;\r\n this.building = building;\r\n this.size = size;\r\n }", "public void setId1(int value) {\n this.id1 = value;\n }", "@Override\n public int getId() {\n return 0;\n }", "List<Room> selectRoomList(@Param(\"building\") String building);", "public add_karyawan() {\n initComponents();\n showTable();\n randomNumber();\n setLocation(500, 200);\n }", "public java.lang.String getBed() {\r\n return localBed;\r\n }", "@Override\n\tpublic String toString() {\n\t\treturn namaBulan;\n\t}", "public String getBuildingarea() {\r\n\t\treturn buildingarea;\r\n\t}", "public void setBuildingid(Integer buildingid) {\r\n this.buildingid = buildingid;\r\n }", "public static void generateDefaults() {\n Building temp = BuildingList.getBuilding(0);\n SubAreas temp2 = temp.getSubArea(1);\n temp2.createFireSensor();\n temp2.createMotionSensor();\n temp2 = temp.getSubArea(2);\n temp2.createMotionSensor();\n temp2 = temp.getSubArea(3);\n temp2.createMotionSensor();\n temp2.createFireSensor();\n temp2 = temp.getSubArea(5);\n temp2.createFireSensor();\n temp2 = temp.getSubArea(6);\n temp2.createFireSensor();\n temp2.createMotionSensor();\n }", "@FXML\n public void addWell() {\n \tnew eMenuHandler().hideMenu();\n \tDisplayBuildingInstructions.showBuildingInstr();\n \tAddEntityOnMouseClick.setBuildMode(Boolean.TRUE);\n \tAddEntityOnMouseClick.entityList(new BuildingWell(0, 0));\n \n }", "public Rectangle getBuilding()\r\n {\r\n return building;\r\n }", "public void setIdBoleta(int value) {\n this.idBoleta = value;\n }" ]
[ "0.52555716", "0.524468", "0.5187997", "0.5163943", "0.5145605", "0.5134849", "0.50763893", "0.503151", "0.50132847", "0.5010132", "0.4991756", "0.49912998", "0.4916576", "0.48956764", "0.4877594", "0.48614937", "0.48470512", "0.48459005", "0.48345274", "0.48321477", "0.48235136", "0.48179948", "0.48157993", "0.48083922", "0.48083106", "0.4793744", "0.4789981", "0.47874945", "0.4766564", "0.475603", "0.47532392", "0.47520217", "0.47402543", "0.4722784", "0.47172832", "0.47132587", "0.47117403", "0.47105274", "0.4710197", "0.47027785", "0.4696671", "0.4692836", "0.46927068", "0.46923274", "0.4681114", "0.468006", "0.46762785", "0.4674347", "0.46671492", "0.4664198", "0.46639675", "0.46635658", "0.4660733", "0.46544173", "0.4651803", "0.46482584", "0.4644081", "0.46370792", "0.46357295", "0.46354467", "0.4624203", "0.46200618", "0.4612054", "0.46103343", "0.4608284", "0.4608284", "0.459708", "0.4596249", "0.45941257", "0.45905885", "0.45848718", "0.45785213", "0.457294", "0.4571633", "0.45708567", "0.4561739", "0.45608002", "0.45605862", "0.4559569", "0.45584866", "0.45573142", "0.45542014", "0.45505738", "0.4549411", "0.45493764", "0.45481086", "0.45478114", "0.45476913", "0.45475638", "0.45470715", "0.45466903", "0.45434213", "0.45421496", "0.45390624", "0.45371932", "0.45341915", "0.45337594", "0.45257145", "0.45220387", "0.45192054" ]
0.5687269
0
_1: with specific test context and state. .id : bedroomsone .value : 1 .title : .class : Html.LABEL .classIndex : 0
protected GuiTestObject bed_1(TestObject anchor, long flags) { return new GuiTestObject( getMappedTestObject("bed_1"), anchor, flags); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected GuiTestObject bed_1() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"bed_1\"));\n\t}", "@Test\r\n public void ActionableTrainingTest() {\n WebElement title1 = driver.findElement(By.cssSelector(\"h3.uagb-ifb-title\"));\r\n \r\n //Assertion for title of the first info box\r\n Assert.assertEquals(title1.getText(), \"Actionable Training\");\r\n \r\n //Print heading of the first info box\r\n Reporter.log(\"Heading is: \" + title1.getText(), true);\r\n }", "protected GuiTestObject bed_2() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"bed_2\"));\n\t}", "protected GuiTestObject bed_5() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"bed_5\"));\n\t}", "protected GuiTestObject bed_3() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"bed_3\"));\n\t}", "protected GuiTestObject bed_4() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"bed_4\"));\n\t}", "protected GuiTestObject title() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"title\"));\n\t}", "@Test\n public void resalePropertyMatch() throws UiObjectNotFoundException {\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"btn_create_post\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"lbl_resale_prop\")).click();\n device.findObject(By.text(\"Search building name\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"input_search\")).setText(\"Icon\");\n device.wait(Until.findObject(By.text(\"Icon Linera\")), 10000);\n device.findObject(By.text(\"Icon Linera\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"dd_configuration\")).click();\n device.findObject(By.text(\"3 BHK\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"txt_pricing\")).click();\n device.findObject(By.text(\"7\")).click();\n device.findObject(By.text(\"5\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"Done\")).click();\n device.wait(Until.findObject(By.text(\"sq ft\")), 2000);\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"txt_carpet_area\")\n .childSelector(new UiSelector().className(Utils.EDIT_TEXT_CLASS))).setText(\"1200\");\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"dd_floor\")).click();\n device.findObject(By.text(\"Higher\")).click();\n device.findObject(By.text(\"4\")).click();\n UiScrollable postView = new UiScrollable(new UiSelector().scrollable(true));\n UiSelector postSelector = new UiSelector().text(\"POST\");\n postView.scrollIntoView(postSelector);\n device.findObject(postSelector).click();\n device.wait(Until.findObject(By.text(\"POST\").enabled(true)), 10000);\n String matchNameString = device.findObject(By.textContains(\"matches\")).getText().split(\" \")[0];\n device.findObject(By.text(\"POST\")).click();\n device.wait(Until.findObject(By.text(\"RESALE PROPERTY\")), 9000);\n Assert.assertNotEquals(\"Test Case Failed...No Match found\", \"no\", matchNameString.toLowerCase());\n String postMatchName = device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"lbl_name\")).getText();\n Assert.assertEquals(\"Test Case Failed...Match should have had been found with\", \"dialectic test\", postMatchName.toLowerCase());\n\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"btn_close\")).click();\n Utils.markPostExpired(device);\n }", "private void commonLoadTestForHtml(){\n\t\tWebElement tree = getElement(\"id=tree\");\n\t\tlog(\"Found Element for id=tree \" + tree.toString());\n\n\t\t//Make sure News attributes are correct\n\t\tWebElement news = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#news']['title']\\\"}\");\n\t\tAssert.assertNotNull(news);\n\t\tnews.click();\n\n\t\tString content = getText(RESULTS_CONTAINER);\n\t\tlog(\"content\"+content);\n waitForText(RESULTS_CONTAINER, \"id=news\");\n\n\n\t\t// Finds the blogs node and make sure its not null\n\t\twaitForElementVisible(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#blogs']['disclosure']\\\"}\");\n\t\tWebElement blogs = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#blogs']['disclosure']\\\"}\");\n\n\t\tlog(\"Node: \" + blogs);\n\n\t\tAssert.assertNotNull(blogs);\n\n\t\tblogs.click(); // This should expand the node blogs\n\n\t\t//Find the children of blogs node: Today\n\t\tWebElement today = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#today']['title']\\\"}\");\n\n\t\t//Find the children of blogs node: Previous\n\t\tWebElement previous = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#prev']['title']\\\"}\");\n\n\t\tWebElement previousDiscIcon = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#prev']['disclosure']\\\"}\");\n\n\t\tAssert.assertNotNull(previousDiscIcon);\n\n\t\t//Click on Previous Node\n\t\twaitForElementVisible(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#prev']['disclosure']\\\"}\");\n\t\tpreviousDiscIcon.click();\n\n\t\t//Find the children of previous node: Yesterday\n\t\tWebElement yesterday = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#yesterday']['title']\\\"}\");\n\n\t\t//Find the children of previous node: 2DaysBack\n\t\tWebElement twodaysback = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#daysback2']['title']\\\"}\");\n\n\n\n\n\t}", "@Test\n public void test13() {\n List<String> name = response.extract().path(\"data.findAll{it.state=='MN'}.name\");\n System.out.println(\"------------------StartingTest---------------------------\");\n System.out.println(\"The store names where state is MN are :: \" + name);\n System.out.println(\"------------------End of Test---------------------------\");\n }", "@Test\n public void rentPropertyMatch() throws UiObjectNotFoundException {\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"btn_create_post\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"lbl_rental_prop\")).click();\n device.findObject(By.text(\"Search building name\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"input_search\")).setText(\"Icon\");\n device.wait(Until.findObject(By.text(\"Icon Viva\")), 10000);\n device.findObject(By.text(\"Icon Viva\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"dd_configuration\")).click();\n device.findObject(By.text(\"1 BHK\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"txt_pricing\")).click();\n device.findObject(By.text(\"2\")).click();\n device.findObject(By.text(\"5\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"Done\")).click();\n device.wait(Until.findObject(By.text(\"Yes\")), 2000);\n device.findObject(By.text(\"Yes\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"dd_furnishing\")).click();\n device.findObject(By.text(\"Fully-Furnished\")).click();\n UiScrollable postView = new UiScrollable(new UiSelector().scrollable(true));\n UiSelector postSelector = new UiSelector().text(\"POST\");\n postView.scrollIntoView(postSelector);\n device.findObject(postSelector).click();\n device.wait(Until.findObject(By.text(\"POST\").enabled(true)), 10000);\n String matchNameString = device.findObject(By.textContains(\"matches\")).getText().split(\" \")[0];\n device.findObject(By.text(\"POST\")).click();\n device.wait(Until.findObject(By.text(\"RENTAL PROPERTY\")), 9000);\n Assert.assertNotEquals(\"Test Case Failed...No Match found\", \"no\", matchNameString.toLowerCase());\n String postMatchName = device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"lbl_name\")).getText();\n Assert.assertEquals(\"Test Case Failed...Match should have had been found with\", \"dialectic test\", postMatchName.toLowerCase());\n\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"btn_close\")).click();\n Utils.markPostExpired(device);\n }", "@Test\n\t\t public void testLocationOne() {\n\t\t \tdriver.get(\"http://mq-devhost-lm52.ihost.aol.com:9002/us/nj/upper-montclair/bellevue-ave-valley-rd\");\n\t\t \tAssertJUnit.assertEquals(Utils.getElementText(driver,PageLayoutSelectors.TOP_NAME),\"Bellevue Ave & Valley Rd\");\n\t\t }", "private void commonLoadTestForJson(){\n\t\tWebElement tree = getElement(\"id=tree\");\n\t\tlog(\"Found Element for id=tree \" + tree.toString());\n\n\t\t//Make sure News attributes are correct\n\t\tWebElement news = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#news']['title']\\\"}\");\n\t\tAssert.assertNotNull(news);\n\t\tnews.click();\n\n\t\tString content = getText(RESULTS_CONTAINER);\n\t\tlog(\"content\"+content);\n content.contains(\"id=news\");\n\n\n\n\t\t// Finds the blogs node and make sure its not null\n\t\twaitForElementVisible(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#blogs']['disclosure']\\\"}\");\n\t\tWebElement blogs = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#blogs']['disclosure']\\\"}\");\n\n\t\tlog(\"Node: \" + blogs);\n\n\t\tAssert.assertNotNull(blogs);\n\n\t\tblogs.click(); // This should expand the node blogs\n\n\t\tlog(\"clicked\");\n\n\t\t//Find the children of blogs node: Today\n\t\tWebElement today = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#today']['title']\\\"}\");\n\n\t\t//Find the children of blogs node: Yesterday\n\t\tWebElement yesterday = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#yesterday']['title']\\\"}\");\n\n\t\t//Find the children of blogs node: 2DaysBack\n\t\tWebElement twodaysback = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#2daysback']['title']\\\"}\");\n\n\n\t\t//Find the children of blogs node: Archive\n\t\tWebElement archive = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#archive']['title']\\\"}\");\n\n\t}", "@Test(priority=99, enabled = true)\n\t public void PhysicalLocationDropDown_ComponentGroups() throws IOException, InterruptedException {\n\t\t Thread.sleep(5000); \n\t\t // select the Properties set\t\n\t\t clickByXpath(\"//*[@id='content-wizard']/grouping-wizard/div/table/tbody/tr[1]/td[3]/div[1]/property-choice/div/div/a/div/b\");\n\t\t Thread.sleep(3000);\n\t\t \n\t\t //select the option\t \n\t\t clickByXpath(\"//*[@id='content-wizard']/grouping-wizard/div/table/tbody/tr[1]/td[3]/div[1]/property-choice/div/div/div/ul/li[2]\"); \n\t Thread.sleep(8000);\n\t \n\t // Click on Discard button\n\t clickByXpath(\"html/body/div[4]/div/div/div[2]/div/div/form/div[2]/a\");\n\t\t Thread.sleep(3000); \n\t \n\t\t //TestLink 440 - Testcase 5\n\t\t Thread.sleep(8000); \n\t\t// select the Properties set\t\n\t\t clickByXpath(\"//*[@id='content-wizard']/grouping-wizard/div/table/tbody/tr[1]/td[3]/div[1]/property-choice/div/div/a/div/b\");\n\t\t Thread.sleep(3000);\n\t\t \n\t\t //select the option\t \n\t\t clickByXpath(\"//*[@id='content-wizard']/grouping-wizard/div/table/tbody/tr[1]/td[3]/div[1]/property-choice/div/div/div/ul/li[2]\"); \n\t Thread.sleep(8000);\n\t \t\t \n\t //TestLink 434 - Testcase 2\n\t //Enter Abbreviation\n\t\t sendvaluebyxpath(\"html/body/div[4]/div/div/div[2]/div/div/form/div[1]/div/div/div/div/div[1]/div/input\", \"Edits\"); \n\t\t Thread.sleep(8000);\n\t\t \n\t\t //Enter Location\n\t\t sendvaluebyxpath(\"html/body/div[4]/div/div/div[2]/div/div/form/div[1]/div/div/div/div/div[2]/div/input\", \"Auto Locat\"); \n\t\t Thread.sleep(8000);\n\t\t \n\t\t // Click on Save button\n\t\t clickByXpath(\"//*[@id='submit-button']\");\n\t\t Thread.sleep(3000); \t \n\t\t \t\t \n\t }", "@Test\n public void test085() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Checkbox checkbox0 = new Checkbox(errorPage0, \">}\\\"_\", \">}\\\"_\");\n String[] stringArray0 = new String[6];\n Checkbox checkbox1 = (Checkbox)checkbox0.attributes(stringArray0);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertFalse(checkbox1._isGeneratedId());\n }", "@Test\n public void rentClientMatch() throws UiObjectNotFoundException {\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"btn_create_post\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"lbl_rental_client\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"txt_name\")\n .childSelector(new UiSelector().className(Utils.EDIT_TEXT_CLASS))).setText(\"Icon Windsor Rent\");\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"dd_configuration\")).click();\n device.findObject(By.text(\"3 BHK\")).click();\n clickButton(device);\n device.wait(Until.findObject(By.text(\"No\")), 2000);\n device.findObject(By.text(\"No\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"dd_furnishing\")).click();\n device.findObject(By.text(\"Fully-Furnished\")).click();\n clickButton(device);\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"txt_pricing\")\n .childSelector(new UiSelector().index(1))).click();\n device.findObject(By.text(\"2\")).click();\n device.findObject(By.text(\"5\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n clickButton(device);\n device.wait(Until.findObject(By.text(\"Building Names\")), 2000);\n device.findObject(By.text(\"ADD BUILDING\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"input_search\")).setText(\"Icon\");\n device.wait(Until.findObject(By.text(\"Icon Windsor Park\")), 10000);\n device.findObject(By.text(\"Icon Windsor Park\")).click();\n clickButton(device);\n UiScrollable postView = new UiScrollable(new UiSelector().scrollable(true));\n UiSelector postSelector = new UiSelector().text(\"POST\");\n postView.scrollIntoView(postSelector);\n device.findObject(postSelector).click();\n device.wait(Until.findObject(By.text(\"POST\").enabled(true)), 10000);\n String matchNameString = device.findObject(By.textContains(\"matches\")).getText().split(\" \")[0];\n device.findObject(By.text(\"POST\")).click();\n device.wait(Until.findObject(By.text(\"RENTAL CLIENT\")), 9000);\n Assert.assertNotEquals(\"Test Case Failed...No Match found\", \"no\", matchNameString.toLowerCase());\n String postMatchName = device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"lbl_name\")).getText();\n Assert.assertEquals(\"Test Case Failed...Match should have had been found with\", \"dialectic test\", postMatchName.toLowerCase());\n\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"btn_close\")).click();\n Utils.markPostExpired(device);\n }", "@Test\n public void test094() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Hidden hidden0 = new Hidden(errorPage0, \"\", \"\");\n Image image0 = new Image(hidden0, \"\", \"\");\n Label label0 = (Label)errorPage0.ins((Object) image0);\n Block block0 = (Block)errorPage0.h3();\n Label label1 = (Label)errorPage0.u((Object) errorPage0);\n assertTrue(label1._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "public static void viewPage(WebDriver driver, String sTestCaseName) throws Exception{\r\n\t\r\n\t\t//Check that all of the elements of that are expected are displayed\r\n\t\tObjects_Job_Completion_Summary_Page.lbl_Summary(driver).isDisplayed();{\r\n\t\tLog.info(sTestCaseName + \" | Summary label displayed as expected\");\r\n\t\t}\r\n\r\n\t\tif (\"Exchange_1_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t||\"INST_14_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t||\"Exchange_19_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t||\"Exchange_1_End_To_End_Spark_Chrome\".equals(sTestCaseName))\r\n\t\t{ \r\n\t\t\tObjects_Job_Completion_Summary_Page.lbl_Gas_Meter_Mprn(driver).isDisplayed();{\r\n\t\t\tLog.info(sTestCaseName + \" | Gas Meter MPRN label displayed as expected\");\r\n\t\t\t}\t\t\r\n\t\t}\r\n\t\telse if (\"Exchange_2_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"NMEX_5_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_15_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_20_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_11_End_To_End_Spark_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_2_End_To_End_Spark_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_5_End_To_End_Spark_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"FLTY_2_End_To_End_Spark_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_5_End_To_End_Spark_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_8_End_To_End_ECOT_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"NMEX_5_End_To_End_Spark_Chrome\".equals(sTestCaseName))\r\n\t\t{ \r\n\t\t\tObjects_Job_Completion_Summary_Page.lbl_Electricity_Meter_Mpan(driver).isDisplayed();{\r\n\t\t\tLog.info(sTestCaseName + \" | Electricity Meter MPAN label displayed as expected\");\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"Doing the elseif\"); \r\n\t\t}\r\n\t\telse if (\"Exchange_3_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_9_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_3_Elec_HAN_WAN_Checks_Page_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_3_Gas_Meter_Post_Installation_Gas_Tightness_Test_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_3_Gas_Meter_Pre_Installation_Gas_Tightness_Test_Failed_Test_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_3_Gas_Meter_Pre_Installation_Gas_Tightness_Test_Low_Pressure_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_3_Gas_Risk_Assessment_Gas_Abort_Low_Pressure_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_3_Gas_Risk_Assessment_Gas_Abort_Med_Pressure_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_3_Gas_SMeter_Post_Installation_Pressure_Drop_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_9_Elec_HAN_WAN_Checks_Page_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_9_Gas_Meter_Initial_Risk_Assessment_Gas_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_9_Gas_Meter_Post_Installation_Gas_Tightness_Test_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_9_Gas_Meter_Pre_Installation_Gas_Tightness_Test_Failed_Test_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_9_Gas_Meter_Pre_Installation_Gas_Tightness_Test_Low_Pressure_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_9_Gas_Risk_Assessment_Gas_Abort_Low_Pressure_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_9_Gas_Risk_Assessment_Gas_Abort_Med_Pressure_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"FLTY_17_Gas_Meter_Post_Installation_Gas_Tightness_Test_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"FLTY_17_Gas_Meter_Pre_Installation_Gas_Tightness_Test_Failed_Test_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"FLTY_17_Gas_Meter_Pre_Installation_Gas_Tightness_Test_Low_Pressure_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"FLTY_17_Gas_Risk_Assessment_Gas_Abort_Low_Pressure_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"FLTY_17_Gas_Risk_Assessment_Gas_Abort_Med_Pressure_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"FLTY_17_Gas_Suitable_For_Smart_Installation_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_21_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_16_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_9_End_To_End_Spark_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"FLTY_17_End_To_End_Spark_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_3_End_To_End_ECOT_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_12_End_To_End_ECOT_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_12_Elec_HAN_WAN_Checks_Page_Abort_ECOT_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_12_Elec_Initial_Polarity_Check_At_Meter_Page_Abort_ECOT_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_12_Elec_Initial_Risk_Assessment_Page_Abort_ECOT_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_12_Elec_Risk_Assessment_Page_Abort_ECOT_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_12_Elec_Suitable_For_Smart_Installation_Page_Abort_ECOT_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_12_End_To_End_Found_Meter_ECOT_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_3_Elec_HAN_WAN_Checks_Page_Abort_ECOT_Chrome\".equals(sTestCaseName))\r\n\t\t{ \r\n\t\t\tObjects_Job_Completion_Summary_Page.lbl_Electricity_Meter_Mpan(driver).isDisplayed();{\r\n\t\t\tLog.info(sTestCaseName + \" | Electricity Meter MPAN label displayed as expected\");\r\n\t\t\t}\r\n\t\t \r\n\t\t\tObjects_Job_Completion_Summary_Page.lbl_Gas_Meter_Mprn(driver).isDisplayed();{\r\n\t\t\tLog.info(sTestCaseName + \" | Gas Meter MPRN label displayed as expected\");\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"Doing the elseif\"); \r\n\t\t} \r\n\t\telse \t\t\r\n\t\t{ \r\n\t\t\tSystem.out.println(\"Doing the else \"); \r\n\t\t}\t\t\t\t\t\t\r\n\t\tObjects_Job_Completion_Summary_Page.btn_Potential_Customer_Vulnerability_Identified_Yes(driver).isDisplayed();{\r\n\t\tLog.info(sTestCaseName + \" | Potential Customer Vulnerability Identified - Yes radio button displayed as expected\");\r\n\t\t}\r\n\t\t\r\n\t\tObjects_Job_Completion_Summary_Page.txt_Additional_Notes(driver).isDisplayed();{\r\n\t\tLog.info(sTestCaseName + \" | Additional notes textbox displayed as expected\");\r\n\t\t}\r\n\t\t\r\n\t\tObjects_Job_Completion_Summary_Page.btn_Customer_Agreement_Yes(driver).isDisplayed();{\r\n\t\tLog.info(sTestCaseName + \" | Customer Agreement - Yes radio button displayed as expected\");\r\n\t\t}\r\n\t\t\r\n\t\tObjects_Job_Completion_Summary_Page.btn_Customer_Agreement_No(driver).isDisplayed();{\r\n\t\tLog.info(sTestCaseName + \" | Customer Agreement - No radio button displayed as expected\");\r\n\t\t}\r\n\t\t\r\n\t\t\t\r\n\t\t//Take a screenshot to show what we've done\r\n\t\tUtils.takeScreenshot(driver, sTestCaseName + \"-viewPage\");\r\n\t\t\r\n\t//END OF VIEW PAGE METHOD\r\n\t}", "@Test\n public void underweightCategoryFirstRangeInKgAndCm() {\n\n driver.findElement(By.xpath(\"//input[@name='wg']\")).sendKeys(\"47\");\n driver.findElement(By.xpath(\"//input[@name='ht']\")).sendKeys(\"177\");\n driver.findElement(By.xpath(\"//input[@name='cc']\")).click();\n Assert.assertEquals(driver.findElement(By.name(\"desc\")).getAttribute(\"value\"), \"Your category is Underweight\",\n \"actual text is not: Your category is Underweight\");\n }", "public void Select_Alternateproperty_BookNow(String SelectProperty)\r\n\t{\r\n\t\tfor(WebElement propertys:Alternateproperty_name)\t\r\n\t\t{\t\r\n\t\t\tif(propertys.isDisplayed())\r\n\t\t\t{\r\n\t\t\t\tif(propertys.getText().equals(SelectProperty))\r\n\t\t\t\t{\r\n\t\t\t\t\tpropertys.click();\r\n\t\t\t\t\ttest.log(Status.INFO, SelectProperty+\" property selected successfully\");\t\r\n\t\t\t\t\tlogger.info( SelectProperty+\" property selected successfully\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\ttest.log(Status.FAIL, SelectProperty+\" property not found \");\r\n\t\t\t\tlogger.error(SelectProperty+\" property not found \");\r\n\t\t\t}\r\n\t\t}\r\n\t\t/*try\r\n\t\t{\r\n\t\t\tExplicitWait(SeleniumRepo.driver.findElement(By.xpath(\"(//*[text()='\"+SelectProperty+\"' and @ng-bind='booking.hotel.name'])[1]\")));\r\n\t\tWebElement Booking_Propoertyname=SeleniumRepo.driver.findElement(By.xpath(\"(//*[text()='\"+SelectProperty+\"' and @ng-bind='booking.hotel.name'])[1]\"));\r\n\r\n\t\t\t\ttest.log(Status.PASS, SelectProperty+\" property displayed on Map Successfully\");\r\n\t\t\t\tlogger.info(SelectProperty+\" property displayed on Map Successfully\");\r\n\r\n\t\t\ttest.log(Status.FAIL, SelectProperty+\" property not found on Map \");\r\n\t\t\tlogger.error(SelectProperty+\" property not found on Map\");\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tWebElement Booking_Propoertyname=SeleniumRepo.driver.findElement(By.xpath(\"(//*[text()='\"+SelectProperty+\"' and @ng-bind='booking.hotel.name'])[2]\"));\r\n\r\n\t\t\tif(Booking_Propoertyname.isDisplayed())\r\n\t\t\t{\r\n\t\t\t\t\ttest.log(Status.PASS, SelectProperty+\" property displayed on Map Successfully\");\r\n\t\t\t\t\tlogger.info(SelectProperty+\" property displayed on Map Successfully\");\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\ttest.log(Status.FAIL, SelectProperty+\" property not found on Map \");\r\n\t\t\t\tlogger.error(SelectProperty+\" property not found on Map\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t */\r\n\t}", "@Test\n public void selenium(){\n LandingPage landingPage = new LandingPage();\n landingPage.setDriver(driver);\n landingPage\n .assertTitle()\n .clickFindMeeting()\n .assertTitle()\n .search(\"10011\")\n .printFirstLocation()\n .printFirstDistance()\n .clickOnLocation()\n .assertLocationMatches()\n .printTodaysHours();\n }", "public interface InventoryPageOR {\n\n String inventoryPage = \"xpath= //div[@class='NavMenuTitle']//span[text()='Inventory']\";\n String aD_type = \"xpath= //select[contains(@id,'AdType_DropDownList1')]\";\n String mediaGroupField = \"xpath= //select[contains(@id,'MediumGroup_DropDownList1')]\";\n String Mediabox = \"xpath= //select[contains(@id,'Media_ListBox1')]\";\n String selection = \"xpath= //select[contains(@id, 'Section_ListBox1')]\";\n String inventory_placement = \"xpath= //select[contains(@id, 'Inventory_ListBox1')]\";\n String period = \"xpath= //select[contains(@id,'BkingPeriod_ddlPeriod')]\";\n String pages = \"xpath= //input[contains(@id,'blInventoryView_1')]\";\n String matrix = \"xpath= //input[@id='ctl00_cphMain_srch03_rblInventoryView_0']\";\n String list = \"css= #ctl00_cphMain_srch02_rblInventoryView_2\";\n String Adsize = \"xpath= //select[contains(@id,'AdSize_DropDownList1')]\";\n String get_inventory = \"xpath= //input[contains(@id,'btnGetInventory')]\";\n String mediatype = \"xpath= //select[@id='ctl00_cphMain_srch01_lbMedia_ListBox1']//option[@value='GAZE']\";\n String newSearch = \"css= input[value='New Search']\";\n String screenlock = \"css= .inv_wait\";\n String selectplusiconforbydate = \"xpath= //td[@class='%s']/../..//input[@class='InvResultCol Select linkButton new']\";\n String housingGarden = \"css= tr [title = 'www.houseandgarden.com']\";\n String startAndEnddate = \"xpath= //tr[@title = 'www.houseandgarden.com']/..//tr[@title='www.houseandgarden.com - Run of Site']/td[%d]\";\n String startAndEnddateofbridge = \"xpath= //tr[@title = 'www.bridesmagazine.com']/..//tr[@title='www.bridesmagazine.com - Run of Site']/td[%d]\";\n String verifyIteminCart = \"css= #tabs-li-cart a#acart\";\n String addtoCart = \"xpath= //li//a[contains(text(), 'Add to cart')]\";\n String torange = \"css= #ctl00_cphMain_srch02_ucBkingPeriod_dteRangeTo_iwdcDate_input\";\n String customer = \"css= #ctl00_cphMain_ucCart_btnCustomer\";\n String companyName = \"css= #ctl00_cphMain_ucCustomer_ctlModalBuyerCompany_btnModal\";\n String contactName = \"css= #ctl00_cphMain_ucCustomer_ctlModalBuyerContact_btnModal\";\n String companyNameField = \"css= #Search_FieldSelect0_txtValue1\";\n String searchButton = \"css= #Search_GoButton\";\n String selectCompany = \"css= .ig_5aac757b_rcb1112.SelectionSearch.btnOpenSite\";\n String selectContact = \"css= .ig_5aac757b_rcb1112.SelectionSearch.btnOpenContact\";\n\n\n}", "public Scenario() {\n Room ninjaRoom, weaponroom, meetingRoom, zenTemple, stealthRoom, restRoom, masterRoom, ninjaTransporter;\n\n // create the rooms\n ninjaRoom = new Room(\"in the main enterence to the camp. You'll need to walk 10000 steps to get to the next room.\");\n weaponroom = new Room(\"in the Weapon's room. Normally this is where you go to grab your Nunchaku, but not today.\");\n meetingRoom = new Room(\"in the Meeting room. This is where classes are normally held. We will be here tomorrow to be sure\");\n zenTemple = new Room(\"in the Meditation room. When done for the day, this is where you clear your head.\");\n stealthRoom = new Room(\"in the Stealth training room. Ninja are made here, slow but steady will keep you alive.\");\n restRoom = new Room(\"in the Barracks. When I am done for th day, I will come back here for some rest.\");\n masterRoom = new Room(\"in the Master's room. Master is current meditating right now. Better leave him alone.\");\n ninjaTransporter = new TransporterRoom(\"in the secret Shumpo room...with this I can teleport anywhere\", this);\n\n weaponroom.addItem(new Item(\"Katana\", 3));\n weaponroom.addItem(new Item(\"Nunchaku\", 1));\n weaponroom.addItem(new Item(\"Bo\", 2));\n weaponroom.addItem(new Item(\"Sai\", 2));\n ninjaRoom.addItem(new Item(\"Master's Keys\", 1));\n meetingRoom.addItem(new Item(\"Secret Plans\", 1));\n zenTemple.addItem(new Item(\"Prayer beads\", 1));\n stealthRoom.addItem(new Item(\"Throwing Star\", 2));\n restRoom.addItem(new Item(\"Risque magazines\", 1));\n masterRoom.addItem(new Item(\"Ancient Shinobi Scroll\", 5));\n\n // initialise room exits\n ninjaRoom.setExits(\"north\", ninjaTransporter);\n\n ninjaTransporter.setExits(\"north\", weaponroom);\n ninjaTransporter.setExits(\"south\", ninjaRoom);\n\n weaponroom.setExits(\"north\", meetingRoom);\n weaponroom.setExits(\"south\", ninjaTransporter);\n\n meetingRoom.setExits(\"north\", stealthRoom);\n meetingRoom.setExits(\"east\", restRoom);\n meetingRoom.setExits(\"south\", weaponroom);\n meetingRoom.setExits(\"west\", zenTemple);\n\n zenTemple.setExits(\"east\", meetingRoom);\n\n stealthRoom.setExits(\"south\", meetingRoom);\n\n restRoom.setExits(\"east\", masterRoom);\n restRoom.setExits(\"west\", meetingRoom);\n\n masterRoom.setExits(\"west\", restRoom);\n\n // Set the start room\n startRoom = ninjaRoom; // start game @ ninjaRoom\n\n rooms = new ArrayList();\n rooms.add(ninjaRoom);\n rooms.add(weaponroom);\n rooms.add(meetingRoom);\n rooms.add(zenTemple);\n rooms.add(stealthRoom);\n rooms.add(restRoom);\n rooms.add(masterRoom);\n rooms.add(ninjaTransporter);\n\n random = new Random();\n }", "@Test\n public void seeInfoAboutItemAisleFromDepartmentView() {\n String itemTest = \"Bell Peppers\";\n String aisleCheck = \"Aisle: 2\";\n String aisleDescriptionCheck = \"Aisle Description: Between Aisle 1 and Frozen Aisle\";\n onView(withId(R.id.navigation_home)).perform(click());\n onView(withId(R.id.card_view_department)).perform(click());\n onView(withText(\"Produce\")).perform(click());\n onView(withId(R.id.department_items_list_recycler_view)).perform(RecyclerViewActions.actionOnItemAtPosition(16, click()));\n onView(withText(\"VIEW MORE INFORMATION\")).perform(click());\n onView(withId(android.R.id.message)).check(matches(allOf(withSubstring(aisleCheck), isDisplayed())));\n onView(withId(android.R.id.message)).check(matches(allOf(withSubstring(aisleDescriptionCheck), isDisplayed())));\n }", "protected GuiTestObject bungalow() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"bungalow\"));\n\t}", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n DynamicSelectModel dynamicSelectModel0 = new DynamicSelectModel();\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = new Label(errorPage0, dynamicSelectModel0);\n dynamicSelectModel0.setComponent(label0);\n Component component0 = dynamicSelectModel0.getComponent();\n assertEquals(\"Label_1\", component0.getComponentId());\n }", "protected TextGuiTestObject house_Number() \n\t{\n\t\treturn new TextGuiTestObject(\n getMappedTestObject(\"house_Number\"));\n\t}", "@Test\n void buildWaredDrobeTest() {\n WaredDrobeBuilder waredDrobeBuilder = new WaredDrobeBuilder();\n WaredDrobe waredDrobe = waredDrobeBuilder.build();\n List<String>partlist=waredDrobe.getParts();\n\n List<String>steps = Arrays.asList(\"bottom\",\"side\",\"side\",\"back\",\"top\",\"shelf\",\"shelf\",\"shelf\",\"shelf\",\n \"shelf\",\"shelf\",\"shelf\",\"shelf\",\"door\",\"door\");\n assertEquals(steps,partlist);\n\n\n\n\n }", "@Test\n public void overweightCategorySecondRangeInKgAndCm() {\n\n driver.findElement(By.xpath(\"//input[@name='wg']\")).sendKeys(\"94\");\n driver.findElement(By.xpath(\"//input[@name='ht']\")).sendKeys(\"177\");\n driver.findElement(By.xpath(\"//input[@name='cc']\")).click();\n Assert.assertEquals(driver.findElement(By.name(\"desc\")).getAttribute(\"value\"), \"Your category is Overweight\",\n \"actual text is not: Your category is Overweight\");\n }", "public String verifyUserOnWomenPage(){\n WebElement womenPage = driver.findElement(By.cssSelector(\"div[class='breadcrumb clearfix'] a[title='Dresses']\"));\n String womenPageStatus = womenPage.getText();\n return womenPageStatus;\n }", "@Test\n public void underweightCategorySecondRangeInKgAndCm() {\n\n driver.findElement(By.xpath(\"//input[@name='wg']\")).sendKeys(\"58.6\");\n driver.findElement(By.xpath(\"//input[@name='ht']\")).sendKeys(\"178\");\n driver.findElement(By.xpath(\"//input[@name='cc']\")).click();\n Assert.assertEquals(driver.findElement(By.name(\"desc\")).getAttribute(\"value\"), \"Your category is Underweight\",\n \"actual text is not: Your category is Underweight\");\n }", "@Test\n public void obesityCategory() {\n\n driver.findElement(By.xpath(\"//input[@name='wg']\")).sendKeys(\"102.7\");\n driver.findElement(By.xpath(\"//input[@name='ht']\")).sendKeys(\"185\");\n driver.findElement(By.xpath(\"//input[@name='cc']\")).click();\n Assert.assertEquals(driver.findElement(By.name(\"desc\")).getAttribute(\"value\"), \"Your category is Overweight\",\n \"actual text is not: Your category is Overweight\");\n }", "@Test\n\t\t public void testLocationFour() {\n\t\t \tdriver.get(\"http://mq-devhost-lm52.ihost.aol.com:9002/us/nj/upper-montclair/bellevue-ave-valley-rd\");\n\t\t \tAssertJUnit.assertEquals(Utils.getElementText(driver,PageLayoutSelectors.TOP_NAME),\"Bellevue Ave & Valley Rd\");\n\t\t }", "@Test\n public void resaleClientMatch() throws UiObjectNotFoundException {\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"btn_create_post\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"lbl_resale_client\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"txt_name\")\n .childSelector(new UiSelector().className(Utils.EDIT_TEXT_CLASS))).setText(\"Icon Windsor Resale\");\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"dd_configuration\")).click();\n device.findObject(By.text(\"2 BHK\")).click();\n clickButton(device);\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"txt_pricing\")\n .childSelector(new UiSelector().index(1))).click();\n device.findObject(By.text(\"7\")).click();\n device.findObject(By.text(\"5\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n clickButton(device);\n device.wait(Until.findObject(By.text(\"Min Carpet Area\")), 2000);\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"txt_carpet_area\")\n .childSelector(new UiSelector().className(Utils.EDIT_TEXT_CLASS))).setText(\"880\");\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"dd_floor\")).click();\n device.findObject(By.text(\"Mid\")).click();\n clickButton(device);\n device.wait(Until.findObject(By.text(\"Min Parking\")), 2000);\n device.findObject(By.text(\"4\")).click();\n UiScrollable postView = new UiScrollable(new UiSelector().scrollable(true));\n UiSelector postSelector = new UiSelector().text(\"POST\");\n postView.scrollIntoView(postSelector);\n device.findObject(By.text(\"ADD BUILDING\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"input_search\")).setText(\"Icon\");\n device.wait(Until.findObject(By.text(\"Icon Windsor Apartments\")), 10000);\n device.findObject(By.text(\"Icon Windsor Apartments\")).click();\n clickButton(device);\n postView.scrollIntoView(postSelector);\n device.findObject(postSelector).click();\n device.wait(Until.findObject(By.text(\"POST\").enabled(true)), 10000);\n String matchNameString = device.findObject(By.textContains(\"matches\")).getText().split(\" \")[0];\n device.findObject(By.text(\"POST\")).click();\n device.wait(Until.findObject(By.text(\"RESALE CLIENT\")), 9000);\n Assert.assertNotEquals(\"Test Case Failed...No Match found\", \"no\", matchNameString.toLowerCase());\n String postMatchName = device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"lbl_name\")).getText();\n Assert.assertEquals(\"Test Case Failed...Match should have had been found with\", \"dialectic test\", postMatchName.toLowerCase());\n\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"btn_close\")).click();\n Utils.markPostExpired(device);\n }", "@Test\n\tpublic void TC_01_Web_Element() {\n\t\tdriver.findElement(By.id(\"\")); //**\n\t\t\n\t\t//Tim nhieu element\n\t\tdriver.findElements(By.id(\"\"));//**\n\t\t\n\t\t//If chi thao tac vs element 1 lan thi ko can khai bao bien\n\t\tdriver.findElement(By.id(\"small-searchterms\")).sendKeys(\"Apple\");//**\n\t\t\n\t\t//If can thao tac element nhieu lan thi nen khai bao bien\n\t\tWebElement searchTextbox = driver.findElement(By.id(\"small-searchterms\"));\n\t\tsearchTextbox.clear();//**\n\t\tsearchTextbox.sendKeys(\"Apple\");\n\t\tsearchTextbox.getAttribute(\"value\");//**\n\t\t\n\t\t//driver.findElement(By.id(\"small-searchterms\")).clear();\n\t\t//driver.findElement(By.id(\"small-searchterms\")).sendKeys(\"Apple\");\n\t\t//driver.findElement(By.id(\"small-searchterms\")).getAttribute(\"value\");\n\t\t\n\t\t//Count co bao nhieu element thoa dieu kien\n\t\t//Verify so luong element tra ve nhu mong doi\n\t\t//Thao tac vs all cac loai element giong nhau trong 1 page (checkbox/textbox)\n\t\tList<WebElement> checkboxes = driver.findElements(By.xpath(\"//div[@class='inputs']/input[not(@type='checkbox')]\"));\n\t\t\n\t\t//Lay ra so luong\n\t\tAssert.assertEquals(checkboxes.size(), 6);\n\t\t\n\t\tWebElement singleElement = driver.findElement(By.className(\"\"));\n\t\t\n\t\t//Textbox TextArea/ Edittable dropdown\n\t\t//Du lieu duoc toan ven\n\t\tsearchTextbox.clear();\n\t\tsearchTextbox.sendKeys(\"\");\n\t\t\n\t\t//Button/Link/radio/checkbox/custom dropdown/..\n\t\tsingleElement.click();//**\n\t\t\n\t\t//Cac ham co tien to bat dau bang get lun lun tra ve du lieu \n\t\t//getTitle/ getCurrentUrl/ getPageSource/ getAttribute/ getCssValue/ getText/ get...\n\t\tsingleElement = driver.findElement(By.xpath(\"//input[@id='Firstname']\"));\n\t\tsingleElement.getAttribute(\"\");\n\t\t\n\t\t//Automation\n\t\tsingleElement = driver.findElement(By.xpath(\"//input[@id='small-searchterms']\"));\n\t\tsingleElement.getAttribute(\"placeholder\");\n\t\t//Search store\n\t\t\n\t\t//Lay ra gia tri cua cac thuoc tinh css thuong dung de test GUI\n\t\t//Font/Size/Color/Background/...\n\t\tsingleElement = driver.findElement(By.cssSelector(\"search-box-button\"));\n\t\tsingleElement.getCssValue(\"background-color\");//*\n\t\t//#4ab2f1\n\t\tsingleElement.getCssValue(\"text-transform\");\n\t\t//uppercase\n\t\t\n\t\t//Lay ra toa do element so voi page hien tai (get gox ben ngoai)\n\t\tsingleElement.getLocation();\n\t\t\n\t\t//lay ra kich thuoc cua element (rong x cao) -> get goc ben trong element\n\t\tsingleElement.getSize();\n\t\t\n\t\t//Location + size\n\t\tsingleElement.getRect();\n\t\t\n\t\t//Chup hinh loi => dua vao html export\n\t\tsingleElement.getScreenshotAs(OutputType.FILE);//*\n\t\t\n\t\t\n\t\t//id/class/css/name...//tu 1 element ko bik tagname -> lay ra duoc tagname truyen vao cho 1 locator khac\n\t\tsingleElement = driver.findElement(By.xpath(\"//div[@class='inputs']/input[not(@type='checkbox')]\"));\n\t\tString searchButtonTagname = singleElement.getTagName();//*\n\t\t\n\t\tsearchTextbox = driver.findElement(By.xpath(\"//\" + searchButtonTagname + \"[@class='inputs']/input[not(@type='checkbox')]\"));\n\t\t//input\n\t\t\n\t\t//xpath\n\t\t//tagname[@attribute='value']\n\t\t\n\t\t\n\t\t//lay ra text element (header/link/message/...)\n\t\tsingleElement.getText();//**\n\t\t\n\t\t//Cac ham co tien to la isXXX thi tra ve kieu Boolean (100%)\n\t\t//true/false\n\t\t\n\t\t//kiem tra xem 1 element la hien thi cho nguoi dung thao tac hay ko\n\t\t//true: dang hien thi\n\t\t//false: ko hien thi\n\t\tsingleElement.isDisplayed();//**\n\t\t\n\t\t//kiem tra xem 1 element la disable hay ko\n\t\t//disable: user ko thao tac duoc\n\t\t//true: ko thao tac duoc\n\t\t//false: co the thao tac\n\t\tsingleElement.isEnabled();//*\n\t\t\n\t\t//kiem tra xem 1 element da duoc chon roi hay chua\n\t\t//checkbox/ radio/ dropdown\n\t\t//true: da chon roi\n\t\t//false: chua duoc chon\n\t\tsingleElement.isSelected();//*\n\t\t\n\t\t//no thay cho hanh vi ENTER vao textbox/button\n\t\t//chi dung duoc trong form (Login/search/register/...)\n\t\tsingleElement.submit();\n\t\t\n\t\tsingleElement = driver.findElement(By.id(\"small-searchterms\"));\n\t\tsingleElement.sendKeys(\"Apple\");\n\t\tsingleElement.submit();\n\t\t\n\t\t\n\t\t\n\t}", "public void testGetIdentifier() {\n\t\tassertEquals(item.getIdentifier(),\"cup8\");\r\n\t}", "@Test\n public void test2(){\n\n List<FitActivity> upper = fitActivityRepository.findAllByBodyPart(\"Upper\");\n for (FitActivity fitActivity : upper) {\n System.out.println(fitActivity.getName());\n\n }\n\n }", "@Test\n public void testDAM31304001() {\n\n // Data preparation\n {\n clearAndCreateTestDataForBook();\n }\n\n {\n webDriverOperations.click(id(\"dam31304001\"));\n }\n\n {\n assertThat(webDriverOperations.getText(id(\"getDateResult\")), is(\n \"2016-12-29\"));\n assertThat(webDriverOperations.getText(id(\"getDateClassResult\")),\n is(\"java.time.LocalDate\"));\n assertThat(webDriverOperations.getText(id(\n \"getObjectCertification\")), is(\"true\"));\n }\n }", "@Test\n public void nameDetailNeighbourIsGood() {\n ViewInteraction recyclerView = onView(\n allOf(withId(R.id.list_neighbours),isDisplayed()));\n recyclerView.perform(actionOnItemAtPosition(1, click()));\n\n ViewInteraction textView = onView(\n allOf(withId(R.id.titleNameNeighbour_view), withText(\"Jack\"),\n withParent(withParent(withId(android.R.id.content))),\n isDisplayed()));\n textView.check(matches(withText(\"Jack\")));\n }", "@Test\n public void starvationCategory() {\n\n driver.findElement(By.xpath(\"//input[@name='wg']\")).sendKeys(\"47.5\");\n driver.findElement(By.xpath(\"//input[@name='ht']\")).sendKeys(\"178\");\n driver.findElement(By.xpath(\"//input[@name='cc']\")).click();\n Assert.assertEquals(driver.findElement(By.name(\"desc\")).getAttribute(\"value\"), \"Your category is Starvation\",\n \"actual text is not: Your category is Starvation\");\n }", "@org.testng.annotations.Test\n public void test17_3(){\n testInfo.id(\"test17_3\").suite(\"test_Inspiration\").name(\"Inspiration page from start + check blocks.\");\n photolab.forceStop();\n photolab.open();\n photolab.main.waitToLoad();\n photolab.main.selectCategoryBar(\"Inspiration\");\n photolab.main.selectBlock(\"Top\");\n photolab.main.selectBlock(\"Trending\");\n photolab.main.selectBlock(\"Recent\");\n photolab.main.tapMenu();\n photolab.menu.tapHome();\n }", "@Test\n public void overweightCategoryFirstRangeInKgAndCm() {\n\n driver.findElement(By.xpath(\"//input[@name='wg']\")).sendKeys(\"85.6\");\n driver.findElement(By.xpath(\"//input[@name='ht']\")).sendKeys(\"185\");\n driver.findElement(By.xpath(\"//input[@name='cc']\")).click();\n Assert.assertEquals(driver.findElement(By.name(\"desc\")).getAttribute(\"value\"), \"Your category is Overweight\",\n \"actual text is not: Your category is Overweight\");\n }", "protected GuiTestObject html_main() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"html_main\"));\n\t}", "protected GuiTestObject bed_2(TestObject anchor, long flags) \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"bed_2\"), anchor, flags);\n\t}", "@Test\n public void testNoOpenDaysCheck() {\n window.textBox(\"storeNameTFld\").setText(\"store1\");\n window.textBox(\"numOfSeatsTFld\").setText(\"155\");\n window.textBox(\"storeAddressTFld\").setText(\"address\");\n window.textBox(\"storeCityTFld\").setText(\"city\");\n window.textBox(\"storePhoneTFld\").setText(\"123123\");\n window.textBox(\"emailTFld\").setText(\"hlias.karasyahoo.gr\");\n window.textBox(\"fromOpenHoursTFld\").setText(\"18:00\");\n window.textBox(\"toOpenHoursTFld\").setText(\"23:00\");\n window.button(\"addStoreBtn\").click();\n window.optionPane().okButton().click();\n window.label(\"openDaysFalseLbl\").requireVisible();\n }", "@Test\n public void TEST_FR_SELECTDIFFICULTY_UI() {\n GameData.gameDifficulty = \"unchanged\";\n ChooseDifficultyUI testUI = new ChooseDifficultyUI();\n clickButton(testUI, 1, \"easy\");\n clickButton(testUI, 2, \"medium\");\n clickButton(testUI, 3, \"hard\");\n }", "@Test\n\tpublic void happyCreateNewIngredient(){\n\t\tname = \"Ingredient\" + String.valueOf(Math.random()).replace(\".\", \"\");\n\t\tdriver.manage().timeouts().implicitlyWait(3, TimeUnit.SECONDS);\n\t\tIngredientPage i = new IngredientPage(driver);\n\t\ti.click(By.id(\"dropdown\"));\n\t\ti.click(By.id(\"add_dropdown\"));\n\t\ti.sendKeys(By.id(\"name\"), name);\n\t\ti.sendKeys(By.id(\"cost\"), \"3\");\n\t\ti.sendKeys(By.id(\"inventory\"), \"5\");\n\t\ti.sendKeys(By.id(\"unitofmeasure\"), \"fluffy\");\n\t\ti.click(By.id(\"createingredient\"));\n\t\ti.click(By.className(\"close\"));\n\t\tassertEquals(name, i.getInnerHtml(By.id(name)));\n\t}", "public static void buildStage2 ()\r\n {\r\n \r\n lgt.findParent(); //4\r\n lgt.findChild(0); //6\r\n lgt.insert(12);\r\n lgt.findParent();\r\n lgt.insert(13);\r\n lgt.findParent();\r\n lgt.insert(14);\r\n \r\n lgt.findRoot();\r\n lgt.findChild(0);//2\r\n lgt.findChild(0);//5\r\n lgt.insert(8);\r\n lgt.findParent();\r\n lgt.insert(9);\r\n lgt.findParent();\r\n lgt.insert(10);\r\n lgt.findParent();\r\n lgt.insert(11);\r\n \r\n }", "@Test\n\t\t public void testLocationFive() {\n\t\t \tdriver.get(\"http://mq-devhost-lm52.ihost.aol.com:9002/us/nj/upper-montclair/preston-pl-valley-rd/\");\n\t\t \tAssertJUnit.assertEquals(Utils.getElementText(driver,PageLayoutSelectors.TOP_NAME),\"Preston Pl & Valley Rd\");\n\t\t }", "@CssSelector(\"${williamsSProducts}\")\n\tpublic AspireWebElements williamsSProducts();", "@Test\n public void test091() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n LabeledWord labeledWord0 = new LabeledWord(\"\");\n Label label0 = (Label)errorPage0.s((Object) labeledWord0);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(label0._isGeneratedId());\n }", "@Test\n public void test105() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = (Label)errorPage0.strong((Object) errorPage0);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(label0._isGeneratedId());\n }", "@Test(priority = 1, groups= {\"regression\",\"smoke\"})\r\n\tpublic void PrintHospitals()\r\n\t{\r\n\t\tlogger= report.createTest(\"Printing Hospitals as per requirement\");\r\n\t\tDisplayHospitalNames hp=Base.nextPage1();\r\n\t\thp.selectLocation();\r\n\t\thp.selectHospital();\r\n\t\thp.applyFilters();\r\n\t\thp.hospitals();\r\n\t\thp.Back();\r\n\t}", "public void buildTileOfSingleView(Context context,FakeSuiteBean sb) {\n\t\tpartitionView = new SingleView(context);\n\t\tpartitionView.setContent(sb.resId);\n\t\ttile = new TileView(context);\n\t\ttile.setContent(partitionView);\n\t\ttile.setTitle(sb.tilte);\n\t\ttileViewList.add(tile);\n\t}", "public void testadvancedSearchTitleAndBody(){\n\t\t\n//\t\tmanager.advancedSearchTitleAndBody(ElasticIndex.analyzed, \"List of international tennis player \",\" Andre Agassi\" );\n\t}", "@Test\n public void searchForCourse(){\n UoMSearchPage page = new UoMSearchPage(driver);\n page.get();\n page.searchForStudies(\"Software Development\");\n assertTrue(page.isSoftwareDevelopmentComponentPresent());\n }", "@Test\n public void testDAM30902001() {\n // Data preparation\n {\n clearAndCreateTestDataForBook();\n }\n\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n TodoListPage todoListPage = dam3IndexPage.dam30902001Click();\n\n // Confirmation of database state before batch update\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"3\"));\n assertThat(todoListPage.getIncompletTodoCount(), equalTo(\"7\"));\n assertThat(todoListPage.getTotalTodoCount(), equalTo(\"10\"));\n\n // add one sample todo which has some unique title from those of the\n // above\n // this is used to have some unique combination satisfying the choose\n // element other branch\n // Open todo registration page\n TodoRegisterPage registerTodoPage = todoListPage.registerTodo();\n\n // input todo details\n registerTodoPage.setTodoId(\"0000000025\");\n registerTodoPage.setTodoCategory(\"CA2\");\n registerTodoPage.setTodoTitle(\"sample todo\");\n\n registerTodoPage.addTodo();\n\n webDriverOperations.displayPage(getPackageRootUrl());\n\n dam3IndexPage = new DAM3IndexPage(driver);\n\n todoListPage = dam3IndexPage.dam30102002Click();\n\n todoListPage.setTodoTitleContent(\"Todo 1\");\n\n todoListPage.setTodoCreationDate(\"2016-12-30\");\n\n todoListPage = todoListPage.chooseElementUsageSearch();\n\n // Confirm the todos when title is specified from the choose element\n\n // Confirmation of database state before batch update\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getIncompletTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getTotalTodoCount(), equalTo(\"2\"));\n\n webDriverOperations.displayPage(getPackageRootUrl());\n\n dam3IndexPage = new DAM3IndexPage(driver);\n\n todoListPage = dam3IndexPage.dam30102002Click();\n\n todoListPage.setTodoCreationDate(\"2016-12-30\");\n\n todoListPage = todoListPage.chooseElementUsageSearch();\n\n // Confirm the todos when title is not specified from the choose\n // element.\n // here it takes default value specified in otherwise tag of choose\n // (sample)\n\n // Confirmation of database state before batch update\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"0\"));\n assertThat(todoListPage.getIncompletTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getTotalTodoCount(), equalTo(\"1\"));\n }", "@Test(timeout = 4000)\n public void test219() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = new Label(errorPage0, errorPage0);\n label0.map(\"org.mvel.conversion.LongCH$1\");\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(label0._isGeneratedId());\n }", "@Test\n public void normalCategorySecondRangeInKgAndCm() {\n\n driver.findElement(By.xpath(\"//input[@name='wg']\")).sendKeys(\"81\");\n driver.findElement(By.xpath(\"//input[@name='ht']\")).sendKeys(\"180\");\n driver.findElement(By.xpath(\"//input[@name='cc']\")).click();\n Assert.assertEquals(driver.findElement(By.name(\"desc\")).getAttribute(\"value\"), \"Your category is Normal\",\n \"actual text is not: Your category is Normal\");\n }", "@Test\r\n\t\r\n\tpublic void reviewHotel() throws Throwable {\r\n\tTripAdvisorPage review=new TripAdvisorPage(driver);\r\n\t/*searching Club Mahindra */\r\n\treview.searchinTripAdvisor();\r\n\t/* review*/\r\n\treview.searchForReview();\r\n\t\r\n}", "@Test\n public void normalCategoryFirstRangeInKgAndCm() {\n\n\n driver.findElement(By.xpath(\"//input[@name='wg']\")).sendKeys(\"59.3\");\n driver.findElement(By.xpath(\"//input[@name='ht']\")).sendKeys(\"179\");\n driver.findElement(By.xpath(\"//input[@name='cc']\")).click();\n Assert.assertEquals(driver.findElement(By.name(\"desc\")).getAttribute(\"value\"), \"Your category is Normal\",\n \"actual text is not: Your category is Normal\");\n }", "@Override\r\n public String storyID() {\r\n return \"HD\";\r\n }", "public void WaterSupplyDetail(){\r\n\t\r\n\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- My Account should be clicked and user should get logged in\");\r\n\t\ttry{\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t/*driver.switchTo().defaultContent();\r\n\t\t\t\t\tsleep(3000);\r\n\t\t\t System.out.println(\"switched frame\"+ switchframe(\"PegaGadget2Ifr\"));\r\n\t\t\t click(locator_split(\"tabLocationAssesment\"));\r\n\t\t\t click(locator_split(\"linkclickLocation\"));*/\r\n\t\t\t // driver.findElement(By.xpath(\"//*[@tabindex='4']/a/span\")).click();\r\n\t\t\t // driver.findElement(By.xpath(\"//a[@title='Click here to open Location Assessment']\")).click();\r\n\t\t\tsleep(5000);\r\n\t\t\t driver.switchTo().defaultContent();\r\n\t\t\t System.out.println(\"switched frame\"+ switchframe(\"PegaGadget3Ifr\"));\r\n\t\t\t click(locator_split(\"tabwatersupply\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t click(locator_split(\"btnaddwatersupply\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t selectListValue(locator_split(\"listwatersupplytype\"), getValue(\"WaterSupplyType\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t selectListValue(locator_split(\"listpumpsassociated\"), getValue(\"PumpsAssociated\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t selectListValue(locator_split(\"listwateradequecy\"), getValue(\"Adequecy\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t click(locator_split(\"expandwatersupplydata\"));\r\n\t\t\t sleep(5000);\r\n\t\t\t click(locator_split(\"linkaddrow\"));\r\n\t\t\t sleep(5000);\r\n\t\t\t click(locator_split(\"linkaddrow\"));\r\n\t\t\t sleep(5000);\r\n \t\t\t \r\n\t\t\t sendKeys(locator_split(\"txtwatersupplytstname\"), getValue(\"WaterSupplyTestName\"));\r\n\t\t\t \r\n\t\t\t sleep(3000);\r\n\t\t\t sendKeys(locator_split(\"txtwatersupplytestdate\"),getValue(\"TestDate\"));\r\n\t\t\t //select[@id='WATER_SUPPLY_TYPE_CD']\r\n\t\t\t \r\n\t\t\t sleep(3000);\r\n\t\t\t sendKeys(locator_split(\"txtwatersupplytestedby\"),getValue(\"Testedby\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t \r\n\t\t\t sendKeys(locator_split(\"txtstatipressure\"), getValue(\"StaticPressure\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t \r\n\t\t\t sendKeys(locator_split(\"txtresidualpressure\"), getValue(\"ResidualPressure\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t sendKeys(locator_split(\"txtresidualflowrate\"), getValue(\"ResidualFlowRate\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t sendKeys(locator_split(\"txtpressureloss\"), getValue(\"PressureLoss\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t sendKeys(locator_split(\"txtlocationpressurereadings\"), getValue(\"PressureReadings\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t sendKeys(locator_split(\"txtlocationflowreading\"), getValue(\"FlowReadings\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t click(locator_split(\"btnwatersupplysave\"));\r\n\t\t\t sleep(5000);\r\n\t\t\t click(locator_split(\"checkboxclick\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t click(locator_split(\"expandwatersupplygraph\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t selectListValue(locator_split(\"listwatersupplygraph\"), getValue(\"GraphType\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t click(locator_split(\"btnwatersupplysaveall\"));\r\n\t\t\t \r\n\t\t\t// click(locator_split(\"btncopesave\"));\r\n\t\t\t sleep(5000);\r\n\t\t\t \r\n\t\t\t \r\n\t\t\t\t//clickbylinktext(\"No\");\r\n\t\t\t\r\n\t\t//switchframe(\"PegaGadget2Ifr\");\r\n\t\t//\tsleep(3000);\r\n\t\t//clickbylinktext(\"No\");\r\n\t\t\t\r\n\t\t\t\r\n\t\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Report tab is clicked and user is logged in\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Report tab is not clicked in\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"LoginLogout\")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\t}", "public void testGetStateName() {\r\n test1 = state2;\r\n assertEquals(test1.getStateName(), \"Virginia\");\r\n }", "public SNGTestCases Options_TC1017() throws InterruptedException{\n \tString flavour = \"Electrical\";\n \t\n \tforDebugger();\n \twaitForElement(By.id(\"com.pointedsquares.gamy5.android:id/header_name\"),120);\n \ttry{\n \t\twaitForElement(By.xpath(\"//android.widget.TextView[contains(@text , 'Academics') and contains(@resource-id , 'itemTitle')]\") , 5);\n \t}catch(Exception ex){\n \t\tdriver.scrollTo(\"Academics\");\n \t}\n \tdriver.findElement(By.xpath(\"//android.widget.TextView[contains(@text , 'Academics') and contains(@resource-id , 'itemTitle')]/following-sibling::android.widget.TextView[contains(@text , 'More')]\")).click();\n \twaitForElement(By.id(\"com.pointedsquares.gamy5.android:id/search_all\"), 10);\n \tdriver.findElement(By.id(\"com.pointedsquares.gamy5.android:id/search_all\")).click();\n \tdriver.findElement(By.id(\"com.pointedsquares.gamy5.android:id/search_all\")).sendKeys(flavour);\n \tdriver.findElement(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'flavour_name_list') and contains(@text , 'Electrical Engineering')]\")).click();\n \twaitForElement(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'stake_amount') and contains(@text , '500')]\"),5);\n \tdriver.findElement(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'stake_amount') and contains(@text , '500')]\")).click();\n \twaitForElement(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'message_text') and contains(@text , 'You are about to play Electrical Engineering game with 500 coins stake.')]\"), 5);\n \tdriver.findElement(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'message_text') and contains(@text , 'You are about to play Electrical Engineering game with 500 coins stake.')]\")).click();\n \tdriver.findElement(By.id(\"com.pointedsquares.gamy5.android:id/positive_button\")).click();\n \twaitForVisibilityOf(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'response') and contains(@text , 'Finding room for you...')]\"));\n \tThread.sleep(5000);\n \ttry{\n \t\twaitForElement(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'response') and contains(@text , 'Still Waiting.....')]\") , 2);\n \t}catch(Exception ex){\n \t\t\n \t}\n \twaitForVisibilityOf(By.id(\"com.pointedsquares.gamy5.android:id/choice_linear\"));\n \tList<WebElement> choices = driver.findElements(By.xpath(\"//android.widget.LinearLayout[contains(@resource-id , 'choice_linear')]/*\"));\n \t\n \tboolean noOfChoice = true;\n \tif(choices.size()!=4){\n \t\t\n \t\tnoOfChoice = false;\n \t}\n \tassertTrue(noOfChoice , \"Choice not equal to 4\");\n \t\n \tThread.sleep(7000);\n \treturn new SNGTestCases(driver);\n }", "@Test\n public void test120() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n ErrorPage errorPage1 = (ErrorPage)errorPage0.clasS((CharSequence) \"\");\n assertEquals(\"wheel_ErrorPage\", errorPage1.getComponentId());\n }", "@Test\n public void seeInfoAboutAisleFromSearch(){\n String itemTest = \"Potatoes\";\n String aisleCheck = \"Aisle: 2\";\n String aisleDescriptionCheck = \"Aisle Description: Between Aisle 1 and Frozen Aisle\";\n onView(withId(R.id.navigation_search)).perform(click());\n onView(withId(R.id.SearchView)).perform(typeText(itemTest));\n onData(anything()).inAdapterView(withId(R.id.myList)).atPosition(0).perform(click());\n onView(withText(\"VIEW MORE INFORMATION\")).perform(click());\n onView(withId(android.R.id.message)).check(matches(allOf(withSubstring(aisleCheck), isDisplayed())));\n onView(withId(android.R.id.message)).check(matches(allOf(withSubstring(aisleDescriptionCheck), isDisplayed())));\n onView(withText(\"OK\")).perform(click());\n }", "@Test(timeout = 4000)\n public void test277() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n errorPage0.strike();\n Component component0 = errorPage0.legend();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component0._isGeneratedId());\n }", "@Test\n\t@DisplayName(\"test beer entity\")\n\tvoid test1() {\n\t\tassertNotNull(beer);\n\t\tassertEquals(\"Modus Hoperandi\", beer.getName());\n\t\tassertEquals(7, beer.getAlcoholContent());\n\t}", "@Test(priority = 99)\r\n@Epic(\"BILLS PAYMENT\")\r\n@Features(value = { @Feature(value = \"SCHOOL FEES PAYMENTS\") })\r\n@Step (\"Verify that system is able to search and display correct school Name school code and Bank branch when user click on search for school functionality\")\r\npublic void Verify_that_system_is_able_to_search_and_display_correct_school_name_school_code_and_Bank_branch_when_user_click_on_search_for_school_functionality() {\n\tdriver.findElement(By.xpath(\"//a[contains(.,'Home')]\")).click();\r\n\tWebDriverWait wait = new WebDriverWait(driver, 15);\r\n\twait.until(ExpectedConditions.visibilityOfElementLocated(By.linkText(\"Bill Payment\")));\r\n\tdriver.findElement(By.linkText(\"Bill Payment\")).click();\r\n\tWebDriverWait wait1 = new WebDriverWait(driver, 15);\r\n\twait1.until(\r\n\t\tExpectedConditions.visibilityOfElementLocated(By.xpath(\"//div[text()=' Institutional Payments ']\")));\r\n\tdriver.findElement(By.xpath(\"//div[text()=' Institutional Payments ']\")).click();\r\n\tdriver.findElement(By.xpath(\"//div[@class='col-in schoolFee']\")).click();\r\n\tdriver.findElement(By.id(\"FORM_SF_SCHOOL_INFO-SEARCH_SCHOOL_BY\")).click();\r\n\t{\r\n\t WebElement dropdown = driver.findElement(By.id(\"FORM_SF_SCHOOL_INFO-SEARCH_SCHOOL_BY\"));\r\n\t dropdown.findElement(By.xpath(\"//option[. = 'Account Number']\")).click();\r\n\t}\r\n\tdriver.findElement(By.id(\"FORM_SF_SCHOOL_INFO-SEARCH_SCHOOL_BY\")).click();\r\n\tdriver.findElement(By.id(\"FORM_SF_SCHOOL_INFO-SF_ACCOUNT_NUMBER\")).click();\r\n\tdriver.findElement(By.id(\"FORM_SF_SCHOOL_INFO-SF_ACCOUNT_NUMBER\")).sendKeys(\"01129080146300\");\r\n\tdriver.findElement(By.id(\"FORM_SF_SCHOOL_INFO-SEARCH_SCHOOL\")).click();\r\n\tdriver.findElement(By.cssSelector(\".ct-formlayout-SCHOOL_NAME .ct-form__ip\")).click();\r\n\tdriver.findElement(By.cssSelector(\".ct-formlayout-SCHOOL_CODE .ct-form__ip\")).click();\r\n\tSystem.out.println(\"TC13 Verify_that_system_is_able_to_search_and_display_correct_school_name_school_code_and_Bank_branch_when_user_click_on_search_for_school_functionality |Success:\");\r\n\r\n\t}", "public ManagePropertiesPage reviewProrty(Hashtable<String, String> testData) throws Exception {\n\ttry{\n\t\tcheckElementExistence(driver,By.xpath(\"lblPptyAddressvalue\"),5);\n\t\t/*COC.webAdaptor(Actions.waitForObjectToLoad, \"lblPptyAddressvalue\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblPptybillinfo\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblPptyName\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblPptyNameValue\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblPptyAddress\");\n\t\tCOC.webAdaptor(Actions.waitForText, \"lblPptyAddressvalue\");\n\t\n\t\t\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblMasterAccntno\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblMasterAccntnoValue\");\n\t\tCOC.webAdaptor(Actions.waitForText, \"lblAcntBillgName\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblAcntBillgNameValue\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblAccntMailingadd\");\n\t\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblAccntMailingaddvalue\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblUnit\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblAddress\");\n\n\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblTermsAgg\");\n\t\t*/COC.webAdaptor(Actions.click, \"chkTermsAgg\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblName\");\n\t\tcheckElementExistence(driver,By.xpath(\"inputName\"),5);\n\t\tCOC.webAdaptor(Actions.setText, \"inputName\",testData.get(\"Name\"));\n\t\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblTitle\");\n\t\tcheckElementExistence(driver,By.xpath(\"inputTitle\"),5);\n\t\tCOC.webAdaptor(Actions.setText, \"inputTitle\", testData.get(\"Title\"));\n\t\t\n\t\t/*COC.webAdaptor(Actions.waitForObjectToLoad, \"lblEmail\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblEmailValue\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lnkBack\");\n\t\n\t*/\t\n\t\tcheckElementExistence(driver,By.xpath(\"btnSubmit\"),5);\n\t\t//COC.webAdaptor(Actions.waitForObjectToLoad, \"btnSubmit\");\n\t\tCOC.webAdaptor(Actions.click, \"btnSubmit\");\n\t\tThread.sleep(5000);\n\t\t\n\t/*\tFile scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\n\t\tFileUtils.copyFile(scrFile, new File(\"Screenshots//\" + this.getClass().getSimpleName() + \"_\" +System.currentTimeMillis() +\".png\"));\n\t\tCOCDriverScript.logMessage(\"testStepPass\", \"Selected New Property\");\n\t*/ }catch(Exception e){\n\t\tCOCDriverScript.logMessage(\"testStepFail\", \"Element not found\");\n\t\tSystem.out.println(e.getMessage());\n\t\te.printStackTrace();\n\t\tFile scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\n\t\tFileUtils.copyFile(scrFile, new File(\"Screenshots//\" + this.getClass().getSimpleName() + \"_\" +System.currentTimeMillis() +\".png\"));\n\t }\n\treturn new ManagePropertiesPage(driver, localData);\n}", "@Test(timeout = 4000)\n public void test221() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n MockDate mockDate0 = new MockDate((-800), (-800), (-707), 75, 43);\n Label label0 = new Label(errorPage0, mockDate0);\n Component component0 = label0.b();\n component0._getVisibleForm(false);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component0._isGeneratedId());\n }", "@Test\n public void test19(){\n // List<Integer> services = response.extract().path(\"data.findAll{it.services=='Samsung Experience'}.storeservices\");\n //List<HashMap<String, ?>> address = response.extract().path(\"data.findAll{it.service=='Samsung Experience'}.storeservices\");\n System.out.println(\"------------------StartingTest---------------------------\");\n System.out.println(\"The name of all services:\" );\n System.out.println(\"------------------End of Test---------------------------\");\n }", "@Test\n public void testGreenButton4Vissible() {\n window.textBox(\"usernameText\").setText(\"karona\"); \n window.textBox(\"StoresNameTxt\").setText(\"store1\"); \n window.textBox(\"openHoursTxt\").setText(\"18:00-20:00\");\n window.textBox(\"CustomerNameTxt\").setText(\"\");\n window.textBox(\"NumberOfSeatsTxt\").enterText(\"1\"); \n window.comboBox(\"DateAvailable\").selectItem(1);\n window.comboBox(\"HoursAvailable\").selectItem(1);\n window.button(\"makeReservation\").click();\n window.optionPane().okButton().click();\n window.button(\"greenButton4\").requireVisible();\n }", "@Test\n public void neighbourDetailOpen() {\n ViewInteraction recyclerView = onView(\n allOf(withId(R.id.list_neighbours),isDisplayed()));\n recyclerView.perform(actionOnItemAtPosition(0, click()));\n }", "@Test\n public void fleetVehicleTest() {\n test = report.createTest(\"Fleet Vehicle Title Test\");\n test.info(\"logging in to application\");\n loginPage.login(\"driver_username\", \"driver_password\");\n wait.until(ExpectedConditions.elementToBeClickable(dashboardPage.fleet));\n dashboardPage.fleet.click();\n wait.until(ExpectedConditions.elementToBeClickable(dashboardPage.vehicles));\n dashboardPage.vehicles.click();\n\n wait.until(ExpectedConditions.textToBePresentInElement(vehiclesPage.pageHeader, \"Cars\"));\n String actual = vehiclesPage.pageHeader.getText();\n test.info(\"verifying page title\");\n assertEquals(actual, \"Cars\");\n test.pass(\"PASS: Fleet Vehicle Title Test\");\n\n }", "@Test\n public void testDAM32102002() {\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n OrderMB3ListPage orderMB3ListPage = dam3IndexPage.dam32102002Click();\n\n String expectedOrdeDetails = \"Order accepted, ITM0000001, Orange juice, CTG0000001, Drink, dummy1\";\n\n // get the details of the specified order in a single string\n String actualOrderDetails = orderMB3ListPage.getOrderDetails(1);\n\n // confirm the details of the order fetched from various tables\n assertThat(actualOrderDetails, is(expectedOrdeDetails));\n\n orderMB3ListPage.setItemCode(\"ITM0000001\");\n\n orderMB3ListPage = orderMB3ListPage.fetchRelatedEntityLazy();\n\n // Expected related entity category details\n String expRelatedEntityDet = \"CTG0000001, Drink\";\n\n String actRelatedEntityDet = orderMB3ListPage\n .getRelatedEntityCategoryDeatils(1);\n\n // confirmed realted entity details\n assertThat(actRelatedEntityDet, is(expRelatedEntityDet));\n }", "@Test\n public void testWrongOpenHoursCheck() {\n window.textBox(\"storeNameTFld\").setText(\"store1\");\n window.textBox(\"numOfSeatsTFld\").setText(\"155\");\n window.textBox(\"storeAddressTFld\").setText(\"address\");\n window.textBox(\"storeCityTFld\").setText(\"city\");\n window.textBox(\"storePhoneTFld\").setText(\"123123\");\n window.textBox(\"emailTFld\").setText(\"hlias.karasyahoo.gr\");\n window.textBox(\"fromOpenHoursTFld\").setText(\"00:00\");\n window.textBox(\"toOpenHoursTFld\").setText(\"00:00\"); \n window.button(\"addStoreBtn\").click();\n window.optionPane().okButton().click();\n window.label(\"openHoursFalseLbl\").requireVisible();\n }", "@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void ValidateGlobalSearchField()\n{\t\t\n\t Report.createTestLogHeader(\"Submit Meter Read\", \"Verify whether error message is getting displayed when Drop down is not selected\");\n\tSMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"GlobalSMRMultiDialMetersite\");\n\tnew SubmitMeterReadAction()\n\t.BgbnavigateToLogin()\n .BgbloginDetails(smrProfile)\n .BgbverifyAfterLogin()\n .clickSubmitMeterReadLink()\n .VerifyAndValidateSMRSearchField(); \n}", "public void test2() {\n\t\t\n\t\tArrayList<Hotel> h = Test();\n\t\t\n\t\tDirector dir = new Director();\n\t\tDate dateIn = new Date(29,1,10);\n\t\tDate dateOut = new Date(30,1,10);\n\t\t\n\t\tArrayList<TypeOfRoom> t = h.get(0).getRoomTypes();\n\t\t\n\t\tdir.bookRoom(h.get(0), t.get(0), dateIn, dateOut);\n\t}", "@Test(timeout = 4000)\n public void test334() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = new Label(errorPage0, errorPage0);\n Component component0 = errorPage0.legend((Object) label0);\n assertTrue(component0._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "@Test\n\t\t public void testLocationTwo() {\n\t\t \tdriver.get(\"http://mq-devhost-lm52.ihost.aol.com:9002/us/nj/upper-montclair/preston-pl-valley-rd/\");\n\t\t \tAssertJUnit.assertEquals(Utils.getElementText(driver,PageLayoutSelectors.TOP_NAME),\"Preston Pl & Valley Rd\");\n\t\t }", "public String getTestBedName() {\r\n\t\treturn testBedName; \r\n\t}", "@Test\n public void testDAM32101001() {\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n OrderMB3ListPage orderMB3ListPage = dam3IndexPage.dam32101001Click();\n\n String expectedOrdeDetails = \"Order accepted, ITM0000001, Orange juice, CTG0000001, Drink, dummy1\";\n\n // get the details of the specified order in a single string\n String actualOrderDetails = orderMB3ListPage.getOrderDetails(1);\n\n // confirm the details of the order fetched from various tables\n assertThat(actualOrderDetails, is(expectedOrdeDetails));\n\n orderMB3ListPage.setItemCode(\"ITM0000001\");\n\n orderMB3ListPage = orderMB3ListPage.fetchRelatedEntity();\n\n // Expected related entity category details\n String expRelatedEntityDet = \"CTG0000001, Drink\";\n\n String actRelatedEntityDet = orderMB3ListPage\n .getRelatedEntityCategoryDeatils(1);\n\n // confirmed realted entity details\n assertThat(actRelatedEntityDet, is(expRelatedEntityDet));\n\n }", "public void levelUp1()\r\n {\r\n this.health = 900;\r\n Story.levelUp1Text();\r\n }", "@Test\n\t public void test002() {\n\t\tFloor newFloor = new Floor(6);\n\t\tShelf newShelf = new Shelf(new Point(0, 5));\n \tRobot newRobot = new Robot(newFloor,newShelf,2,2,100);\n \tinventory newInventory = new inventory(newFloor, newRobot);\n\t\t \n\t\tShelf s = newInventory.finditem(\"pen\");\n\t\tassertTrue(s.Item.contains(\"pen\"));\n\t }", "@Test\n public void testDAM31801001() {\n // Data preparation\n {\n clearAndCreateTestDataForBook();\n }\n\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n TodoListPage todoListPage = dam3IndexPage.dam31801001Click();\n\n todoListPage.setTodoTitleContent(\"Todo 1\");\n\n todoListPage.setTodoCreationDate(\"2016/12/30\");\n\n todoListPage = todoListPage.searchUsingClassTypeAlias();\n\n // Assert the todo record count from DB table\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getIncompletTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getTotalTodoCount(), equalTo(\"2\"));\n\n boolean isTodoPresent = todoListPage.isTodoDisplayed(\"0000000001\");\n assertThat(isTodoPresent, is(true));\n\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000010\");\n assertThat(isTodoPresent, is(true));\n\n // this todo does not meets the criteria.Hence not displayed.\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000002\");\n assertThat(isTodoPresent, is(false));\n }", "@Test\n public void exerciseTwoTest() {\n driver.get(properties.getProperty(\"URL\"));\n\n // 2. Assert Browser title\n homePageAsserts.shouldReturnPageTitle();\n\n // 3. Perform login\n homePageSteps.login(properties.getProperty(\"username\"), properties.getProperty(\"password\"));\n\n // 4. Assert User name in the left-top side of screen that user is loggined\n homePageAsserts.shouldReturnUsernameText();\n\n // 5. Open through the header menu Service -> Different Elements Page\n homePageSteps.clickServiceButton();\n homePageSteps.openDifferentElementsPage();\n\n // 6. Select checkboxes\n differentElementsPageSteps.selectCheckbox(WATER.getValue());\n differentElementsPageSteps.selectCheckbox(WIND.getValue());\n\n // 7. Select radio\n differentElementsPageSteps.selectRadioButton(SELEN.getValue());\n\n // 8. Select in dropdown\n differentElementsPageSteps.selectDropdown(YELLOW.getValue());\n\n // 9.1 Assert that for each checkbox there is an individual log row\n // and value is corresponded to the status of checkbox\n differentElementsAsserts.shouldReturnSelectedCheckbox();\n differentElementsAsserts.shouldReturnLogRowText(WATER.getValue(), \"true\");\n differentElementsAsserts.shouldReturnLogRowText(WIND.getValue(), \"true\");\n\n // 9.2 Assert that for radio button there is a log row and value is corresponded to the status of radio button\n differentElementsAsserts.shouldReturnSelectedRadioButton();\n differentElementsAsserts.shouldReturnLogRowText(METAL.getValue(), SELEN.getValue());\n\n // 9.3 Assert that for dropdown there is a log row and value is corresponded to the selected value\n differentElementsAsserts.shouldReturnSelectedDropdown();\n differentElementsAsserts.shouldReturnLogRowText(COLORS.getValue(), YELLOW.getValue());\n }", "public SNGTestCases Questions_TC1016() throws InterruptedException{\n \tString flavour = \"Electrical\";\n \t\n \tforDebugger();\n \twaitForVisibilityOf(By.id(\"com.pointedsquares.gamy5.android:id/header_name\"));\n \ttry{\n \t\twaitForElement(By.xpath(\"//android.widget.TextView[contains(@text , 'Academics') and contains(@resource-id , 'itemTitle')]\") , 5);\n \t}catch(Exception ex){\n \t\tdriver.scrollTo(\"Academics\");\n \t}\n \tdriver.findElement(By.xpath(\"//android.widget.TextView[contains(@text , 'Academics') and contains(@resource-id , 'itemTitle')]/following-sibling::android.widget.TextView[contains(@text , 'More')]\")).click();\n \twaitForElement(By.id(\"com.pointedsquares.gamy5.android:id/search_all\"), 10);\n \tdriver.findElement(By.id(\"com.pointedsquares.gamy5.android:id/search_all\")).click();\n \tdriver.findElement(By.id(\"com.pointedsquares.gamy5.android:id/search_all\")).sendKeys(flavour);\n \tdriver.findElement(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'flavour_name_list') and contains(@text , 'Electrical Engineering')]\")).click();\n \tdriver.findElement(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'stake_amount') and contains(@text , '500')]\")).click();\n \twaitForElement(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'message_text') and contains(@text , 'You are about to play Electrical Engineering game with 500 coins stake.')]\"), 5);\n \tdriver.findElement(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'message_text') and contains(@text , 'You are about to play Electrical Engineering game with 500 coins stake.')]\")).click();\n \tdriver.findElement(By.id(\"com.pointedsquares.gamy5.android:id/positive_button\")).click();\n \twaitForVisibilityOf(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'response') and contains(@text , 'Finding room for you...')]\"));\n \tThread.sleep(5000);\n \ttry{\n \t\twaitForElement(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'response') and contains(@text , 'Still Waiting.....')]\") , 2);\n \t}catch(Exception ex){\n \t\t\n \t}\n \twaitForVisibilityOf(By.xpath(\"//android.widget.LinearLayout[contains(@resource-id , 'question_one_linear')]/android.webkit.WebView/android.webkit.WebView/android.view.View\"));\n \t\n \tString contDesc = driver.findElement(By.xpath(\"//android.widget.LinearLayout[contains(@resource-id , 'question_one_linear')]/android.webkit.WebView/android.webkit.WebView/*\")).getAttribute(\"name\");\n \tThread.sleep(7000);\n \treturn new SNGTestCases(driver);\n }", "@Test\n public void test133() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = (Label)errorPage0.dd((Object) errorPage0);\n assertTrue(label0._isGeneratedId());\n \n List<Component> list0 = errorPage0._getChildren();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertEquals(1, list0.size());\n }", "@Test(timeout = 4000)\n public void test197() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Checkbox checkbox0 = new Checkbox(errorPage0, \"kiDz=CI9_ri)~odKM\", \"]1\");\n checkbox0.renderHint(\"]1\");\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "protected GuiTestObject bed_5(TestObject anchor, long flags) \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"bed_5\"), anchor, flags);\n\t}", "@Test\n public void articleSingleView()throws Exception{\n ChromeDriver driver = openChromeDriver();\n try {\n driver.get(\"https://www.knjizare-vulkan.rs\");\n clearCookies(driver);\n\n WebElement schoolProgram = driver.findElement(By.xpath(\"//a[@href='https://www.knjizare-vulkan.rs/program-za-skolu']\"));\n schoolProgram.click();\n\n WebElement childPencilBox = driver.findElement(By.xpath(\"/html/body/div[4]/div[1]/div/div/div/div[5]/div/div[2]/div/div/div[7]/div[1]/div[1]/a[2]\"));\n childPencilBox.click();\n\n\n\n Thread.sleep(3000);\n\n } finally {\n\n driver.quit();\n\n }\n\n }", "public void selectstreettype(String Street){\r\n\r\n\t\tString Street1 = getValue(Street);\r\n\t\tString countrygroup_streettype =\"Italy\";\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+Street1);\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:-\"+Street1+\" Street type should be selected\");\r\n\t\ttry{\r\n\t\t\tif((countrygroup_streettype).contains(countries.get(countrycount))){\r\n\t\t\t\twaitforElementVisible(locator_split(\"checkoutstreettype\"));\r\n\t\t\t\tselectList(locator_split(\"checkoutstreettype\"),Street1);\r\n\t\t\t\twaitForPageToLoad(20);\r\n\r\n\t\t\t\tSystem.out.println(locator_split(\"checkoutstreettype\")+\" link selected\");\r\n\t\t\t\tReporter.log(\"PASS_MESSAGE:- Street Type is selected\");\r\n\t\t\t\tSystem.out.println(\"Street type down is applicable to \" +country+ \" only\");\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tSystem.out.println(\"Street type is not applicable for this country\");\r\n\t\t\t\tReporter.log(\"PASS_MESSAGE:- Street Type is not applicable \");\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Street Type is not selected or type not available\"+elementProperties.getProperty(\"txtSearch\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"checkoutstreettype\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\t}", "@Test(dataProvider=\"data-provider\")\n public void search(String ptname,String trname,String revname,String date,String walking_flat,String updown_stairs,String night,String sit_lying,String stand_upright,String catch_lock,String hip_giving_put,String stiffness,String dec_motion,String des_stairs,String asc_stairs,String rising_sitting,String putonsocks,String rising_bed,String sprint_cut,String low_sports,String jogging,String walking,String heavy_duty,String low_duty)throws InterruptedException, BiffException, IOException {\n \t \tdriver.findElement(By.className(\"cls_header_patient\")).click();\n \t \tThread.sleep(500);\n \t \tdriver.findElement(By.id(\"SearchBox\")).click();\n \t \tdriver.findElement(By.id(\"SearchBox\")).sendKeys(\"t\");\n \t \tdriver.findElement(By.className(\"btnStudySearch\")).click();\n \t \tThread.sleep(1000);\n \t WebElement ptlist = driver.findElement(By.className(\"flex_patient\"));\n\t \tList<WebElement> tagname2 = ptlist.findElements(By.tagName(\"tr\"));\n\t \tint j =1; \n\t\tfor(WebElement tlist1 : tagname2)\n\t\t{\t \t \n \t Thread.sleep(3000);\n\t\t Actions action1 = new Actions(driver);\n\t\t \n \t WebElement element1 = tlist1.findElement(By.xpath(\"/html/body/div[3]/div[3]/div/div[2]/div[2]/div[2]/div/div[7]/table/tbody/tr[\"+j+\"]/td[1]/div\"));\n \t driver.findElement(By.xpath(\"/html/body/div[3]/div[3]/div/div[2]/div[2]/div[2]/div/div[7]/table/tbody/tr[\"+j+\"]/td[1]/div\")).click();\n \t String pname=tlist1.findElement(By.xpath(\"/html/body/div[3]/div[3]/div/div[2]/div[2]/div[2]/div/div[7]/table/tbody/tr[\"+j+\"]/td[1]/div\")).getText();\n \t System.out.println(\"Patient Name=\"+pname);\n \t \t\t \t \n if( pname.matches(ptname))\n {\n \tAction doubleClick1 = action1.doubleClick(element1).build();\n \tdoubleClick1.perform();// After performing double click Map will load\n \tThread.sleep(3000);\n \tdriver.findElement(By.className(\"clsapp_pat_treatment\")).click();\n \tThread.sleep(3000);\n \t//driver.findElement(By.xpath(\"/html/body/div[3]/div[3]/div/div[2]/div[1]/div/div[7]/table/tbody/tr/td[3]/div\")).click();\n \t//Thread.sleep(3000);\n \t//driver.findElement(By.xpath(\"/html/body/div[3]/div[3]/div/div[2]/div/div[7]/table/tbody/tr/td[3]/div\")).click();\n \t WebElement trlist= driver.findElement(By.className(\"flex_treatment\"));\n List<WebElement> tagname1=trlist.findElements(By.tagName(\"tr\"));\n int i=1;\n for(WebElement tlist2 : tagname1){\n \tThread.sleep(2000);\n \t//Actions action1 = new Actions(driver);\n \tWebElement element2 = tlist2.findElement(By.xpath(\"/html/body/div[3]/div[3]/div/div[2]/div[1]/div/div[7]/table/tbody/tr[\"+i+\"]/td[3]/div\"));\n \tdriver.findElement(By.xpath(\"/html/body/div[3]/div[3]/div/div[2]/div[1]/div/div[7]/table/tbody/tr[\"+i+\"]/td[3]/div\")).click();\n \tString tname=tlist2.findElement(By.xpath(\"/html/body/div[3]/div[3]/div/div[2]/div[1]/div/div[7]/table/tbody/tr[\"+i+\"]/td[3]/div\")).getText();\n \tSystem.out.println(\"Treatment name=\"+tname);\n \t\n \tif(tname.matches(trname))\n \t\t \n \t\t{\n \t\tAction doubleClick2 = action1.doubleClick(element2).build();\n \t\tdoubleClick2.perform();\n \t\tThread.sleep(2000);\n \t\t\n \t \tThread.sleep(2000);\n \t \t//search2(evdat,mob,self,usual,pain,anxd,healt,comm);\n \t \t//Thread.sleep(3000);\n \t \t//driver.findElement(By.className(\"StudyName\")).click();\n \t \tThread.sleep(3000);\n \t \t//Thread.sleep(2000);\n\n \t \n \t \t WebElement rvlist= driver.findElement(By.className(\"flex_treat_review\"));\n \t List<WebElement> tagname3=rvlist.findElements(By.tagName(\"tr\"));\n \t int k=1;\n \t for(WebElement tlist3 : tagname3){\n \t \tThread.sleep(2000);\n \t \tWebElement element3=tlist3.findElement(By.xpath(\"/html/body/div[3]/div[3]/div/div[2]/div/div[7]/table/tbody/tr[\"+k+\"]/td[3]/div\"));\n \t driver.findElement(By.xpath(\"/html/body/div[3]/div[3]/div/div[2]/div/div[7]/table/tbody/tr[\"+k+\"]/td[3]/div\")).click();\n \t String rvname=tlist3.findElement(By.xpath(\"/html/body/div[3]/div[3]/div/div[2]/div/div[7]/table/tbody/tr[\"+k+\"]/td[3]/div\")).getText();\n \t System.out.println(\"Review name=\"+rvname);\n \t if(rvname.matches(revname)){\n \t \tAction doubleClick3 = action1.doubleClick(element3).build();\n \t\t \tdoubleClick3.perform();\n \t\t \tThread.sleep(2000);\n \t\t \tString rvform = \"//input[contains(@class,'leftmenuBox') and contains(@value,'Nonarthritic Score')]\";\n\t\t\t\t\t\t \n \t \t WebElement selfyes = driver.findElement(By.xpath(rvform));\n \t \t selfyes.click();\n \t \t Thread.sleep(3000);\n \t \t driver.findElement(By.id(\"edate\")).sendKeys(date);\n \t \t //Select ohs1 = new Select(driver.findElement(By.id(\"ohs_pain_usually\")));\n \t \t // ohs1.selectByVisibleText(pain);\n \t Select s=new Select(driver.findElement(By.id(\"score1\")));\n \t s.selectByVisibleText(walking_flat);\n \t Select s1=new Select(driver.findElement(By.id(\"score2\")));\n \t s1.selectByVisibleText(updown_stairs);\n \t Select s2=new Select(driver.findElement(By.id(\"score3\")));\n \t s2.selectByVisibleText(night);\n \t Select s3=new Select(driver.findElement(By.id(\"score4\")));\n \t s3.selectByVisibleText(sit_lying);\t\n \t Select s4=new Select(driver.findElement(By.id(\"score5\")));\n \t s4.selectByVisibleText(stand_upright);\t\n \t Select s5=new Select(driver.findElement(By.id(\"score6\")));\n \t s5.selectByVisibleText(catch_lock);\n \t Select s6=new Select(driver.findElement(By.id(\"score7\")));\n \t s6.selectByVisibleText(hip_giving_put);\n \t Select s7=new Select(driver.findElement(By.id(\"score8\")));\n \t s7.selectByVisibleText(stiffness);\n \t Select s8=new Select(driver.findElement(By.id(\"score9\")));\n \t s8.selectByVisibleText(dec_motion);\n \t Select s9=new Select(driver.findElement(By.id(\"score10\")));\n \t s9.selectByVisibleText(des_stairs);\n \t Select s10=new Select(driver.findElement(By.id(\"score11\")));\n \t s10.selectByVisibleText(asc_stairs);\n \t Select s11=new Select(driver.findElement(By.id(\"score12\")));\n \t s11.selectByVisibleText(rising_sitting);\n \t Select s12=new Select(driver.findElement(By.id(\"score13\")));\n \t s12.selectByVisibleText(putonsocks);\n \t Select s13=new Select(driver.findElement(By.id(\"score14\")));\n \t s13.selectByVisibleText(rising_bed);\n \t Select s14=new Select(driver.findElement(By.id(\"score15\")));\n \t s14.selectByVisibleText(sprint_cut);\n \t Select s15=new Select(driver.findElement(By.id(\"score16\")));\n \t s15.selectByVisibleText(low_sports);\n \t Select s16=new Select(driver.findElement(By.id(\"score17\")));\n \t s16.selectByVisibleText(jogging);\n \t Select s17=new Select(driver.findElement(By.id(\"score18\")));\n \t s17.selectByVisibleText(walking);\n \t Select s18=new Select(driver.findElement(By.id(\"score19\")));\n \t s18.selectByVisibleText(heavy_duty);\n \t Select s19=new Select(driver.findElement(By.id(\"score20\")));\n \t s19.selectByVisibleText(low_duty);\n \t Thread.sleep(2000);\n \t driver.findElement(By.id(\"btn_hip_nonarthritic_save\")).click();\n \t \tbreak;\n \t \t\n \t }\n \t k++;\n \t }\n \t break;\n \t\t}\n \ti++;\n }\n break;\n }\n j++;\n\t\t}\n\t\t\n }", "@Override\n public void setTestItem(){\n expectedName = \"Common lightMagicBook\";\n expectedPower = 10;\n expectedMinRange = 1;\n expectedMaxRange = 2;\n lightMagicBook = new LightMagicBook(expectedName,expectedPower,expectedMinRange,expectedMaxRange);\n animaMagicBook1 = new AnimaMagicBook(\"\",30,1,2);\n darknessMagicBook1 = new DarknessMagicBook(\"\",30,1,2);\n }", "@Test\n public void testRedButton4Vissible() {\n window.textBox(\"usernameText\").setText(\"karona\"); \n window.textBox(\"StoresNameTxt\").setText(\"store1\"); \n window.textBox(\"openHoursTxt\").setText(\"18:00-20:00\");\n window.textBox(\"CustomerNameTxt\").setText(\"ilias\");\n window.textBox(\"NumberOfSeatsTxt\").enterText(\"1\"); \n window.comboBox(\"HoursAvailable\").selectItem(1);\n window.button(\"makeReservation\").click();\n window.optionPane().okButton().click();\n window.button(\"redButton4\").requireVisible();\n }", "@Test\n public void testDAM31801002() {\n // Data preparation\n {\n clearAndCreateTestDataForBook();\n }\n\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n TodoListPage todoListPage = dam3IndexPage.dam31801002Click();\n\n todoListPage.setTodoTitleContent(\"Todo 1\");\n\n todoListPage.setTodoCreationDate(\"2016/12/30\");\n\n todoListPage = todoListPage.searchUsingOverwrittenTypeAliasName();\n\n // Assert the todo record count from DB table\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getIncompletTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getTotalTodoCount(), equalTo(\"2\"));\n\n boolean isTodoPresent = todoListPage.isTodoDisplayed(\"0000000001\");\n assertThat(isTodoPresent, is(true));\n\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000010\");\n assertThat(isTodoPresent, is(true));\n\n // this todo does not meets the criteria.Hence not displayed.\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000002\");\n assertThat(isTodoPresent, is(false));\n }", "public void testRun() {\n\t\tsolo.waitForActivity(\"LandingActivity_\", 2000);\n //Wait for activity: 'com.fitbit.home.ui.HomeActivity_'\n\t\tassertTrue(\"HomeActivity_ is not found!\", solo.waitForActivity(\"HomeActivity_\"));\n //Sleep for 5779 milliseconds\n\t\tsolo.sleep(5779);\n //Scroll to 1,617 calories left Start a Food plan GET STARTED\n\t\tandroid.widget.ListView listView0 = (android.widget.ListView) solo.getView(android.widget.ListView.class, 0);\n\t\tsolo.scrollListToLine(listView0, 4);\n //Click on 1,617 calories left Start a Food plan GET STARTED\n\t\tsolo.clickOnView(solo.getView(\"tile_content\", 6));\n //Wait for activity: 'com.fitbit.food.ui.landing.FoodLoggingLandingActivity_'\n\t\tassertTrue(\"FoodLoggingLandingActivity_ is not found!\", solo.waitForActivity(\"FoodLoggingLandingActivity_\"));\n //Sleep for 18351 milliseconds\n\t\tsolo.sleep(18351);\n //Click on UNDER BUDGET 0 cals. in 1,305 cals. out 1,617 calories left in your budget\n\t\tsolo.clickOnText(java.util.regex.Pattern.quote(\"UNDER BUDGET\"));\n //Sleep for 5401 milliseconds\n\t\tsolo.sleep(5401);\n //Click on UNDER BUDGET 0 cals. in 1,305 cals. out 1,617 calories left in your budget\n\t\tsolo.clickOnText(java.util.regex.Pattern.quote(\"UNDER BUDGET\"));\n //Sleep for 947 milliseconds\n\t\tsolo.sleep(947);\n //Click on UNDER BUDGET 0 cals. in 1,305 cals. out 1,617 calories left in your budget\n\t\tsolo.clickOnText(java.util.regex.Pattern.quote(\"UNDER BUDGET\"));\n //Sleep for 4192 milliseconds\n\t\tsolo.sleep(4192);\n //Click on Today, Aug. 27\n\t\tsolo.clickOnText(java.util.regex.Pattern.quote(\"Today, Aug. 27\"));\n //Sleep for 5989 milliseconds\n\t\tsolo.sleep(5989);\n //Click on In Zone\n\t\tsolo.clickOnView(solo.getView(\"title\"));\n //Sleep for 2474 milliseconds\n\t\tsolo.sleep(2474);\n //Click on Under\n\t\tsolo.clickOnView(solo.getView(\"title\", 1));\n\t}", "@Test\n\n public void validateAppTitle() throws IOException {\n LandingPage l = new LandingPage(driver);\n //compare the text from the browser with actual text.- Error..\n Assert.assertEquals(l.getTitle().getText(), \"FEATURED COURSES\");\n\n System.out.println(\"Test running from Inside docker for tests dated 22-03-2020\");\n System.out.println(\"Test completed\");\n\n ;\n\n\n }" ]
[ "0.605476", "0.5734402", "0.5702287", "0.5601984", "0.55285054", "0.5474079", "0.5376537", "0.5267266", "0.5252425", "0.52423316", "0.5224438", "0.5186171", "0.5156614", "0.5147948", "0.5145423", "0.51370484", "0.5131956", "0.5130942", "0.5067467", "0.5053947", "0.50256556", "0.50148535", "0.50114745", "0.49885857", "0.49822026", "0.49800625", "0.49634105", "0.49621442", "0.49313033", "0.49245128", "0.4924013", "0.49027365", "0.49024564", "0.49003446", "0.49000043", "0.4897691", "0.4893328", "0.4893025", "0.48914438", "0.48904076", "0.48826554", "0.487584", "0.48698506", "0.48644063", "0.4863063", "0.48629668", "0.48594257", "0.4859131", "0.48584127", "0.48574817", "0.48571718", "0.48510158", "0.4849485", "0.48482177", "0.4838589", "0.48355272", "0.48341703", "0.4832321", "0.48316061", "0.4829988", "0.48269945", "0.4825283", "0.48250678", "0.4818297", "0.481639", "0.48125646", "0.48111966", "0.48067763", "0.48050126", "0.4800557", "0.47991905", "0.47972015", "0.47893673", "0.47885343", "0.4780181", "0.47709352", "0.4768836", "0.47648278", "0.47554314", "0.4754002", "0.47534484", "0.47526836", "0.47509062", "0.4748134", "0.47479966", "0.47428775", "0.47415644", "0.47413144", "0.4730041", "0.47295544", "0.4728162", "0.47270292", "0.47205153", "0.47185242", "0.47114155", "0.47031942", "0.47030517", "0.47013298", "0.46988013", "0.46953323" ]
0.51406
15
_2: with default state. .id : bedroomstwo .value : 2 .title : .class : Html.LABEL .classIndex : 1
protected GuiTestObject bed_2() { return new GuiTestObject( getMappedTestObject("bed_2")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected GuiTestObject bed_1() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"bed_1\"));\n\t}", "public static void buildStage2 ()\r\n {\r\n \r\n lgt.findParent(); //4\r\n lgt.findChild(0); //6\r\n lgt.insert(12);\r\n lgt.findParent();\r\n lgt.insert(13);\r\n lgt.findParent();\r\n lgt.insert(14);\r\n \r\n lgt.findRoot();\r\n lgt.findChild(0);//2\r\n lgt.findChild(0);//5\r\n lgt.insert(8);\r\n lgt.findParent();\r\n lgt.insert(9);\r\n lgt.findParent();\r\n lgt.insert(10);\r\n lgt.findParent();\r\n lgt.insert(11);\r\n \r\n }", "@Override\n public String getId() {\n return \"1\";\n }", "protected GuiTestObject bed_3() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"bed_3\"));\n\t}", "protected GuiTestObject bed_5() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"bed_5\"));\n\t}", "int getStateValue1();", "int getStateValue2();", "protected GuiTestObject bed_4() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"bed_4\"));\n\t}", "public Nest() {\r\n\t\tnestNo++;\r\n\t\tthis.setName(\"nest #\" + nestNo);\r\n\t}", "public HotDogStand(int standId,int noHDS)//constructor that initializes both instance variables\n{\n\tsuper();//super constructor\n\tthis.standId = standId;//refers to this stand id\n\tthis.noHDS = noHDS;// refers to this stands number of hot dogs sold\n}", "@Override\n int getStateToVisible() {\n return 2;\n }", "public void setId1(int value) {\n this.id1 = value;\n }", "BedAssignment parse( String roomBedLabel );", "int getStateValue3();", "@Override\r\n public void Story(){\r\n super.Story();\r\n System.out.println(\"=======================================================================================\");\r\n System.out.println(\"|| Arya harus bergegas untuk menyelamatkan seluruh warga. Dia tidak tau posisi warga ||\");\r\n System.out.println(\"|| yang harus diselamatkan ada pada ruangan yang mana. ||\");\r\n System.out.println(\"=======================================================================================\");\r\n }", "@Override\n protected void incrementStates() {\n\n }", "biker(int n,String ss)\r\n\t{\r\n\t\tbikeid=n;\r\n\t\tbikename=ss;\r\n\t\t\r\n\t}", "@Override\r\n public String storyID() {\r\n return \"HD\";\r\n }", "LabState state();", "public ReservationUpdatePanel(int id) {\n initComponents();\n this.id = id;\n connectDB();\n String sql = \"SELECT * FROM CAR_Reserve WHERE ReserveID =\"+id;\n reserving_detail = db.queryRows(sql);\n int n = 0;\n for(HashMap i : reserving_detail){\n n++;\n }\n if(n>=1){\n setInitText();\n }\n }", "@Override\r\n\tpublic int getIndexStep() {\n\t\t\r\n\t\treturn 2;\r\n\t}", "public final int component1() {\n return 0;\n }", "private ModalityState(int value) { this.value = value; }", "public static int\ngetLightModel(SoState state) \n{ \n\t SoLazyElement elem = getInstance(state);\n\t return elem.coinstate.lightmodel;\n}", "public SceneLabelObjectState(SceneDivObjectState state){\t\t\n\t\tsuper(state); //will create a SceneDivObjectState from the supplied state\n\t\tsuper.setObjectsPrimaryType(SceneObjectType.Label); //subtypes should also run this statement straight after the super command in order to override their parents type and set their own as the primary/\n\n\t\t//Clear css parameters from general settings passed to this\n\t\t//This is because Dialogue objects treats these differently.\n\t\t//We fill them up correctly when the dialogue specific stuff is processed\n\t\tCurrentBoxCSS=\"\";\n\n\t}", "void setId(int val);", "public void setId2(int value) {\n this.id2 = value;\n }", "public int getBedrooms(){\r\n return bedrooms;\r\n }", "public Zadatak1() {\r\n\t\tSystem.out.println(ucitajBroj(\"1. broj\") + ucitajBroj(\"2. broj\"));\r\n\t}", "@Override\n public void selectGolem(int id) {\n }", "public SceneLabelObjectState(SceneLabelObjectState state){\t\t\n\t\tsuper(state); //will create a SceneDivObjectState from the supplied state\n\t\tsuper.setObjectsPrimaryType(SceneObjectType.Label); //subtypes should also run this statement straight after the super command in order to override their parents type and set their own as the primary/\n\n\n\t\tthis.ObjectsCurrentText = state.ObjectsCurrentText;\n\t\tthis.CSSname = state.CSSname;\n\t\tthis.cursorVisible=state.cursorVisible;\n\t\tthis.TypedText=state.TypedText;\t\t\n\t\tthis.Custom_Key_Beep = state.Custom_Key_Beep;\n\t\tthis.Custom_Space_Beep = state.Custom_Space_Beep;\n\n\t}", "public String getStateDescription() {\n return myID;\n }", "public void setBed(Integer bed) {\n this.bed = bed;\n }", "public void setLabelEstados(int pokemon){\r\n if(pokemon ==0){\r\n if(pokemon_activo1.getConfuso() == true) vc.setjL_Estado1(\"Confuso\");\r\n else if(pokemon_activo1.getCongelado()== true) vc.setjL_Estado1(\"Congelado\");\r\n else if(pokemon_activo1.getDormido()== true) vc.setjL_Estado1(\"Dormido\");\r\n else if(pokemon_activo1.getEnvenenado()== true) vc.setjL_Estado1(\"Envenenado\");\r\n else if(pokemon_activo1.getParalizado()== true) vc.setjL_Estado1(\"Paralizado\");\r\n else if(pokemon_activo1.getQuemado()== true) vc.setjL_Estado1(\"Quemado\");\r\n else if(pokemon_activo1.getCongelado() == false && pokemon_activo1.getDormido() == false && pokemon_activo1.getEnvenenado() == false && \r\n pokemon_activo1.getParalizado() == false && pokemon_activo1.getQuemado() == false){\r\n vc.setjL_Estado1(\"Normal\");\r\n }\r\n }\r\n if(pokemon ==1){\r\n if(pokemon_activo2.getConfuso() == true) vc.setjL_Estado2(\"Confuso\");\r\n else if(pokemon_activo2.getCongelado()== true) vc.setjL_Estado2(\"Congelado\");\r\n else if(pokemon_activo2.getDormido()== true) vc.setjL_Estado2(\"Dormido\");\r\n else if(pokemon_activo2.getEnvenenado()== true) vc.setjL_Estado2(\"Envenenado\");\r\n else if(pokemon_activo2.getParalizado()== true) vc.setjL_Estado2(\"Paralizado\");\r\n else if(pokemon_activo2.getQuemado()== true) vc.setjL_Estado2(\"Quemado\");\r\n else if(pokemon_activo2.getCongelado() == false && pokemon_activo2.getDormido() == false && pokemon_activo2.getEnvenenado() == false && \r\n pokemon_activo2.getParalizado() == false && pokemon_activo2.getQuemado() == false){\r\n vc.setjL_Estado2(\"Normal\");\r\n }\r\n }\r\n }", "private void updateAgilisaurusState() {\n this.age++;\n\n if (this.age == 30 && this.hasCapability(LifeStage.BABY)) {\n // grow up\n this.removeCapability(LifeStage.BABY);\n this.addCapability(LifeStage.ADULT);\n this.displayChar = 'D';\n }\n\n if (this.foodLevel > 0) {\n this.foodLevel--;\n }\n\n if (this.waterLevel > 0) {\n this.waterLevel--;\n }\n\n if (this.foodLevel < 30) {\n this.behaviour = new HungryBehaviour();\n }\n\n if (this.foodLevel > 50) {\n this.behaviour = new BreedBehaviour();\n }\n\n if (this.foodLevel == 0) {\n this.Starving();\n } else {\n this.starvationLevel = 0;\n }\n\n if (this.waterLevel < 30) {\n this.behaviour = new ThirstBehaviour();\n }\n\n if (this.waterLevel == 0) {\n this.Thirsting();\n } else {\n this.thirstLevel = 0;\n }\n }", "@Override\n\tpublic String toString() {\treturn id + \" [\" + value + \"]\" ;}", "ApiResponse editState(ID id, Kiruvchi kiruvchi);", "public MenuState(Nifty nifty) {\n\t\tsuper();\n\t\tthis.nifty = nifty;\n\t}", "protected GuiTestObject bed_2(TestObject anchor, long flags) \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"bed_2\"), anchor, flags);\n\t}", "int getStateValue();", "int getStateValue();", "int getStateValue();", "@Override\n public int getID() {\n return 7;\n }", "String getSelectedStateName();", "private String makeStateName(int id, boolean guided) {\n\n\t\tif (guided) {\n\t\t\treturn \"guided\" + id;\n\t\t}\n\n\t\treturn \"state\" + id;\n\t}", "public void levelUp1()\r\n {\r\n this.health = 900;\r\n Story.levelUp1Text();\r\n }", "public int getMyNumStates() { return myNumStates; }", "public City(Integer aKey)\r\n {\r\n label = \" \";\r\n key = aKey;\r\n }", "public void levelUp2()\r\n {\r\n this.health = 1200;\r\n Story.levelUp2Text();\r\n }", "public void setStage(){\n if(id < 3)\n stage = 1;\n if(id >= 3 && id < 6)\n stage = 2;\n if(id >= 6 && id < 9)\n stage = 3;\n if(id >= 9)\n stage = 4;\n }", "public int getStateValue1() {\n return stateValue1_;\n }", "public String idToState(int id);", "public void setM_Locator_ID (int M_Locator_ID)\n{\nset_Value (\"M_Locator_ID\", new Integer(M_Locator_ID));\n}", "@Override\r\n\tpublic int id() {\n\t\treturn 4;\r\n\t}", "String getLabel();", "String getLabel();", "private State(String name, int index) {\r\n \t\t\tthis.index = index;\r\n \t\t\tthis.name = name;\r\n \t\t}", "void display()\r\n\t{\r\n\t\tSystem.out.println(\"bikeid=\"+bikeid+\" bike name==\"+bikename);\r\n\t}", "public void setM_Warehouse_ID (int M_Warehouse_ID)\n{\nset_Value (\"M_Warehouse_ID\", new Integer(M_Warehouse_ID));\n}", "@Test\n public void test085() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Checkbox checkbox0 = new Checkbox(errorPage0, \">}\\\"_\", \">}\\\"_\");\n String[] stringArray0 = new String[6];\n Checkbox checkbox1 = (Checkbox)checkbox0.attributes(stringArray0);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertFalse(checkbox1._isGeneratedId());\n }", "public void printLn1(){\r\n\t\tSystem.out.print(\"Enter the number of Bedrooms in the \" + this.getCategory() + \": \");\r\n\t}", "public void setIdBoleta(int value) {\n this.idBoleta = value;\n }", "private DistributionState(int value, String name, String literal) {\r\n this.value = value;\r\n this.name = name;\r\n this.literal = literal;\r\n }", "@Override\n\tpublic void build() {\n\n\t\tfor (int i = 1; i < pinLayout.getPinCount() + 1; i++) {\n\n\t\t\tBaseDescription desc = null;\n\n\t\t\tif (i % 2 == 0) {\n\t\t\t\tdesc = new RightDescription(i, MODELB_20_PININDEX_GPIO.get(i - 1), MODELB_20_PININDEX_PINNAME.get(i - 1));\n\t\t\t} else {\n\t\t\t\tdesc = new LeftDescription(i, MODELB_20_PININDEX_GPIO.get(i - 1), MODELB_20_PININDEX_PINNAME.get(i - 1));\n\t\t\t}\n\n\t\t\taddDescription(desc);\n\t\t}\n\n\t}", "public abstract String getLabel();", "private void getUserBedroomsChoice() {\n int checkedChipId = mBinding.chipGroupBedrooms.getCheckedChipId();\n if (checkedChipId == R.id.chip_1_bedroom) {\n mChipBedroomsInput = 1;\n } else if (checkedChipId == R.id.chip_2_bedrooms) {\n mChipBedroomsInput = 2;\n } else if (checkedChipId == R.id.chip_3_bedrooms) {\n mChipBedroomsInput = 3;\n } else if (checkedChipId == R.id.chip_4_bedrooms) {\n mChipBedroomsInput = 4;\n } else if (checkedChipId == R.id.chip_5_bedrooms) {\n mChipBedroomsInput = 5;\n } else {\n mChipBedroomsInput = 0;\n }\n }", "StatePac build();", "protected GuiTestObject bed_1(TestObject anchor, long flags) \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"bed_1\"), anchor, flags);\n\t}", "public int getState() {return state;}", "public int getState() {return state;}", "@Override\n public int getId() {\n return 0;\n }", "Model(String _name, int _value, int _id) {\n this.name = _name;\n this.value = _value;\n this.id = _id;\n }", "private void setId(int ida2) {\n\t\tthis.id=ida;\r\n\t}", "LabInner innerModel();", "private void setComponents() {\n datumPanel.setLayout(new GridLayout(9,2));\n delete.setText(\"Löschen\");\n addAttr.setText(\"Attribut hinzufügen\");\n deleteAttr.setText(\"Attribut löschen\");\n nameText.setText(DefaultValues.PRODUKTDATUM_NAME);\n idText.setText(DefaultValues.ID);\n attributeText.setText(DefaultValues.PRODUKTDATUM_ATTRIBUTE);\n verweiseText.setText(DefaultValues.PRODUKTDATUM_VERWEISE);\n title.setForeground(Color.BLUE);\n attributList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n attributList.setSelectedIndex(0);\n }", "public static void generateDefaults() {\n Building temp = BuildingList.getBuilding(0);\n SubAreas temp2 = temp.getSubArea(1);\n temp2.createFireSensor();\n temp2.createMotionSensor();\n temp2 = temp.getSubArea(2);\n temp2.createMotionSensor();\n temp2 = temp.getSubArea(3);\n temp2.createMotionSensor();\n temp2.createFireSensor();\n temp2 = temp.getSubArea(5);\n temp2.createFireSensor();\n temp2 = temp.getSubArea(6);\n temp2.createFireSensor();\n temp2.createMotionSensor();\n }", "public void baseLandID(){ \n Log1_AssetCountModel assetCount = new Log1_AssetCountModel();\n List count = assetCount.get();\n\n count.stream().forEach(row -> {\n HashMap hash = (HashMap) row;\n AssetLandCount_txt.setText((String.valueOf(hash.get(\"AssetLand\"))));\n });\n }", "public SceneLabelObjectState(){\n\t\tsuper();\n\t\tsuper.setObjectsPrimaryType(SceneObjectType.Label);\n\n\t}", "@Override\n public String bite() {\n String bite = getName()+ \" bites \";\n return bite;\n }", "Label getLabelRootRecherche();", "public State getState(){return this.state;}", "public interface StatePac {\n\n /**\n * Identify the leaf of StatePac.\n */\n public enum LeafIdentifier {\n /**\n * Represents operationalState.\n */\n OPERATIONALSTATE(1),\n /**\n * Represents administrativeControl.\n */\n ADMINISTRATIVECONTROL(2),\n /**\n * Represents adminsatratveState.\n */\n ADMINSATRATVESTATE(3),\n /**\n * Represents lifecycleState.\n */\n LIFECYCLESTATE(4);\n\n private int leafIndex;\n\n public int getLeafIndex() {\n return leafIndex;\n }\n\n LeafIdentifier(int value) {\n this.leafIndex = value;\n }\n }\n\n /**\n * Returns the attribute operationalState.\n *\n * @return operationalState value of operationalState\n */\n OperationalState operationalState();\n\n /**\n * Returns the attribute administrativeControl.\n *\n * @return administrativeControl value of administrativeControl\n */\n AdministrativeControl administrativeControl();\n\n /**\n * Returns the attribute adminsatratveState.\n *\n * @return adminsatratveState value of adminsatratveState\n */\n AdministrativeState adminsatratveState();\n\n /**\n * Returns the attribute lifecycleState.\n *\n * @return lifecycleState value of lifecycleState\n */\n LifecycleState lifecycleState();\n\n /**\n * Returns the attribute valueLeafFlags.\n *\n * @return valueLeafFlags value of valueLeafFlags\n */\n BitSet valueLeafFlags();\n\n /**\n * Returns the attribute yangStatePacOpType.\n *\n * @return yangStatePacOpType value of yangStatePacOpType\n */\n OnosYangOpType yangStatePacOpType();\n\n /**\n * Returns the attribute selectLeafFlags.\n *\n * @return selectLeafFlags value of selectLeafFlags\n */\n BitSet selectLeafFlags();\n\n /**\n * Returns the attribute yangAugmentedInfoMap.\n *\n * @return yangAugmentedInfoMap value of yangAugmentedInfoMap\n */\n Map<Class<?>, Object> yangAugmentedInfoMap();\n\n\n /**\n * Returns the attribute yangAugmentedInfo.\n *\n * @param classObject value of yangAugmentedInfo\n * @return yangAugmentedInfo\n */\n Object yangAugmentedInfo(Class classObject);\n\n /**\n * Checks if the leaf value is set.\n *\n * @param leaf leaf whose value status needs to checked\n * @return result of leaf value set in object\n */\n boolean isLeafValueSet(LeafIdentifier leaf);\n\n /**\n * Checks if the leaf is set to be a selected leaf.\n *\n * @param leaf if leaf needs to be selected\n * @return result of leaf value set in object\n */\n boolean isSelectLeaf(LeafIdentifier leaf);\n\n /**\n * Builder for statePac.\n */\n interface StatePacBuilder {\n /**\n * Returns the attribute operationalState.\n *\n * @return operationalState value of operationalState\n */\n OperationalState operationalState();\n\n /**\n * Returns the attribute administrativeControl.\n *\n * @return administrativeControl value of administrativeControl\n */\n AdministrativeControl administrativeControl();\n\n /**\n * Returns the attribute adminsatratveState.\n *\n * @return adminsatratveState value of adminsatratveState\n */\n AdministrativeState adminsatratveState();\n\n /**\n * Returns the attribute lifecycleState.\n *\n * @return lifecycleState value of lifecycleState\n */\n LifecycleState lifecycleState();\n\n /**\n * Returns the attribute valueLeafFlags.\n *\n * @return valueLeafFlags value of valueLeafFlags\n */\n BitSet valueLeafFlags();\n\n /**\n * Returns the attribute yangStatePacOpType.\n *\n * @return yangStatePacOpType value of yangStatePacOpType\n */\n OnosYangOpType yangStatePacOpType();\n\n /**\n * Returns the attribute selectLeafFlags.\n *\n * @return selectLeafFlags value of selectLeafFlags\n */\n BitSet selectLeafFlags();\n\n /**\n * Returns the attribute yangAugmentedInfoMap.\n *\n * @return yangAugmentedInfoMap value of yangAugmentedInfoMap\n */\n Map<Class<?>, Object> yangAugmentedInfoMap();\n\n /**\n * Returns the builder object of operationalState.\n *\n * @param operationalState value of operationalState\n * @return operationalState\n */\n StatePacBuilder operationalState(OperationalState operationalState);\n\n /**\n * Returns the builder object of administrativeControl.\n *\n * @param administrativeControl value of administrativeControl\n * @return administrativeControl\n */\n StatePacBuilder administrativeControl(AdministrativeControl administrativeControl);\n\n /**\n * Returns the builder object of adminsatratveState.\n *\n * @param adminsatratveState value of adminsatratveState\n * @return adminsatratveState\n */\n StatePacBuilder adminsatratveState(AdministrativeState adminsatratveState);\n\n /**\n * Returns the builder object of lifecycleState.\n *\n * @param lifecycleState value of lifecycleState\n * @return lifecycleState\n */\n StatePacBuilder lifecycleState(LifecycleState lifecycleState);\n\n /**\n * Returns the builder object of yangStatePacOpType.\n *\n * @param yangStatePacOpType value of yangStatePacOpType\n * @return yangStatePacOpType\n */\n StatePacBuilder yangStatePacOpType(OnosYangOpType yangStatePacOpType);\n\n /**\n * Sets the value of yangAugmentedInfo.\n *\n * @param value value of yangAugmentedInfo\n * @param classObject value of yangAugmentedInfo\n */\n StatePacBuilder addYangAugmentedInfo(Object value, Class classObject);\n\n /**\n * Returns the attribute yangAugmentedInfo.\n *\n * @param classObject value of yangAugmentedInfo\n * @return yangAugmentedInfo\n */\n Object yangAugmentedInfo(Class classObject);\n /**\n * Set a leaf to be selected.\n *\n * @param leaf leaf needs to be selected\n * @return builder object for select leaf\n */\n StatePacBuilder selectLeaf(LeafIdentifier leaf);\n\n /**\n * Builds object of statePac.\n *\n * @return statePac\n */\n StatePac build();\n }\n}", "public Integer getBed() {\n return bed;\n }", "public void fillIdentity() {\n\t\tString shipName = ship.getShipName();\n\t\tString name = shipsNameLabel.getText();\n\t\tshipsNameLabel.setText( name + shipName);\n\t\t\n\t\tdouble shipStatus = ship.getShipsStatus();\n\t\tString status = shipsStatusLabel.getText();\n\t\tshipsStatusLabel.setText( status + shipStatus + \"HP\");\n\t\t\n\t\tdouble shipCap = ship.getCapacity();\n\t\tString capacity = shipsCurrentCapacityLabel.getText();\n\t\tshipsCurrentCapacityLabel.setText(capacity + String.format(\"%.2f\", shipCap) + \"m^3\");\n\t\t\n\t\tint shipSpeed = ship.getShipsSpeed();\n\t\tString speed = shipsSpeedLabel.getText();\n\t\tshipsSpeedLabel.setText( speed + shipSpeed + \" km/day\");\n\t\t\n\t\tint shipCrew = ship.getCrew();\n\t\tString crew = crewsInShipLabel.getText();\n\t\tcrewsInShipLabel.setText(crew + shipCrew + \" people\");\n\t\t\n\t\tArrayList<Equipment> shipsEquipment = ship.getEquipment();\n\t\tArrayList<String> shipsEquipmentName = new ArrayList<String>();\n\t\tfor (Equipment equipment: shipsEquipment) {\n\t\t\tshipsEquipmentName.add(equipment.getName());\n\t\t}\n\t\tString equipments = shipsEquipmentLabel.getText();\n\t\tshipsEquipmentLabel.setText(equipments + shipsEquipmentName);\n\t\t\n\t}", "switch(curState) {\r\n${stateoutputcases}\r\n default:\r\n break; //no action taken\r\n }", "public int getDef(){\r\n return def;\r\n }", "public nhanvien() {\n initComponents();\n laysodong();\n if(count % 5 ==0 )\n {\n sotrang = count/5;\n }\n else\n {\n sotrang=count/5 + 1;\n }\n DAO_NV.dolentable(tblnhanvien,1);\n lbltrang.setText(\"1\");\n lblsotrang.setText(\"1/\"+sotrang);\n jButton3.setEnabled(false);\n jButton1.setEnabled(false);\n \n \n \n \n\n }", "public Property(String name, int pos, int rent, int oneH, int twoH, int threeH, int fourH,\n\t int hotel, int value, int houses) {\n\t\tthis.rent = rent;\n\t\tthis.oneH = oneH;\n\t\tthis.twoH = twoH;\n\t\tthis.threeH = threeH;\n\t\tthis.fourH = fourH;\n\t\tthis.hotel = hotel;\n\t\tthis.value = value;\n\t\tthis.houses = houses;\n\t\tbuildings = 0;\n\t\tmonopoly = false;\n\t\towned = false;\n\n\t\tthis.pos = pos;\n\t\tthis.name = name;\n\t}", "@Override\r\n\tpublic int getID() {\n\t\treturn 3;\r\n\t}", "interface WithTitle {\n /**\n * Specifies the title property: The title of the lab..\n *\n * @param title The title of the lab.\n * @return the next definition stage.\n */\n Update withTitle(String title);\n }", "@Override\n\tpublic int getID() {\n\t\treturn 1;\n\t}", "@Test\n public void test091() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n LabeledWord labeledWord0 = new LabeledWord(\"\");\n Label label0 = (Label)errorPage0.s((Object) labeledWord0);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(label0._isGeneratedId());\n }", "@Override\n public String toString() {\n return \"2. \" + rb.getString(\"Title.DefDefCurr\");\n }", "public int getStateValue1() {\n return stateValue1_;\n }", "public void setM_Splitting_ID (int M_Splitting_ID)\n{\nset_ValueNoCheck (\"M_Splitting_ID\", new Integer(M_Splitting_ID));\n}", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n DynamicSelectModel dynamicSelectModel0 = new DynamicSelectModel();\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = new Label(errorPage0, dynamicSelectModel0);\n dynamicSelectModel0.setComponent(label0);\n Component component0 = dynamicSelectModel0.getComponent();\n assertEquals(\"Label_1\", component0.getComponentId());\n }", "public Title()\r\n {\r\n startTag=\"TITLE\";\r\n endTag=\"/TITLE\"; \r\n }", "public void milage( ){\n\t\t\t int milage =450;\r\n\t\t\t System.out.println(\"bike has another property called milage ....\"+milage);\r\n\t\t\t \r\n\t\t }", "public byte getId() {\n return 2;\n }", "Update withState(String state);" ]
[ "0.5248479", "0.50532144", "0.50131494", "0.50009435", "0.49837172", "0.4931473", "0.48899153", "0.48816606", "0.48452324", "0.48135623", "0.4803451", "0.4776917", "0.47431865", "0.47200412", "0.4711887", "0.47020626", "0.4696055", "0.46946073", "0.46895418", "0.46894616", "0.4687359", "0.4686719", "0.46802542", "0.46758777", "0.4661665", "0.46545705", "0.46520495", "0.46412772", "0.46334946", "0.46296555", "0.4621028", "0.4620498", "0.4611806", "0.46043643", "0.46029475", "0.46025154", "0.45899174", "0.45791382", "0.45728138", "0.45639375", "0.45639375", "0.45639375", "0.4556921", "0.45503387", "0.45489112", "0.45478588", "0.45415398", "0.45369032", "0.4536379", "0.45248514", "0.45246616", "0.45216078", "0.4518403", "0.45078096", "0.45076954", "0.45076954", "0.44910276", "0.44905147", "0.44884866", "0.448822", "0.44786814", "0.44784135", "0.447655", "0.44628912", "0.44559082", "0.44547376", "0.44533587", "0.44517598", "0.44502646", "0.44502646", "0.44500867", "0.44441023", "0.44420972", "0.4430511", "0.44304654", "0.4429679", "0.44285375", "0.44251", "0.4424384", "0.44235343", "0.44235155", "0.44203758", "0.44200945", "0.4416434", "0.4413404", "0.44131717", "0.44094506", "0.4409146", "0.44081753", "0.4405756", "0.43992653", "0.43992123", "0.438675", "0.43833506", "0.43808267", "0.43757808", "0.43748972", "0.43740028", "0.43721682", "0.437207" ]
0.5255828
0
_2: with specific test context and state. .id : bedroomstwo .value : 2 .title : .class : Html.LABEL .classIndex : 1
protected GuiTestObject bed_2(TestObject anchor, long flags) { return new GuiTestObject( getMappedTestObject("bed_2"), anchor, flags); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n public void ActionableTrainingTest() {\n WebElement title1 = driver.findElement(By.cssSelector(\"h3.uagb-ifb-title\"));\r\n \r\n //Assertion for title of the first info box\r\n Assert.assertEquals(title1.getText(), \"Actionable Training\");\r\n \r\n //Print heading of the first info box\r\n Reporter.log(\"Heading is: \" + title1.getText(), true);\r\n }", "protected GuiTestObject bed_2() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"bed_2\"));\n\t}", "protected GuiTestObject bed_1() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"bed_1\"));\n\t}", "private void commonLoadTestForHtml(){\n\t\tWebElement tree = getElement(\"id=tree\");\n\t\tlog(\"Found Element for id=tree \" + tree.toString());\n\n\t\t//Make sure News attributes are correct\n\t\tWebElement news = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#news']['title']\\\"}\");\n\t\tAssert.assertNotNull(news);\n\t\tnews.click();\n\n\t\tString content = getText(RESULTS_CONTAINER);\n\t\tlog(\"content\"+content);\n waitForText(RESULTS_CONTAINER, \"id=news\");\n\n\n\t\t// Finds the blogs node and make sure its not null\n\t\twaitForElementVisible(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#blogs']['disclosure']\\\"}\");\n\t\tWebElement blogs = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#blogs']['disclosure']\\\"}\");\n\n\t\tlog(\"Node: \" + blogs);\n\n\t\tAssert.assertNotNull(blogs);\n\n\t\tblogs.click(); // This should expand the node blogs\n\n\t\t//Find the children of blogs node: Today\n\t\tWebElement today = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#today']['title']\\\"}\");\n\n\t\t//Find the children of blogs node: Previous\n\t\tWebElement previous = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#prev']['title']\\\"}\");\n\n\t\tWebElement previousDiscIcon = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#prev']['disclosure']\\\"}\");\n\n\t\tAssert.assertNotNull(previousDiscIcon);\n\n\t\t//Click on Previous Node\n\t\twaitForElementVisible(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#prev']['disclosure']\\\"}\");\n\t\tpreviousDiscIcon.click();\n\n\t\t//Find the children of previous node: Yesterday\n\t\tWebElement yesterday = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#yesterday']['title']\\\"}\");\n\n\t\t//Find the children of previous node: 2DaysBack\n\t\tWebElement twodaysback = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#daysback2']['title']\\\"}\");\n\n\n\n\n\t}", "@Test\n public void overweightCategorySecondRangeInKgAndCm() {\n\n driver.findElement(By.xpath(\"//input[@name='wg']\")).sendKeys(\"94\");\n driver.findElement(By.xpath(\"//input[@name='ht']\")).sendKeys(\"177\");\n driver.findElement(By.xpath(\"//input[@name='cc']\")).click();\n Assert.assertEquals(driver.findElement(By.name(\"desc\")).getAttribute(\"value\"), \"Your category is Overweight\",\n \"actual text is not: Your category is Overweight\");\n }", "protected GuiTestObject bed_3() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"bed_3\"));\n\t}", "@Test\n public void test094() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Hidden hidden0 = new Hidden(errorPage0, \"\", \"\");\n Image image0 = new Image(hidden0, \"\", \"\");\n Label label0 = (Label)errorPage0.ins((Object) image0);\n Block block0 = (Block)errorPage0.h3();\n Label label1 = (Label)errorPage0.u((Object) errorPage0);\n assertTrue(label1._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "@Test\n public void test13() {\n List<String> name = response.extract().path(\"data.findAll{it.state=='MN'}.name\");\n System.out.println(\"------------------StartingTest---------------------------\");\n System.out.println(\"The store names where state is MN are :: \" + name);\n System.out.println(\"------------------End of Test---------------------------\");\n }", "@Test\n public void test085() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Checkbox checkbox0 = new Checkbox(errorPage0, \">}\\\"_\", \">}\\\"_\");\n String[] stringArray0 = new String[6];\n Checkbox checkbox1 = (Checkbox)checkbox0.attributes(stringArray0);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertFalse(checkbox1._isGeneratedId());\n }", "@Test\n public void normalCategorySecondRangeInKgAndCm() {\n\n driver.findElement(By.xpath(\"//input[@name='wg']\")).sendKeys(\"81\");\n driver.findElement(By.xpath(\"//input[@name='ht']\")).sendKeys(\"180\");\n driver.findElement(By.xpath(\"//input[@name='cc']\")).click();\n Assert.assertEquals(driver.findElement(By.name(\"desc\")).getAttribute(\"value\"), \"Your category is Normal\",\n \"actual text is not: Your category is Normal\");\n }", "@Test\n public void testDAM30902001() {\n // Data preparation\n {\n clearAndCreateTestDataForBook();\n }\n\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n TodoListPage todoListPage = dam3IndexPage.dam30902001Click();\n\n // Confirmation of database state before batch update\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"3\"));\n assertThat(todoListPage.getIncompletTodoCount(), equalTo(\"7\"));\n assertThat(todoListPage.getTotalTodoCount(), equalTo(\"10\"));\n\n // add one sample todo which has some unique title from those of the\n // above\n // this is used to have some unique combination satisfying the choose\n // element other branch\n // Open todo registration page\n TodoRegisterPage registerTodoPage = todoListPage.registerTodo();\n\n // input todo details\n registerTodoPage.setTodoId(\"0000000025\");\n registerTodoPage.setTodoCategory(\"CA2\");\n registerTodoPage.setTodoTitle(\"sample todo\");\n\n registerTodoPage.addTodo();\n\n webDriverOperations.displayPage(getPackageRootUrl());\n\n dam3IndexPage = new DAM3IndexPage(driver);\n\n todoListPage = dam3IndexPage.dam30102002Click();\n\n todoListPage.setTodoTitleContent(\"Todo 1\");\n\n todoListPage.setTodoCreationDate(\"2016-12-30\");\n\n todoListPage = todoListPage.chooseElementUsageSearch();\n\n // Confirm the todos when title is specified from the choose element\n\n // Confirmation of database state before batch update\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getIncompletTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getTotalTodoCount(), equalTo(\"2\"));\n\n webDriverOperations.displayPage(getPackageRootUrl());\n\n dam3IndexPage = new DAM3IndexPage(driver);\n\n todoListPage = dam3IndexPage.dam30102002Click();\n\n todoListPage.setTodoCreationDate(\"2016-12-30\");\n\n todoListPage = todoListPage.chooseElementUsageSearch();\n\n // Confirm the todos when title is not specified from the choose\n // element.\n // here it takes default value specified in otherwise tag of choose\n // (sample)\n\n // Confirmation of database state before batch update\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"0\"));\n assertThat(todoListPage.getIncompletTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getTotalTodoCount(), equalTo(\"1\"));\n }", "protected GuiTestObject title() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"title\"));\n\t}", "@Test\n public void resalePropertyMatch() throws UiObjectNotFoundException {\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"btn_create_post\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"lbl_resale_prop\")).click();\n device.findObject(By.text(\"Search building name\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"input_search\")).setText(\"Icon\");\n device.wait(Until.findObject(By.text(\"Icon Linera\")), 10000);\n device.findObject(By.text(\"Icon Linera\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"dd_configuration\")).click();\n device.findObject(By.text(\"3 BHK\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"txt_pricing\")).click();\n device.findObject(By.text(\"7\")).click();\n device.findObject(By.text(\"5\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"Done\")).click();\n device.wait(Until.findObject(By.text(\"sq ft\")), 2000);\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"txt_carpet_area\")\n .childSelector(new UiSelector().className(Utils.EDIT_TEXT_CLASS))).setText(\"1200\");\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"dd_floor\")).click();\n device.findObject(By.text(\"Higher\")).click();\n device.findObject(By.text(\"4\")).click();\n UiScrollable postView = new UiScrollable(new UiSelector().scrollable(true));\n UiSelector postSelector = new UiSelector().text(\"POST\");\n postView.scrollIntoView(postSelector);\n device.findObject(postSelector).click();\n device.wait(Until.findObject(By.text(\"POST\").enabled(true)), 10000);\n String matchNameString = device.findObject(By.textContains(\"matches\")).getText().split(\" \")[0];\n device.findObject(By.text(\"POST\")).click();\n device.wait(Until.findObject(By.text(\"RESALE PROPERTY\")), 9000);\n Assert.assertNotEquals(\"Test Case Failed...No Match found\", \"no\", matchNameString.toLowerCase());\n String postMatchName = device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"lbl_name\")).getText();\n Assert.assertEquals(\"Test Case Failed...Match should have had been found with\", \"dialectic test\", postMatchName.toLowerCase());\n\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"btn_close\")).click();\n Utils.markPostExpired(device);\n }", "@Test\n public void underweightCategorySecondRangeInKgAndCm() {\n\n driver.findElement(By.xpath(\"//input[@name='wg']\")).sendKeys(\"58.6\");\n driver.findElement(By.xpath(\"//input[@name='ht']\")).sendKeys(\"178\");\n driver.findElement(By.xpath(\"//input[@name='cc']\")).click();\n Assert.assertEquals(driver.findElement(By.name(\"desc\")).getAttribute(\"value\"), \"Your category is Underweight\",\n \"actual text is not: Your category is Underweight\");\n }", "public static void viewPage(WebDriver driver, String sTestCaseName) throws Exception{\r\n\t\r\n\t\t//Check that all of the elements of that are expected are displayed\r\n\t\tObjects_Job_Completion_Summary_Page.lbl_Summary(driver).isDisplayed();{\r\n\t\tLog.info(sTestCaseName + \" | Summary label displayed as expected\");\r\n\t\t}\r\n\r\n\t\tif (\"Exchange_1_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t||\"INST_14_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t||\"Exchange_19_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t||\"Exchange_1_End_To_End_Spark_Chrome\".equals(sTestCaseName))\r\n\t\t{ \r\n\t\t\tObjects_Job_Completion_Summary_Page.lbl_Gas_Meter_Mprn(driver).isDisplayed();{\r\n\t\t\tLog.info(sTestCaseName + \" | Gas Meter MPRN label displayed as expected\");\r\n\t\t\t}\t\t\r\n\t\t}\r\n\t\telse if (\"Exchange_2_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"NMEX_5_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_15_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_20_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_11_End_To_End_Spark_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_2_End_To_End_Spark_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_5_End_To_End_Spark_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"FLTY_2_End_To_End_Spark_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_5_End_To_End_Spark_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_8_End_To_End_ECOT_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"NMEX_5_End_To_End_Spark_Chrome\".equals(sTestCaseName))\r\n\t\t{ \r\n\t\t\tObjects_Job_Completion_Summary_Page.lbl_Electricity_Meter_Mpan(driver).isDisplayed();{\r\n\t\t\tLog.info(sTestCaseName + \" | Electricity Meter MPAN label displayed as expected\");\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"Doing the elseif\"); \r\n\t\t}\r\n\t\telse if (\"Exchange_3_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_9_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_3_Elec_HAN_WAN_Checks_Page_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_3_Gas_Meter_Post_Installation_Gas_Tightness_Test_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_3_Gas_Meter_Pre_Installation_Gas_Tightness_Test_Failed_Test_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_3_Gas_Meter_Pre_Installation_Gas_Tightness_Test_Low_Pressure_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_3_Gas_Risk_Assessment_Gas_Abort_Low_Pressure_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_3_Gas_Risk_Assessment_Gas_Abort_Med_Pressure_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_3_Gas_SMeter_Post_Installation_Pressure_Drop_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_9_Elec_HAN_WAN_Checks_Page_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_9_Gas_Meter_Initial_Risk_Assessment_Gas_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_9_Gas_Meter_Post_Installation_Gas_Tightness_Test_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_9_Gas_Meter_Pre_Installation_Gas_Tightness_Test_Failed_Test_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_9_Gas_Meter_Pre_Installation_Gas_Tightness_Test_Low_Pressure_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_9_Gas_Risk_Assessment_Gas_Abort_Low_Pressure_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_9_Gas_Risk_Assessment_Gas_Abort_Med_Pressure_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"FLTY_17_Gas_Meter_Post_Installation_Gas_Tightness_Test_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"FLTY_17_Gas_Meter_Pre_Installation_Gas_Tightness_Test_Failed_Test_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"FLTY_17_Gas_Meter_Pre_Installation_Gas_Tightness_Test_Low_Pressure_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"FLTY_17_Gas_Risk_Assessment_Gas_Abort_Low_Pressure_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"FLTY_17_Gas_Risk_Assessment_Gas_Abort_Med_Pressure_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"FLTY_17_Gas_Suitable_For_Smart_Installation_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_21_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_16_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_9_End_To_End_Spark_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"FLTY_17_End_To_End_Spark_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_3_End_To_End_ECOT_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_12_End_To_End_ECOT_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_12_Elec_HAN_WAN_Checks_Page_Abort_ECOT_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_12_Elec_Initial_Polarity_Check_At_Meter_Page_Abort_ECOT_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_12_Elec_Initial_Risk_Assessment_Page_Abort_ECOT_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_12_Elec_Risk_Assessment_Page_Abort_ECOT_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_12_Elec_Suitable_For_Smart_Installation_Page_Abort_ECOT_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_12_End_To_End_Found_Meter_ECOT_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_3_Elec_HAN_WAN_Checks_Page_Abort_ECOT_Chrome\".equals(sTestCaseName))\r\n\t\t{ \r\n\t\t\tObjects_Job_Completion_Summary_Page.lbl_Electricity_Meter_Mpan(driver).isDisplayed();{\r\n\t\t\tLog.info(sTestCaseName + \" | Electricity Meter MPAN label displayed as expected\");\r\n\t\t\t}\r\n\t\t \r\n\t\t\tObjects_Job_Completion_Summary_Page.lbl_Gas_Meter_Mprn(driver).isDisplayed();{\r\n\t\t\tLog.info(sTestCaseName + \" | Gas Meter MPRN label displayed as expected\");\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"Doing the elseif\"); \r\n\t\t} \r\n\t\telse \t\t\r\n\t\t{ \r\n\t\t\tSystem.out.println(\"Doing the else \"); \r\n\t\t}\t\t\t\t\t\t\r\n\t\tObjects_Job_Completion_Summary_Page.btn_Potential_Customer_Vulnerability_Identified_Yes(driver).isDisplayed();{\r\n\t\tLog.info(sTestCaseName + \" | Potential Customer Vulnerability Identified - Yes radio button displayed as expected\");\r\n\t\t}\r\n\t\t\r\n\t\tObjects_Job_Completion_Summary_Page.txt_Additional_Notes(driver).isDisplayed();{\r\n\t\tLog.info(sTestCaseName + \" | Additional notes textbox displayed as expected\");\r\n\t\t}\r\n\t\t\r\n\t\tObjects_Job_Completion_Summary_Page.btn_Customer_Agreement_Yes(driver).isDisplayed();{\r\n\t\tLog.info(sTestCaseName + \" | Customer Agreement - Yes radio button displayed as expected\");\r\n\t\t}\r\n\t\t\r\n\t\tObjects_Job_Completion_Summary_Page.btn_Customer_Agreement_No(driver).isDisplayed();{\r\n\t\tLog.info(sTestCaseName + \" | Customer Agreement - No radio button displayed as expected\");\r\n\t\t}\r\n\t\t\r\n\t\t\t\r\n\t\t//Take a screenshot to show what we've done\r\n\t\tUtils.takeScreenshot(driver, sTestCaseName + \"-viewPage\");\r\n\t\t\r\n\t//END OF VIEW PAGE METHOD\r\n\t}", "@Test\n public void underweightCategoryFirstRangeInKgAndCm() {\n\n driver.findElement(By.xpath(\"//input[@name='wg']\")).sendKeys(\"47\");\n driver.findElement(By.xpath(\"//input[@name='ht']\")).sendKeys(\"177\");\n driver.findElement(By.xpath(\"//input[@name='cc']\")).click();\n Assert.assertEquals(driver.findElement(By.name(\"desc\")).getAttribute(\"value\"), \"Your category is Underweight\",\n \"actual text is not: Your category is Underweight\");\n }", "@Test\n public void test120() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n ErrorPage errorPage1 = (ErrorPage)errorPage0.clasS((CharSequence) \"\");\n assertEquals(\"wheel_ErrorPage\", errorPage1.getComponentId());\n }", "protected GuiTestObject bed_5() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"bed_5\"));\n\t}", "@Test\n public void exerciseTwoTest() {\n driver.get(properties.getProperty(\"URL\"));\n\n // 2. Assert Browser title\n homePageAsserts.shouldReturnPageTitle();\n\n // 3. Perform login\n homePageSteps.login(properties.getProperty(\"username\"), properties.getProperty(\"password\"));\n\n // 4. Assert User name in the left-top side of screen that user is loggined\n homePageAsserts.shouldReturnUsernameText();\n\n // 5. Open through the header menu Service -> Different Elements Page\n homePageSteps.clickServiceButton();\n homePageSteps.openDifferentElementsPage();\n\n // 6. Select checkboxes\n differentElementsPageSteps.selectCheckbox(WATER.getValue());\n differentElementsPageSteps.selectCheckbox(WIND.getValue());\n\n // 7. Select radio\n differentElementsPageSteps.selectRadioButton(SELEN.getValue());\n\n // 8. Select in dropdown\n differentElementsPageSteps.selectDropdown(YELLOW.getValue());\n\n // 9.1 Assert that for each checkbox there is an individual log row\n // and value is corresponded to the status of checkbox\n differentElementsAsserts.shouldReturnSelectedCheckbox();\n differentElementsAsserts.shouldReturnLogRowText(WATER.getValue(), \"true\");\n differentElementsAsserts.shouldReturnLogRowText(WIND.getValue(), \"true\");\n\n // 9.2 Assert that for radio button there is a log row and value is corresponded to the status of radio button\n differentElementsAsserts.shouldReturnSelectedRadioButton();\n differentElementsAsserts.shouldReturnLogRowText(METAL.getValue(), SELEN.getValue());\n\n // 9.3 Assert that for dropdown there is a log row and value is corresponded to the selected value\n differentElementsAsserts.shouldReturnSelectedDropdown();\n differentElementsAsserts.shouldReturnLogRowText(COLORS.getValue(), YELLOW.getValue());\n }", "@org.testng.annotations.Test\n public void test17_3(){\n testInfo.id(\"test17_3\").suite(\"test_Inspiration\").name(\"Inspiration page from start + check blocks.\");\n photolab.forceStop();\n photolab.open();\n photolab.main.waitToLoad();\n photolab.main.selectCategoryBar(\"Inspiration\");\n photolab.main.selectBlock(\"Top\");\n photolab.main.selectBlock(\"Trending\");\n photolab.main.selectBlock(\"Recent\");\n photolab.main.tapMenu();\n photolab.menu.tapHome();\n }", "@Test\n public void withAttribute_Matching() {\n assertEquals(1, onPage.withAttribute(\"lang\", MatchType.EQUALS, \"en-US\").size());\n assertEquals(3, onPage.get(\"div.article div\").withAttribute(\"class\", MatchType.EQUALS, \"content\").size());\n assertEquals(0, onPage.get(\"div.article div\").withAttribute(\"class\", MatchType.EQUALS, \" content\").size());\n }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n DynamicSelectModel dynamicSelectModel0 = new DynamicSelectModel();\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = new Label(errorPage0, dynamicSelectModel0);\n dynamicSelectModel0.setComponent(label0);\n Component component0 = dynamicSelectModel0.getComponent();\n assertEquals(\"Label_1\", component0.getComponentId());\n }", "private void commonLoadTestForJson(){\n\t\tWebElement tree = getElement(\"id=tree\");\n\t\tlog(\"Found Element for id=tree \" + tree.toString());\n\n\t\t//Make sure News attributes are correct\n\t\tWebElement news = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#news']['title']\\\"}\");\n\t\tAssert.assertNotNull(news);\n\t\tnews.click();\n\n\t\tString content = getText(RESULTS_CONTAINER);\n\t\tlog(\"content\"+content);\n content.contains(\"id=news\");\n\n\n\n\t\t// Finds the blogs node and make sure its not null\n\t\twaitForElementVisible(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#blogs']['disclosure']\\\"}\");\n\t\tWebElement blogs = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#blogs']['disclosure']\\\"}\");\n\n\t\tlog(\"Node: \" + blogs);\n\n\t\tAssert.assertNotNull(blogs);\n\n\t\tblogs.click(); // This should expand the node blogs\n\n\t\tlog(\"clicked\");\n\n\t\t//Find the children of blogs node: Today\n\t\tWebElement today = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#today']['title']\\\"}\");\n\n\t\t//Find the children of blogs node: Yesterday\n\t\tWebElement yesterday = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#yesterday']['title']\\\"}\");\n\n\t\t//Find the children of blogs node: 2DaysBack\n\t\tWebElement twodaysback = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#2daysback']['title']\\\"}\");\n\n\n\t\t//Find the children of blogs node: Archive\n\t\tWebElement archive = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#archive']['title']\\\"}\");\n\n\t}", "@Test\n public void normalCategoryFirstRangeInKgAndCm() {\n\n\n driver.findElement(By.xpath(\"//input[@name='wg']\")).sendKeys(\"59.3\");\n driver.findElement(By.xpath(\"//input[@name='ht']\")).sendKeys(\"179\");\n driver.findElement(By.xpath(\"//input[@name='cc']\")).click();\n Assert.assertEquals(driver.findElement(By.name(\"desc\")).getAttribute(\"value\"), \"Your category is Normal\",\n \"actual text is not: Your category is Normal\");\n }", "@Test(priority = 99)\r\n@Epic(\"BILLS PAYMENT\")\r\n@Features(value = { @Feature(value = \"SCHOOL FEES PAYMENTS\") })\r\n@Step (\"Verify that system is able to search and display correct school Name school code and Bank branch when user click on search for school functionality\")\r\npublic void Verify_that_system_is_able_to_search_and_display_correct_school_name_school_code_and_Bank_branch_when_user_click_on_search_for_school_functionality() {\n\tdriver.findElement(By.xpath(\"//a[contains(.,'Home')]\")).click();\r\n\tWebDriverWait wait = new WebDriverWait(driver, 15);\r\n\twait.until(ExpectedConditions.visibilityOfElementLocated(By.linkText(\"Bill Payment\")));\r\n\tdriver.findElement(By.linkText(\"Bill Payment\")).click();\r\n\tWebDriverWait wait1 = new WebDriverWait(driver, 15);\r\n\twait1.until(\r\n\t\tExpectedConditions.visibilityOfElementLocated(By.xpath(\"//div[text()=' Institutional Payments ']\")));\r\n\tdriver.findElement(By.xpath(\"//div[text()=' Institutional Payments ']\")).click();\r\n\tdriver.findElement(By.xpath(\"//div[@class='col-in schoolFee']\")).click();\r\n\tdriver.findElement(By.id(\"FORM_SF_SCHOOL_INFO-SEARCH_SCHOOL_BY\")).click();\r\n\t{\r\n\t WebElement dropdown = driver.findElement(By.id(\"FORM_SF_SCHOOL_INFO-SEARCH_SCHOOL_BY\"));\r\n\t dropdown.findElement(By.xpath(\"//option[. = 'Account Number']\")).click();\r\n\t}\r\n\tdriver.findElement(By.id(\"FORM_SF_SCHOOL_INFO-SEARCH_SCHOOL_BY\")).click();\r\n\tdriver.findElement(By.id(\"FORM_SF_SCHOOL_INFO-SF_ACCOUNT_NUMBER\")).click();\r\n\tdriver.findElement(By.id(\"FORM_SF_SCHOOL_INFO-SF_ACCOUNT_NUMBER\")).sendKeys(\"01129080146300\");\r\n\tdriver.findElement(By.id(\"FORM_SF_SCHOOL_INFO-SEARCH_SCHOOL\")).click();\r\n\tdriver.findElement(By.cssSelector(\".ct-formlayout-SCHOOL_NAME .ct-form__ip\")).click();\r\n\tdriver.findElement(By.cssSelector(\".ct-formlayout-SCHOOL_CODE .ct-form__ip\")).click();\r\n\tSystem.out.println(\"TC13 Verify_that_system_is_able_to_search_and_display_correct_school_name_school_code_and_Bank_branch_when_user_click_on_search_for_school_functionality |Success:\");\r\n\r\n\t}", "@Test\n public void rentPropertyMatch() throws UiObjectNotFoundException {\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"btn_create_post\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"lbl_rental_prop\")).click();\n device.findObject(By.text(\"Search building name\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"input_search\")).setText(\"Icon\");\n device.wait(Until.findObject(By.text(\"Icon Viva\")), 10000);\n device.findObject(By.text(\"Icon Viva\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"dd_configuration\")).click();\n device.findObject(By.text(\"1 BHK\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"txt_pricing\")).click();\n device.findObject(By.text(\"2\")).click();\n device.findObject(By.text(\"5\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"Done\")).click();\n device.wait(Until.findObject(By.text(\"Yes\")), 2000);\n device.findObject(By.text(\"Yes\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"dd_furnishing\")).click();\n device.findObject(By.text(\"Fully-Furnished\")).click();\n UiScrollable postView = new UiScrollable(new UiSelector().scrollable(true));\n UiSelector postSelector = new UiSelector().text(\"POST\");\n postView.scrollIntoView(postSelector);\n device.findObject(postSelector).click();\n device.wait(Until.findObject(By.text(\"POST\").enabled(true)), 10000);\n String matchNameString = device.findObject(By.textContains(\"matches\")).getText().split(\" \")[0];\n device.findObject(By.text(\"POST\")).click();\n device.wait(Until.findObject(By.text(\"RENTAL PROPERTY\")), 9000);\n Assert.assertNotEquals(\"Test Case Failed...No Match found\", \"no\", matchNameString.toLowerCase());\n String postMatchName = device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"lbl_name\")).getText();\n Assert.assertEquals(\"Test Case Failed...Match should have had been found with\", \"dialectic test\", postMatchName.toLowerCase());\n\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"btn_close\")).click();\n Utils.markPostExpired(device);\n }", "@Test\n public void overweightCategoryFirstRangeInKgAndCm() {\n\n driver.findElement(By.xpath(\"//input[@name='wg']\")).sendKeys(\"85.6\");\n driver.findElement(By.xpath(\"//input[@name='ht']\")).sendKeys(\"185\");\n driver.findElement(By.xpath(\"//input[@name='cc']\")).click();\n Assert.assertEquals(driver.findElement(By.name(\"desc\")).getAttribute(\"value\"), \"Your category is Overweight\",\n \"actual text is not: Your category is Overweight\");\n }", "@Test\n public void obesityCategory() {\n\n driver.findElement(By.xpath(\"//input[@name='wg']\")).sendKeys(\"102.7\");\n driver.findElement(By.xpath(\"//input[@name='ht']\")).sendKeys(\"185\");\n driver.findElement(By.xpath(\"//input[@name='cc']\")).click();\n Assert.assertEquals(driver.findElement(By.name(\"desc\")).getAttribute(\"value\"), \"Your category is Overweight\",\n \"actual text is not: Your category is Overweight\");\n }", "@Test(timeout = 4000)\n public void test219() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = new Label(errorPage0, errorPage0);\n label0.map(\"org.mvel.conversion.LongCH$1\");\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(label0._isGeneratedId());\n }", "public static void buildStage2 ()\r\n {\r\n \r\n lgt.findParent(); //4\r\n lgt.findChild(0); //6\r\n lgt.insert(12);\r\n lgt.findParent();\r\n lgt.insert(13);\r\n lgt.findParent();\r\n lgt.insert(14);\r\n \r\n lgt.findRoot();\r\n lgt.findChild(0);//2\r\n lgt.findChild(0);//5\r\n lgt.insert(8);\r\n lgt.findParent();\r\n lgt.insert(9);\r\n lgt.findParent();\r\n lgt.insert(10);\r\n lgt.findParent();\r\n lgt.insert(11);\r\n \r\n }", "@Test(enabled = false)\n public void testCase3() {\n String subHeading = driver.findElement(By.className(\"sub\")).getText();\n Assert.assertTrue(subHeading.contains(\"Practice\"));\n }", "@Test(timeout = 4000)\n public void test196() throws Throwable {\n Hidden hidden0 = new Hidden((Component) null, \"(vLoO6y2\\\"Vht&{{\", \"(vLoO6y2\\\"Vht&{{\");\n Hidden hidden1 = (Hidden)hidden0.attribute(\"(vLoO6y2\\\"Vht&{{\", \"(vLoO6y2\\\"Vht&{{\");\n assertTrue(hidden1.isValid());\n }", "@Test(timeout = 4000)\n public void test334() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = new Label(errorPage0, errorPage0);\n Component component0 = errorPage0.legend((Object) label0);\n assertTrue(component0._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "@Test\n\tpublic void TC_01_Web_Element() {\n\t\tdriver.findElement(By.id(\"\")); //**\n\t\t\n\t\t//Tim nhieu element\n\t\tdriver.findElements(By.id(\"\"));//**\n\t\t\n\t\t//If chi thao tac vs element 1 lan thi ko can khai bao bien\n\t\tdriver.findElement(By.id(\"small-searchterms\")).sendKeys(\"Apple\");//**\n\t\t\n\t\t//If can thao tac element nhieu lan thi nen khai bao bien\n\t\tWebElement searchTextbox = driver.findElement(By.id(\"small-searchterms\"));\n\t\tsearchTextbox.clear();//**\n\t\tsearchTextbox.sendKeys(\"Apple\");\n\t\tsearchTextbox.getAttribute(\"value\");//**\n\t\t\n\t\t//driver.findElement(By.id(\"small-searchterms\")).clear();\n\t\t//driver.findElement(By.id(\"small-searchterms\")).sendKeys(\"Apple\");\n\t\t//driver.findElement(By.id(\"small-searchterms\")).getAttribute(\"value\");\n\t\t\n\t\t//Count co bao nhieu element thoa dieu kien\n\t\t//Verify so luong element tra ve nhu mong doi\n\t\t//Thao tac vs all cac loai element giong nhau trong 1 page (checkbox/textbox)\n\t\tList<WebElement> checkboxes = driver.findElements(By.xpath(\"//div[@class='inputs']/input[not(@type='checkbox')]\"));\n\t\t\n\t\t//Lay ra so luong\n\t\tAssert.assertEquals(checkboxes.size(), 6);\n\t\t\n\t\tWebElement singleElement = driver.findElement(By.className(\"\"));\n\t\t\n\t\t//Textbox TextArea/ Edittable dropdown\n\t\t//Du lieu duoc toan ven\n\t\tsearchTextbox.clear();\n\t\tsearchTextbox.sendKeys(\"\");\n\t\t\n\t\t//Button/Link/radio/checkbox/custom dropdown/..\n\t\tsingleElement.click();//**\n\t\t\n\t\t//Cac ham co tien to bat dau bang get lun lun tra ve du lieu \n\t\t//getTitle/ getCurrentUrl/ getPageSource/ getAttribute/ getCssValue/ getText/ get...\n\t\tsingleElement = driver.findElement(By.xpath(\"//input[@id='Firstname']\"));\n\t\tsingleElement.getAttribute(\"\");\n\t\t\n\t\t//Automation\n\t\tsingleElement = driver.findElement(By.xpath(\"//input[@id='small-searchterms']\"));\n\t\tsingleElement.getAttribute(\"placeholder\");\n\t\t//Search store\n\t\t\n\t\t//Lay ra gia tri cua cac thuoc tinh css thuong dung de test GUI\n\t\t//Font/Size/Color/Background/...\n\t\tsingleElement = driver.findElement(By.cssSelector(\"search-box-button\"));\n\t\tsingleElement.getCssValue(\"background-color\");//*\n\t\t//#4ab2f1\n\t\tsingleElement.getCssValue(\"text-transform\");\n\t\t//uppercase\n\t\t\n\t\t//Lay ra toa do element so voi page hien tai (get gox ben ngoai)\n\t\tsingleElement.getLocation();\n\t\t\n\t\t//lay ra kich thuoc cua element (rong x cao) -> get goc ben trong element\n\t\tsingleElement.getSize();\n\t\t\n\t\t//Location + size\n\t\tsingleElement.getRect();\n\t\t\n\t\t//Chup hinh loi => dua vao html export\n\t\tsingleElement.getScreenshotAs(OutputType.FILE);//*\n\t\t\n\t\t\n\t\t//id/class/css/name...//tu 1 element ko bik tagname -> lay ra duoc tagname truyen vao cho 1 locator khac\n\t\tsingleElement = driver.findElement(By.xpath(\"//div[@class='inputs']/input[not(@type='checkbox')]\"));\n\t\tString searchButtonTagname = singleElement.getTagName();//*\n\t\t\n\t\tsearchTextbox = driver.findElement(By.xpath(\"//\" + searchButtonTagname + \"[@class='inputs']/input[not(@type='checkbox')]\"));\n\t\t//input\n\t\t\n\t\t//xpath\n\t\t//tagname[@attribute='value']\n\t\t\n\t\t\n\t\t//lay ra text element (header/link/message/...)\n\t\tsingleElement.getText();//**\n\t\t\n\t\t//Cac ham co tien to la isXXX thi tra ve kieu Boolean (100%)\n\t\t//true/false\n\t\t\n\t\t//kiem tra xem 1 element la hien thi cho nguoi dung thao tac hay ko\n\t\t//true: dang hien thi\n\t\t//false: ko hien thi\n\t\tsingleElement.isDisplayed();//**\n\t\t\n\t\t//kiem tra xem 1 element la disable hay ko\n\t\t//disable: user ko thao tac duoc\n\t\t//true: ko thao tac duoc\n\t\t//false: co the thao tac\n\t\tsingleElement.isEnabled();//*\n\t\t\n\t\t//kiem tra xem 1 element da duoc chon roi hay chua\n\t\t//checkbox/ radio/ dropdown\n\t\t//true: da chon roi\n\t\t//false: chua duoc chon\n\t\tsingleElement.isSelected();//*\n\t\t\n\t\t//no thay cho hanh vi ENTER vao textbox/button\n\t\t//chi dung duoc trong form (Login/search/register/...)\n\t\tsingleElement.submit();\n\t\t\n\t\tsingleElement = driver.findElement(By.id(\"small-searchterms\"));\n\t\tsingleElement.sendKeys(\"Apple\");\n\t\tsingleElement.submit();\n\t\t\n\t\t\n\t\t\n\t}", "@Test\n public void test2(){\n\n List<FitActivity> upper = fitActivityRepository.findAllByBodyPart(\"Upper\");\n for (FitActivity fitActivity : upper) {\n System.out.println(fitActivity.getName());\n\n }\n\n }", "@Test\n public void test19(){\n // List<Integer> services = response.extract().path(\"data.findAll{it.services=='Samsung Experience'}.storeservices\");\n //List<HashMap<String, ?>> address = response.extract().path(\"data.findAll{it.service=='Samsung Experience'}.storeservices\");\n System.out.println(\"------------------StartingTest---------------------------\");\n System.out.println(\"The name of all services:\" );\n System.out.println(\"------------------End of Test---------------------------\");\n }", "@Test\n public void test105() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = (Label)errorPage0.strong((Object) errorPage0);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(label0._isGeneratedId());\n }", "@Test\n public void testDAM31801002() {\n // Data preparation\n {\n clearAndCreateTestDataForBook();\n }\n\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n TodoListPage todoListPage = dam3IndexPage.dam31801002Click();\n\n todoListPage.setTodoTitleContent(\"Todo 1\");\n\n todoListPage.setTodoCreationDate(\"2016/12/30\");\n\n todoListPage = todoListPage.searchUsingOverwrittenTypeAliasName();\n\n // Assert the todo record count from DB table\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getIncompletTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getTotalTodoCount(), equalTo(\"2\"));\n\n boolean isTodoPresent = todoListPage.isTodoDisplayed(\"0000000001\");\n assertThat(isTodoPresent, is(true));\n\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000010\");\n assertThat(isTodoPresent, is(true));\n\n // this todo does not meets the criteria.Hence not displayed.\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000002\");\n assertThat(isTodoPresent, is(false));\n }", "protected GuiTestObject bed_4() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"bed_4\"));\n\t}", "@Test\n public void test091() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n LabeledWord labeledWord0 = new LabeledWord(\"\");\n Label label0 = (Label)errorPage0.s((Object) labeledWord0);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(label0._isGeneratedId());\n }", "@Test\n public void rentClientMatch() throws UiObjectNotFoundException {\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"btn_create_post\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"lbl_rental_client\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"txt_name\")\n .childSelector(new UiSelector().className(Utils.EDIT_TEXT_CLASS))).setText(\"Icon Windsor Rent\");\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"dd_configuration\")).click();\n device.findObject(By.text(\"3 BHK\")).click();\n clickButton(device);\n device.wait(Until.findObject(By.text(\"No\")), 2000);\n device.findObject(By.text(\"No\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"dd_furnishing\")).click();\n device.findObject(By.text(\"Fully-Furnished\")).click();\n clickButton(device);\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"txt_pricing\")\n .childSelector(new UiSelector().index(1))).click();\n device.findObject(By.text(\"2\")).click();\n device.findObject(By.text(\"5\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n clickButton(device);\n device.wait(Until.findObject(By.text(\"Building Names\")), 2000);\n device.findObject(By.text(\"ADD BUILDING\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"input_search\")).setText(\"Icon\");\n device.wait(Until.findObject(By.text(\"Icon Windsor Park\")), 10000);\n device.findObject(By.text(\"Icon Windsor Park\")).click();\n clickButton(device);\n UiScrollable postView = new UiScrollable(new UiSelector().scrollable(true));\n UiSelector postSelector = new UiSelector().text(\"POST\");\n postView.scrollIntoView(postSelector);\n device.findObject(postSelector).click();\n device.wait(Until.findObject(By.text(\"POST\").enabled(true)), 10000);\n String matchNameString = device.findObject(By.textContains(\"matches\")).getText().split(\" \")[0];\n device.findObject(By.text(\"POST\")).click();\n device.wait(Until.findObject(By.text(\"RENTAL CLIENT\")), 9000);\n Assert.assertNotEquals(\"Test Case Failed...No Match found\", \"no\", matchNameString.toLowerCase());\n String postMatchName = device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"lbl_name\")).getText();\n Assert.assertEquals(\"Test Case Failed...Match should have had been found with\", \"dialectic test\", postMatchName.toLowerCase());\n\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"btn_close\")).click();\n Utils.markPostExpired(device);\n }", "@Test(timeout = 4000)\n public void test277() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n errorPage0.strike();\n Component component0 = errorPage0.legend();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component0._isGeneratedId());\n }", "public SNGTestCases Options_TC1017() throws InterruptedException{\n \tString flavour = \"Electrical\";\n \t\n \tforDebugger();\n \twaitForElement(By.id(\"com.pointedsquares.gamy5.android:id/header_name\"),120);\n \ttry{\n \t\twaitForElement(By.xpath(\"//android.widget.TextView[contains(@text , 'Academics') and contains(@resource-id , 'itemTitle')]\") , 5);\n \t}catch(Exception ex){\n \t\tdriver.scrollTo(\"Academics\");\n \t}\n \tdriver.findElement(By.xpath(\"//android.widget.TextView[contains(@text , 'Academics') and contains(@resource-id , 'itemTitle')]/following-sibling::android.widget.TextView[contains(@text , 'More')]\")).click();\n \twaitForElement(By.id(\"com.pointedsquares.gamy5.android:id/search_all\"), 10);\n \tdriver.findElement(By.id(\"com.pointedsquares.gamy5.android:id/search_all\")).click();\n \tdriver.findElement(By.id(\"com.pointedsquares.gamy5.android:id/search_all\")).sendKeys(flavour);\n \tdriver.findElement(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'flavour_name_list') and contains(@text , 'Electrical Engineering')]\")).click();\n \twaitForElement(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'stake_amount') and contains(@text , '500')]\"),5);\n \tdriver.findElement(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'stake_amount') and contains(@text , '500')]\")).click();\n \twaitForElement(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'message_text') and contains(@text , 'You are about to play Electrical Engineering game with 500 coins stake.')]\"), 5);\n \tdriver.findElement(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'message_text') and contains(@text , 'You are about to play Electrical Engineering game with 500 coins stake.')]\")).click();\n \tdriver.findElement(By.id(\"com.pointedsquares.gamy5.android:id/positive_button\")).click();\n \twaitForVisibilityOf(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'response') and contains(@text , 'Finding room for you...')]\"));\n \tThread.sleep(5000);\n \ttry{\n \t\twaitForElement(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'response') and contains(@text , 'Still Waiting.....')]\") , 2);\n \t}catch(Exception ex){\n \t\t\n \t}\n \twaitForVisibilityOf(By.id(\"com.pointedsquares.gamy5.android:id/choice_linear\"));\n \tList<WebElement> choices = driver.findElements(By.xpath(\"//android.widget.LinearLayout[contains(@resource-id , 'choice_linear')]/*\"));\n \t\n \tboolean noOfChoice = true;\n \tif(choices.size()!=4){\n \t\t\n \t\tnoOfChoice = false;\n \t}\n \tassertTrue(noOfChoice , \"Choice not equal to 4\");\n \t\n \tThread.sleep(7000);\n \treturn new SNGTestCases(driver);\n }", "@Test(timeout = 4000)\n public void test221() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n MockDate mockDate0 = new MockDate((-800), (-800), (-707), 75, 43);\n Label label0 = new Label(errorPage0, mockDate0);\n Component component0 = label0.b();\n component0._getVisibleForm(false);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component0._isGeneratedId());\n }", "@Test\n public void TEST_FR_SELECTDIFFICULTY_UI() {\n GameData.gameDifficulty = \"unchanged\";\n ChooseDifficultyUI testUI = new ChooseDifficultyUI();\n clickButton(testUI, 1, \"easy\");\n clickButton(testUI, 2, \"medium\");\n clickButton(testUI, 3, \"hard\");\n }", "@Test\n public void starvationCategory() {\n\n driver.findElement(By.xpath(\"//input[@name='wg']\")).sendKeys(\"47.5\");\n driver.findElement(By.xpath(\"//input[@name='ht']\")).sendKeys(\"178\");\n driver.findElement(By.xpath(\"//input[@name='cc']\")).click();\n Assert.assertEquals(driver.findElement(By.name(\"desc\")).getAttribute(\"value\"), \"Your category is Starvation\",\n \"actual text is not: Your category is Starvation\");\n }", "@Test(priority = 66)\r\n@Epic(\"BILLS PAYMENT\")\r\n@Features(value = { @Feature(value = \"BUY GOODS USING MPESA\") })\r\n@Step (\"BUY GOODS USING MPESA\")\r\n@Severity(SeverityLevel.TRIVIAL)\r\npublic void Buy_Goods_Using_MPESA_Test_cases() {\n\tSystem.out.println(\"BUY GOODS AND SERVICES\");\t\r\n\tSystem.out.println(\"*************************(1)Running Buy Goods Using MPESA Testcases***********************************\");\r\n\r\n}", "@Test\n public void testDAM30901001() {\n // Data preparation\n {\n clearAndCreateTestDataForBook();\n }\n\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n TodoListPage todoListPage = dam3IndexPage.dam30901001Click();\n\n // Confirmation of database state before batch update\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"3\"));\n assertThat(todoListPage.getIncompletTodoCount(), equalTo(\"7\"));\n assertThat(todoListPage.getTotalTodoCount(), equalTo(\"10\"));\n\n todoListPage.selectCompleteStatRadio();\n\n todoListPage = todoListPage.ifElementUsageSearch();\n\n // Confirmation of database state before batch update\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"3\"));\n\n // 1 and 3 todos are incomplete. hence not displayed\n boolean isTodoPresent = todoListPage.isTodoDisplayed(\"0000000003\");\n assertThat(isTodoPresent, is(false));\n\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000001\");\n assertThat(isTodoPresent, is(false));\n // 10 todo is complete. hence displayed.\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000010\");\n assertThat(isTodoPresent, is(true));\n\n // default value of finished is now false.hence todos like 1,3 will be displayed\n // where as todo like 10 will not be displayed.\n todoListPage.selectInCompleteStatRadio();\n todoListPage = todoListPage.ifElementUsageSearch();\n\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000003\");\n assertThat(isTodoPresent, is(true));\n\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000001\");\n assertThat(isTodoPresent, is(true));\n // 10 todo is complete. hence displayed.\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000010\");\n assertThat(isTodoPresent, is(false));\n\n // scenario when finished property of criteria is null.\n\n }", "@Test(timeout = 4000)\n public void test217() throws Throwable {\n Hidden hidden0 = new Hidden((Component) null, \".*,r%\", \"Col component ca be added only to a TableBlock.\");\n Checkbox checkbox0 = new Checkbox(hidden0, \"Col component ca be added only to a TableBlock.\", \"Col component ca be added only to a TableBlock.\");\n Checkbox checkbox1 = (Checkbox)checkbox0.addInternalRenderHint(\"z%+/0u:g&ib%-bQ:\");\n assertEquals(\"Col component ca be added only to a TableBlock.\", checkbox1.getFormElementName());\n }", "public void testadvancedSearchTitleAndBody(){\n\t\t\n//\t\tmanager.advancedSearchTitleAndBody(ElasticIndex.analyzed, \"List of international tennis player \",\" Andre Agassi\" );\n\t}", "@Test\n public void testDAM32102002() {\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n OrderMB3ListPage orderMB3ListPage = dam3IndexPage.dam32102002Click();\n\n String expectedOrdeDetails = \"Order accepted, ITM0000001, Orange juice, CTG0000001, Drink, dummy1\";\n\n // get the details of the specified order in a single string\n String actualOrderDetails = orderMB3ListPage.getOrderDetails(1);\n\n // confirm the details of the order fetched from various tables\n assertThat(actualOrderDetails, is(expectedOrdeDetails));\n\n orderMB3ListPage.setItemCode(\"ITM0000001\");\n\n orderMB3ListPage = orderMB3ListPage.fetchRelatedEntityLazy();\n\n // Expected related entity category details\n String expRelatedEntityDet = \"CTG0000001, Drink\";\n\n String actRelatedEntityDet = orderMB3ListPage\n .getRelatedEntityCategoryDeatils(1);\n\n // confirmed realted entity details\n assertThat(actRelatedEntityDet, is(expRelatedEntityDet));\n }", "@org.junit.Test\n public void constrCompelemAttr1() {\n final XQuery query = new XQuery(\n \"element elem {1, //west/@mark}\",\n ctx);\n try {\n query.context(node(file(\"prod/AxisStep/TopMany.xml\")));\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n error(\"XQTY0024\")\n );\n }", "public ManagePropertiesPage reviewProrty(Hashtable<String, String> testData) throws Exception {\n\ttry{\n\t\tcheckElementExistence(driver,By.xpath(\"lblPptyAddressvalue\"),5);\n\t\t/*COC.webAdaptor(Actions.waitForObjectToLoad, \"lblPptyAddressvalue\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblPptybillinfo\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblPptyName\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblPptyNameValue\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblPptyAddress\");\n\t\tCOC.webAdaptor(Actions.waitForText, \"lblPptyAddressvalue\");\n\t\n\t\t\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblMasterAccntno\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblMasterAccntnoValue\");\n\t\tCOC.webAdaptor(Actions.waitForText, \"lblAcntBillgName\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblAcntBillgNameValue\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblAccntMailingadd\");\n\t\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblAccntMailingaddvalue\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblUnit\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblAddress\");\n\n\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblTermsAgg\");\n\t\t*/COC.webAdaptor(Actions.click, \"chkTermsAgg\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblName\");\n\t\tcheckElementExistence(driver,By.xpath(\"inputName\"),5);\n\t\tCOC.webAdaptor(Actions.setText, \"inputName\",testData.get(\"Name\"));\n\t\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblTitle\");\n\t\tcheckElementExistence(driver,By.xpath(\"inputTitle\"),5);\n\t\tCOC.webAdaptor(Actions.setText, \"inputTitle\", testData.get(\"Title\"));\n\t\t\n\t\t/*COC.webAdaptor(Actions.waitForObjectToLoad, \"lblEmail\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblEmailValue\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lnkBack\");\n\t\n\t*/\t\n\t\tcheckElementExistence(driver,By.xpath(\"btnSubmit\"),5);\n\t\t//COC.webAdaptor(Actions.waitForObjectToLoad, \"btnSubmit\");\n\t\tCOC.webAdaptor(Actions.click, \"btnSubmit\");\n\t\tThread.sleep(5000);\n\t\t\n\t/*\tFile scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\n\t\tFileUtils.copyFile(scrFile, new File(\"Screenshots//\" + this.getClass().getSimpleName() + \"_\" +System.currentTimeMillis() +\".png\"));\n\t\tCOCDriverScript.logMessage(\"testStepPass\", \"Selected New Property\");\n\t*/ }catch(Exception e){\n\t\tCOCDriverScript.logMessage(\"testStepFail\", \"Element not found\");\n\t\tSystem.out.println(e.getMessage());\n\t\te.printStackTrace();\n\t\tFile scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\n\t\tFileUtils.copyFile(scrFile, new File(\"Screenshots//\" + this.getClass().getSimpleName() + \"_\" +System.currentTimeMillis() +\".png\"));\n\t }\n\treturn new ManagePropertiesPage(driver, localData);\n}", "@Test\n public void testDAM31801001() {\n // Data preparation\n {\n clearAndCreateTestDataForBook();\n }\n\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n TodoListPage todoListPage = dam3IndexPage.dam31801001Click();\n\n todoListPage.setTodoTitleContent(\"Todo 1\");\n\n todoListPage.setTodoCreationDate(\"2016/12/30\");\n\n todoListPage = todoListPage.searchUsingClassTypeAlias();\n\n // Assert the todo record count from DB table\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getIncompletTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getTotalTodoCount(), equalTo(\"2\"));\n\n boolean isTodoPresent = todoListPage.isTodoDisplayed(\"0000000001\");\n assertThat(isTodoPresent, is(true));\n\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000010\");\n assertThat(isTodoPresent, is(true));\n\n // this todo does not meets the criteria.Hence not displayed.\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000002\");\n assertThat(isTodoPresent, is(false));\n }", "@Test\n public void test100() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Block block0 = (Block)errorPage0.li();\n Label label0 = (Label)errorPage0.label((Object) null);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(label0._isGeneratedId());\n }", "@Test(dataProvider = \"PrettyWomen\", dataProviderClass = DataProviders.class, priority = 6, enabled = testCase30, groups = {\"user\", \"admin\"})\n public void searchDifferentResultsTestCase30(String minAge, String maxAge, String sortBy) {\n\n int min = Integer.parseInt(minAge); //3. Everything you take from UI always string (vid 21, 11:28)\n int max = Integer.parseInt(maxAge); // -> Convert data from String to Int == have to parse it\n //Then add value to - int min\n\n prettyWomenPage.openPrettyWomenPage(); //search pretty women link\n //interact with dropdown list, add different values from data provider\n prettyWomenPage.javaWaitSec(3);\n prettyWomenPage.getDropDownListByText(driver.findElement(Locators.DROP_DOWN_LIST_MIN_AGE), minAge);\n prettyWomenPage.getDropDownListByText(driver.findElement(Locators.DROP_DOWN_LIST_MAX_AGE), maxAge);\n prettyWomenPage.getDropDownListByText(driver.findElement(Locators.DROP_DOWN_LIST_SORT_BY), sortBy);\n prettyWomenPage.clickSearchButton(); //click the search button\n\n //Vid 22, 12:00\n //1. Filter data from regions\n //2. Split data\n //3. Everything you take from UI always string (vid 22, 11:28)\n // -> Convert data from String to Int == have to parse it\n\n // After we collect web elements\n List<WebElement> infoAboutUser = driver.findElements(Locators.TEXT_PRETTY_WOMEN_INFO); //names, age, region\n\n // System.out.println(infoAboutUser.size());\n\n for (int i = 0; i < infoAboutUser.size(); i++) { // prettyWomenPage.ajaxScroll(text);\n // wait.until(ExpectedConditions.visibilityOf(text));\n if (i % 2 == 0) {\n\n WebElement text = infoAboutUser.get(i);\n String info = text.getText();\n String[] splittedPhrase = info.split(\", \");\n String age = splittedPhrase[1];\n int ageNum = Integer.parseInt(age);\n\n if (min <= ageNum || ageNum <= max) {\n System.out.println(\"This age: \" + ageNum + \" is correct\");\n } else {\n Assert.fail(\"Wrong age: \" + ageNum);\n }\n\n }\n prettyWomenPage.javaWaitSec(3);\n infoAboutUser = driver.findElements(Locators.TEXT_PRETTY_WOMEN_INFO); //get elements\n }\n }", "@org.junit.Test\n public void constrCompelemAttr2() {\n final XQuery query = new XQuery(\n \"element elem {element a {}, //west/@mark}\",\n ctx);\n try {\n query.context(node(file(\"prod/AxisStep/TopMany.xml\")));\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n error(\"XQTY0024\")\n );\n }", "@Test(timeout = 4000)\n public void test007() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.q();\n Component component1 = component0.span();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertEquals(\"Block_2\", component1.getComponentId());\n }", "@Test\n public void nameDetailNeighbourIsGood() {\n ViewInteraction recyclerView = onView(\n allOf(withId(R.id.list_neighbours),isDisplayed()));\n recyclerView.perform(actionOnItemAtPosition(1, click()));\n\n ViewInteraction textView = onView(\n allOf(withId(R.id.titleNameNeighbour_view), withText(\"Jack\"),\n withParent(withParent(withId(android.R.id.content))),\n isDisplayed()));\n textView.check(matches(withText(\"Jack\")));\n }", "private void generateTestExecution(ITestResult result) throws IOException{\r\n\t\t//create the html file with current running class and test name\r\n\t\tfout = createRequiredFile(result.getName());\r\n\t\t\r\n\t\t//Write initial html codes neccessary for report\r\n\t\tstartHtmlPage(fout,result);\r\n\t\t\r\n\t\t//get all the attributes set during the test execution\r\n\t\tObject[] array = result.getAttributeNames().toArray();\r\n\t\t\r\n\t\t//Above got values are not in sort. So, Sorting that based on time\r\n\t\tArrays.sort(array);\r\n\t\t\r\n\t\t//Iterating the array value to generate report\r\n \tfor(Object name : array){\r\n \t\t\t\r\n \t\t\t//Each and every array value contains, All the info about the particular action\r\n \t\t\t//And Values combined using deliminator. So, split using deliminator\r\n\t \t\tString temp[] = result.getAttribute((String) name).toString().split(\"####\");\r\n\t \t\t\r\n\t \t\t//After split up, If the third array value contains 'Fail' means that step failed \r\n\t \t\tif(temp[3].toLowerCase().contains(\"fail\")){\r\n\t \t\t\t//If Fail create '<tr>' tag with 'status_failed' class(Which is used for create 'red' background color for failed cases)\r\n\t \t\t\tfout.println(\"<tr class=\\\"status_failed\\\" title=\\\"\\\" alt=\\\"\\\">\");\r\n\t \t\t\t\r\n\t \t\t\t//create the screenshot path\r\n\t \t\t\tString pathToScreenshot = \"../Failure_Screenshot/\"+temp[5]+\".jpg\";\r\n\t \t\t\t\r\n\t \t\t\t//creating mapping for failed step(Link to screen shot and embed the screenshot in that step)\r\n\t \t\t\ttemp[4] = \"<a href=\\'\" + pathToScreenshot + \"\\'> <img src=\\'\" + pathToScreenshot + \"\\' height=\\\"100\\\" width=\\\"100\\\"> </a>\";\r\n\r\n\t \t\t}\r\n\t \t\t\r\n\t \t\t//After split up, If the third array value contains 'title' means that is title\r\n\t \t\telse if(temp[3].toLowerCase().contains(\"title\")){\r\n\t \t\t\t//So, If it is a title then create '<tr>' tag with class name 'title'\r\n\t \t\t\tfout.println(\"<tr class=\\\"title\\\" title=\\\"\\\" alt=\\\"\\\">\");\r\n\t \t\t\tfout.println(\"<td colspan=\\\"6\\\">\"+ temp[0] + \"</td>\");\r\n\t \t\t\tfout.println(\"</tr>\");\r\n\t \t\t\tcontinue;\r\n\t \t\t}\r\n\t \t\t\r\n\t \t\t//Else status is passed\r\n\t \t\telse{\r\n\t \t\t\tfout.println(\"<tr class=\\\"status_passed\\\" title=\\\"\\\" alt=\\\"\\\">\");\r\n\t \t\t}\r\n\t \t\t\r\n\t \t\t//this will create separate '<td>' for messages inside the action\r\n\t \t\tfor(String temp1 : temp){\r\n\t \t\t\t\tfout.println(\"<td>\"+ temp1 + \"</td>\");\r\n\r\n\t \t\t}\r\n\t \t//end up '<tr>' tag\t\r\n\t \tfout.println(\"</tr>\");\r\n \t}\r\n \t\r\n \t//this used for write some end up html tags\r\n \tonFinish();\r\n \t\r\n\t}", "@Test\n public void test1() {\n FirefoxBinary binary =\n new FirefoxBinary(new File(FIREFOX_PATH));\n driver = TestBench.createDriver(\n new FirefoxDriver(binary, new FirefoxProfile()));\n setDriver(driver);\n getDriver().get(URL);\n ButtonElement button = $(ButtonElement.class).first();\n button.click();\n LabelElement label = $(LabelElement.class).id(\"result\");\n\n Assert.assertEquals(\"Thanks , it works!\",label.getText());\n driver.quit();\n }", "@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void verifyMultiDialMeterBySitepostcode()\n{\t\t\n\t Report.createTestLogHeader(\"Submit Meter Read\", \"Verify whether Single or multiple Search results are getting displayed while giving valid Site postcode in search field\");\n\tSMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"GlobalSMRMultiDialMetersitepost\");\n\tnew SubmitMeterReadAction()\n\t\n\t.BgbnavigateToLogin()\n\t.BgbloginDetails(smrProfile)\n\t.BgbverifyAfterLogin()\n\t.clickSubmitMeterReadLink()\n\t.searchBySitepostcode(smrProfile)\n .enterGlobalMeterDials(smrProfile)\n .verifyMeterReadConfirmationTitle()\n\t.verifyAuditLeadTable(smrProfile);\n \n}", "@Test(priority = 75)\r\n@Epic(\"BILLS PAYMENT\")\r\n@Features(value = { @Feature(value = \"BUY GOODS USING MPESA\") })\r\n@Step (\"END OF BUY GOODS USING MPESA TILL TESTCASES\")\r\n@Severity(SeverityLevel.TRIVIAL)\r\npublic void End_Buy_Goods_Using_MPESA_Test_cases() {\n\tSystem.out.println(\"*************************End of buy Goods Using Mpesa Test cases***********************************\");\r\n\r\n}", "public void testGetStateName() {\r\n test1 = state2;\r\n assertEquals(test1.getStateName(), \"Virginia\");\r\n }", "@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void verifySearchMeterByAcctno()\n{\t\t\n\t Report.createTestLogHeader(\"Submit Meter Read\", \"Verify multiple Search results are getting displayed while giving valid Account number in search field\");\n\tSMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"GlobalSMRMultiDialMeter11\");\n\tnew SubmitMeterReadAction()\n\t\n\t.BgbnavigateToLogin()\n .BgbloginDetails(smrProfile)\n .BgbverifyAfterLogin()\n .clickSubmitMeterReadLink()\n .SearchByAccoutnNumber(smrProfile)\n .enterMeterDials(smrProfile)\n //.enterGlobalMeterDials(smrProfile)\n\t.verifyMeterReadConfirmationTitle()\n\t.verifyAuditLeadTable(smrProfile);\n \n}", "@Test\n public void selenium(){\n LandingPage landingPage = new LandingPage();\n landingPage.setDriver(driver);\n landingPage\n .assertTitle()\n .clickFindMeeting()\n .assertTitle()\n .search(\"10011\")\n .printFirstLocation()\n .printFirstDistance()\n .clickOnLocation()\n .assertLocationMatches()\n .printTodaysHours();\n }", "public void Select_Alternateproperty_BookNow(String SelectProperty)\r\n\t{\r\n\t\tfor(WebElement propertys:Alternateproperty_name)\t\r\n\t\t{\t\r\n\t\t\tif(propertys.isDisplayed())\r\n\t\t\t{\r\n\t\t\t\tif(propertys.getText().equals(SelectProperty))\r\n\t\t\t\t{\r\n\t\t\t\t\tpropertys.click();\r\n\t\t\t\t\ttest.log(Status.INFO, SelectProperty+\" property selected successfully\");\t\r\n\t\t\t\t\tlogger.info( SelectProperty+\" property selected successfully\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\ttest.log(Status.FAIL, SelectProperty+\" property not found \");\r\n\t\t\t\tlogger.error(SelectProperty+\" property not found \");\r\n\t\t\t}\r\n\t\t}\r\n\t\t/*try\r\n\t\t{\r\n\t\t\tExplicitWait(SeleniumRepo.driver.findElement(By.xpath(\"(//*[text()='\"+SelectProperty+\"' and @ng-bind='booking.hotel.name'])[1]\")));\r\n\t\tWebElement Booking_Propoertyname=SeleniumRepo.driver.findElement(By.xpath(\"(//*[text()='\"+SelectProperty+\"' and @ng-bind='booking.hotel.name'])[1]\"));\r\n\r\n\t\t\t\ttest.log(Status.PASS, SelectProperty+\" property displayed on Map Successfully\");\r\n\t\t\t\tlogger.info(SelectProperty+\" property displayed on Map Successfully\");\r\n\r\n\t\t\ttest.log(Status.FAIL, SelectProperty+\" property not found on Map \");\r\n\t\t\tlogger.error(SelectProperty+\" property not found on Map\");\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tWebElement Booking_Propoertyname=SeleniumRepo.driver.findElement(By.xpath(\"(//*[text()='\"+SelectProperty+\"' and @ng-bind='booking.hotel.name'])[2]\"));\r\n\r\n\t\t\tif(Booking_Propoertyname.isDisplayed())\r\n\t\t\t{\r\n\t\t\t\t\ttest.log(Status.PASS, SelectProperty+\" property displayed on Map Successfully\");\r\n\t\t\t\t\tlogger.info(SelectProperty+\" property displayed on Map Successfully\");\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\ttest.log(Status.FAIL, SelectProperty+\" property not found on Map \");\r\n\t\t\t\tlogger.error(SelectProperty+\" property not found on Map\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t */\r\n\t}", "protected GuiTestObject html_main() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"html_main\"));\n\t}", "@Test\n public void testDAM30401002() {\n // Data preparation\n {\n clearAndCreateTestDataForBook();\n }\n\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n TodoListPage todoListPage = dam3IndexPage.dam30401002Click();\n\n todoListPage.setTodoForSearch(\"0000000006\");\n\n TodoDetailsPage todoDetailsPage = todoListPage.asClauseRstSearch();\n\n assertThat(todoDetailsPage.getTodoTitle(), equalTo(\"Todo 6\"));\n assertThat(todoDetailsPage.getTodoID(), equalTo(\"0000000006\"));\n assertThat(todoDetailsPage.getTodoCategory(), equalTo(\"CA1\"));\n assertThat(todoDetailsPage.getTodoStatus(), equalTo(\"Complete\"));\n assertThat(todoDetailsPage.getTodoCreatedDate(), equalTo(\"2016/12/26\"));\n // initial version is 0\n assertThat(todoDetailsPage.getTodoVersion(), equalTo(\"1\"));\n }", "@Test(priority=1)\r\n\tpublic void getTitle() {\r\n\t\tString title=driver.getTitle();\r\n\t\tSystem.out.println(( title).toUpperCase());\r\n\t}", "@Test(timeout = 4000)\n public void test197() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Checkbox checkbox0 = new Checkbox(errorPage0, \"kiDz=CI9_ri)~odKM\", \"]1\");\n checkbox0.renderHint(\"]1\");\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "@Test\n public void test003() {\n String name = response.extract().path(\"data[4].name\");\n\n\n System.out.println(\"------------------StartingTest---------------------------\");\n System.out.printf(\"The 5th sore name is: %s%n\", name);\n System.out.println(\"------------------End of Test---------------------------\");\n }", "@CssSelector(\"${williamsSProducts}\")\n\tpublic AspireWebElements williamsSProducts();", "@Test\n public void z_topDown_TC03() {\n try {\n Intrebare intrebare = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"M\");\n Intrebare intrebare1 = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"A\");\n Intrebare intrebare2 = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"B\");\n Intrebare intrebare3 = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"C\");\n assertTrue(true);\n assertTrue(appService.exists(intrebare));\n assertTrue(appService.exists(intrebare1));\n assertTrue(appService.exists(intrebare2));\n assertTrue(appService.exists(intrebare3));\n\n try {\n ccir2082MV.evaluator.model.Test test = appService.createNewTest();\n assertTrue(test.getIntrebari().contains(intrebare));\n assertTrue(test.getIntrebari().contains(intrebare1));\n assertTrue(test.getIntrebari().contains(intrebare2));\n assertTrue(test.getIntrebari().contains(intrebare3));\n assertTrue(test.getIntrebari().size() == 5);\n } catch (NotAbleToCreateTestException e) {\n assertTrue(false);\n }\n\n Statistica statistica = appService.getStatistica();\n assertTrue(statistica.getIntrebariDomenii().containsKey(\"Literatura\"));\n assertTrue(statistica.getIntrebariDomenii().get(\"Literatura\")==1);\n\n assertTrue(statistica.getIntrebariDomenii().containsKey(\"M\"));\n assertTrue(statistica.getIntrebariDomenii().get(\"M\")==1);\n\n assertTrue(statistica.getIntrebariDomenii().containsKey(\"A\"));\n assertTrue(statistica.getIntrebariDomenii().get(\"A\")==1);\n\n assertTrue(statistica.getIntrebariDomenii().containsKey(\"B\"));\n assertTrue(statistica.getIntrebariDomenii().get(\"B\")==1);\n\n assertTrue(statistica.getIntrebariDomenii().containsKey(\"C\"));\n assertTrue(statistica.getIntrebariDomenii().get(\"C\")==1);\n\n } catch (DuplicateIntrebareException | IntrebareValidatorFailedException e) {\n e.printStackTrace();\n assertTrue(false);\n } catch (NotAbleToCreateStatisticsException e) {\n assertTrue(false);\n }\n }", "@Test\n public void testDAM31304001() {\n\n // Data preparation\n {\n clearAndCreateTestDataForBook();\n }\n\n {\n webDriverOperations.click(id(\"dam31304001\"));\n }\n\n {\n assertThat(webDriverOperations.getText(id(\"getDateResult\")), is(\n \"2016-12-29\"));\n assertThat(webDriverOperations.getText(id(\"getDateClassResult\")),\n is(\"java.time.LocalDate\"));\n assertThat(webDriverOperations.getText(id(\n \"getObjectCertification\")), is(\"true\"));\n }\n }", "@Test\n\t\t public void testLocationTwo() {\n\t\t \tdriver.get(\"http://mq-devhost-lm52.ihost.aol.com:9002/us/nj/upper-montclair/preston-pl-valley-rd/\");\n\t\t \tAssertJUnit.assertEquals(Utils.getElementText(driver,PageLayoutSelectors.TOP_NAME),\"Preston Pl & Valley Rd\");\n\t\t }", "public SNGTestCases Questions_TC1016() throws InterruptedException{\n \tString flavour = \"Electrical\";\n \t\n \tforDebugger();\n \twaitForVisibilityOf(By.id(\"com.pointedsquares.gamy5.android:id/header_name\"));\n \ttry{\n \t\twaitForElement(By.xpath(\"//android.widget.TextView[contains(@text , 'Academics') and contains(@resource-id , 'itemTitle')]\") , 5);\n \t}catch(Exception ex){\n \t\tdriver.scrollTo(\"Academics\");\n \t}\n \tdriver.findElement(By.xpath(\"//android.widget.TextView[contains(@text , 'Academics') and contains(@resource-id , 'itemTitle')]/following-sibling::android.widget.TextView[contains(@text , 'More')]\")).click();\n \twaitForElement(By.id(\"com.pointedsquares.gamy5.android:id/search_all\"), 10);\n \tdriver.findElement(By.id(\"com.pointedsquares.gamy5.android:id/search_all\")).click();\n \tdriver.findElement(By.id(\"com.pointedsquares.gamy5.android:id/search_all\")).sendKeys(flavour);\n \tdriver.findElement(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'flavour_name_list') and contains(@text , 'Electrical Engineering')]\")).click();\n \tdriver.findElement(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'stake_amount') and contains(@text , '500')]\")).click();\n \twaitForElement(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'message_text') and contains(@text , 'You are about to play Electrical Engineering game with 500 coins stake.')]\"), 5);\n \tdriver.findElement(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'message_text') and contains(@text , 'You are about to play Electrical Engineering game with 500 coins stake.')]\")).click();\n \tdriver.findElement(By.id(\"com.pointedsquares.gamy5.android:id/positive_button\")).click();\n \twaitForVisibilityOf(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'response') and contains(@text , 'Finding room for you...')]\"));\n \tThread.sleep(5000);\n \ttry{\n \t\twaitForElement(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'response') and contains(@text , 'Still Waiting.....')]\") , 2);\n \t}catch(Exception ex){\n \t\t\n \t}\n \twaitForVisibilityOf(By.xpath(\"//android.widget.LinearLayout[contains(@resource-id , 'question_one_linear')]/android.webkit.WebView/android.webkit.WebView/android.view.View\"));\n \t\n \tString contDesc = driver.findElement(By.xpath(\"//android.widget.LinearLayout[contains(@resource-id , 'question_one_linear')]/android.webkit.WebView/android.webkit.WebView/*\")).getAttribute(\"name\");\n \tThread.sleep(7000);\n \treturn new SNGTestCases(driver);\n }", "@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void ValidateGlobalSearchField()\n{\t\t\n\t Report.createTestLogHeader(\"Submit Meter Read\", \"Verify whether error message is getting displayed when Drop down is not selected\");\n\tSMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"GlobalSMRMultiDialMetersite\");\n\tnew SubmitMeterReadAction()\n\t.BgbnavigateToLogin()\n .BgbloginDetails(smrProfile)\n .BgbverifyAfterLogin()\n .clickSubmitMeterReadLink()\n .VerifyAndValidateSMRSearchField(); \n}", "@Test(priority=99, enabled = true)\n\t public void PhysicalLocationDropDown_ComponentGroups() throws IOException, InterruptedException {\n\t\t Thread.sleep(5000); \n\t\t // select the Properties set\t\n\t\t clickByXpath(\"//*[@id='content-wizard']/grouping-wizard/div/table/tbody/tr[1]/td[3]/div[1]/property-choice/div/div/a/div/b\");\n\t\t Thread.sleep(3000);\n\t\t \n\t\t //select the option\t \n\t\t clickByXpath(\"//*[@id='content-wizard']/grouping-wizard/div/table/tbody/tr[1]/td[3]/div[1]/property-choice/div/div/div/ul/li[2]\"); \n\t Thread.sleep(8000);\n\t \n\t // Click on Discard button\n\t clickByXpath(\"html/body/div[4]/div/div/div[2]/div/div/form/div[2]/a\");\n\t\t Thread.sleep(3000); \n\t \n\t\t //TestLink 440 - Testcase 5\n\t\t Thread.sleep(8000); \n\t\t// select the Properties set\t\n\t\t clickByXpath(\"//*[@id='content-wizard']/grouping-wizard/div/table/tbody/tr[1]/td[3]/div[1]/property-choice/div/div/a/div/b\");\n\t\t Thread.sleep(3000);\n\t\t \n\t\t //select the option\t \n\t\t clickByXpath(\"//*[@id='content-wizard']/grouping-wizard/div/table/tbody/tr[1]/td[3]/div[1]/property-choice/div/div/div/ul/li[2]\"); \n\t Thread.sleep(8000);\n\t \t\t \n\t //TestLink 434 - Testcase 2\n\t //Enter Abbreviation\n\t\t sendvaluebyxpath(\"html/body/div[4]/div/div/div[2]/div/div/form/div[1]/div/div/div/div/div[1]/div/input\", \"Edits\"); \n\t\t Thread.sleep(8000);\n\t\t \n\t\t //Enter Location\n\t\t sendvaluebyxpath(\"html/body/div[4]/div/div/div[2]/div/div/form/div[1]/div/div/div/div/div[2]/div/input\", \"Auto Locat\"); \n\t\t Thread.sleep(8000);\n\t\t \n\t\t // Click on Save button\n\t\t clickByXpath(\"//*[@id='submit-button']\");\n\t\t Thread.sleep(3000); \t \n\t\t \t\t \n\t }", "@Test\n @TestLog(title = \"Test3\", id = \"444\")\n public void test3() {\n }", "@Test\n public void seeInfoAboutItemAisleFromDepartmentView() {\n String itemTest = \"Bell Peppers\";\n String aisleCheck = \"Aisle: 2\";\n String aisleDescriptionCheck = \"Aisle Description: Between Aisle 1 and Frozen Aisle\";\n onView(withId(R.id.navigation_home)).perform(click());\n onView(withId(R.id.card_view_department)).perform(click());\n onView(withText(\"Produce\")).perform(click());\n onView(withId(R.id.department_items_list_recycler_view)).perform(RecyclerViewActions.actionOnItemAtPosition(16, click()));\n onView(withText(\"VIEW MORE INFORMATION\")).perform(click());\n onView(withId(android.R.id.message)).check(matches(allOf(withSubstring(aisleCheck), isDisplayed())));\n onView(withId(android.R.id.message)).check(matches(allOf(withSubstring(aisleDescriptionCheck), isDisplayed())));\n }", "@Test\n public void testDAM32101001() {\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n OrderMB3ListPage orderMB3ListPage = dam3IndexPage.dam32101001Click();\n\n String expectedOrdeDetails = \"Order accepted, ITM0000001, Orange juice, CTG0000001, Drink, dummy1\";\n\n // get the details of the specified order in a single string\n String actualOrderDetails = orderMB3ListPage.getOrderDetails(1);\n\n // confirm the details of the order fetched from various tables\n assertThat(actualOrderDetails, is(expectedOrdeDetails));\n\n orderMB3ListPage.setItemCode(\"ITM0000001\");\n\n orderMB3ListPage = orderMB3ListPage.fetchRelatedEntity();\n\n // Expected related entity category details\n String expRelatedEntityDet = \"CTG0000001, Drink\";\n\n String actRelatedEntityDet = orderMB3ListPage\n .getRelatedEntityCategoryDeatils(1);\n\n // confirmed realted entity details\n assertThat(actRelatedEntityDet, is(expRelatedEntityDet));\n\n }", "@Test(timeout = 4000)\n public void test233() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.label();\n Component component1 = component0.code();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component1._isGeneratedId());\n }", "public String verifyUserOnWomenPage(){\n WebElement womenPage = driver.findElement(By.cssSelector(\"div[class='breadcrumb clearfix'] a[title='Dresses']\"));\n String womenPageStatus = womenPage.getText();\n return womenPageStatus;\n }", "@Test\n public void seeInfoAboutAisleFromSearch(){\n String itemTest = \"Potatoes\";\n String aisleCheck = \"Aisle: 2\";\n String aisleDescriptionCheck = \"Aisle Description: Between Aisle 1 and Frozen Aisle\";\n onView(withId(R.id.navigation_search)).perform(click());\n onView(withId(R.id.SearchView)).perform(typeText(itemTest));\n onData(anything()).inAdapterView(withId(R.id.myList)).atPosition(0).perform(click());\n onView(withText(\"VIEW MORE INFORMATION\")).perform(click());\n onView(withId(android.R.id.message)).check(matches(allOf(withSubstring(aisleCheck), isDisplayed())));\n onView(withId(android.R.id.message)).check(matches(allOf(withSubstring(aisleDescriptionCheck), isDisplayed())));\n onView(withText(\"OK\")).perform(click());\n }", "@Test\n public void testDAM32001001() {\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n // This call brings te order details from various tables into single entity using join\n OrderMB3ListPage orderMB3ListPage = dam3IndexPage.dam32001001Click();\n\n // Expected order details\n // the string is of the format\n // ORDER STATUS NAME, ITEM CODE, ITEM NAME, CATEGORY CODE, CATEGORY NAME, MEMO\n String expectedOrdeDetails = \"Order accepted, ITM0000001, Orange juice, CTG0000001, Drink, dummy1\";\n\n // get the details of the specified order in a single string\n String actualOrderDetails = orderMB3ListPage.getOrderDetails(1);\n\n // confirm the details of the order fetched from various tables\n assertThat(actualOrderDetails, is(expectedOrdeDetails));\n\n // confirmation for some more order details....\n\n expectedOrdeDetails = \"Stock checking, ITM0000002, NotePC, CTG0000002, PC, \";\n actualOrderDetails = orderMB3ListPage.getOrderDetails(2);\n assertThat(actualOrderDetails, is(expectedOrdeDetails));\n\n expectedOrdeDetails = \"Item Shipped, ITM0000003, Car, CTG0000003, Hot selling, dummy3\";\n actualOrderDetails = orderMB3ListPage.getOrderDetails(3);\n assertThat(actualOrderDetails, is(expectedOrdeDetails));\n\n expectedOrdeDetails = \"Order accepted, ITM0000001, Orange juice, CTG0000001, Drink, dummy4\";\n actualOrderDetails = orderMB3ListPage.getOrderDetails(4);\n assertThat(actualOrderDetails, is(expectedOrdeDetails));\n }", "@Test// Execute 5 \n\t public void googleTitleTest() {\n\t\t System.out.println(\"google Title test\");\n\t }", "@Test\n public void testDAM30503002() {\n // Data preparation\n {\n clearAndCreateTestDataForBook();\n }\n\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n TodoListPage todoListPage = dam3IndexPage.dam30503002Click();\n\n // Assert the todo record count from DB table\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"3\"));\n assertThat(todoListPage.getIncompletTodoCount(), equalTo(\"7\"));\n assertThat(todoListPage.getTotalTodoCount(), equalTo(\"10\"));\n\n boolean isTodoPresent = todoListPage.isTodoDisplayed(\"0000000002\");\n\n assertThat(isTodoPresent, is(true));\n\n todoListPage.setTodoTitleContent(\"Todo 1\");\n todoListPage.setTodoCreationDate(\"2016-12-30\");\n\n todoListPage = todoListPage.searchByCriteriaBeanRetMap();\n\n // Assert the todo record count from DB table\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getIncompletTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getTotalTodoCount(), equalTo(\"2\"));\n\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000001\");\n assertThat(isTodoPresent, is(true));\n\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000010\");\n assertThat(isTodoPresent, is(true));\n\n // this todo does not meets the criteria.Hence not displayed.\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000002\");\n assertThat(isTodoPresent, is(false));\n }", "@Test\n public void neighboursInDetailActivityTextView_shouldShowNeighbourName(){\n onView(ViewMatchers.withId(R.id.list_neighbours)).check(withItemCount(ITEMS_COUNT));\n //When : perform a click on RecyclerView item position 0\n onView(allOf(isDisplayed(), withId(R.id.list_neighbours)))\n .perform(RecyclerViewActions.actionOnItemAtPosition(0, click()));\n //Then : TextView for neighbour name is displayed and filled with neighbour name\n onView(ViewMatchers.withId(R.id.user_details_name)).check(matches(isDisplayed()));\n onView(ViewMatchers.withText(\"Caroline\")).check(matches(withText(\"Caroline\")));\n }", "public void testGetIdentifier() {\n\t\tassertEquals(item.getIdentifier(),\"cup8\");\r\n\t}", "@Test\n void buildWaredDrobeTest() {\n WaredDrobeBuilder waredDrobeBuilder = new WaredDrobeBuilder();\n WaredDrobe waredDrobe = waredDrobeBuilder.build();\n List<String>partlist=waredDrobe.getParts();\n\n List<String>steps = Arrays.asList(\"bottom\",\"side\",\"side\",\"back\",\"top\",\"shelf\",\"shelf\",\"shelf\",\"shelf\",\n \"shelf\",\"shelf\",\"shelf\",\"shelf\",\"door\",\"door\");\n assertEquals(steps,partlist);\n\n\n\n\n }", "@Test\n\t\t public void testLocationOne() {\n\t\t \tdriver.get(\"http://mq-devhost-lm52.ihost.aol.com:9002/us/nj/upper-montclair/bellevue-ave-valley-rd\");\n\t\t \tAssertJUnit.assertEquals(Utils.getElementText(driver,PageLayoutSelectors.TOP_NAME),\"Bellevue Ave & Valley Rd\");\n\t\t }", "@Test\n public void test133() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = (Label)errorPage0.dd((Object) errorPage0);\n assertTrue(label0._isGeneratedId());\n \n List<Component> list0 = errorPage0._getChildren();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertEquals(1, list0.size());\n }", "@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void smrAbove3MetersSearchOptions(){\n\tReport.createTestLogHeader(\"SubmitMeterRead\", \"Verifies smr landing page for more than 3 meters\");\n\t SMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"SmrLoggedInJourneyymorethan15accts\");\n\t new SubmitMeterReadAction()\n\t \t .BgbnavigateToLogin()\n\t .BgbloginDetails(smrProfile)\n\t .clickManageAccountLinkWithAccNo(smrProfile)\n\t .submitMeterReadLink(smrProfile)\n\t .smrMoreThan3MetersSearchOptions()\n\t .smrWhatsThisElectricity()\n\t .smrWhatsThisGas();\n\t // .smrDownloadTemplateLink(); \n}", "@Test(timeout = 4000)\n public void test006() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n MockDate mockDate0 = new MockDate((-800), (-800), (-707), 75, 43);\n Label label0 = new Label(errorPage0, mockDate0);\n Component component0 = label0.b();\n Submit submit0 = new Submit(component0, \"The list of names must not be null\", \"\\f\");\n Component component1 = label0.strike((Object) submit0);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component1._isGeneratedId());\n }", "@Test\n\n public void validateAppTitle() throws IOException {\n LandingPage l = new LandingPage(driver);\n //compare the text from the browser with actual text.- Error..\n Assert.assertEquals(l.getTitle().getText(), \"FEATURED COURSES\");\n\n System.out.println(\"Test running from Inside docker for tests dated 22-03-2020\");\n System.out.println(\"Test completed\");\n\n ;\n\n\n }", "@Test(priority=3)\n\tpublic void validatePredictNiftyInContestPage2()\n\t{\n\t\tAssert.assertTrue(c.todaysNiftyValue.isDisplayed());\n\t}", "@Test\r\npublic void AT3() throws IOException \r\n{\r\n\t// driver initialisation\r\n\tdriver=Driver_Initialisation();\r\n\tPage_Object_Model o=new Page_Object_Model(driver);\r\n\to.getmobile().click();\r\n\tArrayList<String> list1=new ArrayList<String>();\r\n\tint count=0;\r\n\tint size=o.getnames().size();\r\n\t\r\n\t//fetching all the elements in the list\r\n\tfor(int i=0;i<size;i++)\r\n {\r\n \tString element=o.getnames().get(i).getText();\r\n \tlist1.add(element);\r\n \t\r\n }\r\n\t\r\n\t//Selecting option from drop down using select class\r\n Select s=new Select(o.getdropdown());\r\n s.selectByVisibleText(\"Name\");\r\n ArrayList<String> list2=new ArrayList<String>();\r\n for(int i=0;i<size;i++)\r\n {\r\n \tString element=o.getnames().get(i).getText();\r\n \tlist2.add(element);\r\n \t\r\n }\r\n \r\n //sorting the elements of list\r\n Collections.sort(list1);\r\n \r\n //validating whether the elements are matching or not after sorting\r\n for(int i=0;i<size;i++)\r\n {\r\n \t\r\n \tif(list1.get(i).equalsIgnoreCase(list2.get(i)))\r\n \t{\r\n \t\t count=count + 1;\r\n \t}\r\n }\r\n \r\n //verifying the count\r\n Assert.assertEquals(3, count);\r\n \r\n}", "@Test\n public void testDAM30503001() {\n\n // Data preparation\n {\n clearAndCreateTestDataForBook();\n }\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n TodoListPage todoListPage = dam3IndexPage.dam30503001Click();\n\n // Assert the todo record count from DB table\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"3\"));\n assertThat(todoListPage.getIncompletTodoCount(), equalTo(\"7\"));\n assertThat(todoListPage.getTotalTodoCount(), equalTo(\"10\"));\n\n boolean isTodoPresent = todoListPage.isTodoDisplayed(\"0000000002\");\n\n assertThat(isTodoPresent, is(true));\n\n todoListPage.setTodoTitleContent(\"Todo 1\");\n todoListPage.setTodoCreationDate(\"2016-12-30\");\n\n todoListPage = todoListPage.searchByCriteriaBean();\n\n // Assert the todo record count from DB table\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getIncompletTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getTotalTodoCount(), equalTo(\"2\"));\n\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000001\");\n assertThat(isTodoPresent, is(true));\n\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000010\");\n assertThat(isTodoPresent, is(true));\n\n // this todo does not meets the criteria.Hence not displayed.\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000002\");\n assertThat(isTodoPresent, is(false));\n\n }", "@Test\r\n\t\r\n\tpublic void reviewHotel() throws Throwable {\r\n\tTripAdvisorPage review=new TripAdvisorPage(driver);\r\n\t/*searching Club Mahindra */\r\n\treview.searchinTripAdvisor();\r\n\t/* review*/\r\n\treview.searchForReview();\r\n\t\r\n}", "@org.junit.Test\n public void constrCompelemAttr3() {\n final XQuery query = new XQuery(\n \"element elem {//west/@mark, //west/@west-attr-1}\",\n ctx);\n try {\n query.context(node(file(\"prod/AxisStep/TopMany.xml\")));\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertSerialization(\"<elem mark=\\\"w0\\\" west-attr-1=\\\"w1\\\"/>\", false)\n );\n }" ]
[ "0.5712888", "0.55180454", "0.5451346", "0.54135984", "0.53125155", "0.5309897", "0.5295682", "0.5273535", "0.5248863", "0.52320796", "0.5230859", "0.5224979", "0.5224563", "0.52219146", "0.5220163", "0.52051926", "0.51983094", "0.51798415", "0.51751184", "0.5171539", "0.5159233", "0.5123358", "0.511971", "0.51116496", "0.5091307", "0.5089208", "0.50794864", "0.5066876", "0.50541204", "0.5052973", "0.5048299", "0.5046526", "0.5041292", "0.50407434", "0.5031487", "0.5029022", "0.50237346", "0.50235707", "0.50199926", "0.50184745", "0.5013503", "0.5011932", "0.50118524", "0.5009409", "0.49921083", "0.49894643", "0.4967966", "0.49453956", "0.49440235", "0.4941071", "0.4932459", "0.49233815", "0.4921853", "0.4921658", "0.4917397", "0.4915956", "0.49112865", "0.490828", "0.490544", "0.48926252", "0.48792937", "0.48779967", "0.48761874", "0.48734653", "0.4869733", "0.48679954", "0.48668215", "0.48610166", "0.4854175", "0.4849921", "0.48494285", "0.48357722", "0.48351112", "0.48292398", "0.48288697", "0.48284888", "0.4828146", "0.48261908", "0.48245323", "0.4818896", "0.4817931", "0.48125505", "0.48098627", "0.48038927", "0.4802531", "0.4802074", "0.47953716", "0.4795071", "0.4794968", "0.47935188", "0.4793152", "0.47929144", "0.47867268", "0.47864854", "0.47859824", "0.4782551", "0.477842", "0.47738296", "0.47722304", "0.4769928", "0.47678787" ]
0.0
-1
_3: with default state. .id : bedroomsthree .value : 3 .title : .class : Html.LABEL .classIndex : 2
protected GuiTestObject bed_3() { return new GuiTestObject( getMappedTestObject("bed_3")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void buildStage2 ()\r\n {\r\n \r\n lgt.findParent(); //4\r\n lgt.findChild(0); //6\r\n lgt.insert(12);\r\n lgt.findParent();\r\n lgt.insert(13);\r\n lgt.findParent();\r\n lgt.insert(14);\r\n \r\n lgt.findRoot();\r\n lgt.findChild(0);//2\r\n lgt.findChild(0);//5\r\n lgt.insert(8);\r\n lgt.findParent();\r\n lgt.insert(9);\r\n lgt.findParent();\r\n lgt.insert(10);\r\n lgt.findParent();\r\n lgt.insert(11);\r\n \r\n }", "void makeTree()\n \t{\n \t\t\t \n \t\tobj.insert(5,\"spandu\");\n \tobj.insert(4,\"anshu\");\n \tobj.insert(3,\"anu\");\n \tobj.insert(6,\"himani\");\n \t\t\n \t}", "public Nest() {\r\n\t\tnestNo++;\r\n\t\tthis.setName(\"nest #\" + nestNo);\r\n\t}", "public static void build ()\r\n {\r\n lgt.insert(1);\r\n lgt.insert(2);\r\n lgt.insert(5);\r\n \r\n lgt.findRoot();\r\n lgt.insert(3);\r\n \r\n lgt.findRoot();\r\n lgt.insert(4);\r\n \r\n lgt.insert(6);\r\n lgt.findParent();\r\n lgt.insert(7);\r\n \r\n }", "public TreeTag()\n {\n setNoField(true);\n setRootVisible(true);\n icons = new HashMap<String, Object>();\n }", "public Stabel(){\n elementer = 0;\n hode = new Node(null);\n hale = hode;\n hode.neste = hale;\n hale.forrige = hode;\n }", "private void setUpDefaultTree() {\n\t\tTreeItem<String> tempTreeItem = new TreeItem<String>(\"Floor 1\");\n\t\tFloor tempFloor = new Floor(new Image(\"scheduleyTest/floorplan1.jpg\"));\n\t\tfloorHashMap.put(tempTreeItem, tempFloor);\n\t\ttree.getRoot().getChildren().add(tempTreeItem);\n\t\ttempFloor.addMeetingSpace(new MeetingSpace(new Rectangle(88,40,213,113)));\n\t\ttempFloor.addMeetingSpace(new MeetingSpace(new Rectangle(88,153,139,119)));\n\t\ttempTreeItem.getChildren().addAll(new TreeItem<String>(\"Room 1\"), new TreeItem<String>(\"Room 2\"));\n\t}", "Label getLabelRootRecherche();", "private void buildeAccessoryTree() {\n\t DefaultKingdeeTreeNode root = new DefaultKingdeeTreeNode(\"版模类型\");\r\n\t DefaultKingdeeTreeNode parentrNode = root;\r\n\t DefaultKingdeeTreeNode currentNode = null;\r\n\t \r\n//\t for(AccessoryTypeEnum s : AccessoryTypeEnum.getEnumList()){\r\n//\t\t\r\n//\t }\r\n\t List accessorylist =AccessoryTypeEnum.getEnumList();\r\n\t Class clz = AccessoryTypeEnum.class;\r\n\t for (int i=0;i<accessorylist.size();i++) {\r\n\t\tSystem.out.println(accessorylist.get(i));\r\n\t\tcurrentNode = new DefaultKingdeeTreeNode(accessorylist.get(i));\r\n\t\tcurrentNode.setUserObject(accessorylist.get(i));\r\n\r\n\t\tparentrNode.add(currentNode);\r\n\t }\r\n\t kDTree1.setModel(new KingdeeTreeModel(root));\r\n\t kDTree1.setSelectionNode(root);\r\n\t \r\n\t}", "TreeNodeValueModel<T> child(int index);", "public JdbNavTree(Hashtable value) {\r\n super(value);\r\n commonInit();\r\n }", "@VTID(6)\n mmarquee.automation.uiautomation.TreeScope treeScope();", "public abstract String getChildTitle();", "private void CreatingBeautyContentTopK() {\n\t\t\tConstraintsPlacement objConstraints= new ConstraintsPlacement(this);\r\n\t\t\t//Creating array with states\r\n\t\t\tArrayList<BlockNode> states = new ArrayList<BlockNode>();\r\n\t\t\t//Building the graph in a deph way\r\n\t \tGraphBuilder objGrapB= new GraphBuilder(1);\r\n\t \tint numElements=objElem.getNumberObjects();\r\n\t \tint numEnemies=objElem.getNumberObjectsEnemies();\r\n\t \tint globalControlSearch=0;\r\n\t \t//Beststates=objGrapB.basicDepthSearch(mediumStraight,height,numElements,numElements,states,objConstraints, objElem.getFinalList(),objElem);\r\n\t \tbestBranches=objGrapB.relativePositionDepthSearchTopK(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,-mediumStraight+1,mediumStraight-1,floorTileHeight,0,0,maxScreens,numEnemies,random,globalControlSearch);\r\n\t \t//Beststates=objGrapB.relativeTransPositionDepthSearch(mediumStraight,height,numElements,numElements,states,objConstraints, objElem.getFinalList(),objElem,-mediumStraight+1,mediumStraight-1,floorTileHeight,0,0,currentState,hTable);\r\n\t \r\n\t \tBranch objBranch=new Branch();\r\n\t \t//bestBranches=objBranch.sortBranches(bestBranches);\r\n\t \t\r\n\t \t//System.out.print( \"CounterStates\"+objGrapB.getCounterIDs() );\r\n\t \r\n\t //imprimiendo los estados visitados\r\n\t /*\r\n\t Iterator<BlockNode> nombreIterator = states.iterator();\r\n\t while(nombreIterator.hasNext()){\r\n\t \tBlockNode elemento = nombreIterator.next();\r\n\t \tSystem.out.print(elemento.getID()+\" / \");\r\n\t }*/\r\n\t \r\n\t //here we are painting as the best branches foundeded\r\n\t \r\n\t Iterator<Branch> nombreIterator = bestBranches.iterator();\r\n\t while(nombreIterator.hasNext()){\r\n\t \tBranch elemento = nombreIterator.next();\r\n\t \t//System.out.print(elemento.getHeuristicValue()+ \" / \");\r\n\t }\r\n\t \r\n\t \r\n\t //Here we will put the elements on the tile\r\n\t \t//Just here to implement the n screens!\r\n\t for(int i=0;i<maxScreens;i++)\r\n\t {//block from Lelis and Reis (>class GeradorDeFasses)\r\n/*\t \ttry {\r\n\t \t\tLevel levelScreen=PaintElements(((Branch)bestBranches.get(i)).getStates(),this.clone());\t\t\t\t\t\r\n\t\t\t\t\tScreen objScreen=new Screen();\r\n\t\t\t\t\tobjScreen.SaveScreen(levelScreen,odds,objElem);\r\n\t \t\tInformacoesTelas info = new InformacoesTelas();\r\n\t\t\t CopiaArquivos copiador = new CopiaArquivos();\r\n\t\t\t \r\n\t\t\t info = info.carregaInfoTela(\"infoTela\");\r\n\t\t\t\t\tinfo.setOutrasVariaveis(0, 0); // Salva outras informacoes da Tela\r\n\t\t\t\t\tinfo.salvaInfoTela(\"infoTela\", info);\t\t\t\t\t\r\n\t\t\t\t\tcopiador.copy(\"\" + i, \"Screens/\");\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (CloneNotSupportedException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}*/\r\n\t }\r\n\t \r\n\t\t\t\r\n\t\t}", "StatePacBuilder selectLeaf(LeafIdentifier leaf);", "private void displayOutput() {\n\t\tlevel = 2;\n\t\t// Level 1 by default\n\t\ttreeBWLevel1.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/treeBW.png\")));\n\t\tJLabel text = new JLabel(firstState.getName());\n\t\ttext.setFont(new Font(\"Serif\", Font.BOLD, 16));\n\t\ttext.setForeground(Color.white);\n\t\ttreeBWLevel1.add(text);\n\n\t\tfirstBlock.setTreeLabel(treeBWLevel1);\n\n\t\tline = new Line2D.Double(550, 975, 100, 200);\n\n\t\t// Since , NFA's are practically never ending, we have kept our\n\t\t// implementation upto 4 levels.\n\t\twhile (level != 5) {\n\t\t\tint parentTreeNo = 0;\n\t\t\tfor (StateBlockTreeNo block : previousBlock) {\n\t\t\t\tint currentLevelCounter = 0;\n\t\t\t\tint temp;\n\t\t\t\tHashMap<StateBlock, ArrayList<TransitionBlock>> list = block.getStateBlock().getStateTransitionList();\n\t\t\t\tfor (Map.Entry<StateBlock, ArrayList<TransitionBlock>> entry : list.entrySet()) {\n\t\t\t\t\tStateBlock key = entry.getKey();\n\t\t\t\t\tArrayList<TransitionBlock> value = entry.getValue();\n\t\t\t\t\tfor (TransitionBlock transitionBlock : value) {\n\n\t\t\t\t\t\tString stateName = \"\" + key.getName().toString();\n\t\t\t\t\t\tJLabel stateNo = new JLabel(stateName);\n\t\t\t\t\t\tstateNo.setFont(new Font(\"Serif\", Font.BOLD, 16));\n\t\t\t\t\t\tstateNo.setForeground(Color.white);\n\t\t\t\t\t\t++currentLevelCounter;\n\t\t\t\t\t\tStateBlockTreeNo stateBlockTreeNo = new StateBlockTreeNo();\n\t\t\t\t\t\tstateBlockTreeNo.setStateBlock(key);\n\t\t\t\t\t\tstateBlockTreeNo.setTreeNo(((block.getTreeNo() - 1) * 3) + currentLevelCounter);\n\t\t\t\t\t\tstateBlockTreeNo.setTreeLabel(labelList.get(new Integer(Integer.toString(level) + Integer.toString(stateBlockTreeNo.getTreeNo()))));\n\t\t\t\t\t\tstateBlockTreeNo.setForestPosition(new Integer(Integer.toString(level) + Integer.toString(stateBlockTreeNo.getTreeNo())));\n\n\t\t\t\t\t\tblock.getTreeConnectionList().put(stateBlockTreeNo, transitionBlock.getName());\n\n\t\t\t\t\t\tint x = labelList.get(new Integer(Integer.toString(level) + Integer.toString(stateBlockTreeNo.getTreeNo()))).getX();\n\t\t\t\t\t\tint y = labelList.get(new Integer(Integer.toString(level) + Integer.toString(stateBlockTreeNo.getTreeNo()))).getY();\n\t\t\t\t\t\tJLabel transitionLabel = new JLabel();\n\t\t\t\t\t\tlabelList.get(new Integer(Integer.toString(level) + Integer.toString(stateBlockTreeNo.getTreeNo()))).setLayout(new FlowLayout(FlowLayout.CENTER));\n\t\t\t\t\t\tlabelList.get(new Integer(Integer.toString(level) + Integer.toString(stateBlockTreeNo.getTreeNo()))).add(stateNo);\n\n\t\t\t\t\t\t/*\n\t\t\t\t\t\t * if (level == 4) { transitionLabel.setBounds(x, y +\n\t\t\t\t\t\t * 40, 30, 30); transitionLabel.setIcon(new\n\t\t\t\t\t\t * ImageIcon(\"image/appleLevel4.png\"))); //\n\t\t\t\t\t\t * labelList.get(new Integer(Integer.toString(level) //\n\t\t\t\t\t\t * + //\n\t\t\t\t\t\t * Integer.toString(stateBlockTreeNo.getTreeNo()))).\n\t\t\t\t\t\t * setIcon(new // ImageIcon(\"image/treeLevel4.png\")));\n\t\t\t\t\t\t * transitionValue.setFont(new Font(\"Serif\", Font.BOLD,\n\t\t\t\t\t\t * 10)); fl.setVgap(10); } else {\n\t\t\t\t\t\t * transitionLabel.setBounds(x + 55, y, 40, 40);\n\t\t\t\t\t\t * transitionLabel.setIcon(new\n\t\t\t\t\t\t * ImageIcon(\"image/apple.png\")));\n\t\t\t\t\t\t * transitionValue.setFont(new Font(\"Serif\", Font.BOLD,\n\t\t\t\t\t\t * 16)); // labelList.get(new\n\t\t\t\t\t\t * Integer(Integer.toString(level) // + //\n\t\t\t\t\t\t * Integer.toString\n\t\t\t\t\t\t * (stateBlockTreeNo.getTreeNo()))).setIcon(new //\n\t\t\t\t\t\t * ImageIcon(\"image/tree.png\"))); fl.setVgap(15); }\n\t\t\t\t\t\t */\n\n\t\t\t\t\t\tJLabel transitionValue = new JLabel();\n\t\t\t\t\t\ttransitionValue = appleLabels.get(Integer.parseInt(block.getTreeLabel().getName() + stateBlockTreeNo.getTreeLabel().getName()));\n\n\t\t\t\t\t\tSystem.out.println(Integer.parseInt(block.getTreeLabel().getName() + stateBlockTreeNo.getTreeLabel().getName()));\n\t\t\t\t\t\tString transitionText = transitionBlock.getName();\n\t\t\t\t\t\ttransitionValue.setFont(new Font(\"Serif\", Font.BOLD, 20));\n\t\t\t\t\t\ttransitionValue.setForeground(Color.WHITE);\n\t\t\t\t\t\ttransitionValue.setText(transitionText);\n\t\t\t\t\t\ttransitionValue.setHorizontalTextPosition(JLabel.CENTER);\n\t\t\t\t\t\ttransitionValue.setVerticalTextPosition(JLabel.CENTER);\n\n\t\t\t\t\t\t/*\n\t\t\t\t\t\t * JLabel transitionValue = new JLabel(transitionText);\n\t\t\t\t\t\t * transitionValue.setForeground(Color.white);\n\t\t\t\t\t\t * FlowLayout fl = new FlowLayout(FlowLayout.CENTER);\n\t\t\t\t\t\t * transitionLabel =\n\t\t\t\t\t\t * appleLabels.get(Integer.parseInt(block\n\t\t\t\t\t\t * .getTreeLabel().getName() +\n\t\t\t\t\t\t * stateBlockTreeNo.getTreeLabel().getName()));\n\t\t\t\t\t\t * transitionValue.setFont(new Font(\"Serif\", Font.BOLD,\n\t\t\t\t\t\t * 16)); transitionLabel.setLayout(fl);\n\t\t\t\t\t\t * transitionLabel.add(transitionValue);\n\t\t\t\t\t\t */\n\n\t\t\t\t\t\tactionPanel.add(transitionValue);\n\n\t\t\t\t\t\tcurrentBlock.add(stateBlockTreeNo);\n\t\t\t\t\t}\n\t\t\t\t\ttemp = currentLevelCounter / 3;\n\t\t\t\t\tcurrentLevelCounter = currentLevelCounter * (temp + 1);\n\t\t\t\t}\n\t\t\t\tparentTreeNo++;\n\t\t\t}\n\t\t\tlevel++;\n\t\t\tpreviousBlock = (ArrayList<StateBlockTreeNo>) currentBlock.clone();\n\t\t\tcurrentBlock.clear();\n\n\t\t}\n\n\t}", "public DLB(){\r\n\t\t//generate the root node with a terminating value\r\n\t\tnodes = new DLBNode('/');\r\n\t}", "Node(int value, String name) {\n this.value = value;\n this.name = name;\n }", "public void valueChanged(TreeSelectionEvent e) {\n DefaultMutableTreeNode TreeN = (DefaultMutableTreeNode)\n tree.getLastSelectedPathComponent();\n \n if (TreeN == null) return;\n \n Object nodeIn = TreeN.getUserObject();\n Node y = (Node)nodeIn;\n Homework1.inorder(y);\n htmlPane.setText(y.value.toString());\n \n }", "public Node()\n {\n this.name=\"/\";\n this.type=0;\n this.stage=0;\n children=new ArrayList<Node>();\n }", "public Node()\n\t{\n\t\ttitle = \" \";\n\t\tavail = 0;\n\t\trented = 0;\n\t\tleft = null;\n\t\tright = null;\n\t\t\n\t}", "@Test\n public void test13() throws Throwable {\n Object object0 = new Object();\n DefaultMenuItem defaultMenuItem0 = new DefaultMenuItem(object0);\n defaultMenuItem0.setDepth(0);\n assertEquals(true, defaultMenuItem0.isLeaf());\n assertEquals(0, defaultMenuItem0.getDepth());\n }", "public TreeItem() {\n\t\tsuper();\n\t\tdecideNorm = true;\n\t\tisNorm = true;\n\n\t}", "public int getNodeLabel ();", "private void updateTree(String st, int lineno, double bl, PrintWriter missing){\n\t\t String[] str = st.split(\"\\\\s+\");\n\t\t String specName = str[0];\n\t\t if(str[0].indexOf(\"GRCh38\")>=0){\n\t\t\t specName= \"Homo_sapiens\";\n\t\t\t str[0] = specName;\n\t\t }\n\t\t String alias1 = collapse(str, 2, str.length, \" \");\n\t\t Node n = getSlug(specName, alias1);\n\t\t if(n==null) n = this.unclassified;\n\t\t Node newnode = this.createFromSpeciesFile(str,alias1, n, lineno, bl);\n\t\t this.putSlug(newnode);\n\t\t\t \n\t\t\n\t\t \n\t }", "@Test\n public void test1() throws Throwable {\n Object object0 = new Object();\n DefaultMenuItem defaultMenuItem0 = new DefaultMenuItem(object0);\n int int0 = defaultMenuItem0.getIndex();\n assertEquals(0, int0);\n assertEquals(true, defaultMenuItem0.isLeaf());\n }", "void create(Node node) {\n if (node.table.negatives() == 0) {\r\n node.atribute = 1;\r\n return;\r\n }\r\n if (node.table.positives() == 0) {\r\n node.atribute = 0;\r\n return;\r\n }\r\n\r\n //If no test split the data, make it a leaf with the majoriti of the target atribute\r\n int atr;\r\n //Choose the best atribute\r\n atr = this.chooseBestAtrib(node);\r\n node.atribute = atr;\r\n\r\n //No atribute split the data, so make the node a leaf with the majoriti of the class (either positive or negative)\r\n if (node.atribute == -1) {\r\n //System.out.println(\"Atribute is -1 in TeeBuidler.create\");\r\n if (node.table.negatives() > node.table.positives()) {\r\n node.atribute = 0;\r\n return;\r\n }\r\n if (node.table.positives() >= node.table.negatives()) {\r\n node.atribute = 1;\r\n return;\r\n }\r\n }\r\n\r\n Table table_left = new Table(), table_right = new Table();\r\n node.table.splitByAtrib(node.atribute, table_left, table_right);\r\n\r\n //Create two children for the current node //parameters: identifier,parent_result,atribute of split,id_child1, id_child2, table\r\n node.child_left = new Node(node.id + node.id, \"1\", -1, -1, -1, table_left);\r\n node.child_right = new Node(node.id + node.id+1, \"0\", -1, -1, -1, table_right);\r\n node.id_child_left = node.id + node.id;\r\n node.id_child_right = node.id + node.id+1;\r\n\r\n\r\n TreeBuilder builder = new TreeBuilder();\r\n builder.create(node.child_left);\r\n builder.create(node.child_right);\r\n\r\n }", "public static Element serialize( SerializationPosition state) {\n Element doc = state.doc;\n DefaultMutableTreeNode treeNode = state.currPos;\n \n Object value = treeNode.getUserObject();\n Element parentElement = null; \n \n parentElement = doc.getOwnerDocument().createElement(\"directory\");\n\n \n // Apply properties to root element...\n Attr attrName = doc.getOwnerDocument().createAttribute(\"name\");\n attrName.setNodeValue(state.currPos.toString());\n parentElement.getAttributes().setNamedItem(attrName);\n \n return parentElement;\n }", "public JdbTree(Hashtable value) {\r\n super(value);\r\n commonInit();\r\n }", "@Test\n public void test11() throws Throwable {\n DefaultMenuItem defaultMenuItem0 = new DefaultMenuItem((Object) null);\n int int0 = defaultMenuItem0.getDepth();\n assertEquals(0, int0);\n assertEquals(true, defaultMenuItem0.isLeaf());\n }", "@DISPID(1611005952) //= 0x60060000. The runtime will prefer the VTID if present\n @VTID(27)\n short parameterTreeViewWithValue();", "@Override\r\n\tpublic void buildTree() {\r\n\t\t\r\n\t\t// root level \r\n\t\trootNode = new TreeNode<String>(\"\");\r\n\t\t\r\n\t\t//first level\r\n\t\tinsert(\".\", \"e\");\r\n\t\tinsert(\"-\", \"t\");\r\n\t\t\r\n\t\t//second level\r\n\t\t\r\n\t\tinsert(\". .\", \"i\");\r\n\t\tinsert(\".-\", \"a\");\r\n\t\tinsert(\"-.\", \"n\"); \r\n\t\tinsert(\"--\", \"m\");\r\n\t\t\r\n\t\t//third level\r\n\t\tinsert(\"...\", \"s\");\r\n\t\tinsert(\"..-\", \"u\");\r\n\t\tinsert(\".-.\", \"r\");\r\n\t\tinsert(\".--\", \"w\");\r\n\t\tinsert(\"-..\", \"d\");\r\n\t\tinsert(\"-.-\", \"k\");\r\n\t\tinsert(\"--.\", \"g\");\r\n\t\tinsert(\"---\", \"o\");\r\n\t\t\r\n\t\t//fourth level\r\n\t\tinsert(\"....\", \"h\");\r\n\t\tinsert(\"...-\", \"v\");\r\n\t\tinsert(\"..-.\", \"f\");\r\n\t\tinsert(\".-..\", \"l\");\r\n\t\tinsert(\".--.\", \"p\");\r\n\t\tinsert(\".---\", \"j\");\r\n\t\tinsert(\"-...\", \"b\");\r\n\t\tinsert(\"-..-\", \"x\");\r\n\t\tinsert(\"-.-.\", \"c\");\r\n\t\tinsert(\"-.--\", \"y\");\r\n\t\tinsert(\"--..\", \"z\");\r\n\t\tinsert(\"--.-\", \"q\");\r\n\t\t\r\n\t}", "public void setNode_3(String node_3);", "public static Node createLargeTree() {\n final int dcCount = 2;\n final int rackCount = 6;\n final int snCount = 6;\n final int hdCount = 12;\n\n int id = 0;\n // root\n Node root = new Node();\n root.setName(\"root\");\n root.setId(id++);\n root.setType(Types.ROOT);\n root.setSelection(Selection.STRAW);\n // DC\n List<Node> dcs = new ArrayList<Node>();\n for (int i = 1; i <= dcCount; i++) {\n Node dc = new Node();\n dcs.add(dc);\n dc.setName(\"dc\" + i);\n dc.setId(id++);\n dc.setType(Types.DATA_CENTER);\n dc.setSelection(Selection.STRAW);\n dc.setParent(root);\n // racks\n List<Node> racks = new ArrayList<Node>();\n for (int j = 1; j <= rackCount; j++) {\n Node rack = new Node();\n racks.add(rack);\n rack.setName(dc.getName() + \"rack\" + j);\n rack.setId(id++);\n rack.setType(StorageSystemTypes.RACK);\n rack.setSelection(Selection.STRAW);\n rack.setParent(dc);\n // storage nodes\n List<Node> sns = new ArrayList<Node>();\n for (int k = 1; k <= snCount; k++) {\n Node sn = new Node();\n sns.add(sn);\n sn.setName(rack.getName() + \"sn\" + k);\n sn.setId(id++);\n sn.setType(StorageSystemTypes.STORAGE_NODE);\n sn.setSelection(Selection.STRAW);\n sn.setParent(rack);\n // hds\n List<Node> hds = new ArrayList<Node>();\n for (int l = 1; l <= hdCount; l++) {\n Node hd = new Node();\n hds.add(hd);\n hd.setName(sn.getName() + \"hd\" + l);\n hd.setId(id++);\n hd.setType(StorageSystemTypes.DISK);\n hd.setWeight(100);\n hd.setParent(sn);\n }\n sn.setChildren(hds);\n }\n rack.setChildren(sns);\n }\n dc.setChildren(racks);\n }\n root.setChildren(dcs);\n return root;\n }", "public abstract String getSelectedNode();", "private MsoSmartArtNodePosition(int value) { this.value = value; }", "private void initializeMenu(){\n\t\troot = new TreeField(new TreeFieldCallback() {\n\t\t\t\n\t\t\tpublic void drawTreeItem(TreeField treeField, Graphics graphics, int node,\n\t\t\t\t\tint y, int width, int indent) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tString text = treeField.getCookie(node).toString(); \n\t graphics.drawText(text, indent, y);\n\t\t\t}\n\t\t}, Field.FOCUSABLE){\n\t\t\tprotected boolean navigationClick(int status, int time) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif(!isAnimating()){\n\t\t\t\t\tMenuModel menu = (MenuModel) root.getCookie(root.getCurrentNode());\n\t\t\t\t\tif(menu.isChild()){\n\t\t\t\t\t\tonMenuSelected(menu);\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\t\t\t\t\n\t\t\t\treturn super.navigationClick(status, time);\n\t\t\t}\n\t\t\t\n\t\t\tprotected boolean keyDown(int keycode, int time) {\n\t\t\t\tif(!isAnimating()){\n\t\t\t\t\tif(keycode == 655360){\n\t\t\t\t\t\tMenuModel menu = (MenuModel) root.getCookie(root.getCurrentNode());\n\t\t\t\t\t\tif(menu.isChild()){\n\t\t\t\t\t\t\tonMenuSelected(menu);\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\t\n\t\t\t\treturn super.keyDown(keycode, time);\n\t\t\t}\n\t\t};\n\t\troot.setDefaultExpanded(false);\n\n\t\t//home\n\t\tMenuModel home = new MenuModel(\"Home\", MenuModel.HOME, true);\n\t\thome.setId(root.addChildNode(0, home));\n\t\t\n\t\tint lastRootChildId = home.getId();\n\t\t\n\t\t//menu tree\n\t\tif(Singleton.getInstance().getMenuTree() != null){\n\t\t\tJSONArray menuTree = Singleton.getInstance().getMenuTree();\n\t\t\tif(menuTree.length() > 0){\n\t\t\t\tfor (int i = 0; i < menuTree.length(); i++) {\n\t\t\t\t\tif(!menuTree.isNull(i)){\n\t\t\t\t\t\tJSONObject node;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tnode = menuTree.getJSONObject(i);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//root menu tree (pria, wanita)\n\t\t\t\t\t\t\tboolean isChild = false;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString name = node.getString(\"name\");\n\t\t\t\t\t\t\tString url = node.getString(\"url\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tMenuModel treeNode = new MenuModel(\n\t\t\t\t\t\t\t\t\tname, url, MenuModel.JSON_TREE_NODE, isChild);\n\t\t\t\t\t\t\ttreeNode.setId(root.addSiblingNode(lastRootChildId, treeNode));\n\t\t\t\t\t\t\tlastRootChildId = treeNode.getId();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tif(!node.isNull(\"child\")){\n\t\t\t\t\t\t\t\t\tJSONArray childNodes = node.getJSONArray(\"child\");\n\t\t\t\t\t\t\t\t\tif(childNodes.length() > 0){\n\t\t\t\t\t\t\t\t\t\tfor (int j = childNodes.length() - 1; j >= 0; j--) {\n\t\t\t\t\t\t\t\t\t\t\tif(!childNodes.isNull(j)){\n\t\t\t\t\t\t\t\t\t\t\t\taddChildNode(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttreeNode.getId(), \n\t\t\t\t\t\t\t\t\t\t\t\t\t\tchildNodes.getJSONObject(j));\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t// TODO: handle exception\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t}\n\t\t\n\t\tif(Singleton.getInstance().getIsLogin()){\n\t\t\t//akun saya\n\t\t\tMenuModel myAccount = new MenuModel(\"Akun Saya\", MenuModel.MY_ACCOUNT, false);\n\t\t\tmyAccount.setId(root.addSiblingNode(lastRootChildId, myAccount));\n\t\t\t\n\t\t\tlastRootChildId = myAccount.getId();\n\t\t\t\n\t\t\t//akun saya->detail akun\n\t\t\tMenuModel profile = new MenuModel(\"Detail Akun\", MenuModel.PROFILE, true);\n\t\t\tprofile.setId(root.addChildNode(myAccount.getId(), profile));\n\t\t\t\n\t\t\t//akun saya->daftar pesanan\n\t\t\tMenuModel myOrderList = new MenuModel(\n\t\t\t\t\t\"Daftar Pesanan\", MenuModel.MY_ORDER, true);\n\t\t\tmyOrderList.setId(root.addSiblingNode(profile.getId(), myOrderList));\t\t\n\t\t\t\n\t\t\t//logout\n\t\t\tMenuModel logout = new MenuModel(\"Logout\", MenuModel.LOGOUT, true);\n\t\t\tlogout.setId(root.addSiblingNode(lastRootChildId, logout));\n\t\t\tlastRootChildId = logout.getId();\n\t\t} else{\n\t\t\t//login\n\t\t\tMenuModel login = new MenuModel(\"Login\", MenuModel.LOGIN, false);\n\t\t\tlogin.setId(root.addSiblingNode(lastRootChildId, login));\n\t\t\t\n\t\t\tlastRootChildId = login.getId();\n\t\t\t\n\t\t\t//login->login\n\t\t\tMenuModel loginMenu = new MenuModel(\"Login\", MenuModel.LOGIN_MENU, true);\n\t\t\tloginMenu.setId(root.addChildNode(login.getId(), loginMenu));\n\t\t\t\n\t\t\t//login->register\n\t\t\tMenuModel register = new MenuModel(\"Register\", MenuModel.REGISTER, true);\n\t\t\tregister.setId(root.addSiblingNode(loginMenu.getId(), register));\n\t\t}\n\t\t\n\t\tMenuUserModel menu = Singleton.getInstance().getMenu();\n\t\tif(menu != null){\n\t\t\t//sales\n\t\t\tif(menu.getMenuSalesOrder() || menu.isMenuSalesRetur()){\n\t\t\t\tMenuModel sales = new MenuModel(\"Sales\", MenuModel.SALES, false);\n\t\t\t\tsales.setId(root.addSiblingNode(lastRootChildId, sales));\n\t\t\t\tlastRootChildId = sales.getId();\n\t\t\t\t\n\t\t\t\t//sales retur\n\t\t\t\tif(menu.isMenuSalesRetur()){\n\t\t\t\t\tMenuModel salesRetur = new MenuModel(\n\t\t\t\t\t\t\t\"Sales Retur\", MenuModel.SALES_RETUR, true);\n\t\t\t\t\tsalesRetur.setId(root.addChildNode(sales.getId(), salesRetur));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//sales order\n\t\t\t\tif(menu.getMenuSalesOrder()){\n\t\t\t\t\tMenuModel salesOrder = new MenuModel(\n\t\t\t\t\t\t\t\"Sales Order\", MenuModel.SALES_ORDER, true);\n\t\t\t\t\tsalesOrder.setId(root.addChildNode(sales.getId(), salesOrder));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//cms product\n\t\t\tif(menu.getMenuCmsProduct() || menu.getMenuCmsProductGrosir()){\n\t\t\t\tMenuModel cmsProduct = new MenuModel(\n\t\t\t\t\t\t\"Produk\", MenuModel.CMS_PRODUCT, false);\n\t\t\t\tcmsProduct.setId(\n\t\t\t\t\t\troot.addSiblingNode(lastRootChildId, cmsProduct));\n\t\t\t\tlastRootChildId = cmsProduct.getId();\n\t\t\t\t\n\t\t\t\t//product retail\n\t\t\t\tif(menu.getMenuCmsProduct()){\n\t\t\t\t\tMenuModel productRetail = new MenuModel(\n\t\t\t\t\t\t\t\"Produk Retail\", MenuModel.CMS_PRODUCT_RETAIL, true);\n\t\t\t\t\tproductRetail.setId(\n\t\t\t\t\t\t\troot.addChildNode(cmsProduct.getId(), productRetail));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//product grosir\n\t\t\t\tif(menu.getMenuCmsProductGrosir()){\n\t\t\t\t\tMenuModel productGrosir = new MenuModel(\n\t\t\t\t\t\t\t\"Produk Grosir\", MenuModel.CMS_PRODUCT_GROSIR, true);\n\t\t\t\t\tproductGrosir.setId(\n\t\t\t\t\t\t\troot.addChildNode(cmsProduct.getId(), productGrosir));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\t\t\n\t\t//service\n\t\tMenuModel service = new MenuModel(\"Layanan\", MenuModel.SERVICE, false);\n\t\tservice.setId(root.addSiblingNode(lastRootChildId, service));\n\t\tlastRootChildId = service.getId();\n\t\tVector serviceList = Singleton.getInstance().getServices();\n\t\ttry {\n\t\t\tfor (int i = serviceList.size() -1; i >= 0; i--) {\n\t\t\t\tMenuFooterModel footer = (MenuFooterModel) serviceList.elementAt(i);\n\t\t\t\tMenuModel serviceMenu = new MenuModel(\n\t\t\t\t\t\tfooter.getCatTitle(), footer.getCatTautan(),\n\t\t\t\t\t\tMenuModel.SERVICE_MENU, true);\n\t\t\t\tserviceMenu.setId(root.addChildNode(service.getId(), serviceMenu));\t\t\t\t\n\t\t\t}\n\t\t} catch (Exception e) {\n\n\t\t}\n\t\t\n\t\t//about\n\t\tMenuModel about = new MenuModel(\"Tentang Y2\", MenuModel.ABOUT, false);\n\t\tabout.setId(root.addSiblingNode(service.getId(), about));\n\t\tlastRootChildId = service.getId();\n\t\tVector aboutList = Singleton.getInstance().getAbouts();\n\t\ttry {\n\t\t\tfor (int i = aboutList.size() -1; i >= 0; i--) {\n\t\t\t\tMenuFooterModel footer = (MenuFooterModel) aboutList.elementAt(i);\n\t\t\t\tMenuModel aboutMenu = new MenuModel(\n\t\t\t\t\t\tfooter.getCatTitle(), footer.getCatTautan(), \n\t\t\t\t\t\tMenuModel.SERVICE_MENU, true);\n\t\t\t\taboutMenu.setId(root.addChildNode(service.getId(), aboutMenu));\t\t\t\t\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t\t\n\t\tcontainer.add(root);\n\t}", "@Override\n public String toString(){\n return \"the node has: \" + children.size()\n + \" the counter is \" + counter; \n }", "@AutoEscape\n\tpublic String getNode_3();", "TreeNode getTreeNode();", "public Tree()\n\t{\n\t\tsuper(\"Tree\", \"tree\", 0);\n\t}", "public void setNode_5(String node_5);", "io.dstore.values.IntegerValue getTreeNodeId();", "public JdbNavTree(Vector value) {\r\n super(value);\r\n commonInit();\r\n }", "protected GuiTestObject bed_5() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"bed_5\"));\n\t}", "private void createTree() {\n\n // custom brown color\n Color brown = new Color(149, 99, 57);\n\n // trunk\n NscComponent trunk = new NscRectangle(49, 164, 13, 51);\n createShape(trunk, brown, true);\n\n // branches\n drawLine(50, 125, 50, 165, 10, brown);\n drawLine(25, 125, 50, 165, 10, brown);\n drawLine(75, 125, 50, 165, 10, brown);\n\n // branch outlines\n drawLine(49, 125, 49, 150, 1, Color.black);\n drawLine(60, 125, 60, 150, 1, Color.black);\n drawLine(24, 125, 49, 165, 1, Color.black);\n drawLine(35, 125, 50, 150, 1, Color.black);\n drawLine(85, 125, 60, 165, 1, Color.black);\n drawLine(74, 125, 60, 150, 1, Color.black);\n\n // leafs\n NscEllipse leafs2 = new NscEllipse(0, 5, 60, 122);\n NscEllipse leafs3 = new NscEllipse(50, 5, 60, 122);\n NscEllipse leafs = new NscEllipse(25, 0, 60, 127);\n NscEllipse leafs4 = new NscEllipse(25, 1, 60, 124);\n createShape(leafs2, treeColor, true);\n createShape(leafs3, treeColor, true);\n createShape(leafs, treeColor, true);\n createShape(leafs4, treeColor, false);\n\n repaint();\n }", "public void displayTree(String key, Color color){\r\n // first clear the screen\r\n this.getChildren().clear();\r\n double treeHeight = tree.height();\r\n // make space for more nodes\r\n if (treeHeight == 3){\r\n this.setPrefSize(3500,1500);\r\n }\r\n else if (treeHeight == 4){\r\n this.setPrefSize(7500,1500);\r\n }\r\n else if(treeHeight > 4){\r\n this.setPrefSize(Math.pow(3,treeHeight-2)*1500,1500);\r\n }\r\n // display tree if root is not null\r\n if (tree.getRoot() != null){\r\n displayTree(tree.getRoot(),getWidth()/2,5,getWidth()/3, 150,treeHeight+1, key, color);\r\n }\r\n }", "public JdbNavTree() {\r\n super(new Object [] {});\r\n commonInit();\r\n }", "public void setNode_4(String node_4);", "public BTNode(int value){ \r\n node = value; \r\n leftleaf = null;\r\n rightleaf = null;\r\n }", "@AutoEscape\n\tpublic String getNode_5();", "public Tree() {\n super.springPictureName = \"tree2.png\";\n super.summerPictureName = \"tree4.png\";\n super.autumnPictureName = \"tree5.png\";\n super.winterPictureName = \"tree7.png\";\n super.eachElementCapacity = 3;\n\n }", "public ChangeBinaryTree(){\n\t\tsetLayout(new BorderLayout());\n\t\tJPanel p1 = new JPanel(new GridLayout(1,5));\n\t\tp1.add(new JLabel(\"Enter a value:\"));\n\t\tp1.add(jtfValue);\n\t\tp1.add(jbtSearch);\n\t\tp1.add(jbtInsert);\n\t\tp1.add(jbtRemove);\n\t\tadd(p1,BorderLayout.SOUTH);\n//\t\tadd(paintLinkedList,BorderLayout.CENTER);\n/*\t\tjbtSearch.addActionListener(new SearchListener());\n\t\tjbtInsert.addActionListener(new InsertListener());\n\t\tjbtRemove.addActionListener(new jbtRemoveListener());*/\n\t}", "public KdTree() \n\t {\n\t\t \n\t }", "public JdbTree(Vector value) {\r\n super(value);\r\n commonInit();\r\n }", "@Test\n public void test4() throws Throwable {\n Object object0 = new Object();\n DefaultMenuItem defaultMenuItem0 = new DefaultMenuItem(object0);\n defaultMenuItem0.setName((String) null);\n assertEquals(true, defaultMenuItem0.isLeaf());\n }", "public static TreeNode getTree() {\n\t\tTreeNode a = new TreeNode(\"a\", 314);\n\t\tTreeNode b = new TreeNode(\"b\", 6);\n\t\tTreeNode c = new TreeNode(\"c\", 271);\n\t\tTreeNode d = new TreeNode(\"d\", 28);\n\t\tTreeNode e = new TreeNode(\"e\", 0);\n\t\tTreeNode f = new TreeNode(\"f\", 561);\n\t\tTreeNode g = new TreeNode(\"g\", 3);\n\t\tTreeNode h = new TreeNode(\"h\", 17);\n\t\tTreeNode i = new TreeNode(\"i\", 6);\n\t\tTreeNode j = new TreeNode(\"j\", 2);\n\t\tTreeNode k = new TreeNode(\"k\", 1);\n\t\tTreeNode l = new TreeNode(\"l\", 401);\n\t\tTreeNode m = new TreeNode(\"m\", 641);\n\t\tTreeNode n = new TreeNode(\"n\", 257);\n\t\tTreeNode o = new TreeNode(\"o\", 271);\n\t\tTreeNode p = new TreeNode(\"p\", 28);\n\t\t\n\t\ta.left = b; b.parent = a;\n\t\tb.left = c; c.parent = b;\n\t\tc.left = d;\t d.parent = c;\n\t\tc.right = e; e.parent = c;\n\t\tb.right = f; f.parent = b;\n\t\tf.right = g; g.parent = f;\n\t\tg.left = h; h.parent = g;\n\t\ta.right = i; i.parent = a;\n\t\ti.left = j; j.parent = i;\n\t\ti.right = o; o.parent = i;\n\t\tj.right = k; k.parent = j;\n\t\to.right = p; p.parent = o;\n\t\tk.right = n; n.parent = k;\n\t\tk.left = l; l.parent = k;\n\t\tl.right = m; m.parent = l;\n\t\t\n\t\td.childrenCount = 0;\n\t\te.childrenCount = 0;\n\t\tc.childrenCount = 2;\n\t\tb.childrenCount = 6;\n\t\tf.childrenCount = 2;\n\t\tg.childrenCount = 1;\n\t\th.childrenCount = 0;\n\t\tl.childrenCount = 1;\n\t\tm.childrenCount = 0;\n\t\tn.childrenCount = 0;\n\t\tk.childrenCount = 3;\n\t\tj.childrenCount = 4;\n\t\to.childrenCount = 1;\n\t\tp.childrenCount = 0;\n\t\ti.childrenCount = 7;\n\t\ta.childrenCount = 15;\n\t\t\n\t\treturn a;\n\t}", "@Test\n public void test9() throws Throwable {\n DefaultMenuItem defaultMenuItem0 = new DefaultMenuItem((Object) null);\n defaultMenuItem0.setIndex(0);\n assertEquals(0, defaultMenuItem0.getIndex());\n assertEquals(true, defaultMenuItem0.isLeaf());\n }", "public HtmlTree(DefaultTreeModel model)\n {\n setModel(model);\n }", "public io.dstore.values.IntegerValue.Builder getTreeNodeIdBuilder() {\n \n onChanged();\n return getTreeNodeIdFieldBuilder().getBuilder();\n }", "public TreeNodeImpl(N value) {\n this.value = value;\n }", "public Form2() {\n initComponents();\n\n DefaultMutableTreeNode root = new DefaultMutableTreeNode(\"Kumpulan Nama-Nama\");\n\n root.add(new DefaultMutableTreeNode(new Nama(\"eko\", \"khannedy\")));\n root.add(new DefaultMutableTreeNode(new Nama(\"tono\", \"sumarno\")));\n root.add(new DefaultMutableTreeNode(new Nama(\"tini\", \"sumarni\")));\n root.add(new DefaultMutableTreeNode(new Nama(\"marzu\", \"kilana\")));\n root.add(new DefaultMutableTreeNode(new Nama(\"sumaroh\", \"munaroh\")));\n\n DefaultTreeModel model = new DefaultTreeModel(root);\n\n jTree1.setModel(model);\n jTree1.setCellRenderer(new RenderNama());\n }", "public BPTreeNodeItem getItem(int index);", "public abstract int getNodeType();", "public void levelUp1()\r\n {\r\n this.health = 900;\r\n Story.levelUp1Text();\r\n }", "public TtreeNode() {\n\t numberOfNodes++;\n\t }", "@Override\r\n public String levelName() {\r\n return \"Green 3\";\r\n }", "private void createNodes( DefaultMutableTreeNode top ) {\n DefaultMutableTreeNode leaf = null;\n \n leaf = new DefaultMutableTreeNode( new treeInfo(\"Insert Transaction\") );\n top.add(leaf);\n leaf = new DefaultMutableTreeNode( new treeInfo(\"Item\") );\n top.add(leaf);\n leaf = new DefaultMutableTreeNode( new treeInfo(\"Report\") );\n top.add(leaf);\n leaf = new DefaultMutableTreeNode( new treeInfo(\"Employee\") );\n top.add(leaf);\n leaf = new DefaultMutableTreeNode( new treeInfo(\"Suplier\"));\n top.add(leaf);\n leaf = new DefaultMutableTreeNode( new treeInfo(\"Salesman\"));\n top.add(leaf);\n leaf = new DefaultMutableTreeNode( new treeInfo(\"Customer\"));\n top.add(leaf);\n leaf = new DefaultMutableTreeNode( new treeInfo(\"Commisioner\"));\n top.add(leaf);\n leaf = new DefaultMutableTreeNode( new treeInfo(\"Edit Transaction\"));\n top.add(leaf);\n leaf = new DefaultMutableTreeNode( new treeInfo(\"Producer\"));\n top.add(leaf);\n }", "public MorseCodeTree()\r\n\t{\r\n\t\tbuildTree();\r\n\t}", "@Override\n public void selectGolem(int id) {\n }", "public String getNodeValue ();", "public void setNode_1(String node_1);", "public PiptDataLeaf(String name, Object value)\n {\n\tthis.name = name;\n\tthis.value = value;\n }", "public JTree getTree(){\n return tree;\n }", "protected GuiTestObject bed_4() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"bed_4\"));\n\t}", "public HIRTree(){\r\n\t\t\r\n\t}", "public AvlNode(int key) {\n this.key=key;\n this.left=null;\n this.right=null;\n this.parent=null;\n this.height=0; \n }", "public KdTree() {\n size = 0;\n }", "public DBState() {\n\t\t\tthis.expandedElements=treeViewer.getExpandedElements();\n\t\t\tthis.treeSelection=treeViewer.getSelection();\n\t\t\tthis.tableSelection=txTableViewer.getSelection();\n\t\t}", "public void levelUp3()\r\n {\r\n this.health = 1600;\r\n Story.levelUp3Text();\r\n }", "private void commonLoadTestForHtml(){\n\t\tWebElement tree = getElement(\"id=tree\");\n\t\tlog(\"Found Element for id=tree \" + tree.toString());\n\n\t\t//Make sure News attributes are correct\n\t\tWebElement news = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#news']['title']\\\"}\");\n\t\tAssert.assertNotNull(news);\n\t\tnews.click();\n\n\t\tString content = getText(RESULTS_CONTAINER);\n\t\tlog(\"content\"+content);\n waitForText(RESULTS_CONTAINER, \"id=news\");\n\n\n\t\t// Finds the blogs node and make sure its not null\n\t\twaitForElementVisible(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#blogs']['disclosure']\\\"}\");\n\t\tWebElement blogs = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#blogs']['disclosure']\\\"}\");\n\n\t\tlog(\"Node: \" + blogs);\n\n\t\tAssert.assertNotNull(blogs);\n\n\t\tblogs.click(); // This should expand the node blogs\n\n\t\t//Find the children of blogs node: Today\n\t\tWebElement today = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#today']['title']\\\"}\");\n\n\t\t//Find the children of blogs node: Previous\n\t\tWebElement previous = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#prev']['title']\\\"}\");\n\n\t\tWebElement previousDiscIcon = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#prev']['disclosure']\\\"}\");\n\n\t\tAssert.assertNotNull(previousDiscIcon);\n\n\t\t//Click on Previous Node\n\t\twaitForElementVisible(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#prev']['disclosure']\\\"}\");\n\t\tpreviousDiscIcon.click();\n\n\t\t//Find the children of previous node: Yesterday\n\t\tWebElement yesterday = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#yesterday']['title']\\\"}\");\n\n\t\t//Find the children of previous node: 2DaysBack\n\t\tWebElement twodaysback = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#daysback2']['title']\\\"}\");\n\n\n\n\n\t}", "public KdTree() \r\n\t{\r\n\t}", "@Override\r\n\tprotected Object createLowerView(Composite parent) {\n\t\tfTree = new Tree(parent, SWT.BORDER );\r\n\t\tfTree.addSelectionListener(new SelectionAdapter() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\r\n\t\t\t\t// https://jira.jboss.org/browse/JBIDE-7107\r\n\t\t\t\t// update \"OK\" button enablement\r\n\t\t\t\tupdateOkState();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\t \r\n\t\tfTreeViewer = new TreeViewer(fTree);\r\n\t\tfTreeViewer.setContentProvider( treeContentProvider );\r\n\t\tfTreeViewer.setLabelProvider(new ModelTreeLabelProvider());\r\n\t\tfTreeViewer.setInput ( null );\r\n\t\tfTreeViewer.setAutoExpandLevel( getAutoExpandLevel() );\r\n\t\t// end tree viewer for variable structure\r\n\t\tGridData data = new GridData(); \r\n\t data.grabExcessVerticalSpace = true;\r\n\t data.grabExcessHorizontalSpace = true;\r\n\t data.horizontalAlignment = GridData.FILL;\r\n\t data.verticalAlignment = GridData.FILL;\r\n\t data.minimumHeight = 200;\r\n\t fTree.setLayoutData(data);\r\n\t \r\n\t\treturn fTree;\r\n\t}", "public Emmanuel_salcedoBST() {\r\n\t}", "private void updateData() {\n\t\tDefaultMutableTreeNode root = new DefaultMutableTreeNode(\"Rollmaterial\");\n\n\t\tif (treeModel == null) {\n\t\t\ttreeModel = new DefaultTreeModel(root);\n\t\t\tstocksTree.setModel(treeModel);\n\t\t}\n\n\t\tHashMap<String, HashSet<rollingstock>> allsorted = new HashMap<>();\n\t\tHashSet<rollingstock> sorted = new HashSet<>();\n\n\t\tfor (rollingstock rs : dataCollector.collector.getAllTrainData().stocks.values()) {\n\t\t\tsorted.add(rs);\n\t\t\tfor (String t : rs.getTypes()) {\n\t\t\t\tHashSet<rollingstock> th;\n\t\t\t\tth = allsorted.get(t);\n\t\t\t\tif (th == null) {\n\t\t\t\t\tth = new HashSet<>();\n\t\t\t\t\tallsorted.put(t, th);\n\t\t\t\t}\n\t\t\t\tth.add(rs);\n\t\t\t}\n\t\t}\n\n\t\tDefaultMutableTreeNode list1 = new DefaultMutableTreeNode(\"alphabetisch\");\n\t\troot.add(list1);\n\t\tfor (rollingstock rs : sorted) {\n\t\t\tlist1.add(new DefaultMutableTreeNode(rs));\n\t\t}\n\t\tlist1 = new DefaultMutableTreeNode(\"mit Antrieb\");\n\t\troot.add(list1);\n\t\tfor (rollingstock rs : sorted) {\n\t\t\tif (rs.getEngine() != null) {\n\t\t\t\tlist1.add(new DefaultMutableTreeNode(rs));\n\t\t\t}\n\t\t}\n\t\tlist1 = new DefaultMutableTreeNode(\"ohne Antrieb\");\n\t\troot.add(list1);\n\t\tfor (rollingstock rs : sorted) {\n\t\t\tif (rs.getEngine() == null) {\n\t\t\t\tlist1.add(new DefaultMutableTreeNode(rs));\n\t\t\t}\n\t\t}\n\n\t\tlist1 = new DefaultMutableTreeNode(\"nach Typ\");\n\t\troot.add(list1);\n\t\tfor (String t : allsorted.keySet()) {\n\t\t\tDefaultMutableTreeNode list2 = new DefaultMutableTreeNode(t);\n\t\t\tlist1.add(list2);\n\t\t\tDefaultMutableTreeNode welist = new DefaultMutableTreeNode(\"mit Antrieb\");\n\t\t\tDefaultMutableTreeNode woelist = new DefaultMutableTreeNode(\"ohne Antrieb\");\n\n\t\t\tlist2.add(welist);\n\t\t\tlist2.add(woelist);\n\t\t\tfor (rollingstock rs : allsorted.get(t)) {\n\t\t\t\tif (rs.getEngine() == null) {\n\t\t\t\t\twoelist.add(new DefaultMutableTreeNode(rs));\n\t\t\t\t} else {\n\t\t\t\t\twelist.add(new DefaultMutableTreeNode(rs));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\ttreeModel.setRoot(root);\n\t}", "public interface BPTreeNode {\n\n /*\n * Method returns the node index in the B+ tree organization.\n *\n * Returns:\n * node index in B+ tree\n * */\n public long getNodeIndex();\n\n\n /*\n * Method identifies the node as a leaf node or a child (non-leaf) node.\n *\n * Returns:\n * true, if leaf node; false if child node\n * */\n public boolean isLeaf();\n\n /*\n * Method inserts the node item appropriate to the item's key value.\n *\n * Returns:\n * Node item inserted successfully.\n * */\n public boolean insertItem(BPTreeNodeItem item);\n\n /*\n * Method deletes the node item appropriate to the item's index.\n *\n * Returns:\n * Node item deleted successfully.\n * */\n public boolean deleteItem(int index);\n\n /*\n * Method returns the number of items assigned to the node.\n *\n * Returns:\n * Count of node items contained in the node\n * */\n public int getItemCount();\n\n /*\n * Method returns the indexed node item.\n *\n * Returns:\n * Indexed node item.\n * */\n public BPTreeNodeItem getItem(int index);\n\n /*\n * Method returns the lowest chromosome name key belonging to the node.\n *\n * Returns:\n * Lowest contig/chromosome name key; or null for no node items.\n * */\n public String getLowestChromKey();\n\n /*\n * Method returns the highest chromosome name key belonging to the node.\n *\n * Returns:\n * Highest contig/chromosome name key; or null for no node items.\n * */\n public String getHighestChromKey();\n\n /*\n * Method returns the lowest chromosome ID belonging to the node.\n *\n * Returns:\n * Lowest contig/chromosome ID; or -1 for no node items.\n * */\n public int getLowestChromID();\n\n /*\n * Method returns the highest chromosome ID belonging to the node.\n *\n * Returns:\n * Highest contig/chromosome ID; or -1 for no node items.\n * */\n public int getHighestChromID();\n\n /*\n * Method prints the nodes items and sub-node items.\n * Node item deleted successfully.\n * */\n public void printItems();\n\n}", "protected GuiTestObject bed_1() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"bed_1\"));\n\t}", "private CategoryView buildComplicatedExpectedTree() {\n\n CategoryView root = new CategoryView(\"ROOT\");\n CategoryView a = new CategoryView(\"a\");\n CategoryView b = new CategoryView(\"b\");\n CategoryView c = new CategoryView(\"c\");\n CategoryView d = new CategoryView(\"d\");\n CategoryView e = new CategoryView(\"e\");\n\n root.addChild(a);\n root.addChild(e);\n root.addChild(new CategoryView(\"f\"));\n root.addChild(new CategoryView(\"g\"));\n root.addChild(new CategoryView(\"z\"));\n a.addChild(b);\n b.addChild(c);\n a.addChild(c);\n c.addChild(d);\n d.addChild(e);\n c.addChild(e);\n\n root.addChild(new CategoryView(\"1\") {{\n addChild(new CategoryView(\"2\") {{\n addChild(new CategoryView(\"3\"));\n }});\n }});\n root.addChild(new CategoryView(\"x\") {{\n addChild(new CategoryView(\"y\"));\n }});\n\n return root;\n }", "@Override\n public int getLevelNumber() {\n return 0;\n }", "public TreeNode() { \n this.name = \"\"; \n this.rule = new ArrayList<String>(); \n this.child = new ArrayList<TreeNode>(); \n this.datas = null; \n this.candAttr = null; \n }", "public Leaf(int value) {\n\t\t\tsuper();\n\t\t\tthis.value = value;\n\t\t}", "@AutoEscape\n\tpublic String getNode_4();", "public TreeScenery() {\r\n\t\tstopped = false;\r\n\t\tthis.position = new Vector2(0, 400);\r\n boundingRectangle = new Rectangle();\r\n treeAnimation = AssetLoader.treeAnimation;\r\n\t}", "public int getLevelNo() {\n return levelNo;\n }", "public void printTree(){ \n System.out.format(\"The suffix tree for S = %s is: %n\",this.text); \n this.print(0, this.root); \n }", "public void buildTaxonomyTree(String name){\n IndexHits<Node> foundNodes = findTaxNodeByName(name);\n Node firstNode = null;\n if (foundNodes.size() < 1){\n System.out.println(\"name '\" + name + \"' not found. quitting.\");\n return;\n } else if (foundNodes.size() > 1) {\n System.out.println(\"more than one node found for name '\" + name + \"'not sure how to deal with this. quitting\");\n } else {\n for (Node n : foundNodes)\n firstNode = n;\n }\n TraversalDescription CHILDOF_TRAVERSAL = Traversal.description()\n \t\t .relationships( RelTypes.TAXCHILDOF,Direction.INCOMING );\n \t\tSystem.out.println(firstNode.getProperty(\"name\"));\n \t\tJadeNode root = new JadeNode();\n \t\troot.setName(((String) firstNode.getProperty(\"name\")).replace(\" \", \"_\"));\n \t\tHashMap<Node,JadeNode> nodes = new HashMap<Node,JadeNode>();\n \t\tnodes.put(firstNode, root);\n \t\tint count =0;\n \t\tfor(Relationship friendrel : CHILDOF_TRAVERSAL.traverse(firstNode).relationships()){\n \t\t\tcount += 1;\n \t\t\tif (nodes.containsKey(friendrel.getStartNode())==false){\n \t\t\t\tJadeNode node = new JadeNode();\n \t\t\t\tnode.setName(((String) friendrel.getStartNode().getProperty(\"name\")).replace(\" \", \"_\").replace(\",\", \"_\").replace(\")\", \"_\").replace(\"(\", \"_\").replace(\":\", \"_\"));\n \t\t\t\tnodes.put(friendrel.getStartNode(), node);\n \t\t\t}\n \t\t\tif(nodes.containsKey(friendrel.getEndNode())==false){\n \t\t\t\tJadeNode node = new JadeNode();\n \t\t\t\tnode.setName(((String)friendrel.getEndNode().getProperty(\"name\")).replace(\" \", \"_\").replace(\",\", \"_\").replace(\")\", \"_\").replace(\"(\", \"_\").replace(\":\", \"_\"));\n \t\t\t\tnodes.put(friendrel.getEndNode(),node);\n \t\t\t}\n \t\t\tnodes.get(friendrel.getEndNode()).addChild(nodes.get(friendrel.getStartNode()));\n \t\t\tif (count % 100000 == 0)\n \t\t\t\tSystem.out.println(count);\n \t\t}\n \t\tJadeTree tree = new JadeTree(root);\n \t\tPrintWriter outFile;\n \t\ttry {\n \t\t\toutFile = new PrintWriter(new FileWriter(\"taxtree.tre\"));\n \t\t\toutFile.write(tree.getRoot().getNewick(false));\n \t\t\toutFile.write(\";\\n\");\n \t\t\toutFile.close();\n \t\t} catch (IOException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t}", "@Override\r\n\tpublic String showKode() {\n\t\treturn getPenerbit() + \" \" + firsText(getJudul()) + \" \" + lastText(getPengarang());\r\n\t}", "int getDepthIndex() {\n return depthIndex;\n }", "public void refresh()\n\t{\n\t\tNode master = new Node(\"Tyler\");\n\t\t//master.add(new Node(\"Test\"));\n\t\tmaster.addParent(new Node(\"Clinton\"));\n\t\tmaster.addParent(new Node(\"Terry\"));\n\t\t\n\t\tmaster.add(\"Justin\", \"Terry\"); \n\t\tmaster.add(\"Justin\", \"Clinton\"); \n\t\t//this adds directly under Terry\n\t\t//maybe do this differently...\n\t\t\n\t\t\n\t\tmaster.findNode(\"Terry\").addParent(new Node(\"Diana\"));\n\t\tmaster.findNode(\"Terry\").addParent(new Node(\"George\"));\n\t\t\n\t\tmaster.add(new Node(\"Tyler 2.0\"));\n\t\tmaster.add(new Node(\"Tyler 3.0\"));\n\t\tmaster.add(new Node(\"Tyler Jr\"));\n\t\t\n\n\t\tmaster.add(\"Tyler Jr Jr\", \"Tyler 2.0\");\n\t\t\n\t\tmaster.add(\"Tyler 3.0\", \"Tyler Jr 2.0\");\n\t\t\n\t\tmaster.findNode(\"Clinton\").addParent(new Node(\"Eric\"));\n\t\tmaster.findNode(\"Eric\").addParent(new Node(\"Eric's Dad\"));\n\t\t\n\t\t\n\t\tmaster.findNode(\"Tyler Jr Jr\", 6).add(new Node(\"Mini Tyler\"));\n\t\t//master.findNode(\"Clinton\", 2).add(new Node(\"Justin\"));\n\t\t\n\t\t\n\t\tmaster.getParent().get(0).findNode(\"Justin\", 3).add(new Node(\"Mini Justin\"));\n\t\t\n\t\tmaster.add(new Node(\"Laptop\"));\n\t\tmaster.findNode(\"Laptop\").add(new Node(\"Keyboard\"));\n\t\tmaster.findNode(\"Laptop\").add(new Node(\"Mouse\"));\n\t\t\n\t\tmaster.add(\"Touchpad\", \"Laptop\");\n\t\t//master.add(\"Justin\", \"Eric\");\n\t\t\n\t\tmaster.add(\"Hunger\", \"Tyler\");\n\t\t\n\t\tselectedNode = master;\n\t\tselect(selectedNode);\n\t}", "public GenerateJTree1() {\n UIManager.put(\"Tree.rendererFillBackground\", false);\n initComponents();\n BasicInternalFrameUI bifui = (BasicInternalFrameUI) this.getUI();\n bifui.setNorthPane(null);\n bifui.setSouthPane(null);\n\n// UIDefaults d = new UIDefaults();\n// d.put(\"Tree.selectionBackground\", Color.GREEN);\n// jTree1.putClientProperty(\"Nimbus.Overrides\", d);\n// jTree1.putClientProperty(\"Nimbus.Overrides.InheritDefaults\", false);\n cellColour();\n try {\n loadTree();\n } catch (NotBoundException | MalformedURLException | RemoteException | ClassNotFoundException | SQLException | InterruptedException ex) {\n Logger.getLogger(GenerateJTree1.class.getName()).log(Level.SEVERE, null, ex);\n }\n ToolTipManager.sharedInstance().registerComponent(jTree1);\n }" ]
[ "0.6160762", "0.54886764", "0.5283485", "0.5258355", "0.5231703", "0.5230279", "0.52110296", "0.5198792", "0.51823604", "0.51611525", "0.5115812", "0.51004624", "0.50933355", "0.5090193", "0.5079651", "0.5079055", "0.5068068", "0.5067003", "0.5065592", "0.50644326", "0.50549227", "0.5042474", "0.50362617", "0.50326025", "0.5014791", "0.5007542", "0.50061834", "0.5001262", "0.49923423", "0.49876174", "0.49836895", "0.49721238", "0.49574843", "0.49562055", "0.4952168", "0.4951822", "0.494267", "0.49239126", "0.4913277", "0.4911374", "0.48995072", "0.48901933", "0.48896977", "0.48847657", "0.48837268", "0.4879529", "0.48740667", "0.48721877", "0.48677644", "0.48664424", "0.48557582", "0.48551893", "0.48506495", "0.48485568", "0.48467708", "0.48408306", "0.48331836", "0.48320305", "0.4831236", "0.4830427", "0.48213458", "0.4820529", "0.48194996", "0.48150524", "0.48111823", "0.48106125", "0.48045683", "0.48002037", "0.4796056", "0.47956407", "0.47922498", "0.479135", "0.4790784", "0.478695", "0.47866037", "0.47859454", "0.47810507", "0.47760773", "0.4772588", "0.4762813", "0.47585854", "0.47583452", "0.4755569", "0.47471038", "0.47459334", "0.47422397", "0.4741227", "0.4740268", "0.47374812", "0.4736712", "0.4734509", "0.47320646", "0.47318986", "0.47302726", "0.47300866", "0.47262472", "0.47246724", "0.47216988", "0.47214085", "0.47159055" ]
0.5071564
16
_3: with specific test context and state. .id : bedroomsthree .value : 3 .title : .class : Html.LABEL .classIndex : 2
protected GuiTestObject bed_3(TestObject anchor, long flags) { return new GuiTestObject( getMappedTestObject("bed_3"), anchor, flags); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void commonLoadTestForHtml(){\n\t\tWebElement tree = getElement(\"id=tree\");\n\t\tlog(\"Found Element for id=tree \" + tree.toString());\n\n\t\t//Make sure News attributes are correct\n\t\tWebElement news = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#news']['title']\\\"}\");\n\t\tAssert.assertNotNull(news);\n\t\tnews.click();\n\n\t\tString content = getText(RESULTS_CONTAINER);\n\t\tlog(\"content\"+content);\n waitForText(RESULTS_CONTAINER, \"id=news\");\n\n\n\t\t// Finds the blogs node and make sure its not null\n\t\twaitForElementVisible(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#blogs']['disclosure']\\\"}\");\n\t\tWebElement blogs = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#blogs']['disclosure']\\\"}\");\n\n\t\tlog(\"Node: \" + blogs);\n\n\t\tAssert.assertNotNull(blogs);\n\n\t\tblogs.click(); // This should expand the node blogs\n\n\t\t//Find the children of blogs node: Today\n\t\tWebElement today = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#today']['title']\\\"}\");\n\n\t\t//Find the children of blogs node: Previous\n\t\tWebElement previous = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#prev']['title']\\\"}\");\n\n\t\tWebElement previousDiscIcon = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#prev']['disclosure']\\\"}\");\n\n\t\tAssert.assertNotNull(previousDiscIcon);\n\n\t\t//Click on Previous Node\n\t\twaitForElementVisible(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#prev']['disclosure']\\\"}\");\n\t\tpreviousDiscIcon.click();\n\n\t\t//Find the children of previous node: Yesterday\n\t\tWebElement yesterday = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#yesterday']['title']\\\"}\");\n\n\t\t//Find the children of previous node: 2DaysBack\n\t\tWebElement twodaysback = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#daysback2']['title']\\\"}\");\n\n\n\n\n\t}", "private void commonLoadTestForJson(){\n\t\tWebElement tree = getElement(\"id=tree\");\n\t\tlog(\"Found Element for id=tree \" + tree.toString());\n\n\t\t//Make sure News attributes are correct\n\t\tWebElement news = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#news']['title']\\\"}\");\n\t\tAssert.assertNotNull(news);\n\t\tnews.click();\n\n\t\tString content = getText(RESULTS_CONTAINER);\n\t\tlog(\"content\"+content);\n content.contains(\"id=news\");\n\n\n\n\t\t// Finds the blogs node and make sure its not null\n\t\twaitForElementVisible(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#blogs']['disclosure']\\\"}\");\n\t\tWebElement blogs = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#blogs']['disclosure']\\\"}\");\n\n\t\tlog(\"Node: \" + blogs);\n\n\t\tAssert.assertNotNull(blogs);\n\n\t\tblogs.click(); // This should expand the node blogs\n\n\t\tlog(\"clicked\");\n\n\t\t//Find the children of blogs node: Today\n\t\tWebElement today = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#today']['title']\\\"}\");\n\n\t\t//Find the children of blogs node: Yesterday\n\t\tWebElement yesterday = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#yesterday']['title']\\\"}\");\n\n\t\t//Find the children of blogs node: 2DaysBack\n\t\tWebElement twodaysback = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#2daysback']['title']\\\"}\");\n\n\n\t\t//Find the children of blogs node: Archive\n\t\tWebElement archive = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#archive']['title']\\\"}\");\n\n\t}", "public static void buildStage2 ()\r\n {\r\n \r\n lgt.findParent(); //4\r\n lgt.findChild(0); //6\r\n lgt.insert(12);\r\n lgt.findParent();\r\n lgt.insert(13);\r\n lgt.findParent();\r\n lgt.insert(14);\r\n \r\n lgt.findRoot();\r\n lgt.findChild(0);//2\r\n lgt.findChild(0);//5\r\n lgt.insert(8);\r\n lgt.findParent();\r\n lgt.insert(9);\r\n lgt.findParent();\r\n lgt.insert(10);\r\n lgt.findParent();\r\n lgt.insert(11);\r\n \r\n }", "@Test\r\n public void ActionableTrainingTest() {\n WebElement title1 = driver.findElement(By.cssSelector(\"h3.uagb-ifb-title\"));\r\n \r\n //Assertion for title of the first info box\r\n Assert.assertEquals(title1.getText(), \"Actionable Training\");\r\n \r\n //Print heading of the first info box\r\n Reporter.log(\"Heading is: \" + title1.getText(), true);\r\n }", "@Test\n public void test13() {\n List<String> name = response.extract().path(\"data.findAll{it.state=='MN'}.name\");\n System.out.println(\"------------------StartingTest---------------------------\");\n System.out.println(\"The store names where state is MN are :: \" + name);\n System.out.println(\"------------------End of Test---------------------------\");\n }", "protected GuiTestObject bed_3() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"bed_3\"));\n\t}", "@VTID(6)\n mmarquee.automation.uiautomation.TreeScope treeScope();", "@Test\n public void testDAM30902001() {\n // Data preparation\n {\n clearAndCreateTestDataForBook();\n }\n\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n TodoListPage todoListPage = dam3IndexPage.dam30902001Click();\n\n // Confirmation of database state before batch update\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"3\"));\n assertThat(todoListPage.getIncompletTodoCount(), equalTo(\"7\"));\n assertThat(todoListPage.getTotalTodoCount(), equalTo(\"10\"));\n\n // add one sample todo which has some unique title from those of the\n // above\n // this is used to have some unique combination satisfying the choose\n // element other branch\n // Open todo registration page\n TodoRegisterPage registerTodoPage = todoListPage.registerTodo();\n\n // input todo details\n registerTodoPage.setTodoId(\"0000000025\");\n registerTodoPage.setTodoCategory(\"CA2\");\n registerTodoPage.setTodoTitle(\"sample todo\");\n\n registerTodoPage.addTodo();\n\n webDriverOperations.displayPage(getPackageRootUrl());\n\n dam3IndexPage = new DAM3IndexPage(driver);\n\n todoListPage = dam3IndexPage.dam30102002Click();\n\n todoListPage.setTodoTitleContent(\"Todo 1\");\n\n todoListPage.setTodoCreationDate(\"2016-12-30\");\n\n todoListPage = todoListPage.chooseElementUsageSearch();\n\n // Confirm the todos when title is specified from the choose element\n\n // Confirmation of database state before batch update\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getIncompletTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getTotalTodoCount(), equalTo(\"2\"));\n\n webDriverOperations.displayPage(getPackageRootUrl());\n\n dam3IndexPage = new DAM3IndexPage(driver);\n\n todoListPage = dam3IndexPage.dam30102002Click();\n\n todoListPage.setTodoCreationDate(\"2016-12-30\");\n\n todoListPage = todoListPage.chooseElementUsageSearch();\n\n // Confirm the todos when title is not specified from the choose\n // element.\n // here it takes default value specified in otherwise tag of choose\n // (sample)\n\n // Confirmation of database state before batch update\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"0\"));\n assertThat(todoListPage.getIncompletTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getTotalTodoCount(), equalTo(\"1\"));\n }", "@Test\n public void testIssue454644() throws Exception\n {\n String dataClass = \"TopFolderDataClass\";\n var fields = Arrays.asList(\n new FieldDefinition(\"intColumn\", FieldDefinition.ColumnType.Integer),\n new FieldDefinition(\"decimalColumn\", FieldDefinition.ColumnType.Decimal),\n new FieldDefinition(\"stringColumn\", FieldDefinition.ColumnType.String),\n new FieldDefinition(\"sampleDate\", FieldDefinition.ColumnType.DateAndTime),\n new FieldDefinition(\"boolColumn\", FieldDefinition.ColumnType.Boolean));\n // make a dataclass in the top folder, give it some data\n DataClassDefinition testType = new DataClassDefinition(dataClass).setFields(fields);\n var dGen = DataClassAPIHelper.createEmptyDataClass(getProjectName(), testType);\n dGen.generateRows(3);\n dGen.insertRows();\n\n // now view the dataclass from a subfolder, expanding its view to include all folders and to show rowId and DataClass/Name\n var subfolderQueryPage = ExecuteQueryPage.beginAt(this, SUBFOLDER_A_PATH, \"exp.data\", dataClass);\n\n var customizeView = subfolderQueryPage.getDataRegion().openCustomizeGrid();\n customizeView.showHiddenItems();\n customizeView.addColumn(\"RowId\");\n customizeView.addColumn(\"DataClass/Name\");\n customizeView.saveDefaultView();\n\n // now insert a record into the dataclass, in the subfolder\n subfolderQueryPage.getDataRegion().clickInsertNewRow()\n .setField(\"Name\", \"Jeff\")\n .setField(\"intColumn\", \"5\")\n .setField(\"decimalColumn\", \"6.7\")\n .setField(\"stringColumn\", \"hey\")\n .submit();\n\n // gather the data from the view; should only see Jeff\n var shownData = subfolderQueryPage.getDataRegion().getTableData();\n\n // verify expected container filtering; just the 1 record in the current container should be visible\n assertEquals(\"Expect grid to only show records in the current container\",\n 1, shownData.size());\n\n // ensure the record shows the expected rowId and DataClass/Name values\n var newRecord = shownData.get(0);\n assertEquals(\"Expect Jeff to be the name value\",\n \"Jeff\", newRecord.get(\"Name\"));\n assertNotNull(\"Expect metadata rowId to be shown in subfolder view\",\n newRecord.get(\"rowid\"));\n assertEquals(\"Expect metadata DataClass/Name to be shown in modified subfolder view\",\n dataClass, newRecord.get(\"DataClass/Name\"));\n\n // ensure the 'name' is linked up and navigates to experiment-showData.view\n clickAndWait(Locator.linkWithText(\"Jeff\"));\n assertThat(\"name link should click through to showdata page\",\n getURL().toString().toLowerCase(), containsString(\"experiment-showdata.view\"));\n }", "protected GuiTestObject title() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"title\"));\n\t}", "protected GuiTestObject bed_5() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"bed_5\"));\n\t}", "@Test\n public void test133() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = (Label)errorPage0.dd((Object) errorPage0);\n assertTrue(label0._isGeneratedId());\n \n List<Component> list0 = errorPage0._getChildren();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertEquals(1, list0.size());\n }", "@Test\n public void test094() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Hidden hidden0 = new Hidden(errorPage0, \"\", \"\");\n Image image0 = new Image(hidden0, \"\", \"\");\n Label label0 = (Label)errorPage0.ins((Object) image0);\n Block block0 = (Block)errorPage0.h3();\n Label label1 = (Label)errorPage0.u((Object) errorPage0);\n assertTrue(label1._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "private void mutateDOMTree(int stateID){\n\tString code = com.crawljax.plugins.testilizer.Testilizer.mutateDOMTreeCode(stateID);\n\t\tif (code!= null){\n\t\t\tlong RandomlySelectedDOMElementID = (long) ((JavascriptExecutor)driver).executeScript(code);\n\t\t\tint MutationOperatorCode = com.crawljax.plugins.testilizer.Testilizer.MutationOperatorCode;\n\t\t\tint StateToBeMutated = com.crawljax.plugins.testilizer.Testilizer.StateToBeMutated;\t\n\t\t\tcom.crawljax.plugins.testilizer.Testilizer.SelectedRandomElementInDOM[MutationOperatorCode][StateToBeMutated]\n\t\t\t\t\t= (int) RandomlySelectedDOMElementID;\n\t\t}\n\t}", "@Test public void gh1210() {\n execute(new CreateDB(NAME, \"<a><b>x</b></a>\"));\n query(\"/a[b = .[b = 'x']/b]/b/text()\", \"x\");\n }", "protected GuiTestObject bed_1() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"bed_1\"));\n\t}", "public void testBuildTreeDeepStructure() {\n TreeNode root = buildRootNodeFromFile(\"testWihManyLevels.js\");\n\n // Ensure the hierarchy is correct.\n assertEquals(\"suite1\", root.getNodeValue().getTestText());\n assertEquals(4, root.getChildCount());\n }", "@Test\n public void test34(){\n Tree<PermissionDO> tree = permissionService.getTree(16);\n for (Tree<PermissionDO> permissionDOTree : tree.getChildren()) {\n if((boolean)(permissionDOTree.getState().get(\"selected\"))){\n System.out.println(permissionDOTree.getText());\n }\n System.out.println(\"--------------------\");\n }\n }", "@Test\n public void testDAM32102002() {\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n OrderMB3ListPage orderMB3ListPage = dam3IndexPage.dam32102002Click();\n\n String expectedOrdeDetails = \"Order accepted, ITM0000001, Orange juice, CTG0000001, Drink, dummy1\";\n\n // get the details of the specified order in a single string\n String actualOrderDetails = orderMB3ListPage.getOrderDetails(1);\n\n // confirm the details of the order fetched from various tables\n assertThat(actualOrderDetails, is(expectedOrdeDetails));\n\n orderMB3ListPage.setItemCode(\"ITM0000001\");\n\n orderMB3ListPage = orderMB3ListPage.fetchRelatedEntityLazy();\n\n // Expected related entity category details\n String expRelatedEntityDet = \"CTG0000001, Drink\";\n\n String actRelatedEntityDet = orderMB3ListPage\n .getRelatedEntityCategoryDeatils(1);\n\n // confirmed realted entity details\n assertThat(actRelatedEntityDet, is(expRelatedEntityDet));\n }", "@Test\n public void testDAM32101001() {\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n OrderMB3ListPage orderMB3ListPage = dam3IndexPage.dam32101001Click();\n\n String expectedOrdeDetails = \"Order accepted, ITM0000001, Orange juice, CTG0000001, Drink, dummy1\";\n\n // get the details of the specified order in a single string\n String actualOrderDetails = orderMB3ListPage.getOrderDetails(1);\n\n // confirm the details of the order fetched from various tables\n assertThat(actualOrderDetails, is(expectedOrdeDetails));\n\n orderMB3ListPage.setItemCode(\"ITM0000001\");\n\n orderMB3ListPage = orderMB3ListPage.fetchRelatedEntity();\n\n // Expected related entity category details\n String expRelatedEntityDet = \"CTG0000001, Drink\";\n\n String actRelatedEntityDet = orderMB3ListPage\n .getRelatedEntityCategoryDeatils(1);\n\n // confirmed realted entity details\n assertThat(actRelatedEntityDet, is(expRelatedEntityDet));\n\n }", "protected GuiTestObject bed_4() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"bed_4\"));\n\t}", "@Test\n public void test085() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Checkbox checkbox0 = new Checkbox(errorPage0, \">}\\\"_\", \">}\\\"_\");\n String[] stringArray0 = new String[6];\n Checkbox checkbox1 = (Checkbox)checkbox0.attributes(stringArray0);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertFalse(checkbox1._isGeneratedId());\n }", "@Test\n public void testDAM30901001() {\n // Data preparation\n {\n clearAndCreateTestDataForBook();\n }\n\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n TodoListPage todoListPage = dam3IndexPage.dam30901001Click();\n\n // Confirmation of database state before batch update\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"3\"));\n assertThat(todoListPage.getIncompletTodoCount(), equalTo(\"7\"));\n assertThat(todoListPage.getTotalTodoCount(), equalTo(\"10\"));\n\n todoListPage.selectCompleteStatRadio();\n\n todoListPage = todoListPage.ifElementUsageSearch();\n\n // Confirmation of database state before batch update\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"3\"));\n\n // 1 and 3 todos are incomplete. hence not displayed\n boolean isTodoPresent = todoListPage.isTodoDisplayed(\"0000000003\");\n assertThat(isTodoPresent, is(false));\n\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000001\");\n assertThat(isTodoPresent, is(false));\n // 10 todo is complete. hence displayed.\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000010\");\n assertThat(isTodoPresent, is(true));\n\n // default value of finished is now false.hence todos like 1,3 will be displayed\n // where as todo like 10 will not be displayed.\n todoListPage.selectInCompleteStatRadio();\n todoListPage = todoListPage.ifElementUsageSearch();\n\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000003\");\n assertThat(isTodoPresent, is(true));\n\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000001\");\n assertThat(isTodoPresent, is(true));\n // 10 todo is complete. hence displayed.\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000010\");\n assertThat(isTodoPresent, is(false));\n\n // scenario when finished property of criteria is null.\n\n }", "@Test(timeout = 4000)\n public void test217() throws Throwable {\n Hidden hidden0 = new Hidden((Component) null, \".*,r%\", \"Col component ca be added only to a TableBlock.\");\n Checkbox checkbox0 = new Checkbox(hidden0, \"Col component ca be added only to a TableBlock.\", \"Col component ca be added only to a TableBlock.\");\n Checkbox checkbox1 = (Checkbox)checkbox0.addInternalRenderHint(\"z%+/0u:g&ib%-bQ:\");\n assertEquals(\"Col component ca be added only to a TableBlock.\", checkbox1.getFormElementName());\n }", "public abstract String getChildTitle();", "@org.testng.annotations.Test\n public void test17_3(){\n testInfo.id(\"test17_3\").suite(\"test_Inspiration\").name(\"Inspiration page from start + check blocks.\");\n photolab.forceStop();\n photolab.open();\n photolab.main.waitToLoad();\n photolab.main.selectCategoryBar(\"Inspiration\");\n photolab.main.selectBlock(\"Top\");\n photolab.main.selectBlock(\"Trending\");\n photolab.main.selectBlock(\"Recent\");\n photolab.main.tapMenu();\n photolab.menu.tapHome();\n }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n DynamicSelectModel dynamicSelectModel0 = new DynamicSelectModel();\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = new Label(errorPage0, dynamicSelectModel0);\n dynamicSelectModel0.setComponent(label0);\n Component component0 = dynamicSelectModel0.getComponent();\n assertEquals(\"Label_1\", component0.getComponentId());\n }", "@org.junit.Test\n public void constrCompelemAttr1() {\n final XQuery query = new XQuery(\n \"element elem {1, //west/@mark}\",\n ctx);\n try {\n query.context(node(file(\"prod/AxisStep/TopMany.xml\")));\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n error(\"XQTY0024\")\n );\n }", "@Test\n public void test1() throws Throwable {\n Object object0 = new Object();\n DefaultMenuItem defaultMenuItem0 = new DefaultMenuItem(object0);\n int int0 = defaultMenuItem0.getIndex();\n assertEquals(0, int0);\n assertEquals(true, defaultMenuItem0.isLeaf());\n }", "protected GuiTestObject bed_2() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"bed_2\"));\n\t}", "@Test\n public void testSetTreeItemPropertyValueFactory() {\n writeBanner(getMethodName());\n }", "@Test\n public void testDAM31801001() {\n // Data preparation\n {\n clearAndCreateTestDataForBook();\n }\n\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n TodoListPage todoListPage = dam3IndexPage.dam31801001Click();\n\n todoListPage.setTodoTitleContent(\"Todo 1\");\n\n todoListPage.setTodoCreationDate(\"2016/12/30\");\n\n todoListPage = todoListPage.searchUsingClassTypeAlias();\n\n // Assert the todo record count from DB table\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getIncompletTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getTotalTodoCount(), equalTo(\"2\"));\n\n boolean isTodoPresent = todoListPage.isTodoDisplayed(\"0000000001\");\n assertThat(isTodoPresent, is(true));\n\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000010\");\n assertThat(isTodoPresent, is(true));\n\n // this todo does not meets the criteria.Hence not displayed.\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000002\");\n assertThat(isTodoPresent, is(false));\n }", "@Test\n public void test003() {\n String name = response.extract().path(\"data[4].name\");\n\n\n System.out.println(\"------------------StartingTest---------------------------\");\n System.out.printf(\"The 5th sore name is: %s%n\", name);\n System.out.println(\"------------------End of Test---------------------------\");\n }", "@Test\n public void testDAM30401002() {\n // Data preparation\n {\n clearAndCreateTestDataForBook();\n }\n\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n TodoListPage todoListPage = dam3IndexPage.dam30401002Click();\n\n todoListPage.setTodoForSearch(\"0000000006\");\n\n TodoDetailsPage todoDetailsPage = todoListPage.asClauseRstSearch();\n\n assertThat(todoDetailsPage.getTodoTitle(), equalTo(\"Todo 6\"));\n assertThat(todoDetailsPage.getTodoID(), equalTo(\"0000000006\"));\n assertThat(todoDetailsPage.getTodoCategory(), equalTo(\"CA1\"));\n assertThat(todoDetailsPage.getTodoStatus(), equalTo(\"Complete\"));\n assertThat(todoDetailsPage.getTodoCreatedDate(), equalTo(\"2016/12/26\"));\n // initial version is 0\n assertThat(todoDetailsPage.getTodoVersion(), equalTo(\"1\"));\n }", "@Test\n public void withAttribute_Matching() {\n assertEquals(1, onPage.withAttribute(\"lang\", MatchType.EQUALS, \"en-US\").size());\n assertEquals(3, onPage.get(\"div.article div\").withAttribute(\"class\", MatchType.EQUALS, \"content\").size());\n assertEquals(0, onPage.get(\"div.article div\").withAttribute(\"class\", MatchType.EQUALS, \" content\").size());\n }", "@org.junit.Test\n public void constrCompelemAttr3() {\n final XQuery query = new XQuery(\n \"element elem {//west/@mark, //west/@west-attr-1}\",\n ctx);\n try {\n query.context(node(file(\"prod/AxisStep/TopMany.xml\")));\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertSerialization(\"<elem mark=\\\"w0\\\" west-attr-1=\\\"w1\\\"/>\", false)\n );\n }", "@org.junit.Test\n public void constrCompelemAttr2() {\n final XQuery query = new XQuery(\n \"element elem {element a {}, //west/@mark}\",\n ctx);\n try {\n query.context(node(file(\"prod/AxisStep/TopMany.xml\")));\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n error(\"XQTY0024\")\n );\n }", "@Test(priority=99, enabled = true)\n\t public void PhysicalLocationDropDown_ComponentGroups() throws IOException, InterruptedException {\n\t\t Thread.sleep(5000); \n\t\t // select the Properties set\t\n\t\t clickByXpath(\"//*[@id='content-wizard']/grouping-wizard/div/table/tbody/tr[1]/td[3]/div[1]/property-choice/div/div/a/div/b\");\n\t\t Thread.sleep(3000);\n\t\t \n\t\t //select the option\t \n\t\t clickByXpath(\"//*[@id='content-wizard']/grouping-wizard/div/table/tbody/tr[1]/td[3]/div[1]/property-choice/div/div/div/ul/li[2]\"); \n\t Thread.sleep(8000);\n\t \n\t // Click on Discard button\n\t clickByXpath(\"html/body/div[4]/div/div/div[2]/div/div/form/div[2]/a\");\n\t\t Thread.sleep(3000); \n\t \n\t\t //TestLink 440 - Testcase 5\n\t\t Thread.sleep(8000); \n\t\t// select the Properties set\t\n\t\t clickByXpath(\"//*[@id='content-wizard']/grouping-wizard/div/table/tbody/tr[1]/td[3]/div[1]/property-choice/div/div/a/div/b\");\n\t\t Thread.sleep(3000);\n\t\t \n\t\t //select the option\t \n\t\t clickByXpath(\"//*[@id='content-wizard']/grouping-wizard/div/table/tbody/tr[1]/td[3]/div[1]/property-choice/div/div/div/ul/li[2]\"); \n\t Thread.sleep(8000);\n\t \t\t \n\t //TestLink 434 - Testcase 2\n\t //Enter Abbreviation\n\t\t sendvaluebyxpath(\"html/body/div[4]/div/div/div[2]/div/div/form/div[1]/div/div/div/div/div[1]/div/input\", \"Edits\"); \n\t\t Thread.sleep(8000);\n\t\t \n\t\t //Enter Location\n\t\t sendvaluebyxpath(\"html/body/div[4]/div/div/div[2]/div/div/form/div[1]/div/div/div/div/div[2]/div/input\", \"Auto Locat\"); \n\t\t Thread.sleep(8000);\n\t\t \n\t\t // Click on Save button\n\t\t clickByXpath(\"//*[@id='submit-button']\");\n\t\t Thread.sleep(3000); \t \n\t\t \t\t \n\t }", "@Test\r\n\tpublic void firstTest() {\r\n\t\t\r\n\t\tTree tree = new Tree(\"greg\");\r\n\t\ttree.addElement(\"opera\");\r\n\t\ttree.addElement(\"qwerty\");\r\n\t\ttree.addElement(\"odf\");\r\n\t\ttree.addElement(7363);\r\n\t\ttree.addElement(new Double(23.3));\r\n\t\t\r\n\t\tassertTrue(tree.contains(7363));\r\n\t\tassertTrue(tree.contains(\"greg\"));\r\n\t\tassertTrue(tree.contains(\"opera\"));\r\n\t\tassertTrue(tree.contains(\"odf\"));\r\n\t}", "@Test(timeout = 4000)\n public void test29() throws Throwable {\n SimpleNode simpleNode0 = new SimpleNode(73);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"{\");\n Node node0 = simpleNode0.parent;\n simpleNode0.setIdentifier(\"{\");\n StringWriter stringWriter0 = new StringWriter(73);\n simpleNode0.dump(\"{nt@W\\bYpd9U=VG\", stringWriter0);\n simpleNode0.setIdentifier(\"NameList\");\n simpleNode0.setIdentifier(\"^eRGLNy;\");\n FileSystemHandling.shouldAllThrowIOExceptions();\n simpleNode0.setIdentifier(\"C\");\n StringReader stringReader0 = new StringReader(\"zp@:cn>UP\");\n simpleNode0.setIdentifier(\"AllocationExpression\");\n FileSystemHandling.shouldAllThrowIOExceptions();\n simpleNode0.setIdentifier(\"NameList\");\n SimpleNode simpleNode1 = new SimpleNode(68);\n Node[] nodeArray0 = new Node[0];\n simpleNode1.children = nodeArray0;\n Node[] nodeArray1 = new Node[1];\n nodeArray1[0] = null;\n simpleNode1.children = nodeArray1;\n simpleNode1.toString(\"LT\\\"PgE')tE0cI%&Dl\");\n simpleNode0.setIdentifier(\"AllocationExpression\");\n simpleNode1.dump(\"NameList\", stringWriter0);\n simpleNode0.toString();\n simpleNode0.toString(\">=\");\n simpleNode0.dump(\"<SkoVR *\", stringWriter0);\n assertEquals(\"<Block>\\n</Block>\\n<AllocationExpression></AllocationExpression>\\n<Block>\\n <identifier>NameList</identifier>\\n <identifier>^eRGLNy;</identifier>\\n <identifier>C</identifier>\\n <identifier>AllocationExpression</identifier>\\n <identifier>NameList</identifier>\\n <identifier>AllocationExpression</identifier>\\n</Block>\\n\", stringWriter0.toString());\n }", "@Test(timeout = 4000)\n public void test334() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = new Label(errorPage0, errorPage0);\n Component component0 = errorPage0.legend((Object) label0);\n assertTrue(component0._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "@Test\n public void underweightCategoryFirstRangeInKgAndCm() {\n\n driver.findElement(By.xpath(\"//input[@name='wg']\")).sendKeys(\"47\");\n driver.findElement(By.xpath(\"//input[@name='ht']\")).sendKeys(\"177\");\n driver.findElement(By.xpath(\"//input[@name='cc']\")).click();\n Assert.assertEquals(driver.findElement(By.name(\"desc\")).getAttribute(\"value\"), \"Your category is Underweight\",\n \"actual text is not: Your category is Underweight\");\n }", "private void CreatingBeautyContentTopK() {\n\t\t\tConstraintsPlacement objConstraints= new ConstraintsPlacement(this);\r\n\t\t\t//Creating array with states\r\n\t\t\tArrayList<BlockNode> states = new ArrayList<BlockNode>();\r\n\t\t\t//Building the graph in a deph way\r\n\t \tGraphBuilder objGrapB= new GraphBuilder(1);\r\n\t \tint numElements=objElem.getNumberObjects();\r\n\t \tint numEnemies=objElem.getNumberObjectsEnemies();\r\n\t \tint globalControlSearch=0;\r\n\t \t//Beststates=objGrapB.basicDepthSearch(mediumStraight,height,numElements,numElements,states,objConstraints, objElem.getFinalList(),objElem);\r\n\t \tbestBranches=objGrapB.relativePositionDepthSearchTopK(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,-mediumStraight+1,mediumStraight-1,floorTileHeight,0,0,maxScreens,numEnemies,random,globalControlSearch);\r\n\t \t//Beststates=objGrapB.relativeTransPositionDepthSearch(mediumStraight,height,numElements,numElements,states,objConstraints, objElem.getFinalList(),objElem,-mediumStraight+1,mediumStraight-1,floorTileHeight,0,0,currentState,hTable);\r\n\t \r\n\t \tBranch objBranch=new Branch();\r\n\t \t//bestBranches=objBranch.sortBranches(bestBranches);\r\n\t \t\r\n\t \t//System.out.print( \"CounterStates\"+objGrapB.getCounterIDs() );\r\n\t \r\n\t //imprimiendo los estados visitados\r\n\t /*\r\n\t Iterator<BlockNode> nombreIterator = states.iterator();\r\n\t while(nombreIterator.hasNext()){\r\n\t \tBlockNode elemento = nombreIterator.next();\r\n\t \tSystem.out.print(elemento.getID()+\" / \");\r\n\t }*/\r\n\t \r\n\t //here we are painting as the best branches foundeded\r\n\t \r\n\t Iterator<Branch> nombreIterator = bestBranches.iterator();\r\n\t while(nombreIterator.hasNext()){\r\n\t \tBranch elemento = nombreIterator.next();\r\n\t \t//System.out.print(elemento.getHeuristicValue()+ \" / \");\r\n\t }\r\n\t \r\n\t \r\n\t //Here we will put the elements on the tile\r\n\t \t//Just here to implement the n screens!\r\n\t for(int i=0;i<maxScreens;i++)\r\n\t {//block from Lelis and Reis (>class GeradorDeFasses)\r\n/*\t \ttry {\r\n\t \t\tLevel levelScreen=PaintElements(((Branch)bestBranches.get(i)).getStates(),this.clone());\t\t\t\t\t\r\n\t\t\t\t\tScreen objScreen=new Screen();\r\n\t\t\t\t\tobjScreen.SaveScreen(levelScreen,odds,objElem);\r\n\t \t\tInformacoesTelas info = new InformacoesTelas();\r\n\t\t\t CopiaArquivos copiador = new CopiaArquivos();\r\n\t\t\t \r\n\t\t\t info = info.carregaInfoTela(\"infoTela\");\r\n\t\t\t\t\tinfo.setOutrasVariaveis(0, 0); // Salva outras informacoes da Tela\r\n\t\t\t\t\tinfo.salvaInfoTela(\"infoTela\", info);\t\t\t\t\t\r\n\t\t\t\t\tcopiador.copy(\"\" + i, \"Screens/\");\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (CloneNotSupportedException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}*/\r\n\t }\r\n\t \r\n\t\t\t\r\n\t\t}", "@Test\n public void test100() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Block block0 = (Block)errorPage0.li();\n Label label0 = (Label)errorPage0.label((Object) null);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(label0._isGeneratedId());\n }", "@Test\n void buildWaredDrobeTest() {\n WaredDrobeBuilder waredDrobeBuilder = new WaredDrobeBuilder();\n WaredDrobe waredDrobe = waredDrobeBuilder.build();\n List<String>partlist=waredDrobe.getParts();\n\n List<String>steps = Arrays.asList(\"bottom\",\"side\",\"side\",\"back\",\"top\",\"shelf\",\"shelf\",\"shelf\",\"shelf\",\n \"shelf\",\"shelf\",\"shelf\",\"shelf\",\"door\",\"door\");\n assertEquals(steps,partlist);\n\n\n\n\n }", "@Test\n public void exerciseTwoTest() {\n driver.get(properties.getProperty(\"URL\"));\n\n // 2. Assert Browser title\n homePageAsserts.shouldReturnPageTitle();\n\n // 3. Perform login\n homePageSteps.login(properties.getProperty(\"username\"), properties.getProperty(\"password\"));\n\n // 4. Assert User name in the left-top side of screen that user is loggined\n homePageAsserts.shouldReturnUsernameText();\n\n // 5. Open through the header menu Service -> Different Elements Page\n homePageSteps.clickServiceButton();\n homePageSteps.openDifferentElementsPage();\n\n // 6. Select checkboxes\n differentElementsPageSteps.selectCheckbox(WATER.getValue());\n differentElementsPageSteps.selectCheckbox(WIND.getValue());\n\n // 7. Select radio\n differentElementsPageSteps.selectRadioButton(SELEN.getValue());\n\n // 8. Select in dropdown\n differentElementsPageSteps.selectDropdown(YELLOW.getValue());\n\n // 9.1 Assert that for each checkbox there is an individual log row\n // and value is corresponded to the status of checkbox\n differentElementsAsserts.shouldReturnSelectedCheckbox();\n differentElementsAsserts.shouldReturnLogRowText(WATER.getValue(), \"true\");\n differentElementsAsserts.shouldReturnLogRowText(WIND.getValue(), \"true\");\n\n // 9.2 Assert that for radio button there is a log row and value is corresponded to the status of radio button\n differentElementsAsserts.shouldReturnSelectedRadioButton();\n differentElementsAsserts.shouldReturnLogRowText(METAL.getValue(), SELEN.getValue());\n\n // 9.3 Assert that for dropdown there is a log row and value is corresponded to the selected value\n differentElementsAsserts.shouldReturnSelectedDropdown();\n differentElementsAsserts.shouldReturnLogRowText(COLORS.getValue(), YELLOW.getValue());\n }", "private void setup(){\n buildTree(2);\n }", "@Test\n public void testDAM31801002() {\n // Data preparation\n {\n clearAndCreateTestDataForBook();\n }\n\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n TodoListPage todoListPage = dam3IndexPage.dam31801002Click();\n\n todoListPage.setTodoTitleContent(\"Todo 1\");\n\n todoListPage.setTodoCreationDate(\"2016/12/30\");\n\n todoListPage = todoListPage.searchUsingOverwrittenTypeAliasName();\n\n // Assert the todo record count from DB table\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getIncompletTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getTotalTodoCount(), equalTo(\"2\"));\n\n boolean isTodoPresent = todoListPage.isTodoDisplayed(\"0000000001\");\n assertThat(isTodoPresent, is(true));\n\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000010\");\n assertThat(isTodoPresent, is(true));\n\n // this todo does not meets the criteria.Hence not displayed.\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000002\");\n assertThat(isTodoPresent, is(false));\n }", "void create(Node node) {\n if (node.table.negatives() == 0) {\r\n node.atribute = 1;\r\n return;\r\n }\r\n if (node.table.positives() == 0) {\r\n node.atribute = 0;\r\n return;\r\n }\r\n\r\n //If no test split the data, make it a leaf with the majoriti of the target atribute\r\n int atr;\r\n //Choose the best atribute\r\n atr = this.chooseBestAtrib(node);\r\n node.atribute = atr;\r\n\r\n //No atribute split the data, so make the node a leaf with the majoriti of the class (either positive or negative)\r\n if (node.atribute == -1) {\r\n //System.out.println(\"Atribute is -1 in TeeBuidler.create\");\r\n if (node.table.negatives() > node.table.positives()) {\r\n node.atribute = 0;\r\n return;\r\n }\r\n if (node.table.positives() >= node.table.negatives()) {\r\n node.atribute = 1;\r\n return;\r\n }\r\n }\r\n\r\n Table table_left = new Table(), table_right = new Table();\r\n node.table.splitByAtrib(node.atribute, table_left, table_right);\r\n\r\n //Create two children for the current node //parameters: identifier,parent_result,atribute of split,id_child1, id_child2, table\r\n node.child_left = new Node(node.id + node.id, \"1\", -1, -1, -1, table_left);\r\n node.child_right = new Node(node.id + node.id+1, \"0\", -1, -1, -1, table_right);\r\n node.id_child_left = node.id + node.id;\r\n node.id_child_right = node.id + node.id+1;\r\n\r\n\r\n TreeBuilder builder = new TreeBuilder();\r\n builder.create(node.child_left);\r\n builder.create(node.child_right);\r\n\r\n }", "@Test(enabled = false)\n public void testCase3() {\n String subHeading = driver.findElement(By.className(\"sub\")).getText();\n Assert.assertTrue(subHeading.contains(\"Practice\"));\n }", "@Test\n\tpublic void TC_01_Web_Element() {\n\t\tdriver.findElement(By.id(\"\")); //**\n\t\t\n\t\t//Tim nhieu element\n\t\tdriver.findElements(By.id(\"\"));//**\n\t\t\n\t\t//If chi thao tac vs element 1 lan thi ko can khai bao bien\n\t\tdriver.findElement(By.id(\"small-searchterms\")).sendKeys(\"Apple\");//**\n\t\t\n\t\t//If can thao tac element nhieu lan thi nen khai bao bien\n\t\tWebElement searchTextbox = driver.findElement(By.id(\"small-searchterms\"));\n\t\tsearchTextbox.clear();//**\n\t\tsearchTextbox.sendKeys(\"Apple\");\n\t\tsearchTextbox.getAttribute(\"value\");//**\n\t\t\n\t\t//driver.findElement(By.id(\"small-searchterms\")).clear();\n\t\t//driver.findElement(By.id(\"small-searchterms\")).sendKeys(\"Apple\");\n\t\t//driver.findElement(By.id(\"small-searchterms\")).getAttribute(\"value\");\n\t\t\n\t\t//Count co bao nhieu element thoa dieu kien\n\t\t//Verify so luong element tra ve nhu mong doi\n\t\t//Thao tac vs all cac loai element giong nhau trong 1 page (checkbox/textbox)\n\t\tList<WebElement> checkboxes = driver.findElements(By.xpath(\"//div[@class='inputs']/input[not(@type='checkbox')]\"));\n\t\t\n\t\t//Lay ra so luong\n\t\tAssert.assertEquals(checkboxes.size(), 6);\n\t\t\n\t\tWebElement singleElement = driver.findElement(By.className(\"\"));\n\t\t\n\t\t//Textbox TextArea/ Edittable dropdown\n\t\t//Du lieu duoc toan ven\n\t\tsearchTextbox.clear();\n\t\tsearchTextbox.sendKeys(\"\");\n\t\t\n\t\t//Button/Link/radio/checkbox/custom dropdown/..\n\t\tsingleElement.click();//**\n\t\t\n\t\t//Cac ham co tien to bat dau bang get lun lun tra ve du lieu \n\t\t//getTitle/ getCurrentUrl/ getPageSource/ getAttribute/ getCssValue/ getText/ get...\n\t\tsingleElement = driver.findElement(By.xpath(\"//input[@id='Firstname']\"));\n\t\tsingleElement.getAttribute(\"\");\n\t\t\n\t\t//Automation\n\t\tsingleElement = driver.findElement(By.xpath(\"//input[@id='small-searchterms']\"));\n\t\tsingleElement.getAttribute(\"placeholder\");\n\t\t//Search store\n\t\t\n\t\t//Lay ra gia tri cua cac thuoc tinh css thuong dung de test GUI\n\t\t//Font/Size/Color/Background/...\n\t\tsingleElement = driver.findElement(By.cssSelector(\"search-box-button\"));\n\t\tsingleElement.getCssValue(\"background-color\");//*\n\t\t//#4ab2f1\n\t\tsingleElement.getCssValue(\"text-transform\");\n\t\t//uppercase\n\t\t\n\t\t//Lay ra toa do element so voi page hien tai (get gox ben ngoai)\n\t\tsingleElement.getLocation();\n\t\t\n\t\t//lay ra kich thuoc cua element (rong x cao) -> get goc ben trong element\n\t\tsingleElement.getSize();\n\t\t\n\t\t//Location + size\n\t\tsingleElement.getRect();\n\t\t\n\t\t//Chup hinh loi => dua vao html export\n\t\tsingleElement.getScreenshotAs(OutputType.FILE);//*\n\t\t\n\t\t\n\t\t//id/class/css/name...//tu 1 element ko bik tagname -> lay ra duoc tagname truyen vao cho 1 locator khac\n\t\tsingleElement = driver.findElement(By.xpath(\"//div[@class='inputs']/input[not(@type='checkbox')]\"));\n\t\tString searchButtonTagname = singleElement.getTagName();//*\n\t\t\n\t\tsearchTextbox = driver.findElement(By.xpath(\"//\" + searchButtonTagname + \"[@class='inputs']/input[not(@type='checkbox')]\"));\n\t\t//input\n\t\t\n\t\t//xpath\n\t\t//tagname[@attribute='value']\n\t\t\n\t\t\n\t\t//lay ra text element (header/link/message/...)\n\t\tsingleElement.getText();//**\n\t\t\n\t\t//Cac ham co tien to la isXXX thi tra ve kieu Boolean (100%)\n\t\t//true/false\n\t\t\n\t\t//kiem tra xem 1 element la hien thi cho nguoi dung thao tac hay ko\n\t\t//true: dang hien thi\n\t\t//false: ko hien thi\n\t\tsingleElement.isDisplayed();//**\n\t\t\n\t\t//kiem tra xem 1 element la disable hay ko\n\t\t//disable: user ko thao tac duoc\n\t\t//true: ko thao tac duoc\n\t\t//false: co the thao tac\n\t\tsingleElement.isEnabled();//*\n\t\t\n\t\t//kiem tra xem 1 element da duoc chon roi hay chua\n\t\t//checkbox/ radio/ dropdown\n\t\t//true: da chon roi\n\t\t//false: chua duoc chon\n\t\tsingleElement.isSelected();//*\n\t\t\n\t\t//no thay cho hanh vi ENTER vao textbox/button\n\t\t//chi dung duoc trong form (Login/search/register/...)\n\t\tsingleElement.submit();\n\t\t\n\t\tsingleElement = driver.findElement(By.id(\"small-searchterms\"));\n\t\tsingleElement.sendKeys(\"Apple\");\n\t\tsingleElement.submit();\n\t\t\n\t\t\n\t\t\n\t}", "@org.junit.Test\n public void constrCompelemAttr4() {\n final XQuery query = new XQuery(\n \"element elem {//west/@mark, //center/@mark}\",\n ctx);\n try {\n query.context(node(file(\"prod/AxisStep/TopMany.xml\")));\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n error(\"XQDY0025\")\n );\n }", "public Nest() {\r\n\t\tnestNo++;\r\n\t\tthis.setName(\"nest #\" + nestNo);\r\n\t}", "@Test(timeout = 4000)\n public void test08() throws Throwable {\n JSJshop jSJshop0 = new JSJshop();\n JSJshopNode jSJshopNode0 = jSJshop0.getTree();\n assertNull(jSJshopNode0);\n }", "@Test\n public void test19(){\n // List<Integer> services = response.extract().path(\"data.findAll{it.services=='Samsung Experience'}.storeservices\");\n //List<HashMap<String, ?>> address = response.extract().path(\"data.findAll{it.service=='Samsung Experience'}.storeservices\");\n System.out.println(\"------------------StartingTest---------------------------\");\n System.out.println(\"The name of all services:\" );\n System.out.println(\"------------------End of Test---------------------------\");\n }", "protected GuiTestObject html_main() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"html_main\"));\n\t}", "@Test\n public void underweightCategorySecondRangeInKgAndCm() {\n\n driver.findElement(By.xpath(\"//input[@name='wg']\")).sendKeys(\"58.6\");\n driver.findElement(By.xpath(\"//input[@name='ht']\")).sendKeys(\"178\");\n driver.findElement(By.xpath(\"//input[@name='cc']\")).click();\n Assert.assertEquals(driver.findElement(By.name(\"desc\")).getAttribute(\"value\"), \"Your category is Underweight\",\n \"actual text is not: Your category is Underweight\");\n }", "@Test\n public void nameDetailNeighbourIsGood() {\n ViewInteraction recyclerView = onView(\n allOf(withId(R.id.list_neighbours),isDisplayed()));\n recyclerView.perform(actionOnItemAtPosition(1, click()));\n\n ViewInteraction textView = onView(\n allOf(withId(R.id.titleNameNeighbour_view), withText(\"Jack\"),\n withParent(withParent(withId(android.R.id.content))),\n isDisplayed()));\n textView.check(matches(withText(\"Jack\")));\n }", "@Test\n public void overweightCategorySecondRangeInKgAndCm() {\n\n driver.findElement(By.xpath(\"//input[@name='wg']\")).sendKeys(\"94\");\n driver.findElement(By.xpath(\"//input[@name='ht']\")).sendKeys(\"177\");\n driver.findElement(By.xpath(\"//input[@name='cc']\")).click();\n Assert.assertEquals(driver.findElement(By.name(\"desc\")).getAttribute(\"value\"), \"Your category is Overweight\",\n \"actual text is not: Your category is Overweight\");\n }", "public SNGTestCases Options_TC1017() throws InterruptedException{\n \tString flavour = \"Electrical\";\n \t\n \tforDebugger();\n \twaitForElement(By.id(\"com.pointedsquares.gamy5.android:id/header_name\"),120);\n \ttry{\n \t\twaitForElement(By.xpath(\"//android.widget.TextView[contains(@text , 'Academics') and contains(@resource-id , 'itemTitle')]\") , 5);\n \t}catch(Exception ex){\n \t\tdriver.scrollTo(\"Academics\");\n \t}\n \tdriver.findElement(By.xpath(\"//android.widget.TextView[contains(@text , 'Academics') and contains(@resource-id , 'itemTitle')]/following-sibling::android.widget.TextView[contains(@text , 'More')]\")).click();\n \twaitForElement(By.id(\"com.pointedsquares.gamy5.android:id/search_all\"), 10);\n \tdriver.findElement(By.id(\"com.pointedsquares.gamy5.android:id/search_all\")).click();\n \tdriver.findElement(By.id(\"com.pointedsquares.gamy5.android:id/search_all\")).sendKeys(flavour);\n \tdriver.findElement(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'flavour_name_list') and contains(@text , 'Electrical Engineering')]\")).click();\n \twaitForElement(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'stake_amount') and contains(@text , '500')]\"),5);\n \tdriver.findElement(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'stake_amount') and contains(@text , '500')]\")).click();\n \twaitForElement(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'message_text') and contains(@text , 'You are about to play Electrical Engineering game with 500 coins stake.')]\"), 5);\n \tdriver.findElement(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'message_text') and contains(@text , 'You are about to play Electrical Engineering game with 500 coins stake.')]\")).click();\n \tdriver.findElement(By.id(\"com.pointedsquares.gamy5.android:id/positive_button\")).click();\n \twaitForVisibilityOf(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'response') and contains(@text , 'Finding room for you...')]\"));\n \tThread.sleep(5000);\n \ttry{\n \t\twaitForElement(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'response') and contains(@text , 'Still Waiting.....')]\") , 2);\n \t}catch(Exception ex){\n \t\t\n \t}\n \twaitForVisibilityOf(By.id(\"com.pointedsquares.gamy5.android:id/choice_linear\"));\n \tList<WebElement> choices = driver.findElements(By.xpath(\"//android.widget.LinearLayout[contains(@resource-id , 'choice_linear')]/*\"));\n \t\n \tboolean noOfChoice = true;\n \tif(choices.size()!=4){\n \t\t\n \t\tnoOfChoice = false;\n \t}\n \tassertTrue(noOfChoice , \"Choice not equal to 4\");\n \t\n \tThread.sleep(7000);\n \treturn new SNGTestCases(driver);\n }", "@Test public void testNode() {\n \n }", "@Test\n public void whenSearchTwoThenResultIndexOne() {\n tree.addChild(nodeOne, \"1\");\n nodeOne.addChild(nodeTwo, \"2\");\n nodeTwo.addChild(nodeThree, \"3\");\n assertThat(tree.searchByValue(\"4\"), is(\"Element not found\"));\n }", "@Test\n public void test13() throws Throwable {\n Object object0 = new Object();\n DefaultMenuItem defaultMenuItem0 = new DefaultMenuItem(object0);\n defaultMenuItem0.setDepth(0);\n assertEquals(true, defaultMenuItem0.isLeaf());\n assertEquals(0, defaultMenuItem0.getDepth());\n }", "@Test(timeout = 4000)\n public void test277() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n errorPage0.strike();\n Component component0 = errorPage0.legend();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component0._isGeneratedId());\n }", "@Test\n public void normalCategoryFirstRangeInKgAndCm() {\n\n\n driver.findElement(By.xpath(\"//input[@name='wg']\")).sendKeys(\"59.3\");\n driver.findElement(By.xpath(\"//input[@name='ht']\")).sendKeys(\"179\");\n driver.findElement(By.xpath(\"//input[@name='cc']\")).click();\n Assert.assertEquals(driver.findElement(By.name(\"desc\")).getAttribute(\"value\"), \"Your category is Normal\",\n \"actual text is not: Your category is Normal\");\n }", "@Test\n public void testDAM30504001() {\n // Data preparation\n {\n clearAndCreateTestDataForBook();\n }\n\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n TodoListPage todoListPage = dam3IndexPage.dam30504001Click();\n\n // Assert the todo record count from DB table\n // These count are computed from the list returned and not fetched using query.\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"3\"));\n assertThat(todoListPage.getIncompletTodoCount(), equalTo(\"7\"));\n assertThat(todoListPage.getTotalTodoCount(), equalTo(\"10\"));\n\n // by default the radio button for incomplete todos is selected for retrievingits count.\n todoListPage = todoListPage.clickCountByStatusBtn();\n\n String todoCnt = todoListPage.getTodoCountwithStatus();\n\n // This count is fetched from db using count query : status in-complete.\n assertThat(todoCnt, equalTo(\"InComplete : 7\"));\n\n // Status selected as complete now\n todoListPage.selectCompleteStatRadio();\n\n todoListPage = todoListPage.clickCountByStatusBtn();\n todoCnt = todoListPage.getTodoCountwithStatus();\n\n // This count is fetched from db using count query : status complete.\n assertThat(todoCnt, equalTo(\"Completed : 3\"));\n\n }", "@Test(timeout = 4000)\n public void test007() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.q();\n Component component1 = component0.span();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertEquals(\"Block_2\", component1.getComponentId());\n }", "@Test\n public void articleSingleView()throws Exception{\n ChromeDriver driver = openChromeDriver();\n try {\n driver.get(\"https://www.knjizare-vulkan.rs\");\n clearCookies(driver);\n\n WebElement schoolProgram = driver.findElement(By.xpath(\"//a[@href='https://www.knjizare-vulkan.rs/program-za-skolu']\"));\n schoolProgram.click();\n\n WebElement childPencilBox = driver.findElement(By.xpath(\"/html/body/div[4]/div[1]/div/div/div/div[5]/div/div[2]/div/div/div[7]/div[1]/div[1]/a[2]\"));\n childPencilBox.click();\n\n\n\n Thread.sleep(3000);\n\n } finally {\n\n driver.quit();\n\n }\n\n }", "public ManagePropertiesPage reviewProrty(Hashtable<String, String> testData) throws Exception {\n\ttry{\n\t\tcheckElementExistence(driver,By.xpath(\"lblPptyAddressvalue\"),5);\n\t\t/*COC.webAdaptor(Actions.waitForObjectToLoad, \"lblPptyAddressvalue\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblPptybillinfo\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblPptyName\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblPptyNameValue\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblPptyAddress\");\n\t\tCOC.webAdaptor(Actions.waitForText, \"lblPptyAddressvalue\");\n\t\n\t\t\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblMasterAccntno\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblMasterAccntnoValue\");\n\t\tCOC.webAdaptor(Actions.waitForText, \"lblAcntBillgName\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblAcntBillgNameValue\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblAccntMailingadd\");\n\t\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblAccntMailingaddvalue\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblUnit\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblAddress\");\n\n\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblTermsAgg\");\n\t\t*/COC.webAdaptor(Actions.click, \"chkTermsAgg\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblName\");\n\t\tcheckElementExistence(driver,By.xpath(\"inputName\"),5);\n\t\tCOC.webAdaptor(Actions.setText, \"inputName\",testData.get(\"Name\"));\n\t\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblTitle\");\n\t\tcheckElementExistence(driver,By.xpath(\"inputTitle\"),5);\n\t\tCOC.webAdaptor(Actions.setText, \"inputTitle\", testData.get(\"Title\"));\n\t\t\n\t\t/*COC.webAdaptor(Actions.waitForObjectToLoad, \"lblEmail\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblEmailValue\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lnkBack\");\n\t\n\t*/\t\n\t\tcheckElementExistence(driver,By.xpath(\"btnSubmit\"),5);\n\t\t//COC.webAdaptor(Actions.waitForObjectToLoad, \"btnSubmit\");\n\t\tCOC.webAdaptor(Actions.click, \"btnSubmit\");\n\t\tThread.sleep(5000);\n\t\t\n\t/*\tFile scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\n\t\tFileUtils.copyFile(scrFile, new File(\"Screenshots//\" + this.getClass().getSimpleName() + \"_\" +System.currentTimeMillis() +\".png\"));\n\t\tCOCDriverScript.logMessage(\"testStepPass\", \"Selected New Property\");\n\t*/ }catch(Exception e){\n\t\tCOCDriverScript.logMessage(\"testStepFail\", \"Element not found\");\n\t\tSystem.out.println(e.getMessage());\n\t\te.printStackTrace();\n\t\tFile scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\n\t\tFileUtils.copyFile(scrFile, new File(\"Screenshots//\" + this.getClass().getSimpleName() + \"_\" +System.currentTimeMillis() +\".png\"));\n\t }\n\treturn new ManagePropertiesPage(driver, localData);\n}", "@Test\n public void z_topDown_TC03() {\n try {\n Intrebare intrebare = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"M\");\n Intrebare intrebare1 = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"A\");\n Intrebare intrebare2 = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"B\");\n Intrebare intrebare3 = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"C\");\n assertTrue(true);\n assertTrue(appService.exists(intrebare));\n assertTrue(appService.exists(intrebare1));\n assertTrue(appService.exists(intrebare2));\n assertTrue(appService.exists(intrebare3));\n\n try {\n ccir2082MV.evaluator.model.Test test = appService.createNewTest();\n assertTrue(test.getIntrebari().contains(intrebare));\n assertTrue(test.getIntrebari().contains(intrebare1));\n assertTrue(test.getIntrebari().contains(intrebare2));\n assertTrue(test.getIntrebari().contains(intrebare3));\n assertTrue(test.getIntrebari().size() == 5);\n } catch (NotAbleToCreateTestException e) {\n assertTrue(false);\n }\n\n Statistica statistica = appService.getStatistica();\n assertTrue(statistica.getIntrebariDomenii().containsKey(\"Literatura\"));\n assertTrue(statistica.getIntrebariDomenii().get(\"Literatura\")==1);\n\n assertTrue(statistica.getIntrebariDomenii().containsKey(\"M\"));\n assertTrue(statistica.getIntrebariDomenii().get(\"M\")==1);\n\n assertTrue(statistica.getIntrebariDomenii().containsKey(\"A\"));\n assertTrue(statistica.getIntrebariDomenii().get(\"A\")==1);\n\n assertTrue(statistica.getIntrebariDomenii().containsKey(\"B\"));\n assertTrue(statistica.getIntrebariDomenii().get(\"B\")==1);\n\n assertTrue(statistica.getIntrebariDomenii().containsKey(\"C\"));\n assertTrue(statistica.getIntrebariDomenii().get(\"C\")==1);\n\n } catch (DuplicateIntrebareException | IntrebareValidatorFailedException e) {\n e.printStackTrace();\n assertTrue(false);\n } catch (NotAbleToCreateStatisticsException e) {\n assertTrue(false);\n }\n }", "@Test(priority = 99)\r\n@Epic(\"BILLS PAYMENT\")\r\n@Features(value = { @Feature(value = \"SCHOOL FEES PAYMENTS\") })\r\n@Step (\"Verify that system is able to search and display correct school Name school code and Bank branch when user click on search for school functionality\")\r\npublic void Verify_that_system_is_able_to_search_and_display_correct_school_name_school_code_and_Bank_branch_when_user_click_on_search_for_school_functionality() {\n\tdriver.findElement(By.xpath(\"//a[contains(.,'Home')]\")).click();\r\n\tWebDriverWait wait = new WebDriverWait(driver, 15);\r\n\twait.until(ExpectedConditions.visibilityOfElementLocated(By.linkText(\"Bill Payment\")));\r\n\tdriver.findElement(By.linkText(\"Bill Payment\")).click();\r\n\tWebDriverWait wait1 = new WebDriverWait(driver, 15);\r\n\twait1.until(\r\n\t\tExpectedConditions.visibilityOfElementLocated(By.xpath(\"//div[text()=' Institutional Payments ']\")));\r\n\tdriver.findElement(By.xpath(\"//div[text()=' Institutional Payments ']\")).click();\r\n\tdriver.findElement(By.xpath(\"//div[@class='col-in schoolFee']\")).click();\r\n\tdriver.findElement(By.id(\"FORM_SF_SCHOOL_INFO-SEARCH_SCHOOL_BY\")).click();\r\n\t{\r\n\t WebElement dropdown = driver.findElement(By.id(\"FORM_SF_SCHOOL_INFO-SEARCH_SCHOOL_BY\"));\r\n\t dropdown.findElement(By.xpath(\"//option[. = 'Account Number']\")).click();\r\n\t}\r\n\tdriver.findElement(By.id(\"FORM_SF_SCHOOL_INFO-SEARCH_SCHOOL_BY\")).click();\r\n\tdriver.findElement(By.id(\"FORM_SF_SCHOOL_INFO-SF_ACCOUNT_NUMBER\")).click();\r\n\tdriver.findElement(By.id(\"FORM_SF_SCHOOL_INFO-SF_ACCOUNT_NUMBER\")).sendKeys(\"01129080146300\");\r\n\tdriver.findElement(By.id(\"FORM_SF_SCHOOL_INFO-SEARCH_SCHOOL\")).click();\r\n\tdriver.findElement(By.cssSelector(\".ct-formlayout-SCHOOL_NAME .ct-form__ip\")).click();\r\n\tdriver.findElement(By.cssSelector(\".ct-formlayout-SCHOOL_CODE .ct-form__ip\")).click();\r\n\tSystem.out.println(\"TC13 Verify_that_system_is_able_to_search_and_display_correct_school_name_school_code_and_Bank_branch_when_user_click_on_search_for_school_functionality |Success:\");\r\n\r\n\t}", "@Test\n public void childrenTest() {\n // TODO: test children\n }", "@Test\n public void obesityCategory() {\n\n driver.findElement(By.xpath(\"//input[@name='wg']\")).sendKeys(\"102.7\");\n driver.findElement(By.xpath(\"//input[@name='ht']\")).sendKeys(\"185\");\n driver.findElement(By.xpath(\"//input[@name='cc']\")).click();\n Assert.assertEquals(driver.findElement(By.name(\"desc\")).getAttribute(\"value\"), \"Your category is Overweight\",\n \"actual text is not: Your category is Overweight\");\n }", "@Test\n public void normalCategorySecondRangeInKgAndCm() {\n\n driver.findElement(By.xpath(\"//input[@name='wg']\")).sendKeys(\"81\");\n driver.findElement(By.xpath(\"//input[@name='ht']\")).sendKeys(\"180\");\n driver.findElement(By.xpath(\"//input[@name='cc']\")).click();\n Assert.assertEquals(driver.findElement(By.name(\"desc\")).getAttribute(\"value\"), \"Your category is Normal\",\n \"actual text is not: Your category is Normal\");\n }", "@Test(timeout = 4000)\n public void test225() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"]f '8Drr>Uj1==M2\");\n Checkbox checkbox0 = new Checkbox(xmlEntityRef0, \"java.lang.String@000000005\", \"]f '8Drr>Uj1==M2\");\n List<RenderableComponent> list0 = checkbox0._getRenderableChildren();\n assertEquals(\"]f '8Drr>Uj1==M2\", xmlEntityRef0.getComponentId());\n assertNotNull(list0);\n }", "public abstract String describe(int depth);", "@Test(timeout = 4000)\n public void test196() throws Throwable {\n Hidden hidden0 = new Hidden((Component) null, \"(vLoO6y2\\\"Vht&{{\", \"(vLoO6y2\\\"Vht&{{\");\n Hidden hidden1 = (Hidden)hidden0.attribute(\"(vLoO6y2\\\"Vht&{{\", \"(vLoO6y2\\\"Vht&{{\");\n assertTrue(hidden1.isValid());\n }", "@Test(groups = \"suite1-1\")\n\tpublic void browseItems() {\n\n\t\tWebElement treasuryLink = driver.findElement(By\n\t\t\t\t.linkText(TREASURY_LINK_TEXT));\n\t\ttreasuryLink.click();\n\n\t\tWebDriverWait wait = new WebDriverWait(driver, 10);\n\n\t\t// Find the button to do the search inside treasury objects\n\t\tWebElement searchButton = wait\n\t\t\t\t.until(ExpectedConditions.elementToBeClickable(By\n\t\t\t\t\t\t.xpath(\"/HTML/BODY/DIV[@id=\\\"content\\\"]/DIV[2]/DIV[@id=\\\"listings-header\\\"]/FORM/SPAN/SPAN/INPUT\")));\n\n\t\t// Find the text input field to do the search\n\t\tWebElement searchField = driver\n\t\t\t\t.findElement(By\n\t\t\t\t\t\t.xpath(\"/HTML/BODY/DIV[@id=\\\"content\\\"]/DIV[2]/DIV[@id=\\\"listings-header\\\"]/FORM/INPUT[@name=\\\"search_query\\\"]\"));\n\t\t// Search key\n\t\tsearchField.sendKeys(\"bag\");\n\n\t\tsearchButton.click();\n\n\t\tWebElement numResults = driver.findElement(By\n\t\t\t\t.xpath(\"/HTML/BODY/DIV[@id=\\\"content\\\"]/DIV[1]/H1\"));\n\n\t\tassertNotEquals(numResults.getText().trim().substring(0, 1), \"0\",\n\t\t\t\t\"Results expected for given key\");\n\n\t\tWebElement gallery = wait\n\t\t\t\t.until(ExpectedConditions.elementToBeClickable(By\n\t\t\t\t\t\t.xpath(\"/HTML/BODY/DIV[@id=\\\"content\\\"]/DIV[2]/DIV[2]/UL/LI[1]/DIV[4]/A[1]/IMG\")));\n\t\t// Click should be done without errors\n\t\tgallery.click();\n\n\t}", "public void buildTileOfTripleView(Context context,FakeSuiteBean sb) {\n\t\tpartitionView = new TripleView(context);\n\t\tpartitionView.setContent(sb.resId);\n\t\ttile = new TileView(context);\n\t\ttile.setContent(partitionView);\n\t\ttile.setTitle(sb.tilte);\n\t\ttileViewList.add(tile);\n\t}", "@Test\n public void testDAM30503001() {\n\n // Data preparation\n {\n clearAndCreateTestDataForBook();\n }\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n TodoListPage todoListPage = dam3IndexPage.dam30503001Click();\n\n // Assert the todo record count from DB table\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"3\"));\n assertThat(todoListPage.getIncompletTodoCount(), equalTo(\"7\"));\n assertThat(todoListPage.getTotalTodoCount(), equalTo(\"10\"));\n\n boolean isTodoPresent = todoListPage.isTodoDisplayed(\"0000000002\");\n\n assertThat(isTodoPresent, is(true));\n\n todoListPage.setTodoTitleContent(\"Todo 1\");\n todoListPage.setTodoCreationDate(\"2016-12-30\");\n\n todoListPage = todoListPage.searchByCriteriaBean();\n\n // Assert the todo record count from DB table\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getIncompletTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getTotalTodoCount(), equalTo(\"2\"));\n\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000001\");\n assertThat(isTodoPresent, is(true));\n\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000010\");\n assertThat(isTodoPresent, is(true));\n\n // this todo does not meets the criteria.Hence not displayed.\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000002\");\n assertThat(isTodoPresent, is(false));\n\n }", "@Test\n public void test091() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n LabeledWord labeledWord0 = new LabeledWord(\"\");\n Label label0 = (Label)errorPage0.s((Object) labeledWord0);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(label0._isGeneratedId());\n }", "@Test\n public void test033() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Checkbox checkbox0 = new Checkbox(errorPage0, \"\", \"\");\n String string0 = checkbox0.defaultTagName();\n XmlEntityRef xmlEntityRef0 = (XmlEntityRef)errorPage0.entity(\"input\");\n }", "@Test\n public void test060() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Table table0 = new Table(errorPage0, (String) null);\n ElExpression elExpression0 = table0.el((String) null);\n Label label0 = (Label)table0.h3((Object) elExpression0);\n }", "@Test\n public void resalePropertyMatch() throws UiObjectNotFoundException {\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"btn_create_post\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"lbl_resale_prop\")).click();\n device.findObject(By.text(\"Search building name\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"input_search\")).setText(\"Icon\");\n device.wait(Until.findObject(By.text(\"Icon Linera\")), 10000);\n device.findObject(By.text(\"Icon Linera\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"dd_configuration\")).click();\n device.findObject(By.text(\"3 BHK\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"txt_pricing\")).click();\n device.findObject(By.text(\"7\")).click();\n device.findObject(By.text(\"5\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"Done\")).click();\n device.wait(Until.findObject(By.text(\"sq ft\")), 2000);\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"txt_carpet_area\")\n .childSelector(new UiSelector().className(Utils.EDIT_TEXT_CLASS))).setText(\"1200\");\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"dd_floor\")).click();\n device.findObject(By.text(\"Higher\")).click();\n device.findObject(By.text(\"4\")).click();\n UiScrollable postView = new UiScrollable(new UiSelector().scrollable(true));\n UiSelector postSelector = new UiSelector().text(\"POST\");\n postView.scrollIntoView(postSelector);\n device.findObject(postSelector).click();\n device.wait(Until.findObject(By.text(\"POST\").enabled(true)), 10000);\n String matchNameString = device.findObject(By.textContains(\"matches\")).getText().split(\" \")[0];\n device.findObject(By.text(\"POST\")).click();\n device.wait(Until.findObject(By.text(\"RESALE PROPERTY\")), 9000);\n Assert.assertNotEquals(\"Test Case Failed...No Match found\", \"no\", matchNameString.toLowerCase());\n String postMatchName = device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"lbl_name\")).getText();\n Assert.assertEquals(\"Test Case Failed...Match should have had been found with\", \"dialectic test\", postMatchName.toLowerCase());\n\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"btn_close\")).click();\n Utils.markPostExpired(device);\n }", "@Test\n public void test105() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = (Label)errorPage0.strong((Object) errorPage0);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(label0._isGeneratedId());\n }", "@Test\n public void testClassName() {\n// assertEquals(SParser.parse(\"HardDisk\").toHTML(new SEclipseStyle(), new SClassName()),\"<pre style='color:#000000;background:#ffffff;'></pre>\"); //ClassName\n// assertEquals(\"{\",\"\"); //CurlyBracket\n// assertEquals(\"class\",\"\");//KeyWord\n// assertEquals(\"String\",\"\");//MainClass\n// assertEquals(\"String string\",\"\");//MainClass\n// assertEquals(\"public\",\"\");//Modifier\n// assertEquals(\"this\",\"\"); //PseudoVariable\n// assertEquals(\";\",\"\"); //Semicolon\n// assertEquals(\"\\\"string\\\"\",\"\"); //String\n// assertEquals(\"\",\"\"); //Body Alone\n\n// String html = source.toHTML(new SEclipseStyle(), new SClassName());\n// assertEquals(html, \"<pre style=\"\n// + \"'color:#000000;background:#ffffff;'>\"\n// + \"public class MainClass {\\n\"\n// + \" \\n\"\n// + \" public static void main(String args[]){\\n\"\n// + \" GradeBook myGradeBook=new GradeBook();\\n\"\n// + \" String courseName=\\\"Java \\\";\\n\"\n// + \" myGradeBook.displayMessage(courseName);\\n\"\n// + \" \\n\"\n// + \" }\\n\"\n// + \" }public class Foo {\\n\"\n// + \" \\n\"\n// + \" public boolean bar(){\\n\"\n// + \" super.foo();\\n\"\n// + \" return false;\\n\"\n// + \" \\n\"\n// + \" }\\n\"\n// + \" }</pre>\");\n }", "@Test(timeout = 4000)\n public void test197() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Checkbox checkbox0 = new Checkbox(errorPage0, \"kiDz=CI9_ri)~odKM\", \"]1\");\n checkbox0.renderHint(\"]1\");\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "@Test\n\tpublic void KnowledgeBase_29454_execute() throws Exception {\n\t\tVoodooUtils.voodoo.log.info(\"Running \" + testName + \"...\");\n\n\t\t// Create a Published KB without a Category\n\t\tsugar().knowledgeBase.navToListView();\n\t\tsugar().knowledgeBase.listView.create();\n\t\tsugar().knowledgeBase.createDrawer.showMore();\n\t\tsugar().knowledgeBase.createDrawer.getEditField(\"name\").set(customData.get(\"name\"));\n\t\tsugar().knowledgeBase.createDrawer.getEditField(\"status\").set(customData.get(\"status\"));\n\t\tsugar().knowledgeBase.createDrawer.save();\n\n\t\t// Select My Dashboard from the right hand side\n\t\tVoodooControl dashboardTitle = sugar().accounts.dashboard.getControl(\"dashboardTitle\");\n\t\tif(!dashboardTitle.queryContains(customData.get(\"dashboardTitle\"), true)) {\n\t\t\tsugar().dashboard.chooseDashboard(customData.get(\"dashboardTitle\"));\n\t\t}\n\n\t\t// TODO: VOOD-976 - need lib support of RHS on record view\n\t\tVoodooControl dashletTitleCtrl = new VoodooControl(\"h4\", \"css\", \".dashlet-row .row-fluid .dashlet-title\");\n\t\tVoodooControl noDataAvailableCtrl = new VoodooControl(\"div\", \"css\", \".dashlet-row .row-fluid .block-footer:not([style *='display: none'])\");\n\n\t\t// Verify that in the KB list view, at the right hand side, by default, there is the \"KB Categories\" Dashlet\n\t\tdashletTitleCtrl.assertEquals(customData.get(\"dashletTitle\"), true);\n\n\t\t// Verify that the above KB won't appear in the Dashlet\n\t\tnoDataAvailableCtrl.assertEquals(customData.get(\"noDataAvailable\"), true);\n\n\t\t// Navigate to KB categories page\n\t\tsugar().navbar.selectMenuItem(sugar().knowledgeBase, \"viewCategories\");\n\t\tVoodooUtils.waitForReady();\n\t\t// TODO: VOOD-1754 - Need Lib support for Categories field and Help Text (in RHS) in KnowledgeBase create Drawer.\n\t\t// Create Category \n\t\tnew VoodooControl(\"a\", \"css\", \"a[name='add_node_button']\").click();\n\t\tVoodooUtils.waitForReady();\n\t\tnew VoodooControl(\"input\", \"css\", \"input.jstree-rename-input:not([style *='display: none'])\").set(customData.get(\"categoryName\")+'\\uE007');\t\t\n\t\tVoodooUtils.waitForReady();\n\n\t\t// In the list view, choose \"Create a Localization\" action from the above KB action list\n\t\tsugar().knowledgeBase.navToListView();\n\t\tsugar().knowledgeBase.listView.openRowActionDropdown(1);\n\t\t// TODO: VOOD-695 - Lib support for primary button drop down\n\t\tnew VoodooControl(\"a\", \"css\", \".fld_create_localization_button a\").click();\n\n\t\t// Now the create form opens, user can set the Status = Published, click on \"Select Category\"\n\t\tsugar().knowledgeBase.createDrawer.assertVisible(true);\n\t\tsugar().knowledgeBase.createDrawer.showMore();\n\t\tsugar().knowledgeBase.createDrawer.getEditField(\"name\").set(customData.get(\"localName\"));\n\t\tsugar().knowledgeBase.createDrawer.getEditField(\"status\").set(customData.get(\"status\"));\n\n\t\t// Click on \"Category\" link, enter a new category name, e.g \"new test category\" and hit enter\n\t\t// The above step is blocked due to CB-252 and as the test case motive is not to verify the create Category functionality\n\t\t// so link existing Category instead of create new\n\n\t\t// Select this category for the Localization KB\n\t\t// TODO: VOOD-629 - Add support for accessing and manipulating individual components of a VoodooSelect.\n\t\t// TODO: VOOD-1754 - Need Lib support for Categories field and Help Text (in RHS) in KnowledgeBase create Drawer.\n\t\tnew VoodooControl(\"div\", \"css\", \".fld_category_name.edit div\").click();\n\t\tnew VoodooControl(\"a\", \"css\", \".list .jstree-sugar.tree-component a\").click();\n\n\t\t// Click on Save\n\t\tsugar().knowledgeBase.createDrawer.save();\n\n\t\tsugar().knowledgeBase.navToListView();\n\n\t\t// Sort the list view in ascending order as order is not consistent\n\t\tsugar().knowledgeBase.listView.sortBy(\"headerName\", true);\n\n\t\t// Verify that the new Localized KB is saved, also the Category appears\n\t\tsugar().knowledgeBase.listView.getDetailField(1, \"name\").assertEquals(customData.get(\"localName\"), true);\n\t\t// TODO: VOOD-1754 - Need Lib support for Categories field and Help Text (in RHS) in KnowledgeBase create Drawer.\n\t\tnew VoodooControl(\"a\", \"css\", \".fld_category_name a\").assertEquals(customData.get(\"categoryName\"), true);\n\n\t\t// Verify that the new custom category is appearing, the KB record is associated with it\n\t\t// TODO: VOOD-976 - need lib support of RHS on record view\n\t\tVoodooControl dashletDataCtrl = new VoodooControl(\"a\", \"css\", \".dashlet-row .row-fluid .jstree-sugar.tree-component a[data-action='jstree-select']\");\n\t\tdashletDataCtrl.assertContains(customData.get(\"categoryName\"), true);\n\n\t\tVoodooControl localKBFolderCtrl = new VoodooControl(\"a\", \"css\", \".dashlet-row .row-fluid .jstree-sugar.tree-component > ul > li > a\");\n\t\tVoodooControl localKBCtrl = new VoodooControl(\"a\", \"css\", \".dashlet-row .row-fluid .jstree-sugar.tree-component .jstree-leaf a\");\n\t\tlocalKBFolderCtrl.click();\n\t\tVoodooUtils.waitForReady();\n\t\tlocalKBCtrl.waitForVisible(); // wait needed\n\t\tlocalKBCtrl.assertContains(customData.get(\"localName\"), true);\n\n\t\tVoodooUtils.voodoo.log.info(testName + \" complete.\");\n\t}", "@DISPID(1611005952) //= 0x60060000. The runtime will prefer the VTID if present\n @VTID(27)\n short parameterTreeViewWithValue();", "@Test\n public void testDAM30503002() {\n // Data preparation\n {\n clearAndCreateTestDataForBook();\n }\n\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n TodoListPage todoListPage = dam3IndexPage.dam30503002Click();\n\n // Assert the todo record count from DB table\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"3\"));\n assertThat(todoListPage.getIncompletTodoCount(), equalTo(\"7\"));\n assertThat(todoListPage.getTotalTodoCount(), equalTo(\"10\"));\n\n boolean isTodoPresent = todoListPage.isTodoDisplayed(\"0000000002\");\n\n assertThat(isTodoPresent, is(true));\n\n todoListPage.setTodoTitleContent(\"Todo 1\");\n todoListPage.setTodoCreationDate(\"2016-12-30\");\n\n todoListPage = todoListPage.searchByCriteriaBeanRetMap();\n\n // Assert the todo record count from DB table\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getIncompletTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getTotalTodoCount(), equalTo(\"2\"));\n\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000001\");\n assertThat(isTodoPresent, is(true));\n\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000010\");\n assertThat(isTodoPresent, is(true));\n\n // this todo does not meets the criteria.Hence not displayed.\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000002\");\n assertThat(isTodoPresent, is(false));\n }", "@Test\n public void overweightCategoryFirstRangeInKgAndCm() {\n\n driver.findElement(By.xpath(\"//input[@name='wg']\")).sendKeys(\"85.6\");\n driver.findElement(By.xpath(\"//input[@name='ht']\")).sendKeys(\"185\");\n driver.findElement(By.xpath(\"//input[@name='cc']\")).click();\n Assert.assertEquals(driver.findElement(By.name(\"desc\")).getAttribute(\"value\"), \"Your category is Overweight\",\n \"actual text is not: Your category is Overweight\");\n }", "public static void viewPage(WebDriver driver, String sTestCaseName) throws Exception{\r\n\t\r\n\t\t//Check that all of the elements of that are expected are displayed\r\n\t\tObjects_Job_Completion_Summary_Page.lbl_Summary(driver).isDisplayed();{\r\n\t\tLog.info(sTestCaseName + \" | Summary label displayed as expected\");\r\n\t\t}\r\n\r\n\t\tif (\"Exchange_1_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t||\"INST_14_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t||\"Exchange_19_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t||\"Exchange_1_End_To_End_Spark_Chrome\".equals(sTestCaseName))\r\n\t\t{ \r\n\t\t\tObjects_Job_Completion_Summary_Page.lbl_Gas_Meter_Mprn(driver).isDisplayed();{\r\n\t\t\tLog.info(sTestCaseName + \" | Gas Meter MPRN label displayed as expected\");\r\n\t\t\t}\t\t\r\n\t\t}\r\n\t\telse if (\"Exchange_2_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"NMEX_5_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_15_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_20_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_11_End_To_End_Spark_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_2_End_To_End_Spark_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_5_End_To_End_Spark_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"FLTY_2_End_To_End_Spark_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_5_End_To_End_Spark_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_8_End_To_End_ECOT_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"NMEX_5_End_To_End_Spark_Chrome\".equals(sTestCaseName))\r\n\t\t{ \r\n\t\t\tObjects_Job_Completion_Summary_Page.lbl_Electricity_Meter_Mpan(driver).isDisplayed();{\r\n\t\t\tLog.info(sTestCaseName + \" | Electricity Meter MPAN label displayed as expected\");\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"Doing the elseif\"); \r\n\t\t}\r\n\t\telse if (\"Exchange_3_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_9_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_3_Elec_HAN_WAN_Checks_Page_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_3_Gas_Meter_Post_Installation_Gas_Tightness_Test_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_3_Gas_Meter_Pre_Installation_Gas_Tightness_Test_Failed_Test_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_3_Gas_Meter_Pre_Installation_Gas_Tightness_Test_Low_Pressure_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_3_Gas_Risk_Assessment_Gas_Abort_Low_Pressure_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_3_Gas_Risk_Assessment_Gas_Abort_Med_Pressure_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_3_Gas_SMeter_Post_Installation_Pressure_Drop_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_9_Elec_HAN_WAN_Checks_Page_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_9_Gas_Meter_Initial_Risk_Assessment_Gas_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_9_Gas_Meter_Post_Installation_Gas_Tightness_Test_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_9_Gas_Meter_Pre_Installation_Gas_Tightness_Test_Failed_Test_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_9_Gas_Meter_Pre_Installation_Gas_Tightness_Test_Low_Pressure_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_9_Gas_Risk_Assessment_Gas_Abort_Low_Pressure_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_9_Gas_Risk_Assessment_Gas_Abort_Med_Pressure_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"FLTY_17_Gas_Meter_Post_Installation_Gas_Tightness_Test_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"FLTY_17_Gas_Meter_Pre_Installation_Gas_Tightness_Test_Failed_Test_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"FLTY_17_Gas_Meter_Pre_Installation_Gas_Tightness_Test_Low_Pressure_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"FLTY_17_Gas_Risk_Assessment_Gas_Abort_Low_Pressure_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"FLTY_17_Gas_Risk_Assessment_Gas_Abort_Med_Pressure_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"FLTY_17_Gas_Suitable_For_Smart_Installation_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_21_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_16_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_9_End_To_End_Spark_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"FLTY_17_End_To_End_Spark_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_3_End_To_End_ECOT_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_12_End_To_End_ECOT_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_12_Elec_HAN_WAN_Checks_Page_Abort_ECOT_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_12_Elec_Initial_Polarity_Check_At_Meter_Page_Abort_ECOT_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_12_Elec_Initial_Risk_Assessment_Page_Abort_ECOT_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_12_Elec_Risk_Assessment_Page_Abort_ECOT_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_12_Elec_Suitable_For_Smart_Installation_Page_Abort_ECOT_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_12_End_To_End_Found_Meter_ECOT_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_3_Elec_HAN_WAN_Checks_Page_Abort_ECOT_Chrome\".equals(sTestCaseName))\r\n\t\t{ \r\n\t\t\tObjects_Job_Completion_Summary_Page.lbl_Electricity_Meter_Mpan(driver).isDisplayed();{\r\n\t\t\tLog.info(sTestCaseName + \" | Electricity Meter MPAN label displayed as expected\");\r\n\t\t\t}\r\n\t\t \r\n\t\t\tObjects_Job_Completion_Summary_Page.lbl_Gas_Meter_Mprn(driver).isDisplayed();{\r\n\t\t\tLog.info(sTestCaseName + \" | Gas Meter MPRN label displayed as expected\");\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"Doing the elseif\"); \r\n\t\t} \r\n\t\telse \t\t\r\n\t\t{ \r\n\t\t\tSystem.out.println(\"Doing the else \"); \r\n\t\t}\t\t\t\t\t\t\r\n\t\tObjects_Job_Completion_Summary_Page.btn_Potential_Customer_Vulnerability_Identified_Yes(driver).isDisplayed();{\r\n\t\tLog.info(sTestCaseName + \" | Potential Customer Vulnerability Identified - Yes radio button displayed as expected\");\r\n\t\t}\r\n\t\t\r\n\t\tObjects_Job_Completion_Summary_Page.txt_Additional_Notes(driver).isDisplayed();{\r\n\t\tLog.info(sTestCaseName + \" | Additional notes textbox displayed as expected\");\r\n\t\t}\r\n\t\t\r\n\t\tObjects_Job_Completion_Summary_Page.btn_Customer_Agreement_Yes(driver).isDisplayed();{\r\n\t\tLog.info(sTestCaseName + \" | Customer Agreement - Yes radio button displayed as expected\");\r\n\t\t}\r\n\t\t\r\n\t\tObjects_Job_Completion_Summary_Page.btn_Customer_Agreement_No(driver).isDisplayed();{\r\n\t\tLog.info(sTestCaseName + \" | Customer Agreement - No radio button displayed as expected\");\r\n\t\t}\r\n\t\t\r\n\t\t\t\r\n\t\t//Take a screenshot to show what we've done\r\n\t\tUtils.takeScreenshot(driver, sTestCaseName + \"-viewPage\");\r\n\t\t\r\n\t//END OF VIEW PAGE METHOD\r\n\t}", "@Test\n public void whenSearchTwoThenResultLevelTwo() {\n tree.addChild(nodeOne, \"1\");\n nodeOne.addChild(nodeTwo, \"2\");\n assertThat(tree.searchByValue(\"2\"), is(\"Element founded on level 2\"));\n }", "@Test\r\n\t\r\n\tpublic void reviewHotel() throws Throwable {\r\n\tTripAdvisorPage review=new TripAdvisorPage(driver);\r\n\t/*searching Club Mahindra */\r\n\treview.searchinTripAdvisor();\r\n\t/* review*/\r\n\treview.searchForReview();\r\n\t\r\n}", "@Test\n public void test11() throws Throwable {\n DefaultMenuItem defaultMenuItem0 = new DefaultMenuItem((Object) null);\n int int0 = defaultMenuItem0.getDepth();\n assertEquals(0, int0);\n assertEquals(true, defaultMenuItem0.isLeaf());\n }", "@Test\n public void test2(){\n\n List<FitActivity> upper = fitActivityRepository.findAllByBodyPart(\"Upper\");\n for (FitActivity fitActivity : upper) {\n System.out.println(fitActivity.getName());\n\n }\n\n }", "@Test\n\t\t public void testLocationFive() {\n\t\t \tdriver.get(\"http://mq-devhost-lm52.ihost.aol.com:9002/us/nj/upper-montclair/preston-pl-valley-rd/\");\n\t\t \tAssertJUnit.assertEquals(Utils.getElementText(driver,PageLayoutSelectors.TOP_NAME),\"Preston Pl & Valley Rd\");\n\t\t }", "@Test\n public void test120() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n ErrorPage errorPage1 = (ErrorPage)errorPage0.clasS((CharSequence) \"\");\n assertEquals(\"wheel_ErrorPage\", errorPage1.getComponentId());\n }", "@Test(groups = { \"tree\" })\n\t public void testLoadHCData() throws Exception {\n\t\t\tstartupTest(\"treeLoadHCData.html\",null);\n\n\t\t\t//Verify the url\n\t\t\tString url = getBrowserUrl();\n\t\t\tlog(\"URL##########\"+ url);\n\n\t\t\t// Verify if the title of the page is correct\n\t\t\tverifyTitle(\"Incorrect page title;\", TITLE_HC);\n\t\t\tcheckPageContent(TITLE_HC);\n\n\t\t\tcommonLoadTestForJson();\n\n }", "@Test\n public void test11() throws Exception {\n try {\n tester.testOnNestedClasses(Story11, testClass);\n Assert.fail();\n } catch (WhenNotFoundException e) {\n Assert.assertTrue(true);\n }\n }", "private void updateTree(String st, int lineno, double bl, PrintWriter missing){\n\t\t String[] str = st.split(\"\\\\s+\");\n\t\t String specName = str[0];\n\t\t if(str[0].indexOf(\"GRCh38\")>=0){\n\t\t\t specName= \"Homo_sapiens\";\n\t\t\t str[0] = specName;\n\t\t }\n\t\t String alias1 = collapse(str, 2, str.length, \" \");\n\t\t Node n = getSlug(specName, alias1);\n\t\t if(n==null) n = this.unclassified;\n\t\t Node newnode = this.createFromSpeciesFile(str,alias1, n, lineno, bl);\n\t\t this.putSlug(newnode);\n\t\t\t \n\t\t\n\t\t \n\t }" ]
[ "0.6167397", "0.58976763", "0.5831599", "0.5495255", "0.54464126", "0.54036677", "0.5353367", "0.5252372", "0.52061474", "0.5155321", "0.5139728", "0.5122566", "0.5109943", "0.5109462", "0.5081148", "0.50796056", "0.5067373", "0.50625587", "0.50513875", "0.50216866", "0.5017229", "0.50002116", "0.49944255", "0.4986803", "0.49867156", "0.49829158", "0.4978027", "0.49716312", "0.4971548", "0.49695048", "0.49534544", "0.49494657", "0.49449885", "0.49437264", "0.49413174", "0.49352506", "0.49347028", "0.493257", "0.49110964", "0.4910667", "0.49041864", "0.49028817", "0.4901375", "0.48958495", "0.48923862", "0.4884011", "0.48793674", "0.48781958", "0.48770508", "0.48741922", "0.48666462", "0.4859977", "0.4853067", "0.4852133", "0.48500383", "0.4839382", "0.48384178", "0.48356825", "0.48325717", "0.48293468", "0.48233795", "0.4822549", "0.48194978", "0.48113587", "0.48069584", "0.48068905", "0.48064166", "0.48041794", "0.48038092", "0.479898", "0.47936106", "0.47910258", "0.47908074", "0.4785542", "0.47833943", "0.47785658", "0.47772485", "0.47770676", "0.4777048", "0.47736964", "0.47703212", "0.47678748", "0.47668996", "0.47660357", "0.47658256", "0.47614688", "0.4760635", "0.47567973", "0.47547245", "0.47540072", "0.47483456", "0.4745881", "0.47350758", "0.47347894", "0.47335818", "0.47298557", "0.4729613", "0.47280324", "0.47244117", "0.4718989", "0.47165877" ]
0.0
-1
_4: with default state. .id : bedroomsfour .value : 4 .title : .class : Html.LABEL .classIndex : 3
protected GuiTestObject bed_4() { return new GuiTestObject( getMappedTestObject("bed_4")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public String storyID() {\r\n return \"HD\";\r\n }", "protected GuiTestObject bed_5() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"bed_5\"));\n\t}", "@Override\r\n public void Story(){\r\n super.Story();\r\n System.out.println(\"=======================================================================================\");\r\n System.out.println(\"|| Arya harus bergegas untuk menyelamatkan seluruh warga. Dia tidak tau posisi warga ||\");\r\n System.out.println(\"|| yang harus diselamatkan ada pada ruangan yang mana. ||\");\r\n System.out.println(\"=======================================================================================\");\r\n }", "public static void buildStage2 ()\r\n {\r\n \r\n lgt.findParent(); //4\r\n lgt.findChild(0); //6\r\n lgt.insert(12);\r\n lgt.findParent();\r\n lgt.insert(13);\r\n lgt.findParent();\r\n lgt.insert(14);\r\n \r\n lgt.findRoot();\r\n lgt.findChild(0);//2\r\n lgt.findChild(0);//5\r\n lgt.insert(8);\r\n lgt.findParent();\r\n lgt.insert(9);\r\n lgt.findParent();\r\n lgt.insert(10);\r\n lgt.findParent();\r\n lgt.insert(11);\r\n \r\n }", "public void baseLandID(){ \n Log1_AssetCountModel assetCount = new Log1_AssetCountModel();\n List count = assetCount.get();\n\n count.stream().forEach(row -> {\n HashMap hash = (HashMap) row;\n AssetLandCount_txt.setText((String.valueOf(hash.get(\"AssetLand\"))));\n });\n }", "@Override\r\n\tpublic int id() {\n\t\treturn 4;\r\n\t}", "private String makeStateName(int id, boolean guided) {\n\n\t\tif (guided) {\n\t\t\treturn \"guided\" + id;\n\t\t}\n\n\t\treturn \"state\" + id;\n\t}", "public void setStage(){\n if(id < 3)\n stage = 1;\n if(id >= 3 && id < 6)\n stage = 2;\n if(id >= 6 && id < 9)\n stage = 3;\n if(id >= 9)\n stage = 4;\n }", "private void displayBedrijf(){\n if (this.geselecteerdeStageplaats.getBedrijfID() != null){\n this.jTextFieldBedrijfsnaam.setText(this.geselecteerdeStageplaats.getBedrijfID().getNaam());\n this.jTextFieldContactpersoon.setText(this.geselecteerdeStageplaats.getBedrijfID().getContactNaam());\n this.jTextFieldEmail.setText(this.geselecteerdeStageplaats.getBedrijfID().getContactEmail());\n this.jTextAreaActiviteiten.setText(this.geselecteerdeStageplaats.getBedrijfID().getActiviteiten());\n this.jTextAreaAanwervend.setText(this.geselecteerdeStageplaats.getBedrijfID().getAanwervend());\n \n this.jTextFieldStraat.setText(this.geselecteerdeStageplaats.getBedrijfID().getStraat());\n this.jTextFieldNummer.setText(this.geselecteerdeStageplaats.getBedrijfID().getNummer());\n this.jTextFieldPostcode.setText(this.geselecteerdeStageplaats.getBedrijfID().getPostcode());\n this.jTextFieldStad.setText(this.geselecteerdeStageplaats.getBedrijfID().getStad());\n this.jTextFieldLand.setText(this.geselecteerdeStageplaats.getBedrijfID().getLand());\n }\n }", "public HotDogStand(int standId,int noHDS)//constructor that initializes both instance variables\n{\n\tsuper();//super constructor\n\tthis.standId = standId;//refers to this stand id\n\tthis.noHDS = noHDS;// refers to this stands number of hot dogs sold\n}", "protected GuiTestObject bed_3() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"bed_3\"));\n\t}", "@Override\n public int getID() {\n return 7;\n }", "@Override\n\tpublic String toString() {\treturn id + \" [\" + value + \"]\" ;}", "protected GuiTestObject bed_1() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"bed_1\"));\n\t}", "int getStateValue3();", "@Override\n public String getId() {\n return \"1\";\n }", "public nhanvien() {\n initComponents();\n laysodong();\n if(count % 5 ==0 )\n {\n sotrang = count/5;\n }\n else\n {\n sotrang=count/5 + 1;\n }\n DAO_NV.dolentable(tblnhanvien,1);\n lbltrang.setText(\"1\");\n lblsotrang.setText(\"1/\"+sotrang);\n jButton3.setEnabled(false);\n jButton1.setEnabled(false);\n \n \n \n \n\n }", "private void updateAgilisaurusState() {\n this.age++;\n\n if (this.age == 30 && this.hasCapability(LifeStage.BABY)) {\n // grow up\n this.removeCapability(LifeStage.BABY);\n this.addCapability(LifeStage.ADULT);\n this.displayChar = 'D';\n }\n\n if (this.foodLevel > 0) {\n this.foodLevel--;\n }\n\n if (this.waterLevel > 0) {\n this.waterLevel--;\n }\n\n if (this.foodLevel < 30) {\n this.behaviour = new HungryBehaviour();\n }\n\n if (this.foodLevel > 50) {\n this.behaviour = new BreedBehaviour();\n }\n\n if (this.foodLevel == 0) {\n this.Starving();\n } else {\n this.starvationLevel = 0;\n }\n\n if (this.waterLevel < 30) {\n this.behaviour = new ThirstBehaviour();\n }\n\n if (this.waterLevel == 0) {\n this.Thirsting();\n } else {\n this.thirstLevel = 0;\n }\n }", "public String getStateDescription() {\n return myID;\n }", "int getStateValue1();", "public void setBed(Integer bed) {\n this.bed = bed;\n }", "public Property(String name, int pos, int rent, int oneH, int twoH, int threeH, int fourH,\n\t int hotel, int value, int houses) {\n\t\tthis.rent = rent;\n\t\tthis.oneH = oneH;\n\t\tthis.twoH = twoH;\n\t\tthis.threeH = threeH;\n\t\tthis.fourH = fourH;\n\t\tthis.hotel = hotel;\n\t\tthis.value = value;\n\t\tthis.houses = houses;\n\t\tbuildings = 0;\n\t\tmonopoly = false;\n\t\towned = false;\n\n\t\tthis.pos = pos;\n\t\tthis.name = name;\n\t}", "int getStateValue2();", "@Override\n public String bite() {\n String bite = getName()+ \" bites \";\n return bite;\n }", "public ReservationUpdatePanel(int id) {\n initComponents();\n this.id = id;\n connectDB();\n String sql = \"SELECT * FROM CAR_Reserve WHERE ReserveID =\"+id;\n reserving_detail = db.queryRows(sql);\n int n = 0;\n for(HashMap i : reserving_detail){\n n++;\n }\n if(n>=1){\n setInitText();\n }\n }", "int getStateValue();", "int getStateValue();", "int getStateValue();", "@Override\n int getStateToVisible() {\n return 2;\n }", "public Nest() {\r\n\t\tnestNo++;\r\n\t\tthis.setName(\"nest #\" + nestNo);\r\n\t}", "public void setLabelEstados(int pokemon){\r\n if(pokemon ==0){\r\n if(pokemon_activo1.getConfuso() == true) vc.setjL_Estado1(\"Confuso\");\r\n else if(pokemon_activo1.getCongelado()== true) vc.setjL_Estado1(\"Congelado\");\r\n else if(pokemon_activo1.getDormido()== true) vc.setjL_Estado1(\"Dormido\");\r\n else if(pokemon_activo1.getEnvenenado()== true) vc.setjL_Estado1(\"Envenenado\");\r\n else if(pokemon_activo1.getParalizado()== true) vc.setjL_Estado1(\"Paralizado\");\r\n else if(pokemon_activo1.getQuemado()== true) vc.setjL_Estado1(\"Quemado\");\r\n else if(pokemon_activo1.getCongelado() == false && pokemon_activo1.getDormido() == false && pokemon_activo1.getEnvenenado() == false && \r\n pokemon_activo1.getParalizado() == false && pokemon_activo1.getQuemado() == false){\r\n vc.setjL_Estado1(\"Normal\");\r\n }\r\n }\r\n if(pokemon ==1){\r\n if(pokemon_activo2.getConfuso() == true) vc.setjL_Estado2(\"Confuso\");\r\n else if(pokemon_activo2.getCongelado()== true) vc.setjL_Estado2(\"Congelado\");\r\n else if(pokemon_activo2.getDormido()== true) vc.setjL_Estado2(\"Dormido\");\r\n else if(pokemon_activo2.getEnvenenado()== true) vc.setjL_Estado2(\"Envenenado\");\r\n else if(pokemon_activo2.getParalizado()== true) vc.setjL_Estado2(\"Paralizado\");\r\n else if(pokemon_activo2.getQuemado()== true) vc.setjL_Estado2(\"Quemado\");\r\n else if(pokemon_activo2.getCongelado() == false && pokemon_activo2.getDormido() == false && pokemon_activo2.getEnvenenado() == false && \r\n pokemon_activo2.getParalizado() == false && pokemon_activo2.getQuemado() == false){\r\n vc.setjL_Estado2(\"Normal\");\r\n }\r\n }\r\n }", "public Stabel(){\n elementer = 0;\n hode = new Node(null);\n hale = hode;\n hode.neste = hale;\n hale.forrige = hode;\n }", "public static int\ngetLightModel(SoState state) \n{ \n\t SoLazyElement elem = getInstance(state);\n\t return elem.coinstate.lightmodel;\n}", "@Override\n public void update() {\n if (oldFloorIndex != root.floorsController.getCurrentFloor()) {\n view.floorTitle.setText(\"Floor: \" + root.floorsController.getCurrentFloor());\n oldFloorIndex = root.floorsController.getCurrentFloor();\n }\n }", "StatePac build();", "public void fillIdentity() {\n\t\tString shipName = ship.getShipName();\n\t\tString name = shipsNameLabel.getText();\n\t\tshipsNameLabel.setText( name + shipName);\n\t\t\n\t\tdouble shipStatus = ship.getShipsStatus();\n\t\tString status = shipsStatusLabel.getText();\n\t\tshipsStatusLabel.setText( status + shipStatus + \"HP\");\n\t\t\n\t\tdouble shipCap = ship.getCapacity();\n\t\tString capacity = shipsCurrentCapacityLabel.getText();\n\t\tshipsCurrentCapacityLabel.setText(capacity + String.format(\"%.2f\", shipCap) + \"m^3\");\n\t\t\n\t\tint shipSpeed = ship.getShipsSpeed();\n\t\tString speed = shipsSpeedLabel.getText();\n\t\tshipsSpeedLabel.setText( speed + shipSpeed + \" km/day\");\n\t\t\n\t\tint shipCrew = ship.getCrew();\n\t\tString crew = crewsInShipLabel.getText();\n\t\tcrewsInShipLabel.setText(crew + shipCrew + \" people\");\n\t\t\n\t\tArrayList<Equipment> shipsEquipment = ship.getEquipment();\n\t\tArrayList<String> shipsEquipmentName = new ArrayList<String>();\n\t\tfor (Equipment equipment: shipsEquipment) {\n\t\t\tshipsEquipmentName.add(equipment.getName());\n\t\t}\n\t\tString equipments = shipsEquipmentLabel.getText();\n\t\tshipsEquipmentLabel.setText(equipments + shipsEquipmentName);\n\t\t\n\t}", "public int getMyNumStates() { return myNumStates; }", "biker(int n,String ss)\r\n\t{\r\n\t\tbikeid=n;\r\n\t\tbikename=ss;\r\n\t\t\r\n\t}", "@Override\n\tpublic String Show()\n\t{\n\t\treturn id;\n\t\t\n\t}", "@Override\n public String toString(){\n return \"|Lege navn: \"+legeNavn+\" |Kon.ID: \"+konID+\"|\";\n }", "BedAssignment parse( String roomBedLabel );", "LabState state();", "public Integer getBed() {\n return bed;\n }", "public DanhSachHocPhanDaDangKi() {\n initComponents();\n updateTable();\n }", "public String idToState(int id);", "public int getBedrooms(){\r\n return bedrooms;\r\n }", "@Override\n public String toString(){\n switch(this){\n case GROUND : return \"0\";\n case SECOND_DAY_AIR: return \"1\";\n case INTERNATIONAL_STANDARD: return \"3\";\n case INTERNATIONAL_PREMIUM: return \"4\";\n default: return \"-1\";\n }\n }", "public interface StatePac {\n\n /**\n * Identify the leaf of StatePac.\n */\n public enum LeafIdentifier {\n /**\n * Represents operationalState.\n */\n OPERATIONALSTATE(1),\n /**\n * Represents administrativeControl.\n */\n ADMINISTRATIVECONTROL(2),\n /**\n * Represents adminsatratveState.\n */\n ADMINSATRATVESTATE(3),\n /**\n * Represents lifecycleState.\n */\n LIFECYCLESTATE(4);\n\n private int leafIndex;\n\n public int getLeafIndex() {\n return leafIndex;\n }\n\n LeafIdentifier(int value) {\n this.leafIndex = value;\n }\n }\n\n /**\n * Returns the attribute operationalState.\n *\n * @return operationalState value of operationalState\n */\n OperationalState operationalState();\n\n /**\n * Returns the attribute administrativeControl.\n *\n * @return administrativeControl value of administrativeControl\n */\n AdministrativeControl administrativeControl();\n\n /**\n * Returns the attribute adminsatratveState.\n *\n * @return adminsatratveState value of adminsatratveState\n */\n AdministrativeState adminsatratveState();\n\n /**\n * Returns the attribute lifecycleState.\n *\n * @return lifecycleState value of lifecycleState\n */\n LifecycleState lifecycleState();\n\n /**\n * Returns the attribute valueLeafFlags.\n *\n * @return valueLeafFlags value of valueLeafFlags\n */\n BitSet valueLeafFlags();\n\n /**\n * Returns the attribute yangStatePacOpType.\n *\n * @return yangStatePacOpType value of yangStatePacOpType\n */\n OnosYangOpType yangStatePacOpType();\n\n /**\n * Returns the attribute selectLeafFlags.\n *\n * @return selectLeafFlags value of selectLeafFlags\n */\n BitSet selectLeafFlags();\n\n /**\n * Returns the attribute yangAugmentedInfoMap.\n *\n * @return yangAugmentedInfoMap value of yangAugmentedInfoMap\n */\n Map<Class<?>, Object> yangAugmentedInfoMap();\n\n\n /**\n * Returns the attribute yangAugmentedInfo.\n *\n * @param classObject value of yangAugmentedInfo\n * @return yangAugmentedInfo\n */\n Object yangAugmentedInfo(Class classObject);\n\n /**\n * Checks if the leaf value is set.\n *\n * @param leaf leaf whose value status needs to checked\n * @return result of leaf value set in object\n */\n boolean isLeafValueSet(LeafIdentifier leaf);\n\n /**\n * Checks if the leaf is set to be a selected leaf.\n *\n * @param leaf if leaf needs to be selected\n * @return result of leaf value set in object\n */\n boolean isSelectLeaf(LeafIdentifier leaf);\n\n /**\n * Builder for statePac.\n */\n interface StatePacBuilder {\n /**\n * Returns the attribute operationalState.\n *\n * @return operationalState value of operationalState\n */\n OperationalState operationalState();\n\n /**\n * Returns the attribute administrativeControl.\n *\n * @return administrativeControl value of administrativeControl\n */\n AdministrativeControl administrativeControl();\n\n /**\n * Returns the attribute adminsatratveState.\n *\n * @return adminsatratveState value of adminsatratveState\n */\n AdministrativeState adminsatratveState();\n\n /**\n * Returns the attribute lifecycleState.\n *\n * @return lifecycleState value of lifecycleState\n */\n LifecycleState lifecycleState();\n\n /**\n * Returns the attribute valueLeafFlags.\n *\n * @return valueLeafFlags value of valueLeafFlags\n */\n BitSet valueLeafFlags();\n\n /**\n * Returns the attribute yangStatePacOpType.\n *\n * @return yangStatePacOpType value of yangStatePacOpType\n */\n OnosYangOpType yangStatePacOpType();\n\n /**\n * Returns the attribute selectLeafFlags.\n *\n * @return selectLeafFlags value of selectLeafFlags\n */\n BitSet selectLeafFlags();\n\n /**\n * Returns the attribute yangAugmentedInfoMap.\n *\n * @return yangAugmentedInfoMap value of yangAugmentedInfoMap\n */\n Map<Class<?>, Object> yangAugmentedInfoMap();\n\n /**\n * Returns the builder object of operationalState.\n *\n * @param operationalState value of operationalState\n * @return operationalState\n */\n StatePacBuilder operationalState(OperationalState operationalState);\n\n /**\n * Returns the builder object of administrativeControl.\n *\n * @param administrativeControl value of administrativeControl\n * @return administrativeControl\n */\n StatePacBuilder administrativeControl(AdministrativeControl administrativeControl);\n\n /**\n * Returns the builder object of adminsatratveState.\n *\n * @param adminsatratveState value of adminsatratveState\n * @return adminsatratveState\n */\n StatePacBuilder adminsatratveState(AdministrativeState adminsatratveState);\n\n /**\n * Returns the builder object of lifecycleState.\n *\n * @param lifecycleState value of lifecycleState\n * @return lifecycleState\n */\n StatePacBuilder lifecycleState(LifecycleState lifecycleState);\n\n /**\n * Returns the builder object of yangStatePacOpType.\n *\n * @param yangStatePacOpType value of yangStatePacOpType\n * @return yangStatePacOpType\n */\n StatePacBuilder yangStatePacOpType(OnosYangOpType yangStatePacOpType);\n\n /**\n * Sets the value of yangAugmentedInfo.\n *\n * @param value value of yangAugmentedInfo\n * @param classObject value of yangAugmentedInfo\n */\n StatePacBuilder addYangAugmentedInfo(Object value, Class classObject);\n\n /**\n * Returns the attribute yangAugmentedInfo.\n *\n * @param classObject value of yangAugmentedInfo\n * @return yangAugmentedInfo\n */\n Object yangAugmentedInfo(Class classObject);\n /**\n * Set a leaf to be selected.\n *\n * @param leaf leaf needs to be selected\n * @return builder object for select leaf\n */\n StatePacBuilder selectLeaf(LeafIdentifier leaf);\n\n /**\n * Builds object of statePac.\n *\n * @return statePac\n */\n StatePac build();\n }\n}", "@Override\n public int getId() {\n return 0;\n }", "public Title()\r\n {\r\n startTag=\"TITLE\";\r\n endTag=\"/TITLE\"; \r\n }", "void setId(int val);", "void display()\r\n\t{\r\n\t\tSystem.out.println(\"bikeid=\"+bikeid+\" bike name==\"+bikename);\r\n\t}", "@Override\r\npublic String getCelestialClassification() {\n\treturn \"DwarfPlanets\";\r\n}", "public CityscapeComponent(int x)\n {\n numOfBuildings = x;\n \n }", "public City(Integer aKey)\r\n {\r\n label = \" \";\r\n key = aKey;\r\n }", "private RepresentacionGrafica(int value, String name, String literal) {\n\t\tthis.value = value;\n\t\tthis.name = name;\n\t\tthis.literal = literal;\n\t}", "private void setComponents() {\n datumPanel.setLayout(new GridLayout(9,2));\n delete.setText(\"Löschen\");\n addAttr.setText(\"Attribut hinzufügen\");\n deleteAttr.setText(\"Attribut löschen\");\n nameText.setText(DefaultValues.PRODUKTDATUM_NAME);\n idText.setText(DefaultValues.ID);\n attributeText.setText(DefaultValues.PRODUKTDATUM_ATTRIBUTE);\n verweiseText.setText(DefaultValues.PRODUKTDATUM_VERWEISE);\n title.setForeground(Color.BLUE);\n attributList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n attributList.setSelectedIndex(0);\n }", "public BSState() {\n this.playerTurn=1;\n this.p1TotalHits=0;\n this.p2TotalHits=0;\n this.shipsAlive=10;\n this.shipsSunk=0;\n this.isHit=false;\n this.phaseOfGame=\"SetUp\";\n this.shotLocations=null;\n this.shipLocations=null;\n this.shipType=1;\n this.board=new String[10][20];\n //this.player1=new HumanPlayer;\n //this.player2=new ComputerPlayer;\n\n }", "String getLabel();", "String getLabel();", "private void TEMrunInfo(){\n\n int idummy;\n idummy=TEM.runcht.cht.getCd().getVegtype(); \t \n \tstateTB.setValueAt(Integer.toString(idummy), GUIconfigurer.I_VEGETATION, 1);\n idummy=TEM.runcht.cht.getCd().getDrgtype(); \t \n \tstateTB.setValueAt(Integer.toString(idummy), GUIconfigurer.I_DRAINAGE, 1);\n idummy=TEM.runcht.cht.getCd().getGrdid(); \t \n \tstateTB.setValueAt(Integer.toString(idummy), GUIconfigurer.I_GRD, 1);\n idummy=TEM.runcht.cht.getCd().getEqchtid(); \t \n \tstateTB.setValueAt(Integer.toString(idummy), GUIconfigurer.I_EQCHT, 1);\n idummy=TEM.runcht.cht.getCd().getSpchtid(); \t \n \tstateTB.setValueAt(Integer.toString(idummy), GUIconfigurer.I_SPCHT, 1);\n idummy=TEM.runcht.cht.getCd().getTrchtid(); \t \n \t stateTB.setValueAt(Integer.toString(idummy), GUIconfigurer.I_TRCHT, 1);\n \t \n float ddummy;\n ddummy=(float)TEM.runcht.initstate.getMossthick(); \t \n \tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_MOSSTHICK, 1);\n ddummy=(float)TEM.runcht.initstate.getFibthick(); \t \n \tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_FIBTHICK, 1);\n ddummy=(float)TEM.runcht.initstate.getHumthick(); \t \n \tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_HUMTHICK, 1);\n ddummy=(float)TEM.runcht.initstate.getVegc(); \t \n \tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_VEGC, 1);\n ddummy=(float)TEM.runcht.initstate.getVegn(); \t \n \tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_VEGN, 1);\t\t\n ddummy=(float)TEM.runcht.initstate.getSoilc(); \t \n \tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_SOILC, 1);\t \n ddummy=(float)TEM.runcht.initstate.getFibc(); \t \n \t\tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_FIBSOILC, 1);\n ddummy=(float)TEM.runcht.initstate.getHumc(); \t \n \t\tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_HUMSOILC, 1);\n ddummy=(float)TEM.runcht.initstate.getMinc(); \t \n \t\tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_MINESOILC, 1);\n ddummy=(float)TEM.runcht.initstate.getAvln(); \t \n \tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_AVAILN, 1);\n ddummy=(float)TEM.runcht.initstate.getOrgn(); \t \n \tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_SOILN, 1);\n\n //\n \tvegpar_bgc vbpar = new vegpar_bgc();\n \tsoipar_bgc sbpar = new soipar_bgc();\n \tTEM.runcht.cht.getBgcPar(vbpar, sbpar);\n\n ddummy=vbpar.getM1(); \t \n \tfixparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_m1, 1);\n ddummy=vbpar.getM2(); \t \n \tfixparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_m2, 1);\n ddummy=vbpar.getM3(); \t \n \tfixparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_m3, 1);\n ddummy=vbpar.getM4(); \t \n \tfixparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_m4, 1);\n ddummy=sbpar.getFsoma(); \t \n \tfixparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_fsoma, 1);\n ddummy=sbpar.getFsompr(); \t \n \tfixparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_fsompr, 1);\n ddummy=sbpar.getFsomcr(); \t \n \tfixparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_fsomcr, 1); \t\t\n ddummy=sbpar.getSom2co2(); \t \n \tfixparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_som2co2, 1);\n \t\n //\n vegpar_cal vcpar = new vegpar_cal();\n soipar_cal scpar = new soipar_cal();\n TEM.runcht.cht.getCalPar(vcpar, scpar);\n\n ddummy=vcpar.getCmax(); \t \n \tcalparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_CMAX, 1);\n ddummy=vcpar.getNmax(); \t \n \tcalparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_NMAX, 1);\n ddummy=vcpar.getKrb(); \t \n \tcalparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_KRB, 1);\n ddummy=vcpar.getCfall(); \t \n \tcalparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_CFALL, 1);\n ddummy=vcpar.getNfall(); \t \n \tcalparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_NFALL, 1);\n \t\n ddummy=scpar.getNup(); \t \n \tcalparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_NUP, 1);\n ddummy=scpar.getKdcfib(); \t \n \tcalparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_KDCFIB, 1);\n ddummy=scpar.getKdchum(); \t \n \tcalparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_KDCHUM, 1);\n ddummy=scpar.getKdcmin(); \t \n \tcalparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_KDCMIN, 1);\n ddummy=scpar.getKdcslow(); \t \n \tcalparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_KDCSLOW, 1);\n\t \t\t\n }", "String getSelectedStateName();", "public void setId_joueur(int id_joueur)\r\n/* */ {\r\n/* 50 */ this.id_joueur = id_joueur;\r\n/* */ }", "public int getState() {return state;}", "public int getState() {return state;}", "public static void generateDefaults() {\n Building temp = BuildingList.getBuilding(0);\n SubAreas temp2 = temp.getSubArea(1);\n temp2.createFireSensor();\n temp2.createMotionSensor();\n temp2 = temp.getSubArea(2);\n temp2.createMotionSensor();\n temp2 = temp.getSubArea(3);\n temp2.createMotionSensor();\n temp2.createFireSensor();\n temp2 = temp.getSubArea(5);\n temp2.createFireSensor();\n temp2 = temp.getSubArea(6);\n temp2.createFireSensor();\n temp2.createMotionSensor();\n }", "public AutomatZustand()\r\n\t{\r\n\t\tthis.ew_lokal = Automat.eingabewort;\r\n\t}", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public int valeurPiece() {\n return 3;\n }", "protected GuiTestObject bed_2() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"bed_2\"));\n\t}", "public SceneLabelObjectState(SceneDivObjectState state){\t\t\n\t\tsuper(state); //will create a SceneDivObjectState from the supplied state\n\t\tsuper.setObjectsPrimaryType(SceneObjectType.Label); //subtypes should also run this statement straight after the super command in order to override their parents type and set their own as the primary/\n\n\t\t//Clear css parameters from general settings passed to this\n\t\t//This is because Dialogue objects treats these differently.\n\t\t//We fill them up correctly when the dialogue specific stuff is processed\n\t\tCurrentBoxCSS=\"\";\n\n\t}", "protected TextGuiTestObject house_Number() \n\t{\n\t\treturn new TextGuiTestObject(\n getMappedTestObject(\"house_Number\"));\n\t}", "public Husdjurshotell(){}", "public Harimau(String namaHarimau)\n\t{\n\t//mengisi pengubah yang diwarisi oleh kelas abstract\n\tHarimau.nama = namaHarimau;\n\t}", "public void skystonePos6() {\n }", "@Override\n\n // <editor-fold defaultstate=\"collapsed\" desc=\" UML Marker \"> \n // #[regen=yes,id=DCE.E1700BD9-298C-DA86-4BFF-194B41A6CF5E]\n // </editor-fold> \n protected String getProperties() {\n\n return \"Size = \" + size + \", Index = \" + value;\n\n }", "public Text createTitle() {\n\t\tText title = new Text(\"Selecteer Gasten\");\n\t\ttitle.getStyleClass().add(\"h1\");\n\t\ttitle.setFont(Font.font(22));\n\t\treturn title;\t\t\n\t}", "@Override\n\t\t\t\t\tpublic String getValue(Bewerbung object) {\n\t\t\t\t\t\treturn \"Bewerbung bewerten\";\n\t\t\t\t}", "public Jugador(int dorsal)\n {\n Random rmd = new Random();\n edad = rmd.nextInt(23)+18 ;\n estadoForma = rmd.nextInt(11);\n int nom = rmd.nextInt(33);\n Nombres nomb = new Nombres();\n nombre = nomb.getNombre(nom);\n this.dorsal = dorsal;\n this.nombre = nombre;\n }", "public String levelName() {\r\n return new String(\"Final Four\");\r\n }", "@Override\n protected void incrementStates() {\n\n }", "protected GuiTestObject title() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"title\"));\n\t}", "public Zadatak1() {\r\n\t\tSystem.out.println(ucitajBroj(\"1. broj\") + ucitajBroj(\"2. broj\"));\r\n\t}", "@Override\n public String getState() {\n StringBuilder builder = new StringBuilder();\n StringBuilder listPitches = listAllPitches(this.getFinalBeat());\n int length = this.getFinalBeat();\n\n builder.append(listPitches);\n\n for (int i = 0; i < length; i++) {\n builder.append(\"\\n\" + padded(i, length) + notesToString(getNotesPlayingAtBeat(i), i));\n }\n return builder.toString();\n }", "Label getLabelRootRecherche();", "private void setStaticData() {\n\t\t// TODO Auto-generated method stub\n\t\tlblGradesSubj.setText(i18n.GL3045());\n\t\tlblStandards.setText(i18n.GL0575());\n\t}", "public void setLand(int value);", "@Override\r\n public int identifier() {\r\n return 100;\r\n }", "@Override\n protected int getCodigoJuego() {\n return 5;\n }", "@Override\n\tpublic String toString() {\n\t\treturn namaBulan;\n\t}", "@Override\r\n\tpublic String showKode() {\n\t\treturn getPenerbit() + \" \" + firsText(getJudul()) + \" \" + lastText(getPengarang());\r\n\t}", "@Override\n public void selectGolem(int id) {\n }", "private DistributionState(int value, String name, String literal) {\r\n this.value = value;\r\n this.name = name;\r\n this.literal = literal;\r\n }", "public abstract String getLabel();", "public int getDefilade();", "private ModalityState(int value) { this.value = value; }", "public void setIdBoleta(int value) {\n this.idBoleta = value;\n }", "public MakhlukHidup get_daftar(int i);", "Board() {\n this.ones = -1; // 1\n this.twos = -1; // 2\n this.threes = -1; // 3\n this.fours = -1; // 4\n this.fives = -1; // 5\n this.sixes = -1; // 6\n this.threeOfAKind = -1; // 7\n this.fourOfAKind = -1; // 8\n this.smallStraight = -1;// 9\n this.longStraight = -1; // 10\n this.fullHouse = -1; // 11\n this.yahtzee = -1; // 12\n }", "@Override\n\t/**\n\t * Method that returns the mule mount state of the game\n\t * @return The ID of the mule mount state\n\t */\n\tpublic int getID() {\n\t\treturn 4;\n\t}" ]
[ "0.509975", "0.50726736", "0.49407095", "0.49214217", "0.48992375", "0.489109", "0.48884577", "0.4884318", "0.48499623", "0.48387322", "0.4834793", "0.48300377", "0.48266965", "0.482449", "0.48170546", "0.47935182", "0.47708213", "0.47703442", "0.4767269", "0.47601137", "0.47550786", "0.47438806", "0.47096205", "0.46985176", "0.46974188", "0.46890366", "0.46890366", "0.46890366", "0.46832794", "0.46739194", "0.46682602", "0.46622705", "0.46563601", "0.4653337", "0.4650611", "0.46414202", "0.46291208", "0.46265545", "0.46156132", "0.46075568", "0.46059203", "0.45995414", "0.45925248", "0.4591048", "0.45876494", "0.45757616", "0.45754328", "0.45749053", "0.45704427", "0.45695806", "0.4569328", "0.45674238", "0.45620334", "0.45613223", "0.45595467", "0.4557929", "0.45576206", "0.45460126", "0.45456266", "0.45456266", "0.45442253", "0.45412028", "0.45400363", "0.45378676", "0.45378676", "0.4535344", "0.45283142", "0.45271632", "0.45261794", "0.45254278", "0.45214832", "0.45179665", "0.45176196", "0.45148882", "0.4514003", "0.451027", "0.45088628", "0.4507825", "0.4504796", "0.45037466", "0.45037264", "0.45032445", "0.4502058", "0.45006207", "0.4500564", "0.44978788", "0.44978407", "0.4496657", "0.4493541", "0.44912204", "0.4490176", "0.44898972", "0.44865134", "0.44847456", "0.44832262", "0.4480359", "0.44799945", "0.44796476", "0.44756866", "0.44742036" ]
0.5107308
0
_4: with specific test context and state. .id : bedroomsfour .value : 4 .title : .class : Html.LABEL .classIndex : 3
protected GuiTestObject bed_4(TestObject anchor, long flags) { return new GuiTestObject( getMappedTestObject("bed_4"), anchor, flags); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n public void ActionableTrainingTest() {\n WebElement title1 = driver.findElement(By.cssSelector(\"h3.uagb-ifb-title\"));\r\n \r\n //Assertion for title of the first info box\r\n Assert.assertEquals(title1.getText(), \"Actionable Training\");\r\n \r\n //Print heading of the first info box\r\n Reporter.log(\"Heading is: \" + title1.getText(), true);\r\n }", "protected GuiTestObject title() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"title\"));\n\t}", "public static void viewPage(WebDriver driver, String sTestCaseName) throws Exception{\r\n\t\r\n\t\t//Check that all of the elements of that are expected are displayed\r\n\t\tObjects_Job_Completion_Summary_Page.lbl_Summary(driver).isDisplayed();{\r\n\t\tLog.info(sTestCaseName + \" | Summary label displayed as expected\");\r\n\t\t}\r\n\r\n\t\tif (\"Exchange_1_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t||\"INST_14_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t||\"Exchange_19_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t||\"Exchange_1_End_To_End_Spark_Chrome\".equals(sTestCaseName))\r\n\t\t{ \r\n\t\t\tObjects_Job_Completion_Summary_Page.lbl_Gas_Meter_Mprn(driver).isDisplayed();{\r\n\t\t\tLog.info(sTestCaseName + \" | Gas Meter MPRN label displayed as expected\");\r\n\t\t\t}\t\t\r\n\t\t}\r\n\t\telse if (\"Exchange_2_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"NMEX_5_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_15_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_20_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_11_End_To_End_Spark_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_2_End_To_End_Spark_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_5_End_To_End_Spark_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"FLTY_2_End_To_End_Spark_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_5_End_To_End_Spark_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_8_End_To_End_ECOT_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"NMEX_5_End_To_End_Spark_Chrome\".equals(sTestCaseName))\r\n\t\t{ \r\n\t\t\tObjects_Job_Completion_Summary_Page.lbl_Electricity_Meter_Mpan(driver).isDisplayed();{\r\n\t\t\tLog.info(sTestCaseName + \" | Electricity Meter MPAN label displayed as expected\");\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"Doing the elseif\"); \r\n\t\t}\r\n\t\telse if (\"Exchange_3_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_9_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_3_Elec_HAN_WAN_Checks_Page_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_3_Gas_Meter_Post_Installation_Gas_Tightness_Test_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_3_Gas_Meter_Pre_Installation_Gas_Tightness_Test_Failed_Test_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_3_Gas_Meter_Pre_Installation_Gas_Tightness_Test_Low_Pressure_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_3_Gas_Risk_Assessment_Gas_Abort_Low_Pressure_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_3_Gas_Risk_Assessment_Gas_Abort_Med_Pressure_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_3_Gas_SMeter_Post_Installation_Pressure_Drop_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_9_Elec_HAN_WAN_Checks_Page_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_9_Gas_Meter_Initial_Risk_Assessment_Gas_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_9_Gas_Meter_Post_Installation_Gas_Tightness_Test_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_9_Gas_Meter_Pre_Installation_Gas_Tightness_Test_Failed_Test_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_9_Gas_Meter_Pre_Installation_Gas_Tightness_Test_Low_Pressure_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_9_Gas_Risk_Assessment_Gas_Abort_Low_Pressure_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_9_Gas_Risk_Assessment_Gas_Abort_Med_Pressure_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"FLTY_17_Gas_Meter_Post_Installation_Gas_Tightness_Test_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"FLTY_17_Gas_Meter_Pre_Installation_Gas_Tightness_Test_Failed_Test_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"FLTY_17_Gas_Meter_Pre_Installation_Gas_Tightness_Test_Low_Pressure_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"FLTY_17_Gas_Risk_Assessment_Gas_Abort_Low_Pressure_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"FLTY_17_Gas_Risk_Assessment_Gas_Abort_Med_Pressure_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"FLTY_17_Gas_Suitable_For_Smart_Installation_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_21_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_16_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_9_End_To_End_Spark_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"FLTY_17_End_To_End_Spark_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_3_End_To_End_ECOT_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_12_End_To_End_ECOT_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_12_Elec_HAN_WAN_Checks_Page_Abort_ECOT_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_12_Elec_Initial_Polarity_Check_At_Meter_Page_Abort_ECOT_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_12_Elec_Initial_Risk_Assessment_Page_Abort_ECOT_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_12_Elec_Risk_Assessment_Page_Abort_ECOT_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_12_Elec_Suitable_For_Smart_Installation_Page_Abort_ECOT_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_12_End_To_End_Found_Meter_ECOT_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_3_Elec_HAN_WAN_Checks_Page_Abort_ECOT_Chrome\".equals(sTestCaseName))\r\n\t\t{ \r\n\t\t\tObjects_Job_Completion_Summary_Page.lbl_Electricity_Meter_Mpan(driver).isDisplayed();{\r\n\t\t\tLog.info(sTestCaseName + \" | Electricity Meter MPAN label displayed as expected\");\r\n\t\t\t}\r\n\t\t \r\n\t\t\tObjects_Job_Completion_Summary_Page.lbl_Gas_Meter_Mprn(driver).isDisplayed();{\r\n\t\t\tLog.info(sTestCaseName + \" | Gas Meter MPRN label displayed as expected\");\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"Doing the elseif\"); \r\n\t\t} \r\n\t\telse \t\t\r\n\t\t{ \r\n\t\t\tSystem.out.println(\"Doing the else \"); \r\n\t\t}\t\t\t\t\t\t\r\n\t\tObjects_Job_Completion_Summary_Page.btn_Potential_Customer_Vulnerability_Identified_Yes(driver).isDisplayed();{\r\n\t\tLog.info(sTestCaseName + \" | Potential Customer Vulnerability Identified - Yes radio button displayed as expected\");\r\n\t\t}\r\n\t\t\r\n\t\tObjects_Job_Completion_Summary_Page.txt_Additional_Notes(driver).isDisplayed();{\r\n\t\tLog.info(sTestCaseName + \" | Additional notes textbox displayed as expected\");\r\n\t\t}\r\n\t\t\r\n\t\tObjects_Job_Completion_Summary_Page.btn_Customer_Agreement_Yes(driver).isDisplayed();{\r\n\t\tLog.info(sTestCaseName + \" | Customer Agreement - Yes radio button displayed as expected\");\r\n\t\t}\r\n\t\t\r\n\t\tObjects_Job_Completion_Summary_Page.btn_Customer_Agreement_No(driver).isDisplayed();{\r\n\t\tLog.info(sTestCaseName + \" | Customer Agreement - No radio button displayed as expected\");\r\n\t\t}\r\n\t\t\r\n\t\t\t\r\n\t\t//Take a screenshot to show what we've done\r\n\t\tUtils.takeScreenshot(driver, sTestCaseName + \"-viewPage\");\r\n\t\t\r\n\t//END OF VIEW PAGE METHOD\r\n\t}", "@Test\n public void test13() {\n List<String> name = response.extract().path(\"data.findAll{it.state=='MN'}.name\");\n System.out.println(\"------------------StartingTest---------------------------\");\n System.out.println(\"The store names where state is MN are :: \" + name);\n System.out.println(\"------------------End of Test---------------------------\");\n }", "@Test\n public void test094() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Hidden hidden0 = new Hidden(errorPage0, \"\", \"\");\n Image image0 = new Image(hidden0, \"\", \"\");\n Label label0 = (Label)errorPage0.ins((Object) image0);\n Block block0 = (Block)errorPage0.h3();\n Label label1 = (Label)errorPage0.u((Object) errorPage0);\n assertTrue(label1._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "private void commonLoadTestForHtml(){\n\t\tWebElement tree = getElement(\"id=tree\");\n\t\tlog(\"Found Element for id=tree \" + tree.toString());\n\n\t\t//Make sure News attributes are correct\n\t\tWebElement news = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#news']['title']\\\"}\");\n\t\tAssert.assertNotNull(news);\n\t\tnews.click();\n\n\t\tString content = getText(RESULTS_CONTAINER);\n\t\tlog(\"content\"+content);\n waitForText(RESULTS_CONTAINER, \"id=news\");\n\n\n\t\t// Finds the blogs node and make sure its not null\n\t\twaitForElementVisible(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#blogs']['disclosure']\\\"}\");\n\t\tWebElement blogs = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#blogs']['disclosure']\\\"}\");\n\n\t\tlog(\"Node: \" + blogs);\n\n\t\tAssert.assertNotNull(blogs);\n\n\t\tblogs.click(); // This should expand the node blogs\n\n\t\t//Find the children of blogs node: Today\n\t\tWebElement today = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#today']['title']\\\"}\");\n\n\t\t//Find the children of blogs node: Previous\n\t\tWebElement previous = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#prev']['title']\\\"}\");\n\n\t\tWebElement previousDiscIcon = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#prev']['disclosure']\\\"}\");\n\n\t\tAssert.assertNotNull(previousDiscIcon);\n\n\t\t//Click on Previous Node\n\t\twaitForElementVisible(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#prev']['disclosure']\\\"}\");\n\t\tpreviousDiscIcon.click();\n\n\t\t//Find the children of previous node: Yesterday\n\t\tWebElement yesterday = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#yesterday']['title']\\\"}\");\n\n\t\t//Find the children of previous node: 2DaysBack\n\t\tWebElement twodaysback = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#daysback2']['title']\\\"}\");\n\n\n\n\n\t}", "protected GuiTestObject bed_5() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"bed_5\"));\n\t}", "@Test\n public void test085() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Checkbox checkbox0 = new Checkbox(errorPage0, \">}\\\"_\", \">}\\\"_\");\n String[] stringArray0 = new String[6];\n Checkbox checkbox1 = (Checkbox)checkbox0.attributes(stringArray0);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertFalse(checkbox1._isGeneratedId());\n }", "protected GuiTestObject bed_4() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"bed_4\"));\n\t}", "@org.testng.annotations.Test\n public void test17_3(){\n testInfo.id(\"test17_3\").suite(\"test_Inspiration\").name(\"Inspiration page from start + check blocks.\");\n photolab.forceStop();\n photolab.open();\n photolab.main.waitToLoad();\n photolab.main.selectCategoryBar(\"Inspiration\");\n photolab.main.selectBlock(\"Top\");\n photolab.main.selectBlock(\"Trending\");\n photolab.main.selectBlock(\"Recent\");\n photolab.main.tapMenu();\n photolab.menu.tapHome();\n }", "public SNGTestCases Options_TC1017() throws InterruptedException{\n \tString flavour = \"Electrical\";\n \t\n \tforDebugger();\n \twaitForElement(By.id(\"com.pointedsquares.gamy5.android:id/header_name\"),120);\n \ttry{\n \t\twaitForElement(By.xpath(\"//android.widget.TextView[contains(@text , 'Academics') and contains(@resource-id , 'itemTitle')]\") , 5);\n \t}catch(Exception ex){\n \t\tdriver.scrollTo(\"Academics\");\n \t}\n \tdriver.findElement(By.xpath(\"//android.widget.TextView[contains(@text , 'Academics') and contains(@resource-id , 'itemTitle')]/following-sibling::android.widget.TextView[contains(@text , 'More')]\")).click();\n \twaitForElement(By.id(\"com.pointedsquares.gamy5.android:id/search_all\"), 10);\n \tdriver.findElement(By.id(\"com.pointedsquares.gamy5.android:id/search_all\")).click();\n \tdriver.findElement(By.id(\"com.pointedsquares.gamy5.android:id/search_all\")).sendKeys(flavour);\n \tdriver.findElement(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'flavour_name_list') and contains(@text , 'Electrical Engineering')]\")).click();\n \twaitForElement(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'stake_amount') and contains(@text , '500')]\"),5);\n \tdriver.findElement(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'stake_amount') and contains(@text , '500')]\")).click();\n \twaitForElement(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'message_text') and contains(@text , 'You are about to play Electrical Engineering game with 500 coins stake.')]\"), 5);\n \tdriver.findElement(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'message_text') and contains(@text , 'You are about to play Electrical Engineering game with 500 coins stake.')]\")).click();\n \tdriver.findElement(By.id(\"com.pointedsquares.gamy5.android:id/positive_button\")).click();\n \twaitForVisibilityOf(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'response') and contains(@text , 'Finding room for you...')]\"));\n \tThread.sleep(5000);\n \ttry{\n \t\twaitForElement(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'response') and contains(@text , 'Still Waiting.....')]\") , 2);\n \t}catch(Exception ex){\n \t\t\n \t}\n \twaitForVisibilityOf(By.id(\"com.pointedsquares.gamy5.android:id/choice_linear\"));\n \tList<WebElement> choices = driver.findElements(By.xpath(\"//android.widget.LinearLayout[contains(@resource-id , 'choice_linear')]/*\"));\n \t\n \tboolean noOfChoice = true;\n \tif(choices.size()!=4){\n \t\t\n \t\tnoOfChoice = false;\n \t}\n \tassertTrue(noOfChoice , \"Choice not equal to 4\");\n \t\n \tThread.sleep(7000);\n \treturn new SNGTestCases(driver);\n }", "protected GuiTestObject bed_3() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"bed_3\"));\n\t}", "@Test(timeout = 4000)\n public void test277() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n errorPage0.strike();\n Component component0 = errorPage0.legend();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component0._isGeneratedId());\n }", "protected GuiTestObject bed_1() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"bed_1\"));\n\t}", "@Test(timeout = 4000)\n public void test334() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = new Label(errorPage0, errorPage0);\n Component component0 = errorPage0.legend((Object) label0);\n assertTrue(component0._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "@Test(priority=1)\r\n\tpublic void getTitle() {\r\n\t\tString title=driver.getTitle();\r\n\t\tSystem.out.println(( title).toUpperCase());\r\n\t}", "@Test\n\t\t public void testLocationFive() {\n\t\t \tdriver.get(\"http://mq-devhost-lm52.ihost.aol.com:9002/us/nj/upper-montclair/preston-pl-valley-rd/\");\n\t\t \tAssertJUnit.assertEquals(Utils.getElementText(driver,PageLayoutSelectors.TOP_NAME),\"Preston Pl & Valley Rd\");\n\t\t }", "@Test\n public void test120() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n ErrorPage errorPage1 = (ErrorPage)errorPage0.clasS((CharSequence) \"\");\n assertEquals(\"wheel_ErrorPage\", errorPage1.getComponentId());\n }", "private void generateTestExecution(ITestResult result) throws IOException{\r\n\t\t//create the html file with current running class and test name\r\n\t\tfout = createRequiredFile(result.getName());\r\n\t\t\r\n\t\t//Write initial html codes neccessary for report\r\n\t\tstartHtmlPage(fout,result);\r\n\t\t\r\n\t\t//get all the attributes set during the test execution\r\n\t\tObject[] array = result.getAttributeNames().toArray();\r\n\t\t\r\n\t\t//Above got values are not in sort. So, Sorting that based on time\r\n\t\tArrays.sort(array);\r\n\t\t\r\n\t\t//Iterating the array value to generate report\r\n \tfor(Object name : array){\r\n \t\t\t\r\n \t\t\t//Each and every array value contains, All the info about the particular action\r\n \t\t\t//And Values combined using deliminator. So, split using deliminator\r\n\t \t\tString temp[] = result.getAttribute((String) name).toString().split(\"####\");\r\n\t \t\t\r\n\t \t\t//After split up, If the third array value contains 'Fail' means that step failed \r\n\t \t\tif(temp[3].toLowerCase().contains(\"fail\")){\r\n\t \t\t\t//If Fail create '<tr>' tag with 'status_failed' class(Which is used for create 'red' background color for failed cases)\r\n\t \t\t\tfout.println(\"<tr class=\\\"status_failed\\\" title=\\\"\\\" alt=\\\"\\\">\");\r\n\t \t\t\t\r\n\t \t\t\t//create the screenshot path\r\n\t \t\t\tString pathToScreenshot = \"../Failure_Screenshot/\"+temp[5]+\".jpg\";\r\n\t \t\t\t\r\n\t \t\t\t//creating mapping for failed step(Link to screen shot and embed the screenshot in that step)\r\n\t \t\t\ttemp[4] = \"<a href=\\'\" + pathToScreenshot + \"\\'> <img src=\\'\" + pathToScreenshot + \"\\' height=\\\"100\\\" width=\\\"100\\\"> </a>\";\r\n\r\n\t \t\t}\r\n\t \t\t\r\n\t \t\t//After split up, If the third array value contains 'title' means that is title\r\n\t \t\telse if(temp[3].toLowerCase().contains(\"title\")){\r\n\t \t\t\t//So, If it is a title then create '<tr>' tag with class name 'title'\r\n\t \t\t\tfout.println(\"<tr class=\\\"title\\\" title=\\\"\\\" alt=\\\"\\\">\");\r\n\t \t\t\tfout.println(\"<td colspan=\\\"6\\\">\"+ temp[0] + \"</td>\");\r\n\t \t\t\tfout.println(\"</tr>\");\r\n\t \t\t\tcontinue;\r\n\t \t\t}\r\n\t \t\t\r\n\t \t\t//Else status is passed\r\n\t \t\telse{\r\n\t \t\t\tfout.println(\"<tr class=\\\"status_passed\\\" title=\\\"\\\" alt=\\\"\\\">\");\r\n\t \t\t}\r\n\t \t\t\r\n\t \t\t//this will create separate '<td>' for messages inside the action\r\n\t \t\tfor(String temp1 : temp){\r\n\t \t\t\t\tfout.println(\"<td>\"+ temp1 + \"</td>\");\r\n\r\n\t \t\t}\r\n\t \t//end up '<tr>' tag\t\r\n\t \tfout.println(\"</tr>\");\r\n \t}\r\n \t\r\n \t//this used for write some end up html tags\r\n \tonFinish();\r\n \t\r\n\t}", "@Test\n\t\t public void testLocationSix() {\n\t\t \tdriver.get(\"http://mq-devhost-lm52.ihost.aol.com:9002/us/nj/upper-montclair/\");\n\t\t \tAssertJUnit.assertEquals(Utils.getElementText(driver,PageLayoutSelectors.TOP_NAME),\"Upper Montclair\");\n\t\t }", "@Test(priority = 99)\r\n@Epic(\"BILLS PAYMENT\")\r\n@Features(value = { @Feature(value = \"SCHOOL FEES PAYMENTS\") })\r\n@Step (\"Verify that system is able to search and display correct school Name school code and Bank branch when user click on search for school functionality\")\r\npublic void Verify_that_system_is_able_to_search_and_display_correct_school_name_school_code_and_Bank_branch_when_user_click_on_search_for_school_functionality() {\n\tdriver.findElement(By.xpath(\"//a[contains(.,'Home')]\")).click();\r\n\tWebDriverWait wait = new WebDriverWait(driver, 15);\r\n\twait.until(ExpectedConditions.visibilityOfElementLocated(By.linkText(\"Bill Payment\")));\r\n\tdriver.findElement(By.linkText(\"Bill Payment\")).click();\r\n\tWebDriverWait wait1 = new WebDriverWait(driver, 15);\r\n\twait1.until(\r\n\t\tExpectedConditions.visibilityOfElementLocated(By.xpath(\"//div[text()=' Institutional Payments ']\")));\r\n\tdriver.findElement(By.xpath(\"//div[text()=' Institutional Payments ']\")).click();\r\n\tdriver.findElement(By.xpath(\"//div[@class='col-in schoolFee']\")).click();\r\n\tdriver.findElement(By.id(\"FORM_SF_SCHOOL_INFO-SEARCH_SCHOOL_BY\")).click();\r\n\t{\r\n\t WebElement dropdown = driver.findElement(By.id(\"FORM_SF_SCHOOL_INFO-SEARCH_SCHOOL_BY\"));\r\n\t dropdown.findElement(By.xpath(\"//option[. = 'Account Number']\")).click();\r\n\t}\r\n\tdriver.findElement(By.id(\"FORM_SF_SCHOOL_INFO-SEARCH_SCHOOL_BY\")).click();\r\n\tdriver.findElement(By.id(\"FORM_SF_SCHOOL_INFO-SF_ACCOUNT_NUMBER\")).click();\r\n\tdriver.findElement(By.id(\"FORM_SF_SCHOOL_INFO-SF_ACCOUNT_NUMBER\")).sendKeys(\"01129080146300\");\r\n\tdriver.findElement(By.id(\"FORM_SF_SCHOOL_INFO-SEARCH_SCHOOL\")).click();\r\n\tdriver.findElement(By.cssSelector(\".ct-formlayout-SCHOOL_NAME .ct-form__ip\")).click();\r\n\tdriver.findElement(By.cssSelector(\".ct-formlayout-SCHOOL_CODE .ct-form__ip\")).click();\r\n\tSystem.out.println(\"TC13 Verify_that_system_is_able_to_search_and_display_correct_school_name_school_code_and_Bank_branch_when_user_click_on_search_for_school_functionality |Success:\");\r\n\r\n\t}", "public SNGTestCases Questions_TC1016() throws InterruptedException{\n \tString flavour = \"Electrical\";\n \t\n \tforDebugger();\n \twaitForVisibilityOf(By.id(\"com.pointedsquares.gamy5.android:id/header_name\"));\n \ttry{\n \t\twaitForElement(By.xpath(\"//android.widget.TextView[contains(@text , 'Academics') and contains(@resource-id , 'itemTitle')]\") , 5);\n \t}catch(Exception ex){\n \t\tdriver.scrollTo(\"Academics\");\n \t}\n \tdriver.findElement(By.xpath(\"//android.widget.TextView[contains(@text , 'Academics') and contains(@resource-id , 'itemTitle')]/following-sibling::android.widget.TextView[contains(@text , 'More')]\")).click();\n \twaitForElement(By.id(\"com.pointedsquares.gamy5.android:id/search_all\"), 10);\n \tdriver.findElement(By.id(\"com.pointedsquares.gamy5.android:id/search_all\")).click();\n \tdriver.findElement(By.id(\"com.pointedsquares.gamy5.android:id/search_all\")).sendKeys(flavour);\n \tdriver.findElement(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'flavour_name_list') and contains(@text , 'Electrical Engineering')]\")).click();\n \tdriver.findElement(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'stake_amount') and contains(@text , '500')]\")).click();\n \twaitForElement(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'message_text') and contains(@text , 'You are about to play Electrical Engineering game with 500 coins stake.')]\"), 5);\n \tdriver.findElement(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'message_text') and contains(@text , 'You are about to play Electrical Engineering game with 500 coins stake.')]\")).click();\n \tdriver.findElement(By.id(\"com.pointedsquares.gamy5.android:id/positive_button\")).click();\n \twaitForVisibilityOf(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'response') and contains(@text , 'Finding room for you...')]\"));\n \tThread.sleep(5000);\n \ttry{\n \t\twaitForElement(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'response') and contains(@text , 'Still Waiting.....')]\") , 2);\n \t}catch(Exception ex){\n \t\t\n \t}\n \twaitForVisibilityOf(By.xpath(\"//android.widget.LinearLayout[contains(@resource-id , 'question_one_linear')]/android.webkit.WebView/android.webkit.WebView/android.view.View\"));\n \t\n \tString contDesc = driver.findElement(By.xpath(\"//android.widget.LinearLayout[contains(@resource-id , 'question_one_linear')]/android.webkit.WebView/android.webkit.WebView/*\")).getAttribute(\"name\");\n \tThread.sleep(7000);\n \treturn new SNGTestCases(driver);\n }", "@Override\r\n public String storyID() {\r\n return \"HD\";\r\n }", "@Test\n\t\t public void testLocationFour() {\n\t\t \tdriver.get(\"http://mq-devhost-lm52.ihost.aol.com:9002/us/nj/upper-montclair/bellevue-ave-valley-rd\");\n\t\t \tAssertJUnit.assertEquals(Utils.getElementText(driver,PageLayoutSelectors.TOP_NAME),\"Bellevue Ave & Valley Rd\");\n\t\t }", "@Test\n public void test091() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n LabeledWord labeledWord0 = new LabeledWord(\"\");\n Label label0 = (Label)errorPage0.s((Object) labeledWord0);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(label0._isGeneratedId());\n }", "@Test(timeout = 4000)\n public void test196() throws Throwable {\n Hidden hidden0 = new Hidden((Component) null, \"(vLoO6y2\\\"Vht&{{\", \"(vLoO6y2\\\"Vht&{{\");\n Hidden hidden1 = (Hidden)hidden0.attribute(\"(vLoO6y2\\\"Vht&{{\", \"(vLoO6y2\\\"Vht&{{\");\n assertTrue(hidden1.isValid());\n }", "@Test(timeout = 4000)\n public void test219() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = new Label(errorPage0, errorPage0);\n label0.map(\"org.mvel.conversion.LongCH$1\");\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(label0._isGeneratedId());\n }", "@Test\n public void selenium(){\n LandingPage landingPage = new LandingPage();\n landingPage.setDriver(driver);\n landingPage\n .assertTitle()\n .clickFindMeeting()\n .assertTitle()\n .search(\"10011\")\n .printFirstLocation()\n .printFirstDistance()\n .clickOnLocation()\n .assertLocationMatches()\n .printTodaysHours();\n }", "@Test(priority = 66)\r\n@Epic(\"BILLS PAYMENT\")\r\n@Features(value = { @Feature(value = \"BUY GOODS USING MPESA\") })\r\n@Step (\"BUY GOODS USING MPESA\")\r\n@Severity(SeverityLevel.TRIVIAL)\r\npublic void Buy_Goods_Using_MPESA_Test_cases() {\n\tSystem.out.println(\"BUY GOODS AND SERVICES\");\t\r\n\tSystem.out.println(\"*************************(1)Running Buy Goods Using MPESA Testcases***********************************\");\r\n\r\n}", "@Test\n public void test2(){\n\n List<FitActivity> upper = fitActivityRepository.findAllByBodyPart(\"Upper\");\n for (FitActivity fitActivity : upper) {\n System.out.println(fitActivity.getName());\n\n }\n\n }", "@Test\n public void resalePropertyMatch() throws UiObjectNotFoundException {\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"btn_create_post\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"lbl_resale_prop\")).click();\n device.findObject(By.text(\"Search building name\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"input_search\")).setText(\"Icon\");\n device.wait(Until.findObject(By.text(\"Icon Linera\")), 10000);\n device.findObject(By.text(\"Icon Linera\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"dd_configuration\")).click();\n device.findObject(By.text(\"3 BHK\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"txt_pricing\")).click();\n device.findObject(By.text(\"7\")).click();\n device.findObject(By.text(\"5\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"Done\")).click();\n device.wait(Until.findObject(By.text(\"sq ft\")), 2000);\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"txt_carpet_area\")\n .childSelector(new UiSelector().className(Utils.EDIT_TEXT_CLASS))).setText(\"1200\");\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"dd_floor\")).click();\n device.findObject(By.text(\"Higher\")).click();\n device.findObject(By.text(\"4\")).click();\n UiScrollable postView = new UiScrollable(new UiSelector().scrollable(true));\n UiSelector postSelector = new UiSelector().text(\"POST\");\n postView.scrollIntoView(postSelector);\n device.findObject(postSelector).click();\n device.wait(Until.findObject(By.text(\"POST\").enabled(true)), 10000);\n String matchNameString = device.findObject(By.textContains(\"matches\")).getText().split(\" \")[0];\n device.findObject(By.text(\"POST\")).click();\n device.wait(Until.findObject(By.text(\"RESALE PROPERTY\")), 9000);\n Assert.assertNotEquals(\"Test Case Failed...No Match found\", \"no\", matchNameString.toLowerCase());\n String postMatchName = device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"lbl_name\")).getText();\n Assert.assertEquals(\"Test Case Failed...Match should have had been found with\", \"dialectic test\", postMatchName.toLowerCase());\n\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"btn_close\")).click();\n Utils.markPostExpired(device);\n }", "@Test\n\tpublic void TC_01_Web_Element() {\n\t\tdriver.findElement(By.id(\"\")); //**\n\t\t\n\t\t//Tim nhieu element\n\t\tdriver.findElements(By.id(\"\"));//**\n\t\t\n\t\t//If chi thao tac vs element 1 lan thi ko can khai bao bien\n\t\tdriver.findElement(By.id(\"small-searchterms\")).sendKeys(\"Apple\");//**\n\t\t\n\t\t//If can thao tac element nhieu lan thi nen khai bao bien\n\t\tWebElement searchTextbox = driver.findElement(By.id(\"small-searchterms\"));\n\t\tsearchTextbox.clear();//**\n\t\tsearchTextbox.sendKeys(\"Apple\");\n\t\tsearchTextbox.getAttribute(\"value\");//**\n\t\t\n\t\t//driver.findElement(By.id(\"small-searchterms\")).clear();\n\t\t//driver.findElement(By.id(\"small-searchterms\")).sendKeys(\"Apple\");\n\t\t//driver.findElement(By.id(\"small-searchterms\")).getAttribute(\"value\");\n\t\t\n\t\t//Count co bao nhieu element thoa dieu kien\n\t\t//Verify so luong element tra ve nhu mong doi\n\t\t//Thao tac vs all cac loai element giong nhau trong 1 page (checkbox/textbox)\n\t\tList<WebElement> checkboxes = driver.findElements(By.xpath(\"//div[@class='inputs']/input[not(@type='checkbox')]\"));\n\t\t\n\t\t//Lay ra so luong\n\t\tAssert.assertEquals(checkboxes.size(), 6);\n\t\t\n\t\tWebElement singleElement = driver.findElement(By.className(\"\"));\n\t\t\n\t\t//Textbox TextArea/ Edittable dropdown\n\t\t//Du lieu duoc toan ven\n\t\tsearchTextbox.clear();\n\t\tsearchTextbox.sendKeys(\"\");\n\t\t\n\t\t//Button/Link/radio/checkbox/custom dropdown/..\n\t\tsingleElement.click();//**\n\t\t\n\t\t//Cac ham co tien to bat dau bang get lun lun tra ve du lieu \n\t\t//getTitle/ getCurrentUrl/ getPageSource/ getAttribute/ getCssValue/ getText/ get...\n\t\tsingleElement = driver.findElement(By.xpath(\"//input[@id='Firstname']\"));\n\t\tsingleElement.getAttribute(\"\");\n\t\t\n\t\t//Automation\n\t\tsingleElement = driver.findElement(By.xpath(\"//input[@id='small-searchterms']\"));\n\t\tsingleElement.getAttribute(\"placeholder\");\n\t\t//Search store\n\t\t\n\t\t//Lay ra gia tri cua cac thuoc tinh css thuong dung de test GUI\n\t\t//Font/Size/Color/Background/...\n\t\tsingleElement = driver.findElement(By.cssSelector(\"search-box-button\"));\n\t\tsingleElement.getCssValue(\"background-color\");//*\n\t\t//#4ab2f1\n\t\tsingleElement.getCssValue(\"text-transform\");\n\t\t//uppercase\n\t\t\n\t\t//Lay ra toa do element so voi page hien tai (get gox ben ngoai)\n\t\tsingleElement.getLocation();\n\t\t\n\t\t//lay ra kich thuoc cua element (rong x cao) -> get goc ben trong element\n\t\tsingleElement.getSize();\n\t\t\n\t\t//Location + size\n\t\tsingleElement.getRect();\n\t\t\n\t\t//Chup hinh loi => dua vao html export\n\t\tsingleElement.getScreenshotAs(OutputType.FILE);//*\n\t\t\n\t\t\n\t\t//id/class/css/name...//tu 1 element ko bik tagname -> lay ra duoc tagname truyen vao cho 1 locator khac\n\t\tsingleElement = driver.findElement(By.xpath(\"//div[@class='inputs']/input[not(@type='checkbox')]\"));\n\t\tString searchButtonTagname = singleElement.getTagName();//*\n\t\t\n\t\tsearchTextbox = driver.findElement(By.xpath(\"//\" + searchButtonTagname + \"[@class='inputs']/input[not(@type='checkbox')]\"));\n\t\t//input\n\t\t\n\t\t//xpath\n\t\t//tagname[@attribute='value']\n\t\t\n\t\t\n\t\t//lay ra text element (header/link/message/...)\n\t\tsingleElement.getText();//**\n\t\t\n\t\t//Cac ham co tien to la isXXX thi tra ve kieu Boolean (100%)\n\t\t//true/false\n\t\t\n\t\t//kiem tra xem 1 element la hien thi cho nguoi dung thao tac hay ko\n\t\t//true: dang hien thi\n\t\t//false: ko hien thi\n\t\tsingleElement.isDisplayed();//**\n\t\t\n\t\t//kiem tra xem 1 element la disable hay ko\n\t\t//disable: user ko thao tac duoc\n\t\t//true: ko thao tac duoc\n\t\t//false: co the thao tac\n\t\tsingleElement.isEnabled();//*\n\t\t\n\t\t//kiem tra xem 1 element da duoc chon roi hay chua\n\t\t//checkbox/ radio/ dropdown\n\t\t//true: da chon roi\n\t\t//false: chua duoc chon\n\t\tsingleElement.isSelected();//*\n\t\t\n\t\t//no thay cho hanh vi ENTER vao textbox/button\n\t\t//chi dung duoc trong form (Login/search/register/...)\n\t\tsingleElement.submit();\n\t\t\n\t\tsingleElement = driver.findElement(By.id(\"small-searchterms\"));\n\t\tsingleElement.sendKeys(\"Apple\");\n\t\tsingleElement.submit();\n\t\t\n\t\t\n\t\t\n\t}", "@Test\n public void test105() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = (Label)errorPage0.strong((Object) errorPage0);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(label0._isGeneratedId());\n }", "@Test\n public void withAttribute_Matching() {\n assertEquals(1, onPage.withAttribute(\"lang\", MatchType.EQUALS, \"en-US\").size());\n assertEquals(3, onPage.get(\"div.article div\").withAttribute(\"class\", MatchType.EQUALS, \"content\").size());\n assertEquals(0, onPage.get(\"div.article div\").withAttribute(\"class\", MatchType.EQUALS, \" content\").size());\n }", "@Test(timeout = 4000)\n public void test221() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n MockDate mockDate0 = new MockDate((-800), (-800), (-707), 75, 43);\n Label label0 = new Label(errorPage0, mockDate0);\n Component component0 = label0.b();\n component0._getVisibleForm(false);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component0._isGeneratedId());\n }", "public void testGetIdentifier() {\n\t\tassertEquals(item.getIdentifier(),\"cup8\");\r\n\t}", "@Test(priority = 75)\r\n@Epic(\"BILLS PAYMENT\")\r\n@Features(value = { @Feature(value = \"BUY GOODS USING MPESA\") })\r\n@Step (\"END OF BUY GOODS USING MPESA TILL TESTCASES\")\r\n@Severity(SeverityLevel.TRIVIAL)\r\npublic void End_Buy_Goods_Using_MPESA_Test_cases() {\n\tSystem.out.println(\"*************************End of buy Goods Using Mpesa Test cases***********************************\");\r\n\r\n}", "@Test\n public void test19(){\n // List<Integer> services = response.extract().path(\"data.findAll{it.services=='Samsung Experience'}.storeservices\");\n //List<HashMap<String, ?>> address = response.extract().path(\"data.findAll{it.service=='Samsung Experience'}.storeservices\");\n System.out.println(\"------------------StartingTest---------------------------\");\n System.out.println(\"The name of all services:\" );\n System.out.println(\"------------------End of Test---------------------------\");\n }", "@Test\n public void testDAM31801001() {\n // Data preparation\n {\n clearAndCreateTestDataForBook();\n }\n\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n TodoListPage todoListPage = dam3IndexPage.dam31801001Click();\n\n todoListPage.setTodoTitleContent(\"Todo 1\");\n\n todoListPage.setTodoCreationDate(\"2016/12/30\");\n\n todoListPage = todoListPage.searchUsingClassTypeAlias();\n\n // Assert the todo record count from DB table\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getIncompletTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getTotalTodoCount(), equalTo(\"2\"));\n\n boolean isTodoPresent = todoListPage.isTodoDisplayed(\"0000000001\");\n assertThat(isTodoPresent, is(true));\n\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000010\");\n assertThat(isTodoPresent, is(true));\n\n // this todo does not meets the criteria.Hence not displayed.\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000002\");\n assertThat(isTodoPresent, is(false));\n }", "@Test\n public void testDAM30902001() {\n // Data preparation\n {\n clearAndCreateTestDataForBook();\n }\n\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n TodoListPage todoListPage = dam3IndexPage.dam30902001Click();\n\n // Confirmation of database state before batch update\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"3\"));\n assertThat(todoListPage.getIncompletTodoCount(), equalTo(\"7\"));\n assertThat(todoListPage.getTotalTodoCount(), equalTo(\"10\"));\n\n // add one sample todo which has some unique title from those of the\n // above\n // this is used to have some unique combination satisfying the choose\n // element other branch\n // Open todo registration page\n TodoRegisterPage registerTodoPage = todoListPage.registerTodo();\n\n // input todo details\n registerTodoPage.setTodoId(\"0000000025\");\n registerTodoPage.setTodoCategory(\"CA2\");\n registerTodoPage.setTodoTitle(\"sample todo\");\n\n registerTodoPage.addTodo();\n\n webDriverOperations.displayPage(getPackageRootUrl());\n\n dam3IndexPage = new DAM3IndexPage(driver);\n\n todoListPage = dam3IndexPage.dam30102002Click();\n\n todoListPage.setTodoTitleContent(\"Todo 1\");\n\n todoListPage.setTodoCreationDate(\"2016-12-30\");\n\n todoListPage = todoListPage.chooseElementUsageSearch();\n\n // Confirm the todos when title is specified from the choose element\n\n // Confirmation of database state before batch update\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getIncompletTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getTotalTodoCount(), equalTo(\"2\"));\n\n webDriverOperations.displayPage(getPackageRootUrl());\n\n dam3IndexPage = new DAM3IndexPage(driver);\n\n todoListPage = dam3IndexPage.dam30102002Click();\n\n todoListPage.setTodoCreationDate(\"2016-12-30\");\n\n todoListPage = todoListPage.chooseElementUsageSearch();\n\n // Confirm the todos when title is not specified from the choose\n // element.\n // here it takes default value specified in otherwise tag of choose\n // (sample)\n\n // Confirmation of database state before batch update\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"0\"));\n assertThat(todoListPage.getIncompletTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getTotalTodoCount(), equalTo(\"1\"));\n }", "@Test\n public void testDAM31801002() {\n // Data preparation\n {\n clearAndCreateTestDataForBook();\n }\n\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n TodoListPage todoListPage = dam3IndexPage.dam31801002Click();\n\n todoListPage.setTodoTitleContent(\"Todo 1\");\n\n todoListPage.setTodoCreationDate(\"2016/12/30\");\n\n todoListPage = todoListPage.searchUsingOverwrittenTypeAliasName();\n\n // Assert the todo record count from DB table\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getIncompletTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getTotalTodoCount(), equalTo(\"2\"));\n\n boolean isTodoPresent = todoListPage.isTodoDisplayed(\"0000000001\");\n assertThat(isTodoPresent, is(true));\n\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000010\");\n assertThat(isTodoPresent, is(true));\n\n // this todo does not meets the criteria.Hence not displayed.\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000002\");\n assertThat(isTodoPresent, is(false));\n }", "@Test(enabled = false)\n public void testCase3() {\n String subHeading = driver.findElement(By.className(\"sub\")).getText();\n Assert.assertTrue(subHeading.contains(\"Practice\"));\n }", "@Test// Execute 5 \n\t public void googleTitleTest() {\n\t\t System.out.println(\"google Title test\");\n\t }", "@Test\n public void underweightCategoryFirstRangeInKgAndCm() {\n\n driver.findElement(By.xpath(\"//input[@name='wg']\")).sendKeys(\"47\");\n driver.findElement(By.xpath(\"//input[@name='ht']\")).sendKeys(\"177\");\n driver.findElement(By.xpath(\"//input[@name='cc']\")).click();\n Assert.assertEquals(driver.findElement(By.name(\"desc\")).getAttribute(\"value\"), \"Your category is Underweight\",\n \"actual text is not: Your category is Underweight\");\n }", "@Test(timeout = 4000)\n public void test217() throws Throwable {\n Hidden hidden0 = new Hidden((Component) null, \".*,r%\", \"Col component ca be added only to a TableBlock.\");\n Checkbox checkbox0 = new Checkbox(hidden0, \"Col component ca be added only to a TableBlock.\", \"Col component ca be added only to a TableBlock.\");\n Checkbox checkbox1 = (Checkbox)checkbox0.addInternalRenderHint(\"z%+/0u:g&ib%-bQ:\");\n assertEquals(\"Col component ca be added only to a TableBlock.\", checkbox1.getFormElementName());\n }", "@Test\n public void test1() {\n FirefoxBinary binary =\n new FirefoxBinary(new File(FIREFOX_PATH));\n driver = TestBench.createDriver(\n new FirefoxDriver(binary, new FirefoxProfile()));\n setDriver(driver);\n getDriver().get(URL);\n ButtonElement button = $(ButtonElement.class).first();\n button.click();\n LabelElement label = $(LabelElement.class).id(\"result\");\n\n Assert.assertEquals(\"Thanks , it works!\",label.getText());\n driver.quit();\n }", "private void commonLoadTestForJson(){\n\t\tWebElement tree = getElement(\"id=tree\");\n\t\tlog(\"Found Element for id=tree \" + tree.toString());\n\n\t\t//Make sure News attributes are correct\n\t\tWebElement news = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#news']['title']\\\"}\");\n\t\tAssert.assertNotNull(news);\n\t\tnews.click();\n\n\t\tString content = getText(RESULTS_CONTAINER);\n\t\tlog(\"content\"+content);\n content.contains(\"id=news\");\n\n\n\n\t\t// Finds the blogs node and make sure its not null\n\t\twaitForElementVisible(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#blogs']['disclosure']\\\"}\");\n\t\tWebElement blogs = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#blogs']['disclosure']\\\"}\");\n\n\t\tlog(\"Node: \" + blogs);\n\n\t\tAssert.assertNotNull(blogs);\n\n\t\tblogs.click(); // This should expand the node blogs\n\n\t\tlog(\"clicked\");\n\n\t\t//Find the children of blogs node: Today\n\t\tWebElement today = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#today']['title']\\\"}\");\n\n\t\t//Find the children of blogs node: Yesterday\n\t\tWebElement yesterday = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#yesterday']['title']\\\"}\");\n\n\t\t//Find the children of blogs node: 2DaysBack\n\t\tWebElement twodaysback = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#2daysback']['title']\\\"}\");\n\n\n\t\t//Find the children of blogs node: Archive\n\t\tWebElement archive = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#archive']['title']\\\"}\");\n\n\t}", "@Test\n public void exerciseTwoTest() {\n driver.get(properties.getProperty(\"URL\"));\n\n // 2. Assert Browser title\n homePageAsserts.shouldReturnPageTitle();\n\n // 3. Perform login\n homePageSteps.login(properties.getProperty(\"username\"), properties.getProperty(\"password\"));\n\n // 4. Assert User name in the left-top side of screen that user is loggined\n homePageAsserts.shouldReturnUsernameText();\n\n // 5. Open through the header menu Service -> Different Elements Page\n homePageSteps.clickServiceButton();\n homePageSteps.openDifferentElementsPage();\n\n // 6. Select checkboxes\n differentElementsPageSteps.selectCheckbox(WATER.getValue());\n differentElementsPageSteps.selectCheckbox(WIND.getValue());\n\n // 7. Select radio\n differentElementsPageSteps.selectRadioButton(SELEN.getValue());\n\n // 8. Select in dropdown\n differentElementsPageSteps.selectDropdown(YELLOW.getValue());\n\n // 9.1 Assert that for each checkbox there is an individual log row\n // and value is corresponded to the status of checkbox\n differentElementsAsserts.shouldReturnSelectedCheckbox();\n differentElementsAsserts.shouldReturnLogRowText(WATER.getValue(), \"true\");\n differentElementsAsserts.shouldReturnLogRowText(WIND.getValue(), \"true\");\n\n // 9.2 Assert that for radio button there is a log row and value is corresponded to the status of radio button\n differentElementsAsserts.shouldReturnSelectedRadioButton();\n differentElementsAsserts.shouldReturnLogRowText(METAL.getValue(), SELEN.getValue());\n\n // 9.3 Assert that for dropdown there is a log row and value is corresponded to the selected value\n differentElementsAsserts.shouldReturnSelectedDropdown();\n differentElementsAsserts.shouldReturnLogRowText(COLORS.getValue(), YELLOW.getValue());\n }", "@Test\n public void overweightCategorySecondRangeInKgAndCm() {\n\n driver.findElement(By.xpath(\"//input[@name='wg']\")).sendKeys(\"94\");\n driver.findElement(By.xpath(\"//input[@name='ht']\")).sendKeys(\"177\");\n driver.findElement(By.xpath(\"//input[@name='cc']\")).click();\n Assert.assertEquals(driver.findElement(By.name(\"desc\")).getAttribute(\"value\"), \"Your category is Overweight\",\n \"actual text is not: Your category is Overweight\");\n }", "@Test\n public void test100() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Block block0 = (Block)errorPage0.li();\n Label label0 = (Label)errorPage0.label((Object) null);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(label0._isGeneratedId());\n }", "protected GuiTestObject bed_2() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"bed_2\"));\n\t}", "public SNGTestCases CoinsCollection_TC1014() throws InterruptedException{\n \tString flavour = \"Electrical\";\n \t\n \tforDebugger();\n \twaitForElement(By.id(\"com.pointedsquares.gamy5.android:id/header_name\"),120);\n \ttry{\n \t\twaitForElement(By.xpath(\"//android.widget.TextView[contains(@text , 'Academics') and contains(@resource-id , 'itemTitle')]\") , 5);\n \t}catch(Exception ex){\n \t\tdriver.scrollTo(\"Academics\");\n \t}\n \tdriver.findElement(By.xpath(\"//android.widget.TextView[contains(@text , 'Academics') and contains(@resource-id , 'itemTitle')]/following-sibling::android.widget.TextView[contains(@text , 'More')]\")).click();\n \twaitForElement(By.id(\"com.pointedsquares.gamy5.android:id/search_all\"), 10);\n \tdriver.findElement(By.id(\"com.pointedsquares.gamy5.android:id/search_all\")).click();\n \tdriver.findElement(By.id(\"com.pointedsquares.gamy5.android:id/search_all\")).sendKeys(flavour);\n \tdriver.findElement(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'flavour_name_list') and contains(@text , 'Electrical Engineering')]\")).click();\n \twaitForElement(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'stake_amount') and contains(@text , '500')]\"),5);\n \tdriver.findElement(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'stake_amount') and contains(@text , '500')]\")).click();\n \twaitForElement(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'message_text') and contains(@text , 'You are about to play Electrical Engineering game with 500 coins stake.')]\"), 5);\n \tdriver.findElement(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'message_text') and contains(@text , 'You are about to play Electrical Engineering game with 500 coins stake.')]\")).click();\n \tdriver.findElement(By.id(\"com.pointedsquares.gamy5.android:id/positive_button\")).click();\n \twaitForVisibilityOf(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'response') and contains(@text , 'Finding room for you...')]\"));\n \tThread.sleep(5000);\n \ttry{\n \t\twaitForElement(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'response') and contains(@text , 'Still Waiting.....')]\") , 2);\n \t}catch(Exception ex){\n \t\t\n \t}\n \twaitForVisibilityOf(By.xpath(\"//android.widget.RelativeLayout[contains(@resource-id , 'topL')]\"));\n \tdriver.findElement(By.id(\"com.pointedsquares.gamy5.android:id/pool_currency_layout\"));\n \tList<WebElement> playerList = driver.findElements(By.xpath(\"//android.widget.LinearLayout[contains(@resource-id , 'player_list')]/*\"));\n \tint playerCount = 1;\n \tfor(int i = 0; i < 5; i++){\n \t\ttry{\n \t\t\tdriver.findElement(By.id(\"com.pointedsquares.gamy5.android:id/player_name_\"+i));\n \t\t\tplayerCount++;\n \t\t}catch(Exception ex){\n \t\t\t\n \t\t}\n \t}\n \tSystem.out.println(playerCount);\n \tdriver.findElement(By.id(\"com.pointedsquares.gamy5.android:id/pool_amount\"));\n \tThread.sleep(7000);\n \treturn new SNGTestCases(driver);\n }", "@Test\n public void normalCategorySecondRangeInKgAndCm() {\n\n driver.findElement(By.xpath(\"//input[@name='wg']\")).sendKeys(\"81\");\n driver.findElement(By.xpath(\"//input[@name='ht']\")).sendKeys(\"180\");\n driver.findElement(By.xpath(\"//input[@name='cc']\")).click();\n Assert.assertEquals(driver.findElement(By.name(\"desc\")).getAttribute(\"value\"), \"Your category is Normal\",\n \"actual text is not: Your category is Normal\");\n }", "@Test\n public void obesityCategory() {\n\n driver.findElement(By.xpath(\"//input[@name='wg']\")).sendKeys(\"102.7\");\n driver.findElement(By.xpath(\"//input[@name='ht']\")).sendKeys(\"185\");\n driver.findElement(By.xpath(\"//input[@name='cc']\")).click();\n Assert.assertEquals(driver.findElement(By.name(\"desc\")).getAttribute(\"value\"), \"Your category is Overweight\",\n \"actual text is not: Your category is Overweight\");\n }", "@Test\n public void testDAM32102002() {\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n OrderMB3ListPage orderMB3ListPage = dam3IndexPage.dam32102002Click();\n\n String expectedOrdeDetails = \"Order accepted, ITM0000001, Orange juice, CTG0000001, Drink, dummy1\";\n\n // get the details of the specified order in a single string\n String actualOrderDetails = orderMB3ListPage.getOrderDetails(1);\n\n // confirm the details of the order fetched from various tables\n assertThat(actualOrderDetails, is(expectedOrdeDetails));\n\n orderMB3ListPage.setItemCode(\"ITM0000001\");\n\n orderMB3ListPage = orderMB3ListPage.fetchRelatedEntityLazy();\n\n // Expected related entity category details\n String expRelatedEntityDet = \"CTG0000001, Drink\";\n\n String actRelatedEntityDet = orderMB3ListPage\n .getRelatedEntityCategoryDeatils(1);\n\n // confirmed realted entity details\n assertThat(actRelatedEntityDet, is(expRelatedEntityDet));\n }", "@Test\n public void testDAM31304001() {\n\n // Data preparation\n {\n clearAndCreateTestDataForBook();\n }\n\n {\n webDriverOperations.click(id(\"dam31304001\"));\n }\n\n {\n assertThat(webDriverOperations.getText(id(\"getDateResult\")), is(\n \"2016-12-29\"));\n assertThat(webDriverOperations.getText(id(\"getDateClassResult\")),\n is(\"java.time.LocalDate\"));\n assertThat(webDriverOperations.getText(id(\n \"getObjectCertification\")), is(\"true\"));\n }\n }", "public static void buildStage2 ()\r\n {\r\n \r\n lgt.findParent(); //4\r\n lgt.findChild(0); //6\r\n lgt.insert(12);\r\n lgt.findParent();\r\n lgt.insert(13);\r\n lgt.findParent();\r\n lgt.insert(14);\r\n \r\n lgt.findRoot();\r\n lgt.findChild(0);//2\r\n lgt.findChild(0);//5\r\n lgt.insert(8);\r\n lgt.findParent();\r\n lgt.insert(9);\r\n lgt.findParent();\r\n lgt.insert(10);\r\n lgt.findParent();\r\n lgt.insert(11);\r\n \r\n }", "@Test\n void buildWaredDrobeTest() {\n WaredDrobeBuilder waredDrobeBuilder = new WaredDrobeBuilder();\n WaredDrobe waredDrobe = waredDrobeBuilder.build();\n List<String>partlist=waredDrobe.getParts();\n\n List<String>steps = Arrays.asList(\"bottom\",\"side\",\"side\",\"back\",\"top\",\"shelf\",\"shelf\",\"shelf\",\"shelf\",\n \"shelf\",\"shelf\",\"shelf\",\"shelf\",\"door\",\"door\");\n assertEquals(steps,partlist);\n\n\n\n\n }", "@Test\n public void normalCategoryFirstRangeInKgAndCm() {\n\n\n driver.findElement(By.xpath(\"//input[@name='wg']\")).sendKeys(\"59.3\");\n driver.findElement(By.xpath(\"//input[@name='ht']\")).sendKeys(\"179\");\n driver.findElement(By.xpath(\"//input[@name='cc']\")).click();\n Assert.assertEquals(driver.findElement(By.name(\"desc\")).getAttribute(\"value\"), \"Your category is Normal\",\n \"actual text is not: Your category is Normal\");\n }", "@Test\n public void testDAM30901001() {\n // Data preparation\n {\n clearAndCreateTestDataForBook();\n }\n\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n TodoListPage todoListPage = dam3IndexPage.dam30901001Click();\n\n // Confirmation of database state before batch update\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"3\"));\n assertThat(todoListPage.getIncompletTodoCount(), equalTo(\"7\"));\n assertThat(todoListPage.getTotalTodoCount(), equalTo(\"10\"));\n\n todoListPage.selectCompleteStatRadio();\n\n todoListPage = todoListPage.ifElementUsageSearch();\n\n // Confirmation of database state before batch update\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"3\"));\n\n // 1 and 3 todos are incomplete. hence not displayed\n boolean isTodoPresent = todoListPage.isTodoDisplayed(\"0000000003\");\n assertThat(isTodoPresent, is(false));\n\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000001\");\n assertThat(isTodoPresent, is(false));\n // 10 todo is complete. hence displayed.\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000010\");\n assertThat(isTodoPresent, is(true));\n\n // default value of finished is now false.hence todos like 1,3 will be displayed\n // where as todo like 10 will not be displayed.\n todoListPage.selectInCompleteStatRadio();\n todoListPage = todoListPage.ifElementUsageSearch();\n\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000003\");\n assertThat(isTodoPresent, is(true));\n\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000001\");\n assertThat(isTodoPresent, is(true));\n // 10 todo is complete. hence displayed.\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000010\");\n assertThat(isTodoPresent, is(false));\n\n // scenario when finished property of criteria is null.\n\n }", "@Test\n public void seeInfoAboutItemAisleFromDepartmentView() {\n String itemTest = \"Bell Peppers\";\n String aisleCheck = \"Aisle: 2\";\n String aisleDescriptionCheck = \"Aisle Description: Between Aisle 1 and Frozen Aisle\";\n onView(withId(R.id.navigation_home)).perform(click());\n onView(withId(R.id.card_view_department)).perform(click());\n onView(withText(\"Produce\")).perform(click());\n onView(withId(R.id.department_items_list_recycler_view)).perform(RecyclerViewActions.actionOnItemAtPosition(16, click()));\n onView(withText(\"VIEW MORE INFORMATION\")).perform(click());\n onView(withId(android.R.id.message)).check(matches(allOf(withSubstring(aisleCheck), isDisplayed())));\n onView(withId(android.R.id.message)).check(matches(allOf(withSubstring(aisleDescriptionCheck), isDisplayed())));\n }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n DynamicSelectModel dynamicSelectModel0 = new DynamicSelectModel();\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = new Label(errorPage0, dynamicSelectModel0);\n dynamicSelectModel0.setComponent(label0);\n Component component0 = dynamicSelectModel0.getComponent();\n assertEquals(\"Label_1\", component0.getComponentId());\n }", "@Test\n public void underweightCategorySecondRangeInKgAndCm() {\n\n driver.findElement(By.xpath(\"//input[@name='wg']\")).sendKeys(\"58.6\");\n driver.findElement(By.xpath(\"//input[@name='ht']\")).sendKeys(\"178\");\n driver.findElement(By.xpath(\"//input[@name='cc']\")).click();\n Assert.assertEquals(driver.findElement(By.name(\"desc\")).getAttribute(\"value\"), \"Your category is Underweight\",\n \"actual text is not: Your category is Underweight\");\n }", "@Test\n public void TEST_FR_SELECTDIFFICULTY_UI() {\n GameData.gameDifficulty = \"unchanged\";\n ChooseDifficultyUI testUI = new ChooseDifficultyUI();\n clickButton(testUI, 1, \"easy\");\n clickButton(testUI, 2, \"medium\");\n clickButton(testUI, 3, \"hard\");\n }", "protected GuiTestObject html_main() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"html_main\"));\n\t}", "@Test(timeout = 4000)\n public void test197() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Checkbox checkbox0 = new Checkbox(errorPage0, \"kiDz=CI9_ri)~odKM\", \"]1\");\n checkbox0.renderHint(\"]1\");\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "@Test\n public void starvationCategory() {\n\n driver.findElement(By.xpath(\"//input[@name='wg']\")).sendKeys(\"47.5\");\n driver.findElement(By.xpath(\"//input[@name='ht']\")).sendKeys(\"178\");\n driver.findElement(By.xpath(\"//input[@name='cc']\")).click();\n Assert.assertEquals(driver.findElement(By.name(\"desc\")).getAttribute(\"value\"), \"Your category is Starvation\",\n \"actual text is not: Your category is Starvation\");\n }", "@Test\n public void rentPropertyMatch() throws UiObjectNotFoundException {\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"btn_create_post\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"lbl_rental_prop\")).click();\n device.findObject(By.text(\"Search building name\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"input_search\")).setText(\"Icon\");\n device.wait(Until.findObject(By.text(\"Icon Viva\")), 10000);\n device.findObject(By.text(\"Icon Viva\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"dd_configuration\")).click();\n device.findObject(By.text(\"1 BHK\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"txt_pricing\")).click();\n device.findObject(By.text(\"2\")).click();\n device.findObject(By.text(\"5\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"Done\")).click();\n device.wait(Until.findObject(By.text(\"Yes\")), 2000);\n device.findObject(By.text(\"Yes\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"dd_furnishing\")).click();\n device.findObject(By.text(\"Fully-Furnished\")).click();\n UiScrollable postView = new UiScrollable(new UiSelector().scrollable(true));\n UiSelector postSelector = new UiSelector().text(\"POST\");\n postView.scrollIntoView(postSelector);\n device.findObject(postSelector).click();\n device.wait(Until.findObject(By.text(\"POST\").enabled(true)), 10000);\n String matchNameString = device.findObject(By.textContains(\"matches\")).getText().split(\" \")[0];\n device.findObject(By.text(\"POST\")).click();\n device.wait(Until.findObject(By.text(\"RENTAL PROPERTY\")), 9000);\n Assert.assertNotEquals(\"Test Case Failed...No Match found\", \"no\", matchNameString.toLowerCase());\n String postMatchName = device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"lbl_name\")).getText();\n Assert.assertEquals(\"Test Case Failed...Match should have had been found with\", \"dialectic test\", postMatchName.toLowerCase());\n\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"btn_close\")).click();\n Utils.markPostExpired(device);\n }", "public void VerifyShopinsightTitle(String Exptext){\r\n\t\tString countryy=\"Germany\";\r\n\t\tString ExpectedTitle[] = getValue(Exptext).split(\",\",2);\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Shopping insight title should be present\");\r\n\t\ttry{\r\n\t\t\tif(countryy.contains(countries.get(countrycount))){\r\n\t\t\t\tif(getAndVerifyTextfromList(locator_split(\"txtShoppinginSightDesc\"), ExpectedTitle[1],1)){\r\n\t\t\t\t\tSystem.out.println(ExpectedTitle[1]+\" is present\");\r\n\t\t\t\t\tReporter.log(\"PASS_MESSAGE:- \"+ExpectedTitle[1]+\" is present in Shopping insight box\");\r\n\t\t\t\t} else{ \r\n\t\t\t\t\tthrow new Error(ExpectedTitle[1]+\" is not present\");\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\tif(getAndVerifyTextfromList(locator_split(\"txtTitle\"), ExpectedTitle[1],Integer.valueOf(ExpectedTitle[0]))){\r\n\t\t\t\t\tSystem.out.println(ExpectedTitle[1]+\" is present\");\r\n\t\t\t\t\tReporter.log(\"PASS_MESSAGE:- \"+ExpectedTitle[1]+\" is present in Shopping insight box\");\r\n\t\t\t\t} else{ \r\n\t\t\t\t\tthrow new Error(ExpectedTitle[1]+\" is not present\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(NoSuchElementException e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- \"+elementProperties.getProperty(\"txtTitle\")+\" / \"+elementProperties.getProperty(\"txtShoppinginSightDesc\")+\" is not Present\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"txtTitle\")\r\n\t\t\t\t\t+ elementProperties.getProperty(\"txtShoppinginSightDesc\")\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\r\n\t\tcatch(Error Er){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Expected text - '\"+ExpectedTitle[1]+\" is not present in Shopping insight box\");\r\n\t\t\tthrow new Error(\"Expected text - '\"+ExpectedTitle[1]+\" is not present\");\r\n\t\t}\r\n\t}", "@Test(priority=99, enabled = true)\n\t public void PhysicalLocationDropDown_ComponentGroups() throws IOException, InterruptedException {\n\t\t Thread.sleep(5000); \n\t\t // select the Properties set\t\n\t\t clickByXpath(\"//*[@id='content-wizard']/grouping-wizard/div/table/tbody/tr[1]/td[3]/div[1]/property-choice/div/div/a/div/b\");\n\t\t Thread.sleep(3000);\n\t\t \n\t\t //select the option\t \n\t\t clickByXpath(\"//*[@id='content-wizard']/grouping-wizard/div/table/tbody/tr[1]/td[3]/div[1]/property-choice/div/div/div/ul/li[2]\"); \n\t Thread.sleep(8000);\n\t \n\t // Click on Discard button\n\t clickByXpath(\"html/body/div[4]/div/div/div[2]/div/div/form/div[2]/a\");\n\t\t Thread.sleep(3000); \n\t \n\t\t //TestLink 440 - Testcase 5\n\t\t Thread.sleep(8000); \n\t\t// select the Properties set\t\n\t\t clickByXpath(\"//*[@id='content-wizard']/grouping-wizard/div/table/tbody/tr[1]/td[3]/div[1]/property-choice/div/div/a/div/b\");\n\t\t Thread.sleep(3000);\n\t\t \n\t\t //select the option\t \n\t\t clickByXpath(\"//*[@id='content-wizard']/grouping-wizard/div/table/tbody/tr[1]/td[3]/div[1]/property-choice/div/div/div/ul/li[2]\"); \n\t Thread.sleep(8000);\n\t \t\t \n\t //TestLink 434 - Testcase 2\n\t //Enter Abbreviation\n\t\t sendvaluebyxpath(\"html/body/div[4]/div/div/div[2]/div/div/form/div[1]/div/div/div/div/div[1]/div/input\", \"Edits\"); \n\t\t Thread.sleep(8000);\n\t\t \n\t\t //Enter Location\n\t\t sendvaluebyxpath(\"html/body/div[4]/div/div/div[2]/div/div/form/div[1]/div/div/div/div/div[2]/div/input\", \"Auto Locat\"); \n\t\t Thread.sleep(8000);\n\t\t \n\t\t // Click on Save button\n\t\t clickByXpath(\"//*[@id='submit-button']\");\n\t\t Thread.sleep(3000); \t \n\t\t \t\t \n\t }", "@Test\n\n public void validateAppTitle() throws IOException {\n LandingPage l = new LandingPage(driver);\n //compare the text from the browser with actual text.- Error..\n Assert.assertEquals(l.getTitle().getText(), \"FEATURED COURSES\");\n\n System.out.println(\"Test running from Inside docker for tests dated 22-03-2020\");\n System.out.println(\"Test completed\");\n\n ;\n\n\n }", "@Test\n public void nameDetailNeighbourIsGood() {\n ViewInteraction recyclerView = onView(\n allOf(withId(R.id.list_neighbours),isDisplayed()));\n recyclerView.perform(actionOnItemAtPosition(1, click()));\n\n ViewInteraction textView = onView(\n allOf(withId(R.id.titleNameNeighbour_view), withText(\"Jack\"),\n withParent(withParent(withId(android.R.id.content))),\n isDisplayed()));\n textView.check(matches(withText(\"Jack\")));\n }", "@Test\n public void test133() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = (Label)errorPage0.dd((Object) errorPage0);\n assertTrue(label0._isGeneratedId());\n \n List<Component> list0 = errorPage0._getChildren();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertEquals(1, list0.size());\n }", "public void testadvancedSearchTitleAndBody(){\n\t\t\n//\t\tmanager.advancedSearchTitleAndBody(ElasticIndex.analyzed, \"List of international tennis player \",\" Andre Agassi\" );\n\t}", "@CssSelector(\"${williamsSProducts}\")\n\tpublic AspireWebElements williamsSProducts();", "@Test\n public void z_topDown_TC03() {\n try {\n Intrebare intrebare = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"M\");\n Intrebare intrebare1 = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"A\");\n Intrebare intrebare2 = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"B\");\n Intrebare intrebare3 = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"C\");\n assertTrue(true);\n assertTrue(appService.exists(intrebare));\n assertTrue(appService.exists(intrebare1));\n assertTrue(appService.exists(intrebare2));\n assertTrue(appService.exists(intrebare3));\n\n try {\n ccir2082MV.evaluator.model.Test test = appService.createNewTest();\n assertTrue(test.getIntrebari().contains(intrebare));\n assertTrue(test.getIntrebari().contains(intrebare1));\n assertTrue(test.getIntrebari().contains(intrebare2));\n assertTrue(test.getIntrebari().contains(intrebare3));\n assertTrue(test.getIntrebari().size() == 5);\n } catch (NotAbleToCreateTestException e) {\n assertTrue(false);\n }\n\n Statistica statistica = appService.getStatistica();\n assertTrue(statistica.getIntrebariDomenii().containsKey(\"Literatura\"));\n assertTrue(statistica.getIntrebariDomenii().get(\"Literatura\")==1);\n\n assertTrue(statistica.getIntrebariDomenii().containsKey(\"M\"));\n assertTrue(statistica.getIntrebariDomenii().get(\"M\")==1);\n\n assertTrue(statistica.getIntrebariDomenii().containsKey(\"A\"));\n assertTrue(statistica.getIntrebariDomenii().get(\"A\")==1);\n\n assertTrue(statistica.getIntrebariDomenii().containsKey(\"B\"));\n assertTrue(statistica.getIntrebariDomenii().get(\"B\")==1);\n\n assertTrue(statistica.getIntrebariDomenii().containsKey(\"C\"));\n assertTrue(statistica.getIntrebariDomenii().get(\"C\")==1);\n\n } catch (DuplicateIntrebareException | IntrebareValidatorFailedException e) {\n e.printStackTrace();\n assertTrue(false);\n } catch (NotAbleToCreateStatisticsException e) {\n assertTrue(false);\n }\n }", "@Test\n public void test003() {\n String name = response.extract().path(\"data[4].name\");\n\n\n System.out.println(\"------------------StartingTest---------------------------\");\n System.out.printf(\"The 5th sore name is: %s%n\", name);\n System.out.println(\"------------------End of Test---------------------------\");\n }", "@Test\n\tpublic void TestAct9() {\n\t\tdriver.findElement(By.xpath(\"//li[5]/a\")).click();\n\t\tdriver.findElement(By.xpath(\"//div/section[2]/div[2]/div[2]/div[2]/div[2]/a\")).click();\n\t\tdriver.findElement(By.id(\"user_login\")).sendKeys(\"root\");\n\t\tdriver.findElement(By.id(\"user_pass\")).sendKeys(\"pa$$w0rd\");\n\t\tdriver.findElement(By.id(\"wp-submit\")).click();\n\n\t\t//Viewing the course for Activity 9\n\t\tdriver.findElement(By.xpath(\"//li[2]/a\")).click();\n\t\tdriver.findElement(By.xpath(\"//div[2]/p[2]/a\")).click();\n\t\tdriver.findElement(By.xpath(\"//div[1]/a/div[2]\")).click();\n\n\t\tString t = driver.getTitle();\n\t\tAssert.assertEquals(\"Developing Strategy – Alchemy LMS\", t);\n\n\t\tWebElement s = driver.findElement(By.xpath(\"//div[4]/div[2]\"));\n\t\tString a = s.getText();\n\t\tBoolean c = a.contains(\"Mark Completed\");\n\n\t\tif (c==true)\n\t\t{\n\t\t\ts.click();\n\t\t\tSystem.out.println(\"Found \"+a+\", hence clicking on it.\");\n\t\t} \n\t\telse {\n\t\t\tSystem.out.println(\"Found \"+a+\", hence not clicking on it.\");}\n\t}", "@Test\n public void seeInfoAboutAisleFromSearch(){\n String itemTest = \"Potatoes\";\n String aisleCheck = \"Aisle: 2\";\n String aisleDescriptionCheck = \"Aisle Description: Between Aisle 1 and Frozen Aisle\";\n onView(withId(R.id.navigation_search)).perform(click());\n onView(withId(R.id.SearchView)).perform(typeText(itemTest));\n onData(anything()).inAdapterView(withId(R.id.myList)).atPosition(0).perform(click());\n onView(withText(\"VIEW MORE INFORMATION\")).perform(click());\n onView(withId(android.R.id.message)).check(matches(allOf(withSubstring(aisleCheck), isDisplayed())));\n onView(withId(android.R.id.message)).check(matches(allOf(withSubstring(aisleDescriptionCheck), isDisplayed())));\n onView(withText(\"OK\")).perform(click());\n }", "@Test(priority = 1, groups= {\"regression\",\"smoke\"})\r\n\tpublic void PrintHospitals()\r\n\t{\r\n\t\tlogger= report.createTest(\"Printing Hospitals as per requirement\");\r\n\t\tDisplayHospitalNames hp=Base.nextPage1();\r\n\t\thp.selectLocation();\r\n\t\thp.selectHospital();\r\n\t\thp.applyFilters();\r\n\t\thp.hospitals();\r\n\t\thp.Back();\r\n\t}", "@Test\n public void testDAM30504001() {\n // Data preparation\n {\n clearAndCreateTestDataForBook();\n }\n\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n TodoListPage todoListPage = dam3IndexPage.dam30504001Click();\n\n // Assert the todo record count from DB table\n // These count are computed from the list returned and not fetched using query.\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"3\"));\n assertThat(todoListPage.getIncompletTodoCount(), equalTo(\"7\"));\n assertThat(todoListPage.getTotalTodoCount(), equalTo(\"10\"));\n\n // by default the radio button for incomplete todos is selected for retrievingits count.\n todoListPage = todoListPage.clickCountByStatusBtn();\n\n String todoCnt = todoListPage.getTodoCountwithStatus();\n\n // This count is fetched from db using count query : status in-complete.\n assertThat(todoCnt, equalTo(\"InComplete : 7\"));\n\n // Status selected as complete now\n todoListPage.selectCompleteStatRadio();\n\n todoListPage = todoListPage.clickCountByStatusBtn();\n todoCnt = todoListPage.getTodoCountwithStatus();\n\n // This count is fetched from db using count query : status complete.\n assertThat(todoCnt, equalTo(\"Completed : 3\"));\n\n }", "@Test\n public void overweightCategoryFirstRangeInKgAndCm() {\n\n driver.findElement(By.xpath(\"//input[@name='wg']\")).sendKeys(\"85.6\");\n driver.findElement(By.xpath(\"//input[@name='ht']\")).sendKeys(\"185\");\n driver.findElement(By.xpath(\"//input[@name='cc']\")).click();\n Assert.assertEquals(driver.findElement(By.name(\"desc\")).getAttribute(\"value\"), \"Your category is Overweight\",\n \"actual text is not: Your category is Overweight\");\n }", "@Test\n public void articleSingleView()throws Exception{\n ChromeDriver driver = openChromeDriver();\n try {\n driver.get(\"https://www.knjizare-vulkan.rs\");\n clearCookies(driver);\n\n WebElement schoolProgram = driver.findElement(By.xpath(\"//a[@href='https://www.knjizare-vulkan.rs/program-za-skolu']\"));\n schoolProgram.click();\n\n WebElement childPencilBox = driver.findElement(By.xpath(\"/html/body/div[4]/div[1]/div/div/div/div[5]/div/div[2]/div/div/div[7]/div[1]/div[1]/a[2]\"));\n childPencilBox.click();\n\n\n\n Thread.sleep(3000);\n\n } finally {\n\n driver.quit();\n\n }\n\n }", "@Test\n public void fleetVehicleTest() {\n test = report.createTest(\"Fleet Vehicle Title Test\");\n test.info(\"logging in to application\");\n loginPage.login(\"driver_username\", \"driver_password\");\n wait.until(ExpectedConditions.elementToBeClickable(dashboardPage.fleet));\n dashboardPage.fleet.click();\n wait.until(ExpectedConditions.elementToBeClickable(dashboardPage.vehicles));\n dashboardPage.vehicles.click();\n\n wait.until(ExpectedConditions.textToBePresentInElement(vehiclesPage.pageHeader, \"Cars\"));\n String actual = vehiclesPage.pageHeader.getText();\n test.info(\"verifying page title\");\n assertEquals(actual, \"Cars\");\n test.pass(\"PASS: Fleet Vehicle Title Test\");\n\n }", "@Test\n\tpublic void test_getTitle() {\n\tTvShow t1 = new TvShow(\"Sherlock\",\"BBC\");\n\tassertEquals(\"Sherlock\",t1.getTitle());\n }", "@Test\n public void testDAM30503001() {\n\n // Data preparation\n {\n clearAndCreateTestDataForBook();\n }\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n TodoListPage todoListPage = dam3IndexPage.dam30503001Click();\n\n // Assert the todo record count from DB table\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"3\"));\n assertThat(todoListPage.getIncompletTodoCount(), equalTo(\"7\"));\n assertThat(todoListPage.getTotalTodoCount(), equalTo(\"10\"));\n\n boolean isTodoPresent = todoListPage.isTodoDisplayed(\"0000000002\");\n\n assertThat(isTodoPresent, is(true));\n\n todoListPage.setTodoTitleContent(\"Todo 1\");\n todoListPage.setTodoCreationDate(\"2016-12-30\");\n\n todoListPage = todoListPage.searchByCriteriaBean();\n\n // Assert the todo record count from DB table\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getIncompletTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getTotalTodoCount(), equalTo(\"2\"));\n\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000001\");\n assertThat(isTodoPresent, is(true));\n\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000010\");\n assertThat(isTodoPresent, is(true));\n\n // this todo does not meets the criteria.Hence not displayed.\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000002\");\n assertThat(isTodoPresent, is(false));\n\n }", "@Test\n public void testCreateView() {\n System.out.println(\"createView\");\n int i =1;\n AfinadorModelo modeloTest = new AfinadorModelo();\n AfinadorControlador controladorTest = new AfinadorControlador(modeloTest,i);\n String test = controladorTest.vista1.bpmOutputLabel.getText();\n if( test != \"APAGADO \")\n fail(\"The test case is a prototype.\");\n }", "@Test\n\t\t public void testLocationOne() {\n\t\t \tdriver.get(\"http://mq-devhost-lm52.ihost.aol.com:9002/us/nj/upper-montclair/bellevue-ave-valley-rd\");\n\t\t \tAssertJUnit.assertEquals(Utils.getElementText(driver,PageLayoutSelectors.TOP_NAME),\"Bellevue Ave & Valley Rd\");\n\t\t }", "@Test(timeout = 4000)\n public void test007() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.q();\n Component component1 = component0.span();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertEquals(\"Block_2\", component1.getComponentId());\n }", "@TestCaseId( id = 3 )\n\t@Steps ( steps = {\n\t\t\t@Step( number = 1, description = \"GIVEN user navigates to main page\" ),\n\t\t\t@Step( number = 2, description = \"WHEN examining the header bar, zero navigation section\",\n\t\t\t\t\texpectedResults = { \"THEN the phone number matches the defined locale phone number\",\n\t\t\t\t\t\t\t\"AND the displayed flag displayed in the header matches the current locale\",\n\t\t\t\t\t\t\t\"AND WHEN the locale is 'US' or 'UK', \\\"Top Destinations\\\" should be displayed, otherwise not\",\n\t\t\t\t\t\t\t\"OR WHEN if the locale is AU', the \\\"Currency Selector\\\" should be displayed, otherwise not\",\n\t\t\t\t\t} ),\n\t\t\t@Step( number = 3, description = \"AND WHEN user clicks back on the \\\"Subscribe and Save\\\" link\",\n\t\t\t\t\texpectedResults = { \"THEN the \\\"Header Subscribe\\\" section should be hidden.\" }),\n\t\t\t@Step( number = 4, description = \"THEN user clicks on \\\"Your cruise deals\\\"\",\n\t\t\t\t\texpectedResults = { \"user redirects to \\\"/cruise-deals.aspx\\\" page\" } ),\n\t\t\t@Step( number = 5, description = \"WHEN user clicks on the company LOGO on the left upper corner.\",\n\t\t\t\t\texpectedResults = \"user redirects back to home page.\" ),\n\t\t\t@Step( number = 6, description = \"WHEN user clicks on the locale country flag.\",\n\t\t\t\t\texpectedResults = { \"THEN a drop down containing country names is displayed.\",\n\t\t\t\t\t\t\t\t\t\t\"AND the list contains the expected country names\" } ),\n\t\t\t@Step( number = 7, description = \"WHEN user clicks back on the locale country flag icon.\",\n\t\t\t\t\texpectedResults = { \"THEN the drop down countries list is hidden back.\" } ),\n\t} )\n\t@Test ( description = \"Testing the Header-Branding common part initial state and functionality\",\n\t\t\tenabled = true,\n\t\t\tgroups = { \"US\", \"UK\", \"AU\" }\n\t)\n\tpublic void homePage_InitialState_Header_Branding( ITestContext testContext ) throws Exception\n\t{\n\t\t/* GIVEN user navigates to main page */\n\t\tPreConditions.checkNotNull( this.homePage, \"Home page is null, before starting test\" );\n\t\ttry\n\t\t{\n\n\t\t\t/* WHEN examining the header bar, zero navigation section */\n\t\t\tHeader.HeaderBranding headerBranding = homePage.header().headerBranding();\n\t\t\tHtmlElement container = homePage.header().getContainer();\n\n\t\t\t/* THEN the phone number matches the defined locale phone number */\n\t\t\tString REASON = \"Asserting the phone number matches the defined locale phone number\";\n\t\t\tString ACTUAL_STR = headerBranding.getLocalePhoneNumber();\n\t\t\tMatcher<String> EXPECTED_STR = JMatchers.is( ( String ) SiteProperty.HEADER_PHONE_NUMBER.fromContext() );\n\t\t\tSiteSessionManager.get().createCheckPoint( container, \"VALIDATE_PHONE\" )\n\t\t\t\t\t.assertThat( REASON, ACTUAL_STR, EXPECTED_STR );\n\n\t\t\t/* AND the displayed flag in the header matches the current locale */\n\t\t\tREASON = \"Asserting that the flag displayed in the header matches the current locale\";\n\t\t\tLocale ACTUAL_LOCALE = homePage.header().headerBranding().getDisplayedLocale();\n\t\t\tMatcher<Locale> EXPECTED_LOCALE = JMatchers.is( SiteSessionManager.get().getCurrentLocale() );\n\t\t\tSiteSessionManager.get().createCheckPoint( container, \"VALIDATE_DISPLAYED_FLAG\" )\n\t\t\t\t\t.assertThat( REASON, ACTUAL_LOCALE, EXPECTED_LOCALE );\n\n\t\t\t/* AND WHEN the locale is 'US' or 'UK', \"Top Destinations\" should be displayed, otherwise not */\n\n\t\t\tif ( SiteSessionManager.get().getCurrentLocale().equals( Locale.UK )\n\t\t\t\t\t|| SiteSessionManager.get().getCurrentLocale().equals( Locale.US ) )\n\t\t\t{\n\t\t\t\tREASON = \"Asserting that \\\"Top Destinations\\\" should be displayed\";\n\t\t\t\tboolean ACTUAL_BOOL = headerBranding.hasTopDestinations();\n\t\t\t\tMatcher<Boolean> EXPECTED_OF_BOOL = JMatchers.is( true );\n\t\t\t\tSiteSessionManager.get().createCheckPoint( container, \"TOP_DESTINATIONS_DISPLAYED\" )\n\t\t\t\t\t\t.assertThat( REASON, ACTUAL_BOOL, EXPECTED_OF_BOOL );\n\n\t\t\t\tREASON = \"Asserting that \\\"Currency Selector\\\" should not be displayed\";\n\t\t\t\tACTUAL_BOOL = headerBranding.hasCurrencySelector();\n\t\t\t\tEXPECTED_OF_BOOL = JMatchers.is( false );\n\t\t\t\tSiteSessionManager.get().createCheckPoint( container, \"CURRENCY_SELECTOR_NOT_DISPLAYED\" )\n\t\t\t\t\t\t.assertThat( REASON, ACTUAL_BOOL, EXPECTED_OF_BOOL );\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tREASON = \"Asserting that \\\"Top Destinations\\\" should be displayed\";\n\t\t\t\tMatcher<Boolean> EXPECTED_OF_BOOL = JMatchers.is( false );\n\t\t\t\tboolean ACTUAL_BOOL = headerBranding.hasTopDestinations();\n\t\t\t\tSiteSessionManager.get().createCheckPoint( \"TOP_DESTINATIONS_NOT_DISPLAYED\" )\n\t\t\t\t\t\t.assertThat( REASON, ACTUAL_BOOL, EXPECTED_OF_BOOL );\n\n\t\t\t\tREASON = \"Asserting that \\\"Currency Selector\\\" should not be displayed\";\n\t\t\t\tEXPECTED_OF_BOOL = JMatchers.is( true );\n\t\t\t\tACTUAL_BOOL = homePage.header().headerBranding().hasCurrencySelector();\n\t\t\t\tSiteSessionManager.get().createCheckPoint( container, \"CURRENCY_SELECTOR_IS_DISPLAYED\" )\n\t\t\t\t\t\t.assertThat( REASON, ACTUAL_BOOL, EXPECTED_OF_BOOL );\n\t\t\t}\n\n\t\t \t/* AND WHEN user clicks back on the \"Subscribe and Save\" link */\n\t\t\theaderBranding.clickSubscribeAndSave();\n\n\t\t\tfinal String REASON5 = \"Asserting that \\\"Header Subscribe\\\" should be displayed\";\n\t\t\tfinal ExpectedCondition<WebElement> CONDITION = null;//visibilityBy( Header.HeaderBranding.ROOT_BY, true );\n\t\t\t//\t\tSiteSessionManager.get().createCheckPoint( \"HEADER_SUBSCRIBE_VISIBLE\" )\n\t\t\t//\t\t\t\t.assertWaitThat( REASON5, TimeConstants.FIVE_SECONDS, CONDITION );\n\n\t\t /* WHEN user clicks again on the \"Subscribe and Save\" link THEN \"Header Subscribe\" section should be hidden. */\n\n\t\t\theaderBranding.clickSubscribeAndSave();\n\t\t\tfinal String REASON6 = \"Asserting that \\\"Header Subscribe\\\" should be hidden back\";\n\t\t\t//final ExpectedCondition<WebElement> CONDITION1 = visibilityBy( Header.HeaderBranding.ROOT_BY, false );\n\t\t\t//\t\tSiteSessionManager.get().createCheckPoint( \"HEADER_SUBSCRIBE_HIDDEN\" )\n\t\t\t//\t\t\t\t.assertWaitThat( REASON6, TimeConstants.FIVE_SECONDS, CONDITION1 );\n\n\t\t/* WHEN user clicks on \"Your cruise deals\" THEN user redirects to \"/cruise-deals.aspx\" page */\n\n\t\t\tCruiseDealsPage dealsPage = headerBranding.clickYourCruiseDeals();\n\t\t\tfinal String REASON7 = \"Asserting that user redirected to \\\"/cruise-deals.aspx\\\" page\";\n\t\t\tfinal Matcher<String> EXPECTED_URL = JMatchers.containsString( \"/cruise-deals.aspx\" );\n\t\t\tfinal String ACTUAL_URL = dealsPage.getCurrentUrl();\n\t\t\tSiteSessionManager.get().createCheckPoint( \"URL_CRUISE_DEALS\" )\n\t\t\t\t\t.assertThat( REASON7, ACTUAL_URL, EXPECTED_URL );\n\n\t\t/* WHEN user clicks on the LOGO, THEN user redirects back to home page */\n\n\t\t\tthis.homePage = dealsPage.header().headerBranding().clickOnLogo();\n\t\t\tfinal String REASON8 = \"Asserting that user redirected back to home page\";\n\t\t\tfinal Matcher<URL> EXPECTED_HOME_URL = JMatchers.is( SiteSessionManager.get().getBaseUrl() );\n\t\t\tfinal URL ACTUAL_HOME_URL = new URL( homePage.getCurrentUrl() );\n\t\t\tSiteSessionManager.get().createCheckPoint( \"URL_BACK_HOME\" )\n\t\t\t\t\t.assertThat( REASON8, ACTUAL_HOME_URL, EXPECTED_HOME_URL );\n\n\t\t/* AND user clicks on the locale country flag. */\n\n\t\t\theaderBranding = this.homePage.header().headerBranding();\n\n\t\t\tfinal String REASON9 = \"Asserting that country list is hidden before clicking on the flag icon\";\n\t\t\tfinal Matcher<Boolean> EXPECTED_LIST_STATE1 = JMatchers.is( false );\n\t\t\tfinal boolean ACTUAL_LIST_STATE1 = headerBranding.isLocalesListOpened();\n\t\t\tSiteSessionManager.get().createCheckPoint( \"LOCALE_LIST_INIT_HIDDEN\" )\n\t\t\t\t\t.assertThat( REASON9, ACTUAL_LIST_STATE1, EXPECTED_LIST_STATE1 );\n\n\t\t\tList<String> locales = headerBranding.openLocalesList();\n\n\t\t/* THEN a drop down containing country names is displayed. */\n\n\t\t\tfinal String REASON10 = \"Asserting that country list is displayed after clicking on the flag icon for first time\";\n\t\t\tfinal Matcher<Boolean> EXPECTED_LIST_STATE2 = JMatchers.is( true );\n\t\t\tfinal boolean ACTUAL_LIST_STATE2 = headerBranding.isLocalesListOpened();\n\t\t\tSiteSessionManager.get().createCheckPoint( \"LOCALE_LIST_DISPLAYED\" )\n\t\t\t\t\t.assertThat( REASON10, ACTUAL_LIST_STATE2, EXPECTED_LIST_STATE2 );\n\n\t\t/* AND the list contains the expected country names */\n\n\t\t\tString[] ACTUAL_LOCALES = locales.toArray( new String[ locales.size() ] );\n\t\t\tfinal String REASON11 = \"Asserting that country list contains all expected countries\";\n\t\t\tfinal Matcher<String[]> EXPECTED_LOCALES =\n\t\t\t\t\tJMatchers.arrayContainingInAnyOrder( \"Australia\", \"United States\", \"United Kingdom\" );\n\t\t\tSiteSessionManager.get().createCheckPoint( \"LOCALES_LIST\" )\n\t\t\t\t\t.assertThat( REASON11, ACTUAL_LOCALES, EXPECTED_LOCALES );\n\n\t\t/* AND user clicks back on the locale country flag icon. */\n\n\t\t\theaderBranding.closeLocalesList();\n\n\t\t/* THEN the drop down countries list is hidden back. */\n\n\t\t\tfinal String REASON12 = \"Asserting that country list is hidden after clicking back on the flag icon.\";\n\t\t\tfinal Matcher<Boolean> EXPECTED_LIST_STATE3 = JMatchers.is( false );\n\t\t\tfinal boolean ACTUAL_LIST_STATE3 = headerBranding.isLocalesListOpened();\n\t\t\tSiteSessionManager.get().createCheckPoint( \"LOCALE_LIST_HIDDEN_BACK\" )\n\t\t\t\t\t.assertThat( REASON12, ACTUAL_LIST_STATE3, EXPECTED_LIST_STATE3 );\n\n\t\t\t// reporting and asserting checkpoints\n\n\t\t\tSiteSessionManager.get().assertAllCheckpoints();\n\t\t}\n\t\tcatch ( WebDriverException | AssertionError e )\n\t\t{\n\t\t\tthrow new ApplicationException( SiteSessionManager.get().getDriver(), e );\n\t\t}\n\t}", "@Test\n public void testDAM30503002() {\n // Data preparation\n {\n clearAndCreateTestDataForBook();\n }\n\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n TodoListPage todoListPage = dam3IndexPage.dam30503002Click();\n\n // Assert the todo record count from DB table\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"3\"));\n assertThat(todoListPage.getIncompletTodoCount(), equalTo(\"7\"));\n assertThat(todoListPage.getTotalTodoCount(), equalTo(\"10\"));\n\n boolean isTodoPresent = todoListPage.isTodoDisplayed(\"0000000002\");\n\n assertThat(isTodoPresent, is(true));\n\n todoListPage.setTodoTitleContent(\"Todo 1\");\n todoListPage.setTodoCreationDate(\"2016-12-30\");\n\n todoListPage = todoListPage.searchByCriteriaBeanRetMap();\n\n // Assert the todo record count from DB table\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getIncompletTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getTotalTodoCount(), equalTo(\"2\"));\n\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000001\");\n assertThat(isTodoPresent, is(true));\n\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000010\");\n assertThat(isTodoPresent, is(true));\n\n // this todo does not meets the criteria.Hence not displayed.\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000002\");\n assertThat(isTodoPresent, is(false));\n }", "public ManagePropertiesPage reviewProrty(Hashtable<String, String> testData) throws Exception {\n\ttry{\n\t\tcheckElementExistence(driver,By.xpath(\"lblPptyAddressvalue\"),5);\n\t\t/*COC.webAdaptor(Actions.waitForObjectToLoad, \"lblPptyAddressvalue\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblPptybillinfo\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblPptyName\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblPptyNameValue\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblPptyAddress\");\n\t\tCOC.webAdaptor(Actions.waitForText, \"lblPptyAddressvalue\");\n\t\n\t\t\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblMasterAccntno\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblMasterAccntnoValue\");\n\t\tCOC.webAdaptor(Actions.waitForText, \"lblAcntBillgName\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblAcntBillgNameValue\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblAccntMailingadd\");\n\t\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblAccntMailingaddvalue\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblUnit\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblAddress\");\n\n\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblTermsAgg\");\n\t\t*/COC.webAdaptor(Actions.click, \"chkTermsAgg\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblName\");\n\t\tcheckElementExistence(driver,By.xpath(\"inputName\"),5);\n\t\tCOC.webAdaptor(Actions.setText, \"inputName\",testData.get(\"Name\"));\n\t\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblTitle\");\n\t\tcheckElementExistence(driver,By.xpath(\"inputTitle\"),5);\n\t\tCOC.webAdaptor(Actions.setText, \"inputTitle\", testData.get(\"Title\"));\n\t\t\n\t\t/*COC.webAdaptor(Actions.waitForObjectToLoad, \"lblEmail\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblEmailValue\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lnkBack\");\n\t\n\t*/\t\n\t\tcheckElementExistence(driver,By.xpath(\"btnSubmit\"),5);\n\t\t//COC.webAdaptor(Actions.waitForObjectToLoad, \"btnSubmit\");\n\t\tCOC.webAdaptor(Actions.click, \"btnSubmit\");\n\t\tThread.sleep(5000);\n\t\t\n\t/*\tFile scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\n\t\tFileUtils.copyFile(scrFile, new File(\"Screenshots//\" + this.getClass().getSimpleName() + \"_\" +System.currentTimeMillis() +\".png\"));\n\t\tCOCDriverScript.logMessage(\"testStepPass\", \"Selected New Property\");\n\t*/ }catch(Exception e){\n\t\tCOCDriverScript.logMessage(\"testStepFail\", \"Element not found\");\n\t\tSystem.out.println(e.getMessage());\n\t\te.printStackTrace();\n\t\tFile scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\n\t\tFileUtils.copyFile(scrFile, new File(\"Screenshots//\" + this.getClass().getSimpleName() + \"_\" +System.currentTimeMillis() +\".png\"));\n\t }\n\treturn new ManagePropertiesPage(driver, localData);\n}", "@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void TitileFieldErrorValidation(){\t\t\t \n\tReport.createTestLogHeader(\"Anonymous Submit meter read\", \"Verify the functionality of Title drop down and its appropriate error messages\");\n\tSMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"SAPSMRElectricityUserforsingleMeter\");\n\tnew SubmitMeterReadAction()\n\t.openSMRpage(\"Electricity\")\n\t.verifyAndValidateSMRTitleFieldContent(smrProfile); \n}", "@Test(timeout = 4000)\n public void test233() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.label();\n Component component1 = component0.code();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component1._isGeneratedId());\n }", "@Test\r\n\t\r\n\tpublic void reviewHotel() throws Throwable {\r\n\tTripAdvisorPage review=new TripAdvisorPage(driver);\r\n\t/*searching Club Mahindra */\r\n\treview.searchinTripAdvisor();\r\n\t/* review*/\r\n\treview.searchForReview();\r\n\t\r\n}", "@Test\n @TestLog(title = \"Test3\", id = \"444\")\n public void test3() {\n }", "public String verifyUserOnWomenPage(){\n WebElement womenPage = driver.findElement(By.cssSelector(\"div[class='breadcrumb clearfix'] a[title='Dresses']\"));\n String womenPageStatus = womenPage.getText();\n return womenPageStatus;\n }", "@Test\n public void testDAM32001001() {\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n // This call brings te order details from various tables into single entity using join\n OrderMB3ListPage orderMB3ListPage = dam3IndexPage.dam32001001Click();\n\n // Expected order details\n // the string is of the format\n // ORDER STATUS NAME, ITEM CODE, ITEM NAME, CATEGORY CODE, CATEGORY NAME, MEMO\n String expectedOrdeDetails = \"Order accepted, ITM0000001, Orange juice, CTG0000001, Drink, dummy1\";\n\n // get the details of the specified order in a single string\n String actualOrderDetails = orderMB3ListPage.getOrderDetails(1);\n\n // confirm the details of the order fetched from various tables\n assertThat(actualOrderDetails, is(expectedOrdeDetails));\n\n // confirmation for some more order details....\n\n expectedOrdeDetails = \"Stock checking, ITM0000002, NotePC, CTG0000002, PC, \";\n actualOrderDetails = orderMB3ListPage.getOrderDetails(2);\n assertThat(actualOrderDetails, is(expectedOrdeDetails));\n\n expectedOrdeDetails = \"Item Shipped, ITM0000003, Car, CTG0000003, Hot selling, dummy3\";\n actualOrderDetails = orderMB3ListPage.getOrderDetails(3);\n assertThat(actualOrderDetails, is(expectedOrdeDetails));\n\n expectedOrdeDetails = \"Order accepted, ITM0000001, Orange juice, CTG0000001, Drink, dummy4\";\n actualOrderDetails = orderMB3ListPage.getOrderDetails(4);\n assertThat(actualOrderDetails, is(expectedOrdeDetails));\n }", "@Test\n public void testDAM30401002() {\n // Data preparation\n {\n clearAndCreateTestDataForBook();\n }\n\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n TodoListPage todoListPage = dam3IndexPage.dam30401002Click();\n\n todoListPage.setTodoForSearch(\"0000000006\");\n\n TodoDetailsPage todoDetailsPage = todoListPage.asClauseRstSearch();\n\n assertThat(todoDetailsPage.getTodoTitle(), equalTo(\"Todo 6\"));\n assertThat(todoDetailsPage.getTodoID(), equalTo(\"0000000006\"));\n assertThat(todoDetailsPage.getTodoCategory(), equalTo(\"CA1\"));\n assertThat(todoDetailsPage.getTodoStatus(), equalTo(\"Complete\"));\n assertThat(todoDetailsPage.getTodoCreatedDate(), equalTo(\"2016/12/26\"));\n // initial version is 0\n assertThat(todoDetailsPage.getTodoVersion(), equalTo(\"1\"));\n }", "@Test\n public void titlesTest() {\n // TODO: test titles\n }", "@Test\n public void testDAM32101001() {\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n OrderMB3ListPage orderMB3ListPage = dam3IndexPage.dam32101001Click();\n\n String expectedOrdeDetails = \"Order accepted, ITM0000001, Orange juice, CTG0000001, Drink, dummy1\";\n\n // get the details of the specified order in a single string\n String actualOrderDetails = orderMB3ListPage.getOrderDetails(1);\n\n // confirm the details of the order fetched from various tables\n assertThat(actualOrderDetails, is(expectedOrdeDetails));\n\n orderMB3ListPage.setItemCode(\"ITM0000001\");\n\n orderMB3ListPage = orderMB3ListPage.fetchRelatedEntity();\n\n // Expected related entity category details\n String expRelatedEntityDet = \"CTG0000001, Drink\";\n\n String actRelatedEntityDet = orderMB3ListPage\n .getRelatedEntityCategoryDeatils(1);\n\n // confirmed realted entity details\n assertThat(actRelatedEntityDet, is(expRelatedEntityDet));\n\n }" ]
[ "0.58334756", "0.5536692", "0.54411995", "0.53805137", "0.5320334", "0.52856946", "0.5274893", "0.52525806", "0.52515036", "0.52359134", "0.5223127", "0.5222444", "0.5153064", "0.5139862", "0.51326156", "0.5124693", "0.5106821", "0.5103052", "0.51019394", "0.51007277", "0.5084841", "0.50845784", "0.50683475", "0.50645113", "0.5060699", "0.5057859", "0.5057437", "0.50561684", "0.5049623", "0.50398034", "0.50327045", "0.5025965", "0.5015936", "0.50157434", "0.50083864", "0.5000627", "0.49996278", "0.49943742", "0.49940962", "0.499133", "0.49911276", "0.49824697", "0.49797353", "0.49761683", "0.49707943", "0.496719", "0.49599186", "0.49562508", "0.4953322", "0.4942734", "0.493788", "0.49355477", "0.4933099", "0.49315327", "0.4928068", "0.4923496", "0.49226823", "0.4920762", "0.49148995", "0.49148965", "0.4914523", "0.49118027", "0.49076876", "0.4906728", "0.49059945", "0.49033186", "0.49021792", "0.489894", "0.4886274", "0.4880813", "0.48790762", "0.48698467", "0.48667812", "0.48666835", "0.48625776", "0.48621786", "0.48611698", "0.48534077", "0.4852025", "0.48517165", "0.48410714", "0.48356193", "0.48333827", "0.4831443", "0.48308617", "0.48274818", "0.48270616", "0.4825618", "0.48203933", "0.48199588", "0.48168838", "0.48157883", "0.48115402", "0.4810106", "0.48100388", "0.4808818", "0.48079848", "0.48058692", "0.48025513", "0.47960657", "0.47959018" ]
0.0
-1
_5: with default state. .id : bedroomsfive .value : 5 .title : .class : Html.LABEL .classIndex : 4
protected GuiTestObject bed_5() { return new GuiTestObject( getMappedTestObject("bed_5")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected GuiTestObject bed_4() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"bed_4\"));\n\t}", "private void updateAgilisaurusState() {\n this.age++;\n\n if (this.age == 30 && this.hasCapability(LifeStage.BABY)) {\n // grow up\n this.removeCapability(LifeStage.BABY);\n this.addCapability(LifeStage.ADULT);\n this.displayChar = 'D';\n }\n\n if (this.foodLevel > 0) {\n this.foodLevel--;\n }\n\n if (this.waterLevel > 0) {\n this.waterLevel--;\n }\n\n if (this.foodLevel < 30) {\n this.behaviour = new HungryBehaviour();\n }\n\n if (this.foodLevel > 50) {\n this.behaviour = new BreedBehaviour();\n }\n\n if (this.foodLevel == 0) {\n this.Starving();\n } else {\n this.starvationLevel = 0;\n }\n\n if (this.waterLevel < 30) {\n this.behaviour = new ThirstBehaviour();\n }\n\n if (this.waterLevel == 0) {\n this.Thirsting();\n } else {\n this.thirstLevel = 0;\n }\n }", "public nhanvien() {\n initComponents();\n laysodong();\n if(count % 5 ==0 )\n {\n sotrang = count/5;\n }\n else\n {\n sotrang=count/5 + 1;\n }\n DAO_NV.dolentable(tblnhanvien,1);\n lbltrang.setText(\"1\");\n lblsotrang.setText(\"1/\"+sotrang);\n jButton3.setEnabled(false);\n jButton1.setEnabled(false);\n \n \n \n \n\n }", "private DistributionState(int value, String name, String literal) {\r\n this.value = value;\r\n this.name = name;\r\n this.literal = literal;\r\n }", "int getStateValue1();", "int getStateValue();", "int getStateValue();", "int getStateValue();", "protected GuiTestObject bed_5(TestObject anchor, long flags) \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"bed_5\"), anchor, flags);\n\t}", "public void setStage(){\n if(id < 3)\n stage = 1;\n if(id >= 3 && id < 6)\n stage = 2;\n if(id >= 6 && id < 9)\n stage = 3;\n if(id >= 9)\n stage = 4;\n }", "private ModalityState(int value) { this.value = value; }", "@Override\n\tpublic String toString() {\treturn id + \" [\" + value + \"]\" ;}", "int getStateValue3();", "int getStateValue2();", "biker(int n,String ss)\r\n\t{\r\n\t\tbikeid=n;\r\n\t\tbikename=ss;\r\n\t\t\r\n\t}", "@Override\r\n\tpublic int id() {\n\t\treturn 4;\r\n\t}", "@Override\r\n public String storyID() {\r\n return \"HD\";\r\n }", "@Override\n public String getId() {\n return \"1\";\n }", "public void setBed(Integer bed) {\n this.bed = bed;\n }", "LabState state();", "public String getStateDescription() {\n return myID;\n }", "State(int numJunkPiles) {\n this.numJunkPiles = numJunkPiles;\n }", "private State5() {\n\t}", "public HotDogStand(int standId,int noHDS)//constructor that initializes both instance variables\n{\n\tsuper();//super constructor\n\tthis.standId = standId;//refers to this stand id\n\tthis.noHDS = noHDS;// refers to this stands number of hot dogs sold\n}", "@Override\r\n public void Story(){\r\n super.Story();\r\n System.out.println(\"=======================================================================================\");\r\n System.out.println(\"|| Arya harus bergegas untuk menyelamatkan seluruh warga. Dia tidak tau posisi warga ||\");\r\n System.out.println(\"|| yang harus diselamatkan ada pada ruangan yang mana. ||\");\r\n System.out.println(\"=======================================================================================\");\r\n }", "protected GuiTestObject bed_1() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"bed_1\"));\n\t}", "Model(String _name, int _value, int _id) {\n this.name = _name;\n this.value = _value;\n this.id = _id;\n }", "@Override\n int getStateToVisible() {\n return 2;\n }", "private RepresentacionGrafica(int value, String name, String literal) {\n\t\tthis.value = value;\n\t\tthis.name = name;\n\t\tthis.literal = literal;\n\t}", "public int getMyNumStates() { return myNumStates; }", "public StatefulComponentPage(int value) {\n\t\tsuper();\n\n\t\tcounterModel = new Model<Integer>(value);\n\n\t\tadd(new FeedbackPanel(\"feedback\"));\n\n\t\tadd(new Label(\"counter\", counterModel).setOutputMarkupId(true));\n\t\tadd(new AjaxLink<Integer>(\"up\") {\n\t\t\tprivate static final long serialVersionUID = 1L;\n\n\t\t\t@Override\n\t\t\tpublic void onClick(AjaxRequestTarget target) {\n\t\t\t\tFortuityTestApplication app = (FortuityTestApplication) getApplication();\n\n\t\t\t\ttry {\n\t\t\t\t\tapp.getEventBroker().dispatchEvent(new ExampleEvent());\n\t\t\t\t} catch (EventException e) {\n\t\t\t\t\terror(e.getMessage());\n\t\t\t\t\tlogger.error(e.getMessage(), e);\n\t\t\t\t}\n\n\t\t\t\tif (target != null) {\n\t\t\t\t\ttarget.add(getPage().get(\"counter\"));\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t});\n\n\t\tadd(new EventReceivingPanel(\"receiver\"));\n\t}", "public static void ViewNewBagType()\r\n{\r\n\r\n\r\n\tselectBagType(RandomString);\r\n\tSystem.out.println(\"BagTypeName Viewed Successfully\");\r\n\t\r\n}", "@Override\n public int getID() {\n return 7;\n }", "void display()\r\n\t{\r\n\t\tSystem.out.println(\"bikeid=\"+bikeid+\" bike name==\"+bikename);\r\n\t}", "String getSelectedStateName();", "@Override\n public String bite() {\n String bite = getName()+ \" bites \";\n return bite;\n }", "private EstimatingTechnique(int value, String name, String literal) {\r\n\t\tthis.value = value;\r\n\t\tthis.name = name;\r\n\t\tthis.literal = literal;\r\n\t}", "public int getState() {return state;}", "public int getState() {return state;}", "public static void buildStage2 ()\r\n {\r\n \r\n lgt.findParent(); //4\r\n lgt.findChild(0); //6\r\n lgt.insert(12);\r\n lgt.findParent();\r\n lgt.insert(13);\r\n lgt.findParent();\r\n lgt.insert(14);\r\n \r\n lgt.findRoot();\r\n lgt.findChild(0);//2\r\n lgt.findChild(0);//5\r\n lgt.insert(8);\r\n lgt.findParent();\r\n lgt.insert(9);\r\n lgt.findParent();\r\n lgt.insert(10);\r\n lgt.findParent();\r\n lgt.insert(11);\r\n \r\n }", "@Override\r\n public int identifier() {\r\n return 100;\r\n }", "protected GuiTestObject bed_3() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"bed_3\"));\n\t}", "public void setThisClassQuantity() {\n quantity = spinnerValue + \" pieces\";\n }", "public void setIdBoleta(int value) {\n this.idBoleta = value;\n }", "public MenuState(Nifty nifty) {\n\t\tsuper();\n\t\tthis.nifty = nifty;\n\t}", "public BSState() {\n this.playerTurn=1;\n this.p1TotalHits=0;\n this.p2TotalHits=0;\n this.shipsAlive=10;\n this.shipsSunk=0;\n this.isHit=false;\n this.phaseOfGame=\"SetUp\";\n this.shotLocations=null;\n this.shipLocations=null;\n this.shipType=1;\n this.board=new String[10][20];\n //this.player1=new HumanPlayer;\n //this.player2=new ComputerPlayer;\n\n }", "public String display(){\r\n\t\tif(this.AWD==true){\r\n\t\t\treturn super.display()+\" \"+model+\" \"+this.price+\"$ SF: \"+this.safetyRating+\" RNG: \" +this.maxRange+\" AWD\";\r\n\t\t}\r\n\t\telse{\r\n\t\t\treturn super.display()+\" \"+model+\" \"+this.price+\"$ SF: \"+this.safetyRating+\" RNG: \" +this.maxRange+\" 2WD\";\r\n\t\t}\r\n \r\n\t}", "public static int\ngetLightModel(SoState state) \n{ \n\t SoLazyElement elem = getInstance(state);\n\t return elem.coinstate.lightmodel;\n}", "@Override\n protected int getCodigoJuego() {\n return 5;\n }", "private String makeStateName(int id, boolean guided) {\n\n\t\tif (guided) {\n\t\t\treturn \"guided\" + id;\n\t\t}\n\n\t\treturn \"state\" + id;\n\t}", "public SceneLabelObjectState(){\n\t\tsuper();\n\t\tsuper.setObjectsPrimaryType(SceneObjectType.Label);\n\n\t}", "public Nest() {\r\n\t\tnestNo++;\r\n\t\tthis.setName(\"nest #\" + nestNo);\r\n\t}", "public ReservationUpdatePanel(int id) {\n initComponents();\n this.id = id;\n connectDB();\n String sql = \"SELECT * FROM CAR_Reserve WHERE ReserveID =\"+id;\n reserving_detail = db.queryRows(sql);\n int n = 0;\n for(HashMap i : reserving_detail){\n n++;\n }\n if(n>=1){\n setInitText();\n }\n }", "@Override\n protected void incrementStates() {\n\n }", "public SceneLabelObjectState(SceneDivObjectState state){\t\t\n\t\tsuper(state); //will create a SceneDivObjectState from the supplied state\n\t\tsuper.setObjectsPrimaryType(SceneObjectType.Label); //subtypes should also run this statement straight after the super command in order to override their parents type and set their own as the primary/\n\n\t\t//Clear css parameters from general settings passed to this\n\t\t//This is because Dialogue objects treats these differently.\n\t\t//We fill them up correctly when the dialogue specific stuff is processed\n\t\tCurrentBoxCSS=\"\";\n\n\t}", "public void fillIdentity() {\n\t\tString shipName = ship.getShipName();\n\t\tString name = shipsNameLabel.getText();\n\t\tshipsNameLabel.setText( name + shipName);\n\t\t\n\t\tdouble shipStatus = ship.getShipsStatus();\n\t\tString status = shipsStatusLabel.getText();\n\t\tshipsStatusLabel.setText( status + shipStatus + \"HP\");\n\t\t\n\t\tdouble shipCap = ship.getCapacity();\n\t\tString capacity = shipsCurrentCapacityLabel.getText();\n\t\tshipsCurrentCapacityLabel.setText(capacity + String.format(\"%.2f\", shipCap) + \"m^3\");\n\t\t\n\t\tint shipSpeed = ship.getShipsSpeed();\n\t\tString speed = shipsSpeedLabel.getText();\n\t\tshipsSpeedLabel.setText( speed + shipSpeed + \" km/day\");\n\t\t\n\t\tint shipCrew = ship.getCrew();\n\t\tString crew = crewsInShipLabel.getText();\n\t\tcrewsInShipLabel.setText(crew + shipCrew + \" people\");\n\t\t\n\t\tArrayList<Equipment> shipsEquipment = ship.getEquipment();\n\t\tArrayList<String> shipsEquipmentName = new ArrayList<String>();\n\t\tfor (Equipment equipment: shipsEquipment) {\n\t\t\tshipsEquipmentName.add(equipment.getName());\n\t\t}\n\t\tString equipments = shipsEquipmentLabel.getText();\n\t\tshipsEquipmentLabel.setText(equipments + shipsEquipmentName);\n\t\t\n\t}", "public Builder setDame(int value) {\n bitField0_ |= 0x00000100;\n dame_ = value;\n onChanged();\n return this;\n }", "void setId(int val);", "String getLabel();", "String getLabel();", "public String initialState() {\r\n\t\treturn \"CarPark [maxCarSpaces: \" + this.maxCarSpaces\r\n\t\t\t\t+ \" maxSmallCarSpaces: \" + this.maxSmallCarSpaces\r\n\t\t\t\t+ \" maxMotorCycleSpaces: \" + this.maxMotorCycleSpaces\r\n\t\t\t\t+ \" maxQueueSize: \" + this.maxQueueSize + \"]\";\r\n\t}", "public abstract String getLabel();", "public int getBedrooms(){\r\n return bedrooms;\r\n }", "public City(Integer aKey)\r\n {\r\n label = \" \";\r\n key = aKey;\r\n }", "@Override\n public int getId() {\n return 0;\n }", "protected int get_breeding_age()\n {\n return breeding_age;\n }", "public State () {\n\t\tthis.stateId = generateStateId();\n\t}", "public Group getGroup_5() { return cGroup_5; }", "public Group getGroup_5() { return cGroup_5; }", "public Group getGroup_5() { return cGroup_5; }", "void setDescription(State state);", "public static void Ln5() {\r\n EBAS.L5_Timestamp.setText(GtDates.ldate);\r\n \r\n EBAS.L5_First_Sku.setEnabled(false);\r\n EBAS.L5_Qty_Out.setEnabled(false);\r\n EBAS.L5_First_Desc.setEnabled(false);\r\n EBAS.L5_Orig_Sku.setEnabled(false);\r\n EBAS.L5_Orig_Desc.setEnabled(false);\r\n EBAS.L5_Orig_Attr.setEnabled(false);\r\n EBAS.L5_Orig_Size.setEnabled(false);\r\n EBAS.L5_Orig_Retail.setEnabled(false);\r\n EBAS.L5_Manuf_Inspec.setEnabled(false);\r\n EBAS.L5_New_Used.setEnabled(false);\r\n EBAS.L5_Reason_DropDown.setEnabled(false);\r\n EBAS.L5_Desc_Damage.setEnabled(false);\r\n EBAS.L5_Cust_Satisf_ChkBox.setEnabled(false);\r\n EBAS.L5_Warranty_ChkBox.setEnabled(false);\r\n \r\n try {\r\n upDB();\r\n } catch (ClassNotFoundException | SQLException ex) {\r\n Logger.getLogger(EBAS.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }", "public Integer getBed() {\n return bed;\n }", "public State getState(){return this.state;}", "protected AGG_State( String s )\n {\n name = s;\n nameHash.put( s, this );\n intValue = index;\n intHash.put( new Integer( intValue ), this );\n }", "private MsoSmartArtNodePosition(int value) { this.value = value; }", "public void baseLandID(){ \n Log1_AssetCountModel assetCount = new Log1_AssetCountModel();\n List count = assetCount.get();\n\n count.stream().forEach(row -> {\n HashMap hash = (HashMap) row;\n AssetLandCount_txt.setText((String.valueOf(hash.get(\"AssetLand\"))));\n });\n }", "public void setId(short value) {\n this.id = value;\n }", "private State(String name, int index) {\r\n \t\t\tthis.index = index;\r\n \t\t\tthis.name = name;\r\n \t\t}", "public void milage( ){\n\t\t\t int milage =450;\r\n\t\t\t System.out.println(\"bike has another property called milage ....\"+milage);\r\n\t\t\t \r\n\t\t }", "public void setNode_5(String node_5);", "public void setBet(int id, String s){\n\t\tallBets[id].setText(s);\t\t\n\t}", "public void skystonePos5() {\n }", "public void setDefilade(int defiladeState);", "public int getDefilade();", "int getDisplayValue();", "@Override\n\tpublic int getState() {\n\t\treturn 0;\n\t}", "public String idToState(int id);", "public static String getClassDescription() {\n return String.format(\"Start the game with +%d funds and +%d max ship shield\",\n FUNDS_BONUS, SHIELD_BONUS);\n }", "public T5 _5() {\n return _5;\n }", "@Override\n public String getName() {\n return \"Bishop\";\n }", "public void setM_Locator_ID (int M_Locator_ID)\n{\nset_Value (\"M_Locator_ID\", new Integer(M_Locator_ID));\n}", "public Bedroom(int number, int capacity , TypesOfBedrooms type, int nightlyrate) {\n super(capacity);\n this.number = number;\n this.type = type;\n this.nightlyrate = nightlyrate;\n this.guests = new ArrayList<Guest>();\n }", "public void updateState() {\n\t\tfloat uptime = .05f;\t\t\t// Amount of Time the up animation is performed\n\t\tfloat downtime = .35f;\t\t\t// Amount of Time the down animation is performed\n\t\tColor colorUp = Color.YELLOW;\t// Color for when a value is increased\n\t\tColor colorDown = Color.RED;\t// Color for when a value is decreased\n\t\tColor color2 = Color.WHITE;\t\t// Color to return to (Default Color. Its White btw)\n\t\t\n\t\t// Check to see if the Time has changed and we are not initializing the label\n\t\tif(!time.getText().toString().equals(Integer.toString(screen.getState().getHour()) + \":00\") && !level.getText().toString().equals(\"\")) {\n\t\t\t// Set the time label and add the animation\n\t\t\ttime.setText(Integer.toString(screen.getState().getHour()) + \":00\");\n\t\t\ttime.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorUp)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t} else if(time.getText().toString().equals(\"\")) {\n\t\t\t// First time setting the label, dont add the animation\n\t\t\ttime.setText(Integer.toString(screen.getState().getHour()) + \":00\");\n\t\t}\n\t\t\n\t\t// Check to see if the Level has changed and we are not initializing the label\n\t\tif(!level.getText().toString().equals(screen.getState().getTitle()) && !level.getText().toString().equals(\"\")) {\n\t\t\tlevel.setText(\"Level: \" + screen.getState().getTitle());\n\t\t\tlevel.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorUp)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t} else if(level.getText().toString().equals(\"\")) {\n\t\t\t// Initialize the level label\n\t\t\tlevel.setText(\"Level: \" + screen.getState().getTitle());\n\t\t}\n\t\t\n\t\t// Check to see if the XP has changed and we are not initializing the label\n\t\tif(!xp.getText().toString().equals(\"XP: \" + Integer.toString(screen.getState().getXp())) && !xp.getText().toString().equals(\"\")) {\n\t\t\txp.setText(\"XP: \" + Integer.toString(screen.getState().getXp()));\n\t\t\txp.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorUp)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t} else if(xp.getText().toString().equals(\"\")) {\n\t\t\t// Initialize the XP label\n\t\t\txp.setText(\"XP: \" + Integer.toString(screen.getState().getXp()));\n\t\t}\n\t\t\n\t\t// Check to see if the Money has changed and we are not initializing the label\n\t\tif(!money.getText().toString().equals(\"$\" + Double.toString(screen.getState().getMoney()) + \"0\") && !money.getText().toString().equals(\"\")) {\n\t\t\t\n\t\t\t// Check to see if the player's money went up. This is a mess but it works\n\t\t\t// Makes the change animation Yellow or Green depending on the change in money\n\t\t\tif(Double.parseDouble(money.getText().substring(1).toString()) <= screen.getState().getMoney())\n\t\t\t\tmoney.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorUp)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t\telse\n\t\t\t\tmoney.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorDown)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t\t\n\t\t\t// Set the label to the new money\n\t\t\tmoney.setText(\"$\" + Double.toString(screen.getState().getMoney()) + \"0\");\n\t\t\t\n\t\t} else if(money.getText().toString().equals(\"\")) {\n\t\t\t// Initialize the Money Label\n\t\t\tmoney.setText(\"$\" + Double.toString(screen.getState().getMoney()) + \"0\");\n\t\t}\n\t\t\n\t\t// Check to see if the Energy has changed and we are not initializing the label\n\t\tif(!energy.getText().toString().equals(\"E: \" + Integer.toString(screen.getState().getEnergy()) + \"/100\") && !energy.getText().toString().equals(\"\")) {\n\t\t\t\n\t\t\t// Changes the animation to Yellow or Red depending on the change in the energy value\n\t\t\tif(Integer.parseInt(energy.getText().substring(3).split(\"/\")[0].toString()) < screen.getState().getEnergy())\n\t\t\t\tenergy.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorUp)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t\telse\n\t\t\t\tenergy.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorDown)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t\t\n\t\t\t// Set the energy label\n\t\t\tenergy.setText(\"E: \" + Integer.toString(screen.getState().getEnergy()) + \"/100\");\n\t\t} else if(energy.getText().toString().equals(\"\")) {\n\t\t\t// Initialize the energy label if it isnt set\n\t\t\tenergy.setText(\"E: \" + Integer.toString(screen.getState().getEnergy()) + \"/100\");\n\t\t}\n\t\t\n\t\t// Get the current date.\n\t\tint[] curDate = screen.getState().getDate();\n\t\t\t\n\t\t// Check to see if the Date has changed and we are not initializing the label\n\t\tif(!date.getText().toString().equals(\"\" + curDate[2] + \"/\" + curDate[1] + \"/\" + curDate[0]) && !date.getText().toString().equals(\"\")) {\n\t\t\t// Set the date label and add the change animation\n\t\t\tdate.setText(\"\" + curDate[2] + \"/\" + curDate[1] + \"/\" + curDate[0]);\n\t\t\tdate.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorUp)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t} else if(date.getText().toString().equals(\"\")) {\n\t\t\t// Initialize the date label\n\t\t\tdate.setText(\"\" + curDate[2] + \"/\" + curDate[1] + \"/\" + curDate[0]);\n\t\t}\n\t\t\n\t\t// Set the log text\n\t\tlogLabel.setText(screen.getState().getLog());\n\t\t\n\t\t// Update the stats\n\t\tState state = screen.getState();\n\t\tstatsLabel.setText(\"XP: \" + state.getXp() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Level: \" + state.getLevel() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Title: \" + state.getTitle() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Popularity: \" + state.getPopularity() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Year \" + state.getDate()[0] + \" Month \" + state.getDate()[1] + \" Day \" + state.getDate()[2] + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Hour: \" + state.getHour() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Energy: \" + state.getEnergy() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Current Funds: \" + state.getMoney() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Money Earned: \" + state.getEarned_money() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Money Spent: \" + state.getSpent_money());\n\t}", "public int getDef(){\r\n return def;\r\n }", "public void levelUp1()\r\n {\r\n this.health = 900;\r\n Story.levelUp1Text();\r\n }", "private void setId(int value) {\n \n id_ = value;\n }", "protected AGG_State( String s, int i )\n {\n name = s;\n nameHash.put( s, this );\n intValue = i;\n intHash.put( new Integer( intValue ), this );\n }", "public Jugador(int dorsal)\n {\n Random rmd = new Random();\n edad = rmd.nextInt(23)+18 ;\n estadoForma = rmd.nextInt(11);\n int nom = rmd.nextInt(33);\n Nombres nomb = new Nombres();\n nombre = nomb.getNombre(nom);\n this.dorsal = dorsal;\n this.nombre = nombre;\n }", "public void setLabelEstados(int pokemon){\r\n if(pokemon ==0){\r\n if(pokemon_activo1.getConfuso() == true) vc.setjL_Estado1(\"Confuso\");\r\n else if(pokemon_activo1.getCongelado()== true) vc.setjL_Estado1(\"Congelado\");\r\n else if(pokemon_activo1.getDormido()== true) vc.setjL_Estado1(\"Dormido\");\r\n else if(pokemon_activo1.getEnvenenado()== true) vc.setjL_Estado1(\"Envenenado\");\r\n else if(pokemon_activo1.getParalizado()== true) vc.setjL_Estado1(\"Paralizado\");\r\n else if(pokemon_activo1.getQuemado()== true) vc.setjL_Estado1(\"Quemado\");\r\n else if(pokemon_activo1.getCongelado() == false && pokemon_activo1.getDormido() == false && pokemon_activo1.getEnvenenado() == false && \r\n pokemon_activo1.getParalizado() == false && pokemon_activo1.getQuemado() == false){\r\n vc.setjL_Estado1(\"Normal\");\r\n }\r\n }\r\n if(pokemon ==1){\r\n if(pokemon_activo2.getConfuso() == true) vc.setjL_Estado2(\"Confuso\");\r\n else if(pokemon_activo2.getCongelado()== true) vc.setjL_Estado2(\"Congelado\");\r\n else if(pokemon_activo2.getDormido()== true) vc.setjL_Estado2(\"Dormido\");\r\n else if(pokemon_activo2.getEnvenenado()== true) vc.setjL_Estado2(\"Envenenado\");\r\n else if(pokemon_activo2.getParalizado()== true) vc.setjL_Estado2(\"Paralizado\");\r\n else if(pokemon_activo2.getQuemado()== true) vc.setjL_Estado2(\"Quemado\");\r\n else if(pokemon_activo2.getCongelado() == false && pokemon_activo2.getDormido() == false && pokemon_activo2.getEnvenenado() == false && \r\n pokemon_activo2.getParalizado() == false && pokemon_activo2.getQuemado() == false){\r\n vc.setjL_Estado2(\"Normal\");\r\n }\r\n }\r\n }" ]
[ "0.510971", "0.5058283", "0.5055503", "0.5036451", "0.5023006", "0.501903", "0.501903", "0.501903", "0.5015224", "0.5011383", "0.49936497", "0.49703458", "0.49703053", "0.4955", "0.49466452", "0.49455464", "0.49389192", "0.4921534", "0.4904934", "0.49005538", "0.48991758", "0.4896628", "0.48946953", "0.48890767", "0.48873448", "0.4873247", "0.4849835", "0.484922", "0.4842235", "0.48380917", "0.483398", "0.48262683", "0.481966", "0.481743", "0.48150617", "0.4814687", "0.48095623", "0.4805897", "0.4805897", "0.48016626", "0.47935477", "0.47593695", "0.47581083", "0.47573248", "0.474866", "0.47471163", "0.47466823", "0.4744865", "0.47412077", "0.47402853", "0.472706", "0.47244963", "0.47241458", "0.47209904", "0.47128317", "0.4712102", "0.47069958", "0.46948218", "0.46902224", "0.46902224", "0.46882617", "0.46838558", "0.46831614", "0.46773496", "0.46773094", "0.4675822", "0.46755728", "0.46718982", "0.46718982", "0.46718982", "0.46709853", "0.4670154", "0.4662306", "0.46600127", "0.46598554", "0.46582326", "0.46575618", "0.46548772", "0.4654701", "0.46499866", "0.46499598", "0.4644419", "0.46371594", "0.46361744", "0.46332896", "0.46309757", "0.4630314", "0.46222693", "0.4622064", "0.46193507", "0.4614916", "0.46127838", "0.46016404", "0.45980135", "0.45972362", "0.4595778", "0.45926392", "0.45922837", "0.45842254", "0.4582887" ]
0.559609
0
_5: with specific test context and state. .id : bedroomsfive .value : 5 .title : .class : Html.LABEL .classIndex : 4
protected GuiTestObject bed_5(TestObject anchor, long flags) { return new GuiTestObject( getMappedTestObject("bed_5"), anchor, flags); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n public void ActionableTrainingTest() {\n WebElement title1 = driver.findElement(By.cssSelector(\"h3.uagb-ifb-title\"));\r\n \r\n //Assertion for title of the first info box\r\n Assert.assertEquals(title1.getText(), \"Actionable Training\");\r\n \r\n //Print heading of the first info box\r\n Reporter.log(\"Heading is: \" + title1.getText(), true);\r\n }", "protected GuiTestObject bed_5() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"bed_5\"));\n\t}", "@Test\n public void test085() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Checkbox checkbox0 = new Checkbox(errorPage0, \">}\\\"_\", \">}\\\"_\");\n String[] stringArray0 = new String[6];\n Checkbox checkbox1 = (Checkbox)checkbox0.attributes(stringArray0);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertFalse(checkbox1._isGeneratedId());\n }", "@Test\n public void test094() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Hidden hidden0 = new Hidden(errorPage0, \"\", \"\");\n Image image0 = new Image(hidden0, \"\", \"\");\n Label label0 = (Label)errorPage0.ins((Object) image0);\n Block block0 = (Block)errorPage0.h3();\n Label label1 = (Label)errorPage0.u((Object) errorPage0);\n assertTrue(label1._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "public static void viewPage(WebDriver driver, String sTestCaseName) throws Exception{\r\n\t\r\n\t\t//Check that all of the elements of that are expected are displayed\r\n\t\tObjects_Job_Completion_Summary_Page.lbl_Summary(driver).isDisplayed();{\r\n\t\tLog.info(sTestCaseName + \" | Summary label displayed as expected\");\r\n\t\t}\r\n\r\n\t\tif (\"Exchange_1_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t||\"INST_14_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t||\"Exchange_19_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t||\"Exchange_1_End_To_End_Spark_Chrome\".equals(sTestCaseName))\r\n\t\t{ \r\n\t\t\tObjects_Job_Completion_Summary_Page.lbl_Gas_Meter_Mprn(driver).isDisplayed();{\r\n\t\t\tLog.info(sTestCaseName + \" | Gas Meter MPRN label displayed as expected\");\r\n\t\t\t}\t\t\r\n\t\t}\r\n\t\telse if (\"Exchange_2_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"NMEX_5_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_15_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_20_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_11_End_To_End_Spark_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_2_End_To_End_Spark_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_5_End_To_End_Spark_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"FLTY_2_End_To_End_Spark_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_5_End_To_End_Spark_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_8_End_To_End_ECOT_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"NMEX_5_End_To_End_Spark_Chrome\".equals(sTestCaseName))\r\n\t\t{ \r\n\t\t\tObjects_Job_Completion_Summary_Page.lbl_Electricity_Meter_Mpan(driver).isDisplayed();{\r\n\t\t\tLog.info(sTestCaseName + \" | Electricity Meter MPAN label displayed as expected\");\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"Doing the elseif\"); \r\n\t\t}\r\n\t\telse if (\"Exchange_3_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_9_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_3_Elec_HAN_WAN_Checks_Page_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_3_Gas_Meter_Post_Installation_Gas_Tightness_Test_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_3_Gas_Meter_Pre_Installation_Gas_Tightness_Test_Failed_Test_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_3_Gas_Meter_Pre_Installation_Gas_Tightness_Test_Low_Pressure_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_3_Gas_Risk_Assessment_Gas_Abort_Low_Pressure_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_3_Gas_Risk_Assessment_Gas_Abort_Med_Pressure_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_3_Gas_SMeter_Post_Installation_Pressure_Drop_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_9_Elec_HAN_WAN_Checks_Page_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_9_Gas_Meter_Initial_Risk_Assessment_Gas_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_9_Gas_Meter_Post_Installation_Gas_Tightness_Test_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_9_Gas_Meter_Pre_Installation_Gas_Tightness_Test_Failed_Test_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_9_Gas_Meter_Pre_Installation_Gas_Tightness_Test_Low_Pressure_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_9_Gas_Risk_Assessment_Gas_Abort_Low_Pressure_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_9_Gas_Risk_Assessment_Gas_Abort_Med_Pressure_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"FLTY_17_Gas_Meter_Post_Installation_Gas_Tightness_Test_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"FLTY_17_Gas_Meter_Pre_Installation_Gas_Tightness_Test_Failed_Test_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"FLTY_17_Gas_Meter_Pre_Installation_Gas_Tightness_Test_Low_Pressure_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"FLTY_17_Gas_Risk_Assessment_Gas_Abort_Low_Pressure_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"FLTY_17_Gas_Risk_Assessment_Gas_Abort_Med_Pressure_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"FLTY_17_Gas_Suitable_For_Smart_Installation_Abort_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_21_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_16_End_To_End_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"Exchange_9_End_To_End_Spark_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"FLTY_17_End_To_End_Spark_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_3_End_To_End_ECOT_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_12_End_To_End_ECOT_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_12_Elec_HAN_WAN_Checks_Page_Abort_ECOT_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_12_Elec_Initial_Polarity_Check_At_Meter_Page_Abort_ECOT_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_12_Elec_Initial_Risk_Assessment_Page_Abort_ECOT_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_12_Elec_Risk_Assessment_Page_Abort_ECOT_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_12_Elec_Suitable_For_Smart_Installation_Page_Abort_ECOT_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_12_End_To_End_Found_Meter_ECOT_Chrome\".equals(sTestCaseName)\r\n\t\t\t\t|| \"INST_3_Elec_HAN_WAN_Checks_Page_Abort_ECOT_Chrome\".equals(sTestCaseName))\r\n\t\t{ \r\n\t\t\tObjects_Job_Completion_Summary_Page.lbl_Electricity_Meter_Mpan(driver).isDisplayed();{\r\n\t\t\tLog.info(sTestCaseName + \" | Electricity Meter MPAN label displayed as expected\");\r\n\t\t\t}\r\n\t\t \r\n\t\t\tObjects_Job_Completion_Summary_Page.lbl_Gas_Meter_Mprn(driver).isDisplayed();{\r\n\t\t\tLog.info(sTestCaseName + \" | Gas Meter MPRN label displayed as expected\");\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"Doing the elseif\"); \r\n\t\t} \r\n\t\telse \t\t\r\n\t\t{ \r\n\t\t\tSystem.out.println(\"Doing the else \"); \r\n\t\t}\t\t\t\t\t\t\r\n\t\tObjects_Job_Completion_Summary_Page.btn_Potential_Customer_Vulnerability_Identified_Yes(driver).isDisplayed();{\r\n\t\tLog.info(sTestCaseName + \" | Potential Customer Vulnerability Identified - Yes radio button displayed as expected\");\r\n\t\t}\r\n\t\t\r\n\t\tObjects_Job_Completion_Summary_Page.txt_Additional_Notes(driver).isDisplayed();{\r\n\t\tLog.info(sTestCaseName + \" | Additional notes textbox displayed as expected\");\r\n\t\t}\r\n\t\t\r\n\t\tObjects_Job_Completion_Summary_Page.btn_Customer_Agreement_Yes(driver).isDisplayed();{\r\n\t\tLog.info(sTestCaseName + \" | Customer Agreement - Yes radio button displayed as expected\");\r\n\t\t}\r\n\t\t\r\n\t\tObjects_Job_Completion_Summary_Page.btn_Customer_Agreement_No(driver).isDisplayed();{\r\n\t\tLog.info(sTestCaseName + \" | Customer Agreement - No radio button displayed as expected\");\r\n\t\t}\r\n\t\t\r\n\t\t\t\r\n\t\t//Take a screenshot to show what we've done\r\n\t\tUtils.takeScreenshot(driver, sTestCaseName + \"-viewPage\");\r\n\t\t\r\n\t//END OF VIEW PAGE METHOD\r\n\t}", "@org.testng.annotations.Test\n public void test17_3(){\n testInfo.id(\"test17_3\").suite(\"test_Inspiration\").name(\"Inspiration page from start + check blocks.\");\n photolab.forceStop();\n photolab.open();\n photolab.main.waitToLoad();\n photolab.main.selectCategoryBar(\"Inspiration\");\n photolab.main.selectBlock(\"Top\");\n photolab.main.selectBlock(\"Trending\");\n photolab.main.selectBlock(\"Recent\");\n photolab.main.tapMenu();\n photolab.menu.tapHome();\n }", "protected GuiTestObject title() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"title\"));\n\t}", "@Test(timeout = 4000)\n public void test196() throws Throwable {\n Hidden hidden0 = new Hidden((Component) null, \"(vLoO6y2\\\"Vht&{{\", \"(vLoO6y2\\\"Vht&{{\");\n Hidden hidden1 = (Hidden)hidden0.attribute(\"(vLoO6y2\\\"Vht&{{\", \"(vLoO6y2\\\"Vht&{{\");\n assertTrue(hidden1.isValid());\n }", "@Test\n public void test13() {\n List<String> name = response.extract().path(\"data.findAll{it.state=='MN'}.name\");\n System.out.println(\"------------------StartingTest---------------------------\");\n System.out.println(\"The store names where state is MN are :: \" + name);\n System.out.println(\"------------------End of Test---------------------------\");\n }", "@Test\n\t\t public void testLocationFive() {\n\t\t \tdriver.get(\"http://mq-devhost-lm52.ihost.aol.com:9002/us/nj/upper-montclair/preston-pl-valley-rd/\");\n\t\t \tAssertJUnit.assertEquals(Utils.getElementText(driver,PageLayoutSelectors.TOP_NAME),\"Preston Pl & Valley Rd\");\n\t\t }", "public SNGTestCases Options_TC1017() throws InterruptedException{\n \tString flavour = \"Electrical\";\n \t\n \tforDebugger();\n \twaitForElement(By.id(\"com.pointedsquares.gamy5.android:id/header_name\"),120);\n \ttry{\n \t\twaitForElement(By.xpath(\"//android.widget.TextView[contains(@text , 'Academics') and contains(@resource-id , 'itemTitle')]\") , 5);\n \t}catch(Exception ex){\n \t\tdriver.scrollTo(\"Academics\");\n \t}\n \tdriver.findElement(By.xpath(\"//android.widget.TextView[contains(@text , 'Academics') and contains(@resource-id , 'itemTitle')]/following-sibling::android.widget.TextView[contains(@text , 'More')]\")).click();\n \twaitForElement(By.id(\"com.pointedsquares.gamy5.android:id/search_all\"), 10);\n \tdriver.findElement(By.id(\"com.pointedsquares.gamy5.android:id/search_all\")).click();\n \tdriver.findElement(By.id(\"com.pointedsquares.gamy5.android:id/search_all\")).sendKeys(flavour);\n \tdriver.findElement(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'flavour_name_list') and contains(@text , 'Electrical Engineering')]\")).click();\n \twaitForElement(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'stake_amount') and contains(@text , '500')]\"),5);\n \tdriver.findElement(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'stake_amount') and contains(@text , '500')]\")).click();\n \twaitForElement(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'message_text') and contains(@text , 'You are about to play Electrical Engineering game with 500 coins stake.')]\"), 5);\n \tdriver.findElement(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'message_text') and contains(@text , 'You are about to play Electrical Engineering game with 500 coins stake.')]\")).click();\n \tdriver.findElement(By.id(\"com.pointedsquares.gamy5.android:id/positive_button\")).click();\n \twaitForVisibilityOf(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'response') and contains(@text , 'Finding room for you...')]\"));\n \tThread.sleep(5000);\n \ttry{\n \t\twaitForElement(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'response') and contains(@text , 'Still Waiting.....')]\") , 2);\n \t}catch(Exception ex){\n \t\t\n \t}\n \twaitForVisibilityOf(By.id(\"com.pointedsquares.gamy5.android:id/choice_linear\"));\n \tList<WebElement> choices = driver.findElements(By.xpath(\"//android.widget.LinearLayout[contains(@resource-id , 'choice_linear')]/*\"));\n \t\n \tboolean noOfChoice = true;\n \tif(choices.size()!=4){\n \t\t\n \t\tnoOfChoice = false;\n \t}\n \tassertTrue(noOfChoice , \"Choice not equal to 4\");\n \t\n \tThread.sleep(7000);\n \treturn new SNGTestCases(driver);\n }", "protected GuiTestObject bed_4() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"bed_4\"));\n\t}", "@Test\n public void test105() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = (Label)errorPage0.strong((Object) errorPage0);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(label0._isGeneratedId());\n }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n DynamicSelectModel dynamicSelectModel0 = new DynamicSelectModel();\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = new Label(errorPage0, dynamicSelectModel0);\n dynamicSelectModel0.setComponent(label0);\n Component component0 = dynamicSelectModel0.getComponent();\n assertEquals(\"Label_1\", component0.getComponentId());\n }", "@Test(timeout = 4000)\n public void test219() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = new Label(errorPage0, errorPage0);\n label0.map(\"org.mvel.conversion.LongCH$1\");\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(label0._isGeneratedId());\n }", "@Test(timeout = 4000)\n public void test277() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n errorPage0.strike();\n Component component0 = errorPage0.legend();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component0._isGeneratedId());\n }", "@Test(timeout = 4000)\n public void test334() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = new Label(errorPage0, errorPage0);\n Component component0 = errorPage0.legend((Object) label0);\n assertTrue(component0._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "@Test\n public void test100() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Block block0 = (Block)errorPage0.li();\n Label label0 = (Label)errorPage0.label((Object) null);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(label0._isGeneratedId());\n }", "private void commonLoadTestForHtml(){\n\t\tWebElement tree = getElement(\"id=tree\");\n\t\tlog(\"Found Element for id=tree \" + tree.toString());\n\n\t\t//Make sure News attributes are correct\n\t\tWebElement news = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#news']['title']\\\"}\");\n\t\tAssert.assertNotNull(news);\n\t\tnews.click();\n\n\t\tString content = getText(RESULTS_CONTAINER);\n\t\tlog(\"content\"+content);\n waitForText(RESULTS_CONTAINER, \"id=news\");\n\n\n\t\t// Finds the blogs node and make sure its not null\n\t\twaitForElementVisible(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#blogs']['disclosure']\\\"}\");\n\t\tWebElement blogs = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#blogs']['disclosure']\\\"}\");\n\n\t\tlog(\"Node: \" + blogs);\n\n\t\tAssert.assertNotNull(blogs);\n\n\t\tblogs.click(); // This should expand the node blogs\n\n\t\t//Find the children of blogs node: Today\n\t\tWebElement today = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#today']['title']\\\"}\");\n\n\t\t//Find the children of blogs node: Previous\n\t\tWebElement previous = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#prev']['title']\\\"}\");\n\n\t\tWebElement previousDiscIcon = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#prev']['disclosure']\\\"}\");\n\n\t\tAssert.assertNotNull(previousDiscIcon);\n\n\t\t//Click on Previous Node\n\t\twaitForElementVisible(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#prev']['disclosure']\\\"}\");\n\t\tpreviousDiscIcon.click();\n\n\t\t//Find the children of previous node: Yesterday\n\t\tWebElement yesterday = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#yesterday']['title']\\\"}\");\n\n\t\t//Find the children of previous node: 2DaysBack\n\t\tWebElement twodaysback = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#daysback2']['title']\\\"}\");\n\n\n\n\n\t}", "@Test(timeout = 4000)\n public void test221() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n MockDate mockDate0 = new MockDate((-800), (-800), (-707), 75, 43);\n Label label0 = new Label(errorPage0, mockDate0);\n Component component0 = label0.b();\n component0._getVisibleForm(false);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component0._isGeneratedId());\n }", "protected GuiTestObject bed_3() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"bed_3\"));\n\t}", "protected GuiTestObject bed_1() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"bed_1\"));\n\t}", "@Test\n public void test120() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n ErrorPage errorPage1 = (ErrorPage)errorPage0.clasS((CharSequence) \"\");\n assertEquals(\"wheel_ErrorPage\", errorPage1.getComponentId());\n }", "@Test\n public void test091() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n LabeledWord labeledWord0 = new LabeledWord(\"\");\n Label label0 = (Label)errorPage0.s((Object) labeledWord0);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(label0._isGeneratedId());\n }", "@Test(timeout = 4000)\n public void test019() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.h5();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component0._isGeneratedId());\n }", "@Test\n public void testDAM30902001() {\n // Data preparation\n {\n clearAndCreateTestDataForBook();\n }\n\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n TodoListPage todoListPage = dam3IndexPage.dam30902001Click();\n\n // Confirmation of database state before batch update\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"3\"));\n assertThat(todoListPage.getIncompletTodoCount(), equalTo(\"7\"));\n assertThat(todoListPage.getTotalTodoCount(), equalTo(\"10\"));\n\n // add one sample todo which has some unique title from those of the\n // above\n // this is used to have some unique combination satisfying the choose\n // element other branch\n // Open todo registration page\n TodoRegisterPage registerTodoPage = todoListPage.registerTodo();\n\n // input todo details\n registerTodoPage.setTodoId(\"0000000025\");\n registerTodoPage.setTodoCategory(\"CA2\");\n registerTodoPage.setTodoTitle(\"sample todo\");\n\n registerTodoPage.addTodo();\n\n webDriverOperations.displayPage(getPackageRootUrl());\n\n dam3IndexPage = new DAM3IndexPage(driver);\n\n todoListPage = dam3IndexPage.dam30102002Click();\n\n todoListPage.setTodoTitleContent(\"Todo 1\");\n\n todoListPage.setTodoCreationDate(\"2016-12-30\");\n\n todoListPage = todoListPage.chooseElementUsageSearch();\n\n // Confirm the todos when title is specified from the choose element\n\n // Confirmation of database state before batch update\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getIncompletTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getTotalTodoCount(), equalTo(\"2\"));\n\n webDriverOperations.displayPage(getPackageRootUrl());\n\n dam3IndexPage = new DAM3IndexPage(driver);\n\n todoListPage = dam3IndexPage.dam30102002Click();\n\n todoListPage.setTodoCreationDate(\"2016-12-30\");\n\n todoListPage = todoListPage.chooseElementUsageSearch();\n\n // Confirm the todos when title is not specified from the choose\n // element.\n // here it takes default value specified in otherwise tag of choose\n // (sample)\n\n // Confirmation of database state before batch update\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"0\"));\n assertThat(todoListPage.getIncompletTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getTotalTodoCount(), equalTo(\"1\"));\n }", "public SNGTestCases Questions_TC1016() throws InterruptedException{\n \tString flavour = \"Electrical\";\n \t\n \tforDebugger();\n \twaitForVisibilityOf(By.id(\"com.pointedsquares.gamy5.android:id/header_name\"));\n \ttry{\n \t\twaitForElement(By.xpath(\"//android.widget.TextView[contains(@text , 'Academics') and contains(@resource-id , 'itemTitle')]\") , 5);\n \t}catch(Exception ex){\n \t\tdriver.scrollTo(\"Academics\");\n \t}\n \tdriver.findElement(By.xpath(\"//android.widget.TextView[contains(@text , 'Academics') and contains(@resource-id , 'itemTitle')]/following-sibling::android.widget.TextView[contains(@text , 'More')]\")).click();\n \twaitForElement(By.id(\"com.pointedsquares.gamy5.android:id/search_all\"), 10);\n \tdriver.findElement(By.id(\"com.pointedsquares.gamy5.android:id/search_all\")).click();\n \tdriver.findElement(By.id(\"com.pointedsquares.gamy5.android:id/search_all\")).sendKeys(flavour);\n \tdriver.findElement(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'flavour_name_list') and contains(@text , 'Electrical Engineering')]\")).click();\n \tdriver.findElement(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'stake_amount') and contains(@text , '500')]\")).click();\n \twaitForElement(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'message_text') and contains(@text , 'You are about to play Electrical Engineering game with 500 coins stake.')]\"), 5);\n \tdriver.findElement(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'message_text') and contains(@text , 'You are about to play Electrical Engineering game with 500 coins stake.')]\")).click();\n \tdriver.findElement(By.id(\"com.pointedsquares.gamy5.android:id/positive_button\")).click();\n \twaitForVisibilityOf(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'response') and contains(@text , 'Finding room for you...')]\"));\n \tThread.sleep(5000);\n \ttry{\n \t\twaitForElement(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'response') and contains(@text , 'Still Waiting.....')]\") , 2);\n \t}catch(Exception ex){\n \t\t\n \t}\n \twaitForVisibilityOf(By.xpath(\"//android.widget.LinearLayout[contains(@resource-id , 'question_one_linear')]/android.webkit.WebView/android.webkit.WebView/android.view.View\"));\n \t\n \tString contDesc = driver.findElement(By.xpath(\"//android.widget.LinearLayout[contains(@resource-id , 'question_one_linear')]/android.webkit.WebView/android.webkit.WebView/*\")).getAttribute(\"name\");\n \tThread.sleep(7000);\n \treturn new SNGTestCases(driver);\n }", "@Test\n public void underweightCategoryFirstRangeInKgAndCm() {\n\n driver.findElement(By.xpath(\"//input[@name='wg']\")).sendKeys(\"47\");\n driver.findElement(By.xpath(\"//input[@name='ht']\")).sendKeys(\"177\");\n driver.findElement(By.xpath(\"//input[@name='cc']\")).click();\n Assert.assertEquals(driver.findElement(By.name(\"desc\")).getAttribute(\"value\"), \"Your category is Underweight\",\n \"actual text is not: Your category is Underweight\");\n }", "@Test\n public void overweightCategorySecondRangeInKgAndCm() {\n\n driver.findElement(By.xpath(\"//input[@name='wg']\")).sendKeys(\"94\");\n driver.findElement(By.xpath(\"//input[@name='ht']\")).sendKeys(\"177\");\n driver.findElement(By.xpath(\"//input[@name='cc']\")).click();\n Assert.assertEquals(driver.findElement(By.name(\"desc\")).getAttribute(\"value\"), \"Your category is Overweight\",\n \"actual text is not: Your category is Overweight\");\n }", "@Test(priority=1)\r\n\tpublic void getTitle() {\r\n\t\tString title=driver.getTitle();\r\n\t\tSystem.out.println(( title).toUpperCase());\r\n\t}", "@Test(timeout = 4000)\n public void test217() throws Throwable {\n Hidden hidden0 = new Hidden((Component) null, \".*,r%\", \"Col component ca be added only to a TableBlock.\");\n Checkbox checkbox0 = new Checkbox(hidden0, \"Col component ca be added only to a TableBlock.\", \"Col component ca be added only to a TableBlock.\");\n Checkbox checkbox1 = (Checkbox)checkbox0.addInternalRenderHint(\"z%+/0u:g&ib%-bQ:\");\n assertEquals(\"Col component ca be added only to a TableBlock.\", checkbox1.getFormElementName());\n }", "@Test(timeout = 4000)\n public void test197() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Checkbox checkbox0 = new Checkbox(errorPage0, \"kiDz=CI9_ri)~odKM\", \"]1\");\n checkbox0.renderHint(\"]1\");\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "public SNGTestCases CoinsCollection_TC1014() throws InterruptedException{\n \tString flavour = \"Electrical\";\n \t\n \tforDebugger();\n \twaitForElement(By.id(\"com.pointedsquares.gamy5.android:id/header_name\"),120);\n \ttry{\n \t\twaitForElement(By.xpath(\"//android.widget.TextView[contains(@text , 'Academics') and contains(@resource-id , 'itemTitle')]\") , 5);\n \t}catch(Exception ex){\n \t\tdriver.scrollTo(\"Academics\");\n \t}\n \tdriver.findElement(By.xpath(\"//android.widget.TextView[contains(@text , 'Academics') and contains(@resource-id , 'itemTitle')]/following-sibling::android.widget.TextView[contains(@text , 'More')]\")).click();\n \twaitForElement(By.id(\"com.pointedsquares.gamy5.android:id/search_all\"), 10);\n \tdriver.findElement(By.id(\"com.pointedsquares.gamy5.android:id/search_all\")).click();\n \tdriver.findElement(By.id(\"com.pointedsquares.gamy5.android:id/search_all\")).sendKeys(flavour);\n \tdriver.findElement(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'flavour_name_list') and contains(@text , 'Electrical Engineering')]\")).click();\n \twaitForElement(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'stake_amount') and contains(@text , '500')]\"),5);\n \tdriver.findElement(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'stake_amount') and contains(@text , '500')]\")).click();\n \twaitForElement(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'message_text') and contains(@text , 'You are about to play Electrical Engineering game with 500 coins stake.')]\"), 5);\n \tdriver.findElement(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'message_text') and contains(@text , 'You are about to play Electrical Engineering game with 500 coins stake.')]\")).click();\n \tdriver.findElement(By.id(\"com.pointedsquares.gamy5.android:id/positive_button\")).click();\n \twaitForVisibilityOf(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'response') and contains(@text , 'Finding room for you...')]\"));\n \tThread.sleep(5000);\n \ttry{\n \t\twaitForElement(By.xpath(\"//android.widget.TextView[contains(@resource-id , 'response') and contains(@text , 'Still Waiting.....')]\") , 2);\n \t}catch(Exception ex){\n \t\t\n \t}\n \twaitForVisibilityOf(By.xpath(\"//android.widget.RelativeLayout[contains(@resource-id , 'topL')]\"));\n \tdriver.findElement(By.id(\"com.pointedsquares.gamy5.android:id/pool_currency_layout\"));\n \tList<WebElement> playerList = driver.findElements(By.xpath(\"//android.widget.LinearLayout[contains(@resource-id , 'player_list')]/*\"));\n \tint playerCount = 1;\n \tfor(int i = 0; i < 5; i++){\n \t\ttry{\n \t\t\tdriver.findElement(By.id(\"com.pointedsquares.gamy5.android:id/player_name_\"+i));\n \t\t\tplayerCount++;\n \t\t}catch(Exception ex){\n \t\t\t\n \t\t}\n \t}\n \tSystem.out.println(playerCount);\n \tdriver.findElement(By.id(\"com.pointedsquares.gamy5.android:id/pool_amount\"));\n \tThread.sleep(7000);\n \treturn new SNGTestCases(driver);\n }", "@Test\n public void normalCategorySecondRangeInKgAndCm() {\n\n driver.findElement(By.xpath(\"//input[@name='wg']\")).sendKeys(\"81\");\n driver.findElement(By.xpath(\"//input[@name='ht']\")).sendKeys(\"180\");\n driver.findElement(By.xpath(\"//input[@name='cc']\")).click();\n Assert.assertEquals(driver.findElement(By.name(\"desc\")).getAttribute(\"value\"), \"Your category is Normal\",\n \"actual text is not: Your category is Normal\");\n }", "@Test\n public void underweightCategorySecondRangeInKgAndCm() {\n\n driver.findElement(By.xpath(\"//input[@name='wg']\")).sendKeys(\"58.6\");\n driver.findElement(By.xpath(\"//input[@name='ht']\")).sendKeys(\"178\");\n driver.findElement(By.xpath(\"//input[@name='cc']\")).click();\n Assert.assertEquals(driver.findElement(By.name(\"desc\")).getAttribute(\"value\"), \"Your category is Underweight\",\n \"actual text is not: Your category is Underweight\");\n }", "@Test(priority = 66)\r\n@Epic(\"BILLS PAYMENT\")\r\n@Features(value = { @Feature(value = \"BUY GOODS USING MPESA\") })\r\n@Step (\"BUY GOODS USING MPESA\")\r\n@Severity(SeverityLevel.TRIVIAL)\r\npublic void Buy_Goods_Using_MPESA_Test_cases() {\n\tSystem.out.println(\"BUY GOODS AND SERVICES\");\t\r\n\tSystem.out.println(\"*************************(1)Running Buy Goods Using MPESA Testcases***********************************\");\r\n\r\n}", "@Test\n public void withAttribute_Matching() {\n assertEquals(1, onPage.withAttribute(\"lang\", MatchType.EQUALS, \"en-US\").size());\n assertEquals(3, onPage.get(\"div.article div\").withAttribute(\"class\", MatchType.EQUALS, \"content\").size());\n assertEquals(0, onPage.get(\"div.article div\").withAttribute(\"class\", MatchType.EQUALS, \" content\").size());\n }", "@Test\n public void TEST_FR_SELECTDIFFICULTY_UI() {\n GameData.gameDifficulty = \"unchanged\";\n ChooseDifficultyUI testUI = new ChooseDifficultyUI();\n clickButton(testUI, 1, \"easy\");\n clickButton(testUI, 2, \"medium\");\n clickButton(testUI, 3, \"hard\");\n }", "@Test\n public void obesityCategory() {\n\n driver.findElement(By.xpath(\"//input[@name='wg']\")).sendKeys(\"102.7\");\n driver.findElement(By.xpath(\"//input[@name='ht']\")).sendKeys(\"185\");\n driver.findElement(By.xpath(\"//input[@name='cc']\")).click();\n Assert.assertEquals(driver.findElement(By.name(\"desc\")).getAttribute(\"value\"), \"Your category is Overweight\",\n \"actual text is not: Your category is Overweight\");\n }", "@Test\n public void normalCategoryFirstRangeInKgAndCm() {\n\n\n driver.findElement(By.xpath(\"//input[@name='wg']\")).sendKeys(\"59.3\");\n driver.findElement(By.xpath(\"//input[@name='ht']\")).sendKeys(\"179\");\n driver.findElement(By.xpath(\"//input[@name='cc']\")).click();\n Assert.assertEquals(driver.findElement(By.name(\"desc\")).getAttribute(\"value\"), \"Your category is Normal\",\n \"actual text is not: Your category is Normal\");\n }", "@Test\n\t\t public void testLocationSix() {\n\t\t \tdriver.get(\"http://mq-devhost-lm52.ihost.aol.com:9002/us/nj/upper-montclair/\");\n\t\t \tAssertJUnit.assertEquals(Utils.getElementText(driver,PageLayoutSelectors.TOP_NAME),\"Upper Montclair\");\n\t\t }", "private void generateTestExecution(ITestResult result) throws IOException{\r\n\t\t//create the html file with current running class and test name\r\n\t\tfout = createRequiredFile(result.getName());\r\n\t\t\r\n\t\t//Write initial html codes neccessary for report\r\n\t\tstartHtmlPage(fout,result);\r\n\t\t\r\n\t\t//get all the attributes set during the test execution\r\n\t\tObject[] array = result.getAttributeNames().toArray();\r\n\t\t\r\n\t\t//Above got values are not in sort. So, Sorting that based on time\r\n\t\tArrays.sort(array);\r\n\t\t\r\n\t\t//Iterating the array value to generate report\r\n \tfor(Object name : array){\r\n \t\t\t\r\n \t\t\t//Each and every array value contains, All the info about the particular action\r\n \t\t\t//And Values combined using deliminator. So, split using deliminator\r\n\t \t\tString temp[] = result.getAttribute((String) name).toString().split(\"####\");\r\n\t \t\t\r\n\t \t\t//After split up, If the third array value contains 'Fail' means that step failed \r\n\t \t\tif(temp[3].toLowerCase().contains(\"fail\")){\r\n\t \t\t\t//If Fail create '<tr>' tag with 'status_failed' class(Which is used for create 'red' background color for failed cases)\r\n\t \t\t\tfout.println(\"<tr class=\\\"status_failed\\\" title=\\\"\\\" alt=\\\"\\\">\");\r\n\t \t\t\t\r\n\t \t\t\t//create the screenshot path\r\n\t \t\t\tString pathToScreenshot = \"../Failure_Screenshot/\"+temp[5]+\".jpg\";\r\n\t \t\t\t\r\n\t \t\t\t//creating mapping for failed step(Link to screen shot and embed the screenshot in that step)\r\n\t \t\t\ttemp[4] = \"<a href=\\'\" + pathToScreenshot + \"\\'> <img src=\\'\" + pathToScreenshot + \"\\' height=\\\"100\\\" width=\\\"100\\\"> </a>\";\r\n\r\n\t \t\t}\r\n\t \t\t\r\n\t \t\t//After split up, If the third array value contains 'title' means that is title\r\n\t \t\telse if(temp[3].toLowerCase().contains(\"title\")){\r\n\t \t\t\t//So, If it is a title then create '<tr>' tag with class name 'title'\r\n\t \t\t\tfout.println(\"<tr class=\\\"title\\\" title=\\\"\\\" alt=\\\"\\\">\");\r\n\t \t\t\tfout.println(\"<td colspan=\\\"6\\\">\"+ temp[0] + \"</td>\");\r\n\t \t\t\tfout.println(\"</tr>\");\r\n\t \t\t\tcontinue;\r\n\t \t\t}\r\n\t \t\t\r\n\t \t\t//Else status is passed\r\n\t \t\telse{\r\n\t \t\t\tfout.println(\"<tr class=\\\"status_passed\\\" title=\\\"\\\" alt=\\\"\\\">\");\r\n\t \t\t}\r\n\t \t\t\r\n\t \t\t//this will create separate '<td>' for messages inside the action\r\n\t \t\tfor(String temp1 : temp){\r\n\t \t\t\t\tfout.println(\"<td>\"+ temp1 + \"</td>\");\r\n\r\n\t \t\t}\r\n\t \t//end up '<tr>' tag\t\r\n\t \tfout.println(\"</tr>\");\r\n \t}\r\n \t\r\n \t//this used for write some end up html tags\r\n \tonFinish();\r\n \t\r\n\t}", "@Test\n public void testDAM31801001() {\n // Data preparation\n {\n clearAndCreateTestDataForBook();\n }\n\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n TodoListPage todoListPage = dam3IndexPage.dam31801001Click();\n\n todoListPage.setTodoTitleContent(\"Todo 1\");\n\n todoListPage.setTodoCreationDate(\"2016/12/30\");\n\n todoListPage = todoListPage.searchUsingClassTypeAlias();\n\n // Assert the todo record count from DB table\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getIncompletTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getTotalTodoCount(), equalTo(\"2\"));\n\n boolean isTodoPresent = todoListPage.isTodoDisplayed(\"0000000001\");\n assertThat(isTodoPresent, is(true));\n\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000010\");\n assertThat(isTodoPresent, is(true));\n\n // this todo does not meets the criteria.Hence not displayed.\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000002\");\n assertThat(isTodoPresent, is(false));\n }", "@Test\n\tpublic void TC_01_Web_Element() {\n\t\tdriver.findElement(By.id(\"\")); //**\n\t\t\n\t\t//Tim nhieu element\n\t\tdriver.findElements(By.id(\"\"));//**\n\t\t\n\t\t//If chi thao tac vs element 1 lan thi ko can khai bao bien\n\t\tdriver.findElement(By.id(\"small-searchterms\")).sendKeys(\"Apple\");//**\n\t\t\n\t\t//If can thao tac element nhieu lan thi nen khai bao bien\n\t\tWebElement searchTextbox = driver.findElement(By.id(\"small-searchterms\"));\n\t\tsearchTextbox.clear();//**\n\t\tsearchTextbox.sendKeys(\"Apple\");\n\t\tsearchTextbox.getAttribute(\"value\");//**\n\t\t\n\t\t//driver.findElement(By.id(\"small-searchterms\")).clear();\n\t\t//driver.findElement(By.id(\"small-searchterms\")).sendKeys(\"Apple\");\n\t\t//driver.findElement(By.id(\"small-searchterms\")).getAttribute(\"value\");\n\t\t\n\t\t//Count co bao nhieu element thoa dieu kien\n\t\t//Verify so luong element tra ve nhu mong doi\n\t\t//Thao tac vs all cac loai element giong nhau trong 1 page (checkbox/textbox)\n\t\tList<WebElement> checkboxes = driver.findElements(By.xpath(\"//div[@class='inputs']/input[not(@type='checkbox')]\"));\n\t\t\n\t\t//Lay ra so luong\n\t\tAssert.assertEquals(checkboxes.size(), 6);\n\t\t\n\t\tWebElement singleElement = driver.findElement(By.className(\"\"));\n\t\t\n\t\t//Textbox TextArea/ Edittable dropdown\n\t\t//Du lieu duoc toan ven\n\t\tsearchTextbox.clear();\n\t\tsearchTextbox.sendKeys(\"\");\n\t\t\n\t\t//Button/Link/radio/checkbox/custom dropdown/..\n\t\tsingleElement.click();//**\n\t\t\n\t\t//Cac ham co tien to bat dau bang get lun lun tra ve du lieu \n\t\t//getTitle/ getCurrentUrl/ getPageSource/ getAttribute/ getCssValue/ getText/ get...\n\t\tsingleElement = driver.findElement(By.xpath(\"//input[@id='Firstname']\"));\n\t\tsingleElement.getAttribute(\"\");\n\t\t\n\t\t//Automation\n\t\tsingleElement = driver.findElement(By.xpath(\"//input[@id='small-searchterms']\"));\n\t\tsingleElement.getAttribute(\"placeholder\");\n\t\t//Search store\n\t\t\n\t\t//Lay ra gia tri cua cac thuoc tinh css thuong dung de test GUI\n\t\t//Font/Size/Color/Background/...\n\t\tsingleElement = driver.findElement(By.cssSelector(\"search-box-button\"));\n\t\tsingleElement.getCssValue(\"background-color\");//*\n\t\t//#4ab2f1\n\t\tsingleElement.getCssValue(\"text-transform\");\n\t\t//uppercase\n\t\t\n\t\t//Lay ra toa do element so voi page hien tai (get gox ben ngoai)\n\t\tsingleElement.getLocation();\n\t\t\n\t\t//lay ra kich thuoc cua element (rong x cao) -> get goc ben trong element\n\t\tsingleElement.getSize();\n\t\t\n\t\t//Location + size\n\t\tsingleElement.getRect();\n\t\t\n\t\t//Chup hinh loi => dua vao html export\n\t\tsingleElement.getScreenshotAs(OutputType.FILE);//*\n\t\t\n\t\t\n\t\t//id/class/css/name...//tu 1 element ko bik tagname -> lay ra duoc tagname truyen vao cho 1 locator khac\n\t\tsingleElement = driver.findElement(By.xpath(\"//div[@class='inputs']/input[not(@type='checkbox')]\"));\n\t\tString searchButtonTagname = singleElement.getTagName();//*\n\t\t\n\t\tsearchTextbox = driver.findElement(By.xpath(\"//\" + searchButtonTagname + \"[@class='inputs']/input[not(@type='checkbox')]\"));\n\t\t//input\n\t\t\n\t\t//xpath\n\t\t//tagname[@attribute='value']\n\t\t\n\t\t\n\t\t//lay ra text element (header/link/message/...)\n\t\tsingleElement.getText();//**\n\t\t\n\t\t//Cac ham co tien to la isXXX thi tra ve kieu Boolean (100%)\n\t\t//true/false\n\t\t\n\t\t//kiem tra xem 1 element la hien thi cho nguoi dung thao tac hay ko\n\t\t//true: dang hien thi\n\t\t//false: ko hien thi\n\t\tsingleElement.isDisplayed();//**\n\t\t\n\t\t//kiem tra xem 1 element la disable hay ko\n\t\t//disable: user ko thao tac duoc\n\t\t//true: ko thao tac duoc\n\t\t//false: co the thao tac\n\t\tsingleElement.isEnabled();//*\n\t\t\n\t\t//kiem tra xem 1 element da duoc chon roi hay chua\n\t\t//checkbox/ radio/ dropdown\n\t\t//true: da chon roi\n\t\t//false: chua duoc chon\n\t\tsingleElement.isSelected();//*\n\t\t\n\t\t//no thay cho hanh vi ENTER vao textbox/button\n\t\t//chi dung duoc trong form (Login/search/register/...)\n\t\tsingleElement.submit();\n\t\t\n\t\tsingleElement = driver.findElement(By.id(\"small-searchterms\"));\n\t\tsingleElement.sendKeys(\"Apple\");\n\t\tsingleElement.submit();\n\t\t\n\t\t\n\t\t\n\t}", "@Test\n public void testDAM31801002() {\n // Data preparation\n {\n clearAndCreateTestDataForBook();\n }\n\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n TodoListPage todoListPage = dam3IndexPage.dam31801002Click();\n\n todoListPage.setTodoTitleContent(\"Todo 1\");\n\n todoListPage.setTodoCreationDate(\"2016/12/30\");\n\n todoListPage = todoListPage.searchUsingOverwrittenTypeAliasName();\n\n // Assert the todo record count from DB table\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getIncompletTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getTotalTodoCount(), equalTo(\"2\"));\n\n boolean isTodoPresent = todoListPage.isTodoDisplayed(\"0000000001\");\n assertThat(isTodoPresent, is(true));\n\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000010\");\n assertThat(isTodoPresent, is(true));\n\n // this todo does not meets the criteria.Hence not displayed.\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000002\");\n assertThat(isTodoPresent, is(false));\n }", "@Test\n public void testDAM30901001() {\n // Data preparation\n {\n clearAndCreateTestDataForBook();\n }\n\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n TodoListPage todoListPage = dam3IndexPage.dam30901001Click();\n\n // Confirmation of database state before batch update\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"3\"));\n assertThat(todoListPage.getIncompletTodoCount(), equalTo(\"7\"));\n assertThat(todoListPage.getTotalTodoCount(), equalTo(\"10\"));\n\n todoListPage.selectCompleteStatRadio();\n\n todoListPage = todoListPage.ifElementUsageSearch();\n\n // Confirmation of database state before batch update\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"3\"));\n\n // 1 and 3 todos are incomplete. hence not displayed\n boolean isTodoPresent = todoListPage.isTodoDisplayed(\"0000000003\");\n assertThat(isTodoPresent, is(false));\n\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000001\");\n assertThat(isTodoPresent, is(false));\n // 10 todo is complete. hence displayed.\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000010\");\n assertThat(isTodoPresent, is(true));\n\n // default value of finished is now false.hence todos like 1,3 will be displayed\n // where as todo like 10 will not be displayed.\n todoListPage.selectInCompleteStatRadio();\n todoListPage = todoListPage.ifElementUsageSearch();\n\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000003\");\n assertThat(isTodoPresent, is(true));\n\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000001\");\n assertThat(isTodoPresent, is(true));\n // 10 todo is complete. hence displayed.\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000010\");\n assertThat(isTodoPresent, is(false));\n\n // scenario when finished property of criteria is null.\n\n }", "@Test(priority = 99)\r\n@Epic(\"BILLS PAYMENT\")\r\n@Features(value = { @Feature(value = \"SCHOOL FEES PAYMENTS\") })\r\n@Step (\"Verify that system is able to search and display correct school Name school code and Bank branch when user click on search for school functionality\")\r\npublic void Verify_that_system_is_able_to_search_and_display_correct_school_name_school_code_and_Bank_branch_when_user_click_on_search_for_school_functionality() {\n\tdriver.findElement(By.xpath(\"//a[contains(.,'Home')]\")).click();\r\n\tWebDriverWait wait = new WebDriverWait(driver, 15);\r\n\twait.until(ExpectedConditions.visibilityOfElementLocated(By.linkText(\"Bill Payment\")));\r\n\tdriver.findElement(By.linkText(\"Bill Payment\")).click();\r\n\tWebDriverWait wait1 = new WebDriverWait(driver, 15);\r\n\twait1.until(\r\n\t\tExpectedConditions.visibilityOfElementLocated(By.xpath(\"//div[text()=' Institutional Payments ']\")));\r\n\tdriver.findElement(By.xpath(\"//div[text()=' Institutional Payments ']\")).click();\r\n\tdriver.findElement(By.xpath(\"//div[@class='col-in schoolFee']\")).click();\r\n\tdriver.findElement(By.id(\"FORM_SF_SCHOOL_INFO-SEARCH_SCHOOL_BY\")).click();\r\n\t{\r\n\t WebElement dropdown = driver.findElement(By.id(\"FORM_SF_SCHOOL_INFO-SEARCH_SCHOOL_BY\"));\r\n\t dropdown.findElement(By.xpath(\"//option[. = 'Account Number']\")).click();\r\n\t}\r\n\tdriver.findElement(By.id(\"FORM_SF_SCHOOL_INFO-SEARCH_SCHOOL_BY\")).click();\r\n\tdriver.findElement(By.id(\"FORM_SF_SCHOOL_INFO-SF_ACCOUNT_NUMBER\")).click();\r\n\tdriver.findElement(By.id(\"FORM_SF_SCHOOL_INFO-SF_ACCOUNT_NUMBER\")).sendKeys(\"01129080146300\");\r\n\tdriver.findElement(By.id(\"FORM_SF_SCHOOL_INFO-SEARCH_SCHOOL\")).click();\r\n\tdriver.findElement(By.cssSelector(\".ct-formlayout-SCHOOL_NAME .ct-form__ip\")).click();\r\n\tdriver.findElement(By.cssSelector(\".ct-formlayout-SCHOOL_CODE .ct-form__ip\")).click();\r\n\tSystem.out.println(\"TC13 Verify_that_system_is_able_to_search_and_display_correct_school_name_school_code_and_Bank_branch_when_user_click_on_search_for_school_functionality |Success:\");\r\n\r\n\t}", "@Test\r\n\tpublic void testGetState() {\r\n\t}", "@Test\n public void test1() {\n FirefoxBinary binary =\n new FirefoxBinary(new File(FIREFOX_PATH));\n driver = TestBench.createDriver(\n new FirefoxDriver(binary, new FirefoxProfile()));\n setDriver(driver);\n getDriver().get(URL);\n ButtonElement button = $(ButtonElement.class).first();\n button.click();\n LabelElement label = $(LabelElement.class).id(\"result\");\n\n Assert.assertEquals(\"Thanks , it works!\",label.getText());\n driver.quit();\n }", "@Test\n public void test108() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Block block0 = (Block)errorPage0.ul();\n Label label0 = (Label)errorPage0.big((Object) errorPage0);\n ActionExpression actionExpression0 = errorPage0.action(\"~Dci\");\n Label label1 = (Label)errorPage0.small((Object) actionExpression0);\n Block block1 = (Block)errorPage0.b();\n List<ActionExpression> list0 = errorPage0._getActions();\n block1._clear();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(block1._isGeneratedId());\n }", "@Test(timeout = 4000)\n public void test007() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.q();\n Component component1 = component0.span();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertEquals(\"Block_2\", component1.getComponentId());\n }", "@Test\n public void starvationCategory() {\n\n driver.findElement(By.xpath(\"//input[@name='wg']\")).sendKeys(\"47.5\");\n driver.findElement(By.xpath(\"//input[@name='ht']\")).sendKeys(\"178\");\n driver.findElement(By.xpath(\"//input[@name='cc']\")).click();\n Assert.assertEquals(driver.findElement(By.name(\"desc\")).getAttribute(\"value\"), \"Your category is Starvation\",\n \"actual text is not: Your category is Starvation\");\n }", "@Test(timeout = 4000)\n public void test233() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.label();\n Component component1 = component0.code();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component1._isGeneratedId());\n }", "@Test\n public void overweightCategoryFirstRangeInKgAndCm() {\n\n driver.findElement(By.xpath(\"//input[@name='wg']\")).sendKeys(\"85.6\");\n driver.findElement(By.xpath(\"//input[@name='ht']\")).sendKeys(\"185\");\n driver.findElement(By.xpath(\"//input[@name='cc']\")).click();\n Assert.assertEquals(driver.findElement(By.name(\"desc\")).getAttribute(\"value\"), \"Your category is Overweight\",\n \"actual text is not: Your category is Overweight\");\n }", "@Test\n public void testDAM30504001() {\n // Data preparation\n {\n clearAndCreateTestDataForBook();\n }\n\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n TodoListPage todoListPage = dam3IndexPage.dam30504001Click();\n\n // Assert the todo record count from DB table\n // These count are computed from the list returned and not fetched using query.\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"3\"));\n assertThat(todoListPage.getIncompletTodoCount(), equalTo(\"7\"));\n assertThat(todoListPage.getTotalTodoCount(), equalTo(\"10\"));\n\n // by default the radio button for incomplete todos is selected for retrievingits count.\n todoListPage = todoListPage.clickCountByStatusBtn();\n\n String todoCnt = todoListPage.getTodoCountwithStatus();\n\n // This count is fetched from db using count query : status in-complete.\n assertThat(todoCnt, equalTo(\"InComplete : 7\"));\n\n // Status selected as complete now\n todoListPage.selectCompleteStatRadio();\n\n todoListPage = todoListPage.clickCountByStatusBtn();\n todoCnt = todoListPage.getTodoCountwithStatus();\n\n // This count is fetched from db using count query : status complete.\n assertThat(todoCnt, equalTo(\"Completed : 3\"));\n\n }", "@Test\n public void test133() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = (Label)errorPage0.dd((Object) errorPage0);\n assertTrue(label0._isGeneratedId());\n \n List<Component> list0 = errorPage0._getChildren();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertEquals(1, list0.size());\n }", "@Test\n public void test2(){\n\n List<FitActivity> upper = fitActivityRepository.findAllByBodyPart(\"Upper\");\n for (FitActivity fitActivity : upper) {\n System.out.println(fitActivity.getName());\n\n }\n\n }", "@Test\n\t\t public void testLocationFour() {\n\t\t \tdriver.get(\"http://mq-devhost-lm52.ihost.aol.com:9002/us/nj/upper-montclair/bellevue-ave-valley-rd\");\n\t\t \tAssertJUnit.assertEquals(Utils.getElementText(driver,PageLayoutSelectors.TOP_NAME),\"Bellevue Ave & Valley Rd\");\n\t\t }", "@Test\n public void resalePropertyMatch() throws UiObjectNotFoundException {\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"btn_create_post\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"lbl_resale_prop\")).click();\n device.findObject(By.text(\"Search building name\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"input_search\")).setText(\"Icon\");\n device.wait(Until.findObject(By.text(\"Icon Linera\")), 10000);\n device.findObject(By.text(\"Icon Linera\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"dd_configuration\")).click();\n device.findObject(By.text(\"3 BHK\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"txt_pricing\")).click();\n device.findObject(By.text(\"7\")).click();\n device.findObject(By.text(\"5\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"Done\")).click();\n device.wait(Until.findObject(By.text(\"sq ft\")), 2000);\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"txt_carpet_area\")\n .childSelector(new UiSelector().className(Utils.EDIT_TEXT_CLASS))).setText(\"1200\");\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"dd_floor\")).click();\n device.findObject(By.text(\"Higher\")).click();\n device.findObject(By.text(\"4\")).click();\n UiScrollable postView = new UiScrollable(new UiSelector().scrollable(true));\n UiSelector postSelector = new UiSelector().text(\"POST\");\n postView.scrollIntoView(postSelector);\n device.findObject(postSelector).click();\n device.wait(Until.findObject(By.text(\"POST\").enabled(true)), 10000);\n String matchNameString = device.findObject(By.textContains(\"matches\")).getText().split(\" \")[0];\n device.findObject(By.text(\"POST\")).click();\n device.wait(Until.findObject(By.text(\"RESALE PROPERTY\")), 9000);\n Assert.assertNotEquals(\"Test Case Failed...No Match found\", \"no\", matchNameString.toLowerCase());\n String postMatchName = device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"lbl_name\")).getText();\n Assert.assertEquals(\"Test Case Failed...Match should have had been found with\", \"dialectic test\", postMatchName.toLowerCase());\n\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"btn_close\")).click();\n Utils.markPostExpired(device);\n }", "public TestID(int testID, String testType, String testState)\n {\n this.m_testID = testID;\n this.m_testType = testType;\n this.m_testState = testState;\n this.m_testStatus = \"\";\n\n }", "@Test(priority = 75)\r\n@Epic(\"BILLS PAYMENT\")\r\n@Features(value = { @Feature(value = \"BUY GOODS USING MPESA\") })\r\n@Step (\"END OF BUY GOODS USING MPESA TILL TESTCASES\")\r\n@Severity(SeverityLevel.TRIVIAL)\r\npublic void End_Buy_Goods_Using_MPESA_Test_cases() {\n\tSystem.out.println(\"*************************End of buy Goods Using Mpesa Test cases***********************************\");\r\n\r\n}", "public void testGetIdentifier() {\n\t\tassertEquals(item.getIdentifier(),\"cup8\");\r\n\t}", "@Test\n public void value() {\n assertEquals(\"4\", onPage.get(\"select\").withName(\"plain_select\").value());\n // Get the first selected value for a multiple select\n assertEquals(\"2\", onPage.get(\"select\").withName(\"multiple_select\").value());\n // Get the value of the option\n assertEquals(\"1\", onPage.get(\"select\").withName(\"plain_select\").get(\"option\").value());\n assertEquals(\" The textarea content. \", onPage.get(\"textarea\").value());\n assertEquals(\"Enter keywords here\", onPage.get(\"#keywords\").value());\n // Checkboxes and radiobuttons simply return the value of the first element,\n // not the first checked element\n assertEquals(\"google\", onPage.get(\"input\").withName(\"site\").value());\n }", "@Test(timeout = 4000)\n public void test237() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n MockGregorianCalendar mockGregorianCalendar0 = new MockGregorianCalendar();\n Component component0 = errorPage0.h5((Object) mockGregorianCalendar0);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component0._isGeneratedId());\n }", "@Test(timeout = 4000)\n public void test002() throws Throwable {\n Form form0 = new Form(\"z=OF5Ty4t\");\n String[] stringArray0 = new String[8];\n stringArray0[0] = \"java.lang.String@0000000005\";\n Component component0 = form0.attributes(stringArray0);\n assertEquals(\"z=OF5Ty4t\", component0.getComponentId());\n }", "@Test(timeout = 4000)\n public void test230() throws Throwable {\n Form form0 = new Form(\"println\");\n String[] stringArray0 = new String[0];\n Component component0 = form0.attributes(stringArray0);\n assertEquals(\"println\", component0.getComponentId());\n }", "@Test(timeout = 4000)\n public void test24() throws Throwable {\n DynamicSelectModel dynamicSelectModel0 = new DynamicSelectModel();\n DynamicSelectModel dynamicSelectModel1 = dynamicSelectModel0.enumeration(\"J[jnSW)BoPhq1+\");\n // Undeclared exception!\n dynamicSelectModel1.getLabel(180);\n }", "protected GuiTestObject bed_2() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"bed_2\"));\n\t}", "private void cs5() {\n\t\t\tif(ctx.widgets.widget(519).component(1).text().contains(\"You get some\")){\n\t\t\t\tctx.widgets.widget(519).component(2).click();\n\t\t\t}\n\t\t\tif(ctx.inventory.selectedItem().valid()){\n\t\t\t\tMethod.interactInventory(2511, \"Use\", \"Logs\");\n\t\t\t}else Method.interactInventory(590, \"Use\", \"Tinder box\");\n\t\t\t\n\t\t}", "@Test(timeout = 4000)\n public void test261() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.style();\n assertTrue(component0._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "@Test(timeout = 4000)\n public void test253() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.ol();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertEquals(\"Block_1\", component0.getComponentId());\n }", "@Test\n public void exerciseTwoTest() {\n driver.get(properties.getProperty(\"URL\"));\n\n // 2. Assert Browser title\n homePageAsserts.shouldReturnPageTitle();\n\n // 3. Perform login\n homePageSteps.login(properties.getProperty(\"username\"), properties.getProperty(\"password\"));\n\n // 4. Assert User name in the left-top side of screen that user is loggined\n homePageAsserts.shouldReturnUsernameText();\n\n // 5. Open through the header menu Service -> Different Elements Page\n homePageSteps.clickServiceButton();\n homePageSteps.openDifferentElementsPage();\n\n // 6. Select checkboxes\n differentElementsPageSteps.selectCheckbox(WATER.getValue());\n differentElementsPageSteps.selectCheckbox(WIND.getValue());\n\n // 7. Select radio\n differentElementsPageSteps.selectRadioButton(SELEN.getValue());\n\n // 8. Select in dropdown\n differentElementsPageSteps.selectDropdown(YELLOW.getValue());\n\n // 9.1 Assert that for each checkbox there is an individual log row\n // and value is corresponded to the status of checkbox\n differentElementsAsserts.shouldReturnSelectedCheckbox();\n differentElementsAsserts.shouldReturnLogRowText(WATER.getValue(), \"true\");\n differentElementsAsserts.shouldReturnLogRowText(WIND.getValue(), \"true\");\n\n // 9.2 Assert that for radio button there is a log row and value is corresponded to the status of radio button\n differentElementsAsserts.shouldReturnSelectedRadioButton();\n differentElementsAsserts.shouldReturnLogRowText(METAL.getValue(), SELEN.getValue());\n\n // 9.3 Assert that for dropdown there is a log row and value is corresponded to the selected value\n differentElementsAsserts.shouldReturnSelectedDropdown();\n differentElementsAsserts.shouldReturnLogRowText(COLORS.getValue(), YELLOW.getValue());\n }", "@Test(timeout = 4000)\n public void test011() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n errorPage0.placeholder(\"h4\");\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "public static void buildStage2 ()\r\n {\r\n \r\n lgt.findParent(); //4\r\n lgt.findChild(0); //6\r\n lgt.insert(12);\r\n lgt.findParent();\r\n lgt.insert(13);\r\n lgt.findParent();\r\n lgt.insert(14);\r\n \r\n lgt.findRoot();\r\n lgt.findChild(0);//2\r\n lgt.findChild(0);//5\r\n lgt.insert(8);\r\n lgt.findParent();\r\n lgt.insert(9);\r\n lgt.findParent();\r\n lgt.insert(10);\r\n lgt.findParent();\r\n lgt.insert(11);\r\n \r\n }", "@Test(priority=99, enabled = true)\n\t public void PhysicalLocationDropDown_ComponentGroups() throws IOException, InterruptedException {\n\t\t Thread.sleep(5000); \n\t\t // select the Properties set\t\n\t\t clickByXpath(\"//*[@id='content-wizard']/grouping-wizard/div/table/tbody/tr[1]/td[3]/div[1]/property-choice/div/div/a/div/b\");\n\t\t Thread.sleep(3000);\n\t\t \n\t\t //select the option\t \n\t\t clickByXpath(\"//*[@id='content-wizard']/grouping-wizard/div/table/tbody/tr[1]/td[3]/div[1]/property-choice/div/div/div/ul/li[2]\"); \n\t Thread.sleep(8000);\n\t \n\t // Click on Discard button\n\t clickByXpath(\"html/body/div[4]/div/div/div[2]/div/div/form/div[2]/a\");\n\t\t Thread.sleep(3000); \n\t \n\t\t //TestLink 440 - Testcase 5\n\t\t Thread.sleep(8000); \n\t\t// select the Properties set\t\n\t\t clickByXpath(\"//*[@id='content-wizard']/grouping-wizard/div/table/tbody/tr[1]/td[3]/div[1]/property-choice/div/div/a/div/b\");\n\t\t Thread.sleep(3000);\n\t\t \n\t\t //select the option\t \n\t\t clickByXpath(\"//*[@id='content-wizard']/grouping-wizard/div/table/tbody/tr[1]/td[3]/div[1]/property-choice/div/div/div/ul/li[2]\"); \n\t Thread.sleep(8000);\n\t \t\t \n\t //TestLink 434 - Testcase 2\n\t //Enter Abbreviation\n\t\t sendvaluebyxpath(\"html/body/div[4]/div/div/div[2]/div/div/form/div[1]/div/div/div/div/div[1]/div/input\", \"Edits\"); \n\t\t Thread.sleep(8000);\n\t\t \n\t\t //Enter Location\n\t\t sendvaluebyxpath(\"html/body/div[4]/div/div/div[2]/div/div/form/div[1]/div/div/div/div/div[2]/div/input\", \"Auto Locat\"); \n\t\t Thread.sleep(8000);\n\t\t \n\t\t // Click on Save button\n\t\t clickByXpath(\"//*[@id='submit-button']\");\n\t\t Thread.sleep(3000); \t \n\t\t \t\t \n\t }", "@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void smrAbove3MetersSearchOptions(){\n\tReport.createTestLogHeader(\"SubmitMeterRead\", \"Verifies smr landing page for more than 3 meters\");\n\t SMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"SmrLoggedInJourneyymorethan15accts\");\n\t new SubmitMeterReadAction()\n\t \t .BgbnavigateToLogin()\n\t .BgbloginDetails(smrProfile)\n\t .clickManageAccountLinkWithAccNo(smrProfile)\n\t .submitMeterReadLink(smrProfile)\n\t .smrMoreThan3MetersSearchOptions()\n\t .smrWhatsThisElectricity()\n\t .smrWhatsThisGas();\n\t // .smrDownloadTemplateLink(); \n}", "@Test\n public void test005() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n ElExpression elExpression0 = new ElExpression(\"</featureFactory>\");\n RadioGroup radioGroup0 = new RadioGroup(errorPage0, \"</featureFactory>\", \"</featureFactory>\", (ISelectModel) null, elExpression0);\n Label label0 = (Label)errorPage0.dfn((Object) radioGroup0);\n }", "@Override\r\n public String storyID() {\r\n return \"HD\";\r\n }", "@Test(timeout = 4000)\n public void test006() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n MockDate mockDate0 = new MockDate((-800), (-800), (-707), 75, 43);\n Label label0 = new Label(errorPage0, mockDate0);\n Component component0 = label0.b();\n Submit submit0 = new Submit(component0, \"The list of names must not be null\", \"\\f\");\n Component component1 = label0.strike((Object) submit0);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component1._isGeneratedId());\n }", "@Test\n public void testDAM31304001() {\n\n // Data preparation\n {\n clearAndCreateTestDataForBook();\n }\n\n {\n webDriverOperations.click(id(\"dam31304001\"));\n }\n\n {\n assertThat(webDriverOperations.getText(id(\"getDateResult\")), is(\n \"2016-12-29\"));\n assertThat(webDriverOperations.getText(id(\"getDateClassResult\")),\n is(\"java.time.LocalDate\"));\n assertThat(webDriverOperations.getText(id(\n \"getObjectCertification\")), is(\"true\"));\n }\n }", "@Test(timeout = 4000)\n public void test40() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n TextArea textArea0 = new TextArea(errorPage0, \">/_? 9[?}aX\", \"Tz\\\"qb2hEBW8P^&L\");\n Any any0 = new Any(textArea0, \"Tz\\\"qb2hEBW8P^&L\");\n DynamicSelectModel dynamicSelectModel0 = any0.selectModel();\n dynamicSelectModel0.setComponent(errorPage0);\n ErrorPage errorPage1 = (ErrorPage)dynamicSelectModel0.getComponent();\n assertEquals(\"div\", errorPage1.defaultTagName());\n }", "@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void ValidateGlobalSearchField()\n{\t\t\n\t Report.createTestLogHeader(\"Submit Meter Read\", \"Verify whether error message is getting displayed when Drop down is not selected\");\n\tSMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"GlobalSMRMultiDialMetersite\");\n\tnew SubmitMeterReadAction()\n\t.BgbnavigateToLogin()\n .BgbloginDetails(smrProfile)\n .BgbverifyAfterLogin()\n .clickSubmitMeterReadLink()\n .VerifyAndValidateSMRSearchField(); \n}", "@Test(timeout = 4000)\n public void test365() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.kbd((Object) errorPage0);\n assertTrue(component0._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "@Test\n public void test19(){\n // List<Integer> services = response.extract().path(\"data.findAll{it.services=='Samsung Experience'}.storeservices\");\n //List<HashMap<String, ?>> address = response.extract().path(\"data.findAll{it.service=='Samsung Experience'}.storeservices\");\n System.out.println(\"------------------StartingTest---------------------------\");\n System.out.println(\"The name of all services:\" );\n System.out.println(\"------------------End of Test---------------------------\");\n }", "@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void TitileFieldErrorValidation(){\t\t\t \n\tReport.createTestLogHeader(\"Anonymous Submit meter read\", \"Verify the functionality of Title drop down and its appropriate error messages\");\n\tSMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"SAPSMRElectricityUserforsingleMeter\");\n\tnew SubmitMeterReadAction()\n\t.openSMRpage(\"Electricity\")\n\t.verifyAndValidateSMRTitleFieldContent(smrProfile); \n}", "@Test(timeout = 4000)\n public void test005() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.sup();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component0._isGeneratedId());\n }", "@Test\n public void rentPropertyMatch() throws UiObjectNotFoundException {\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"btn_create_post\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"lbl_rental_prop\")).click();\n device.findObject(By.text(\"Search building name\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"input_search\")).setText(\"Icon\");\n device.wait(Until.findObject(By.text(\"Icon Viva\")), 10000);\n device.findObject(By.text(\"Icon Viva\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"dd_configuration\")).click();\n device.findObject(By.text(\"1 BHK\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"txt_pricing\")).click();\n device.findObject(By.text(\"2\")).click();\n device.findObject(By.text(\"5\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"Done\")).click();\n device.wait(Until.findObject(By.text(\"Yes\")), 2000);\n device.findObject(By.text(\"Yes\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"dd_furnishing\")).click();\n device.findObject(By.text(\"Fully-Furnished\")).click();\n UiScrollable postView = new UiScrollable(new UiSelector().scrollable(true));\n UiSelector postSelector = new UiSelector().text(\"POST\");\n postView.scrollIntoView(postSelector);\n device.findObject(postSelector).click();\n device.wait(Until.findObject(By.text(\"POST\").enabled(true)), 10000);\n String matchNameString = device.findObject(By.textContains(\"matches\")).getText().split(\" \")[0];\n device.findObject(By.text(\"POST\")).click();\n device.wait(Until.findObject(By.text(\"RENTAL PROPERTY\")), 9000);\n Assert.assertNotEquals(\"Test Case Failed...No Match found\", \"no\", matchNameString.toLowerCase());\n String postMatchName = device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"lbl_name\")).getText();\n Assert.assertEquals(\"Test Case Failed...Match should have had been found with\", \"dialectic test\", postMatchName.toLowerCase());\n\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"btn_close\")).click();\n Utils.markPostExpired(device);\n }", "@Test// Execute 5 \n\t public void googleTitleTest() {\n\t\t System.out.println(\"google Title test\");\n\t }", "@Test\n public void test125() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Any any0 = (Any)errorPage0.iframe();\n Block block0 = (Block)errorPage0.p();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(block0._isGeneratedId());\n }", "@Test(timeout = 4000)\n public void test344() throws Throwable {\n Hidden hidden0 = new Hidden((Component) null, \"(vLoO6y2\\\"Vht&{{\", \"(vLoO6y2\\\"Vht&{{\");\n Map<String, String> map0 = hidden0.getAttributes();\n assertEquals(1, map0.size());\n }", "@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void verifyMultiDialMeterBySitepostcode()\n{\t\t\n\t Report.createTestLogHeader(\"Submit Meter Read\", \"Verify whether Single or multiple Search results are getting displayed while giving valid Site postcode in search field\");\n\tSMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"GlobalSMRMultiDialMetersitepost\");\n\tnew SubmitMeterReadAction()\n\t\n\t.BgbnavigateToLogin()\n\t.BgbloginDetails(smrProfile)\n\t.BgbverifyAfterLogin()\n\t.clickSubmitMeterReadLink()\n\t.searchBySitepostcode(smrProfile)\n .enterGlobalMeterDials(smrProfile)\n .verifyMeterReadConfirmationTitle()\n\t.verifyAuditLeadTable(smrProfile);\n \n}", "@Test\n public void seeInfoAboutItemAisleFromDepartmentView() {\n String itemTest = \"Bell Peppers\";\n String aisleCheck = \"Aisle: 2\";\n String aisleDescriptionCheck = \"Aisle Description: Between Aisle 1 and Frozen Aisle\";\n onView(withId(R.id.navigation_home)).perform(click());\n onView(withId(R.id.card_view_department)).perform(click());\n onView(withText(\"Produce\")).perform(click());\n onView(withId(R.id.department_items_list_recycler_view)).perform(RecyclerViewActions.actionOnItemAtPosition(16, click()));\n onView(withText(\"VIEW MORE INFORMATION\")).perform(click());\n onView(withId(android.R.id.message)).check(matches(allOf(withSubstring(aisleCheck), isDisplayed())));\n onView(withId(android.R.id.message)).check(matches(allOf(withSubstring(aisleDescriptionCheck), isDisplayed())));\n }", "@Test\n public void test050() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = (Label)errorPage0.samp((Object) errorPage0);\n }", "public void test5(){\r\n\t\tZug zug1 = st.zugErstellen(1, 0, \"Zug 1\");\r\n\t\tZug zug2 = st.zugErstellen(0, 3, \"Zug 2\"); \r\n\t}", "@Test(timeout = 4000)\n public void test378() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n errorPage0._getXhtmlAttributes();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "public void WaterSupplyDetail(){\r\n\t\r\n\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- My Account should be clicked and user should get logged in\");\r\n\t\ttry{\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t/*driver.switchTo().defaultContent();\r\n\t\t\t\t\tsleep(3000);\r\n\t\t\t System.out.println(\"switched frame\"+ switchframe(\"PegaGadget2Ifr\"));\r\n\t\t\t click(locator_split(\"tabLocationAssesment\"));\r\n\t\t\t click(locator_split(\"linkclickLocation\"));*/\r\n\t\t\t // driver.findElement(By.xpath(\"//*[@tabindex='4']/a/span\")).click();\r\n\t\t\t // driver.findElement(By.xpath(\"//a[@title='Click here to open Location Assessment']\")).click();\r\n\t\t\tsleep(5000);\r\n\t\t\t driver.switchTo().defaultContent();\r\n\t\t\t System.out.println(\"switched frame\"+ switchframe(\"PegaGadget3Ifr\"));\r\n\t\t\t click(locator_split(\"tabwatersupply\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t click(locator_split(\"btnaddwatersupply\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t selectListValue(locator_split(\"listwatersupplytype\"), getValue(\"WaterSupplyType\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t selectListValue(locator_split(\"listpumpsassociated\"), getValue(\"PumpsAssociated\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t selectListValue(locator_split(\"listwateradequecy\"), getValue(\"Adequecy\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t click(locator_split(\"expandwatersupplydata\"));\r\n\t\t\t sleep(5000);\r\n\t\t\t click(locator_split(\"linkaddrow\"));\r\n\t\t\t sleep(5000);\r\n\t\t\t click(locator_split(\"linkaddrow\"));\r\n\t\t\t sleep(5000);\r\n \t\t\t \r\n\t\t\t sendKeys(locator_split(\"txtwatersupplytstname\"), getValue(\"WaterSupplyTestName\"));\r\n\t\t\t \r\n\t\t\t sleep(3000);\r\n\t\t\t sendKeys(locator_split(\"txtwatersupplytestdate\"),getValue(\"TestDate\"));\r\n\t\t\t //select[@id='WATER_SUPPLY_TYPE_CD']\r\n\t\t\t \r\n\t\t\t sleep(3000);\r\n\t\t\t sendKeys(locator_split(\"txtwatersupplytestedby\"),getValue(\"Testedby\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t \r\n\t\t\t sendKeys(locator_split(\"txtstatipressure\"), getValue(\"StaticPressure\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t \r\n\t\t\t sendKeys(locator_split(\"txtresidualpressure\"), getValue(\"ResidualPressure\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t sendKeys(locator_split(\"txtresidualflowrate\"), getValue(\"ResidualFlowRate\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t sendKeys(locator_split(\"txtpressureloss\"), getValue(\"PressureLoss\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t sendKeys(locator_split(\"txtlocationpressurereadings\"), getValue(\"PressureReadings\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t sendKeys(locator_split(\"txtlocationflowreading\"), getValue(\"FlowReadings\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t click(locator_split(\"btnwatersupplysave\"));\r\n\t\t\t sleep(5000);\r\n\t\t\t click(locator_split(\"checkboxclick\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t click(locator_split(\"expandwatersupplygraph\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t selectListValue(locator_split(\"listwatersupplygraph\"), getValue(\"GraphType\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t click(locator_split(\"btnwatersupplysaveall\"));\r\n\t\t\t \r\n\t\t\t// click(locator_split(\"btncopesave\"));\r\n\t\t\t sleep(5000);\r\n\t\t\t \r\n\t\t\t \r\n\t\t\t\t//clickbylinktext(\"No\");\r\n\t\t\t\r\n\t\t//switchframe(\"PegaGadget2Ifr\");\r\n\t\t//\tsleep(3000);\r\n\t\t//clickbylinktext(\"No\");\r\n\t\t\t\r\n\t\t\t\r\n\t\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Report tab is clicked and user is logged in\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Report tab is not clicked in\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"LoginLogout\")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\t}", "@Test\n public void testDAM30503001() {\n\n // Data preparation\n {\n clearAndCreateTestDataForBook();\n }\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n TodoListPage todoListPage = dam3IndexPage.dam30503001Click();\n\n // Assert the todo record count from DB table\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"3\"));\n assertThat(todoListPage.getIncompletTodoCount(), equalTo(\"7\"));\n assertThat(todoListPage.getTotalTodoCount(), equalTo(\"10\"));\n\n boolean isTodoPresent = todoListPage.isTodoDisplayed(\"0000000002\");\n\n assertThat(isTodoPresent, is(true));\n\n todoListPage.setTodoTitleContent(\"Todo 1\");\n todoListPage.setTodoCreationDate(\"2016-12-30\");\n\n todoListPage = todoListPage.searchByCriteriaBean();\n\n // Assert the todo record count from DB table\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getIncompletTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getTotalTodoCount(), equalTo(\"2\"));\n\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000001\");\n assertThat(isTodoPresent, is(true));\n\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000010\");\n assertThat(isTodoPresent, is(true));\n\n // this todo does not meets the criteria.Hence not displayed.\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000002\");\n assertThat(isTodoPresent, is(false));\n\n }", "private EstimatingTechnique(int value, String name, String literal) {\r\n\t\tthis.value = value;\r\n\t\tthis.name = name;\r\n\t\tthis.literal = literal;\r\n\t}", "@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void verifySearchMeterByAcctno()\n{\t\t\n\t Report.createTestLogHeader(\"Submit Meter Read\", \"Verify multiple Search results are getting displayed while giving valid Account number in search field\");\n\tSMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"GlobalSMRMultiDialMeter11\");\n\tnew SubmitMeterReadAction()\n\t\n\t.BgbnavigateToLogin()\n .BgbloginDetails(smrProfile)\n .BgbverifyAfterLogin()\n .clickSubmitMeterReadLink()\n .SearchByAccoutnNumber(smrProfile)\n .enterMeterDials(smrProfile)\n //.enterGlobalMeterDials(smrProfile)\n\t.verifyMeterReadConfirmationTitle()\n\t.verifyAuditLeadTable(smrProfile);\n \n}", "public StateTest(String testName) {\n super(testName);\n }" ]
[ "0.5704923", "0.5686469", "0.5456995", "0.54417723", "0.5437681", "0.54081887", "0.53876626", "0.5317258", "0.52605146", "0.5257161", "0.5239677", "0.5223939", "0.5201218", "0.5197559", "0.5196837", "0.5191538", "0.5178757", "0.51667094", "0.5163481", "0.51484597", "0.51455516", "0.51419955", "0.5139835", "0.51182204", "0.51160645", "0.51124525", "0.50988084", "0.5095646", "0.50919896", "0.5065422", "0.5064677", "0.5062173", "0.504741", "0.5044906", "0.50444007", "0.50274986", "0.5020071", "0.50197023", "0.5017629", "0.50167423", "0.5016734", "0.5014896", "0.50096476", "0.49958116", "0.4995368", "0.4992069", "0.4988688", "0.49768218", "0.49760804", "0.49757275", "0.4974534", "0.49741185", "0.49639815", "0.49607623", "0.4955788", "0.4954237", "0.4954036", "0.4950213", "0.49501982", "0.49481666", "0.494709", "0.49407142", "0.49356297", "0.49310726", "0.49234885", "0.49204826", "0.49055132", "0.4905042", "0.4903378", "0.49008337", "0.48961005", "0.48936343", "0.48895785", "0.48886868", "0.4884297", "0.48812297", "0.48773518", "0.4875217", "0.48751485", "0.48711056", "0.48682117", "0.48681968", "0.48639908", "0.48601896", "0.48594716", "0.48581246", "0.48578808", "0.48575047", "0.4856586", "0.48481086", "0.48457384", "0.4845656", "0.4843943", "0.48432806", "0.48423833", "0.48415443", "0.48396784", "0.48380923", "0.48338127", "0.48329118" ]
0.4944802
61
Bungalow: with default state. .id : propertybungalow .value : Bungalow .title : .class : Html.LABEL .classIndex : 4
protected GuiTestObject bungalow() { return new GuiTestObject( getMappedTestObject("bungalow")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public LabelValueBean() {\r\n\t\tsuper(\"\", \"\");\r\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn namaBulan;\n\t}", "@Override\n\t\t\t\t\tpublic String getValue(Bewerbung object) {\n\t\t\t\t\t\treturn \"Bewerbung bewerten\";\n\t\t\t\t}", "public String getLabel(){\n\t\treturn sAnzeige;\n\t}", "public BabbleValue() {}", "java.lang.String getBunho();", "java.lang.String getBunho();", "public BLabel()\n {\n this((String) null, WEST);\n }", "public abstract String getBeschreibung();", "public String getBeizhu() {\n return beizhu;\n }", "Object getDefaultLabel() {\n return null;\n }", "public ModelBolting(String bolting){\r\n\t\tthis.bolting = bolting;\r\n\t}", "public SceneLabelObjectState(){\n\t\tsuper();\n\t\tsuper.setObjectsPrimaryType(SceneObjectType.Label);\n\n\t}", "@Override\n\t\t\tpublic String getLabel() {\n\t\t\t\treturn null;\n\t\t\t}", "@Override\n\t\t\tpublic String getValue(Bewerbung object) {\n\t\t\t\treturn object.getBewerbungstext();\n\t\t\t}", "public abstract String getLabel();", "@Override\n public String bite() {\n String bite = getName()+ \" bites \";\n return bite;\n }", "public BLabel(String text)\n {\n this(text, WEST);\n }", "@Override//sobrescribir metodo\n public String getDescripcion(){\n return hamburguesa.getDescripcion()+\" + lechuga\";//retorna descripcion del oobj hamburguesa y le agrega +lechuga\n }", "String getLabel();", "String getLabel();", "public SimpleStringProperty titelProperty() {\n return titel;\n }", "public String getLabel(){\n return label;\n }", "private void asignaNombre() {\r\n\r\n\t\tswitch (this.getNumero()) {\r\n\r\n\t\tcase 1:\r\n\t\t\tthis.setNombre(\"As de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tthis.setNombre(\"Dos de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tthis.setNombre(\"Tres de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tthis.setNombre(\"Cuatro de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 5:\r\n\t\t\tthis.setNombre(\"Cinco de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 6:\r\n\t\t\tthis.setNombre(\"Seis de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 7:\r\n\t\t\tthis.setNombre(\"Siete de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 10:\r\n\t\t\tthis.setNombre(\"Diez de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 11:\r\n\t\t\tthis.setNombre(\"Once de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 12:\r\n\t\t\tthis.setNombre(\"Doce de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "public CategoryBuilder()\n {\n fUpperInclusive = true;\n fValue = \"\";\n }", "@Optional\n Property<String> bhkz();", "public void setBunga(int tipeBunga){\n }", "public Zadatak1() {\r\n\t\tSystem.out.println(ucitajBroj(\"1. broj\") + ucitajBroj(\"2. broj\"));\r\n\t}", "public Text createTitle() {\n\t\tText title = new Text(\"Selecteer Gasten\");\n\t\ttitle.getStyleClass().add(\"h1\");\n\t\ttitle.setFont(Font.font(22));\n\t\treturn title;\t\t\n\t}", "protected GuiTestObject title() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"title\"));\n\t}", "public int getBulanLahir() {\r\n return bulanLahir;\r\n }", "@JSProperty(\"showFirstLabel\")\n boolean getShowFirstLabel();", "@Override\n\tpublic String getLabel() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getLabel() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getLabel() {\n\t\treturn null;\n\t}", "private String formulerMonNom() {\n\t return \"Je m'appelle \" + this.nom; // appel de la propriété nom\n\t }", "@JsonGetter(\"label\")\r\n public String getLabel ( ) { \r\n return this.label;\r\n }", "biker(int n,String ss)\r\n\t{\r\n\t\tbikeid=n;\r\n\t\tbikename=ss;\r\n\t\t\r\n\t}", "@Override\n public String getLabel() {\n return label;\n }", "java.lang.String getLabel();", "public HTMLLabelElement getElementLabelNombre() { return this.$element_LabelNombre; }", "public HTMLLabelElement getElementLabelNombre() { return this.$element_LabelNombre; }", "public String getLabel();", "public String getLabel();", "public String getLabel();", "public String getLabel();", "public String getBunm() {\r\n return bunm;\r\n }", "private JLabel makeLabel(String title, boolean h1) {\n JLabel label = new JLabel(title);\n if (h1 == true) {//if the label is to be a title\n label.setForeground(themeColor);\n label.setFont(new Font(\"Terminal Bold\", Font.PLAIN, 48));\n } else {\n label.setFont(new Font(\"Terminal Bold\", Font.PLAIN, 25));\n label.setForeground(Color.white);\n }\n return label;\n\n }", "ReadOnlyStringProperty labelProperty();", "static String cetak_nama1() {\n return \"Nama Saya : Aprianto\";\r\n }", "Label getLabelRootRecherche();", "public void setIdBoleta(int value) {\n this.idBoleta = value;\n }", "public String getLabel(){\n\t\treturn label;\n\t}", "public BitacoraHotelera() {\n initComponents();\n tabla();\n this.setTitle(\"BITACORA DEL ÁREA DE HOTELERIA\");\n }", "public Builder setBunho(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n bunho_ = value;\n onChanged();\n return this;\n }", "public void generarCodigo(){\r\n this.setCodigo(\"c\"+this.getNombre().substring(0,3));\r\n }", "public String getBriefName() {\n return BRIEF_NAME;\n }", "Label getLabel();", "Label getLabel();", "Label getLabel();", "public BilanComptable() {\n initComponents();\n \n \n \n }", "private Label setTitle() {\r\n Label title = new Label(TITLE);\r\n title.setFont(Font.font(null, FontWeight.BOLD, null, TITLESZE));\r\n return title;\r\n }", "public Builder setBunho(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n bunho_ = value;\n onChanged();\n return this;\n }", "@javax.annotation.Nullable\n @ApiModelProperty(value = \"The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases.\")\n\n public String getBic() {\n return bic;\n }", "public Identity(){\n setLabel(\"I\");\n }", "public String getBKA001() {\n return BKA001;\n }", "public abstract String getLabelText();", "public void aapneBomberOgFlagg() {\n brettTapt = true;\n if (trykketPaa) {\n return;\n }\n // Viser alle bomber som ikke er flagget\n if (bombe && !flagget) {\n setText(\"x\");\n setBackground(new Background(new BackgroundFill(Color.GREY, CornerRadii.EMPTY, Insets.EMPTY)));\n }\n // Fargekoder om flaggingen var korrekt eller ikke\n if (flagget) {\n if (!bombe) {\n setBackground(new Background(new BackgroundFill(Color.PINK, CornerRadii.EMPTY, Insets.EMPTY)));\n } else {\n Color lysegroenn = Color.rgb(86, 130, 3, 0.3);\n setBackground(new Background(new BackgroundFill(lysegroenn, CornerRadii.EMPTY, Insets.EMPTY)));\n }\n }\n }", "public SimulasiBean() {\n this.crane = \"L\";\n this.tipePelayaran = \"d\";\n indonesianNumberConverter = new IndonesianNumberConverter();\n }", "String getLabel() {\n return label;\n }", "public java.lang.String getLabel();", "private String getLabel() {\n return this.label;\n }", "public LabelValueBean(String label, String value) {\n this.label = label;\n this.value = value;\n }", "public data_kelahiran() {\n initComponents();\n ((javax.swing.plaf.basic.BasicInternalFrameUI)this.getUI()).setNorthPane(null);\n autonumber();\n data_tabel();\n lebarKolom();\n \n \n \n }", "@Override\r\n public String getHasil() {\n return this.hasil;\r\n }", "public String getNombre() {return nombre;}", "private void createNodeLabel(NodeAppearanceCalculator nac) {\r\n\t PassThroughMapping passThroughMapping = new PassThroughMapping(\"\",\r\n\t ObjectMapping.NODE_MAPPING);\r\n\t \r\n\t // change canonicalName to Label\r\n//\t passThroughMapping.setControllingAttributeName\r\n//\t (\"canonicalName\", null, false);\r\n\t passThroughMapping.setControllingAttributeName\r\n// (Semantics.LABEL, null, false);\r\n\t (Semantics.CANONICAL_NAME, null, false);\r\n\t\r\n\t GenericNodeLabelCalculator nodeLabelCalculator =\r\n\t new GenericNodeLabelCalculator(\"SimpleBioMoleculeEditor ID Label\"\r\n\t , passThroughMapping);\r\n\t nac.setNodeLabelCalculator(nodeLabelCalculator);\r\n\t }", "public void tampilBuku() {\n System.out.println(\"ID : \" + this.id);\n System.out.println(\"Judul : \" + this.judul);\n System.out.println(\"Tahun Terbit: \" + this.tahun);\n }", "public Title()\r\n {\r\n startTag=\"TITLE\";\r\n endTag=\"/TITLE\"; \r\n }", "@Override\r\n\t\t\tpublic ObservableValue<String> call(CellDataFeatures<Teilnehmer, String> param) {\n\t\t\t\tif (param.getValue().getAktiv())\r\n\t\t\t\t return new SimpleStringProperty(\"ja\");\r\n\t\t\t\telse\r\n\t\t\t\t\treturn new SimpleStringProperty(\"nein\");\r\n\t\t\t}", "@JSProperty\n String getDefaultValue();", "public static String LangLabel(int X,int Y){\n \n if ( inicializovane == false){constructor();}\n \n String SlovoDaloSlovo = \"empty\";\n switch (X) {\n case 1: \n SlovoDaloSlovo=SK.get(Y);\n break;\n case 2:\n SlovoDaloSlovo=CZ.get(Y);\n break;\n case 3:\n SlovoDaloSlovo=EN.get(Y);\n break;\n }\n return SlovoDaloSlovo;\n}", "public String getLabel()\n { \n return label;\n }", "public Boleta(){\r\n\t\tsuper();\r\n\t}", "private void initBoutons() {\n bMonterDomaine.setText(null);\n bMonterCompte.setText(null);\n bDescendreDomaine.setText(null);\n bDescendreCompte.setText(null);\n bMonterDomaineMax.setText(null);\n bMonterCompteMax.setText(null);\n bDescendreDomaineMax.setText(null);\n bDescendreCompteMax.setText(null);\n bAjoutDomaine.setText(null);\n bAjoutCompte.setText(null);\n bModificationDomaine.setText(null);\n bModificationCompte.setText(null);\n bSuppressionDomaine.setText(null);\n bSuppressionCompte.setText(null);\n\n // Tootips\n bMonterDomaine.setTooltip(new Tooltip(\"Monter le domaine sélectionné d'une place\"));\n bMonterCompte.setTooltip(new Tooltip(\"Monter le compte sélectionné d'une place\"));\n bDescendreDomaine.setTooltip(new Tooltip(\"Descendre le domaine sélectionné d'une place\"));\n bDescendreCompte.setTooltip(new Tooltip(\"Descendre le compte sélectionné d'une place\"));\n bMonterDomaineMax.setTooltip(new Tooltip(\"Monter le domaine sélectionné jusqu'en première place\"));\n bMonterCompteMax.setTooltip(new Tooltip(\"Monter le compte sélectionné jusqu'en première place\"));\n bDescendreDomaineMax.setTooltip(new Tooltip(\"Descendre le domaine sélectionné jusqu'en dernière place\"));\n bDescendreCompteMax.setTooltip(new Tooltip(\"Descendre le compte sélectionné jusqu'en dernière place\"));\n bAjoutDomaine.setTooltip(new Tooltip(\"Ajouter un nouveau domaine\"));\n bAjoutCompte.setTooltip(new Tooltip(\"Ajouter un nouveau compte\"));\n bModificationDomaine.setTooltip(new Tooltip(\"Modifier le domaine sélectionné\"));\n bModificationCompte.setTooltip(new Tooltip(\"Modifier le compte sélectionné\"));\n bSuppressionDomaine.setTooltip(new Tooltip(\"Supprimer le domaine sélectionné\"));\n bSuppressionCompte.setTooltip(new Tooltip(\"Supprimer le compte sélectionné\"));\n\n // Gestion des activations de boutons\n bMonterDomaine.setDisable(true);\n bMonterCompte.setDisable(true);\n bDescendreDomaine.setDisable(true);\n bDescendreCompte.setDisable(true);\n bMonterDomaineMax.setDisable(true);\n bMonterCompteMax.setDisable(true);\n bDescendreDomaineMax.setDisable(true);\n bDescendreCompteMax.setDisable(true);\n bAjoutCompte.setDisable(true);\n bModificationDomaine.setDisable(true);\n bModificationCompte.setDisable(true);\n bSuppressionDomaine.setDisable(true);\n bSuppressionCompte.setDisable(true);\n\n // Setup les images\n bMonterDomaine.setGraphic(imageManager.constructImageViewFrom(ImageManager.ICONE_UP, 16, 16, true));\n bMonterCompte.setGraphic(imageManager.constructImageViewFrom(ImageManager.ICONE_UP, 16, 16, true));\n bDescendreDomaine.setGraphic(imageManager.constructImageViewFrom(ImageManager.ICONE_DOWN, 16, 16, true));\n bDescendreCompte.setGraphic(imageManager.constructImageViewFrom(ImageManager.ICONE_DOWN, 16, 16, true));\n bMonterDomaineMax.setGraphic(imageManager.constructImageViewFrom(ImageManager.ICONE_DOUBLE_UP, 16, 16, true));\n bMonterCompteMax.setGraphic(imageManager.constructImageViewFrom(ImageManager.ICONE_DOUBLE_UP, 16, 16, true));\n bDescendreDomaineMax.setGraphic(imageManager.constructImageViewFrom(ImageManager.ICONE_DOUBLE_DOWN, 16, 16, true));\n bDescendreCompteMax.setGraphic(imageManager.constructImageViewFrom(ImageManager.ICONE_DOUBLE_DOWN, 16, 16, true));\n bAjoutDomaine.setGraphic(imageManager.constructImageViewFrom(ImageManager.ICONE_ADD, 16, 16, true));\n bAjoutCompte.setGraphic(imageManager.constructImageViewFrom(ImageManager.ICONE_ADD, 16, 16, true));\n bModificationDomaine.setGraphic(imageManager.constructImageViewFrom(ImageManager.ICONE_INFO, 16, 16, true));\n bModificationCompte.setGraphic(imageManager.constructImageViewFrom(ImageManager.ICONE_INFO, 16, 16, true));\n bSuppressionDomaine.setGraphic(imageManager.constructImageViewFrom(ImageManager.ICONE_REMOVE, 16, 16, true));\n bSuppressionCompte.setGraphic(imageManager.constructImageViewFrom(ImageManager.ICONE_REMOVE, 16, 16, true));\n\n // Cas particulier: ecraserFiltre\n bEcraserFiltre.setText(null);\n bEcraserFiltre.setTooltip(new Tooltip(\"Retirer le filtre\"));\n bEcraserFiltre.setGraphic(imageManager.constructImageViewFrom(ImageManager.ICONE_REMOVE, 16, 16, true));\n }", "public EditorBambino() {\n /* rimanda al costruttore della superclasse */\n super(new JCheckBox());\n\n try { // prova ad eseguire il codice\n /* regolazioni iniziali di riferimenti e variabili */\n this.inizia();\n } catch (Exception unErrore) { // intercetta l'errore\n new Errore(unErrore);\n }// fine del blocco try-catch\n }", "public SceneLabelObjectState(SceneDivObjectState state){\t\t\n\t\tsuper(state); //will create a SceneDivObjectState from the supplied state\n\t\tsuper.setObjectsPrimaryType(SceneObjectType.Label); //subtypes should also run this statement straight after the super command in order to override their parents type and set their own as the primary/\n\n\t\t//Clear css parameters from general settings passed to this\n\t\t//This is because Dialogue objects treats these differently.\n\t\t//We fill them up correctly when the dialogue specific stuff is processed\n\t\tCurrentBoxCSS=\"\";\n\n\t}", "public SimpleStringProperty beschrijvingProperty() {\n return beschrijving;\n }", "public Harimau(String namaHarimau)\n\t{\n\t//mengisi pengubah yang diwarisi oleh kelas abstract\n\tHarimau.nama = namaHarimau;\n\t}", "@Override\n\tpublic String hablar() {\n\t\treturn \"Hola, soy un Buitre y sť volar\";\n\t}", "public String getDefault(){\n return _default;\n }", "@Override\n\n // <editor-fold defaultstate=\"collapsed\" desc=\" UML Marker \"> \n // #[regen=yes,id=DCE.E1700BD9-298C-DA86-4BFF-194B41A6CF5E]\n // </editor-fold> \n protected String getProperties() {\n\n return \"Size = \" + size + \", Index = \" + value;\n\n }", "@AnyLogicInternalCodegenAPI\n public int _InitInfected_DefaultValue_xjal() {\n final Main self = this;\n return \n1 \n;\n }", "public void bilan_zone() {\n\n JLabel lbl_Bilan = new JLabel(\"BILAN :\");\n lbl_Bilan.setBounds(40, 170, 119, 16);\n add(lbl_Bilan);\n\n bilan_content = new JTextArea();\n bilan_content.setBounds(100, 170, 200, 150);\n bilan_content.setText(rapport_visite.elementAt(DAO_Rapport.indice)[3]);\n bilan_content.setLineWrap(true);\n bilan_content.setWrapStyleWord(true);\n bilan_content.setEditable(false);\n add(bilan_content);\n\n\n }", "public String getLabel() {\n return label;\n }", "public String getBAA001() {\n return BAA001;\n }", "String nameLabel();", "String getDefaultValue();", "String getDefaultValue();", "private Label initLabel(DraftKit_PropertyType labelProperty, String styleClass) {\n PropertiesManager props = PropertiesManager.getPropertiesManager();\n String labelText = props.getProperty(labelProperty);\n Label label = new Label(labelText);\n label.getStyleClass().add(styleClass);\n return label;\n }" ]
[ "0.58677286", "0.5756311", "0.5624605", "0.55374134", "0.54502225", "0.5445728", "0.5445728", "0.5434329", "0.5263804", "0.5236693", "0.52338076", "0.5226297", "0.5206004", "0.516893", "0.5164181", "0.5161782", "0.5159775", "0.5141664", "0.5127275", "0.5120725", "0.5120725", "0.5117455", "0.5112318", "0.50761735", "0.50733733", "0.50683695", "0.50545275", "0.5045197", "0.50307935", "0.50298303", "0.50291896", "0.5017522", "0.50152904", "0.50152904", "0.50152904", "0.5012226", "0.50016844", "0.5001018", "0.49986756", "0.4996282", "0.49857423", "0.49857423", "0.49827585", "0.49827585", "0.49827585", "0.49827585", "0.49805105", "0.4975326", "0.49732605", "0.49715257", "0.49645194", "0.49561706", "0.49507105", "0.49482897", "0.49437177", "0.49337238", "0.493077", "0.49273166", "0.49273166", "0.49273166", "0.4919169", "0.49175516", "0.49149826", "0.4907775", "0.4905307", "0.49007475", "0.48988432", "0.48942414", "0.4892901", "0.48904842", "0.48812065", "0.4880118", "0.4876915", "0.48766467", "0.4874546", "0.48707944", "0.48696446", "0.48696092", "0.48687202", "0.4863186", "0.48594528", "0.4855629", "0.48509577", "0.484959", "0.4845926", "0.48458415", "0.48439178", "0.4843468", "0.48408794", "0.48388988", "0.48365098", "0.48255792", "0.4825204", "0.48232734", "0.48218954", "0.48217115", "0.4818031", "0.48174533", "0.48174533", "0.48158365" ]
0.5426032
8
Bungalow: with specific test context and state. .id : propertybungalow .value : Bungalow .title : .class : Html.LABEL .classIndex : 4
protected GuiTestObject bungalow(TestObject anchor, long flags) { return new GuiTestObject( getMappedTestObject("bungalow"), anchor, flags); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected GuiTestObject title() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"title\"));\n\t}", "protected GuiTestObject bungalow() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"bungalow\"));\n\t}", "@Test\r\n public void ActionableTrainingTest() {\n WebElement title1 = driver.findElement(By.cssSelector(\"h3.uagb-ifb-title\"));\r\n \r\n //Assertion for title of the first info box\r\n Assert.assertEquals(title1.getText(), \"Actionable Training\");\r\n \r\n //Print heading of the first info box\r\n Reporter.log(\"Heading is: \" + title1.getText(), true);\r\n }", "public BLabel(String text)\n {\n this(text, WEST);\n }", "@Test(priority=1)\r\n\tpublic void getTitle() {\r\n\t\tString title=driver.getTitle();\r\n\t\tSystem.out.println(( title).toUpperCase());\r\n\t}", "@Test\n public void testBishopLabel() {\n // initialize the complete chess board\n ChessBoard chessBoard = init(\"CHESS\");\n\n assertEquals(\"B\", chessBoard.getPiece(0, 2).getLabel());\n assertEquals(\"B\", chessBoard.getPiece(0, 5).getLabel());\n assertEquals(\"B\", chessBoard.getPiece(7, 2).getLabel());\n assertEquals(\"B\", chessBoard.getPiece(7, 5).getLabel());\n }", "@Override\n\t\t\t\t\tpublic String getValue(Bewerbung object) {\n\t\t\t\t\t\treturn \"Bewerbung bewerten\";\n\t\t\t\t}", "@Test\n public void getLabel() {\n cleanEntity0();\n\n ReflectionTestUtils.setField(entity0, \"label\", labelS);\n assertEquals(entity0.getLabel(), labelS);\n }", "public void testGetAbbr() {\r\n assertEquals(test1.getStateAbbr(), \"VM\");\r\n }", "@Test\n\tpublic void test_getTitle() {\n\tTvShow t1 = new TvShow(\"Sherlock\",\"BBC\");\n\tassertEquals(\"Sherlock\",t1.getTitle());\n }", "public BLabel()\n {\n this((String) null, WEST);\n }", "public void SetCheckoutRegistrationBusinessDesc(String Businesstype){\r\n\t\tString businetype = getValue(Businesstype);\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Registration Tile should be selected as \"+businetype);\r\n\t\ttry{\r\n\r\n\t\t\tsendKeys(locator_split(\"txtRegistrationBusinessDesc\"),businetype);\r\n\t\t\tSystem.out.println(\"Registration Tile is selected as \"+businetype);\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Registration Tile is selected as \"+businetype);\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Registration Tile is not selected as \"+businetype);\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"txtRegistrationBusinessDesc\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\r\n\r\n\t}", "protected GuiTestObject title(TestObject anchor, long flags) \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"title\"), anchor, flags);\n\t}", "@Test //TEST ONE\n void testUppercaseAgoutiColor()\n {\n Rabbit_RegEx rabbit_color = new Rabbit_RegEx();\n rabbit_color.setIsBaby(true);\n rabbit_color.setWeight(2);\n rabbit_color.setAge(4);\n rabbit_color.setColor(\"Agouti\");\n String expected = \"Is the rabbit a baby?: true\\n\" +\n \"How old is the rabbit?: 4 weeks\\n\" +\n \"Weight: 2.0 in ounces\\n\" +\n \"Color: Agouti\";\n assertEquals(expected, rabbit_color.toString());\n }", "@Test\n public void test085() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Checkbox checkbox0 = new Checkbox(errorPage0, \">}\\\"_\", \">}\\\"_\");\n String[] stringArray0 = new String[6];\n Checkbox checkbox1 = (Checkbox)checkbox0.attributes(stringArray0);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertFalse(checkbox1._isGeneratedId());\n }", "@Test\n public void test094() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Hidden hidden0 = new Hidden(errorPage0, \"\", \"\");\n Image image0 = new Image(hidden0, \"\", \"\");\n Label label0 = (Label)errorPage0.ins((Object) image0);\n Block block0 = (Block)errorPage0.h3();\n Label label1 = (Label)errorPage0.u((Object) errorPage0);\n assertTrue(label1._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "@Test\r\n\tpublic void testSetTitleEU() {\r\n\t\texternu1.setTitle(\"UnitExtern\");\r\n\t\tassertEquals(\"UnitExtern\", externu1.getTitle());\r\n\t}", "@Test //TEST SEVEN\n void testUppercaseBlueColor()\n {\n Rabbit_RegEx rabbit_color = new Rabbit_RegEx();\n rabbit_color.setIsBaby(true);\n rabbit_color.setWeight(2);\n rabbit_color.setAge(4);\n rabbit_color.setColor(\"Blue\");\n String expected = \"Is the rabbit a baby?: true\\n\" +\n \"How old is the rabbit?: 4 weeks\\n\" +\n \"Weight: 2.0 in ounces\\n\" +\n \"Color: Blue\";\n assertEquals(expected, rabbit_color.toString());\n }", "@Test\n public void test091() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n LabeledWord labeledWord0 = new LabeledWord(\"\");\n Label label0 = (Label)errorPage0.s((Object) labeledWord0);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(label0._isGeneratedId());\n }", "@Test\n public void test105() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = (Label)errorPage0.strong((Object) errorPage0);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(label0._isGeneratedId());\n }", "@Test\n public void testSetCellValueFactory() {\n writeBanner(getMethodName());\n }", "@Test\n public void titleTest() {\n // TODO: test title\n }", "interface WithTitle {\n /**\n * Specifies the title property: The title of the lab..\n *\n * @param title The title of the lab.\n * @return the next definition stage.\n */\n WithCreate withTitle(String title);\n }", "public String getTitle()\n {\n return \"Test XY Data\";\n }", "@Test\n public void test100() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Block block0 = (Block)errorPage0.li();\n Label label0 = (Label)errorPage0.label((Object) null);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(label0._isGeneratedId());\n }", "@Test(timeout = 4000)\n public void test219() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = new Label(errorPage0, errorPage0);\n label0.map(\"org.mvel.conversion.LongCH$1\");\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(label0._isGeneratedId());\n }", "@Test\n @Named(\"accessing values\")\n @Order(1)\n public void _accessingValues() throws Exception {\n StringConcatenation _builder = new StringConcatenation();\n _builder.append(\"package bootstrap\");\n _builder.newLine();\n _builder.newLine();\n _builder.append(\"describe \\\"Example Tables\\\"{\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"def myExamples{\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"| input | result | \");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"| \\\"Hello World\\\" | \\\"HELLO WORLD\\\" | \");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"| \\\"Hallo Welt\\\" | \\\"HALLO WELT\\\" |\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"} \");\n _builder.newLine();\n _builder.append(\" \");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"fact \\\"can be accessed via the table name\\\"{\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"myExamples.forEach[ \");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"input.toUpperCase should be result\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"] \");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"}\");\n _builder.newLine();\n _builder.append(\"}\");\n _builder.newLine();\n this._behaviorExecutor.executesSuccessfully(_builder);\n }", "@Test\r\n\tpublic void testSetTitleMU() {\r\n\t\tmeetingu1.setTitle(\"UnitMeeting\");\r\n\t\tassertEquals(\"UnitMeeting\", meetingu1.getTitle());\r\n\t}", "public Text createTitle() {\n\t\tText title = new Text(\"Selecteer Gasten\");\n\t\ttitle.getStyleClass().add(\"h1\");\n\t\ttitle.setFont(Font.font(22));\n\t\treturn title;\t\t\n\t}", "@Override\n\t\t\tpublic <V> V get(ConfigurationProperty<V> property) {\n\t\t\t\treturn (V) \"Unit Test Dummy Name\";\n\t\t\t}", "@Override\r\n\tpublic String getText(Object object) {\r\n\t\tAutoWiredType labelValue = ((Configuration)object).getDefaultAutowire();\r\n\t\tString label = labelValue == null ? null : labelValue.toString();\r\n\t\treturn label == null || label.length() == 0 ?\r\n\t\t\tgetString(\"_UI_Configuration_type\") :\r\n\t\t\tgetString(\"_UI_Configuration_type\") + \" \" + label;\r\n\t}", "@Test\n\t@DisplayName(\"test beer entity\")\n\tvoid test1() {\n\t\tassertNotNull(beer);\n\t\tassertEquals(\"Modus Hoperandi\", beer.getName());\n\t\tassertEquals(7, beer.getAlcoholContent());\n\t}", "@Test\n public void testSetTreeItemPropertyValueFactory() {\n writeBanner(getMethodName());\n }", "public abstract String getLabel();", "@Test //TEST FIVE\n void testUppercaseBlackOtterColor()\n {\n Rabbit_RegEx rabbit_color = new Rabbit_RegEx();\n rabbit_color.setIsBaby(true);\n rabbit_color.setWeight(2);\n rabbit_color.setAge(4);\n rabbit_color.setColor(\"Black Otter\");\n String expected = \"Is the rabbit a baby?: true\\n\" +\n \"How old is the rabbit?: 4 weeks\\n\" +\n \"Weight: 2.0 in ounces\\n\" +\n \"Color: Black Otter\";\n assertEquals(expected, rabbit_color.toString());\n }", "@Test //TEST ELEVEN\n void testUppercaseBlueSteelColor()\n {\n Rabbit_RegEx rabbit_color = new Rabbit_RegEx();\n rabbit_color.setIsBaby(true);\n rabbit_color.setWeight(2);\n rabbit_color.setAge(4);\n rabbit_color.setColor(\"Blue Steel\");\n String expected = \"Is the rabbit a baby?: true\\n\" +\n \"How old is the rabbit?: 4 weeks\\n\" +\n \"Weight: 2.0 in ounces\\n\" +\n \"Color: Blue Steel\";\n assertEquals(expected, rabbit_color.toString());\n }", "@Test\n void getName() {\n assertEquals(\"Process\", new Process() {{\n setName(\"Process\");\n }}.getName());\n }", "@Test\n\t@TestProperties(name = \"Set element ${by}:${locator} text to '${text}'\", paramsInclude = { \"by\", \"locator\", \"text\" })\n\tpublic void setElementText() {\n\t\tthrow new IllegalStateException(\"Unimplemenetd\");\n\t}", "@Test\n public void test082() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n TableBlock tableBlock0 = new TableBlock(errorPage0);\n Text text0 = (Text)errorPage0.htmlText((Object) errorPage0);\n assertTrue(text0.isHtml());\n \n Block block0 = (Block)tableBlock0.ol();\n Table table0 = new Table(errorPage0, \"wTiy\\\"J|XbJ~K.:zSMS\");\n TableRow tableRow0 = table0.tr();\n Label label0 = new Label((Component) tableBlock0, (Object) tableRow0);\n TableBlock tableBlock1 = (TableBlock)label0.end();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertFalse(table0._isGeneratedId());\n assertTrue(tableBlock0._isGeneratedId());\n assertTrue(label0._isGeneratedId());\n }", "String getLabel();", "String getLabel();", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n DynamicSelectModel dynamicSelectModel0 = new DynamicSelectModel();\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = new Label(errorPage0, dynamicSelectModel0);\n dynamicSelectModel0.setComponent(label0);\n Component component0 = dynamicSelectModel0.getComponent();\n assertEquals(\"Label_1\", component0.getComponentId());\n }", "public abstract String getLabelText();", "public Title()\r\n {\r\n startTag=\"TITLE\";\r\n endTag=\"/TITLE\"; \r\n }", "java.lang.String getBunho();", "java.lang.String getBunho();", "@Test\n public void testCreateView() {\n System.out.println(\"createView\");\n int i =1;\n AfinadorModelo modeloTest = new AfinadorModelo();\n AfinadorControlador controladorTest = new AfinadorControlador(modeloTest,i);\n String test = controladorTest.vista1.bpmOutputLabel.getText();\n if( test != \"APAGADO \")\n fail(\"The test case is a prototype.\");\n }", "@Test\n public void test1() {\n FirefoxBinary binary =\n new FirefoxBinary(new File(FIREFOX_PATH));\n driver = TestBench.createDriver(\n new FirefoxDriver(binary, new FirefoxProfile()));\n setDriver(driver);\n getDriver().get(URL);\n ButtonElement button = $(ButtonElement.class).first();\n button.click();\n LabelElement label = $(LabelElement.class).id(\"result\");\n\n Assert.assertEquals(\"Thanks , it works!\",label.getText());\n driver.quit();\n }", "public void testBidu(){\n\t}", "@Test\n\tpublic void testSetBehandelingNaam(){\n\t\tString expResult = \"Enkel\";\n\t\tinstance.setBehandelingNaam(\"Enkel\");\n\t\tassertTrue(expResult == Behandelcode.getBehandelingNaam());\n\t}", "@Test\n void setName() {\n assertEquals(\"Process\", new Process() {{\n setName(\"Process\");\n }}.getName());\n }", "public SimpleStringProperty titelProperty() {\n return titel;\n }", "public Bic asTestBic() {\n if (isTestBic()) {\n return this;\n }\n\n final StringBuilder testBicBuilder = new StringBuilder(normalizedBic);\n testBicBuilder.setCharAt((LOCATION_CODE_INDEX + LOCATION_CODE_LENGTH) - 1, TEST_BIC_INDICATOR);\n return new Bic(testBicBuilder.toString());\n }", "@Test\n public void testPersonReturn(){\n// System.out.println(\"------->\"+ mHbParam.getId());\n }", "@Test\n public void testGetLabelByName() {\n System.out.println(\"getLabelByName\");\n String labelName = \"yupiya\";\n String labelColor = \"#FF3300\";\n\n Label label = createlabel(labelColor, labelName);\n label = issueService.createLabel(label);\n Label result = issueService.getLabelByName(labelName);\n assertEquals(result.getId(), label.getId());;\n }", "@Override//sobrescribir metodo\n public String getDescripcion(){\n return hamburguesa.getDescripcion()+\" + lechuga\";//retorna descripcion del oobj hamburguesa y le agrega +lechuga\n }", "protected GuiTestObject bed_1() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"bed_1\"));\n\t}", "@Test //TEST NINE\n void testUppercaseBlueOtterColor()\n {\n Rabbit_RegEx rabbit_color = new Rabbit_RegEx();\n rabbit_color.setIsBaby(true);\n rabbit_color.setWeight(2);\n rabbit_color.setAge(4);\n rabbit_color.setColor(\"Blue Otter\");\n String expected = \"Is the rabbit a baby?: true\\n\" +\n \"How old is the rabbit?: 4 weeks\\n\" +\n \"Weight: 2.0 in ounces\\n\" +\n \"Color: Blue Otter\";\n assertEquals(expected, rabbit_color.toString());\n }", "@Override\n\t\t\tpublic String getValue(Bewerbung object) {\n\t\t\t\treturn object.getBewerbungstext();\n\t\t\t}", "@Test //TEST THREE\n void testUppercaseBlackColor()\n {\n Rabbit_RegEx rabbit_color = new Rabbit_RegEx();\n rabbit_color.setIsBaby(true);\n rabbit_color.setWeight(2);\n rabbit_color.setAge(4);\n rabbit_color.setColor(\"Black\");\n String expected = \"Is the rabbit a baby?: true\\n\" +\n \"How old is the rabbit?: 4 weeks\\n\" +\n \"Weight: 2.0 in ounces\\n\" +\n \"Color: Black\";\n assertEquals(expected, rabbit_color.toString());\n }", "@Test(timeout = 4000)\n public void test217() throws Throwable {\n Hidden hidden0 = new Hidden((Component) null, \".*,r%\", \"Col component ca be added only to a TableBlock.\");\n Checkbox checkbox0 = new Checkbox(hidden0, \"Col component ca be added only to a TableBlock.\", \"Col component ca be added only to a TableBlock.\");\n Checkbox checkbox1 = (Checkbox)checkbox0.addInternalRenderHint(\"z%+/0u:g&ib%-bQ:\");\n assertEquals(\"Col component ca be added only to a TableBlock.\", checkbox1.getFormElementName());\n }", "private JLabel makeLabel(String title, boolean h1) {\n JLabel label = new JLabel(title);\n if (h1 == true) {//if the label is to be a title\n label.setForeground(themeColor);\n label.setFont(new Font(\"Terminal Bold\", Font.PLAIN, 48));\n } else {\n label.setFont(new Font(\"Terminal Bold\", Font.PLAIN, 25));\n label.setForeground(Color.white);\n }\n return label;\n\n }", "@Override\n public String getTittle() {\n return tittleText;\n }", "protected GuiTestObject bed_5() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"bed_5\"));\n\t}", "@Test\n public void testPropertiesFactoryBean() {\n assertEquals(\"texte accentu\\u00e9\", this.prop1);\n }", "private Label setTitle() {\r\n Label title = new Label(TITLE);\r\n title.setFont(Font.font(null, FontWeight.BOLD, null, TITLESZE));\r\n return title;\r\n }", "public LabelValueBean() {\r\n\t\tsuper(\"\", \"\");\r\n\t}", "protected GuiTestObject html_main() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"html_main\"));\n\t}", "@Override\n\t\t\tpublic String getText(Object element) {\n\t\t\t\treturn \"test5\";\n\t\t\t}", "@Test\n public void underweightCategoryFirstRangeInKgAndCm() {\n\n driver.findElement(By.xpath(\"//input[@name='wg']\")).sendKeys(\"47\");\n driver.findElement(By.xpath(\"//input[@name='ht']\")).sendKeys(\"177\");\n driver.findElement(By.xpath(\"//input[@name='cc']\")).click();\n Assert.assertEquals(driver.findElement(By.name(\"desc\")).getAttribute(\"value\"), \"Your category is Underweight\",\n \"actual text is not: Your category is Underweight\");\n }", "public String getBeizhu() {\n return beizhu;\n }", "public BabbleValue() {}", "@Test\r\n\tpublic void testGetTitleMU() {\r\n\t\tassertEquals(\"MeetingUnit\", meetingu1.getTitle());\r\n\t}", "private Label initHBoxLabel(HBox container, DraftKit_PropertyType labelProperty, String styleClass) {\n Label label = initLabel(labelProperty, styleClass);\n container.getChildren().add(label);\n return label;\n }", "public abstract String getBeschreibung();", "@Test// Execute 5 \n\t public void googleTitleTest() {\n\t\t System.out.println(\"google Title test\");\n\t }", "@Test\n public void titlesTest() {\n // TODO: test titles\n }", "java.lang.String getLabel();", "public String getTest1() {\r\n return test1;\r\n }", "@Test public void gh1210() {\n execute(new CreateDB(NAME, \"<a><b>x</b></a>\"));\n query(\"/a[b = .[b = 'x']/b]/b/text()\", \"x\");\n }", "protected String elaboraTemplate(String testoIn) {\n return testoIn;\n }", "public void testSetTitle() {\n System.out.println(\"setTitle\");\n String s = \"\";\n Wizard instance = new Wizard();\n instance.setTitle(s);\n }", "@Test\n public void firstConfigTest(){\n Driver.getDriver().get(ConfigReader.getProperty(\"app_url\"));\n\n //Assert the title equals : Caretta Hotel - Home\n String actualTitle = Driver.getDriver().getTitle();\n String expectedTitle = ConfigReader.getProperty(\"app_title\");\n Assert.assertEquals(actualTitle,expectedTitle);\n }", "public String getLabel(){\n\t\treturn sAnzeige;\n\t}", "@Test\n public void obesityCategory() {\n\n driver.findElement(By.xpath(\"//input[@name='wg']\")).sendKeys(\"102.7\");\n driver.findElement(By.xpath(\"//input[@name='ht']\")).sendKeys(\"185\");\n driver.findElement(By.xpath(\"//input[@name='cc']\")).click();\n Assert.assertEquals(driver.findElement(By.name(\"desc\")).getAttribute(\"value\"), \"Your category is Overweight\",\n \"actual text is not: Your category is Overweight\");\n }", "void setDescription(State state);", "interface WithTitle {\n /**\n * Specifies the title property: The title of the lab..\n *\n * @param title The title of the lab.\n * @return the next definition stage.\n */\n Update withTitle(String title);\n }", "@Test\n void getAndSetDescription() {\n }", "@Ignore\r\n @Test\r\n public void testCreateEncodingsLabelBitString2()\r\n {\r\n System.out.println(\"testCreateEncodingsLabelBitString2\");\r\n HuffmanEncoder huffman = new HuffmanEncoder(p2, ensemble2);\r\n HuffmanNode root = huffman.createTree();\r\n EncodingsLabelTextCreator enc = new EncodingsLabelTextCreator(root);\r\n String expResult = \"{ a: 01, b: 00, c: 0 }\"; \r\n String result = enc.getLabelText();\r\n System.out.println(result);\r\n assertEquals(expResult, result);\r\n }", "private RLabel getBuildLabel() {\n if (buildLabel == null) {\n buildLabel = new RLabel();\n buildLabel.setText(\"<%= ivy.cms.co(\\\"/Dialogs/about/productBuild\\\") %>\");\n buildLabel.setStyleProperties(\"{/insetsTop \\\"2\\\"}\");\n buildLabel.setName(\"buildLabel\");\n }\n return buildLabel;\n }", "@Test //TEST TWO\n void testLowercaseAgoutiColor()\n {\n Rabbit_RegEx rabbit_color = new Rabbit_RegEx();\n rabbit_color.setIsBaby(true);\n rabbit_color.setWeight(2);\n rabbit_color.setAge(4);\n rabbit_color.setColor(\"agouti\");\n String expected = \"Is the rabbit a baby?: true\\n\" +\n \"How old is the rabbit?: 4 weeks\\n\" +\n \"Weight: 2.0 in ounces\\n\" +\n \"Color: agouti\";\n assertEquals(expected, rabbit_color.toString());\n }", "public String getLabel(){\n return label;\n }", "@Test\n public void test066() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = (Label)errorPage0.tt((Object) \"\");\n }", "@Ignore\r\n @Test\r\n public void testCreateEncodingsLabelBitString()\r\n {\r\n System.out.println(\"createEncodingsLabelBitString\");\r\n HuffmanEncoder huffman = new HuffmanEncoder(p, ensemble);\r\n HuffmanNode root = huffman.createTree();\r\n EncodingsLabelTextCreator enc = new EncodingsLabelTextCreator(root);\r\n String expResult = \"{ a: 01, b: 10, c: 11, d: 001, e: 000 }\"; \r\n String result = enc.getLabelText();\r\n System.out.println(result);\r\n assertEquals(expResult, result);\r\n }", "@Test //TEST EIGHT\n void testLowercaseBlueColor()\n {\n Rabbit_RegEx rabbit_color = new Rabbit_RegEx();\n rabbit_color.setIsBaby(true);\n rabbit_color.setWeight(2);\n rabbit_color.setAge(4);\n rabbit_color.setColor(\"blue\");\n String expected = \"Is the rabbit a baby?: true\\n\" +\n \"How old is the rabbit?: 4 weeks\\n\" +\n \"Weight: 2.0 in ounces\\n\" +\n \"Color: blue\";\n assertEquals(expected, rabbit_color.toString());\n }", "@Test\n\tpublic void h1_header_bold_test() {\n\t\tString text = \"# **heading1**\";\n\t\tassertEquals(\"<html><h1><strong>heading1</strong></h1></html>\", createHTML(text));\n\t}", "private Label createAdventureLabel(ClientPlayerAdventureState cpa)\n\t{\n\t\tLabel l;\n\t\tif(cpa.isRealLifeAdventure()) {\n\t\t\tl = new Label(\"[P] \" + cpa.getAdventureDescription(), SkinPicker.getSkinPicker().getCrewSkin());\n\t\t} else {\n\t\t\tl = new Label(cpa.getAdventureDescription(), SkinPicker.getSkinPicker().getCrewSkin());\n\t\t}\n\t\tl.setWrap(true);\n\t if (cpa.getAdventureState() == AdventureStateEnum.COMPLETED)\n\t\t{\n\t\t\tl.setColor(Color.GREEN);\n\t\t}\n\t else if (cpa.getQuestState() == QuestStateEnum.EXPIRED)\n {\n l.setColor(Color.BLACK);\n }\n\t\telse\n\t\t{\n\t\t\tl.setColor(Color.valueOf(blue_hex));\n\t\t}\n\t\treturn l;\n\t}", "@Test\n public void overweightCategorySecondRangeInKgAndCm() {\n\n driver.findElement(By.xpath(\"//input[@name='wg']\")).sendKeys(\"94\");\n driver.findElement(By.xpath(\"//input[@name='ht']\")).sendKeys(\"177\");\n driver.findElement(By.xpath(\"//input[@name='cc']\")).click();\n Assert.assertEquals(driver.findElement(By.name(\"desc\")).getAttribute(\"value\"), \"Your category is Overweight\",\n \"actual text is not: Your category is Overweight\");\n }", "@Test\n public void underweightCategorySecondRangeInKgAndCm() {\n\n driver.findElement(By.xpath(\"//input[@name='wg']\")).sendKeys(\"58.6\");\n driver.findElement(By.xpath(\"//input[@name='ht']\")).sendKeys(\"178\");\n driver.findElement(By.xpath(\"//input[@name='cc']\")).click();\n Assert.assertEquals(driver.findElement(By.name(\"desc\")).getAttribute(\"value\"), \"Your category is Underweight\",\n \"actual text is not: Your category is Underweight\");\n }", "@Test\npublic void tc__VerifyTooltip_EnviromentValue() throws Exception\n{\n EN.BeginTest( TestName );\n\n // Testscript in Schlüsselwort-Notation\n EN.SelectWindow( \"Rechner\" );\n\n // Soll/Ist-Vergleich: Ist das Richtige Fenster gesetzt?\n // Check the Name, Called Method and Value of Actuel object\n assertEquals( \"NO VALUE\", myClipBoard.getValue().get( 0 ) );\n assertEquals( 1, myClipBoard.getValue().size() );\n assertEquals( \"Rechner\", myClipBoard.getObjectName() );\n assertEquals( \"SelectWindow()\", myClipBoard.getMethod() );\n\n EN.SetValue( \"All_MethodsObj\", \"${TCN}\" );\n // Umgebungsvariable eingeben\n EN.VerifyTooltip( \"All_MethodsObj\", \"${TCN}\" );\n\n // Check the Name, Called Method and Value of Actuel object\n assertEquals( TestName, myClipBoard.getValue().get( 0 ) );\n assertEquals( 1, myClipBoard.getValue().size() );\n\n assertEquals( \"Rechner.All_MethodsObj\", myClipBoard.getObjectName() );\n assertEquals( \"VerifyTooltip()\", myClipBoard.getMethod() );\n}" ]
[ "0.59753406", "0.5885956", "0.5381116", "0.52404654", "0.52295357", "0.5214554", "0.5156334", "0.5124041", "0.5102985", "0.50824714", "0.50754905", "0.5066039", "0.5057541", "0.50202775", "0.50115055", "0.5008629", "0.5003307", "0.50017524", "0.50003916", "0.49930936", "0.49595687", "0.49565732", "0.49503082", "0.49351785", "0.49121398", "0.4910272", "0.4908421", "0.4907937", "0.4904543", "0.49037695", "0.49023005", "0.4898695", "0.48981532", "0.48938844", "0.4893597", "0.48816085", "0.4879632", "0.48733252", "0.48702398", "0.48662984", "0.48662984", "0.48632398", "0.48623326", "0.48558387", "0.48467565", "0.48467565", "0.48453394", "0.4845258", "0.48446614", "0.4844512", "0.4844335", "0.4843406", "0.48359898", "0.4835952", "0.48354176", "0.48310965", "0.48257953", "0.4818595", "0.48178822", "0.48142466", "0.48140725", "0.4785991", "0.47812006", "0.47801316", "0.4772354", "0.47661874", "0.47547725", "0.47545174", "0.47544315", "0.4753261", "0.47515893", "0.47482985", "0.47466868", "0.4745774", "0.47438198", "0.47434744", "0.47398466", "0.4737632", "0.47333303", "0.47312504", "0.47286174", "0.47248867", "0.47239473", "0.472209", "0.4716848", "0.47130215", "0.47129422", "0.4711015", "0.47081423", "0.4708061", "0.47062674", "0.47016102", "0.46994027", "0.46930072", "0.46919978", "0.46912858", "0.46906546", "0.46862298", "0.46861437", "0.46852496" ]
0.50747
11
Detached: with default state. .id : propertydetached .value : Detached .title : .class : Html.LABEL .classIndex : 3
protected GuiTestObject detached() { return new GuiTestObject( getMappedTestObject("detached")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected GuiTestObject semiDetached() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"semiDetached\"));\n\t}", "protected GuiTestObject semiDetached(TestObject anchor, long flags) \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"semiDetached\"), anchor, flags);\n\t}", "protected GuiTestObject detached(TestObject anchor, long flags) \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"detached\"), anchor, flags);\n\t}", "public void jdoReplaceDetachedState();", "@Override\r\n\tpublic void resetPropertyValue(Object id) {\n\r\n\t}", "public static Value makeAbsentModified() {\n return theAbsentModified;\n }", "public interface Detachable {\n\n /**\n * This method calls the StateManager with the current detached state instance as a parameter and\n * replaces the current detached state instance with the value provided by the StateManager.\n *\n * @since 2.0\n */\n public void jdoReplaceDetachedState();\n}", "@Override\n public void onValueDeselected() {\n\n }", "@Override\n public void onValueDeselected() {\n\n }", "@Override\n public void onValueDeselected() {\n\n }", "@Override\n public void onValueDeselected() {\n\n }", "@Override\n public void onValueDeselected() {\n }", "public void remElementName(){\n ((MenuDMO) core).remElementName();\n }", "public SceneLabelObjectState(SceneDivObjectState state){\t\t\n\t\tsuper(state); //will create a SceneDivObjectState from the supplied state\n\t\tsuper.setObjectsPrimaryType(SceneObjectType.Label); //subtypes should also run this statement straight after the super command in order to override their parents type and set their own as the primary/\n\n\t\t//Clear css parameters from general settings passed to this\n\t\t//This is because Dialogue objects treats these differently.\n\t\t//We fill them up correctly when the dialogue specific stuff is processed\n\t\tCurrentBoxCSS=\"\";\n\n\t}", "@Override\n public int getId() {\n return 0;\n }", "public SceneLabelObjectState(SceneObjectState state){\n\t\tsuper(state);\n\t\tsuper.setObjectsPrimaryType(SceneObjectType.Label);\n\t\t//super.getCurrentType()=SceneObjectType.DialogBox;\n\t\t//super.setObjectsOnlyType(SceneObjectType.DialogBox); //we don't set this anymore as subclasses may set this themselves!\n\n\t\t//Clear css parameters from general settings passed to this\n\t\t//This is because Dialogue objects treats these differently.\n\t\t//We fill them up correctly when the dialogue specific stuff is processed\n\t\tCurrentBoxCSS=\"\";\n\n\t}", "@Override\n\tpublic int getId() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int getId() {\n\t\treturn 0;\n\t}", "public SceneLabelObjectState(){\n\t\tsuper();\n\t\tsuper.setObjectsPrimaryType(SceneObjectType.Label);\n\n\t}", "@Test(timeout = 4000)\n public void test344() throws Throwable {\n Hidden hidden0 = new Hidden((Component) null, \"(vLoO6y2\\\"Vht&{{\", \"(vLoO6y2\\\"Vht&{{\");\n Map<String, String> map0 = hidden0.getAttributes();\n assertEquals(1, map0.size());\n }", "@Override\n\tpublic void detach(Object entity) {\n\t\t\n\t}", "void setVeilleObjetDeactivated();", "public void unsetDesc()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(DESC$10);\r\n }\r\n }", "private EditingStatus() {\n // Class values\n className = \"\";\n editedClassName = \"\";\n associationClass = false;\n editedClass = false;\n\n // Relationship values\n openEditing = false;\n editedRel = false;\n deletedRels = false;\n relName = \"\";\n editedRelName = \"\";\n delRelationships = FXCollections.observableArrayList();\n }", "public Descriptor() {\n super(ID);\n }", "@UIAttribute(hidden = true)\n public Long getId() {\n return id;\n }", "@Override\n public void postHideEt() {\n }", "public HTMLElement getElementEstadoEd() { return this.$element_EstadoEd; }", "@Override\r\n\t\t\tpublic void componentHidden(ComponentEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void componentHidden(ComponentEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tpublic String getBind_housing_property_ind() {\n\t\treturn super.getBind_housing_property_ind();\r\n\t}", "@Override\r\n\tpublic Integer getModel_lufax_prop_decile() {\n\t\treturn super.getModel_lufax_prop_decile();\r\n\t}", "public default boolean shouldHideEntity(){ return false; }", "private void onComponentUpdate(InheritedComponentInstanceSelDTO dto) {\n\t\tInheritedComponentInstanceSelModelData oldModel = store.findModel(ModuleInstanceSelModelData.PROPERTY_ID, dto\n\t\t\t.getComponent().getId());\n\t\tInheritedComponentInstanceSelModelData newModel = new InheritedComponentInstanceSelModelData(dto);\n\t\tstore.remove(oldModel);\n\t\tstore.add(newModel);\n\t}", "public SimpleIntegerProperty getIDProperty(){ return id; }", "public void detach() {\n\n\t\t\t}", "@Override\n public String getId() {\n return null;\n }", "@Override\r\n\tpublic void unsetGetValue() {\n\t\t\r\n\t}", "@Override\n\t\t\tpublic String getPropertyId() {\n\t\t\t\treturn null;\n\t\t\t}", "@DISPID(-2147417110)\n @PropGet\n java.lang.String id();", "public org.omg.uml.behavioralelements.commonbehavior.Instance getValue();", "EntityDefinitionVisitor getEntityDefinitionStateSetterVisitor();", "public PersonBuilderName noID()\n {\n edma_value[0] = null;\n return this;\n }", "public String getId(){ return id.get(); }", "@Override\n\tpublic String toString() {\n\t\treturn \"Notemodel [id=\" + id + \", title=\" + title + \", description=\" + description + \", color=\" + color\n\t\t\t\t+ \", pin=\" + pin + \", trash=\" + trash + \", archive=\" + archive + \", remider=\" + remider\n\t\t\t\t+ \", date=\" + date + \"]\";\n\t}", "@Override\r\n\t\tpublic Color getForeground(Object element) {\n\t\t\treturn null;\r\n\t\t}", "@Override\r\n\t\t\tpublic void componentHidden(ComponentEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tpublic String getId() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic String getId() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic String getId() {\n\t\treturn null;\r\n\t}", "@Override\n\t\tpublic String getId() {\n\t\t\treturn null;\n\t\t}", "public LabelAttributesPanel() {\n initComponents();\n selectedModel = nodesToggleButton.getModel();\n elementButtonGroup.setSelected(selectedModel, true);\n nodesToggleButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n if (nodesToggleButton.isSelected()) {\n selectedModel = nodesToggleButton.getModel();\n refresh();\n }\n }\n });\n edgesToggleButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n if (edgesToggleButton.isSelected()) {\n selectedModel = edgesToggleButton.getModel();\n refresh();\n }\n }\n });\n showPropertiesCheckbox.setSelected(showProperties);\n showPropertiesCheckbox.addItemListener(new ItemListener() {\n @Override\n public void itemStateChanged(ItemEvent e) {\n showProperties = showPropertiesCheckbox.isSelected();\n refresh();\n }\n });\n }", "public int getPropertyFade();", "@Override\n\t\t\tpublic Object getPropertyValue() {\n\t\t\t\treturn null;\n\t\t\t}", "public interface ElPropertyValue extends ElPropertyDeploy {\r\n\r\n /**\r\n * Return the Id values for the given bean value.\r\n */\r\n public Object[] getAssocOneIdValues(Object bean);\r\n\r\n /**\r\n * Return the Id expression string.\r\n * <p>\r\n * Typically used to produce id = ? expression strings.\r\n * </p>\r\n */\r\n public String getAssocOneIdExpr(String prefix, String operator);\r\n\r\n /**\r\n * Return the logical id value expression taking into account embedded id's.\r\n */\r\n public String getAssocIdInValueExpr(int size);\r\n \r\n /**\r\n * Return the logical id in expression taking into account embedded id's.\r\n */\r\n public String getAssocIdInExpr(String prefix);\r\n \r\n /**\r\n * Return true if this is an ManyToOne or OneToOne associated bean property.\r\n */\r\n public boolean isAssocId();\r\n\r\n /**\r\n * Return true if any path of this path contains a Associated One or Many.\r\n */\r\n public boolean isAssocProperty();\r\n\r\n /**\r\n * Return true if the property is encrypted via Java.\r\n */\r\n public boolean isLocalEncrypted();\r\n \r\n /**\r\n * Return true if the property is encrypted in the DB.\r\n */\r\n public boolean isDbEncrypted();\r\n\r\n /**\r\n * Return the deploy order for the property.\r\n */\r\n public int getDeployOrder();\r\n \r\n /**\r\n * Return the default StringParser for the scalar property.\r\n */\r\n public StringParser getStringParser();\r\n\r\n /**\r\n * Return the default StringFormatter for the scalar property.\r\n */\r\n public StringFormatter getStringFormatter();\r\n\r\n /**\r\n * Return true if the last type is \"DateTime capable\" - can support\r\n * {@link #parseDateTime(long)}.\r\n */\r\n public boolean isDateTimeCapable();\r\n\r\n /**\r\n * Return the underlying JDBC type or 0 if this is not a scalar type.\r\n */\r\n public int getJdbcType();\r\n \r\n /**\r\n * For DateTime capable scalar types convert the long systemTimeMillis into\r\n * an appropriate java time (Date,Timestamp,Time,Calendar, JODA type etc).\r\n */\r\n public Object parseDateTime(long systemTimeMillis);\r\n\r\n /**\r\n * Return the value from a given entity bean.\r\n */\r\n public Object elGetValue(Object bean);\r\n\r\n /**\r\n * Return the value ensuring objects prior to the top scalar property are\r\n * automatically populated.\r\n */\r\n public Object elGetReference(Object bean);\r\n\r\n /**\r\n * Set a value given a root level bean.\r\n * <p>\r\n * If populate then\r\n * </p>\r\n */\r\n public void elSetValue(Object bean, Object value, boolean populate, boolean reference);\r\n\r\n /**\r\n * Make the owning bean of this property a reference (as in not new/dirty).\r\n */\r\n public void elSetReference(Object bean);\r\n\r\n /**\r\n * Convert the value to the expected type.\r\n * <p>\r\n * Typically useful for converting strings to the appropriate number type\r\n * etc.\r\n * </p>\r\n */\r\n public Object elConvertType(Object value);\r\n}", "@Override\n\tpublic void componentHidden(ComponentEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void componentHidden(ComponentEvent e) {\n\t\t\n\t}", "@Override\r\n\t\tpublic String getId()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public void revise()\n {\n super.revise();\n\n String nm = model.get(\"name\", \"Init\");\n String newnm = revisePatchName(nm);\n if (!nm.equals(newnm))\n model.set(\"name\", newnm);\n }", "@Override\r\n\tpublic void unsetGiveValue() {\n\t\t\r\n\t}", "public Tag(Property.Name value) {\n\t}", "@Override\r\n\tpublic void componentHidden(ComponentEvent e) {\n\t\t\r\n\t}", "public AttrObject(){\t\r\n\tvalue = null;\r\n }", "@Override\r\n\tpublic Integer getModel_presf_prop_decile() {\n\t\treturn super.getModel_presf_prop_decile();\r\n\t}", "@Override\n public void componentHidden(ComponentEvent e)\n {\n \n }", "@Override\r\n\t\tpublic void componentHidden(ComponentEvent arg0) {\n\t\t\t\r\n\t\t}", "public void setUnlabeled(){\n\t\tthis._isLabeled = false;\n\t}", "@Override\n\tProp getProp() {\n\t\treturn null;\n\t}", "@Override\n\t\tpublic long getId() {\n\t\t\treturn 0;\n\t\t}", "public DevolucaoUI() {\n devolucaoNegocio = new DevolucaoNegocio();\n \n }", "@Override\n\t\t\tpublic String getLabel() {\n\t\t\t\treturn null;\n\t\t\t}", "@Override\n public boolean isLabelProperty(Object element, String property) {\n return false;\n }", "@Override\n\tprotected void setValueOnUi() {\n\n\t}", "@Override\n public String getId() {\n return \"1\";\n }", "@Override\n\tpublic String getId() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getId() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getId() {\n\t\treturn null;\n\t}", "public RevertDeletedAction() {\n setIcon(null);\n putValue(\"noIconInMenu\", Boolean.TRUE); // NOI18N\n }", "@Override\n protected void commitNameChange(PropertyChangeEvent evt) {\n AttributeItemFigure figure = getFigure();\n figure.updateLabels();\n setSelected(EditPart.SELECTED_PRIMARY);\n figure.revalidate();\n }", "private Object getState() {\n\treturn null;\r\n}", "@Override\n\tpublic void componentHidden(ComponentEvent e) {\n\n\t}", "public SceneLabelObjectState(SceneLabelObjectState state){\t\t\n\t\tsuper(state); //will create a SceneDivObjectState from the supplied state\n\t\tsuper.setObjectsPrimaryType(SceneObjectType.Label); //subtypes should also run this statement straight after the super command in order to override their parents type and set their own as the primary/\n\n\n\t\tthis.ObjectsCurrentText = state.ObjectsCurrentText;\n\t\tthis.CSSname = state.CSSname;\n\t\tthis.cursorVisible=state.cursorVisible;\n\t\tthis.TypedText=state.TypedText;\t\t\n\t\tthis.Custom_Key_Beep = state.Custom_Key_Beep;\n\t\tthis.Custom_Space_Beep = state.Custom_Space_Beep;\n\n\t}", "@Override\n\tpublic void componentHidden(ComponentEvent e) {\n\t}", "public String none() {\n if (!this.styledValueElements.isDefault()) {\n this.styledValueElements = new ShiftedText(this.styledValue);\n this.value = this.styledValueElements.stringify();\n }\n return this.value;\n }", "public PropositionHolder(Etudes.Proposition initial)\r\n {\r\n value = initial;\r\n }", "@Override\r\n\t\t\tpublic Object getValue() {\n\t\t\t\treturn null;\r\n\t\t\t}", "public Identity(){\n setLabel(\"I\");\n }", "private GestionnaireLabelsProperties() {\r\n\t\tsuper();\r\n\t}", "public void setNilZyhtVO()\n {\n synchronized (monitor())\n {\n check_orphaned();\n nc.vo.crd.bd.interf.zyhtvo.ZyhtVO target = null;\n target = (nc.vo.crd.bd.interf.zyhtvo.ZyhtVO)get_store().find_element_user(ZYHTVO$0, 0);\n if (target == null)\n {\n target = (nc.vo.crd.bd.interf.zyhtvo.ZyhtVO)get_store().add_element_user(ZYHTVO$0);\n }\n target.setNil();\n }\n }", "public HiddenInput getStateAsHiddenInput(int id) {\n return new HiddenInput(SET_ITERATOR_STATE_KEY + Integer.toString(id), storeStateIntoString());\n }", "private Runnable applyRefactoring() {\r\n\t\treturn new Runnable() {\t\t\t\t\r\n\t\t\t/**\r\n\t\t\t * @see java.lang.Runnable#run()\r\n\t\t\t * @generated\r\n\t\t\t */\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\torg.eclipse.uml2.uml.Property selectedEObject = \r\n\t\t\t\t\t(org.eclipse.uml2.uml.Property) dataManagement.\r\n\t\t\t\t\t\t\tgetInPortByName(dataManagement.SELECTEDEOBJECT).getValue();\r\n\t\t\t\tString className =\r\n\t\t\t\t\t(String) dataManagement.getInPortByName(\"className\").getValue();\r\n\t\t\t\t// execute: move selected attribute to specified superclass\r\n\t\t\t\tClass oldClass = selectedEObject.getClass_();\r\n\t\t\t\tClass newClass = oldClass.getSuperClass(className);\t\t\t\t\r\n\t\t\t\toldClass.getOwnedAttributes().remove(selectedEObject);\r\n\t\t\t\tnewClass.getOwnedAttributes().add(selectedEObject);\r\n\t\t\t\t// if attribute is association end: change opposite end type\r\n\t\t\t\tif (selectedEObject.getAssociation() != null) {\r\n\t\t\t\t\tProperty associationEndToRemove = null;\r\n\t\t\t\t\tfor (Property ae : selectedEObject.getAssociation().getMemberEnds()) {\r\n\t\t\t\t\t\tif ((! ae.equals(selectedEObject)) && (ae.getClass_() != null)) {\r\n\t\t\t\t\t\t\tassociationEndToRemove = ae;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (associationEndToRemove != null) // change opposite end type\r\n\t\t\t\t\t\tassociationEndToRemove.setType(newClass);\r\n\t\t\t\t}\r\n\t\t\t\t// execute: remove equivalent attributes from subclasses\r\n\t\t\t\tArrayList<Class> classes = UmlUtils.getAllSubClasses(newClass);\r\n\t\t\t\tclasses.remove(oldClass);\r\n\t\t\t\tfor (Class cls : classes) {\r\n\t\t\t\t\tProperty attributeToRemove = null;\r\n\t\t\t\t\tfor (Property attr : cls.getOwnedAttributes()) {\r\n\t\t\t\t\t\tif (attr.getName().equals(selectedEObject.getName())) {\r\n\t\t\t\t\t\t\tattributeToRemove = attr;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (attributeToRemove.getAssociation() != null) {\r\n\t\t\t\t\t\tAssociation assoc = attributeToRemove.getAssociation();\r\n\t\t\t\t\t\tProperty associationEndToRemove = null;\r\n\t\t\t\t\t\tfor (Property ae : attributeToRemove.getAssociation().getMemberEnds()) {\r\n\t\t\t\t\t\t\tif ((! ae.equals(attributeToRemove)) && (ae.getClass_() != null)) {\r\n\t\t\t\t\t\t\t\tassociationEndToRemove = ae;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (associationEndToRemove != null) { // remove opposite association end if owned by a class\r\n\t\t\t\t\t\t\tClass owningClass = associationEndToRemove.getClass_();\r\n\t\t\t\t\t\t\towningClass.getOwnedAttributes().remove(associationEndToRemove);\r\n\t\t\t\t\t\t} \r\n\t\t\t\t\t\t// remove association from owning package\r\n\t\t\t\t\t\tPackage owningPackage = assoc.getPackage();\r\n\t\t\t\t\t\towningPackage.getPackagedElements().remove(assoc);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// remove equivalent attribute from subclass\r\n\t\t\t\t\tClass owningSubClass = attributeToRemove.getClass_();\r\n\t\t\t\t\towningSubClass.getOwnedAttributes().remove(attributeToRemove);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\t}", "@Override\n\tProp getp1() {\n\t\treturn null;\n\t}", "public int getPropertyFade()\n {\n return iPropertyFade.getValue();\n }", "protected void setToDefault(){\n\n\t}", "private static String getModeledElementLabel(ModeledElement element) {\n\t\treturn element.getName();\n\t}", "Object getDefaultLabel() {\n return null;\n }", "@Override\r\n\tpublic void componentHidden(ComponentEvent arg0) {\n\t\t\r\n\t}", "public void notifyChanged(final Notification msg) {\r\n\t super.notifyChanged(msg);\r\n\t \r\n\t if(msg.getFeature() == PropertiesPackage.Literals.PROPERTY__VALUE) {\r\n\t \tsetGUIAttributes();\r\n\t }\r\n\t }", "public Behavior() \r\n\t{ \r\n\t\tm_influence = 0; \r\n\t}", "@Override\n\tpublic void componentHidden(ComponentEvent arg0) {\n\t\t\n\t}" ]
[ "0.56345695", "0.5357566", "0.52771384", "0.51297367", "0.49976337", "0.4945127", "0.4923608", "0.4866387", "0.4866387", "0.4866387", "0.4866387", "0.48418477", "0.48385936", "0.4809378", "0.47548363", "0.4746538", "0.47320315", "0.47320315", "0.4730289", "0.47299483", "0.46941644", "0.46657297", "0.46427333", "0.46391174", "0.4629981", "0.46259624", "0.46230283", "0.46100014", "0.46071598", "0.46071598", "0.4603662", "0.4595351", "0.45927563", "0.45852017", "0.45810312", "0.4579221", "0.45718917", "0.45718303", "0.45684567", "0.45662993", "0.4561674", "0.45575204", "0.4548211", "0.45452777", "0.45434165", "0.45416617", "0.45374838", "0.45359722", "0.45359722", "0.45359722", "0.45338708", "0.4527675", "0.452406", "0.45210895", "0.45171565", "0.45168918", "0.45168918", "0.4513506", "0.450699", "0.45063925", "0.4502231", "0.45005167", "0.44995597", "0.44971004", "0.4496839", "0.44949195", "0.4488144", "0.44869947", "0.4486466", "0.44773135", "0.4476249", "0.4475348", "0.44746006", "0.44725567", "0.44685915", "0.44685915", "0.44685915", "0.44627795", "0.44592172", "0.44564542", "0.44523624", "0.44519445", "0.44492623", "0.44486645", "0.44474554", "0.44362485", "0.44355032", "0.4432897", "0.44246697", "0.44234464", "0.4420874", "0.44171512", "0.4415763", "0.4411775", "0.44106102", "0.44049832", "0.44007987", "0.43985566", "0.43975776", "0.4394651" ]
0.5781356
0
Detached: with specific test context and state. .id : propertydetached .value : Detached .title : .class : Html.LABEL .classIndex : 3
protected GuiTestObject detached(TestObject anchor, long flags) { return new GuiTestObject( getMappedTestObject("detached"), anchor, flags); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected GuiTestObject detached() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"detached\"));\n\t}", "protected GuiTestObject semiDetached() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"semiDetached\"));\n\t}", "protected GuiTestObject semiDetached(TestObject anchor, long flags) \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"semiDetached\"), anchor, flags);\n\t}", "@Test(timeout = 4000)\n public void test344() throws Throwable {\n Hidden hidden0 = new Hidden((Component) null, \"(vLoO6y2\\\"Vht&{{\", \"(vLoO6y2\\\"Vht&{{\");\n Map<String, String> map0 = hidden0.getAttributes();\n assertEquals(1, map0.size());\n }", "@Test(timeout = 4000)\n public void test196() throws Throwable {\n Hidden hidden0 = new Hidden((Component) null, \"(vLoO6y2\\\"Vht&{{\", \"(vLoO6y2\\\"Vht&{{\");\n Hidden hidden1 = (Hidden)hidden0.attribute(\"(vLoO6y2\\\"Vht&{{\", \"(vLoO6y2\\\"Vht&{{\");\n assertTrue(hidden1.isValid());\n }", "public interface Detachable {\n\n /**\n * This method calls the StateManager with the current detached state instance as a parameter and\n * replaces the current detached state instance with the value provided by the StateManager.\n *\n * @since 2.0\n */\n public void jdoReplaceDetachedState();\n}", "@Test\n public void test_TCM___detach() {\n final Element element = new Element(\"element\");\n element.setAttribute(\"name\", \"value\");\n\n final Attribute attribute = element.getAttribute(\"name\");\n\n // should never occur, just to be sure\n assertNotNull(\"no attribute found\", attribute);\n\n\n assertNotNull(\"no parent for attribute found\", attribute.getParent());\n\n attribute.detach();\n\n assertNull(\"attribute has still a parent\", attribute.getParent());\n }", "@Test\n @Tag(\"CREATE\")\n @Tag(\"RESOURCE\")\n @DisplayName(\"Test Detached Object to Persistent Operation with Address 02\")\n public void testDetachedToPersistentWithAddress02()\n {\n System.out.println(\"Programme Start\");\n long startTime = System.nanoTime();\n\n UuidUtilities utilities = new UuidUtilities();\n\n SBAddress02 address1 = null;\n\n Transaction transaction = null;\n try (Session session = HibernateUtil.getSessionFactory().openSession();) {\n try {\n transaction = session.beginTransaction();\n address1 = session.get(\n SBAddress02.class,\n utilities.getOrderedUUIDByteArrayFromUUIDWithApacheCommons(UUID.fromString(\n \"c7cda60a-670c-429f-b60d-7fc74c99cf42\")));\n System.out.println(\"Address t1-1: \" + address1.getAddress02Street());\n\n transaction.commit();\n } catch (Exception e) {\n if (transaction != null) {\n transaction.rollback();\n }\n LOGGER.error(ExceptionUtils.getFullStackTrace(e));\n e.printStackTrace();\n }\n\n } catch (Throwable throwable) {\n LOGGER.error(ExceptionUtils.getFullStackTrace(throwable));\n throwable.printStackTrace();\n }\n\n// address1.setAddress02Street(\"KusumaramaStreet6000\");\n\n try (Session session = HibernateUtil.getSessionFactory().openSession();) {\n try {\n transaction = session.beginTransaction();\n session.update(address1);\n // address1.setAddress02Street(\"KusumaramaStreet8000\");\n\n transaction.commit();\n } catch (Exception e) {\n if (transaction != null) {\n transaction.rollback();\n }\n LOGGER.error(ExceptionUtils.getFullStackTrace(e));\n e.printStackTrace();\n }\n\n } catch (Throwable throwable) {\n LOGGER.error(ExceptionUtils.getFullStackTrace(throwable));\n throwable.printStackTrace();\n }\n\n System.out.println(\"Address t2-1: \" + address1.getAddress02Street());\n\n long endTime = System.nanoTime();\n ELAPSED_TIME = endTime - startTime;\n System.out.println(\"Programme End\");\n\n }", "public void jdoReplaceDetachedState();", "@Test\n @Tag(\"CREATE\")\n @Tag(\"RESOURCE\")\n @DisplayName(\"Test Detached Object to Persistent Operation with Select Before Update with Address 03\")\n public void testDetachedToPersistentWithSelectBeforeUpdateWithAddress03()\n {\n System.out.println(\"Programme Start\");\n long startTime = System.nanoTime();\n\n UuidUtilities utilities = new UuidUtilities();\n\n SBAddress03 address1 = null;\n\n Transaction transaction = null;\n try (Session session = HibernateUtil.getSessionFactory().openSession();) {\n try {\n transaction = session.beginTransaction();\n address1 = session.get(\n SBAddress03.class,\n utilities.getOrderedUUIDByteArrayFromUUIDWithApacheCommons(UUID.fromString(\n \"e9c79954-9a5e-4903-ac5f-8e3268b14544\")));\n System.out.println(\"Address t1-1: \" + address1.getAddress03Street());\n\n transaction.commit();\n } catch (Exception e) {\n if (transaction != null) {\n transaction.rollback();\n }\n LOGGER.error(ExceptionUtils.getFullStackTrace(e));\n e.printStackTrace();\n }\n } catch (Throwable throwable) {\n if (transaction != null) {\n transaction.rollback();\n }\n LOGGER.error(ExceptionUtils.getFullStackTrace(throwable));\n throwable.printStackTrace();\n }\n\n// address1.setAddress02Street(\"KusumaramaStreet6000\");\n\n try (Session session = HibernateUtil.getSessionFactory().openSession();) {\n try {\n transaction = session.beginTransaction();\n session.update(address1);\n\n transaction.commit();\n } catch (Exception e) {\n if (transaction != null) {\n transaction.rollback();\n }\n LOGGER.error(ExceptionUtils.getFullStackTrace(e));\n e.printStackTrace();\n }\n } catch (Throwable throwable) {\n LOGGER.error(ExceptionUtils.getFullStackTrace(throwable));\n throwable.printStackTrace();\n }\n\n System.out.println(\"Address t2-1: \" + address1.getAddress03Street());\n\n long endTime = System.nanoTime();\n ELAPSED_TIME = endTime - startTime;\n System.out.println(\"Programme End\");\n\n }", "@Test\n public void test121() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = (Label)errorPage0.em((Object) errorPage0);\n assertTrue(label0._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "@Test\n\t@TestProperties(name = \"Set element ${by}:${locator} not selected\", paramsInclude = { \"by\", \"locator\" })\n\tpublic void setElementNotSelected() {\n\t\tthrow new IllegalStateException(\"Unimplemenetd\");\n\t}", "protected Component getTestTarget(){\n return tester.parent;\n }", "@EventName(\"detachedFromTarget\")\n @Experimental\n EventListener onDetachedFromTarget(EventHandler<DetachedFromTarget> eventListener);", "@Test\n\t@TestProperties(name = \"Set element ${by}:${locator} selected\", paramsInclude = { \"by\", \"locator\" })\n\tpublic void setElementSelected() {\n\t\tthrow new IllegalStateException(\"Unimplemenetd\");\n\t}", "@Test\n public void getLabel() {\n cleanEntity0();\n\n ReflectionTestUtils.setField(entity0, \"label\", labelS);\n assertEquals(entity0.getLabel(), labelS);\n }", "void updatedProperty(TestResult tr, String name, String value);", "@Test\n public void test126() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"e\");\n xmlEntityRef0._clear();\n assertEquals(\"e\", xmlEntityRef0.getComponentId());\n }", "@Test\n @org.junit.Ignore\n public void shouldConstructDetachedVertex() {\n }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n DynamicSelectModel dynamicSelectModel0 = new DynamicSelectModel();\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = new Label(errorPage0, dynamicSelectModel0);\n dynamicSelectModel0.setComponent(label0);\n Component component0 = dynamicSelectModel0.getComponent();\n assertEquals(\"Label_1\", component0.getComponentId());\n }", "@Test\n public void test133() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = (Label)errorPage0.dd((Object) errorPage0);\n assertTrue(label0._isGeneratedId());\n \n List<Component> list0 = errorPage0._getChildren();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertEquals(1, list0.size());\n }", "public void testing() {\n\t\tprotectedInstanceVariable = \"\";\n\t}", "@Override\n\tpublic void detach(Object entity) {\n\t\t\n\t}", "@Test(timeout = 4000)\n public void test352() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"org.mvel.conversion.BooleanCH\");\n xmlEntityRef0.el(\"org.mvel.conversion.BooleanCH\");\n assertEquals(\"org.mvel.conversion.BooleanCH\", xmlEntityRef0.getComponentId());\n }", "protected GuiTestObject terraced() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"terraced\"));\n\t}", "@Test\n\tpublic void testDifferentID() {\n\t\tMainDish dessertTest = new MainDish(\"quiche\");\n\t\tMainDish dessertTest2 = new MainDish(\"quiche\");\n\t\tassertTrue(dessertTest.getId()!=dessertTest2.getId());\n\t}", "@Test\n public void test056() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Hidden hidden0 = new Hidden(errorPage0, \"}4>j:%ZQb{mjn\", \"}4>j:%ZQb{mjn\");\n Hidden hidden1 = (Hidden)hidden0.up(0);\n }", "public void testHideLabelWithContextMenuOnLabel() {\n // Step 1 : hide the label and check that it is correctly hidden\n SWTBotGefEditPart editPart = editor.getEditPart(NODE_WITH_LABEL_NAME);\n SWTBotGefEditPart parentEditPart = editPart.parent();\n checkLabelIsVisible(NODE_WITH_LABEL_NAME);\n editor.select(Sets.newHashSet(editPart));\n editor.clickContextMenu(HIDE_LABEL_TOOLTIP);\n\n checkLabelIsHidden(NODE_WITH_LABEL_NAME);\n\n // Step 2 : ensure that the context menu doesn't propose user to hide\n // label anymore\n boolean hideLabelContextMenuActionFound = true;\n editor.select(parentEditPart);\n try {\n editor.clickContextMenu(HIDE_LABEL_TOOLTIP);\n } catch (WidgetNotFoundException e) {\n hideLabelContextMenuActionFound = false;\n } finally {\n Assert.assertFalse(\"The context menu shouldn't allow user to hide label of \" + NODE_WITH_LABEL_NAME + \" (as it is already hidden)\", hideLabelContextMenuActionFound);\n }\n }", "public void entityDeactivating() {}", "public void remElementName(){\n ((MenuDMO) core).remElementName();\n }", "@Test\n\tpublic void testPropertyStateful() {\n\t\tfinal Base base = context.mock(Base.class);\n\t\tcontext.checking(new PropertyEnabledExpectations() {\n\t\t\t{\n\t\t\t\tallowingProperty(base).getId();\n\t\t\t}\n\t\t});\n\n\t\tfinal String key1 = \"something\";\n\t\tfinal String key2 = \"another\";\n\n\t\tbase.setId(key1);\n\t\tassertEquals(key1, base.getId());\n\t\tbase.setId(key2);\n\t\tassertEquals(key2, base.getId());\n\t}", "void detachFromTarget();", "public void unsetDesc()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(DESC$10);\r\n }\r\n }", "@Test(timeout = 4000)\n public void test334() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = new Label(errorPage0, errorPage0);\n Component component0 = errorPage0.legend((Object) label0);\n assertTrue(component0._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "@Test\n public void test094() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Hidden hidden0 = new Hidden(errorPage0, \"\", \"\");\n Image image0 = new Image(hidden0, \"\", \"\");\n Label label0 = (Label)errorPage0.ins((Object) image0);\n Block block0 = (Block)errorPage0.h3();\n Label label1 = (Label)errorPage0.u((Object) errorPage0);\n assertTrue(label1._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "public static Value makeAbsentModified() {\n return theAbsentModified;\n }", "@Test\n public void test105() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = (Label)errorPage0.strong((Object) errorPage0);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(label0._isGeneratedId());\n }", "@DISPID(-2147417110)\n @PropGet\n java.lang.String id();", "@Test\n public void getDescription() {\n cleanEntity0();\n\n ReflectionTestUtils.setField(entity0, \"description\", descriptionS);\n assertEquals(entity0.getDescription(), descriptionS);\n }", "@Test\n @DisplayName(\"Enabled when it is built\")\n @Disabled\n @Tag(\"development\")\n void developmentTest() {\n }", "public void testValueRefProperty() throws Exception {\n \n TestBean testBean = new TestBean();\n getFacesContext().getExternalContext().getSessionMap().put(\n \"TestRefBean\", testBean);\n \n ValueBindingImpl valueBinding = new\n ValueBindingImpl(new ApplicationImpl());\n \n valueBinding.setRef(\"TestRefBean.one\");\n valueBinding.setValue(getFacesContext(), \"one\");\n \n bean = new ManagedBeanBean();\n bean.setManagedBeanClass(beanName);\n bean.setManagedBeanScope(\"session\");\n \n property = new ManagedPropertyBean();\n property.setPropertyName(\"one\");\n property.setValue(\"#{TestRefBean.one}\");\n bean.addManagedProperty(property);\n \n mbf = new ManagedBeanFactory(bean);\n \n //testing with a property set\n assertNotNull(testBean = (TestBean) mbf.newInstance(getFacesContext()));\n \n //make sure bean instantiated properly. Get property back from bean.\n assertTrue(testBean.getOne().equals(\"one\"));\n \n //make sure scope is stored properly\n assertTrue(mbf.getScope().equals(\"session\"));\n \n }", "public void testHideAndRevealLabelWithOutlineOnLabel() throws Exception {\n if (TestsUtil.shouldSkipUnreliableTests()) {\n return;\n }\n // Step 1 : hide the label and check that it is correctly hidden\n SWTBotGefEditPart editPart = editor.getEditPart(NODE_WITH_LABEL_NAME);\n SWTBotGefEditPart parentEditPart = editPart.parent();\n checkLabelIsVisible(NODE_WITH_LABEL_NAME);\n\n // Step 1.1 : open the outline view and get its SWTBotView\n final SWTBotView view = getAndExpandOutlineView(true);\n\n // Step 1.2 : open the context menu the element to hide and select the\n // hide element action\n SWTBotTreeItem item = view.bot().tree().getTreeItem(\"p\").getNode(NODE_WITH_LABEL_NAME).getNode(NODE_WITH_LABEL_NAME + \" \" + LABEL_SUFFIX_IN_OUTLINE).click();\n view.bot().tree().getTreeItem(\"p\").getNode(NODE_WITH_LABEL_NAME).getNode(NODE_WITH_LABEL_NAME + \" \" + LABEL_SUFFIX_IN_OUTLINE).select();\n SWTBotUtils.waitAllUiEvents();\n bot.waitUntil(new TreeItemSelected(item));\n setShownImage(item);\n checkOutlineIsCorrectlyDecorated(item, false);\n item.contextMenu(HIDE_LABEL_TOOLTIP).click();\n\n // Step 1.3 : ensure node is hidden\n checkLabelIsHidden(NODE_WITH_LABEL_NAME);\n checkOutlineIsCorrectlyDecorated(item, true);\n\n // Step 3 : ensure that the outline doesn't propose user to hide\n // label anymore\n boolean outlineAllowToHideLabel = true;\n boolean outlineAllowToRevealLabel = false;\n\n editor.select(parentEditPart);\n SWTBotUtils.waitAllUiEvents();\n try {\n item = view.bot().tree().getTreeItem(\"p\").getNode(NODE_WITH_LABEL_NAME + LABEL_SUFFIX_IN_OUTLINE).click();\n view.bot().tree().getTreeItem(\"p\").getNode(NODE_WITH_LABEL_NAME + LABEL_SUFFIX_IN_OUTLINE).select();\n SWTBotUtils.waitAllUiEvents();\n bot.waitUntil(new TreeItemSelected(item));\n item.contextMenu(HIDE_LABEL_TOOLTIP).click();\n } catch (WidgetNotFoundException e) {\n outlineAllowToHideLabel = false;\n try {\n item.contextMenu(REVEAL_LABEL_TOOLTIP).click();\n outlineAllowToRevealLabel = true;\n } catch (WidgetNotFoundException wnfe) {\n outlineAllowToRevealLabel = false;\n }\n } finally {\n Assert.assertFalse(\"The context menu shouldn't allow user to hide label of \" + editPart.part(), outlineAllowToHideLabel);\n Assert.assertTrue(\"The context menu should allow user to show label of \" + editPart.part(), outlineAllowToRevealLabel);\n\n // Step 4 : we ensure that label has been correctly revealed\n checkLabelIsVisible(NODE_WITH_LABEL_NAME);\n checkOutlineIsCorrectlyDecorated(item, false);\n }\n\n }", "EntityDefinitionVisitor getEntityDefinitionStateSetterVisitor();", "@Test(timeout = 4000)\n public void test134() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"java.lang.String@0000000005\");\n Hidden hidden0 = new Hidden(xmlEntityRef0, \"java.lang.String@0000000005\", \"/o:%Ab+Af@:#h3VI\");\n // Undeclared exception!\n try { \n hidden0.h3();\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test39() throws Throwable {\n DynamicSelectModel dynamicSelectModel0 = new DynamicSelectModel();\n StandaloneComponent standaloneComponent0 = dynamicSelectModel0.getTopLevelComponent();\n assertNull(standaloneComponent0);\n }", "public void testHideLabelWithTabbarOnLabel() {\n\n // Step 1 : hide the label and check that it is correctly hidden\n SWTBotGefEditPart editPart = editor.getEditPart(NODE_WITH_LABEL_NAME);\n SWTBotGefEditPart parentEditPart = editPart.parent();\n checkLabelIsVisible(NODE_WITH_LABEL_NAME);\n editor.select(Sets.newHashSet(editPart));\n editor.bot().toolbarButtonWithTooltip(HIDE_LABEL_TOOLTIP).click();\n\n checkLabelIsHidden(NODE_WITH_LABEL_NAME);\n\n // Step 2 : ensure that the tabbar doesn't propose user to hide label\n // anymore\n boolean hideLabelTabbarFound = true;\n editor.select(parentEditPart);\n // Wait all UI events to ensure that the tabbar is correctly refreshed.\n SWTBotUtils.waitAllUiEvents();\n SWTBotToolbarButton button = null;\n final long oldTimeout = SWTBotPreferences.TIMEOUT;\n try {\n SWTBotPreferences.TIMEOUT = 1000;\n button = editor.bot().toolbarButtonWithTooltip(HIDE_LABEL_TOOLTIP);\n } catch (WidgetNotFoundException e) {\n hideLabelTabbarFound = false;\n } finally {\n SWTBotPreferences.TIMEOUT = oldTimeout;\n Assert.assertFalse(\"The tabbar shouldn't allow user to hide label of \" + NODE_WITH_LABEL_NAME + \" (as it is already hidden)\", hideLabelTabbarFound && button.isEnabled());\n }\n }", "public void detach() {\n\n\t\t\t}", "@Test(timeout = 4000)\n public void test321() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"Y:b;O81\");\n String string0 = xmlEntityRef0.getComponentName();\n assertEquals(\"Y:b;O81\", xmlEntityRef0.getComponentId());\n assertEquals(\"XmlEntityRef\", string0);\n }", "public void testHideLabelWithContextMenuOnNode() {\n // Step 1 : hide the label and check that it is correctly hidden\n SWTBotGefEditPart editPart = editor.getEditPart(NODE_WITH_LABEL_NAME).parent();\n checkLabelIsVisible(NODE_WITH_LABEL_NAME);\n editor.select(Sets.newHashSet(editPart));\n editor.clickContextMenu(HIDE_LABEL_TOOLTIP);\n\n checkLabelIsHidden(NODE_WITH_LABEL_NAME);\n\n // Step 2 : ensure that the context menu doesn't propose user to hide\n // label anymore\n boolean hideLabelContextMenuActionFound = true;\n editor.select(editPart);\n final long oldTimeout = SWTBotPreferences.TIMEOUT;\n try {\n SWTBotPreferences.TIMEOUT = 1000;\n editor.clickContextMenu(HIDE_LABEL_TOOLTIP);\n } catch (WidgetNotFoundException e) {\n hideLabelContextMenuActionFound = false;\n } finally {\n SWTBotPreferences.TIMEOUT = oldTimeout;\n Assert.assertFalse(\"The context menu shouldn't allow user to hide label of \" + NODE_WITH_LABEL_NAME + \" (as it is already hidden)\", hideLabelContextMenuActionFound);\n }\n }", "@Test(timeout = 4000)\n public void test059() throws Throwable {\n HomeEnvironment homeEnvironment0 = new HomeEnvironment();\n homeEnvironment0.setGroundColor(17);\n assertEquals(17, homeEnvironment0.getGroundColor());\n }", "void setTestDescription(TestDescription td) {\n if (td == null) {\n return;\n }\n\n String name = td.getRootRelativeURL();\n if (!testURL.equals(name)) {\n throw new IllegalStateException();\n }\n\n if (desc != null) { // compare if possible\n if (!desc.equals(td)) { // test descriptions are not the same\n // accept new TD, reset this TR\n // reset status to a special one\n execStatus = tdMismatch;\n desc = td;\n\n props = emptyStringArray;\n resultsFile = null;\n env = emptyStringArray;\n sections = emptySectionArray;\n\n if (isMutable()) {\n createSection(MSG_SECTION_NAME);\n }\n } else {\n // TDs are equal, no action, drop thru and return\n }\n } else {\n desc = td;\n }\n }", "@Test(timeout = 4000)\n public void test107() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"&!a0Q!<8UDk+%_*<Z'\");\n Hidden hidden0 = new Hidden(xmlEntityRef0, \"&!a0Q!<8UDk+%_*<Z'\", \"&!a0Q!<8UDk+%_*<Z'\");\n // Undeclared exception!\n try { \n hidden0.label();\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Disabled(\"Disabled test\")\n @Test\n void testDisable() {\n assertEquals(testing1, testing2);\n }", "@Test(timeout = 4000)\n public void test356() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.h3();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component0._isGeneratedId());\n }", "@Test\n\tpublic void testHideCommand1() {\n\t\tString label1 = \"TEST1\";\n\t\tString label2 = \"TEST2\";\n\t\ttestData.getTaskMap().put(label1, new ArrayList<Task>());\n\t\ttestData.getTaskMap().put(label2, new ArrayList<Task>());\n\t\t\n\t\tHideCommand comd = new HideCommand(label1 + \" \" + label2);\n\t\tassertEquals(HideCommand.MESSAGE_HIDE_FEEDBACK, comd.execute(testData));\n\t\t\n\t\tassertTrue(testData.getHideList().contains(label1));\n\t\tassertTrue(testData.getHideList().contains(label2));\n\t\tassertFalse(testData.getHideList().contains(testData.getCurrLabel()));\n\t}", "@Test(timeout = 4000)\n public void test327() throws Throwable {\n Checkbox checkbox0 = new Checkbox((Component) null, \"tt\", \"tt\");\n Hidden hidden0 = new Hidden(checkbox0, \"tt\", \"6\");\n // Undeclared exception!\n try { \n hidden0.del();\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test221() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n MockDate mockDate0 = new MockDate((-800), (-800), (-707), 75, 43);\n Label label0 = new Label(errorPage0, mockDate0);\n Component component0 = label0.b();\n component0._getVisibleForm(false);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component0._isGeneratedId());\n }", "@Test(timeout = 4000)\n public void test195() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"{\");\n Component component0 = xmlEntityRef0.attribute(\"{\", \"L1c$!db-nwBt?]asCH\");\n assertEquals(\"{\", component0.getComponentId());\n }", "@Test(timeout = 4000)\n public void test230() throws Throwable {\n Form form0 = new Form(\"println\");\n String[] stringArray0 = new String[0];\n Component component0 = form0.attributes(stringArray0);\n assertEquals(\"println\", component0.getComponentId());\n }", "@Test(timeout = 4000)\n public void test231() throws Throwable {\n Form form0 = new Form(\"DUP\");\n Component component0 = form0.attributes((String[]) null);\n assertEquals(\"DUP\", component0.getComponentId());\n }", "public void testHideAndRevealLabelWithOutlineOnNode() throws Exception {\n if (TestsUtil.shouldSkipUnreliableTests()) {\n // Can cause timeouts.\n return;\n }\n // Step 1 : hide the label and check that it is correctly hidden\n SWTBotGefEditPart editPart = editor.getEditPart(NODE_WITH_LABEL_NAME);\n SWTBotGefEditPart parentEditPart = editPart.parent();\n checkLabelIsVisible(NODE_WITH_LABEL_NAME);\n\n final SWTBotView view = getAndExpandOutlineView(true);\n\n // Step 1.2 : open the context menu the element to hide and select the\n // hide element action\n SWTBotTreeItem labelItem = view.bot().tree().getTreeItem(\"p\").getNode(NODE_WITH_LABEL_NAME).getNode(NODE_WITH_LABEL_NAME + \" \" + LABEL_SUFFIX_IN_OUTLINE).click();\n view.bot().tree().getTreeItem(\"p\").getNode(NODE_WITH_LABEL_NAME).getNode(NODE_WITH_LABEL_NAME + \" \" + LABEL_SUFFIX_IN_OUTLINE).select();\n SWTBotUtils.waitAllUiEvents();\n bot.waitUntil(new TreeItemSelected(labelItem));\n setShownImage(labelItem);\n SWTBotTreeItem nodeItem = view.bot().tree().getTreeItem(\"p\").getNode(NODE_WITH_LABEL_NAME).click();\n view.bot().tree().getTreeItem(\"p\").getNode(NODE_WITH_LABEL_NAME).select();\n SWTBotUtils.waitAllUiEvents();\n bot.waitUntil(new TreeItemSelected(nodeItem));\n checkOutlineIsCorrectlyDecorated(labelItem, false);\n nodeItem.contextMenu(HIDE_LABEL_TOOLTIP).click();\n\n // Step 1.3 : ensure node is hidden\n checkLabelIsHidden(NODE_WITH_LABEL_NAME);\n checkOutlineIsCorrectlyDecorated(labelItem, true);\n\n // Step 2 : ensure that the outline doesn't propose user to hide\n // label anymore\n boolean outlineAllowToHideLabel = true;\n boolean outlineAllowToRevealLabel = false;\n\n editor.select(parentEditPart);\n SWTBotUtils.waitAllUiEvents();\n final long oldTimeout = SWTBotPreferences.TIMEOUT;\n try {\n SWTBotPreferences.TIMEOUT = 1000;\n nodeItem.click().contextMenu(HIDE_LABEL_TOOLTIP).click();\n } catch (RuntimeException e) {\n outlineAllowToHideLabel = false;\n try {\n nodeItem.click().contextMenu(REVEAL_LABEL_TOOLTIP).click();\n outlineAllowToRevealLabel = true;\n } catch (WidgetNotFoundException wnfe) {\n outlineAllowToRevealLabel = false;\n }\n } finally {\n SWTBotPreferences.TIMEOUT = oldTimeout;\n Assert.assertFalse(\"The context menu shouldn't allow user to hide label of \" + editPart.part(), outlineAllowToHideLabel);\n Assert.assertTrue(\"The context menu should allow user to show label of \" + editPart.part(), outlineAllowToRevealLabel);\n\n // Step 4 : we ensure that label has been correctly revealed\n checkLabelIsVisible(NODE_WITH_LABEL_NAME);\n checkOutlineIsCorrectlyDecorated(labelItem, false);\n }\n\n }", "@Test\n public void setAndGetTest() {\n GameEntity t2 = new GameEntity(new Rectangle(10.0, 10.0));\n\n //Set and getting temp node\n t2.getView().setTranslateX(5.0);\n t2.getView().setTranslateY(5.0);\n Circle temp = new Circle(4);\n t2.setView(temp);\n assertEquals(\"Expected view to be changed\", temp, t2.getView());\n\n //Testing the alive and dead of the object\n t2.setAlive(false);\n assertEquals(\"Expected the object state to be set to dead.\", false, t2.isAlive());\n assertEquals(\"Expected the reverse of object state to be set to alive.\", true, t2.isDead());\n }", "public void testHideLabelWithContextMenuOnEdge() {\n // Step 1 : hide the label and check that it is correctly hidden\n SWTBotGefEditPart editPart = editor.getEditPart(EDGE_WITH_LABEL_NAME).parent();\n checkEdgeLabelIsVisible(EDGE_WITH_LABEL_NAME);\n editor.select(Sets.newHashSet(editPart));\n editor.clickContextMenu(HIDE_LABEL_TOOLTIP);\n\n checkEdgeLabelIsHidden(EDGE_WITH_LABEL_NAME);\n\n // Step 2 : ensure that the context menu doesn't propose user to hide\n // label anymore\n boolean hideLabelContextMenuActionFound = true;\n editor.select(editPart);\n try {\n editor.clickContextMenu(HIDE_LABEL_TOOLTIP);\n } catch (WidgetNotFoundException e) {\n hideLabelContextMenuActionFound = false;\n } finally {\n Assert.assertFalse(\"The context menu shouldn't allow user to hide label of \" + EDGE_WITH_LABEL_NAME + \" (as it is already hidden)\", hideLabelContextMenuActionFound);\n }\n }", "void unsetDesc();", "@Override\n\tprotected GridChangeDescription getFixture() {\n\t\treturn (GridChangeDescription)fixture;\n\t}", "public void testPersistentPropertyInRunnable() {\n \t\tfinal IWorkspaceRoot root = getWorkspace().getRoot();\n \t\tfinal String value = \"this is a test property value\";\n \t\tfinal QualifiedName name = new QualifiedName(\"test\", \"testProperty\");\n \t\ttry {\n \t\t\tgetWorkspace().run(new IWorkspaceRunnable() {\n \t\t\t\tpublic void run(IProgressMonitor monitor) throws CoreException {\n \t\t\t\t\troot.setPersistentProperty(name, value);\n \t\t\t\t}\n \t\t\t}, getMonitor());\n \t\t} catch (CoreException e) {\n \t\t\tfail(\"1.0\", e);\n \t\t}\n \n \t\ttry {\n \t\t\tfinal String[] storedValue = new String[1];\n \t\t\tgetWorkspace().run(new IWorkspaceRunnable() {\n \t\t\t\tpublic void run(IProgressMonitor monitor) throws CoreException {\n \t\t\t\t\tstoredValue[0] = root.getPersistentProperty(name);\n \t\t\t\t}\n \t\t\t}, getMonitor());\n \t\t\tassertEquals(\"2.0\", value, storedValue[0]);\n \t\t} catch (CoreException e) {\n \t\t\tfail(\"2.1\", e);\n \t\t}\n \n \t\ttry {\n \t\t\tfinal QualifiedName name2 = new QualifiedName(\"test\", \"testNonProperty\");\n \t\t\tfinal String[] storedValue = new String[1];\n \t\t\tgetWorkspace().run(new IWorkspaceRunnable() {\n \t\t\t\tpublic void run(IProgressMonitor monitor) throws CoreException {\n \t\t\t\t\tstoredValue[0] = root.getPersistentProperty(name2);\n \t\t\t\t}\n \t\t\t}, getMonitor());\n \t\t\tassertEquals(\"3.0\", null, storedValue[0]);\n \t\t} catch (CoreException e) {\n \t\t\tfail(\"3.1\", e);\n \t\t}\n \t}", "public void testXmlDifferentUpdateProperties() {\r\n \r\n @SuppressWarnings(\"unused\")\r\n GrouperSession grouperSession = GrouperSession.startRootSession();\r\n \r\n AuditType auditType = null;\r\n AuditType exampleAuditType = null;\r\n\r\n \r\n //TEST UPDATE PROPERTIES\r\n {\r\n auditType = exampleAuditTypeDb();\r\n exampleAuditType = exampleRetrieveAuditTypeDb();\r\n \r\n auditType.setContextId(\"abc\");\r\n \r\n assertFalse(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertTrue(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n\r\n auditType.setContextId(exampleAuditType.getContextId());\r\n auditType.xmlSaveUpdateProperties();\r\n\r\n auditType = exampleRetrieveAuditTypeDb();\r\n \r\n assertFalse(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n \r\n }\r\n \r\n {\r\n auditType = exampleAuditTypeDb();\r\n exampleAuditType = exampleRetrieveAuditTypeDb();\r\n\r\n auditType.setCreatedOnDb(99L);\r\n \r\n assertFalse(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertTrue(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n\r\n auditType.setCreatedOnDb(exampleAuditType.getCreatedOnDb());\r\n auditType.xmlSaveUpdateProperties();\r\n \r\n auditType = exampleRetrieveAuditTypeDb();\r\n \r\n assertFalse(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n }\r\n \r\n {\r\n auditType = exampleAuditTypeDb();\r\n exampleAuditType = exampleRetrieveAuditTypeDb();\r\n\r\n auditType.setLastUpdatedDb(99L);\r\n \r\n assertFalse(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertTrue(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n\r\n auditType.setLastUpdatedDb(exampleAuditType.getLastUpdatedDb());\r\n auditType.xmlSaveUpdateProperties();\r\n \r\n auditType = exampleRetrieveAuditTypeDb();\r\n \r\n assertFalse(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n }\r\n \r\n {\r\n auditType = exampleAuditTypeDb();\r\n exampleAuditType = exampleRetrieveAuditTypeDb();\r\n\r\n auditType.setHibernateVersionNumber(99L);\r\n \r\n assertFalse(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertTrue(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n\r\n auditType.setHibernateVersionNumber(exampleAuditType.getHibernateVersionNumber());\r\n auditType.xmlSaveUpdateProperties();\r\n \r\n auditType = exampleRetrieveAuditTypeDb();\r\n \r\n assertFalse(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n }\r\n //TEST BUSINESS PROPERTIES\r\n \r\n {\r\n auditType = exampleAuditTypeDb();\r\n exampleAuditType = exampleRetrieveAuditTypeDb();\r\n\r\n auditType.setActionName(\"abc\");\r\n \r\n assertTrue(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n\r\n auditType.setActionName(exampleAuditType.getActionName());\r\n auditType.xmlSaveBusinessProperties(exampleRetrieveAuditTypeDb());\r\n auditType.xmlSaveUpdateProperties();\r\n \r\n auditType = exampleRetrieveAuditTypeDb();\r\n \r\n assertFalse(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n \r\n }\r\n \r\n {\r\n auditType = exampleAuditTypeDb();\r\n exampleAuditType = exampleRetrieveAuditTypeDb();\r\n\r\n auditType.setAuditCategory(\"abc\");\r\n \r\n assertTrue(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n\r\n auditType.setAuditCategory(exampleAuditType.getAuditCategory());\r\n auditType.xmlSaveBusinessProperties(exampleRetrieveAuditTypeDb());\r\n auditType.xmlSaveUpdateProperties();\r\n \r\n auditType = exampleRetrieveAuditTypeDb();\r\n \r\n assertFalse(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n \r\n }\r\n \r\n {\r\n auditType = exampleAuditTypeDb();\r\n exampleAuditType = exampleRetrieveAuditTypeDb();\r\n\r\n auditType.setAuditCategory(\"abc\");\r\n \r\n assertTrue(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n\r\n auditType.setAuditCategory(exampleAuditType.getAuditCategory());\r\n auditType.xmlSaveBusinessProperties(exampleRetrieveAuditTypeDb());\r\n auditType.xmlSaveUpdateProperties();\r\n \r\n auditType = exampleRetrieveAuditTypeDb();\r\n \r\n assertFalse(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n \r\n }\r\n \r\n {\r\n auditType = exampleAuditTypeDb();\r\n exampleAuditType = exampleRetrieveAuditTypeDb();\r\n\r\n auditType.setId(\"abc\");\r\n \r\n assertTrue(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n\r\n auditType.setId(exampleAuditType.getId());\r\n auditType.xmlSaveBusinessProperties(exampleRetrieveAuditTypeDb());\r\n auditType.xmlSaveUpdateProperties();\r\n \r\n auditType = exampleRetrieveAuditTypeDb();\r\n \r\n assertFalse(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n \r\n }\r\n \r\n {\r\n auditType = exampleAuditTypeDb();\r\n exampleAuditType = exampleRetrieveAuditTypeDb();\r\n\r\n auditType.setLabelInt01(\"abc\");\r\n \r\n assertTrue(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n\r\n auditType.setLabelInt01(exampleAuditType.getLabelInt01());\r\n auditType.xmlSaveBusinessProperties(exampleRetrieveAuditTypeDb());\r\n auditType.xmlSaveUpdateProperties();\r\n \r\n auditType = exampleRetrieveAuditTypeDb();\r\n \r\n assertFalse(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n \r\n }\r\n \r\n {\r\n auditType = exampleAuditTypeDb();\r\n exampleAuditType = exampleRetrieveAuditTypeDb();\r\n\r\n auditType.setLabelInt02(\"abc\");\r\n \r\n assertTrue(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n\r\n auditType.setLabelInt02(exampleAuditType.getLabelInt02());\r\n auditType.xmlSaveBusinessProperties(exampleRetrieveAuditTypeDb());\r\n auditType.xmlSaveUpdateProperties();\r\n \r\n auditType = exampleRetrieveAuditTypeDb();\r\n \r\n assertFalse(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n \r\n }\r\n \r\n {\r\n auditType = exampleAuditTypeDb();\r\n exampleAuditType = exampleRetrieveAuditTypeDb();\r\n\r\n auditType.setLabelInt03(\"abc\");\r\n \r\n assertTrue(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n\r\n auditType.setLabelInt03(exampleAuditType.getLabelInt03());\r\n auditType.xmlSaveBusinessProperties(exampleRetrieveAuditTypeDb());\r\n auditType.xmlSaveUpdateProperties();\r\n \r\n auditType = exampleRetrieveAuditTypeDb();\r\n \r\n assertFalse(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n \r\n }\r\n \r\n {\r\n auditType = exampleAuditTypeDb();\r\n exampleAuditType = exampleRetrieveAuditTypeDb();\r\n\r\n auditType.setLabelInt04(\"abc\");\r\n \r\n assertTrue(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n\r\n auditType.setLabelInt04(exampleAuditType.getLabelInt04());\r\n auditType.xmlSaveBusinessProperties(exampleRetrieveAuditTypeDb());\r\n auditType.xmlSaveUpdateProperties();\r\n \r\n auditType = exampleRetrieveAuditTypeDb();\r\n \r\n assertFalse(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n \r\n }\r\n \r\n {\r\n auditType = exampleAuditTypeDb();\r\n exampleAuditType = exampleRetrieveAuditTypeDb();\r\n\r\n auditType.setLabelInt05(\"abc\");\r\n \r\n assertTrue(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n\r\n auditType.setLabelInt05(exampleAuditType.getLabelInt05());\r\n auditType.xmlSaveBusinessProperties(exampleRetrieveAuditTypeDb());\r\n auditType.xmlSaveUpdateProperties();\r\n \r\n auditType = exampleRetrieveAuditTypeDb();\r\n \r\n assertFalse(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n \r\n }\r\n \r\n {\r\n auditType = exampleAuditTypeDb();\r\n exampleAuditType = exampleRetrieveAuditTypeDb();\r\n\r\n auditType.setLabelString01(\"abc\");\r\n \r\n assertTrue(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n\r\n auditType.setLabelString01(exampleAuditType.getLabelString01());\r\n auditType.xmlSaveBusinessProperties(exampleRetrieveAuditTypeDb());\r\n auditType.xmlSaveUpdateProperties();\r\n \r\n auditType = exampleRetrieveAuditTypeDb();\r\n \r\n assertFalse(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n \r\n }\r\n \r\n {\r\n auditType = exampleAuditTypeDb();\r\n exampleAuditType = exampleRetrieveAuditTypeDb();\r\n\r\n auditType.setLabelString02(\"abc\");\r\n \r\n assertTrue(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n\r\n auditType.setLabelString02(exampleAuditType.getLabelString02());\r\n auditType.xmlSaveBusinessProperties(exampleRetrieveAuditTypeDb());\r\n auditType.xmlSaveUpdateProperties();\r\n \r\n auditType = exampleRetrieveAuditTypeDb();\r\n \r\n assertFalse(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n \r\n }\r\n \r\n {\r\n auditType = exampleAuditTypeDb();\r\n exampleAuditType = exampleRetrieveAuditTypeDb();\r\n\r\n auditType.setLabelString03(\"abc\");\r\n \r\n assertTrue(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n\r\n auditType.setLabelString03(exampleAuditType.getLabelString03());\r\n auditType.xmlSaveBusinessProperties(exampleRetrieveAuditTypeDb());\r\n auditType.xmlSaveUpdateProperties();\r\n \r\n auditType = exampleRetrieveAuditTypeDb();\r\n \r\n assertFalse(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n \r\n }\r\n \r\n {\r\n auditType = exampleAuditTypeDb();\r\n exampleAuditType = exampleRetrieveAuditTypeDb();\r\n\r\n auditType.setLabelString04(\"abc\");\r\n \r\n assertTrue(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n\r\n auditType.setLabelString04(exampleAuditType.getLabelString04());\r\n auditType.xmlSaveBusinessProperties(exampleRetrieveAuditTypeDb());\r\n auditType.xmlSaveUpdateProperties();\r\n \r\n auditType = exampleRetrieveAuditTypeDb();\r\n \r\n assertFalse(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n \r\n }\r\n \r\n {\r\n auditType = exampleAuditTypeDb();\r\n exampleAuditType = exampleRetrieveAuditTypeDb();\r\n\r\n auditType.setLabelString05(\"abc\");\r\n \r\n assertTrue(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n\r\n auditType.setLabelString05(exampleAuditType.getLabelString05());\r\n auditType.xmlSaveBusinessProperties(exampleRetrieveAuditTypeDb());\r\n auditType.xmlSaveUpdateProperties();\r\n \r\n auditType = exampleRetrieveAuditTypeDb();\r\n \r\n assertFalse(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n \r\n }\r\n \r\n {\r\n auditType = exampleAuditTypeDb();\r\n exampleAuditType = exampleRetrieveAuditTypeDb();\r\n\r\n auditType.setLabelString06(\"abc\");\r\n \r\n assertTrue(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n\r\n auditType.setLabelString06(exampleAuditType.getLabelString06());\r\n auditType.xmlSaveBusinessProperties(exampleRetrieveAuditTypeDb());\r\n auditType.xmlSaveUpdateProperties();\r\n \r\n auditType = exampleRetrieveAuditTypeDb();\r\n \r\n assertFalse(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n \r\n }\r\n \r\n {\r\n auditType = exampleAuditTypeDb();\r\n exampleAuditType = exampleRetrieveAuditTypeDb();\r\n\r\n auditType.setLabelString07(\"abc\");\r\n \r\n assertTrue(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n\r\n auditType.setLabelString07(exampleAuditType.getLabelString07());\r\n auditType.xmlSaveBusinessProperties(exampleRetrieveAuditTypeDb());\r\n auditType.xmlSaveUpdateProperties();\r\n \r\n auditType = exampleRetrieveAuditTypeDb();\r\n \r\n assertFalse(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n \r\n }\r\n \r\n {\r\n auditType = exampleAuditTypeDb();\r\n exampleAuditType = exampleRetrieveAuditTypeDb();\r\n\r\n auditType.setLabelString08(\"abc\");\r\n \r\n assertTrue(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n\r\n auditType.setLabelString08(exampleAuditType.getLabelString08());\r\n auditType.xmlSaveBusinessProperties(exampleRetrieveAuditTypeDb());\r\n auditType.xmlSaveUpdateProperties();\r\n \r\n auditType = exampleRetrieveAuditTypeDb();\r\n \r\n assertFalse(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n \r\n }\r\n \r\n }", "public void testHideAndRevealLabelWithOutlineOnEdge() throws Exception {\n if (TestsUtil.shouldSkipUnreliableTests()) {\n // Causes timeout.\n return;\n }\n // Step 1 : hide the label and check that it is correctly hidden\n SWTBotGefEditPart editPart = editor.getEditPart(EDGE_WITH_LABEL_NAME);\n SWTBotGefEditPart parentEditPart = editPart.parent();\n checkEdgeLabelIsVisible(EDGE_WITH_LABEL_NAME);\n\n final SWTBotView view = getAndExpandOutlineView(true);\n\n // Step 1.2 : open the context menu the element to hide and select the\n // hide element action\n SWTBotTreeItem labelItem = view.bot().tree().getTreeItem(\"p\").getNode(EDGE_WITH_LABEL_NAME + \" : B\").getNode(LABEL_SUFFIX_IN_OUTLINE).click();\n view.bot().tree().getTreeItem(\"p\").getNode(EDGE_WITH_LABEL_NAME + \" : B\").getNode(LABEL_SUFFIX_IN_OUTLINE).select();\n SWTBotUtils.waitAllUiEvents();\n bot.waitUntil(new TreeItemSelected(labelItem));\n setShownImage(labelItem);\n SWTBotTreeItem nodeItem = view.bot().tree().getTreeItem(\"p\").getNode(EDGE_WITH_LABEL_NAME + \" : B\").click();\n view.bot().tree().getTreeItem(\"p\").getNode(EDGE_WITH_LABEL_NAME + \" : B\").select();\n SWTBotUtils.waitAllUiEvents();\n bot.waitUntil(new TreeItemSelected(nodeItem));\n checkOutlineIsCorrectlyDecorated(labelItem, false);\n nodeItem.contextMenu(HIDE_LABEL_TOOLTIP).click();\n\n // Step 1.3 : ensure node is hidden\n checkEdgeLabelIsHidden(EDGE_WITH_LABEL_NAME);\n checkOutlineIsCorrectlyDecorated(labelItem, true);\n\n // Step 2 : ensure that the outline doesn't propose user to hide\n // label anymore\n boolean outlineAllowToHideLabel = true;\n boolean outlineAllowToRevealLabel = false;\n\n editor.select(parentEditPart);\n SWTBotUtils.waitAllUiEvents();\n final long oldTimeout = SWTBotPreferences.TIMEOUT;\n try {\n SWTBotPreferences.TIMEOUT = 1000;\n nodeItem.click().contextMenu(HIDE_LABEL_TOOLTIP).click();\n } catch (RuntimeException e) {\n outlineAllowToHideLabel = false;\n try {\n nodeItem.click().contextMenu(REVEAL_LABEL_TOOLTIP).click();\n outlineAllowToRevealLabel = true;\n } catch (WidgetNotFoundException wnfe) {\n outlineAllowToRevealLabel = false;\n }\n } finally {\n SWTBotPreferences.TIMEOUT = oldTimeout;\n Assert.assertFalse(\"The context menu shouldn't allow user to hide label of \" + editPart.part(), outlineAllowToHideLabel);\n Assert.assertTrue(\"The context menu should allow user to show label of \" + editPart.part(), outlineAllowToRevealLabel);\n\n // Step 4 : we ensure that label has been correctly revealed\n checkEdgeLabelIsVisible(EDGE_WITH_LABEL_NAME);\n checkOutlineIsCorrectlyDecorated(labelItem, false);\n }\n\n }", "@Test\n public void test6() throws Throwable {\n DefaultMenuItem defaultMenuItem0 = new DefaultMenuItem((Object) null);\n defaultMenuItem0.getRenderer();\n }", "@Override\n\t@Ignore\n\t@Test\n\tpublic void testLaunchThenDetach() throws Throwable {\n\t}", "@Test(timeout = 4000)\n public void test132() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"]f '8Drr>Uj1==M2\");\n Hidden hidden0 = new Hidden(xmlEntityRef0, \"]f '8Drr>Uj1==M2\", \"wheel_ErrorPage\");\n // Undeclared exception!\n try { \n hidden0.h3((Object) \"java.lang.StringBuffer@0000000004\");\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test\n public void testDown(){\n controller.setDown(true);\n assertTrue(controller.getDown());\n }", "@Ignore //DKH\n @Test\n public void testMakePersistentRecursesThroughReferenceFields() {\n }", "@Test(timeout = 4000)\n public void test047() throws Throwable {\n HomeEnvironment homeEnvironment0 = new HomeEnvironment((-2146244858), (HomeTexture) null, (-2146244858), (HomeTexture) null, (-2146244858), (-2146244858));\n homeEnvironment0.setCeillingLightColor((-2146244858));\n homeEnvironment0.clone();\n assertEquals((-2146244858), homeEnvironment0.getCeillingLightColor());\n }", "@Test(timeout = 4000)\n public void test277() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n errorPage0.strike();\n Component component0 = errorPage0.legend();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component0._isGeneratedId());\n }", "protected ExpressionExperiment getTestPersistentExpressionExperiment() {\n return testHelper.getTestPersistentExpressionExperiment();\n }", "public void setOldProperty_description(java.lang.String param){\n localOldProperty_descriptionTracker = true;\n \n this.localOldProperty_description=param;\n \n\n }", "protected PropertyInstance getFixture() {\n\t\treturn fixture;\n\t}", "@Override\r\npublic void beforeChangeValueOf(WebElement arg0, WebDriver arg1, CharSequence[] arg2) {\n\tSystem.out.println(\"as\");\r\n}", "public void remTarget(){\n rem(DmpDMSAG.__target);\n }", "void deactivate() {\n\t\tanimalTemplate = null;\n\t\tscope=null;\n\t\ttriggerOnID=false;\n\t\tstate = null;\n\t\tlog.debug(bundleMarker, \"deactivating...\");\n\t}", "@Test(timeout = 4000)\n public void test002() throws Throwable {\n Form form0 = new Form(\"z=OF5Ty4t\");\n String[] stringArray0 = new String[8];\n stringArray0[0] = \"java.lang.String@0000000005\";\n Component component0 = form0.attributes(stringArray0);\n assertEquals(\"z=OF5Ty4t\", component0.getComponentId());\n }", "@Test\n \n public void testD_MenuDescriptionChanged() {\n\n\n Menu menu = (Menu) menuTable.getSelectionModel().getSelectedItem();\n String descriptionBefore = menu.getDescription();\n\n // Click on cell 4 and change Status\n Node cell = lookup(\"#clmnDescription\").nth(1).query();\n doubleClickOn(cell).write(\"Cambio\").type(KeyCode.ENTER);\n\n // Select row and get user.\n cell = lookup(\".table-row-cell\").nth(0).query();\n clickOn(cell);\n Menu menu2 = (Menu) menuTable.getSelectionModel().getSelectedItem();\n assertNotEquals(descriptionBefore, menu2.getDescription());\n\n }", "@Test(timeout = 4000)\n public void test217() throws Throwable {\n Hidden hidden0 = new Hidden((Component) null, \".*,r%\", \"Col component ca be added only to a TableBlock.\");\n Checkbox checkbox0 = new Checkbox(hidden0, \"Col component ca be added only to a TableBlock.\", \"Col component ca be added only to a TableBlock.\");\n Checkbox checkbox1 = (Checkbox)checkbox0.addInternalRenderHint(\"z%+/0u:g&ib%-bQ:\");\n assertEquals(\"Col component ca be added only to a TableBlock.\", checkbox1.getFormElementName());\n }", "@Test(timeout = 4000)\n public void test181() throws Throwable {\n Hidden hidden0 = new Hidden((Component) null, \"(vLoO6y2\\\"Vht&{{\", \"(vLoO6y2\\\"Vht&{{\");\n // Undeclared exception!\n try { \n hidden0._wrapComponentId(\"(vLoO6y2\\\"Vht&{{\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // No top level component found.\n //\n verifyException(\"wheel.components.Component\", e);\n }\n }", "@Override\r\npublic void afterChangeValueOf(WebElement arg0, WebDriver arg1, CharSequence[] arg2) {\n\tSystem.out.println(\"as\");\r\n}", "@Test(timeout = 4000)\n public void test366() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Byte byte0 = new Byte((byte)1);\n Label label0 = new Label(errorPage0, byte0);\n Component component0 = label0.samp();\n assertTrue(component0._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "public void test56() {\n //$NON-NLS-1$\n deployBundles(\"test56\");\n IApiBaseline before = getBeforeState();\n IApiBaseline after = getAfterState();\n IApiComponent beforeApiComponent = before.getApiComponent(BUNDLE_NAME);\n //$NON-NLS-1$\n assertNotNull(\"no api component\", beforeApiComponent);\n IApiComponent afterApiComponent = after.getApiComponent(BUNDLE_NAME);\n //$NON-NLS-1$\n assertNotNull(\"no api component\", afterApiComponent);\n IDelta delta = ApiComparator.compare(beforeApiComponent, afterApiComponent, before, after, VisibilityModifiers.ALL_VISIBILITIES, null);\n //$NON-NLS-1$\n assertNotNull(\"No delta\", delta);\n IDelta[] allLeavesDeltas = collectLeaves(delta);\n //$NON-NLS-1$\n assertEquals(\"Wrong size\", 2, allLeavesDeltas.length);\n IDelta child = allLeavesDeltas[0];\n //$NON-NLS-1$\n assertEquals(\"Wrong kind\", IDelta.REMOVED, child.getKind());\n //$NON-NLS-1$\n assertEquals(\"Wrong flag\", IDelta.TYPE_PARAMETER, child.getFlags());\n //$NON-NLS-1$\n assertEquals(\"Wrong element type\", IDelta.CLASS_ELEMENT_TYPE, child.getElementType());\n //$NON-NLS-1$\n assertFalse(\"Is compatible\", DeltaProcessor.isCompatible(child));\n child = allLeavesDeltas[1];\n //$NON-NLS-1$\n assertEquals(\"Wrong kind\", IDelta.REMOVED, child.getKind());\n //$NON-NLS-1$\n assertEquals(\"Wrong flag\", IDelta.TYPE_ARGUMENT, child.getFlags());\n //$NON-NLS-1$\n assertEquals(\"Wrong element type\", IDelta.FIELD_ELEMENT_TYPE, child.getElementType());\n //$NON-NLS-1$\n assertFalse(\"Is compatible\", DeltaProcessor.isCompatible(child));\n }", "@Test(timeout = 4000)\n public void test43() throws Throwable {\n DynamicSelectModel dynamicSelectModel0 = new DynamicSelectModel();\n dynamicSelectModel0.reset();\n }", "void detachCurrent();", "public void test4() {\n //$NON-NLS-1$\n deployBundles(\"test4\");\n IApiBaseline before = getBeforeState();\n IApiBaseline after = getAfterState();\n IApiComponent beforeApiComponent = before.getApiComponent(BUNDLE_NAME);\n //$NON-NLS-1$\n assertNotNull(\"no api component\", beforeApiComponent);\n IApiComponent afterApiComponent = after.getApiComponent(BUNDLE_NAME);\n //$NON-NLS-1$\n assertNotNull(\"no api component\", afterApiComponent);\n IDelta delta = ApiComparator.compare(beforeApiComponent, afterApiComponent, before, after, VisibilityModifiers.ALL_VISIBILITIES, null);\n //$NON-NLS-1$\n assertNotNull(\"No delta\", delta);\n IDelta[] allLeavesDeltas = collectLeaves(delta);\n //$NON-NLS-1$\n assertEquals(\"Wrong size\", 1, allLeavesDeltas.length);\n IDelta child = allLeavesDeltas[0];\n //$NON-NLS-1$\n assertEquals(\"Wrong kind\", IDelta.CHANGED, child.getKind());\n //$NON-NLS-1$\n assertTrue(\"Is visible\", !Util.isVisible(child.getNewModifiers()));\n //$NON-NLS-1$\n assertEquals(\"Wrong flag\", IDelta.VALUE, child.getFlags());\n //$NON-NLS-1$\n assertEquals(\"Wrong element type\", IDelta.FIELD_ELEMENT_TYPE, child.getElementType());\n //$NON-NLS-1$\n assertTrue(\"Not compatible\", DeltaProcessor.isCompatible(child));\n }", "@Test\n public void testGetDisplayName_2()\n throws Exception {\n ColumnPreferences fixture = new ColumnPreferences(\"\", \"\", 1, ColumnPreferences.Visibility.HIDDEN, ColumnPreferences.Hidability.HIDABLE);\n fixture.setVisible(true);\n\n String result = fixture.getDisplayName();\n\n assertEquals(\"\", result);\n }", "@Test()\n\tpublic void depend() {\n\t\t\n\t\tdriver.manage().timeouts().implicitlyWait(3, TimeUnit.SECONDS);\n\t\tdriver.get(\"https://www.demoblaze.com/\");\n\t\tString title=driver.getTitle();\n\t\tSystem.out.println(title+Thread.currentThread().getId());\n//\t\tSystem.out.println(\"dependency\");\n//\t\tAssert.assertEquals(true, true);\n\t}", "public void testHideLabelWithTabbarOnNode() {\n\n // Step 1 : hide the label and check that it is correctly hidden\n SWTBotGefEditPart editPart = editor.getEditPart(NODE_WITH_LABEL_NAME).parent();\n\n checkLabelIsVisible(NODE_WITH_LABEL_NAME);\n editor.select(Sets.newHashSet(editPart));\n editor.bot().toolbarButtonWithTooltip(HIDE_LABEL_TOOLTIP).click();\n\n checkLabelIsHidden(NODE_WITH_LABEL_NAME);\n\n // Step 2 : ensure that the tabbar doesn't propose user to hide label\n // anymore\n boolean hideLabelTabbarFound = true;\n editor.select(editPart);\n\n // Wait all UI events to ensure that the tabbar is correctly refreshed.\n SWTBotUtils.waitAllUiEvents();\n SWTBotToolbarButton button = null;\n final long oldTimeout = SWTBotPreferences.TIMEOUT;\n try {\n SWTBotPreferences.TIMEOUT = 1000;\n button = editor.bot().toolbarButtonWithTooltip(HIDE_LABEL_TOOLTIP);\n } catch (WidgetNotFoundException e) {\n hideLabelTabbarFound = false;\n } finally {\n SWTBotPreferences.TIMEOUT = oldTimeout;\n Assert.assertFalse(\"The tabbar shouldn't allow user to hide label of \" + NODE_WITH_LABEL_NAME + \" (as it is already hidden)\", hideLabelTabbarFound && button.isEnabled());\n }\n }", "@Override\n\tprotected Presentation getFixture() {\n\t\treturn (Presentation)fixture;\n\t}", "protected GuiTestObject title() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"title\"));\n\t}", "@Override\n public void onValueDeselected() {\n\n }", "@Override\n public void onValueDeselected() {\n\n }", "@Override\n public void onValueDeselected() {\n\n }", "@Override\n public void onValueDeselected() {\n\n }" ]
[ "0.6752919", "0.6411017", "0.5866897", "0.53935075", "0.5320795", "0.5140295", "0.5126578", "0.51093024", "0.50730455", "0.49377674", "0.48997974", "0.488288", "0.4862467", "0.4861481", "0.47563526", "0.47316685", "0.46938047", "0.46733546", "0.46677247", "0.46547827", "0.46537843", "0.46483612", "0.4639704", "0.46394083", "0.4638364", "0.46223426", "0.46212098", "0.46188447", "0.45895883", "0.45813262", "0.45796534", "0.45775947", "0.45686638", "0.45681426", "0.45455605", "0.45339653", "0.4517212", "0.45147732", "0.45098037", "0.45007414", "0.44901857", "0.44817376", "0.4477313", "0.44681615", "0.44633052", "0.44630033", "0.44576922", "0.44562256", "0.4448919", "0.4444181", "0.4434215", "0.4415961", "0.44159025", "0.43918383", "0.43916062", "0.43896714", "0.43893287", "0.43836087", "0.4381651", "0.43727672", "0.43706167", "0.43640876", "0.43638694", "0.43626294", "0.43614697", "0.43574435", "0.43532535", "0.43446493", "0.4341399", "0.43394342", "0.43393877", "0.43358237", "0.43314642", "0.43248552", "0.43243665", "0.43221593", "0.43064722", "0.43043837", "0.43019766", "0.4301869", "0.42954272", "0.429479", "0.4294045", "0.42939067", "0.42860964", "0.4279837", "0.42741165", "0.42727363", "0.4271026", "0.42708734", "0.42694947", "0.42676702", "0.4265791", "0.42636192", "0.42618415", "0.42563674", "0.42545873", "0.42545873", "0.42545873", "0.42545873" ]
0.59326595
2
FlatMaisonette: with default state. .id : propertyflat .value : Flat/maisonette .title : .class : Html.LABEL .classIndex : 0
protected GuiTestObject flatMaisonette() { return new GuiTestObject( getMappedTestObject("flatMaisonette")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Text createTitle() {\n\t\tText title = new Text(\"Selecteer Gasten\");\n\t\ttitle.getStyleClass().add(\"h1\");\n\t\ttitle.setFont(Font.font(22));\n\t\treturn title;\t\t\n\t}", "public Node makeTitle(String text) {\r\n VBox panel = new VBox();\r\n Label label = makeLabel(myResources.getString(text));\r\n panel.setAlignment(Pos.CENTER);\r\n Button returnHome = makeButton(\"Main\", e -> {\r\n MainDisplay display = new MainDisplay(sceneLanguage, sceneWidth, sceneHeight);\r\n mainScene.setRoot(display.setUpComponents());\r\n display.changeScene(mainScene);\r\n });\r\n panel.getChildren().addAll(label, returnHome);\r\n panel.setMargin(label, new Insets(0, 15, 0, 0));\r\n return panel;\r\n }", "interface WithTitle {\n /**\n * Specifies the title property: The title of the lab..\n *\n * @param title The title of the lab.\n * @return the next definition stage.\n */\n WithCreate withTitle(String title);\n }", "public SceneLabelObjectState(){\n\t\tsuper();\n\t\tsuper.setObjectsPrimaryType(SceneObjectType.Label);\n\n\t}", "private Label setTitle() {\r\n Label title = new Label(TITLE);\r\n title.setFont(Font.font(null, FontWeight.BOLD, null, TITLESZE));\r\n return title;\r\n }", "ComponentBuilder named(String label);", "interface WithTitle {\n /**\n * Specifies the title property: The title of the lab..\n *\n * @param title The title of the lab.\n * @return the next definition stage.\n */\n Update withTitle(String title);\n }", "private void initSimulateModeView() {\n simulateMode = new Label(\"SIMULATE\");\n simulateMode.setPrefSize(200, 100);\n simulateMode.setFont(Font.font(null, FontWeight.BOLD, 30));\n simulateMode.setTextFill(Color.ORANGE);\n simulateMode.setEffect(getDropShadow());\n }", "public Builder() {\n\t\t\tsuper(Defaults.NAME);\n\t\t}", "@JSProperty(\"showFirstLabel\")\n boolean getShowFirstLabel();", "public String _buildtheme() throws Exception{\n_theme.Initialize(\"pagetheme\");\r\n //BA.debugLineNum = 91;BA.debugLine=\"theme.AddABMTheme(ABMShared.MyTheme)\";\r\n_theme.AddABMTheme(_abmshared._mytheme);\r\n //BA.debugLineNum = 94;BA.debugLine=\"theme.AddLabelTheme(\\\"lightblue\\\")\";\r\n_theme.AddLabelTheme(\"lightblue\");\r\n //BA.debugLineNum = 95;BA.debugLine=\"theme.Label(\\\"lightblue\\\").ForeColor = ABM.COLOR_LI\";\r\n_theme.Label(\"lightblue\").ForeColor = _abm.COLOR_LIGHTBLUE;\r\n //BA.debugLineNum = 96;BA.debugLine=\"End Sub\";\r\nreturn \"\";\r\n}", "private void createStartingLabel() {\n \tcreateLabel(myResources.getString(\"title\"), 1, 0, TITLE_FONT);\n }", "public SceneLabelObjectState(SceneDivObjectState state){\t\t\n\t\tsuper(state); //will create a SceneDivObjectState from the supplied state\n\t\tsuper.setObjectsPrimaryType(SceneObjectType.Label); //subtypes should also run this statement straight after the super command in order to override their parents type and set their own as the primary/\n\n\t\t//Clear css parameters from general settings passed to this\n\t\t//This is because Dialogue objects treats these differently.\n\t\t//We fill them up correctly when the dialogue specific stuff is processed\n\t\tCurrentBoxCSS=\"\";\n\n\t}", "protected GuiTestObject title() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"title\"));\n\t}", "Label getLabelRootRecherche();", "Object getDefaultLabel() {\n return null;\n }", "@JSProperty(\"showFirstLabel\")\n void setShowFirstLabel(boolean value);", "public SceneLabelObjectState(SceneObjectState state){\n\t\tsuper(state);\n\t\tsuper.setObjectsPrimaryType(SceneObjectType.Label);\n\t\t//super.getCurrentType()=SceneObjectType.DialogBox;\n\t\t//super.setObjectsOnlyType(SceneObjectType.DialogBox); //we don't set this anymore as subclasses may set this themselves!\n\n\t\t//Clear css parameters from general settings passed to this\n\t\t//This is because Dialogue objects treats these differently.\n\t\t//We fill them up correctly when the dialogue specific stuff is processed\n\t\tCurrentBoxCSS=\"\";\n\n\t}", "@Override\n public void setLabel(String arg0)\n {\n \n }", "private void setNameAutomatic(){\n\t}", "String nameLabel();", "public void buildDefault(View v){\r\n }", "public static ComponentBuilder<?, ?> createCustomTitleComponent(String label) {\n\n StyleBuilder bold12CenteredStyle = stl.style(boldStyle).setFontSize(12);\n StyleBuilder bold16CenteredStyle = stl.style(boldStyle).setFontSize(16).setForegroundColor(new Color(0, 0, 0));\n //StyleBuilder italicStyle = stl.style(rootStyle).italic();\n ComponentBuilder<?, ?> logoComponent = cmp.verticalList(\n //cmp.image(Templates.class.getResource(\"/logopalm.png\")).setFixedDimension(150, 60),\n cmp.text(label).setStyle(bold16CenteredStyle).setHorizontalAlignment(HorizontalAlignment.CENTER) \n );\n return logoComponent;\n }", "private JLabel makeLabel(String title, boolean h1) {\n JLabel label = new JLabel(title);\n if (h1 == true) {//if the label is to be a title\n label.setForeground(themeColor);\n label.setFont(new Font(\"Terminal Bold\", Font.PLAIN, 48));\n } else {\n label.setFont(new Font(\"Terminal Bold\", Font.PLAIN, 25));\n label.setForeground(Color.white);\n }\n return label;\n\n }", "public Title()\r\n {\r\n startTag=\"TITLE\";\r\n endTag=\"/TITLE\"; \r\n }", "public abstract String getLabel();", "@FXML\n public void init_labels() {\n name_output.setText(\"el que digui domini\");\n\n String quatri;\n int q = 1; // pillar de domini\n if(q == 1) quatri = \"Q1\";\n else if (q == 2) quatri =\"Q2\";\n else quatri = \"Q1 & Q2\";\n quatri_output.setText(quatri);\n\n String nivell;\n int n = 1; // pillar de domini\n if(n == 1) nivell = \"Inicial\";\n else if (n == 2) nivell =\"Troncal\";\n else nivell = \"Especialitat\";\n nivell_output.setText(nivell);\n\n boolean tmp = false; // pillar de domini i pot desapareixer aquest boolean tmp\n if(tmp) teo_output.setText(\"Sí\");\n else teo_output.setText(\"No\");\n\n // suposo que domini em retorna un array de bools\n boolean tmp_array[] = {true, false, true, false, true, false};\n String lab = \"\";\n if (tmp_array[0]) lab += \"Projector\\n\";\n if (tmp_array[1]) lab += \"Ubuntu\\n\";\n if (tmp_array[2]) lab += \"Linux/Windows\\n\";\n if (tmp_array[3]) lab += \"Física\\n\";\n if (tmp_array[4]) lab += \"Embeded\\n\";\n if (tmp_array[5]) lab += \"Xarxes\\n\";\n // lab_output.setWrapText(true);\n lab_output.setText(lab);\n }", "@Override\r\n public void create() {\r\n super.create();\r\n setTitle(title);\r\n }", "public Identity(){\n setLabel(\"I\");\n }", "private void createNodeLabel(NodeAppearanceCalculator nac) {\r\n\t PassThroughMapping passThroughMapping = new PassThroughMapping(\"\",\r\n\t ObjectMapping.NODE_MAPPING);\r\n\t \r\n\t // change canonicalName to Label\r\n//\t passThroughMapping.setControllingAttributeName\r\n//\t (\"canonicalName\", null, false);\r\n\t passThroughMapping.setControllingAttributeName\r\n// (Semantics.LABEL, null, false);\r\n\t (Semantics.CANONICAL_NAME, null, false);\r\n\t\r\n\t GenericNodeLabelCalculator nodeLabelCalculator =\r\n\t new GenericNodeLabelCalculator(\"SimpleBioMoleculeEditor ID Label\"\r\n\t , passThroughMapping);\r\n\t nac.setNodeLabelCalculator(nodeLabelCalculator);\r\n\t }", "@Override\n\tprotected void initTitle() {\n\t\tsetTitleContent(R.string.tocash);\n\t\tsetBtnBack();\n\t}", "private Label initHBoxLabel(HBox container, DraftKit_PropertyType labelProperty, String styleClass) {\n Label label = initLabel(labelProperty, styleClass);\n container.getChildren().add(label);\n return label;\n }", "@FXML public void handleDefault() {\n\t\tSystem.out.println(\"Default clicked!\");\n\t\t\n\t\tbatchSizeField.setText(\"100\");\n\t\t\n\t\tbinarySplitButton.setText(\"False\");\n\t\tbinarySplitButton.setSelected(false);\n\t\t\n\t\tcollapseTreeButton.setText(\"True\");\n\t\tcollapseTreeButton.setSelected(true);\n\t\t\n\t\tconfidenceFactorField.setText(\"0.25\");\n\t\t\n\t\tdebugButton.setText(\"False\");\n\t\tdebugButton.setSelected(false);\n\t\t\n\t\tdoNotCheckCapabilitiesButton.setText(\"False\");\n\t\tdoNotCheckCapabilitiesButton.setSelected(false);\n\t\t\n\t\tdoNotMakeSplitPAVButton.setText(\"False\");\n\t\tdoNotMakeSplitPAVButton.setSelected(false);\n\t\t\n\t\tminNumObjField.setText(\"2\");\n\t\t\n\t\tnumDecimalPlacesField.setText(\"2\");\n\t\t\n\t\tnumFoldsField.setText(\"3\");\n\t\t\n\t\treduceErrorPruningButton.setText(\"False\");\n\t\treduceErrorPruningButton.setSelected(false);\n\t\t\n\t\tsaveInstanceDataButton.setText(\"False\");\n\t\tsaveInstanceDataButton.setSelected(false);\n\t\t\n\t\tseedField.setText(\"1\");\n\t\t\n\t\tsubTreeRaisingButton.setText(\"True\");\n\t\tsubTreeRaisingButton.setSelected(true);\n\n\t\tunprunedButton.setText(\"False\");\n\t\tunprunedButton.setSelected(false);\n\t\t\n\t\tuseLaplaceButton.setText(\"False\");\n\t\tuseLaplaceButton.setSelected(false);\n\t\t\n\t\tuseMDLcorrectionButton.setText(\"True\");\n\t\tuseMDLcorrectionButton.setSelected(true);\n\t\t\n\t}", "private void initUI()\r\n\t{\r\n\t\tthis.label = new Label();\r\n\t\t\r\n\t\tthis.label.setText(\"This view is also saveable\");\r\n\t\t\r\n\t\tthis.label.setSizeUndefined();\r\n\t\tthis.add(this.label);\r\n\t\tthis.setSizeFull();\r\n\t}", "@DISPID(-2147418043)\n @PropGet\n java.lang.String title();", "ReadOnlyStringProperty labelProperty();", "public void setLabelFor(View root, int virtualDescendantId) {\n/* 1603 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public LabelFactory() {\n this(0);\n }", "public void Themes31()\n {\n theme3= new Label(\"Theme\");\n theme3.setPrefWidth(150);\n theme3.setFont(new Font(13));\n theme3.setPrefHeight(40);\n theme3.setBackground(new Background(new BackgroundFill(Color.YELLOW,CornerRadii.EMPTY,Insets.EMPTY)));\n \n \n dikoma3 = new Label(\"Dikoma\");\n dikoma3.setFont(new Font(13));\n dikoma3.setPrefWidth(150);\n dikoma3.setPrefHeight(40);\n dikoma3.setBackground(new Background(new BackgroundFill(Color.GREEN,CornerRadii.EMPTY,Insets.EMPTY)));\n \n diagelo3 = new Label(\"Diagelo\");\n diagelo3.setFont(new Font(13));\n diagelo3.setPrefWidth(150);\n diagelo3.setPrefHeight(40);\n diagelo3.setBackground(new Background(new BackgroundFill(Color.YELLOW,CornerRadii.EMPTY,Insets.EMPTY)));\n \n \n abuse3 = new Label(\"Woman & children abuse\");\n abuse3.setPrefWidth(150);\n abuse3.setFont(new Font(13));\n abuse3.setPrefHeight(40);\n abuse3.setBackground(new Background(new BackgroundFill(Color.GREEN,CornerRadii.EMPTY,Insets.EMPTY)));\n \n \n trafficking3 = new Label(\"Human trafficking\");\n trafficking3.setFont(new Font(13));\n trafficking3.setPrefWidth(150);\n trafficking3.setPrefHeight(40);\n trafficking3.setBackground(new Background(new BackgroundFill(Color.YELLOW,CornerRadii.EMPTY,Insets.EMPTY)));\n }", "@Override\n\t\t\tpublic String getLabel() {\n\t\t\t\treturn null;\n\t\t\t}", "private Node createTitle() {\n\t\tText titleText = new Text(\" Restaurant Inventory Management \");\n\t\ttitleText.setFont(Font.font(\"Arial\", FontWeight.BOLD, 40));\n\t\ttitleText.setTextAlignment(TextAlignment.CENTER);\n\t\t\n\n\t\treturn titleText;\n\t}", "@Override\n public String getId() {\n return \"1\";\n }", "public void themesa()\n {\n \n \n \n \n }", "@Override\n\tprotected void setValueOnUi() {\n\n\t}", "public void Themes21()\n {\n theme2= new Label(\"Theme\");\n theme2.setPrefWidth(150);\n theme2.setFont(new Font(13));\n theme2.setPrefHeight(40);\n theme2.setBackground(new Background(new BackgroundFill(Color.YELLOW,CornerRadii.EMPTY,Insets.EMPTY)));\n \n \n dikoma2 = new Label(\"Dikoma\");\n dikoma2.setFont(new Font(13));\n dikoma2.setPrefWidth(150);\n dikoma2.setPrefHeight(40);\n dikoma2.setBackground(new Background(new BackgroundFill(Color.GREEN,CornerRadii.EMPTY,Insets.EMPTY)));\n \n diagelo2 = new Label(\"Diagelo\");\n diagelo2.setFont(new Font(13));\n diagelo2.setPrefWidth(150);\n diagelo2.setPrefHeight(40);\n diagelo2.setBackground(new Background(new BackgroundFill(Color.YELLOW,CornerRadii.EMPTY,Insets.EMPTY)));\n \n \n abuse2 = new Label(\"Woman & children abuse\");\n abuse2.setPrefWidth(150);\n abuse2.setFont(new Font(13));\n abuse2.setPrefHeight(40);\n abuse2.setBackground(new Background(new BackgroundFill(Color.GREEN,CornerRadii.EMPTY,Insets.EMPTY)));\n \n \n trafficking2 = new Label(\"Human trafficking\");\n trafficking2.setFont(new Font(13));\n trafficking2.setPrefWidth(150);\n trafficking2.setPrefHeight(40);\n trafficking2.setBackground(new Background(new BackgroundFill(Color.YELLOW,CornerRadii.EMPTY,Insets.EMPTY)));\n }", "private Label initVBoxLabel(VBox container, DraftKit_PropertyType labelProperty, String styleClass) {\n Label label = initLabel(labelProperty, styleClass);\n container.getChildren().add(label);\n return label;\n }", "@Override\n public int getId() {\n return 0;\n }", "void setId(int val);", "private RLabel getVersionLabel() {\n if (versionLabel == null) {\n versionLabel = new RLabel();\n versionLabel.setText(\"<%= ivy.cms.co(\\\"/Dialogs/about/productVersion\\\") %>\");\n versionLabel.setStyleProperties(\"{/insetsTop \\\"2\\\"}\");\n versionLabel.setName(\"versionLabel\");\n }\n return versionLabel;\n }", "public void setElementName(CamelCaseName value){\n ((MenuDMO) core).setElementName(value);\n }", "String getLabel();", "String getLabel();", "public void setMenuLabel(java.lang.String value);", "protected GuiTestObject title(TestObject anchor, long flags) \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"title\"), anchor, flags);\n\t}", "@Override\n public String getLabel() {\n return label;\n }", "private Label initLabel(DraftKit_PropertyType labelProperty, String styleClass) {\n PropertiesManager props = PropertiesManager.getPropertiesManager();\n String labelText = props.getProperty(labelProperty);\n Label label = new Label(labelText);\n label.getStyleClass().add(styleClass);\n return label;\n }", "public String getLabel();", "public String getLabel();", "public String getLabel();", "public String getLabel();", "@Override\n public String getName() {\n return \"Custom - \" + getTitle();\n }", "@Override\n\tpublic String getLabel() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getLabel() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getLabel() {\n\t\treturn null;\n\t}", "public String defaultname()\n {\n String newname = \"Stamp\"+Integer.toString(id);\n return newname;\n }", "@Override\n public void title_()\n {\n }", "@Override\n public void title()\n {\n }", "public void defaultContent() {\n\t\tgetter().switchTo().defaultContent();\r\n\t}", "public static LabelTarget label() { throw Extensions.todo(); }", "@Override\n public void show() {\n Label title = new Label(\"Hall of Fame\", new Label.LabelStyle(fonts.getInstance().getClouds(), Color.WHITE));\n title.setPosition(MENU_WIDTH / 2 - title.getWidth() / 2, MENU_HEIGHT / 1.9f + 3*title.getHeight());\n stage.addActor(title);\n }", "public abstract String getManipulatorButtonLabel();", "public Tag addDefaultTag(){\n StringProperty tagName = new SimpleStringProperty();\n tagName.setValue(\"New Tag\");\n Tag newTag = new Tag(tagName);\n\n\n /* verify if id is integer or string, we handle just strings here\n newTag.setIdProperty(0);\n */\n\n addTag(newTag);\n\n System.out.println(contentFromTags(tags));\n\n return newTag;\n }", "public abstract String getLabelText();", "private Text initNameText(){\n Text name = new Text(Values.NAME);\n name.setStyle(\"-fx-font-weight: bold;\" + \"-fx-font-size: 24;\");\n return name;\n }", "@Override\n\n // <editor-fold defaultstate=\"collapsed\" desc=\" UML Marker \"> \n // #[regen=yes,id=DCE.E1700BD9-298C-DA86-4BFF-194B41A6CF5E]\n // </editor-fold> \n protected String getProperties() {\n\n return \"Size = \" + size + \", Index = \" + value;\n\n }", "public static String defaultLabel(String id, Messages messages, String propertyExpression)\n {\n String key = id + \"-label\";\n \n if (messages.contains(key))\n return messages.get(key);\n \n return toUserPresentable(extractIdFromPropertyExpression(InternalCommonsUtils.lastTerm(propertyExpression)));\n }", "public String getLabel(){\n return label;\n }", "void setLabel(String label);", "public Ui() {\n this.sc = sc;\n }", "public interface CountryView extends MvpView {\n /**\n * show loading status\n * @param loading loading status should be visible or not\n */\n void showLoading(boolean loading);\n\n /**\n * if there is an error,show the related message about the error\n * @param errorMessage\n */\n void showError(String errorMessage);\n\n /**\n * show the facts of country\n * @param facts\n */\n void showFacts(List<Fact> facts);\n\n /**\n * show the title of the country\n * @param title\n */\n void showTitle(String title);\n\n}", "public Builder setTitle(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n title_ = value;\n onChanged();\n return this;\n }", "public String descriere(){\r\n\t\treturn \"Flori\";\r\n\t}", "public String defaultLabel() {\n\t\t\treturn defaultLab;\n\t\t}", "protected abstract String title ();", "@Override\n\tpublic int getTitle() {\n\t\treturn 0;\n\t}", "public Field label(String label);", "public Title() {\n super();\n initComponents();\n }", "public void fillIdentity() {\n\t\tString shipName = ship.getShipName();\n\t\tString name = shipsNameLabel.getText();\n\t\tshipsNameLabel.setText( name + shipName);\n\t\t\n\t\tdouble shipStatus = ship.getShipsStatus();\n\t\tString status = shipsStatusLabel.getText();\n\t\tshipsStatusLabel.setText( status + shipStatus + \"HP\");\n\t\t\n\t\tdouble shipCap = ship.getCapacity();\n\t\tString capacity = shipsCurrentCapacityLabel.getText();\n\t\tshipsCurrentCapacityLabel.setText(capacity + String.format(\"%.2f\", shipCap) + \"m^3\");\n\t\t\n\t\tint shipSpeed = ship.getShipsSpeed();\n\t\tString speed = shipsSpeedLabel.getText();\n\t\tshipsSpeedLabel.setText( speed + shipSpeed + \" km/day\");\n\t\t\n\t\tint shipCrew = ship.getCrew();\n\t\tString crew = crewsInShipLabel.getText();\n\t\tcrewsInShipLabel.setText(crew + shipCrew + \" people\");\n\t\t\n\t\tArrayList<Equipment> shipsEquipment = ship.getEquipment();\n\t\tArrayList<String> shipsEquipmentName = new ArrayList<String>();\n\t\tfor (Equipment equipment: shipsEquipment) {\n\t\t\tshipsEquipmentName.add(equipment.getName());\n\t\t}\n\t\tString equipments = shipsEquipmentLabel.getText();\n\t\tshipsEquipmentLabel.setText(equipments + shipsEquipmentName);\n\t\t\n\t}", "@DISPID(-2147417110)\n @PropGet\n java.lang.String id();", "private static String getModeledElementLabel(ModeledElement element) {\n\t\treturn element.getName();\n\t}", "public Head() {\r\n\t\tLog.debug(\"new Head\");\r\n\t\tsetStyleName(\"resHead\");\r\n\t\tsetWidth(WIDTH);\r\n\t\tsetAutoHeight();\r\n\t\tsetPadding(0);\r\n\r\n\t\ttitleRow = new HLayout();\r\n\t\ttitle = new Label();\r\n\t\tbreadcrumbs = new Breadcrumbs();\r\n\r\n\t\ttitleRow.setHeight(TITLE_HEIGHT);\r\n\t\ttitleRow.setWidth(WIDTH);\r\n\t\ttitle.setAutoFit(true);\r\n\t\ttitle.setWrap(false);\r\n\t\ttitle.setStyleName(\"resHeadTitle\");\r\n\t\ttitleRow.addMember(title);\r\n\r\n\t\taddMember(titleRow);\r\n\t\taddMember(breadcrumbs);\r\n\r\n\t}", "public SceneLabelObjectState(SceneLabelObjectState state){\t\t\n\t\tsuper(state); //will create a SceneDivObjectState from the supplied state\n\t\tsuper.setObjectsPrimaryType(SceneObjectType.Label); //subtypes should also run this statement straight after the super command in order to override their parents type and set their own as the primary/\n\n\n\t\tthis.ObjectsCurrentText = state.ObjectsCurrentText;\n\t\tthis.CSSname = state.CSSname;\n\t\tthis.cursorVisible=state.cursorVisible;\n\t\tthis.TypedText=state.TypedText;\t\t\n\t\tthis.Custom_Key_Beep = state.Custom_Key_Beep;\n\t\tthis.Custom_Space_Beep = state.Custom_Space_Beep;\n\n\t}", "@Override\n\tpublic String Show()\n\t{\n\t\treturn id;\n\t\t\n\t}", "@XmlAttribute\r\n public String getTitle() {\r\n return title;\r\n }", "@Override\n\tpublic String getInitialViewKml() {\n\t\treturn null;\n\t}", "E createDefaultElement();", "@Override\r\n\tpublic void getTitle() {\n\t\t\r\n\t}", "private void createTextFieldLabels() {\n // initialize empty textfield\n this.name = new TextField();\n this.id = new TextField();\n this.fiber = new TextField();\n this.calories = new TextField();\n this.fat = new TextField();\n this.carbohydrate = new TextField();\n this.protein = new TextField();\n // initialize labels\n this.nameLabel = new Label(\"Name:\");\n this.idLabel = new Label(\"ID:\");\n this.fiberLabel = new Label(\"Fiber:\");\n this.caloriesLabel = new Label(\"Calories:\");\n this.fatLabel = new Label(\"Fat:\");\n this.carbohydrateLabel = new Label(\"Carbohydrate:\");\n this.proteinLabel = new Label(\"Protein:\");\n }", "public String getTitle() {\n return \"\";\n }", "public ScText newIdText()\n {\n return newIdText(\"Id\");\n }" ]
[ "0.53515667", "0.53429484", "0.5306899", "0.52764094", "0.521743", "0.51817024", "0.51464176", "0.5134105", "0.51277906", "0.51253694", "0.5123987", "0.5117099", "0.51064813", "0.5095769", "0.5091024", "0.50755507", "0.50751704", "0.50703466", "0.50539255", "0.5040206", "0.50270814", "0.5024754", "0.5007543", "0.5002385", "0.49987853", "0.4998745", "0.49908784", "0.4988932", "0.4979246", "0.49548015", "0.49406356", "0.49251014", "0.491723", "0.49132103", "0.49067408", "0.48936337", "0.48802006", "0.48734653", "0.48592034", "0.48469096", "0.48448598", "0.48435277", "0.4840065", "0.4834948", "0.48308986", "0.48298877", "0.48294112", "0.48209032", "0.48190737", "0.48166564", "0.4807797", "0.4807797", "0.4807225", "0.48034176", "0.4802655", "0.47931784", "0.47914487", "0.47914487", "0.47914487", "0.47914487", "0.4784056", "0.47830707", "0.47830707", "0.47830707", "0.47803825", "0.47800544", "0.4778879", "0.4772918", "0.47721222", "0.476639", "0.4762676", "0.47565472", "0.47553772", "0.47550443", "0.4748616", "0.47481042", "0.47456476", "0.47445932", "0.47405538", "0.4736899", "0.4735332", "0.47345155", "0.472893", "0.4728659", "0.4728087", "0.4727278", "0.47271675", "0.4724676", "0.4723734", "0.4722564", "0.47076693", "0.4707359", "0.4697914", "0.46963766", "0.4681189", "0.46784663", "0.46719396", "0.46710455", "0.46702588", "0.46693313" ]
0.47451022
77
FlatMaisonette: with specific test context and state. .id : propertyflat .value : Flat/maisonette .title : .class : Html.LABEL .classIndex : 0
protected GuiTestObject flatMaisonette(TestObject anchor, long flags) { return new GuiTestObject( getMappedTestObject("flatMaisonette"), anchor, flags); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected GuiTestObject title() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"title\"));\n\t}", "interface WithTitle {\n /**\n * Specifies the title property: The title of the lab..\n *\n * @param title The title of the lab.\n * @return the next definition stage.\n */\n WithCreate withTitle(String title);\n }", "@Test\n public void testCreateView() {\n System.out.println(\"createView\");\n int i =1;\n AfinadorModelo modeloTest = new AfinadorModelo();\n AfinadorControlador controladorTest = new AfinadorControlador(modeloTest,i);\n String test = controladorTest.vista1.bpmOutputLabel.getText();\n if( test != \"APAGADO \")\n fail(\"The test case is a prototype.\");\n }", "protected GuiTestObject flatMaisonette() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"flatMaisonette\"));\n\t}", "protected GuiTestObject title(TestObject anchor, long flags) \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"title\"), anchor, flags);\n\t}", "@Test\n public void testSetTreeItemPropertyValueFactory() {\n writeBanner(getMethodName());\n }", "private void initSimulateModeView() {\n simulateMode = new Label(\"SIMULATE\");\n simulateMode.setPrefSize(200, 100);\n simulateMode.setFont(Font.font(null, FontWeight.BOLD, 30));\n simulateMode.setTextFill(Color.ORANGE);\n simulateMode.setEffect(getDropShadow());\n }", "interface WithTitle {\n /**\n * Specifies the title property: The title of the lab..\n *\n * @param title The title of the lab.\n * @return the next definition stage.\n */\n Update withTitle(String title);\n }", "public String getTitle()\n {\n return \"Test XY Data\";\n }", "@Before\n\tpublic void setup(){\n\t\tuuid = UUID.randomUUID();\n\t\ttitle = \"The Dark Knight\";\n\t\tdescription = \"Nanananana Batmaaaaan!\";\n\t\tstartDate = new Date(2008, 01, 01);\n\t\ttagLabel = \"Test-Tag\"; \n\t}", "public String _buildtheme() throws Exception{\n_theme.Initialize(\"pagetheme\");\r\n //BA.debugLineNum = 91;BA.debugLine=\"theme.AddABMTheme(ABMShared.MyTheme)\";\r\n_theme.AddABMTheme(_abmshared._mytheme);\r\n //BA.debugLineNum = 94;BA.debugLine=\"theme.AddLabelTheme(\\\"lightblue\\\")\";\r\n_theme.AddLabelTheme(\"lightblue\");\r\n //BA.debugLineNum = 95;BA.debugLine=\"theme.Label(\\\"lightblue\\\").ForeColor = ABM.COLOR_LI\";\r\n_theme.Label(\"lightblue\").ForeColor = _abm.COLOR_LIGHTBLUE;\r\n //BA.debugLineNum = 96;BA.debugLine=\"End Sub\";\r\nreturn \"\";\r\n}", "@Test\n public void testSetName_1()\n throws Exception {\n LogicStep fixture = new LogicStep();\n fixture.setScript(\"\");\n fixture.setName(\"\");\n fixture.setOnFail(\"\");\n fixture.setScriptGroupName(\"\");\n fixture.stepIndex = 1;\n String name = \"\";\n\n fixture.setName(name);\n\n }", "@DISPID(-2147418043)\n @PropGet\n java.lang.String title();", "public Node makeTitle(String text) {\r\n VBox panel = new VBox();\r\n Label label = makeLabel(myResources.getString(text));\r\n panel.setAlignment(Pos.CENTER);\r\n Button returnHome = makeButton(\"Main\", e -> {\r\n MainDisplay display = new MainDisplay(sceneLanguage, sceneWidth, sceneHeight);\r\n mainScene.setRoot(display.setUpComponents());\r\n display.changeScene(mainScene);\r\n });\r\n panel.getChildren().addAll(label, returnHome);\r\n panel.setMargin(label, new Insets(0, 15, 0, 0));\r\n return panel;\r\n }", "@Test\r\n public void ActionableTrainingTest() {\n WebElement title1 = driver.findElement(By.cssSelector(\"h3.uagb-ifb-title\"));\r\n \r\n //Assertion for title of the first info box\r\n Assert.assertEquals(title1.getText(), \"Actionable Training\");\r\n \r\n //Print heading of the first info box\r\n Reporter.log(\"Heading is: \" + title1.getText(), true);\r\n }", "@Test\r\n public void passConText() {\r\n onView(withId(R.id.edPassConReg)).perform(typeText(\"hey\"));\r\n }", "public Text createTitle() {\n\t\tText title = new Text(\"Selecteer Gasten\");\n\t\ttitle.getStyleClass().add(\"h1\");\n\t\ttitle.setFont(Font.font(22));\n\t\treturn title;\t\t\n\t}", "public void setLabelFor(View root, int virtualDescendantId) {\n/* 1603 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "protected GuiTestObject html_main() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"html_main\"));\n\t}", "@Test\r\n public void passText() {\r\n onView(withId(R.id.edPassReg)).perform(typeText(\"hey\"));\r\n }", "public void buildTileOfSingleView(Context context,FakeSuiteBean sb) {\n\t\tpartitionView = new SingleView(context);\n\t\tpartitionView.setContent(sb.resId);\n\t\ttile = new TileView(context);\n\t\ttile.setContent(partitionView);\n\t\ttile.setTitle(sb.tilte);\n\t\ttileViewList.add(tile);\n\t}", "public void testSetTitle() {\n System.out.println(\"setTitle\");\n String s = \"\";\n Wizard instance = new Wizard();\n instance.setTitle(s);\n }", "@Test\r\n public void regButton(){\r\n onView(withId(R.id.edUserReg)).perform(typeText(\"Jade\"));\r\n onView(withId(R.id.Stud_id)).perform(typeText(\"Jade\"));\r\n onView(withId(R.id.edPassReg)).perform(typeText(\"hey\"));\r\n onView(withId(R.id.edPassConReg)).perform(typeText(\"hey\"));\r\n onView(withId(R.id.btnReg)).perform(click());\r\n }", "@Test\r\n public void usernameText() {\r\n onView(withId(R.id.edUserReg)).perform(typeText(\"Jade\"));\r\n }", "public void testRenderMyPage() {\n tester.startPage(HomePage.class);\r\n\r\n // assert rendered page class\r\n tester.assertRenderedPage(HomePage.class);\r\n\r\n // assert rendered label component\r\n tester.assertLabel(\"message\", \"Congratulations!\");\r\n }", "@Test\n public void titleTest() {\n // TODO: test title\n }", "public HomeView() {\n overdueSkinTests = new HashMap<>();\n }", "@TestCaseId( id = 1 )\n\t@Steps ( steps = {\n\t\t\t@Step( number = 1, description = \"WHEN user navigates to main page\",\n\t\t\t\t expectedResults = {\n\t\t\t\t\t\t\"THEN url matches the current locale and environment\",\n\t\t\t\t\t\t\"AND the site title, matches the locale defined title\",\n\t\t\t\t })\n\t})\n\t@Test ( description = \"Testing the Locale Common Header Branding initial state and functionality\",\n\t\t\tenabled = true,\n\t\t\tgroups = { \"US\", \"UK\", \"AU\" }\n\t)\n\tpublic void homePage_InitialState_Title_And_Url( ITestContext testContext ) throws Exception\n\t{\n\t\t//logger.info( \"Starting executing method < '{}' > for < '{}' >\", testContext.getName(), testContext.getIncludedGroups() );\n\n\t\tPreConditions.checkNotNull( this.homePage, \"Home page is null, before starting test\" );\n\n\t\t/* THEN url matches the current locale and environment */\n\n\t\tfinal String REASON1 = \"Asserting home page url based locale and environment\";\n\t\tfinal Matcher<String> EXPECTED_URL = JMatchers.is( SiteSessionManager.get().getBaseUrl().toExternalForm() );\n\t\tfinal String ACTUAL_URL = homePage.getCurrentUrl();\n\t\tSiteSessionManager.get().createCheckPoint( \"VALIDATE_URL\" ).assertThat( REASON1, ACTUAL_URL, EXPECTED_URL );\n\n\t\t/* AND the site title, matches the locale */\n\n\t\tfinal String REASON2 = \"Asserting home page title match the locale defined title\";\n\t\t//final Matcher<String> EXPECTED_TITLE = JMatchers.is( ( String ) SiteProperty.HOME_PAGE_TITLE.fromContext() );\n\t\t//final String ACTUAL_TITLE = homePage.getTitle();\n\t\t//SiteSessionManager.get().createCheckPoint( \"VALIDATE_TITLE\" ).assertThat( REASON2, ACTUAL_TITLE, EXPECTED_TITLE );\n\n\t\tSiteSessionManager.get().assertAllCheckpoints();\n\n\t}", "@Test(priority = 66)\r\n@Epic(\"BILLS PAYMENT\")\r\n@Features(value = { @Feature(value = \"BUY GOODS USING MPESA\") })\r\n@Step (\"BUY GOODS USING MPESA\")\r\n@Severity(SeverityLevel.TRIVIAL)\r\npublic void Buy_Goods_Using_MPESA_Test_cases() {\n\tSystem.out.println(\"BUY GOODS AND SERVICES\");\t\r\n\tSystem.out.println(\"*************************(1)Running Buy Goods Using MPESA Testcases***********************************\");\r\n\r\n}", "SubTitle.Factory getSubTitleFactory();", "@Test\n public void testGetInfo_1()\n throws Exception {\n LogicStep fixture = new LogicStep();\n fixture.setScript(\"\");\n fixture.setName(\"\");\n fixture.setOnFail(\"\");\n fixture.setScriptGroupName(\"\");\n fixture.stepIndex = 1;\n\n String result = fixture.getInfo();\n\n assertEquals(\"Logic Step: \", result);\n }", "@org.testng.annotations.Test\n public void test17_3(){\n testInfo.id(\"test17_3\").suite(\"test_Inspiration\").name(\"Inspiration page from start + check blocks.\");\n photolab.forceStop();\n photolab.open();\n photolab.main.waitToLoad();\n photolab.main.selectCategoryBar(\"Inspiration\");\n photolab.main.selectBlock(\"Top\");\n photolab.main.selectBlock(\"Trending\");\n photolab.main.selectBlock(\"Recent\");\n photolab.main.tapMenu();\n photolab.menu.tapHome();\n }", "private Label setTitle() {\r\n Label title = new Label(TITLE);\r\n title.setFont(Font.font(null, FontWeight.BOLD, null, TITLESZE));\r\n return title;\r\n }", "public TestInfo(GUITestPackage test) {\n\t\tthis.test = test;\n\n\t\t// pane for close button AnchorPane\n\t\tclosePane.setPickOnBounds(false);\n\t\tcloseButton.setFont(new Font(8));\n\t\tAnchorPane.setTopAnchor(closeButton, 0.0);\n\t\tAnchorPane.setLeftAnchor(closeButton, 0.0);\n\t\tclosePane.getChildren().add(closeButton);\n\n\t\t// style editor box this.content.setAlignment(Pos.CENTER);\n\n\t\t// styling and buttons\n\t\tbox.setAlignment(Pos.CENTER);\n\t\tbox.setStyle(\"-fx-border-color: lightgray; -fx-border-width: 1;\");\n\t\tText name = new Text(\"\");\n\t\tname.textProperty().bind(this.test.getName());\n\t\tname.setFont(new Font(20));\n\t\tthis.percent.setFont(new Font(10));\n\t\tthis.progressBar.setMouseTransparent(true);\n\t\tthis.progressBar.setPadding(new Insets(3, 0, 0, 2));\n\n\t\taddHandlers();\n\n\t\tbox.getChildren().addAll(name, this.percent, progressBar);\n\t\tgetChildren().addAll(box, closePane);\n\t}", "public void onStart(ITestContext context) {\n\t\tSystem.out.println(context.getName()+\"**********All Test Started.............This is result.getName\");\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void onStart(ITestContext context) {\n\t\tSystem.out.println(\"onStart -> Test Name: \"+context.getName());\r\n\t\t\r\n\t}", "@Test\n public void test100() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Block block0 = (Block)errorPage0.li();\n Label label0 = (Label)errorPage0.label((Object) null);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(label0._isGeneratedId());\n }", "@Test\r\n\tpublic void testSetTitleEU() {\r\n\t\texternu1.setTitle(\"UnitExtern\");\r\n\t\tassertEquals(\"UnitExtern\", externu1.getTitle());\r\n\t}", "ComponentBuilder named(String label);", "interface WithDescription {\n /**\n * Specifies the description property: The description of the lab..\n *\n * @param description The description of the lab.\n * @return the next definition stage.\n */\n WithCreate withDescription(String description);\n }", "public static LabelTarget label(Class type, String name) { throw Extensions.todo(); }", "protected void setupUI() {\n\n }", "@Test\n public void testSetName() {\n System.out.println(\"setName\");\n Menu instance = MenuFactory.createMenu(MenuType.FOOD, name, 14000);\n instance.setName(name);\n assertEquals(name, instance.getName());\n }", "public Builder setTitle(int title) {\r\n this.title = (String) context.getText(title);\r\n return this;\r\n }", "public static LabelTarget label(Class type) { throw Extensions.todo(); }", "@Test\r\n\tpublic void testSetTitleMU() {\r\n\t\tmeetingu1.setTitle(\"UnitMeeting\");\r\n\t\tassertEquals(\"UnitMeeting\", meetingu1.getTitle());\r\n\t}", "protected GuiTestObject html_main(TestObject anchor, long flags) \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"html_main\"), anchor, flags);\n\t}", "@Test\n @TestLog(title = \"Test3\", id = \"444\")\n public void test3() {\n }", "public static void testShowTodoView(){\n }", "@Override\r\n\tpublic String getValue() {\r\n\t\tfinal StoryGroup group = ((KnowItBindingStoryGroup) this.binding)\r\n\t\t\t\t.getValue();\r\n\r\n\t\tfinal Context knowItContext;\r\n\r\n\t\tknowItContext = ContextFactory.getInstance().createContext(this, group);\r\n\r\n\t\treturn knowItContext.getName();\r\n\t}", "@Override\n public Description getDescription() {\n return suiteDescription;\n }", "@Test\n\tpublic void test_getTitle() {\n\tTvShow t1 = new TvShow(\"Sherlock\",\"BBC\");\n\tassertEquals(\"Sherlock\",t1.getTitle());\n }", "@Test(priority=1)\r\n\tpublic void getTitle() {\r\n\t\tString title=driver.getTitle();\r\n\t\tSystem.out.println(( title).toUpperCase());\r\n\t}", "private Node createTitle() {\n\t\tText titleText = new Text(\" Restaurant Inventory Management \");\n\t\ttitleText.setFont(Font.font(\"Arial\", FontWeight.BOLD, 40));\n\t\ttitleText.setTextAlignment(TextAlignment.CENTER);\n\t\t\n\n\t\treturn titleText;\n\t}", "@SmallTest\n\tpublic void testTitle() {\n\t\tassertEquals(getActivity().getTitle(), solo.getString(R.string.title_activity_memory_game));\n\t}", "public String getContextualizedLabel() {\n\t\tString completeLbl = CodeUnit.getLabel(getRepo(), getArtFrag(), null, true);//this.getLabel();\r\n\t\t\r\n\t\t// strip number for anon class (shows in tooltip)\r\n\t\tif (RSECore.isAnonClassName(completeLbl))\r\n\t\t\tcompleteLbl = RSECore.stripAnonNumber(completeLbl);\r\n\t\t\r\n\t\tTitledArtifactEditPart parentTAFEP = this.getParentTAFEP();\r\n\t\tif (parentTAFEP != null) {\r\n\t\t\tString contextLbl = null;\r\n\t\t\tcontextLbl = getCntxLabel(parentTAFEP);\r\n\t\t\tif (completeLbl.startsWith(contextLbl) && !contextLbl.equals(\".\")) {\r\n\t\t\t\tcompleteLbl = completeLbl.substring(contextLbl.length());\r\n\t\t\t}\r\n\t\t}\r\n\t\tcompleteLbl = strTruncEnd(completeLbl, \".*\");\r\n\t\tcompleteLbl = strTruncBeg(completeLbl, \".\");\r\n\t\tif (completeLbl.length() == 0) completeLbl = \".\";\r\n\t\treturn completeLbl;\r\n\t}", "@Test\n public void test085() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Checkbox checkbox0 = new Checkbox(errorPage0, \">}\\\"_\", \">}\\\"_\");\n String[] stringArray0 = new String[6];\n Checkbox checkbox1 = (Checkbox)checkbox0.attributes(stringArray0);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertFalse(checkbox1._isGeneratedId());\n }", "@Test\n void setName() {\n assertEquals(\"Process\", new Process() {{\n setName(\"Process\");\n }}.getName());\n }", "@Test\n public void testSetScriptGroupName_1()\n throws Exception {\n LogicStep fixture = new LogicStep();\n fixture.setScript(\"\");\n fixture.setName(\"\");\n fixture.setOnFail(\"\");\n fixture.setScriptGroupName(\"\");\n fixture.stepIndex = 1;\n String scriptGroupName = \"\";\n\n fixture.setScriptGroupName(scriptGroupName);\n\n }", "public Builder setTitle(int title) {\n this.title = (String) context.getText(title);\n return this;\n }", "public Builder setTitle(int title) {\n this.title = (String) context.getText(title);\n return this;\n }", "@Test\n @Named(\"accessing values\")\n @Order(1)\n public void _accessingValues() throws Exception {\n StringConcatenation _builder = new StringConcatenation();\n _builder.append(\"package bootstrap\");\n _builder.newLine();\n _builder.newLine();\n _builder.append(\"describe \\\"Example Tables\\\"{\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"def myExamples{\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"| input | result | \");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"| \\\"Hello World\\\" | \\\"HELLO WORLD\\\" | \");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"| \\\"Hallo Welt\\\" | \\\"HALLO WELT\\\" |\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"} \");\n _builder.newLine();\n _builder.append(\" \");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"fact \\\"can be accessed via the table name\\\"{\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"myExamples.forEach[ \");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"input.toUpperCase should be result\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"] \");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"}\");\n _builder.newLine();\n _builder.append(\"}\");\n _builder.newLine();\n this._behaviorExecutor.executesSuccessfully(_builder);\n }", "@DISPID(-2147417110)\n @PropGet\n java.lang.String id();", "@Test// Execute 5 \n\t public void googleTitleTest() {\n\t\t System.out.println(\"google Title test\");\n\t }", "@Test\npublic void tc__VerifyTooltip_EnviromentValue() throws Exception\n{\n EN.BeginTest( TestName );\n\n // Testscript in Schlüsselwort-Notation\n EN.SelectWindow( \"Rechner\" );\n\n // Soll/Ist-Vergleich: Ist das Richtige Fenster gesetzt?\n // Check the Name, Called Method and Value of Actuel object\n assertEquals( \"NO VALUE\", myClipBoard.getValue().get( 0 ) );\n assertEquals( 1, myClipBoard.getValue().size() );\n assertEquals( \"Rechner\", myClipBoard.getObjectName() );\n assertEquals( \"SelectWindow()\", myClipBoard.getMethod() );\n\n EN.SetValue( \"All_MethodsObj\", \"${TCN}\" );\n // Umgebungsvariable eingeben\n EN.VerifyTooltip( \"All_MethodsObj\", \"${TCN}\" );\n\n // Check the Name, Called Method and Value of Actuel object\n assertEquals( TestName, myClipBoard.getValue().get( 0 ) );\n assertEquals( 1, myClipBoard.getValue().size() );\n\n assertEquals( \"Rechner.All_MethodsObj\", myClipBoard.getObjectName() );\n assertEquals( \"VerifyTooltip()\", myClipBoard.getMethod() );\n}", "private TextView createViewByTitle(String title, String name) {\n TextView targetTitleView = new TextView(this);\n LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);\n params.topMargin = (int) (10 / getResources().getDisplayMetrics().density);\n targetTitleView.setLayoutParams(params);\n targetTitleView.setText(capitalize(title));\n targetTitleView.setHint(name);\n targetTitleView.setTextColor(ContextCompat.getColor(getApplicationContext(), R.color.colorPrimary));\n return targetTitleView;\n }", "public static LabelTarget label() { throw Extensions.todo(); }", "private void setupTitle(){\n\t\tJLabel title = new JLabel(quiz_type.toString()+\": \"+parent_frame.getDataHandler().getLevelNames().get(parent_frame.getDataHandler().getCurrentLevel())); \n\t\ttitle.setFont(new Font(\"Arial Rounded MT Bold\", Font.BOLD, 65));\n\t\ttitle.setForeground(new Color(254, 157, 79));\n\t\ttitle.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tadd(title);\n\t\ttitle.setBounds(32, 24, 1136, 119);\n\t\ttitle.setOpaque(false);\n\t}", "@Test\n\tpublic void setTitelleisteTest() throws Exception {\n\t\t\n\t\tif (Configuration.featureamp &&\n\t\t\t\tConfiguration.playengine &&\n\t\t\t\tConfiguration.choosefile &&\n\t\t\t\tConfiguration.gui &&\n\t\t\t\tConfiguration.skins &&\n\t\t\t\tConfiguration.queuetrack ) {\n\t\t\t\n\t\t\t\n\t\t\tstart();\n\t\t\tgui.setTitelleiste(\"test\");\n\t\t\t\n\t\t\tJFrame g = (JFrame) MemberModifier.field(Application.class, \"frmAsd\").get(gui);\n\t\t\t\n\t\t\tassertEquals(g.getTitle(),\"test\");\n\t\t\t}\n\t}", "@Test\r\n public void useAppContext() {\n Context appContext = InstrumentationRegistry.getTargetContext();\r\n\r\n String name = getName(appContext, R.id.btn);\r\n System.out.println(name);\r\n }", "public NewTestWizardPage() {\n\t\tsuper(true, \"New Groovy Test Settings\");\n\n\t\tsetTitle(\"Groovy Test Class\");\n\t\tsetDescription(\"Create a new Groovy unit test class\");\n\t}", "public Title()\r\n {\r\n startTag=\"TITLE\";\r\n endTag=\"/TITLE\"; \r\n }", "public void buildTileOfTripleView(Context context,FakeSuiteBean sb) {\n\t\tpartitionView = new TripleView(context);\n\t\tpartitionView.setContent(sb.resId);\n\t\ttile = new TileView(context);\n\t\ttile.setContent(partitionView);\n\t\ttile.setTitle(sb.tilte);\n\t\ttileViewList.add(tile);\n\t}", "public DefaultDetailWindowTest(String name) {\n super(name);\n }", "protected GuiTestObject terraced() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"terraced\"));\n\t}", "@Test(timeout = 4000)\n public void test334() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = new Label(errorPage0, errorPage0);\n Component component0 = errorPage0.legend((Object) label0);\n assertTrue(component0._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "@Test\n public void test105() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = (Label)errorPage0.strong((Object) errorPage0);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(label0._isGeneratedId());\n }", "public DynamicDriveToolTipTagFragmentGenerator(String title, int style) {\n/* 75 */ this.title = title;\n/* 76 */ this.style = style;\n/* */ }", "@Test\n public void testSetName_1()\n throws Exception {\n Project fixture = new Project();\n fixture.setWorkloadNames(\"\");\n fixture.setName(\"\");\n fixture.setScriptDriver(ScriptDriver.SilkPerformer);\n fixture.setWorkloads(new LinkedList());\n fixture.setComments(\"\");\n fixture.setProductName(\"\");\n String name = \"\";\n\n fixture.setName(name);\n\n }", "@LargeTest\n public void testArtistic1() {\n TestAction ta = new TestAction(TestName.ARTISTIC_1);\n runTest(ta, TestName.ARTISTIC_1.name());\n }", "public void testSetViews() {\n }", "@TestCaseId( id = 3 )\n\t@Steps ( steps = {\n\t\t\t@Step( number = 1, description = \"GIVEN user navigates to main page\" ),\n\t\t\t@Step( number = 2, description = \"WHEN examining the header bar, zero navigation section\",\n\t\t\t\t\texpectedResults = { \"THEN the phone number matches the defined locale phone number\",\n\t\t\t\t\t\t\t\"AND the displayed flag displayed in the header matches the current locale\",\n\t\t\t\t\t\t\t\"AND WHEN the locale is 'US' or 'UK', \\\"Top Destinations\\\" should be displayed, otherwise not\",\n\t\t\t\t\t\t\t\"OR WHEN if the locale is AU', the \\\"Currency Selector\\\" should be displayed, otherwise not\",\n\t\t\t\t\t} ),\n\t\t\t@Step( number = 3, description = \"AND WHEN user clicks back on the \\\"Subscribe and Save\\\" link\",\n\t\t\t\t\texpectedResults = { \"THEN the \\\"Header Subscribe\\\" section should be hidden.\" }),\n\t\t\t@Step( number = 4, description = \"THEN user clicks on \\\"Your cruise deals\\\"\",\n\t\t\t\t\texpectedResults = { \"user redirects to \\\"/cruise-deals.aspx\\\" page\" } ),\n\t\t\t@Step( number = 5, description = \"WHEN user clicks on the company LOGO on the left upper corner.\",\n\t\t\t\t\texpectedResults = \"user redirects back to home page.\" ),\n\t\t\t@Step( number = 6, description = \"WHEN user clicks on the locale country flag.\",\n\t\t\t\t\texpectedResults = { \"THEN a drop down containing country names is displayed.\",\n\t\t\t\t\t\t\t\t\t\t\"AND the list contains the expected country names\" } ),\n\t\t\t@Step( number = 7, description = \"WHEN user clicks back on the locale country flag icon.\",\n\t\t\t\t\texpectedResults = { \"THEN the drop down countries list is hidden back.\" } ),\n\t} )\n\t@Test ( description = \"Testing the Header-Branding common part initial state and functionality\",\n\t\t\tenabled = true,\n\t\t\tgroups = { \"US\", \"UK\", \"AU\" }\n\t)\n\tpublic void homePage_InitialState_Header_Branding( ITestContext testContext ) throws Exception\n\t{\n\t\t/* GIVEN user navigates to main page */\n\t\tPreConditions.checkNotNull( this.homePage, \"Home page is null, before starting test\" );\n\t\ttry\n\t\t{\n\n\t\t\t/* WHEN examining the header bar, zero navigation section */\n\t\t\tHeader.HeaderBranding headerBranding = homePage.header().headerBranding();\n\t\t\tHtmlElement container = homePage.header().getContainer();\n\n\t\t\t/* THEN the phone number matches the defined locale phone number */\n\t\t\tString REASON = \"Asserting the phone number matches the defined locale phone number\";\n\t\t\tString ACTUAL_STR = headerBranding.getLocalePhoneNumber();\n\t\t\tMatcher<String> EXPECTED_STR = JMatchers.is( ( String ) SiteProperty.HEADER_PHONE_NUMBER.fromContext() );\n\t\t\tSiteSessionManager.get().createCheckPoint( container, \"VALIDATE_PHONE\" )\n\t\t\t\t\t.assertThat( REASON, ACTUAL_STR, EXPECTED_STR );\n\n\t\t\t/* AND the displayed flag in the header matches the current locale */\n\t\t\tREASON = \"Asserting that the flag displayed in the header matches the current locale\";\n\t\t\tLocale ACTUAL_LOCALE = homePage.header().headerBranding().getDisplayedLocale();\n\t\t\tMatcher<Locale> EXPECTED_LOCALE = JMatchers.is( SiteSessionManager.get().getCurrentLocale() );\n\t\t\tSiteSessionManager.get().createCheckPoint( container, \"VALIDATE_DISPLAYED_FLAG\" )\n\t\t\t\t\t.assertThat( REASON, ACTUAL_LOCALE, EXPECTED_LOCALE );\n\n\t\t\t/* AND WHEN the locale is 'US' or 'UK', \"Top Destinations\" should be displayed, otherwise not */\n\n\t\t\tif ( SiteSessionManager.get().getCurrentLocale().equals( Locale.UK )\n\t\t\t\t\t|| SiteSessionManager.get().getCurrentLocale().equals( Locale.US ) )\n\t\t\t{\n\t\t\t\tREASON = \"Asserting that \\\"Top Destinations\\\" should be displayed\";\n\t\t\t\tboolean ACTUAL_BOOL = headerBranding.hasTopDestinations();\n\t\t\t\tMatcher<Boolean> EXPECTED_OF_BOOL = JMatchers.is( true );\n\t\t\t\tSiteSessionManager.get().createCheckPoint( container, \"TOP_DESTINATIONS_DISPLAYED\" )\n\t\t\t\t\t\t.assertThat( REASON, ACTUAL_BOOL, EXPECTED_OF_BOOL );\n\n\t\t\t\tREASON = \"Asserting that \\\"Currency Selector\\\" should not be displayed\";\n\t\t\t\tACTUAL_BOOL = headerBranding.hasCurrencySelector();\n\t\t\t\tEXPECTED_OF_BOOL = JMatchers.is( false );\n\t\t\t\tSiteSessionManager.get().createCheckPoint( container, \"CURRENCY_SELECTOR_NOT_DISPLAYED\" )\n\t\t\t\t\t\t.assertThat( REASON, ACTUAL_BOOL, EXPECTED_OF_BOOL );\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tREASON = \"Asserting that \\\"Top Destinations\\\" should be displayed\";\n\t\t\t\tMatcher<Boolean> EXPECTED_OF_BOOL = JMatchers.is( false );\n\t\t\t\tboolean ACTUAL_BOOL = headerBranding.hasTopDestinations();\n\t\t\t\tSiteSessionManager.get().createCheckPoint( \"TOP_DESTINATIONS_NOT_DISPLAYED\" )\n\t\t\t\t\t\t.assertThat( REASON, ACTUAL_BOOL, EXPECTED_OF_BOOL );\n\n\t\t\t\tREASON = \"Asserting that \\\"Currency Selector\\\" should not be displayed\";\n\t\t\t\tEXPECTED_OF_BOOL = JMatchers.is( true );\n\t\t\t\tACTUAL_BOOL = homePage.header().headerBranding().hasCurrencySelector();\n\t\t\t\tSiteSessionManager.get().createCheckPoint( container, \"CURRENCY_SELECTOR_IS_DISPLAYED\" )\n\t\t\t\t\t\t.assertThat( REASON, ACTUAL_BOOL, EXPECTED_OF_BOOL );\n\t\t\t}\n\n\t\t \t/* AND WHEN user clicks back on the \"Subscribe and Save\" link */\n\t\t\theaderBranding.clickSubscribeAndSave();\n\n\t\t\tfinal String REASON5 = \"Asserting that \\\"Header Subscribe\\\" should be displayed\";\n\t\t\tfinal ExpectedCondition<WebElement> CONDITION = null;//visibilityBy( Header.HeaderBranding.ROOT_BY, true );\n\t\t\t//\t\tSiteSessionManager.get().createCheckPoint( \"HEADER_SUBSCRIBE_VISIBLE\" )\n\t\t\t//\t\t\t\t.assertWaitThat( REASON5, TimeConstants.FIVE_SECONDS, CONDITION );\n\n\t\t /* WHEN user clicks again on the \"Subscribe and Save\" link THEN \"Header Subscribe\" section should be hidden. */\n\n\t\t\theaderBranding.clickSubscribeAndSave();\n\t\t\tfinal String REASON6 = \"Asserting that \\\"Header Subscribe\\\" should be hidden back\";\n\t\t\t//final ExpectedCondition<WebElement> CONDITION1 = visibilityBy( Header.HeaderBranding.ROOT_BY, false );\n\t\t\t//\t\tSiteSessionManager.get().createCheckPoint( \"HEADER_SUBSCRIBE_HIDDEN\" )\n\t\t\t//\t\t\t\t.assertWaitThat( REASON6, TimeConstants.FIVE_SECONDS, CONDITION1 );\n\n\t\t/* WHEN user clicks on \"Your cruise deals\" THEN user redirects to \"/cruise-deals.aspx\" page */\n\n\t\t\tCruiseDealsPage dealsPage = headerBranding.clickYourCruiseDeals();\n\t\t\tfinal String REASON7 = \"Asserting that user redirected to \\\"/cruise-deals.aspx\\\" page\";\n\t\t\tfinal Matcher<String> EXPECTED_URL = JMatchers.containsString( \"/cruise-deals.aspx\" );\n\t\t\tfinal String ACTUAL_URL = dealsPage.getCurrentUrl();\n\t\t\tSiteSessionManager.get().createCheckPoint( \"URL_CRUISE_DEALS\" )\n\t\t\t\t\t.assertThat( REASON7, ACTUAL_URL, EXPECTED_URL );\n\n\t\t/* WHEN user clicks on the LOGO, THEN user redirects back to home page */\n\n\t\t\tthis.homePage = dealsPage.header().headerBranding().clickOnLogo();\n\t\t\tfinal String REASON8 = \"Asserting that user redirected back to home page\";\n\t\t\tfinal Matcher<URL> EXPECTED_HOME_URL = JMatchers.is( SiteSessionManager.get().getBaseUrl() );\n\t\t\tfinal URL ACTUAL_HOME_URL = new URL( homePage.getCurrentUrl() );\n\t\t\tSiteSessionManager.get().createCheckPoint( \"URL_BACK_HOME\" )\n\t\t\t\t\t.assertThat( REASON8, ACTUAL_HOME_URL, EXPECTED_HOME_URL );\n\n\t\t/* AND user clicks on the locale country flag. */\n\n\t\t\theaderBranding = this.homePage.header().headerBranding();\n\n\t\t\tfinal String REASON9 = \"Asserting that country list is hidden before clicking on the flag icon\";\n\t\t\tfinal Matcher<Boolean> EXPECTED_LIST_STATE1 = JMatchers.is( false );\n\t\t\tfinal boolean ACTUAL_LIST_STATE1 = headerBranding.isLocalesListOpened();\n\t\t\tSiteSessionManager.get().createCheckPoint( \"LOCALE_LIST_INIT_HIDDEN\" )\n\t\t\t\t\t.assertThat( REASON9, ACTUAL_LIST_STATE1, EXPECTED_LIST_STATE1 );\n\n\t\t\tList<String> locales = headerBranding.openLocalesList();\n\n\t\t/* THEN a drop down containing country names is displayed. */\n\n\t\t\tfinal String REASON10 = \"Asserting that country list is displayed after clicking on the flag icon for first time\";\n\t\t\tfinal Matcher<Boolean> EXPECTED_LIST_STATE2 = JMatchers.is( true );\n\t\t\tfinal boolean ACTUAL_LIST_STATE2 = headerBranding.isLocalesListOpened();\n\t\t\tSiteSessionManager.get().createCheckPoint( \"LOCALE_LIST_DISPLAYED\" )\n\t\t\t\t\t.assertThat( REASON10, ACTUAL_LIST_STATE2, EXPECTED_LIST_STATE2 );\n\n\t\t/* AND the list contains the expected country names */\n\n\t\t\tString[] ACTUAL_LOCALES = locales.toArray( new String[ locales.size() ] );\n\t\t\tfinal String REASON11 = \"Asserting that country list contains all expected countries\";\n\t\t\tfinal Matcher<String[]> EXPECTED_LOCALES =\n\t\t\t\t\tJMatchers.arrayContainingInAnyOrder( \"Australia\", \"United States\", \"United Kingdom\" );\n\t\t\tSiteSessionManager.get().createCheckPoint( \"LOCALES_LIST\" )\n\t\t\t\t\t.assertThat( REASON11, ACTUAL_LOCALES, EXPECTED_LOCALES );\n\n\t\t/* AND user clicks back on the locale country flag icon. */\n\n\t\t\theaderBranding.closeLocalesList();\n\n\t\t/* THEN the drop down countries list is hidden back. */\n\n\t\t\tfinal String REASON12 = \"Asserting that country list is hidden after clicking back on the flag icon.\";\n\t\t\tfinal Matcher<Boolean> EXPECTED_LIST_STATE3 = JMatchers.is( false );\n\t\t\tfinal boolean ACTUAL_LIST_STATE3 = headerBranding.isLocalesListOpened();\n\t\t\tSiteSessionManager.get().createCheckPoint( \"LOCALE_LIST_HIDDEN_BACK\" )\n\t\t\t\t\t.assertThat( REASON12, ACTUAL_LIST_STATE3, EXPECTED_LIST_STATE3 );\n\n\t\t\t// reporting and asserting checkpoints\n\n\t\t\tSiteSessionManager.get().assertAllCheckpoints();\n\t\t}\n\t\tcatch ( WebDriverException | AssertionError e )\n\t\t{\n\t\t\tthrow new ApplicationException( SiteSessionManager.get().getDriver(), e );\n\t\t}\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn \"# \" + title + \" :\\n\" + context ;\n\t}", "@Then(\"User can view the dashboard\")\npublic void user_can_view_the_dashboard() {\n addCust = new AddcustomerPage(driver);\n Assert.assertEquals(\"Dashboard / nopCommerce administration\", addCust.getPageTitle());\n \n}", "public interface CountryView extends MvpView {\n /**\n * show loading status\n * @param loading loading status should be visible or not\n */\n void showLoading(boolean loading);\n\n /**\n * if there is an error,show the related message about the error\n * @param errorMessage\n */\n void showError(String errorMessage);\n\n /**\n * show the facts of country\n * @param facts\n */\n void showFacts(List<Fact> facts);\n\n /**\n * show the title of the country\n * @param title\n */\n void showTitle(String title);\n\n}", "TITLE createTITLE();", "@Test\n public void titlesTest() {\n // TODO: test titles\n }", "@Test\n public void seeInfoAboutAisleFromSearch(){\n String itemTest = \"Potatoes\";\n String aisleCheck = \"Aisle: 2\";\n String aisleDescriptionCheck = \"Aisle Description: Between Aisle 1 and Frozen Aisle\";\n onView(withId(R.id.navigation_search)).perform(click());\n onView(withId(R.id.SearchView)).perform(typeText(itemTest));\n onData(anything()).inAdapterView(withId(R.id.myList)).atPosition(0).perform(click());\n onView(withText(\"VIEW MORE INFORMATION\")).perform(click());\n onView(withId(android.R.id.message)).check(matches(allOf(withSubstring(aisleCheck), isDisplayed())));\n onView(withId(android.R.id.message)).check(matches(allOf(withSubstring(aisleDescriptionCheck), isDisplayed())));\n onView(withText(\"OK\")).perform(click());\n }", "@Override\r\n public void create() {\r\n super.create();\r\n setTitle(title);\r\n }", "protected abstract String title ();", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n DynamicSelectModel dynamicSelectModel0 = new DynamicSelectModel();\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = new Label(errorPage0, dynamicSelectModel0);\n dynamicSelectModel0.setComponent(label0);\n Component component0 = dynamicSelectModel0.getComponent();\n assertEquals(\"Label_1\", component0.getComponentId());\n }", "@Test \n\tpublic void homePageTitleTest() {\n\t\tHomePage homePage = new HomePage(driver);\n\t\thomePage.OpenPage();\n\t\t\n\t\t//Fetch title \n\t\tString title = homePage.getTitle();\n\t\t\n\t\t//Assert title content \n\t\tAssert.assertTrue(title.equals(\"Lorem Ipsum - All the facts - Lipsum generator\"));\n\t}", "public void testMain(Object[] args) \n\t{\n\t\t// TODO Insert code here\n\t\tWN.useProject(Cfg.projectName);\n\t\tEE.dnd(EE.parseResourcePath(\"Database Connections->My Sample Database->sampledb->Tables->department (dba)\"), 10, 10);\n\t\n\t\tWN.createWorkFlow(new WorkFlow().startParameter(Cfg.projectName).name(\"wfhtml\")\n\t\t\t\t.option(WorkFlow.SP_SERVER_INIT));\n\n\n\t\tPropertiesView.jumpStart(new WorkFlow()\n\t\t .mbo(\"Department\")\n\t\t\t\t.objectQuery(\"findByPrimaryKey\")\n\t\t\t\t.subject(\"deptid=2\")\n\t\t\t\t.subjectMatchingRule(\"deptid=\")\n\t\t\t\t.setParameterValue(\"dept_id,Subject,deptid=\"));\n\n\t\tWorkFlowEditor.addScreen(\"linktoemail\");\n\t\tWorkFlowEditor.link(WorkFlow.SP_SERVER_INIT, \"linktoemail\");\n\t\t\n\t\t\n\t\t//******************add key from key tab\t\n\t\tDOF.getCTabFolder(DOF.getRoot(), \"Properties\").click(atText(\"Properties\"));\n\t\t DOF.getCTabItem(DOF.getRoot(), \"Screen Design\").click(atPoint(25,10));\n\t\tPropertiesView.clickTab(\"Keys\");\n\t\tPropertiesView.NewKey(\"key1,string\");\n\t\tPropertiesView.NewKey(\"key2,bool\");\n\t\tPropertiesView.NewKey(\"key3,decimal\");\n\t\tPropertiesView.NewKey(\"key4,list\");\n\t\tPropertiesView.NewKey(\"key5,DateTime\");\n\t //**************end\n\t\t\n\t\t\n\t\t\n\t\tWorkFlowEditor.addWidget(Cfg.projectName, \"wfhtml.xbw\", \"linktoemail\", new WFHtmlView());\n\t\tPropertiesView.clickTab(\"General\");\n\t\tString s = PropertiesView.verifykeylist();\n\t\tvpManual(\"keylist\",\"key1,\",s).performTest();\n\n\n //*****need to check other attribute in the key popup window\n\t\tWorkFlowEditor.addWidget(Cfg.projectName, \"wfhtml.xbw\", \"linktoemail\", new WFHtmlView()\n\t\t.newKeyBindMbo(\"htmlkey,int,Department,dept_id\"));\n\t\t\n\t\t//Verify the new key added to the email event but not bound to the HTML view control\n\t\tPropertiesView.clickTab(\"General\");\n\t\tvpManual(\"keylist\",\"key1,\",PropertiesView.verifykeylist()).performTest();\n\t\tDOF.getCTabItem(DOF.getRoot(), \"Screen Design\").click(atPoint(25,10));\n\t\tDOF.getWFScreenDesignCanvas().click();\n\t\tPropertiesView.clickTab(\"Keys\");\t\t\n\t\tvpManual(\"ifkeyexist\",\"true\",TableHelper.hasDataInColumn(DOF.getTable(DOF.getRoot()),\"Key Name\",\"htmlkey\")).performTest();\n\t\t//end\n\t}", "@org.junit.Test\n public void setName() {\n }", "private void createStartingLabel() {\n \tcreateLabel(myResources.getString(\"title\"), 1, 0, TITLE_FONT);\n }", "@Override\n\t\tpublic String getTestName() {\n\t\t\treturn null;\n\t\t}", "@Test\n public void resalePropertyMatch() throws UiObjectNotFoundException {\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"btn_create_post\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"lbl_resale_prop\")).click();\n device.findObject(By.text(\"Search building name\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"input_search\")).setText(\"Icon\");\n device.wait(Until.findObject(By.text(\"Icon Linera\")), 10000);\n device.findObject(By.text(\"Icon Linera\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"dd_configuration\")).click();\n device.findObject(By.text(\"3 BHK\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"txt_pricing\")).click();\n device.findObject(By.text(\"7\")).click();\n device.findObject(By.text(\"5\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"Done\")).click();\n device.wait(Until.findObject(By.text(\"sq ft\")), 2000);\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"txt_carpet_area\")\n .childSelector(new UiSelector().className(Utils.EDIT_TEXT_CLASS))).setText(\"1200\");\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"dd_floor\")).click();\n device.findObject(By.text(\"Higher\")).click();\n device.findObject(By.text(\"4\")).click();\n UiScrollable postView = new UiScrollable(new UiSelector().scrollable(true));\n UiSelector postSelector = new UiSelector().text(\"POST\");\n postView.scrollIntoView(postSelector);\n device.findObject(postSelector).click();\n device.wait(Until.findObject(By.text(\"POST\").enabled(true)), 10000);\n String matchNameString = device.findObject(By.textContains(\"matches\")).getText().split(\" \")[0];\n device.findObject(By.text(\"POST\")).click();\n device.wait(Until.findObject(By.text(\"RESALE PROPERTY\")), 9000);\n Assert.assertNotEquals(\"Test Case Failed...No Match found\", \"no\", matchNameString.toLowerCase());\n String postMatchName = device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"lbl_name\")).getText();\n Assert.assertEquals(\"Test Case Failed...Match should have had been found with\", \"dialectic test\", postMatchName.toLowerCase());\n\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"btn_close\")).click();\n Utils.markPostExpired(device);\n }", "private void generateTestExecution(ITestResult result) throws IOException{\r\n\t\t//create the html file with current running class and test name\r\n\t\tfout = createRequiredFile(result.getName());\r\n\t\t\r\n\t\t//Write initial html codes neccessary for report\r\n\t\tstartHtmlPage(fout,result);\r\n\t\t\r\n\t\t//get all the attributes set during the test execution\r\n\t\tObject[] array = result.getAttributeNames().toArray();\r\n\t\t\r\n\t\t//Above got values are not in sort. So, Sorting that based on time\r\n\t\tArrays.sort(array);\r\n\t\t\r\n\t\t//Iterating the array value to generate report\r\n \tfor(Object name : array){\r\n \t\t\t\r\n \t\t\t//Each and every array value contains, All the info about the particular action\r\n \t\t\t//And Values combined using deliminator. So, split using deliminator\r\n\t \t\tString temp[] = result.getAttribute((String) name).toString().split(\"####\");\r\n\t \t\t\r\n\t \t\t//After split up, If the third array value contains 'Fail' means that step failed \r\n\t \t\tif(temp[3].toLowerCase().contains(\"fail\")){\r\n\t \t\t\t//If Fail create '<tr>' tag with 'status_failed' class(Which is used for create 'red' background color for failed cases)\r\n\t \t\t\tfout.println(\"<tr class=\\\"status_failed\\\" title=\\\"\\\" alt=\\\"\\\">\");\r\n\t \t\t\t\r\n\t \t\t\t//create the screenshot path\r\n\t \t\t\tString pathToScreenshot = \"../Failure_Screenshot/\"+temp[5]+\".jpg\";\r\n\t \t\t\t\r\n\t \t\t\t//creating mapping for failed step(Link to screen shot and embed the screenshot in that step)\r\n\t \t\t\ttemp[4] = \"<a href=\\'\" + pathToScreenshot + \"\\'> <img src=\\'\" + pathToScreenshot + \"\\' height=\\\"100\\\" width=\\\"100\\\"> </a>\";\r\n\r\n\t \t\t}\r\n\t \t\t\r\n\t \t\t//After split up, If the third array value contains 'title' means that is title\r\n\t \t\telse if(temp[3].toLowerCase().contains(\"title\")){\r\n\t \t\t\t//So, If it is a title then create '<tr>' tag with class name 'title'\r\n\t \t\t\tfout.println(\"<tr class=\\\"title\\\" title=\\\"\\\" alt=\\\"\\\">\");\r\n\t \t\t\tfout.println(\"<td colspan=\\\"6\\\">\"+ temp[0] + \"</td>\");\r\n\t \t\t\tfout.println(\"</tr>\");\r\n\t \t\t\tcontinue;\r\n\t \t\t}\r\n\t \t\t\r\n\t \t\t//Else status is passed\r\n\t \t\telse{\r\n\t \t\t\tfout.println(\"<tr class=\\\"status_passed\\\" title=\\\"\\\" alt=\\\"\\\">\");\r\n\t \t\t}\r\n\t \t\t\r\n\t \t\t//this will create separate '<td>' for messages inside the action\r\n\t \t\tfor(String temp1 : temp){\r\n\t \t\t\t\tfout.println(\"<td>\"+ temp1 + \"</td>\");\r\n\r\n\t \t\t}\r\n\t \t//end up '<tr>' tag\t\r\n\t \tfout.println(\"</tr>\");\r\n \t}\r\n \t\r\n \t//this used for write some end up html tags\r\n \tonFinish();\r\n \t\r\n\t}", "@Override\n\tprotected void initTitle() {\n\t\tsetTitleContent(R.string.tocash);\n\t\tsetBtnBack();\n\t}", "@Test\n\n public void validateAppTitle() throws IOException {\n LandingPage l = new LandingPage(driver);\n //compare the text from the browser with actual text.- Error..\n Assert.assertEquals(l.getTitle().getText(), \"FEATURED COURSES\");\n\n System.out.println(\"Test running from Inside docker for tests dated 22-03-2020\");\n System.out.println(\"Test completed\");\n\n ;\n\n\n }" ]
[ "0.58386743", "0.5497206", "0.54509574", "0.5406207", "0.5383295", "0.52477986", "0.5204177", "0.5105016", "0.50310886", "0.5009286", "0.49869516", "0.49848086", "0.4977618", "0.4963516", "0.4917764", "0.4899865", "0.4898046", "0.48840007", "0.48682636", "0.48575258", "0.48455554", "0.48420328", "0.48329598", "0.48159212", "0.48052144", "0.48018917", "0.47624344", "0.4749114", "0.4747234", "0.47235778", "0.47054717", "0.47045216", "0.46760374", "0.46713555", "0.46695188", "0.46694162", "0.4658691", "0.4653671", "0.46513435", "0.4646499", "0.4643521", "0.4643116", "0.46415463", "0.46361125", "0.463229", "0.4631122", "0.4629877", "0.4629357", "0.46241996", "0.46241114", "0.46166673", "0.46158212", "0.46152157", "0.46093467", "0.4607836", "0.46061698", "0.45973134", "0.4593907", "0.45932463", "0.4586342", "0.4586342", "0.45843455", "0.4577075", "0.45763358", "0.45755807", "0.45753273", "0.45744404", "0.45713496", "0.45700338", "0.4562781", "0.45623982", "0.45617443", "0.45605165", "0.45573288", "0.4555245", "0.4551833", "0.4545201", "0.45447287", "0.45415446", "0.45384175", "0.4536706", "0.45309144", "0.45267528", "0.45235902", "0.45186955", "0.45165128", "0.4512756", "0.45117098", "0.45106357", "0.45077935", "0.45077363", "0.4505047", "0.45040545", "0.45027268", "0.45012167", "0.4500339", "0.4496756", "0.44959185", "0.4493327", "0.44932193" ]
0.5022108
9
HMlandingPage_GetQuote: with default state. .text : Get a quote .id : HMlandingPage_GetQuote .href : .title : .class : Html.A .name : .classIndex : 0
protected GuiTestObject getQuote() { return new GuiTestObject( getMappedTestObject("getQuote")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void MyQuotePage()\n\t{\n\t\tbpmqobj.MyQuotesTab().click();\n\t\ttry { Thread.sleep(10000); } catch (InterruptedException e) {e.printStackTrace();}\n\t\tbpmqobj.MyQuoteResultCheckSingleCheckBox().click();\n\t\tnew Select(bpmqobj.MyQuotesQuoteActionsDropDown()).selectByVisibleText(\"Open\");\n\t\tbpmqobj.MyQuoteGOButton().click();\n\t\tSystem.out.println(\"----> Pass <---- My Quotes Screen checks are done!\");\t\n\t}", "amdocs.iam.pd.pdwebservices.GetQuoteDocument.GetQuote getGetQuote();", "void setGetQuote(amdocs.iam.pd.pdwebservices.GetQuoteDocument.GetQuote getQuote);", "protected GuiTestObject getQuote(TestObject anchor, long flags) \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"getQuote\"), anchor, flags);\n\t}", "Quote createQuote();", "public void clickRequestQuoteLink()\n\t{\n \telementUtils.performElementClick(wbRequestQuoteLink);\n\t}", "@GET\n @Path(\"{id}\")\n @Produces(MediaType.TEXT_PLAIN)\n public String getQoute(@PathParam(\"id\") int id) {\n String quote;\n quote = quotes.get(id);\n return quote;\n }", "QuoteItem createQuoteItem();", "@Test\n public void getQuote() throws Exception {\n Stock quote = quoteService.getQuote(TestConfiguration.QUOTE_SYMBOL);\n assertEquals(TestConfiguration.QUOTE_SYMBOL, quote.getSymbol());\n assertEquals(TestConfiguration.QUOTE_NAME, quote.getName());\n }", "amdocs.iam.pd.pdwebservices.GetQuoteDocument.GetQuote addNewGetQuote();", "public void btnNewQuote(View view){\n setupTextView();\n newQuote();\n quoteTextView.setText(Variables.quote);\n }", "private void generateQuote() throws IOException, ParseException {\r\n int rand = (int) (Math.random() * 152 + 1);\r\n String theURL = \"http://www.nokeynoshade.party/api/queens/\" + String.valueOf(rand); //this can point to any URL\r\n URL url = new URL(theURL);\r\n br = new BufferedReader(new InputStreamReader(url.openStream()));\r\n String inputLine;\r\n while ((inputLine = br.readLine()) != null) {\r\n JSONObject object = (JSONObject) parser.parse(inputLine);\r\n String name = (String) object.get(\"name\");\r\n String quote = (String) object.get(\"quote\");\r\n System.out.println(\"\\\"\" + quote + \"\\\"\");\r\n for (int i = 0; i < quote.length() - 5; i++) {\r\n System.out.print(\" \");\r\n }\r\n System.out.println(\"-\" + name);\r\n System.out.println(\"\\n\");\r\n }\r\n }", "public interface InspiringQuotesWidget {\n\t/**\n\t * Returns the current quote {@link Label}.\n\t * \n\t * @return - The current quote {@link Label}.\n\t */\n\tLabel getQuoteLabel();\n\n\t/**\n\t * Returns the current author {@link Label}.\n\t * \n\t * @return - The current author {@link Label}.\n\t */\n\tLabel getAuthorLabel();\n}", "public String getQuote();", "public String randomQuote() {//gets a random quote from the listofQuotes\r\n\t\tint randomNumber = random.nextInt(listofQuotes.size());\r\n\t\tString randomQuote = listofQuotes.get(randomNumber);\r\n\t\treturn randomQuote;\r\n\t}", "public LocalQuote\t\tgetQuote();", "String getQuoteOfTheDay();", "public abstract String linkText();", "QuoteTerm createQuoteTerm();", "public String getQuote() {\r\n\t\tString qt = this.getName() + \" (\" + this.getSymbol() + \")\\n\" + \"Price: \" + this.getLastPrice() + \"\\t\" + \"hi: \"\r\n\t\t\t\t+ this.getHighPrice() + \"\\t\" + \"low: \" + this.getLowPrice() + \"\\t\" + \"vol: \" + this.getVol() + \"\\n\";\r\n\t\tqt += \"Ask: \";\r\n\t\tif (!buy.isEmpty()) {\r\n\t\t\tqt += buy.peek().getPrice();\r\n\t\t\tqt += \" size: \" + buy.peek().getShares();\r\n\t\t} else\r\n\t\t\tqt += \"none \";\r\n\r\n\t\tqt += \"Bid: \";\r\n\t\tif (!sell.isEmpty()) {\r\n\t\t\tqt += sell.peek().getPrice();\r\n\t\t\tqt += \"size: \" + sell.peek().getShares();\r\n\t\t} else\r\n\t\t\tqt += \"none \";\r\n\t\treturn qt;\r\n\t}", "public interface Quote {\n /**** get the image of the Author of Quote****/\n public int getImage();\n /***8 get the quote of the Author *****/\n public String getQuote();\n}", "@RequestMapping(value = \"/quote\", method = POST)\n public @ResponseBody Quote quote(@RequestBody Quote quote) {\n Double markup = VehicleHashMap.getMap().get(quote.getVehicle());\n Long price = Math.round(Math.abs((Long.valueOf(quote.getDeliveryPostcode(), 36) - Long.valueOf(quote.getPickupPostcode(), 36))/100000000) * (1 + markup));\n\n return new Quote(quote.getPickupPostcode(), quote.getDeliveryPostcode(),quote.getVehicle() ,price);\n }", "void showOrdersText();", "private void getTradeDetail() {\n\t\t\tsendData(\"<get></get>\");\n\t}", "void showOrderText(int ID) throws OrderNotFoundException;", "public void getQuote(String symbol)\r\n {\r\n brokerage.getQuote(symbol, this);\r\n }", "@GetMapping\n public List<QuoteInfo> quotes(){\n Iterable<QuoteRecord> records = quoteRepository.findAll();\n List<QuoteInfo> quotes = new ArrayList<>();\n for(QuoteRecord q: records){\n quotes.add(quotePresenter.present(q));\n }\n\n return quotes;\n }", "public void printQuote() throws IOException {\r\n try {\r\n generateQuote();\r\n } catch (Exception e) {\r\n System.out.println(\"Quote retrieval error: Try start up again\");\r\n e.printStackTrace();\r\n } finally {\r\n if (br != null) {\r\n br.close();\r\n }\r\n }\r\n }", "public java.lang.Object getQuoteID() {\n return quoteID;\n }", "public String getQuote(){\n\t\tString quote = null;\n\t\ttry {\n\t\t\tcrs = qb.selectFrom(\"qotd\").all().executeQuery();\n\n\t\t\tif(crs.next()) {\n\t\t\t\tquote = crs.getString(\"qotd\");\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tcrs.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn quote;\n\t}", "static void callQuote(String key, Scanner sc) throws Exception {\n\t\tboolean quoteLoop = true;\n\t\tString selection = \"\";\n\t\t\n\t\twhile(quoteLoop) { \n\t\t\tSystem.out.println(\"1. Current stock quote\");\n\t\t\tSystem.out.println(\"2. Historic data\\n\");\n\t\t\tSystem.out.print(\"Selection: \");\n\t\t\tselection = sc.next();\n\t\t\t\n\t\t\tif(selection.matches(\"1\")) {\n\t\t\t\tclearScreen();\n\t\t\t\tSystem.out.println(\"\\n*** Current Stock Quote *** \\n\");\n\t\t\t\tSystem.out.print(\"Enter stock symbol: \");\n\t\t\t\tString symbol = sc.next().toUpperCase();\n\t\t\t\tHttpResponse<String> response = Unirest.get(\"https://yahoo-finance-low-latency.p.rapidapi.com/v6/finance/quote?symbols=\" + symbol) \n\t\t\t\t\t\t.header(\"x-rapidapi-key\", key)\n\t\t\t\t\t\t.header(\"x-rapidapi-host\", \"yahoo-finance-low-latency.p.rapidapi.com\")\n\t\t\t\t\t\t.asString();\n\t\t\t\t\t\n\t\t\t\t/* Getting objects from JSON object & JSON array */\n\t\t\t\tJSONObject obj = new JSONObject(response.getBody());\t// Get the response, store it in JSON object\n\t\t\t\tobj = new JSONObject(obj.get(\"quoteResponse\").toString());\n\t\t\t\tJSONArray arr = new JSONArray(obj.get(\"result\").toString());\n\t\t\t\tobj = new JSONObject(arr.get(0).toString());\n\t\t\t\t/* The keyset contains alot of information that can be extracted from the JSON object\n\t\t\t\t */\n\t\t\t\tSystem.out.println(\"Symbol: \" + obj.get(\"symbol\"));\n\t\t\t\tSystem.out.println(\"Percent change: \" + obj.get(\"regularMarketChangePercent\"));\n\t\t\t\tSystem.out.println(\"Open price: \" + obj.get(\"regularMarketOpen\"));\n\t\t\t\tSystem.out.println(\"Current price: \" + obj.get(\"regularMarketPrice\"));\n\t\t\t\tSystem.out.println(\"Previous close: \" + obj.get(\"regularMarketPreviousClose\"));\n\t\t\t\tSystem.out.println(\"Market Cap: \" + obj.get(\"marketCap\"));\n\t\t\t\tSystem.out.println(\"Volume: \" + obj.get(\"regularMarketVolume\"));\n\t\t\t\tSystem.out.println(\"Exchange: \" + obj.get(\"exchange\"));\n\t\t\t\tSystem.out.println(\"Shares outstanding: \" + obj.get(\"sharesOutstanding\") + \"\\n\");\n\t\t\t\t\n\t\t\t\tUnirest.shutDown();\n\t\t\t} else if(selection.matches(\"2\")) {\n\t\t\t\tclearScreen();\n\t\t\t\tSystem.out.println(\"\\n*** Historic Data *** \\n\");\n\t\t\t\tSystem.out.println(\"\\n*** Placeholder *** \\n\");\n\t\t\t}\n\t\t\tquoteLoop = false;\n\t\t}\n\t}", "public String getQuotes() {\r\n\t\treturn this.quotes;\r\n\t}", "HtmlPage clickLink();", "HtmlPage clickSiteName();", "public Quote(String ticker, String idfinam) {\n this.ticker = ticker;\n this.idfinam = idfinam;\n }", "public void generateQuote(JPanel panel) throws IOException, ParseException {\r\n int rand = (int) (Math.random() * 152 + 1);\r\n String theURL = \"http://www.nokeynoshade.party/api/queens/\" + String.valueOf(rand); //this can point to any URL\r\n URL url = new URL(theURL);\r\n br = new BufferedReader(new InputStreamReader(url.openStream()));\r\n String inputLine;\r\n while ((inputLine = br.readLine()) != null) {\r\n parseAndPrint(panel, inputLine);\r\n }\r\n }", "public void setQuoteID(java.lang.Object quoteID) {\n this.quoteID = quoteID;\n }", "private void populate(Quote quote) {\n PublicUser user = new UserDBManager(QuoteListAdapter.this.context).loadSQLite(quote.getUserId());\n\n if (user != null) {\n this.txtUserPseudo.setText(user.getPseudo());\n } else {\n this.txtUserPseudo.setText(R.string.not_communicated);\n }\n\n this.txtQuote.setText(quote.getQuote());\n }", "public interface QuoteService {\n\n /**\n * Get quote of the day.\n *\n * @return quote\n */\n String getQuoteOfTheDay();\n}", "public static Quote getQuoteFromAPI(){\n try{\n URL url = new URL(\"https://ron-swanson-quotes.herokuapp.com/v2/quotes\");\n HttpURLConnection con = (HttpURLConnection) url.openConnection();\n // this line of code actually goes to the internet!\n BufferedReader reader = new BufferedReader(new InputStreamReader((con.getInputStream())));\n // get json data in response\n // use Gson to parse json string\n Gson gson = new Gson();\n String[] text = gson.fromJson(reader, String[].class);\n // Create Quote object\n Quote quote = new Quote(null, \"Ron Swanson\", null, text[0]);\n addQuoteToFile(quote);\n return quote;\n } catch(IOException e) {\n // This is where we check cached.\n return getQuoteFromFile();\n }\n }", "public Integer getQuoteId() {\n\t\treturn quoteId;\n\t}", "public String getText_click_My_Rewards_Link(){\r\n\t\treturn click_My_Rewards_Link.getText();\r\n\t}", "public String getCurrentUserQuote() {\n\t\tString quote = currentUser.getQuote();\n\t\tif (quote == null)\n\t\t\treturn \"Hello! I'm using AppChat\";\n\t\treturn quote;\n\t}", "QuoteNote createQuoteNote();", "public String extractHomeView() {\n return (new StringBuilder()\n .append(\"<a href=\\\"/products/details/\" + this.getId() + \"\\\" class=\\\"col-md-2\\\">\")\n .append(\"<div class=\\\"product p-1 chushka-bg-color rounded-top rounded-bottom\\\">\")\n .append(\"<h5 class=\\\"text-center mt-3\\\">\" + this.getName() + \"</h5>\")\n .append(\"<hr class=\\\"hr-1 bg-white\\\"/>\")\n .append(\"<p class=\\\"text-white text-center\\\">\")\n .append(this.getDescription())\n .append(\"</p>\")\n .append(\"<hr class=\\\"hr-1 bg-white\\\"/>\")\n .append(\"<h6 class=\\\"text-center text-white mb-3\\\">$\" + this.getPrice() + \"</h6>\")\n .append(\"</div>\")\n .append(\"</a>\")\n ).toString();\n }", "public static String randomQuote() {\n\t\tint i = (int) (Math.random() * quotes.length);\n\t\treturn quotes[i];\n\t}", "HtmlPage clickSiteLink();", "public void saveQuote() {\n\t\ttry {\n\t\t\tString json = urlRead.readUrl(\"http://dist-sso.it-kartellet.dk/quote/\");\n\n\t\t\tJSONParser jsonParser = new JSONParser();\n\t\t\tJSONObject jsonObject = (JSONObject) jsonParser.parse(json);\n\n\t\t\tString quote = (String) jsonObject.get(\"quote\");\n\t\t\tquote = quote.replace(\"'\", \"''\");\n\n\t\t\tString[] fields = {\"qotd\"};\n\t\t\tString[] values = {quote};\n\n\t\t\tif(qb.selectFrom(\"qotd\").all().executeQuery().next()){\n\t\t\t\tqb.update(\"qotd\", fields, values).where(\"msg_type\", \"=\", \"qotd\").execute();\n\t\t\t} else {\n\t\t\t\tqb.insertInto(\"qotd\", fields).values(values).execute();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public PageRefresh(int colorId, String quote) {\n mColorId = colorId;\n mQuote = quote;\n }", "public void setQuoteId(Integer quoteId) {\n\t\tthis.quoteId = quoteId;\n\t}", "public String getBuyLink() {\n return buyLink;\n }", "public String getPageText();", "public HtmlPage clickContentPath();", "@attribute(value = \"\", required = false)\t\r\n\tpublic void setQuoteText(Boolean quote) {\r\n\t\tthis.quoteText = quote;\r\n\t}", "public interface WikiQuoteService {\n\n /**\n * Requests for suggested pages, matching the given query.\n * @param search the search query\n * @return the server response, in form of JSON\n */\n @GET(\"w/api.php?action=opensearch&format=json&suggest&redirects=resolve\")\n Call<JsonElement> getSuggestionsFromSearch(@Query(\"search\") String search);\n\n /**\n * Requests for a page having the given title.\n * @param titles the title of the page\n * @return the server response, in form of JSON\n */\n @GET(\"w/api.php?action=query&format=json&redirects\")\n Call<JsonElement> getPageFromTitle(@Query(\"titles\") String titles);\n\n /**\n * Requests for the table of content of the page having the given id.\n * @param pageid the id of the page\n * @return the server response, in form of JSON\n */\n @GET(\"w/api.php?action=parse&format=json&prop=sections\")\n Call<JsonElement> getTocFromPage(@Query(\"pageid\") long pageid);\n\n /**\n * Requests for a specific section of the page having the given id.\n * @param pageid the id of the page\n * @param section the id of the section\n * @return the server response, in form of JSON\n */\n @GET(\"w/api.php?action=parse&format=json&noimage\")\n Call<JsonElement> getSectionFrom(@Query(\"pageid\") long pageid,@Query(\"section\") long section);\n}", "public void onQuote(Quote event) {\n quoteCount++;\n }", "public void load(String state)\n{\n String quotes[] = {\n \"Looks Like You Got One Of The Slower Computers, Better Luck Next Time!\",\n \"\\\"Never Let Your Computer Know That You Are In A Hurry!\\\"\",\n \"Sadly This Is Not The Fastest Computer Out There\",\n \"This Computer Has Been Working Overtime, Might Be A Little Slow At Doing Things\",\n \"Dont Mind Me... Just Waiting With You...\",\n \"Patience Is Not The Ability To Wait, But The Ability To Keep A Good Atitude While Waiting...\",\n \"I Started The Week With A Big Box Of Patience... The Box Is Empty Now...\",\n \"Whoever Said \\\"Patience Is A Virtue\\\" Has Never Experienced A Slow Computer\",\n \"Patience Leads To Its Own Reward...\",\n \"Atlease I'm Not Waiting Alone This Time...\",\n \"Keep Calm And Wait With Me...\", \n }; \n int rnd = new Random().nextInt(quotes.length);\n String activeQ = quotes[rnd];\n randomQuote.setText(activeQ);\n if (state.equalsIgnoreCase(\"active\"))\n {\n btnVote.setVisible(false);\n btnNominate.setVisible(false);\n btnAdmin.setVisible(false);\n jLabel2.setVisible(false);\n jLabel2.setVisible(false);\n jLabel5.setVisible(false);\n btnGetIP.setVisible(false);\n lblJokeMsg.setVisible(true);\n randomQuote.setVisible(true);\n }\n else\n {\n if(sm.checkStatus(\"AllowGetIP\") == true)\n {\n btnGetIP.setVisible(true);\n }\n btnVote.setVisible(true);\n btnNominate.setVisible(true);\n btnAdmin.setVisible(true);\n jLabel2.setVisible(true);\n jLabel2.setVisible(true);\n jLabel5.setVisible(true);\n lblJokeMsg.setVisible(true);\n randomQuote.setVisible(true);\n \n }\n}", "public String findAndReturnFirstLink() {\n\t\tString xpath = \"//div[@id='search']/div/div/div/div/div/div[1]/div/div/h3/a\";\r\n\t\telement = webDriver.findElement(By.xpath(xpath));\r\n\t\t//element = webDriver.findElement(By.cssSelector(css));\r\n\t\treturn element.getText();\r\n\t}", "public String hyperlink1_action() {\n try {\n String primaryid = (String)hyperlink1.getValue();\n getSessionBean1().getProcesseddatasetRowSet().setObject(\n 1, primaryid);\n //dbssearch.Page1.processeddatasetDataProvider.refresh();\n }catch (Exception e) {\n log(\"Exception Raised:\" + e.getMessage());\n }\n return \"case1\";\n }", "@Test\n public void testDAM32101001() {\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n OrderMB3ListPage orderMB3ListPage = dam3IndexPage.dam32101001Click();\n\n String expectedOrdeDetails = \"Order accepted, ITM0000001, Orange juice, CTG0000001, Drink, dummy1\";\n\n // get the details of the specified order in a single string\n String actualOrderDetails = orderMB3ListPage.getOrderDetails(1);\n\n // confirm the details of the order fetched from various tables\n assertThat(actualOrderDetails, is(expectedOrdeDetails));\n\n orderMB3ListPage.setItemCode(\"ITM0000001\");\n\n orderMB3ListPage = orderMB3ListPage.fetchRelatedEntity();\n\n // Expected related entity category details\n String expRelatedEntityDet = \"CTG0000001, Drink\";\n\n String actRelatedEntityDet = orderMB3ListPage\n .getRelatedEntityCategoryDeatils(1);\n\n // confirmed realted entity details\n assertThat(actRelatedEntityDet, is(expRelatedEntityDet));\n\n }", "@Override\n public void onGetNavigationText(int arg0, String arg1) {\n\n }", "QuotePackage getQuotePackage();", "public void enterTextOnElementOnCheckoutOrderPage(String key, String text){\n\t\n\t\tenterTextOnElement(checkoutOrderPropertiesReader.getProperties(key), text);\t\t\n\t}", "@Test(expected = SymbolNotFoundException.class)\n public void getNullQuote() throws Exception {\n quoteService.getQuote(TestConfiguration.NULL_QUOTE_SYMBOL);\n }", "@Test\n\tpublic void editBillTo(){\n\t\tQuotePage quotePage = homePage.goToDocumentsPage().switchToTab(DocumentTabs.QUOTES).setFilterByModifiedBy(\"All\").goToQuote(1);\n\n\t\tquotePage.clickBillTo();\n\t}", "@Test\n\tpublic void Quotes_20344_execute() throws Exception {\n\t\tVoodooUtils.voodoo.log.info(\"Running \" + testName + \"...\");\n\n\t\tFieldSet customFS = testData.get(testName).get(0);\n\t\tsugar().quotes.navToListView();\n\n\t\t// Click on Advanced Search\n\t\tVoodooUtils.focusFrame(\"bwc-frame\");\n\t\tsugar().quotes.listView.getControl(\"advancedSearchLink\").click();\n\t\tVoodooUtils.waitForReady();\n\n\t\t// Conditions for the saved search\n\t\t// TODO: VOOD-975\n\t\tnew VoodooControl(\"input\", \"id\", \"name_advanced\").set(testName);\n\t\tnew VoodooControl(\"option\", \"css\", \"#assigned_user_id_advanced option:nth-child(2)\").click();\n\t\tnew VoodooControl(\"option\", \"css\", \"#quote_stage_advanced option:nth-of-type(3)\").click();\n\t\tnew VoodooControl(\"input\", \"css\", \"input[name=saved_search_name]\").set(customFS.get(\"searchName\"));\n\t\tnew VoodooControl(\"input\", \"css\", \"input[name=saved_search_submit]\").click();\n\t\tVoodooUtils.waitForReady();\n\n\t\t// Verify saved search in dropdown and records are filtered accordingly\n\t\tVoodooControl savedSearchDropdown = new VoodooControl(\"select\", \"id\", \"saved_search_select\");\n\t\tsavedSearchDropdown.assertContains(customFS.get(\"searchName\"), true);\n\t\tVoodooUtils.focusDefault();\n\t\tAssert.assertTrue(\"Quote record is not equals zero\", sugar().quotes.listView.countRows() == 0);\n\n\t\t// Verify records with default \"none\" are filtered accordingly\n\t\tsavedSearchDropdown.set(customFS.get(\"noneFilter\"));\n\t\tVoodooUtils.waitForReady();\n\t\tVoodooUtils.focusDefault();\n\t\tAssert.assertTrue(\"Quote record is not equals one\", sugar().quotes.listView.countRows() == 1);\n\n\t\tVoodooUtils.voodoo.log.info(testName + \" complete.\");\n\t}", "public void recordOpeningQuote(Quote openingQuote_, MarketDataSession marketDataSession_);", "String getHref();", "@Test \n\tpublic void homePageHeaderTest() {\n\t\tHomePage homePage = new HomePage(driver);\n\t\thomePage.OpenPage();\n\n\t\t// Validate page header \n\t\tString header = homePage.getHeader();\n\t\tAssert.assertTrue(header.equals(\"\"));\n\n\t\t// Fetch latin quote: \n\t\tString latinQuote = homePage.getQuote(\"latin\");\n\t\tAssert.assertEquals(\"\\\"Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit...\\\"\", latinQuote);\n\n\t\t// Fetch english quote, which is: \n\t\tString englishQuote = homePage.getQuote(\"english\"); \n\t\tAssert.assertEquals(\"\\\"There is no one who loves pain itself, who seeks after it and wants to have it, simply because it is pain...\\\"\",englishQuote); \n\t}", "@Override\n\tpublic void onGetNavigationText(int arg0, String arg1) {\n\n\t}", "@Test\n public void addsAndListsQuotes() throws Exception {\n final Base base = new DyBase(\n this.dynamo.region(), new MkSttc().counters().get(\"cnt\")\n );\n final String name = \"alpha2010\";\n final Book book = base.books().add(\n String.format(\"@book{%s, author=\\\"Jeffrey\\\" }\", name)\n );\n final Quotes quotes = base.quotes();\n quotes.add(book, \"hey, how are you doing there, JavaDude?\", \"58\");\n MatcherAssert.assertThat(\n quotes.refine(\"javadude\").iterate(),\n Matchers.<Quote>iterableWithSize(1)\n );\n final Quote quote = quotes.iterate().iterator().next();\n MatcherAssert.assertThat(\n quote.book().name(),\n Matchers.equalTo(name)\n );\n MatcherAssert.assertThat(\n quote.book().bibitem(),\n Matchers.notNullValue()\n );\n }", "public void clickOrderHistoryLink()\n\t{\n \telementUtils.performElementClick(wbOrderHistoryLink);\n\t}", "@Override\r\n\tpublic void onGetNavigationText(int arg0, String arg1) {\n\r\n\t}", "QuoteAttribute createQuoteAttribute();", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_home, container, false);\n\n quoteText = view.findViewById(R.id.quote_text);\n quoteAuthor = view.findViewById(R.id.quote_author);\n\n apiInterface = RetrofitInstance.getRetrofit().create(ApiInterface.class);\n list = new ArrayList<>();\n\n apiInterface.getQuote().enqueue(new Callback<List<QuoteData>>() {\n @Override\n public void onResponse(Call<List<QuoteData>> call, Response<List<QuoteData>> response) {\n\n if (response.body().size() > 0) {\n list.addAll(response.body());\n\n Random rand = new Random();\n int i = rand.nextInt(list.size()-1);\n String quote = list.get(i).getText();\n\n String author;\n if (list.get(i).getAuthor() != null)\n {\n author = \"Unknown\";\n// Log.e(\"error\", \"null author\");\n }\n else {\n author = list.get(i).getAuthor();\n }\n\n quoteText.setText(quote);\n quoteAuthor.setText(\"- \" + author);\n\n }\n }\n\n @Override\n public void onFailure(Call<List<QuoteData>> call, Throwable t) {\n\n }\n });\n\n return view;\n }", "HtmlPage clickDateLink();", "@Test()\n\tpublic static void Homep1() {\n\t\t\n\t\tdriver= CallingChrome();\ndriver.navigate().to(\"https://www.spicejet.com/\");\n\t\t\n\n\t\t\n\t\tSystem.out.println(driver.findElement(By.xpath(\"//a[text()='Book']\")).getText());\t\n\t}", "@Override\n public void onClick(View view) {\n String stock = symbolEditText.getText().toString();\n // build an intent to display the stock quote uri from yahoo\n Intent i = new Intent( Intent.ACTION_VIEW, Uri.parse( HTTP_QUERY + stock ) );\n // get the preference editor\n SharedPreferences.Editor editor = prefs.edit();\n // set the stock symbol in the preference editor\n editor.putString( PREF_KEY, stock );\n // save it\n editor.apply();\n // reset the symbol edit text content\n symbolEditText.setText(\"\");\n // start the activity\n startActivity( i );\n }", "public static void helper(){\n System.out.println(\"\\n0: Search Transaction\");\n System.out.println(\"1: New Transaction\");\n System.out.println(\"2: Query Transaction Detail\");\n System.out.println(\"back: return last menu\");\n }", "public String clickLink(int _index) {\n String item_ = getItems().get(_index).getName();\n return tryRedirectIt(item_);\n// getForms().put(CST_ITEM, item_);\n// Item it_ = data_.getItem(item_);\n// return switchItem(it_);\n }", "amdocs.iam.pd.webservices.quotation.getquoteinput.GetQuoteInput getROOT();", "public String getAmountOrderDetailPage()\n\t{\n\t\twaitForVisibility(amountOnDetailPage);\n\t\treturn amountOnDetailPage.getText();\n\t}", "public void gotoDetailSalesOrder() {\n\t}", "public GetQuotePage(WebDriver driver, ExtentTest report) {\n\t\tthis.driver = driver;\n\t\tthis.extentedReport = report;\n\t\tPageFactory.initElements(driver, this);\n\t}", "public Hyperlink(){\n this.href = \"\";\n this.text = new TextSpan(\"\");\n }", "public PolicyBinderPage copyToQuoteFromActionDropDownForQA() {\r\n sleep(2000);\r\n String getPolicyNo = policyNo();\r\n ExtentReporter.logger.log(LogStatus.INFO,\r\n \"Click Policy Actions>Copy to Quote. Verify Policy folder shows a new number, Phase show Submission.\");\r\n selectDropdownByValue(driver, policyAction, policybinderpageDTO.valueOfPolicyActionCopyToQuote,\r\n \"Policy Action\");\r\n sleep(8000);\r\n invisibilityOfLoader(driver);\r\n captureTransactionDetailsWithExitOkButton(getPolicyNo);\r\n\r\n return new PolicyBinderPage(driver);\r\n }", "public void myorders() {\n\t\t\t\r\n\t\t\t\r\n\t\tBy my=By.xpath(\"//a[@href='/my/orders/create?form']\");\r\n\t\tWebElement We_my=wt.ElementToBeClickable(my, 20);\r\n\t\tWe_my.click();\r\n\t\t}", "private void scrapResultsInCurrentResultPage() {\n List<WebElement> searchResults = getSearchResults();\n\n for (int i = 0; i < searchResults.size(); i++) {\n WebElement result = searchResults.get(i);\n WebElement quoteButton = result.findElement(By.xpath(\".//a[@class='gs_or_cit gs_nph']\"));\n quoteButton.click();\n\n waitForMillis(500);\n\n WebElement bibtexLink = driver.findElement(By.xpath(\"//div[@id='gs_citi']/a[1]\"));\n waitUntilClickable(bibtexLink);\n bibtexLink.click();\n\n WebElement publicationCitationInBibtex = driver.findElement(By.xpath(\"/html/body/pre\"));\n searchResultsAsBibtex.add(publicationCitationInBibtex.getText());\n\n driver.navigate().back();\n\n WebElement quoteDialogCancelButton = driver.findElement(By.xpath(\"//*[@id=\\\"gs_cit-x\\\"]\"));\n waitUntilClickable(quoteDialogCancelButton);\n quoteDialogCancelButton.click();\n\n // Reload the reference to the DOM elements: the search results.\n searchResults = getSearchResults();\n }\n }", "public Quotes() { }", "@Override\n protected void execute() throws Exception\n {\n loadPageByClick(viewCartLink);\n }", "public String getText_click_Fuel_Rewards_Link(){\r\n\t\treturn click_Fuel_Rewards_Link.getText();\r\n\t}", "private Text href() {\n\t\tText href = text();\r\n\r\n\t\tif (syntaxError)\r\n\t\t\treturn null;\r\n\r\n\t\treturn href;\r\n\t}", "@Override\n public void onClick(View v) {\n\n if (quoteEntity.isIskeyvisible()) {\n quoteEntity.setIskeyvisible(false);\n holder.rvhlknowmore.setVisibility(View.GONE);\n\n holder.ivArrow.setImageDrawable(mContext.getResources().getDrawable(R.drawable.down_arrow_grey));\n\n\n } else {\n quoteEntity.setIskeyvisible(true);\n holder.ivArrow.setImageDrawable(mContext.getResources().getDrawable(R.drawable.up_arrow_blue));\n\n String pre=\"\",par=\"\",spe=\"\";\n if(quoteEntity.getPre_Closer_Fixed() != null) {\n pre = \" = \" + quoteEntity.getPre_Closer_Fixed() + \" %\";\n }\n else\n {\n pre = \" = \";\n }\n\n if(quoteEntity.getPart_Pmt_Fixed() != null) {\n par = \" = \" + quoteEntity.getPart_Pmt_Fixed() + \" %\";\n }\n else\n {\n par = \" = \";\n }\n\n if(quoteEntity.getWomen_roi() != null) {\n spe = \" = \" + quoteEntity.getWomen_roi() + \" %\";\n }\n else\n {\n spe = \" = \";\n }\n\n\n holder.tvDetailsCount1.setText(pre);\n holder.tvDetailsCount2.setText(par);\n holder.tvDetailsCount3.setText(\" = Yes\");\n holder.tvDetailsCount4.setText(spe);\n holder.tvDetailsCount5.setText(\" = Yes\");\n holder.tvDetailsCount6.setText(\" = Yes\");\n\n\n\n holder.rvhlknowmore.setVisibility(View.VISIBLE);\n\n\n }\n }", "public String GetTitle(){ return(title); }", "QuoteTermAttribute createQuoteTermAttribute();", "@Override\n\tpublic void onClick(View arg0) {\n\t\tswitch (arg0.getId()) {\n\t\tcase R.id.bGo:\n\t\t\tInputMethodManager mgr = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);\n\t\t\tmgr.hideSoftInputFromWindow(inputText.getWindowToken(), 0);\n\t\t\tString theWebsite = inputText.getText().toString();\n\t\t\ttheBrow.loadUrl((\"http:\" + theWebsite));\n\t\t\tinputText.setCursorVisible(false);\n\n\t\t\tbreak;\n\t\tcase R.id.editUrl:\n\t\t\tinputText.setCursorVisible(true);\n\t\t\tbreak;\n\t\tcase R.id.bBack:\n\t\t\tif (theBrow.canGoBack()) {\n\t\t\t\ttheBrow.goBack();\n\t\t\t}\n\t\t\tbreak;\n\t\tcase R.id.brefresh:\n\t\t\ttheBrow.reload();\n\t\t\tbreak;\n\t\tcase R.id.bForward:\n\t\t\tif (theBrow.canGoForward()) {\n\t\t\t\ttheBrow.goForward();\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t}", "public abstract Menu mo2158c();", "public QuoteResponse() {\n }", "public void clickOnMyTraderHomeIcon() {\r\n\t\tprint(\"Click on My Trader Home Icon\");\r\n\t\tlocator = Locator.MyTrader.MyTrader_Home.value;\r\n\t\tclickOn(locator);\r\n\t}", "public Object checkAndSaveQuote() {\n String quoteString = mAddQuoteTextView.getText().toString();\n if (!quoteString.equals(\"\")) {\n\n // get the other values\n String name = mAddNameTextView.getText().toString();\n String source = mAddSourceTextView.getText().toString();\n // Empty fields\n mAddQuoteTextView.setText(\"\");\n mAddNameTextView.setText(\"\");\n mAddSourceTextView.setText(\"\");\n // then we can create and return the new object\n return QuoteObject.newInstance(name, source, quoteString);\n } else {\n // Alert the user we need a quote to save to the list\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(\"No Quote Entered!\");\n builder.setMessage(\"Please add a quote before saving.\");\n builder.show();\n // return nothing\n return null;\n }\n }" ]
[ "0.604561", "0.59171194", "0.5771901", "0.5690755", "0.5605236", "0.5605055", "0.5590492", "0.5585384", "0.55838263", "0.5517938", "0.55023676", "0.5484848", "0.54351497", "0.5420583", "0.5391441", "0.5377517", "0.5373644", "0.53303444", "0.53220016", "0.5266478", "0.52613175", "0.52439773", "0.5193873", "0.5177056", "0.5174348", "0.5123152", "0.5120329", "0.5112892", "0.5108322", "0.50808865", "0.50580734", "0.50458145", "0.5020362", "0.5011679", "0.5009684", "0.50092584", "0.4961991", "0.4936179", "0.49333352", "0.49330547", "0.49228248", "0.4919141", "0.49171013", "0.48832843", "0.48650444", "0.48631275", "0.48602504", "0.48419186", "0.4832667", "0.48186103", "0.47649702", "0.4764964", "0.47617516", "0.4740165", "0.47253552", "0.47142836", "0.47058162", "0.46977025", "0.46912256", "0.46884945", "0.46856907", "0.4663933", "0.46519434", "0.46485248", "0.46477422", "0.46446636", "0.46443993", "0.46308613", "0.46275583", "0.46088272", "0.46004325", "0.45992082", "0.45942423", "0.458798", "0.45872504", "0.45851165", "0.45737046", "0.45733032", "0.4572232", "0.457095", "0.45691437", "0.4566832", "0.4564733", "0.45640677", "0.45609537", "0.45552078", "0.4551446", "0.4542139", "0.4541031", "0.45407003", "0.45328873", "0.4532497", "0.45289382", "0.45250157", "0.45211244", "0.4520837", "0.45185426", "0.44971764", "0.4488162", "0.44861293" ]
0.59185773
1
HMlandingPage_GetQuote: with specific test context and state. .text : Get a quote .id : HMlandingPage_GetQuote .href : .title : .class : Html.A .name : .classIndex : 0
protected GuiTestObject getQuote(TestObject anchor, long flags) { return new GuiTestObject( getMappedTestObject("getQuote"), anchor, flags); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected GuiTestObject getQuote() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"getQuote\"));\n\t}", "public void MyQuotePage()\n\t{\n\t\tbpmqobj.MyQuotesTab().click();\n\t\ttry { Thread.sleep(10000); } catch (InterruptedException e) {e.printStackTrace();}\n\t\tbpmqobj.MyQuoteResultCheckSingleCheckBox().click();\n\t\tnew Select(bpmqobj.MyQuotesQuoteActionsDropDown()).selectByVisibleText(\"Open\");\n\t\tbpmqobj.MyQuoteGOButton().click();\n\t\tSystem.out.println(\"----> Pass <---- My Quotes Screen checks are done!\");\t\n\t}", "@Test\n public void getQuote() throws Exception {\n Stock quote = quoteService.getQuote(TestConfiguration.QUOTE_SYMBOL);\n assertEquals(TestConfiguration.QUOTE_SYMBOL, quote.getSymbol());\n assertEquals(TestConfiguration.QUOTE_NAME, quote.getName());\n }", "amdocs.iam.pd.pdwebservices.GetQuoteDocument.GetQuote getGetQuote();", "@Test\n public void testDAM32101001() {\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n OrderMB3ListPage orderMB3ListPage = dam3IndexPage.dam32101001Click();\n\n String expectedOrdeDetails = \"Order accepted, ITM0000001, Orange juice, CTG0000001, Drink, dummy1\";\n\n // get the details of the specified order in a single string\n String actualOrderDetails = orderMB3ListPage.getOrderDetails(1);\n\n // confirm the details of the order fetched from various tables\n assertThat(actualOrderDetails, is(expectedOrdeDetails));\n\n orderMB3ListPage.setItemCode(\"ITM0000001\");\n\n orderMB3ListPage = orderMB3ListPage.fetchRelatedEntity();\n\n // Expected related entity category details\n String expRelatedEntityDet = \"CTG0000001, Drink\";\n\n String actRelatedEntityDet = orderMB3ListPage\n .getRelatedEntityCategoryDeatils(1);\n\n // confirmed realted entity details\n assertThat(actRelatedEntityDet, is(expRelatedEntityDet));\n\n }", "public void clickRequestQuoteLink()\n\t{\n \telementUtils.performElementClick(wbRequestQuoteLink);\n\t}", "@GET\n @Path(\"{id}\")\n @Produces(MediaType.TEXT_PLAIN)\n public String getQoute(@PathParam(\"id\") int id) {\n String quote;\n quote = quotes.get(id);\n return quote;\n }", "QuoteItem createQuoteItem();", "void setGetQuote(amdocs.iam.pd.pdwebservices.GetQuoteDocument.GetQuote getQuote);", "@Test\n public void testDAM32102002() {\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n OrderMB3ListPage orderMB3ListPage = dam3IndexPage.dam32102002Click();\n\n String expectedOrdeDetails = \"Order accepted, ITM0000001, Orange juice, CTG0000001, Drink, dummy1\";\n\n // get the details of the specified order in a single string\n String actualOrderDetails = orderMB3ListPage.getOrderDetails(1);\n\n // confirm the details of the order fetched from various tables\n assertThat(actualOrderDetails, is(expectedOrdeDetails));\n\n orderMB3ListPage.setItemCode(\"ITM0000001\");\n\n orderMB3ListPage = orderMB3ListPage.fetchRelatedEntityLazy();\n\n // Expected related entity category details\n String expRelatedEntityDet = \"CTG0000001, Drink\";\n\n String actRelatedEntityDet = orderMB3ListPage\n .getRelatedEntityCategoryDeatils(1);\n\n // confirmed realted entity details\n assertThat(actRelatedEntityDet, is(expRelatedEntityDet));\n }", "@Test\n\tpublic void Quotes_20344_execute() throws Exception {\n\t\tVoodooUtils.voodoo.log.info(\"Running \" + testName + \"...\");\n\n\t\tFieldSet customFS = testData.get(testName).get(0);\n\t\tsugar().quotes.navToListView();\n\n\t\t// Click on Advanced Search\n\t\tVoodooUtils.focusFrame(\"bwc-frame\");\n\t\tsugar().quotes.listView.getControl(\"advancedSearchLink\").click();\n\t\tVoodooUtils.waitForReady();\n\n\t\t// Conditions for the saved search\n\t\t// TODO: VOOD-975\n\t\tnew VoodooControl(\"input\", \"id\", \"name_advanced\").set(testName);\n\t\tnew VoodooControl(\"option\", \"css\", \"#assigned_user_id_advanced option:nth-child(2)\").click();\n\t\tnew VoodooControl(\"option\", \"css\", \"#quote_stage_advanced option:nth-of-type(3)\").click();\n\t\tnew VoodooControl(\"input\", \"css\", \"input[name=saved_search_name]\").set(customFS.get(\"searchName\"));\n\t\tnew VoodooControl(\"input\", \"css\", \"input[name=saved_search_submit]\").click();\n\t\tVoodooUtils.waitForReady();\n\n\t\t// Verify saved search in dropdown and records are filtered accordingly\n\t\tVoodooControl savedSearchDropdown = new VoodooControl(\"select\", \"id\", \"saved_search_select\");\n\t\tsavedSearchDropdown.assertContains(customFS.get(\"searchName\"), true);\n\t\tVoodooUtils.focusDefault();\n\t\tAssert.assertTrue(\"Quote record is not equals zero\", sugar().quotes.listView.countRows() == 0);\n\n\t\t// Verify records with default \"none\" are filtered accordingly\n\t\tsavedSearchDropdown.set(customFS.get(\"noneFilter\"));\n\t\tVoodooUtils.waitForReady();\n\t\tVoodooUtils.focusDefault();\n\t\tAssert.assertTrue(\"Quote record is not equals one\", sugar().quotes.listView.countRows() == 1);\n\n\t\tVoodooUtils.voodoo.log.info(testName + \" complete.\");\n\t}", "Quote createQuote();", "private void generateQuote() throws IOException, ParseException {\r\n int rand = (int) (Math.random() * 152 + 1);\r\n String theURL = \"http://www.nokeynoshade.party/api/queens/\" + String.valueOf(rand); //this can point to any URL\r\n URL url = new URL(theURL);\r\n br = new BufferedReader(new InputStreamReader(url.openStream()));\r\n String inputLine;\r\n while ((inputLine = br.readLine()) != null) {\r\n JSONObject object = (JSONObject) parser.parse(inputLine);\r\n String name = (String) object.get(\"name\");\r\n String quote = (String) object.get(\"quote\");\r\n System.out.println(\"\\\"\" + quote + \"\\\"\");\r\n for (int i = 0; i < quote.length() - 5; i++) {\r\n System.out.print(\" \");\r\n }\r\n System.out.println(\"-\" + name);\r\n System.out.println(\"\\n\");\r\n }\r\n }", "@Test\n public void testDAM32001001() {\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n // This call brings te order details from various tables into single entity using join\n OrderMB3ListPage orderMB3ListPage = dam3IndexPage.dam32001001Click();\n\n // Expected order details\n // the string is of the format\n // ORDER STATUS NAME, ITEM CODE, ITEM NAME, CATEGORY CODE, CATEGORY NAME, MEMO\n String expectedOrdeDetails = \"Order accepted, ITM0000001, Orange juice, CTG0000001, Drink, dummy1\";\n\n // get the details of the specified order in a single string\n String actualOrderDetails = orderMB3ListPage.getOrderDetails(1);\n\n // confirm the details of the order fetched from various tables\n assertThat(actualOrderDetails, is(expectedOrdeDetails));\n\n // confirmation for some more order details....\n\n expectedOrdeDetails = \"Stock checking, ITM0000002, NotePC, CTG0000002, PC, \";\n actualOrderDetails = orderMB3ListPage.getOrderDetails(2);\n assertThat(actualOrderDetails, is(expectedOrdeDetails));\n\n expectedOrdeDetails = \"Item Shipped, ITM0000003, Car, CTG0000003, Hot selling, dummy3\";\n actualOrderDetails = orderMB3ListPage.getOrderDetails(3);\n assertThat(actualOrderDetails, is(expectedOrdeDetails));\n\n expectedOrdeDetails = \"Order accepted, ITM0000001, Orange juice, CTG0000001, Drink, dummy4\";\n actualOrderDetails = orderMB3ListPage.getOrderDetails(4);\n assertThat(actualOrderDetails, is(expectedOrdeDetails));\n }", "amdocs.iam.pd.pdwebservices.GetQuoteDocument.GetQuote addNewGetQuote();", "public LocalQuote\t\tgetQuote();", "private void getTradeDetail() {\n\t\t\tsendData(\"<get></get>\");\n\t}", "void showOrderText(int ID) throws OrderNotFoundException;", "HtmlPage clickLink();", "static void callQuote(String key, Scanner sc) throws Exception {\n\t\tboolean quoteLoop = true;\n\t\tString selection = \"\";\n\t\t\n\t\twhile(quoteLoop) { \n\t\t\tSystem.out.println(\"1. Current stock quote\");\n\t\t\tSystem.out.println(\"2. Historic data\\n\");\n\t\t\tSystem.out.print(\"Selection: \");\n\t\t\tselection = sc.next();\n\t\t\t\n\t\t\tif(selection.matches(\"1\")) {\n\t\t\t\tclearScreen();\n\t\t\t\tSystem.out.println(\"\\n*** Current Stock Quote *** \\n\");\n\t\t\t\tSystem.out.print(\"Enter stock symbol: \");\n\t\t\t\tString symbol = sc.next().toUpperCase();\n\t\t\t\tHttpResponse<String> response = Unirest.get(\"https://yahoo-finance-low-latency.p.rapidapi.com/v6/finance/quote?symbols=\" + symbol) \n\t\t\t\t\t\t.header(\"x-rapidapi-key\", key)\n\t\t\t\t\t\t.header(\"x-rapidapi-host\", \"yahoo-finance-low-latency.p.rapidapi.com\")\n\t\t\t\t\t\t.asString();\n\t\t\t\t\t\n\t\t\t\t/* Getting objects from JSON object & JSON array */\n\t\t\t\tJSONObject obj = new JSONObject(response.getBody());\t// Get the response, store it in JSON object\n\t\t\t\tobj = new JSONObject(obj.get(\"quoteResponse\").toString());\n\t\t\t\tJSONArray arr = new JSONArray(obj.get(\"result\").toString());\n\t\t\t\tobj = new JSONObject(arr.get(0).toString());\n\t\t\t\t/* The keyset contains alot of information that can be extracted from the JSON object\n\t\t\t\t */\n\t\t\t\tSystem.out.println(\"Symbol: \" + obj.get(\"symbol\"));\n\t\t\t\tSystem.out.println(\"Percent change: \" + obj.get(\"regularMarketChangePercent\"));\n\t\t\t\tSystem.out.println(\"Open price: \" + obj.get(\"regularMarketOpen\"));\n\t\t\t\tSystem.out.println(\"Current price: \" + obj.get(\"regularMarketPrice\"));\n\t\t\t\tSystem.out.println(\"Previous close: \" + obj.get(\"regularMarketPreviousClose\"));\n\t\t\t\tSystem.out.println(\"Market Cap: \" + obj.get(\"marketCap\"));\n\t\t\t\tSystem.out.println(\"Volume: \" + obj.get(\"regularMarketVolume\"));\n\t\t\t\tSystem.out.println(\"Exchange: \" + obj.get(\"exchange\"));\n\t\t\t\tSystem.out.println(\"Shares outstanding: \" + obj.get(\"sharesOutstanding\") + \"\\n\");\n\t\t\t\t\n\t\t\t\tUnirest.shutDown();\n\t\t\t} else if(selection.matches(\"2\")) {\n\t\t\t\tclearScreen();\n\t\t\t\tSystem.out.println(\"\\n*** Historic Data *** \\n\");\n\t\t\t\tSystem.out.println(\"\\n*** Placeholder *** \\n\");\n\t\t\t}\n\t\t\tquoteLoop = false;\n\t\t}\n\t}", "public String getQuote();", "QuoteTerm createQuoteTerm();", "public String randomQuote() {//gets a random quote from the listofQuotes\r\n\t\tint randomNumber = random.nextInt(listofQuotes.size());\r\n\t\tString randomQuote = listofQuotes.get(randomNumber);\r\n\t\treturn randomQuote;\r\n\t}", "@Test\n\tpublic void Quotes_28078_execute() throws Exception {\n\t\tVoodooUtils.voodoo.log.info(\"Running \" + testName + \"...\");\n\n\t\tsugar().quotes.navToListView();\n\t\tsugar().quotes.listView.clickRecord(1);\n\n\t\tFieldSet tasksFS = new FieldSet();\n\t\ttasksFS.put(\"subject\", sugar().tasks.getDefaultData().get(\"subject\"));\n\n\t\tBWCSubpanel activitySubpanel = sugar().quotes.detailView.subpanels.get(sugar().tasks.moduleNamePlural);\n\t\tactivitySubpanel.subpanelAction(\"#formActivities\");\n\t\tsugar().tasks.createDrawer.getEditField(\"subject\").set(tasksFS.get(\"subject\"));\n\t\tsugar().tasks.createDrawer.save();\n\n\t\t// Verify created Task should be shown in the Activities subpanel.\n\t\tactivitySubpanel.verify(1, tasksFS, true);\n\n\t\tVoodooUtils.voodoo.log.info(testName + \" complete.\");\n\t}", "@Test\n public void testDAM32001002() {\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n OrderMB3PageListPage orderMB3PageListPage = dam3IndexPage\n .dam32001002Click();\n\n orderMB3PageListPage.checkITM0000001();\n\n orderMB3PageListPage = orderMB3PageListPage.clickItemCodeSearch();\n\n String expectedOrdeDetails = \"Order accepted, ITM0000001\\nITM0000002, Orange juice\\nNotePC, CTG0000001\\nCTG0000002, Drink\\nPC, dummy7\";\n\n // get the details of the specified order in a single string\n String actualOrderDetails = orderMB3PageListPage.getOrderDetails(7);\n\n assertThat(actualOrderDetails, is(expectedOrdeDetails));\n\n expectedOrdeDetails = \"Order accepted, ITM0000001, Orange juice, CTG0000001, Drink, dummy4\";\n actualOrderDetails = orderMB3PageListPage.getOrderDetails(4);\n assertThat(actualOrderDetails, is(expectedOrdeDetails));\n }", "void showOrdersText();", "@Test\n public void addsAndListsQuotes() throws Exception {\n final Base base = new DyBase(\n this.dynamo.region(), new MkSttc().counters().get(\"cnt\")\n );\n final String name = \"alpha2010\";\n final Book book = base.books().add(\n String.format(\"@book{%s, author=\\\"Jeffrey\\\" }\", name)\n );\n final Quotes quotes = base.quotes();\n quotes.add(book, \"hey, how are you doing there, JavaDude?\", \"58\");\n MatcherAssert.assertThat(\n quotes.refine(\"javadude\").iterate(),\n Matchers.<Quote>iterableWithSize(1)\n );\n final Quote quote = quotes.iterate().iterator().next();\n MatcherAssert.assertThat(\n quote.book().name(),\n Matchers.equalTo(name)\n );\n MatcherAssert.assertThat(\n quote.book().bibitem(),\n Matchers.notNullValue()\n );\n }", "String getQuoteOfTheDay();", "@GetMapping\n public List<QuoteInfo> quotes(){\n Iterable<QuoteRecord> records = quoteRepository.findAll();\n List<QuoteInfo> quotes = new ArrayList<>();\n for(QuoteRecord q: records){\n quotes.add(quotePresenter.present(q));\n }\n\n return quotes;\n }", "public void btnNewQuote(View view){\n setupTextView();\n newQuote();\n quoteTextView.setText(Variables.quote);\n }", "HtmlPage clickSiteName();", "@Test()\n\tpublic static void Homep1() {\n\t\t\n\t\tdriver= CallingChrome();\ndriver.navigate().to(\"https://www.spicejet.com/\");\n\t\t\n\n\t\t\n\t\tSystem.out.println(driver.findElement(By.xpath(\"//a[text()='Book']\")).getText());\t\n\t}", "public HtmlPage clickContentPath();", "public String getText_click_My_Rewards_Link(){\r\n\t\treturn click_My_Rewards_Link.getText();\r\n\t}", "public void ClickDescinShoppinginsight(String Linktext){\r\n\t\tString LinkText = getValue(Linktext);\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Description link should be clicked in shopping insight\");\r\n\t\ttry{\r\n\t\t\tclickbylinktext(LinkText);\r\n\t\t\tSystem.out.println(LinkText+\" is clicked in shopping insight\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- \"+LinkText+\" is clicked in shopping insight\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- \"+LinkText+\" link is not clicked in shopping insight\");\r\n\t\t\tthrow new NoSuchElementException(\"The link text with\"\r\n\t\t\t\t\t+ LinkText\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\t}", "@RequestMapping(value = \"/quote\", method = POST)\n public @ResponseBody Quote quote(@RequestBody Quote quote) {\n Double markup = VehicleHashMap.getMap().get(quote.getVehicle());\n Long price = Math.round(Math.abs((Long.valueOf(quote.getDeliveryPostcode(), 36) - Long.valueOf(quote.getPickupPostcode(), 36))/100000000) * (1 + markup));\n\n return new Quote(quote.getPickupPostcode(), quote.getDeliveryPostcode(),quote.getVehicle() ,price);\n }", "public void ClickOrderByItemLink(){\r\n\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- OrderByItem Link should be clicked\");\r\n\t\ttry{\r\n\t\t\tsleep(1000);\r\n\t\t\twaitforElementVisible(returnByValue(getValue(\"OrderbyItemLinkText\")));\r\n\t\t\tclick(returnByValue(getValue(\"OrderbyItemLinkText\")));\r\n\t\t\twaitForPageToLoad(100);\r\n\t\t\tSystem.out.println(\"OrderByItem Link is clicked\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- OrderByItem is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- OrderByItem Link is not clicked\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(getValue(\"OrderbyItemLinkText\")).toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\t}", "public abstract String linkText();", "public interface Quote {\n /**** get the image of the Author of Quote****/\n public int getImage();\n /***8 get the quote of the Author *****/\n public String getQuote();\n}", "public String getQuote(){\n\t\tString quote = null;\n\t\ttry {\n\t\t\tcrs = qb.selectFrom(\"qotd\").all().executeQuery();\n\n\t\t\tif(crs.next()) {\n\t\t\t\tquote = crs.getString(\"qotd\");\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tcrs.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn quote;\n\t}", "public void generateQuote(JPanel panel) throws IOException, ParseException {\r\n int rand = (int) (Math.random() * 152 + 1);\r\n String theURL = \"http://www.nokeynoshade.party/api/queens/\" + String.valueOf(rand); //this can point to any URL\r\n URL url = new URL(theURL);\r\n br = new BufferedReader(new InputStreamReader(url.openStream()));\r\n String inputLine;\r\n while ((inputLine = br.readLine()) != null) {\r\n parseAndPrint(panel, inputLine);\r\n }\r\n }", "@Test\n\tpublic void editBillTo(){\n\t\tQuotePage quotePage = homePage.goToDocumentsPage().switchToTab(DocumentTabs.QUOTES).setFilterByModifiedBy(\"All\").goToQuote(1);\n\n\t\tquotePage.clickBillTo();\n\t}", "public static void main(String[] args) {\n WebDriver driver = WebDriverFactory.getDriver(\"chrome\");\n driver.get(\"https://www.amazon.com/\");\n\n WebElement searchBox = driver.findElement(By.id(\"twotabsearchtextbox\"));\n searchBox.sendKeys(\"selenium cookbook\" + Keys.ENTER);\n\n WebElement searchedItem = driver.findElement(By.xpath(\"//span[.=\\\"Selenium Testing Tools Cookbook - Second Edition\\\"]\"));\n System.out.println(searchedItem.getText());\n if(searchedItem.isDisplayed()){\n System.out.println(\"pass\");\n }else{\n System.out.println(\"fail\");\n }\n\n\n\n }", "public String getQuote() {\r\n\t\tString qt = this.getName() + \" (\" + this.getSymbol() + \")\\n\" + \"Price: \" + this.getLastPrice() + \"\\t\" + \"hi: \"\r\n\t\t\t\t+ this.getHighPrice() + \"\\t\" + \"low: \" + this.getLowPrice() + \"\\t\" + \"vol: \" + this.getVol() + \"\\n\";\r\n\t\tqt += \"Ask: \";\r\n\t\tif (!buy.isEmpty()) {\r\n\t\t\tqt += buy.peek().getPrice();\r\n\t\t\tqt += \" size: \" + buy.peek().getShares();\r\n\t\t} else\r\n\t\t\tqt += \"none \";\r\n\r\n\t\tqt += \"Bid: \";\r\n\t\tif (!sell.isEmpty()) {\r\n\t\t\tqt += sell.peek().getPrice();\r\n\t\t\tqt += \"size: \" + sell.peek().getShares();\r\n\t\t} else\r\n\t\t\tqt += \"none \";\r\n\t\treturn qt;\r\n\t}", "HtmlPage clickSiteLink();", "private void scrapResultsInCurrentResultPage() {\n List<WebElement> searchResults = getSearchResults();\n\n for (int i = 0; i < searchResults.size(); i++) {\n WebElement result = searchResults.get(i);\n WebElement quoteButton = result.findElement(By.xpath(\".//a[@class='gs_or_cit gs_nph']\"));\n quoteButton.click();\n\n waitForMillis(500);\n\n WebElement bibtexLink = driver.findElement(By.xpath(\"//div[@id='gs_citi']/a[1]\"));\n waitUntilClickable(bibtexLink);\n bibtexLink.click();\n\n WebElement publicationCitationInBibtex = driver.findElement(By.xpath(\"/html/body/pre\"));\n searchResultsAsBibtex.add(publicationCitationInBibtex.getText());\n\n driver.navigate().back();\n\n WebElement quoteDialogCancelButton = driver.findElement(By.xpath(\"//*[@id=\\\"gs_cit-x\\\"]\"));\n waitUntilClickable(quoteDialogCancelButton);\n quoteDialogCancelButton.click();\n\n // Reload the reference to the DOM elements: the search results.\n searchResults = getSearchResults();\n }\n }", "public String getQuotes() {\r\n\t\treturn this.quotes;\r\n\t}", "@Test\n @When(\"I navigate to Market\")\n public void s04_MarketOpen(){\n WebElement marketLink = driver.findElementByLinkText(\"Маркет\");\n marketLink.click();\n System.out.println(\"Step04 PASSED\");\n }", "public interface InspiringQuotesWidget {\n\t/**\n\t * Returns the current quote {@link Label}.\n\t * \n\t * @return - The current quote {@link Label}.\n\t */\n\tLabel getQuoteLabel();\n\n\t/**\n\t * Returns the current author {@link Label}.\n\t * \n\t * @return - The current author {@link Label}.\n\t */\n\tLabel getAuthorLabel();\n}", "public void printQuote() throws IOException {\r\n try {\r\n generateQuote();\r\n } catch (Exception e) {\r\n System.out.println(\"Quote retrieval error: Try start up again\");\r\n e.printStackTrace();\r\n } finally {\r\n if (br != null) {\r\n br.close();\r\n }\r\n }\r\n }", "public static Quote getQuoteFromAPI(){\n try{\n URL url = new URL(\"https://ron-swanson-quotes.herokuapp.com/v2/quotes\");\n HttpURLConnection con = (HttpURLConnection) url.openConnection();\n // this line of code actually goes to the internet!\n BufferedReader reader = new BufferedReader(new InputStreamReader((con.getInputStream())));\n // get json data in response\n // use Gson to parse json string\n Gson gson = new Gson();\n String[] text = gson.fromJson(reader, String[].class);\n // Create Quote object\n Quote quote = new Quote(null, \"Ron Swanson\", null, text[0]);\n addQuoteToFile(quote);\n return quote;\n } catch(IOException e) {\n // This is where we check cached.\n return getQuoteFromFile();\n }\n }", "public GetQuotePage(WebDriver driver, ExtentTest report) {\n\t\tthis.driver = driver;\n\t\tthis.extentedReport = report;\n\t\tPageFactory.initElements(driver, this);\n\t}", "public String getPageText();", "@Test\n public void ebayTestSearchResults() throws Exception {\n driver.findElement(By.id(\"gh-ac\")).sendKeys(\"java book\");\n driver.findElement(By.id(\"gh-btn\")).click();\n\n Thread.sleep(4000);\n\n WebElement searchResults = driver.findElement(By.tagName(\"h1\"));\n //21,761 results for java book\n String resultActual = searchResults.getText();\n System.out.println(resultActual);\n }", "@Test \n\tpublic void homePageHeaderTest() {\n\t\tHomePage homePage = new HomePage(driver);\n\t\thomePage.OpenPage();\n\n\t\t// Validate page header \n\t\tString header = homePage.getHeader();\n\t\tAssert.assertTrue(header.equals(\"\"));\n\n\t\t// Fetch latin quote: \n\t\tString latinQuote = homePage.getQuote(\"latin\");\n\t\tAssert.assertEquals(\"\\\"Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit...\\\"\", latinQuote);\n\n\t\t// Fetch english quote, which is: \n\t\tString englishQuote = homePage.getQuote(\"english\"); \n\t\tAssert.assertEquals(\"\\\"There is no one who loves pain itself, who seeks after it and wants to have it, simply because it is pain...\\\"\",englishQuote); \n\t}", "public void I_Should_click_My_Account_link(){\n\t MyAccountLink.click();\n\t \n}", "public PolicyBinderPage copyToQuoteFromActionDropDownForQA() {\r\n sleep(2000);\r\n String getPolicyNo = policyNo();\r\n ExtentReporter.logger.log(LogStatus.INFO,\r\n \"Click Policy Actions>Copy to Quote. Verify Policy folder shows a new number, Phase show Submission.\");\r\n selectDropdownByValue(driver, policyAction, policybinderpageDTO.valueOfPolicyActionCopyToQuote,\r\n \"Policy Action\");\r\n sleep(8000);\r\n invisibilityOfLoader(driver);\r\n captureTransactionDetailsWithExitOkButton(getPolicyNo);\r\n\r\n return new PolicyBinderPage(driver);\r\n }", "public void onQuote(Quote event) {\n quoteCount++;\n }", "public Quote(String ticker, String idfinam) {\n this.ticker = ticker;\n this.idfinam = idfinam;\n }", "public java.lang.Object getQuoteID() {\n return quoteID;\n }", "public String getTextOnElementOnCheckoutOrderPage(String key){\n\t\t\n\t\treturn getTextOnElement(checkoutOrderPropertiesReader.getProperties(key));\n\t}", "@Test\n public void clickFaqLink() {\n homePage.clickAboutLink().clickFaqLink();\n }", "public void enterTextOnElementOnCheckoutOrderPage(String key, String text){\n\t\n\t\tenterTextOnElement(checkoutOrderPropertiesReader.getProperties(key), text);\t\t\n\t}", "public void clickOrderHistoryLink()\n\t{\n \telementUtils.performElementClick(wbOrderHistoryLink);\n\t}", "public void myorders() {\n\t\t\t\r\n\t\t\t\r\n\t\tBy my=By.xpath(\"//a[@href='/my/orders/create?form']\");\r\n\t\tWebElement We_my=wt.ElementToBeClickable(my, 20);\r\n\t\tWe_my.click();\r\n\t\t}", "public interface WikiQuoteService {\n\n /**\n * Requests for suggested pages, matching the given query.\n * @param search the search query\n * @return the server response, in form of JSON\n */\n @GET(\"w/api.php?action=opensearch&format=json&suggest&redirects=resolve\")\n Call<JsonElement> getSuggestionsFromSearch(@Query(\"search\") String search);\n\n /**\n * Requests for a page having the given title.\n * @param titles the title of the page\n * @return the server response, in form of JSON\n */\n @GET(\"w/api.php?action=query&format=json&redirects\")\n Call<JsonElement> getPageFromTitle(@Query(\"titles\") String titles);\n\n /**\n * Requests for the table of content of the page having the given id.\n * @param pageid the id of the page\n * @return the server response, in form of JSON\n */\n @GET(\"w/api.php?action=parse&format=json&prop=sections\")\n Call<JsonElement> getTocFromPage(@Query(\"pageid\") long pageid);\n\n /**\n * Requests for a specific section of the page having the given id.\n * @param pageid the id of the page\n * @param section the id of the section\n * @return the server response, in form of JSON\n */\n @GET(\"w/api.php?action=parse&format=json&noimage\")\n Call<JsonElement> getSectionFrom(@Query(\"pageid\") long pageid,@Query(\"section\") long section);\n}", "public String verifyUserOnWomenPage(){\n WebElement womenPage = driver.findElement(By.cssSelector(\"div[class='breadcrumb clearfix'] a[title='Dresses']\"));\n String womenPageStatus = womenPage.getText();\n return womenPageStatus;\n }", "public void getQuote(String symbol)\r\n {\r\n brokerage.getQuote(symbol, this);\r\n }", "public String getCartDetailonProductDetailPage()\n\t{\n\t\twaitForVisibility(cartDetailonProductDetailPage);\n\t\treturn cartDetailonProductDetailPage.getText();\n\t}", "static String qaCard(QA qa) {\n return \"\"\"\n <div class=\"card\">\n <label class=\"label\">\n \"\"\"\n + StringEscapeUtils.escapeHtml3(qa.getQuestion()) +\n \"\"\"\n </label>\n <p>\n \"\"\"\n + StringEscapeUtils.escapeHtml3(qa.getAnswer()) +\n \"\"\"\n </p>\n <p class=\"date\">\n \"\"\" + qa.getAnswerTime() + \"\"\"\n </p>\n </div>\n \"\"\";\n }", "public void setQuoteID(java.lang.Object quoteID) {\n this.quoteID = quoteID;\n }", "@Test\n\t public void quote() throws InterruptedException {\n\t\t List <WebElement> option = driver.findElement(By.id(\"tree_menu\")).findElements(By.className(\" close\"));\n\t\t System.out.println(\"The left pane has '\" + option.size() + \"' Options\");\n\t\t System.out.println(\"The option selected is:\" + option.get(5).getText());\n\t\t option.get(5).findElement(By.tagName(\"span\")).click();\n\t\t System.out.println(\"Click on the '\" + driver.findElement(By.id(\"quoteupload\")).getText() + \"' Link\" );\n\t\t driver.findElement(By.id(\"quoteupload\")).click();\n\t\t \n\t\t //Verifying whether the required page is loaded or not\n\t\t System.out.println(\"Page loaded is:\" + driver.findElement(By.id(\"container\")).findElement(By.tagName(\"h1\")).getText());\n\t\t \n\t\t if(driver.findElement(By.id(\"example_info\")).getText().equals(\"Showing 0 to 0 of 0 entries\"))\n\t\t\t System.out.println(driver.findElement(By.className(\"dataTables_empty\")).getText());\n\t\t \n\t\t else {\n\t\t\t //Verifying no.of leads in the page\n\t\t\t List <WebElement> leads = driver.findElement(By.id(\"example\")).findElement(By.tagName(\"tbody\")).findElements(By.tagName(\"tr\"));\n\t\t\t System.out.println(\"No. of leads in the Lead Edit Table:\" + leads.size());\n\t\t\t \n\t\t\t //Checking for the upload button for each lead\n\t\t\t int upload=0;\n\t\t\t for(int i=0; i<leads.size(); i++) {\n\t\t\t\tif(leads.get(i).findElement(By.className(\"upload\")).isEnabled()) {\n\t\t\t\t upload++;\n\t\t\t\t}\t \n\t\t\t }\n\t\t\t if(upload==leads.size()) \n\t\t\t\t System.out.println(\"Upload button is enabled for all \" + upload + \" leads.\");\n\t\t \n\t\t\t //Clicking on Upload button of a Lead opens a Quote Upload Page\n\t\t\t Random r = new Random();\n\t\t\t int opt = r.nextInt(leads.size());\n\t\t\t leads.get(opt).findElement(By.className(\"upload\")).click();\n\t\t\t sleep(5);\n\t\t\t System.out.println(driver.findElement(By.cssSelector(\"span.ui-dialog-title\")).getText());\n\t\t\t \n\t\t\t //Entering details to the fields in Quote Upload page\n\t\t\t driver.findElement(By.name(\"quotename\")).sendKeys(\"Quote Name\");\n\t\t\t driver.findElement(By.id(\"button\")).click();\n\t\t\t driver.findElement(By.name(\"quotedescription\")).sendKeys(\"Quote Description\");\n\t\t\t driver.findElement(By.id(\"button\")).click();\n\t\t\t driver.findElement(By.name(\"quote\")).sendKeys(\"E:\\\\abc2.txt\");\n\t\t\t \n\t\t\t //driver.findElement(By.id(\"button\")).click();\n\t\t\t Thread.sleep(4000);\n\t\t\t //Verifying the Success message displayed on the page after uploading the Proposal\n\t\t\t //System.out.println(driver.findElement(By.id(\"result_msg_div\")).findElement(By.className(\"success_msg\")).getText());\n\t\t\t \n\t\t\t //Closing the Quote Upload page\n\t\t\t driver.findElement(By.cssSelector(\"span.ui-button-icon-primary.ui-icon.ui-icon-closethick\")).click();\n\t\t\t \n\t\t\t sleep(3);\n\t\t\t//Collapsing Quote Uploads option\n\t\t\t driver.findElement(By.id(\"tree_menu\")).findElement(By.className(\" open\")).findElement(By.className(\" symbol-open\")).click();\n\t\t }\n\t\t \n\t }", "public String getAmountOrderDetailPage()\n\t{\n\t\twaitForVisibility(amountOnDetailPage);\n\t\treturn amountOnDetailPage.getText();\n\t}", "public static String randomQuote() {\n\t\tint i = (int) (Math.random() * quotes.length);\n\t\treturn quotes[i];\n\t}", "public interface QuoteService {\n\n /**\n * Get quote of the day.\n *\n * @return quote\n */\n String getQuoteOfTheDay();\n}", "private void commonLoadTestForHtml(){\n\t\tWebElement tree = getElement(\"id=tree\");\n\t\tlog(\"Found Element for id=tree \" + tree.toString());\n\n\t\t//Make sure News attributes are correct\n\t\tWebElement news = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#news']['title']\\\"}\");\n\t\tAssert.assertNotNull(news);\n\t\tnews.click();\n\n\t\tString content = getText(RESULTS_CONTAINER);\n\t\tlog(\"content\"+content);\n waitForText(RESULTS_CONTAINER, \"id=news\");\n\n\n\t\t// Finds the blogs node and make sure its not null\n\t\twaitForElementVisible(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#blogs']['disclosure']\\\"}\");\n\t\tWebElement blogs = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#blogs']['disclosure']\\\"}\");\n\n\t\tlog(\"Node: \" + blogs);\n\n\t\tAssert.assertNotNull(blogs);\n\n\t\tblogs.click(); // This should expand the node blogs\n\n\t\t//Find the children of blogs node: Today\n\t\tWebElement today = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#today']['title']\\\"}\");\n\n\t\t//Find the children of blogs node: Previous\n\t\tWebElement previous = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#prev']['title']\\\"}\");\n\n\t\tWebElement previousDiscIcon = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#prev']['disclosure']\\\"}\");\n\n\t\tAssert.assertNotNull(previousDiscIcon);\n\n\t\t//Click on Previous Node\n\t\twaitForElementVisible(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#prev']['disclosure']\\\"}\");\n\t\tpreviousDiscIcon.click();\n\n\t\t//Find the children of previous node: Yesterday\n\t\tWebElement yesterday = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#yesterday']['title']\\\"}\");\n\n\t\t//Find the children of previous node: 2DaysBack\n\t\tWebElement twodaysback = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#daysback2']['title']\\\"}\");\n\n\n\n\n\t}", "@Step\n\tpublic void getQuoteTitle(String toverify) {\n\t\tlog.info(\"get the quote Title \" + quoteTable.getIntro());\n\t\tlog.info(\"And we want it to be \" + toverify);\n\t\tassertThat(quoteTable.getIntro(), equalToIgnoringCase(toverify));\n\t}", "public void saveQuote() {\n\t\ttry {\n\t\t\tString json = urlRead.readUrl(\"http://dist-sso.it-kartellet.dk/quote/\");\n\n\t\t\tJSONParser jsonParser = new JSONParser();\n\t\t\tJSONObject jsonObject = (JSONObject) jsonParser.parse(json);\n\n\t\t\tString quote = (String) jsonObject.get(\"quote\");\n\t\t\tquote = quote.replace(\"'\", \"''\");\n\n\t\t\tString[] fields = {\"qotd\"};\n\t\t\tString[] values = {quote};\n\n\t\t\tif(qb.selectFrom(\"qotd\").all().executeQuery().next()){\n\t\t\t\tqb.update(\"qotd\", fields, values).where(\"msg_type\", \"=\", \"qotd\").execute();\n\t\t\t} else {\n\t\t\t\tqb.insertInto(\"qotd\", fields).values(values).execute();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void Clickarrow(String Exptext){\r\n\t\tString countryy=\"France\";\r\n\t\tString[] ExpText = getValue(Exptext).split(\",\", 2);\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Arrow should be clicked in Customer also Ordered table\");\r\n\t\ttry{\r\n\t\t\tif(countryy.contains(countries.get(countrycount))){\r\n\t\t\t\tif(Exptext.contains(\"Ordered\")){\r\n\t\t\t\t\tclick(locator_split(\"arrowCustomeralsoOrderedcss\"));\r\n\t\t\t\t\tSystem.out.println(\"Arrow is clicked\");\r\n\t\t\t\t\tReporter.log(\"PASS_MESSAGE:- Arrow is clicked in Customer also Ordered table\");\r\n\t\t\t\t}else{\r\n\t\t\t\t\tclick(locator_split(\"arrowCustomeralsoViewedcss\"));\r\n\t\t\t\t\tSystem.out.println(\"Arrow is clicked\");\r\n\t\t\t\t\tReporter.log(\"PASS_MESSAGE:- Arrow is clicked in Customer also Ordered table\");\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\r\n\t\t\t\tclickSpecificElement(locator_split(\"arrowCustomeralsoOrdered\"), Integer.valueOf(ExpText[0]));\r\n\t\t\t\tSystem.out.println(\"Arrow is clicked\");\r\n\t\t\t\tReporter.log(\"PASS_MESSAGE:- Arrow is clicked in Customer also Ordered table\");\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tcatch(NoSuchElementException e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Arrow is not clicked\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"arrowCustomeralsoOrdered\").toString()\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\r\n\t}", "@Override\r\n public void onStart() {\n System.out.println(\"Get Bill Details \");\r\n System.out.println(\"Get Bill Details URL \"+jobDecrypt(context.getString(R.string.url_inquire)));\r\n }", "public static void main(String[] args) {\n\r\n\t\tWebDriver driver = new ChromeDriver();\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\r\n//\t\tWebDriverWait wait = new WebDriverWait(driver,30);\r\n\t\tdriver.get(\"http://demowebshop.tricentis.com\");\r\n\t\tActions act = new Actions(driver);\r\n \tact.moveToElement(driver.findElement(By.xpath(\"/html/body/div[4]/div[1]/div[2]/ul[1]/li[2]/a\"))).perform();\r\n\t\tdriver.findElement(By.xpath(\"/html/body/div[4]/div[1]/div[2]/ul[1]/li[2]/ul/li[3]/a\")).click();\r\n//\t\tact.contextClick(driver.findElement(By.linkText(\"Request a demo\"))).perform();\r\n\t\tdriver.close();\r\n\t\tSystem.out.println(\"As Expected\");\r\n\t}", "public void gotoDetailSalesOrder() {\n\t}", "@Override\n protected void extractChapText(Chapter chapter) {\n StringBuilder chapterText = new StringBuilder();\n\n Elements content = chapter.rawHtml.select(chapTextSelector);\n Iterator<Element> iterator = content.iterator();\n while (iterator.hasNext()) {\n chapterText.append(iterator.next().html());\n if (iterator.hasNext()) chapterText.append(\"<hr />\");\n }\n chapter.contentFromString(chapterText.toString().replace(\"blockquote\", \"div\"));\n }", "QuoteNote createQuoteNote();", "public void clickOnElementOfCheckoutOrderPage(String key){\n\t\t\n\t\tclickOnElement(checkoutOrderPropertiesReader.getProperties(key));\t\t\n\t}", "@Test(groups = \"suite1-1\")\n\tpublic void browseItems() {\n\n\t\tWebElement treasuryLink = driver.findElement(By\n\t\t\t\t.linkText(TREASURY_LINK_TEXT));\n\t\ttreasuryLink.click();\n\n\t\tWebDriverWait wait = new WebDriverWait(driver, 10);\n\n\t\t// Find the button to do the search inside treasury objects\n\t\tWebElement searchButton = wait\n\t\t\t\t.until(ExpectedConditions.elementToBeClickable(By\n\t\t\t\t\t\t.xpath(\"/HTML/BODY/DIV[@id=\\\"content\\\"]/DIV[2]/DIV[@id=\\\"listings-header\\\"]/FORM/SPAN/SPAN/INPUT\")));\n\n\t\t// Find the text input field to do the search\n\t\tWebElement searchField = driver\n\t\t\t\t.findElement(By\n\t\t\t\t\t\t.xpath(\"/HTML/BODY/DIV[@id=\\\"content\\\"]/DIV[2]/DIV[@id=\\\"listings-header\\\"]/FORM/INPUT[@name=\\\"search_query\\\"]\"));\n\t\t// Search key\n\t\tsearchField.sendKeys(\"bag\");\n\n\t\tsearchButton.click();\n\n\t\tWebElement numResults = driver.findElement(By\n\t\t\t\t.xpath(\"/HTML/BODY/DIV[@id=\\\"content\\\"]/DIV[1]/H1\"));\n\n\t\tassertNotEquals(numResults.getText().trim().substring(0, 1), \"0\",\n\t\t\t\t\"Results expected for given key\");\n\n\t\tWebElement gallery = wait\n\t\t\t\t.until(ExpectedConditions.elementToBeClickable(By\n\t\t\t\t\t\t.xpath(\"/HTML/BODY/DIV[@id=\\\"content\\\"]/DIV[2]/DIV[2]/UL/LI[1]/DIV[4]/A[1]/IMG\")));\n\t\t// Click should be done without errors\n\t\tgallery.click();\n\n\t}", "@Test\n public void test008() {\n List<HashMap<String, ?>> address = response.extract().path(\"data.findAll{it.name=='Maplewood'}.address\");\n\n System.out.println(\"------------------StartingTest---------------------------\");\n System.out.println(\"The address for store name is Maplewood:\" + address);\n System.out.println(\"------------------End of Test---------------------------\");\n }", "public Integer getQuoteId() {\n\t\treturn quoteId;\n\t}", "@Test(expected = SymbolNotFoundException.class)\n public void getNullQuote() throws Exception {\n quoteService.getQuote(TestConfiguration.NULL_QUOTE_SYMBOL);\n }", "public String getText_click_Fuel_Rewards_Link(){\r\n\t\treturn click_Fuel_Rewards_Link.getText();\r\n\t}", "public String getCurrentUserQuote() {\n\t\tString quote = currentUser.getQuote();\n\t\tif (quote == null)\n\t\t\treturn \"Hello! I'm using AppChat\";\n\t\treturn quote;\n\t}", "@Override\n\tprotected void testForOpenSingleQuotes() {\n\t}", "public String clickLink(int _index) {\n String item_ = getItems().get(_index).getName();\n return tryRedirectIt(item_);\n// getForms().put(CST_ITEM, item_);\n// Item it_ = data_.getItem(item_);\n// return switchItem(it_);\n }", "@Test\n public void test13() {\n List<String> name = response.extract().path(\"data.findAll{it.state=='MN'}.name\");\n System.out.println(\"------------------StartingTest---------------------------\");\n System.out.println(\"The store names where state is MN are :: \" + name);\n System.out.println(\"------------------End of Test---------------------------\");\n }", "private void populate(Quote quote) {\n PublicUser user = new UserDBManager(QuoteListAdapter.this.context).loadSQLite(quote.getUserId());\n\n if (user != null) {\n this.txtUserPseudo.setText(user.getPseudo());\n } else {\n this.txtUserPseudo.setText(R.string.not_communicated);\n }\n\n this.txtQuote.setText(quote.getQuote());\n }", "@Test\n\tpublic void jobPage() {\n\t\tWebElement jobLink = getDriver().findElement(By.linkText(\"Jobs\"));\n\t\tjobLink.click();\n\t\tWebElement header = getDriver().findElement(By.cssSelector(\"header>h1\"));\n\t\tString headerText = header.getText();\n\t\tAssert.assertEquals(\"Jobs\", headerText, \"Assert Header Text\");\n\n\t}", "public void recordOpeningQuote(Quote openingQuote_, MarketDataSession marketDataSession_);", "public static void main(String[] args) {\n\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\n\t\t\t\t\"C:\\\\Users\\\\Harmanpreet Singh\\\\Desktop\\\\SELENIUM WorkSPace\\\\chromedriver.exe\");\n\t\tWebDriver driver = new ChromeDriver();\n\t\tdriver.get(\"https://www.amazon.ca/\");\n\t\tSystem.out.println(driver.getTitle());\n\t\tSystem.out.println(driver.getPageSource());\n\t\tSystem.out.println(driver.findElement(By.xpath(\"//span[@id='glow-ingress-line2']\")).getText());\n\t\tdriver.navigate().back();\n\t\tdriver.navigate().forward();\n\t\tdriver.navigate().refresh();\n\t\tdriver.close();\n\t\n\t}", "QuotePackage getQuotePackage();", "public String getBuyLink() {\n return buyLink;\n }" ]
[ "0.62229633", "0.60400265", "0.5856439", "0.5819526", "0.56423277", "0.5594156", "0.5534036", "0.5516549", "0.5484051", "0.54229385", "0.5419931", "0.5409833", "0.53233194", "0.53034294", "0.5291427", "0.5238269", "0.5207404", "0.5180929", "0.5165642", "0.5136055", "0.51290125", "0.51197493", "0.50906676", "0.5085731", "0.5085092", "0.50820106", "0.50740564", "0.5070869", "0.50618845", "0.5061658", "0.50399673", "0.50364107", "0.5017627", "0.50103706", "0.4969908", "0.49637866", "0.4954527", "0.49509785", "0.49481162", "0.4943676", "0.49385658", "0.49242145", "0.49092343", "0.490639", "0.49036065", "0.4895973", "0.48809683", "0.48674008", "0.4852709", "0.48256207", "0.48189604", "0.48139587", "0.48114082", "0.48107955", "0.47790194", "0.47789088", "0.47646937", "0.47618887", "0.47492567", "0.47422364", "0.47400656", "0.4736101", "0.4726842", "0.47258103", "0.47232783", "0.47197467", "0.47003803", "0.46994603", "0.46987993", "0.46741426", "0.46663406", "0.46605644", "0.46571535", "0.46554112", "0.46428353", "0.46416962", "0.46415737", "0.4641346", "0.4635738", "0.46326992", "0.46286777", "0.46265846", "0.4607249", "0.4606503", "0.46061614", "0.45981446", "0.45974362", "0.45820528", "0.45627487", "0.4558334", "0.45539477", "0.45526782", "0.4551676", "0.45422783", "0.45374668", "0.45363206", "0.45285332", "0.4526877", "0.4523599", "0.4514274" ]
0.5997174
2
HomeMembershipBoilerCoverHomeEmergencyAA: with default state. .title : Home Membership | Boiler Cover | Home Emergency | AA .class : Html.HtmlDocument .url : RegularExpression(homemembership)
protected DocumentTestObject homeMembership() { return new DocumentTestObject( getMappedTestObject("homeMembership")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getOssHomepage();", "void setOssHomepage(String ossHomepage);", "protected String getHomePageTitle() { \n return null; \n }", "public void userIsOnHomePage(){\n\n assertURL(\"\\\"https://demo.nopcommerce.com/\\\" \");\n }", "public HomeSection enterUrl(){\r\n\t\tGlobal.driver.get(CONSTANT.proUrl);\r\n\t\treturn new HomeSection();\r\n\t}", "public static void leechBBC(Hdict dict)\r\n {\r\n WebDriver driver = new ChromeDriver();\r\n \r\n String baseUrl = \"https://www.bbc.com/\";\r\n driver.get(baseUrl);\r\n \r\n List<WebElement> links = driver.findElements(By.tagName(\"a\"));\r\n \r\n System.out.println(\"There is a total of \" + links.size() + \" frong page news detected on BBC\");\r\n \r\n Hdict titleDicts = new Hdict();\r\n \r\n for(int i = 0; i < links.size(); i++)\r\n {\r\n //get href links\r\n String url = links.get(i).getAttribute(\"href\");\r\n \r\n Words hUrl = new Words(url, 0);\r\n if(titleDicts.hdict_lookup(hUrl) != null) // if this page is already parsed\r\n {\r\n continue;\r\n }\r\n \r\n //if the page is not parsed\r\n titleDicts.hdict_insert(hUrl);\r\n \r\n String urlname = \"https://www.bbc.com/news/\";\r\n \r\n String[] news = url.split(urlname);\r\n if(news.length > 1 && news[1].length() > 10) // if it is .html and has some other shish, shit solution but works\r\n {\r\n //WebDriver driver1 = new ChromeDriver();\r\n //driver1.get(url);\r\n \r\n String[] temp1 = news[1].split(\"-\");\r\n \r\n try{ // if the serial is not attached\r\n Integer.parseInt(temp1[temp1.length-1]);\r\n }\r\n catch(Exception e){ continue; };\r\n \r\n if(temp1.length < 2) // if it is not even a topic\r\n continue;\r\n \r\n //nytimes doesn't have viewers count, so default 2500 effectiveness on all posts\r\n \r\n int reactions = NYTIME_AVG;\r\n \r\n String directory = news[1];\r\n \r\n directory = directory.split(\".html\")[0]; // removes file name and directory\r\n String[] temp = directory.split(\"/\");\r\n String title = temp[temp.length-2]; // get file name, more concise, skip last for CNN, last is index\r\n String[] keys = title.split(\"-\");\r\n \r\n for(String key : keys)\r\n {\r\n if(key.contains(\".html\")) continue; // useless stuff\r\n \r\n boolean integercheck = true;\r\n try{\r\n Integer.parseInt(key);\r\n } catch(Exception e) \r\n {\r\n integercheck = false;\r\n };\r\n if(integercheck) continue; // useless numbers\r\n \r\n if(Arrays.binarySearch(JUNK_WORDS, key) >= 0) continue; // useless words\r\n \r\n Words wkey = new Words(key, reactions * BBC_WORTH);\r\n Words wkey_old = dict.hdict_lookup(wkey);\r\n if(wkey_old == null) dict.hdict_insert(wkey);\r\n else\r\n {\r\n wkey.setPopularity(wkey.getPopularity() + wkey_old.getPopularity());\r\n dict.hdict_insert(wkey);\r\n }\r\n }\r\n }\r\n }\r\n //close Chrome\r\n driver.close();\r\n }", "@Test\n public void verifyTitleOfHomePageTest()\n {\n\t \n\t String abc=homepage.validateHomePageTitle();\n\t Assert.assertEquals(\"THIS IS DEMO SITE FOR \",abc );\n }", "@RequestMapping(value = { \"/broadband-user\", \"/broadband-user/login\" })\n\tpublic String userHome(Model model) {\n\t\tmodel.addAttribute(\"title\", \"CyberPark Broadband Manager System\");\n\t\treturn \"broadband-user/login\";\n\t}", "@Test \n\tpublic void homePageTitleTest() {\n\t\tHomePage homePage = new HomePage(driver);\n\t\thomePage.OpenPage();\n\t\t\n\t\t//Fetch title \n\t\tString title = homePage.getTitle();\n\t\t\n\t\t//Assert title content \n\t\tAssert.assertTrue(title.equals(\"Lorem Ipsum - All the facts - Lipsum generator\"));\n\t}", "HtmlPage clickSiteName();", "@Override\n\tpublic boolean shouldVisit(Page page, WebURL url) {\n\t\tString href = url.getURL().toLowerCase();\n\t\treturn !FILTERS.matcher(href).matches()\n\t\t\t\t&& (href.startsWith(\"http://www.amarujala.com/education\"));\n\t\t\t\t/*\n\t\t\t\t|| href.startsWith(\"http://www.amarujala.com/crime\"));\n\t\t\t\t*/\n\t}", "@Given(\"^user is on home page of website$\")\n public void userIsOnHomePageOfWebsite() {\n\n }", "public String homepage() {\n return this.home;\n }", "public void angelHomePage()\r\n\t{\r\n\t\tResultUtil.report(\"INFO\", \"AngelHomePage > angelHomePage\", driver);\r\n\t\tswitchFrameToAngelContent();\r\n\t\tif(Element.verify(\"Logged in Message\", driver, \"XPATH\", \"//span[@class='pageTitleSpan' and text()='Home']\"))\r\n\t\t{\r\n\t\t\tResultUtil.report(\"PASS\", \"Successfully logged in\", driver);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tResultUtil.report(\"FAIL\", \"Login failed\", driver);\r\n\t\t}\t\t\r\n\t}", "private void homeTitles() {\n String udata = \"B U I L D M A N\";\n SpannableString content = new SpannableString(udata);\n content.setSpan(new UnderlineSpan(), 0, udata.length(), 0);\n mBuilder_txv.setText(content);\n }", "public String getHomePageUrl()\n\t{\n\t\treturn elementUtils.getWebPageUrl();\n\t}", "@Test(priority = 1)\r\n\tpublic void testHomePage() {\r\n\t\tdriver.navigate().to(HomePage.URL);\r\n\t\tdriver.manage().window().maximize();\r\n\r\n\t\tWebDriverWait wait = new WebDriverWait(driver, 10);\r\n\t\tHomePage.clickAnnouncementButton(driver);\r\n\t\tHomePage.clickCookiesButton(driver);\r\n\r\n\t\tHomePage.clickLogin(driver);\r\n\r\n\t\tString currentUrl = driver.getCurrentUrl();\r\n\t\tString expectedUrl = \"https://www.humanity.com/app/\";\r\n\t\tSoftAssert sa = new SoftAssert();\r\n\t\tsa.assertEquals(currentUrl, expectedUrl);\r\n\t\tsa.assertAll();\r\n\t}", "public void clickOnHome() {\n\t\twait.waitForStableDom(250);\n\t\tisElementDisplayed(\"link_home\");\n\t\twait.waitForElementToBeClickable(element(\"link_home\"));\n\t\texecuteJavascript(\"document.getElementById('doctor-home').getElementsByTagName('i')[0].click();\");\n//\t\t element(\"link_home\").click();\n\t\tlogMessage(\"user clicks on Home\");\n\t}", "@Test()\n\tpublic static void Homep1() {\n\t\t\n\t\tdriver= CallingChrome();\ndriver.navigate().to(\"https://www.spicejet.com/\");\n\t\t\n\n\t\t\n\t\tSystem.out.println(driver.findElement(By.xpath(\"//a[text()='Book']\")).getText());\t\n\t}", "@TestCaseId( id = 1 )\n\t@Steps ( steps = {\n\t\t\t@Step( number = 1, description = \"WHEN user navigates to main page\",\n\t\t\t\t expectedResults = {\n\t\t\t\t\t\t\"THEN url matches the current locale and environment\",\n\t\t\t\t\t\t\"AND the site title, matches the locale defined title\",\n\t\t\t\t })\n\t})\n\t@Test ( description = \"Testing the Locale Common Header Branding initial state and functionality\",\n\t\t\tenabled = true,\n\t\t\tgroups = { \"US\", \"UK\", \"AU\" }\n\t)\n\tpublic void homePage_InitialState_Title_And_Url( ITestContext testContext ) throws Exception\n\t{\n\t\t//logger.info( \"Starting executing method < '{}' > for < '{}' >\", testContext.getName(), testContext.getIncludedGroups() );\n\n\t\tPreConditions.checkNotNull( this.homePage, \"Home page is null, before starting test\" );\n\n\t\t/* THEN url matches the current locale and environment */\n\n\t\tfinal String REASON1 = \"Asserting home page url based locale and environment\";\n\t\tfinal Matcher<String> EXPECTED_URL = JMatchers.is( SiteSessionManager.get().getBaseUrl().toExternalForm() );\n\t\tfinal String ACTUAL_URL = homePage.getCurrentUrl();\n\t\tSiteSessionManager.get().createCheckPoint( \"VALIDATE_URL\" ).assertThat( REASON1, ACTUAL_URL, EXPECTED_URL );\n\n\t\t/* AND the site title, matches the locale */\n\n\t\tfinal String REASON2 = \"Asserting home page title match the locale defined title\";\n\t\t//final Matcher<String> EXPECTED_TITLE = JMatchers.is( ( String ) SiteProperty.HOME_PAGE_TITLE.fromContext() );\n\t\t//final String ACTUAL_TITLE = homePage.getTitle();\n\t\t//SiteSessionManager.get().createCheckPoint( \"VALIDATE_TITLE\" ).assertThat( REASON2, ACTUAL_TITLE, EXPECTED_TITLE );\n\n\t\tSiteSessionManager.get().assertAllCheckpoints();\n\n\t}", "@When(\"^Click on Compose hyperlink icon$\")\npublic void click_on_Compose_hyperlink_icon() throws Throwable \n{\n\tWebElement p=driver.findElement(By.partialLinkText(\"Compose\"));\n p.click();\n System.out.println(\"Page title after link click : \" + driver.getTitle());\n \n\n\n}", "@When(\"I am on Home page\")\n public void homepage_i_am_on_home_page() {\n homePage = new HomePage(driver);\n homePage.check_page_title();\n }", "@Test\n\t@When(\"^I click on home_button$\")\n\tpublic void b_i_click_on_home_button() {\n\t\t\n\t\n\n\t\t driver.findElement(By.xpath(\"//*[contains(text(),'Home')]\")).click();\n\t}", "public String extractHomeView() {\n return (new StringBuilder()\n .append(\"<a href=\\\"/products/details/\" + this.getId() + \"\\\" class=\\\"col-md-2\\\">\")\n .append(\"<div class=\\\"product p-1 chushka-bg-color rounded-top rounded-bottom\\\">\")\n .append(\"<h5 class=\\\"text-center mt-3\\\">\" + this.getName() + \"</h5>\")\n .append(\"<hr class=\\\"hr-1 bg-white\\\"/>\")\n .append(\"<p class=\\\"text-white text-center\\\">\")\n .append(this.getDescription())\n .append(\"</p>\")\n .append(\"<hr class=\\\"hr-1 bg-white\\\"/>\")\n .append(\"<h6 class=\\\"text-center text-white mb-3\\\">$\" + this.getPrice() + \"</h6>\")\n .append(\"</div>\")\n .append(\"</a>\")\n ).toString();\n }", "public String getHomePage() {\r\n return this.homePage;\r\n }", "@Given(\"I am on Magalu HomePage\")\n\tpublic void i_am_on_the_homepage() {\n\t\tdriver.get(Homeurl);\n\t}", "public interface HomePageConstants {\r\n\tpublic static final String MYTASKS=\"html/body/div[1]/div[1]/div/div[2]/ul[1]/li[2]/a\";\r\n}", "public void setHomePage(String homePage) {\r\n this.homePage = homePage.trim();\r\n }", "@Override\r\n public boolean shouldVisit(WebURL url) {\r\n String href = url.getURL().toLowerCase();\r\n return !FILTERS.matcher(href).matches() && href.startsWith(\"http://fksis.bsuir.by/\");\r\n// \"http://www.ics.uci.edu/\");\r\n }", "private void buildBS60Url() {\n url = \"http://q.lizone.net/index/index/BSline/res/60/label/\" + dataItem.label;//API 2.0\n }", "public void verifyUserIsOnHomepage()\n {\n asserttextmessage(getTextFromElement(_welcomeTileText),expected,\"user on home page\");\n\n }", "public String getHomePageTitle()\n\t{\n\t\treturn elementUtils.getWebPageTitle();\n\t}", "boolean hasHasInstitutionHomePage();", "public Home clickonHome()\n\t{\n\t\tdriver.findElement(By.xpath(home_xpath)).click();\n\t\treturn new Home(driver);\n\t}", "public interface Constants {\n String LIEPIN_HOST =\"https://h.liepin.com\";\n String SEARCH_URL =\"https://h.liepin.com/cvsearch/soResume/\";\n //String WORK_EXPERIENCE_URL =\"https://h.liepin.com/resume/showresumedetail/showresumeworkexps/\";\n String WORK_EXPERIENCE_URL =\"https://h.liepin.com/resume/showresumedetail/showworkexps/\";\n String ANCHOR_TAG =\"<div class=\\\"resume-work\\\" id=\\\"workexp_anchor\\\">\";\n String GET_METHOD =\"GET\";\n String POST_METHOD =\"POST\";\n}", "HtmlPage clickSiteLink();", "public final /* synthetic */ void G() {\n Uri uri;\n com.ss.android.ugc.aweme.festival.common.a e2 = com.ss.android.ugc.aweme.festival.christmas.a.e();\n if (e2 != null && !TextUtils.isEmpty(e2.f47289c)) {\n String str = \"\";\n boolean z = this instanceof MusUserProfileFragment;\n if (z) {\n str = \"others_homepage\";\n } else if (this instanceof MusMyProfileFragment) {\n str = \"personal_homepage\";\n }\n r.a(\"enter_activity_page\", (Map) new d().a(\"enter_from\", str).f34114b);\n String str2 = null;\n if (z && this.J != null && !this.J.isMe()) {\n str2 = this.J.getUid();\n }\n if (!TextUtils.isEmpty(str2)) {\n uri = Uri.parse(e2.f47289c).buildUpon().appendQueryParameter(\"uid\", str2).build();\n } else {\n uri = Uri.parse(e2.f47289c);\n }\n com.ss.android.ugc.aweme.festival.christmas.a.a(getContext(), uri.toString());\n }\n }", "@RequestMapping(value = {\"/\", \"/home\"}, method = RequestMethod.GET)\n public String goHome(ModelMap model) {\n model.addAttribute(\"loggedinuser\", appService.getPrincipal());\n model.addAttribute(\"pagetitle\", \"Pand-Eco\");\n return \"view_landing_page\";\n }", "public HomePage(){\r\n\t\tPageFactory.initElements(driver, this);\r\n\r\n\r\n\t}", "public HomePage(){\n\t\t\tPageFactory.initElements(driver, this); \n\t\t}", "private void returnHome(){\n if (Boolean.toString(UpdatedHomePage.updatedHomeStarted).equals(\"false\")) {\n startActivity(new Intent(FinalPlan.this, Home.class));\n } else {\n Intent intent = new Intent(this, UpdatedHomePage.class);\n Bundle extras = new Bundle();\n extras.putBoolean(\"filtered\", true);\n intent.putExtras(extras);\n startActivity(intent);\n }\n }", "protected DocumentTestObject homeMembership(TestObject anchor, long flags) \n\t{\n\t\treturn new DocumentTestObject(\n getMappedTestObject(\"homeMembership\"), anchor, flags);\n\t}", "public HomePageAustria() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "public boolean isHomeLinkPresent() {\r\n\t\treturn isElementPresent(groupListSideBar.replace(\"Group List\", \"Home\"), SHORTWAIT);\r\n\t}", "public HomePage(){\r\n\tPageFactory.initElements(driver, this);\t\r\n\t}", "public HomePage() {\n\t\tPageFactory.initElements(driver, this);\n\t\t\n\t}", "public static final String getHome() { return home; }", "@Then(\"^Homepage is populated$\")\r\n public void homepage_is_populated() throws Throwable {\n \tSystem.out.println(\"Validated HomePage\");\r\n \r\n }", "public HomePage() { \n\t\t\tPageFactory.initElements(driver, this);\n\t\t}", "public String getHomePageTitle() {\n\t\t//instantiate a web element and have the driver get it\n\t\t//WebElement homePageTitle = driver.findElement(By.xpath(\"//div[@id='bodyContent']//h1\"));\n\t\t//System.out.println(\"Home page title text \" + homePageTitle.getText());\n\t\tlogger.info(\"Home Page Title text is: \" + homePageTitle.getText());\n\t\treturn homePageTitle.getText();//homePageTitle is a PageFactory Element, see above. \n\t}", "public X837Ins_2305_CR7_HomeHealthCarePlanInformation() {}", "@Test\r\n public void testHomePageButton() {\r\n WicketTester tester = new WicketTester(new GreenometerApplication());\r\n tester.startPage(StopLightPage.class);\r\n tester.assertRenderedPage(StopLightPage.class);\r\n\r\n tester.clickLink(\"HomePageButton\", false);\r\n tester.assertRenderedPage(GreenOMeterPage.class);\r\n }", "public String getHomeAbbr(){\n\t\treturn _homeTeam.getTeamAbbr();\n\t}", "private AttributeTypeHome( )\n {\n }", "public boolean verifyHomePageDisplayed(){\r\n\t\tWebDriver driver = SeleniumDriver.getInstance().getWebDriver();\r\n\t\tWebElement body;\r\n\t\ttry{\r\n\t\t\tbody = driver.findElement(By.tagName(\"body\"));\r\n\t\t\tif(body.getAttribute(\"class\").contains(\"home page\")){\r\n\t\t\t\tmyAssert.setGblPassFailMessage(\"pass\", \"UpTake home page is displayed\");\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tmyAssert.setGblPassFailMessage(\"fail\", \"UpTake home page is not displayed\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t return true;\r\n\t}", "public String homePageTitle() {\n\t\tString title=driver.getTitle();\n\t\treturn title;\n\t}", "public HomePage(){\n\t\tPageFactory.initElements(driver, this);\n\t}", "public DashBoardPage NavigateToMittICA()\n{\n\tif(Action.IsVisible(Master_Guest_Mitt_ICA_Link))\n\tAction.Click(Master_Guest_Mitt_ICA_Link);\n\telse\n\t\tAction.Click(Master_SignIN_Mitt_ICA_Link);\n\treturn this;\n}", "public HtmlPage(String h){\r\n\t\t//extract the hrefs:\r\n\t\tHREF.setHref(getHrefs(h));\r\n\t\t//extract the encoding:\r\n\t\t\r\n\t}", "private TagHome( )\r\n {\r\n }", "public String verifyUserOnWomenPage(){\n WebElement womenPage = driver.findElement(By.cssSelector(\"div[class='breadcrumb clearfix'] a[title='Dresses']\"));\n String womenPageStatus = womenPage.getText();\n return womenPageStatus;\n }", "private void getHomePage(final WebDriver webDriver) {\r\n\t\twebDriver.get(HTML_URL);\r\n\t\tcheckTitle(webDriver);\r\n\t}", "@RequestMapping(method= RequestMethod.GET, value=\"/staff/home\")\n protected static String getStaffHome() {\n return \"staff-home\";\n }", "public String getHomeState()\n {\n return homeState;\n}", "public String home()\n\t{\n\t\treturn SUCCESS;\n\t}", "public static void main(String[] args) {\n\t\tURLContent uc = new URLContent();\n\t\tuc.fetchTitleString(\"http://www.nytimes.com/2003/08/07/us/first-test-for-freshmen-picking-roommates.html\");\n\t}", "public URL getHtmlDescription();", "void addHasInstitutionHomePage(Object newHasInstitutionHomePage);", "public void setHomeNumber(String homeNumber) {\r\n this.homeNumber = homeNumber;\r\n }", "public Home () {\n\t\t\n\t\tthis.isActiveListing = true;\n\t}", "public static String getWebsiteBase( String url, IOntologyModel universitiesOntologyModel ) {\r\n if( url == null ) {\r\n return null;\r\n }; // if\r\n \r\n // the url would have to be at least 8 chars long (because it would have \"http://\" or \"https://\")\r\n int httpPosition = url.startsWith( \"http://\" ) ? 7 : -1;\r\n httpPosition = url.startsWith( \"https://\" ) ? 8 : httpPosition;\r\n if( httpPosition == -1 ) {\r\n System.out.println( \"WHATISTHIS--url(1),getWebsiteBase: \" + url );\r\n return null;\r\n }; // if\r\n \r\n int slashPosition = url.indexOf( \"/\", httpPosition );\r\n if( slashPosition == -1 ) {\r\n if( url.endsWith( \"/\" ) == false ) { \r\n url += \"/\";\r\n }; // if\r\n slashPosition = url.indexOf( \"/\", httpPosition );\r\n if( slashPosition == -1 ) {\r\n System.out.println( \"WHATISTHIS--url(2),getWebsiteBase: \" + url );\r\n return null;\r\n }; // if\r\n }; // if\r\n \r\n int pos = 0;\r\n String ret = url.substring( 0, slashPosition );\r\n String portEnding[] = { \":8080\", \":8000\" };\r\n IInstanceNode instanceNode = null;\r\n \r\n // fix any url with useless port ending\r\n for( String port : portEnding ) {\r\n if( ret.endsWith( port ) ) {\r\n ret = ret.substring( 0, ret.length() - port.length() );\r\n }; // if\r\n }; // for\r\n \r\n // handle \".edu\" ending\r\n String eduCases[] = { \".edu\", \".edu.ar\", \".edu.au\", \".edu.br\", \".edu.cn\", \".edu.eg\", \r\n \".edu.hk\", \".edu.kw\", \".edu.lb\", \".edu.my\", \r\n \".edu.ng\", \".edu.om\", \".edu.pl\", \".edu.sg\", \".edu.tr\", \".edu.tw\", \".edu.uy\", \r\n \r\n \".ac.ae\", \".ac.at\", \".ac.bd\", \".ac.be\", \".ac.cn\", \".ac.cr\", \".ac.cy\", \r\n \".ac.il\", \".ac.in\", \".ac.jp\", \".ac.kr\", \".ac.nz\", \".ac.ru\", \".ac.th\", \".ac.uk\", \".ac.yu\", \".ac.za\" };\r\n \r\n // search for possible 'edu/ac' match\r\n for( String edu : eduCases ) {\r\n if( ret.endsWith( edu ) ) {\r\n pos = ret.lastIndexOf( \".\", ret.length() - edu.length() - 1 );\r\n pos = pos == -1 ? httpPosition : pos + 1; // for cases such as http://uga.edu/~ana\r\n ret = \"http://www.\" + ret.substring( pos ) + \"/\";\r\n \r\n // now, look it up in the universities\r\n instanceNode = universitiesOntologyModel.getInstanceNode( ret );\r\n if( instanceNode != null ) {\r\n return ret;\r\n }; // if\r\n //TODO\r\n //System.out.println( \"WHATISTHIS--url(3),getWebsiteBase: \" + ret );\r\n return null;\r\n }; // if\r\n }; // for\r\n \r\n // maybe there's a match on universitiesOntology\r\n String pieces[] = ret.substring( httpPosition ).split( \"\\\\.\" );\r\n if( pieces != null && pieces.length >= 2 ) {\r\n String tmp = \"http://www.\" + pieces[ pieces.length - 2 ] + \".\" + pieces[ pieces.length - 1 ] + \"/\";\r\n instanceNode = universitiesOntologyModel.getInstanceNode( tmp );\r\n if( instanceNode != null ) {\r\n return tmp;\r\n }; // if\r\n }; // if\r\n \r\n //TODO\r\n //System.out.println( \"WHATISTHIS--url(4),getWebsiteBase: \" + ret );\r\n return null;\r\n }", "@Given(\"User is on the HomePage\")\r\n\tpublic void user_is_on_the_home_page() \r\n\t{\n\t driver.get(\"https://lkmdemoaut.accenture.com/TestMeApp/fetchcat.htm\");\r\n\t driver.findElement(By.linkText(\"SignIn\")).click();\r\n\t \r\n\t WebDriverWait wait = new WebDriverWait(driver, 10);\r\n\t wait.until(ExpectedConditions.visibilityOf(driver.findElement(By.name(\"userName\"))));\r\n\t \r\n\t driver.findElement(By.id(\"userName\")).sendKeys(\"Lalitha\");\r\n\t driver.findElement(By.id(\"password\")).sendKeys(\"password123\");\r\n\t driver.findElement(By.name(\"Login\")).click();\r\n\t}", "@Then(\"^homepage is visible$\")\n\tpublic void homepage_is_visible() throws Throwable {\n\t\tString verify = driver.findElement(By.xpath(\"//marquee[@class='heading3']\")).getText();\n\t\tAssert.assertEquals(verify, \"Welcome To Customer's Page of Guru99 Bank\", \"Error in loading!\");\n\t}", "public HomePage() \r\n\t{\r\n\t\tPageFactory.initElements(driver, this);\r\n\t\t\r\n\t}", "public String getHomeTeam();", "public DefaultHref(String baseUrl)\r\n {\r\n this.parameters = new HashMap();\r\n setFullUrl(baseUrl);\r\n }", "public HomePage() {\n \t\tPageFactory.initElements(driver, this);\n \t}", "@Test \n\tpublic void homePageHeaderTest() {\n\t\tHomePage homePage = new HomePage(driver);\n\t\thomePage.OpenPage();\n\n\t\t// Validate page header \n\t\tString header = homePage.getHeader();\n\t\tAssert.assertTrue(header.equals(\"\"));\n\n\t\t// Fetch latin quote: \n\t\tString latinQuote = homePage.getQuote(\"latin\");\n\t\tAssert.assertEquals(\"\\\"Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit...\\\"\", latinQuote);\n\n\t\t// Fetch english quote, which is: \n\t\tString englishQuote = homePage.getQuote(\"english\"); \n\t\tAssert.assertEquals(\"\\\"There is no one who loves pain itself, who seeks after it and wants to have it, simply because it is pain...\\\"\",englishQuote); \n\t}", "public HomePage() {\n\t\t\tPageFactory.initElements(driver, this);\n\t\t}", "public HomePage(){\n PageFactory.initElements(driver, this);\n }", "protected String getTitle(String siteName) { \n return siteName;\n }", "public Hyperlink(){\n this.href = \"\";\n this.text = new TextSpan(\"\");\n }", "@Given(\"^User is on netbanking landing page$\")\r\n public void user_is_on_netbanking_landing_page() throws Throwable {\n System.out.println(\"Navigated to Login URL\");\r\n }", "String getHref();", "@When(\"^title of the page is Guru$\")\n\tpublic void title_of_the_page_is_Guru() {\n\t\tString title= driver.getTitle();\n\t\t Assert.assertEquals(title, \"Guru99 Bank Home Page\");\n\t\t System.out.println(title);\n\t}", "@TestCaseId( id = 3 )\n\t@Steps ( steps = {\n\t\t\t@Step( number = 1, description = \"GIVEN user navigates to main page\" ),\n\t\t\t@Step( number = 2, description = \"WHEN examining the header bar, zero navigation section\",\n\t\t\t\t\texpectedResults = { \"THEN the phone number matches the defined locale phone number\",\n\t\t\t\t\t\t\t\"AND the displayed flag displayed in the header matches the current locale\",\n\t\t\t\t\t\t\t\"AND WHEN the locale is 'US' or 'UK', \\\"Top Destinations\\\" should be displayed, otherwise not\",\n\t\t\t\t\t\t\t\"OR WHEN if the locale is AU', the \\\"Currency Selector\\\" should be displayed, otherwise not\",\n\t\t\t\t\t} ),\n\t\t\t@Step( number = 3, description = \"AND WHEN user clicks back on the \\\"Subscribe and Save\\\" link\",\n\t\t\t\t\texpectedResults = { \"THEN the \\\"Header Subscribe\\\" section should be hidden.\" }),\n\t\t\t@Step( number = 4, description = \"THEN user clicks on \\\"Your cruise deals\\\"\",\n\t\t\t\t\texpectedResults = { \"user redirects to \\\"/cruise-deals.aspx\\\" page\" } ),\n\t\t\t@Step( number = 5, description = \"WHEN user clicks on the company LOGO on the left upper corner.\",\n\t\t\t\t\texpectedResults = \"user redirects back to home page.\" ),\n\t\t\t@Step( number = 6, description = \"WHEN user clicks on the locale country flag.\",\n\t\t\t\t\texpectedResults = { \"THEN a drop down containing country names is displayed.\",\n\t\t\t\t\t\t\t\t\t\t\"AND the list contains the expected country names\" } ),\n\t\t\t@Step( number = 7, description = \"WHEN user clicks back on the locale country flag icon.\",\n\t\t\t\t\texpectedResults = { \"THEN the drop down countries list is hidden back.\" } ),\n\t} )\n\t@Test ( description = \"Testing the Header-Branding common part initial state and functionality\",\n\t\t\tenabled = true,\n\t\t\tgroups = { \"US\", \"UK\", \"AU\" }\n\t)\n\tpublic void homePage_InitialState_Header_Branding( ITestContext testContext ) throws Exception\n\t{\n\t\t/* GIVEN user navigates to main page */\n\t\tPreConditions.checkNotNull( this.homePage, \"Home page is null, before starting test\" );\n\t\ttry\n\t\t{\n\n\t\t\t/* WHEN examining the header bar, zero navigation section */\n\t\t\tHeader.HeaderBranding headerBranding = homePage.header().headerBranding();\n\t\t\tHtmlElement container = homePage.header().getContainer();\n\n\t\t\t/* THEN the phone number matches the defined locale phone number */\n\t\t\tString REASON = \"Asserting the phone number matches the defined locale phone number\";\n\t\t\tString ACTUAL_STR = headerBranding.getLocalePhoneNumber();\n\t\t\tMatcher<String> EXPECTED_STR = JMatchers.is( ( String ) SiteProperty.HEADER_PHONE_NUMBER.fromContext() );\n\t\t\tSiteSessionManager.get().createCheckPoint( container, \"VALIDATE_PHONE\" )\n\t\t\t\t\t.assertThat( REASON, ACTUAL_STR, EXPECTED_STR );\n\n\t\t\t/* AND the displayed flag in the header matches the current locale */\n\t\t\tREASON = \"Asserting that the flag displayed in the header matches the current locale\";\n\t\t\tLocale ACTUAL_LOCALE = homePage.header().headerBranding().getDisplayedLocale();\n\t\t\tMatcher<Locale> EXPECTED_LOCALE = JMatchers.is( SiteSessionManager.get().getCurrentLocale() );\n\t\t\tSiteSessionManager.get().createCheckPoint( container, \"VALIDATE_DISPLAYED_FLAG\" )\n\t\t\t\t\t.assertThat( REASON, ACTUAL_LOCALE, EXPECTED_LOCALE );\n\n\t\t\t/* AND WHEN the locale is 'US' or 'UK', \"Top Destinations\" should be displayed, otherwise not */\n\n\t\t\tif ( SiteSessionManager.get().getCurrentLocale().equals( Locale.UK )\n\t\t\t\t\t|| SiteSessionManager.get().getCurrentLocale().equals( Locale.US ) )\n\t\t\t{\n\t\t\t\tREASON = \"Asserting that \\\"Top Destinations\\\" should be displayed\";\n\t\t\t\tboolean ACTUAL_BOOL = headerBranding.hasTopDestinations();\n\t\t\t\tMatcher<Boolean> EXPECTED_OF_BOOL = JMatchers.is( true );\n\t\t\t\tSiteSessionManager.get().createCheckPoint( container, \"TOP_DESTINATIONS_DISPLAYED\" )\n\t\t\t\t\t\t.assertThat( REASON, ACTUAL_BOOL, EXPECTED_OF_BOOL );\n\n\t\t\t\tREASON = \"Asserting that \\\"Currency Selector\\\" should not be displayed\";\n\t\t\t\tACTUAL_BOOL = headerBranding.hasCurrencySelector();\n\t\t\t\tEXPECTED_OF_BOOL = JMatchers.is( false );\n\t\t\t\tSiteSessionManager.get().createCheckPoint( container, \"CURRENCY_SELECTOR_NOT_DISPLAYED\" )\n\t\t\t\t\t\t.assertThat( REASON, ACTUAL_BOOL, EXPECTED_OF_BOOL );\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tREASON = \"Asserting that \\\"Top Destinations\\\" should be displayed\";\n\t\t\t\tMatcher<Boolean> EXPECTED_OF_BOOL = JMatchers.is( false );\n\t\t\t\tboolean ACTUAL_BOOL = headerBranding.hasTopDestinations();\n\t\t\t\tSiteSessionManager.get().createCheckPoint( \"TOP_DESTINATIONS_NOT_DISPLAYED\" )\n\t\t\t\t\t\t.assertThat( REASON, ACTUAL_BOOL, EXPECTED_OF_BOOL );\n\n\t\t\t\tREASON = \"Asserting that \\\"Currency Selector\\\" should not be displayed\";\n\t\t\t\tEXPECTED_OF_BOOL = JMatchers.is( true );\n\t\t\t\tACTUAL_BOOL = homePage.header().headerBranding().hasCurrencySelector();\n\t\t\t\tSiteSessionManager.get().createCheckPoint( container, \"CURRENCY_SELECTOR_IS_DISPLAYED\" )\n\t\t\t\t\t\t.assertThat( REASON, ACTUAL_BOOL, EXPECTED_OF_BOOL );\n\t\t\t}\n\n\t\t \t/* AND WHEN user clicks back on the \"Subscribe and Save\" link */\n\t\t\theaderBranding.clickSubscribeAndSave();\n\n\t\t\tfinal String REASON5 = \"Asserting that \\\"Header Subscribe\\\" should be displayed\";\n\t\t\tfinal ExpectedCondition<WebElement> CONDITION = null;//visibilityBy( Header.HeaderBranding.ROOT_BY, true );\n\t\t\t//\t\tSiteSessionManager.get().createCheckPoint( \"HEADER_SUBSCRIBE_VISIBLE\" )\n\t\t\t//\t\t\t\t.assertWaitThat( REASON5, TimeConstants.FIVE_SECONDS, CONDITION );\n\n\t\t /* WHEN user clicks again on the \"Subscribe and Save\" link THEN \"Header Subscribe\" section should be hidden. */\n\n\t\t\theaderBranding.clickSubscribeAndSave();\n\t\t\tfinal String REASON6 = \"Asserting that \\\"Header Subscribe\\\" should be hidden back\";\n\t\t\t//final ExpectedCondition<WebElement> CONDITION1 = visibilityBy( Header.HeaderBranding.ROOT_BY, false );\n\t\t\t//\t\tSiteSessionManager.get().createCheckPoint( \"HEADER_SUBSCRIBE_HIDDEN\" )\n\t\t\t//\t\t\t\t.assertWaitThat( REASON6, TimeConstants.FIVE_SECONDS, CONDITION1 );\n\n\t\t/* WHEN user clicks on \"Your cruise deals\" THEN user redirects to \"/cruise-deals.aspx\" page */\n\n\t\t\tCruiseDealsPage dealsPage = headerBranding.clickYourCruiseDeals();\n\t\t\tfinal String REASON7 = \"Asserting that user redirected to \\\"/cruise-deals.aspx\\\" page\";\n\t\t\tfinal Matcher<String> EXPECTED_URL = JMatchers.containsString( \"/cruise-deals.aspx\" );\n\t\t\tfinal String ACTUAL_URL = dealsPage.getCurrentUrl();\n\t\t\tSiteSessionManager.get().createCheckPoint( \"URL_CRUISE_DEALS\" )\n\t\t\t\t\t.assertThat( REASON7, ACTUAL_URL, EXPECTED_URL );\n\n\t\t/* WHEN user clicks on the LOGO, THEN user redirects back to home page */\n\n\t\t\tthis.homePage = dealsPage.header().headerBranding().clickOnLogo();\n\t\t\tfinal String REASON8 = \"Asserting that user redirected back to home page\";\n\t\t\tfinal Matcher<URL> EXPECTED_HOME_URL = JMatchers.is( SiteSessionManager.get().getBaseUrl() );\n\t\t\tfinal URL ACTUAL_HOME_URL = new URL( homePage.getCurrentUrl() );\n\t\t\tSiteSessionManager.get().createCheckPoint( \"URL_BACK_HOME\" )\n\t\t\t\t\t.assertThat( REASON8, ACTUAL_HOME_URL, EXPECTED_HOME_URL );\n\n\t\t/* AND user clicks on the locale country flag. */\n\n\t\t\theaderBranding = this.homePage.header().headerBranding();\n\n\t\t\tfinal String REASON9 = \"Asserting that country list is hidden before clicking on the flag icon\";\n\t\t\tfinal Matcher<Boolean> EXPECTED_LIST_STATE1 = JMatchers.is( false );\n\t\t\tfinal boolean ACTUAL_LIST_STATE1 = headerBranding.isLocalesListOpened();\n\t\t\tSiteSessionManager.get().createCheckPoint( \"LOCALE_LIST_INIT_HIDDEN\" )\n\t\t\t\t\t.assertThat( REASON9, ACTUAL_LIST_STATE1, EXPECTED_LIST_STATE1 );\n\n\t\t\tList<String> locales = headerBranding.openLocalesList();\n\n\t\t/* THEN a drop down containing country names is displayed. */\n\n\t\t\tfinal String REASON10 = \"Asserting that country list is displayed after clicking on the flag icon for first time\";\n\t\t\tfinal Matcher<Boolean> EXPECTED_LIST_STATE2 = JMatchers.is( true );\n\t\t\tfinal boolean ACTUAL_LIST_STATE2 = headerBranding.isLocalesListOpened();\n\t\t\tSiteSessionManager.get().createCheckPoint( \"LOCALE_LIST_DISPLAYED\" )\n\t\t\t\t\t.assertThat( REASON10, ACTUAL_LIST_STATE2, EXPECTED_LIST_STATE2 );\n\n\t\t/* AND the list contains the expected country names */\n\n\t\t\tString[] ACTUAL_LOCALES = locales.toArray( new String[ locales.size() ] );\n\t\t\tfinal String REASON11 = \"Asserting that country list contains all expected countries\";\n\t\t\tfinal Matcher<String[]> EXPECTED_LOCALES =\n\t\t\t\t\tJMatchers.arrayContainingInAnyOrder( \"Australia\", \"United States\", \"United Kingdom\" );\n\t\t\tSiteSessionManager.get().createCheckPoint( \"LOCALES_LIST\" )\n\t\t\t\t\t.assertThat( REASON11, ACTUAL_LOCALES, EXPECTED_LOCALES );\n\n\t\t/* AND user clicks back on the locale country flag icon. */\n\n\t\t\theaderBranding.closeLocalesList();\n\n\t\t/* THEN the drop down countries list is hidden back. */\n\n\t\t\tfinal String REASON12 = \"Asserting that country list is hidden after clicking back on the flag icon.\";\n\t\t\tfinal Matcher<Boolean> EXPECTED_LIST_STATE3 = JMatchers.is( false );\n\t\t\tfinal boolean ACTUAL_LIST_STATE3 = headerBranding.isLocalesListOpened();\n\t\t\tSiteSessionManager.get().createCheckPoint( \"LOCALE_LIST_HIDDEN_BACK\" )\n\t\t\t\t\t.assertThat( REASON12, ACTUAL_LIST_STATE3, EXPECTED_LIST_STATE3 );\n\n\t\t\t// reporting and asserting checkpoints\n\n\t\t\tSiteSessionManager.get().assertAllCheckpoints();\n\t\t}\n\t\tcatch ( WebDriverException | AssertionError e )\n\t\t{\n\t\t\tthrow new ApplicationException( SiteSessionManager.get().getDriver(), e );\n\t\t}\n\t}", "@Test (groups = {\"Regression\"})\n public void verifyElementsOnHarrowWebsiteHomePageAreDisplayed() {\n homePage.isDisplayedServicesBtn();\n }", "@Test\r\n public void ActionableTrainingTest() {\n WebElement title1 = driver.findElement(By.cssSelector(\"h3.uagb-ifb-title\"));\r\n \r\n //Assertion for title of the first info box\r\n Assert.assertEquals(title1.getText(), \"Actionable Training\");\r\n \r\n //Print heading of the first info box\r\n Reporter.log(\"Heading is: \" + title1.getText(), true);\r\n }", "@Override\n\tpublic void setHomeTeam() {\n\t\t\n\t}", "@Test(priority=1,dataProvider=\"practoPage\") \n\t\tpublic void practoPage(String hometitle,String pharmacytitle,String paintitle) throws IOException {\n\t\t\tlogger=extent.startTest(\"Load the Url and Navigate to the PainRelief Page\");\n\t\t\tProperties prop=propread.property(FileConstants.config_file);\n\t\t\tProperties prop1=propread.property(FileConstants.practopage_file);\n\t\t\tdriver.get(prop.getProperty(\"url\"));\n\t\t\tlogger.log(LogStatus.INFO, \"Url is loaded\");\n\t\t\tlog.logReport(\"User landed the practo home page Successfully\");\t\n\t\t\tvalidateTitle(driver,hometitle);\n\t\t\tpractopage.practoHome(driver, prop1,pharmacytitle,paintitle);\n\t\t\tlog.logReport(\"Successfully navigated to pain relief Page\");\n\t\t}", "@Override\n\tpublic void process(Page page) {\n\t\tboolean contain=false;\n\t\tint idindex=page.getUrl().toString().lastIndexOf(\"=\");\n\t\tString id=\"\";\n\t\tif(page.getUrl().toString().length()>=(idindex+1))\n\t\t id=page.getUrl().toString().substring(idindex+1);\n\t\tSystem.out.println(id);\n\t\tif(id.contains(\".\"))\n\t\t{\n\t\t\tcontain=true;\n\t\t\tSystem.out.println(\"contain is true\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tString ziduan=page.getHtml().xpath(\"//tbody/tr[3]/td[1]/text()\").all().get(0);\n\t\t\tString legal=\"法律状态:\";\n\t\t\tif(ziduan.equals(legal))\n\t\t\t{\n\t\t\t\tcontain=true;\n\t\t\t}\n\t\t}\n\t\t\n\t\t/*`patent_name` '专利名称',\n\t\t `patent_type` '专利类型',\n\t\t `legal_status`'法律状态',\n\t\t `abstract` '文摘',\n\t\t `sovereignty` '主权项',\n\t\t `apply_data` '申请日期',\n\t\t `public_data`'公开(公告)日期',\n\t\t `patent_number` '申请(专利)号',\n\t\t `public_number` '公开(公告)号',\n\t\t `main_type_number` '主分类号',\n\t\t `type_number` '分类号',\n\t\t `apply_people` '申请人',\n\t\t `patent_people` '发明人',\n\t\t `people_address` '主申请人地址',\n\t\t `city_code` '省市、代码',\n\t\t */\n\t\t\n\t\tpage.putField(\"patent_name\", page.getHtml().xpath(\"//tbody/tr[1]/td[2]/text()\").all().get(0));\n\t\t\n\t\t//x类\n\t\tif(contain)\n\t\t{\n\t\t\t//专利类型\n\t\t\tpage.putField(\"patent_type\", page.getHtml().xpath(\"//tbody/tr[2]/td[2]/text()\").all().get(0));\n\t\t\t\n\t\t\t//法律状态\n\t\t\tList<String> legal=new ArrayList<String>();\n\t\t\tlegal=page.getHtml().xpath(\"//tbody/tr[3]/td[2]/div/div/span/text()\").all();\n\t\t\tString templegal=\"\";\n\t\t\tfor(int i=0;i<legal.size();i++)\n\t\t\t\ttemplegal+=legal.get(i);\n\t\t\tpage.putField(\"legal_status\",templegal);\n\t\t\t\n\t\t\t//文摘\n\t\t\tpage.putField(\"abstract\", page.getHtml().xpath(\"//tbody/tr[4]/td[2]//*/text()\").all().get(0));\n\t\t\t\n\t\t\t//主权项\n\t\t\tpage.putField(\"sovereignty\", page.getHtml().xpath(\"//tbody/tr[5]/td[2]//*/text()\").all().get(0));\n\t\t\t\n\t\t\t//申请日期\n\t\t\tpage.putField(\"apply_date\", page.getHtml().xpath(\"//tbody/tr[6]/td[2]/span/text()\").all().get(0));\n\t\t\t\n\t\t\t//公开日期\n\t\t\tpage.putField(\"public_date\",page.getHtml().xpath(\"//tbody/tr[7]/td[2]/span/text()\").all().get(0));\n\t\t\t\n\t\t\t//申请号\n\t\t\tpage.putField(\"patent_number\",page.getHtml().xpath(\"//tbody/tr[8]/td[2]/span/text()\").all().get(0));\n\t\t\t\n\t\t\t//公开号\n\t\t\tpage.putField(\"public_number\", page.getHtml().xpath(\"//tbody/tr[9]/td[2]/span/text()\").all().get(0));\n\t\t\t\n\t\t\t//主分类号\n\t\t\tpage.putField(\"main_type_number\",page.getHtml().xpath(\"//tbody/tr[10]/td[2]/span/text()\").all().get(0));\n\t\t\t\n\t\t\t//分类号\n\t\t\tpage.putField(\"type_number\",page.getHtml().xpath(\"//tbody/tr[11]/td[2]/span/text()\").all().get(0));\n\t\t\t\n\t\t\t//申请人\n\t\t\tpage.putField(\"apply_people\",page.getHtml().xpath(\"//tbody/tr[6]/td[4]/span/text()\").all().get(0));\n\t\t\t\n\t\t\t//发明人\n\t\t\tpage.putField(\"patent_people\",page.getHtml().xpath(\"//tbody/tr[7]/td[4]/span/text()\").all().get(0));\n\t\t\t\n\t\t\t//主申请人地址\n\t\t\tpage.putField(\"people_address\", page.getHtml().xpath(\"//tbody/tr[10]/td[4]/span/text()\").all().get(0));\n\t\t\t\n\t\t\t//省市代码\n\t\t\tpage.putField(\"city_code\", page.getHtml().xpath(\"//tbody/tr[11]/td[4]/span/text()\").all().get(0));\n\t\t}\n\t\t//n类\n\t\telse{\n\t\t\t//文摘\n\t\t\tpage.putField(\"abstract\", page.getHtml().xpath(\"//tbody/tr[2]/td[2]//*/text()\").all().get(0));\n\t\t\t\n\t\t\t//申请日期\n\t\t\tpage.putField(\"apply_date\",page.getHtml().xpath(\"//tbody/tr[3]/td[2]/text()\").all().get(0));\n\t\t\t\n\t\t\t//公开日期\n\t\t\tpage.putField(\"public_date\",page.getHtml().xpath(\"//tbody/tr[4]/td[2]/text()\").all().get(0));\n\t\t\t\n\t\t\t//申请号\n\t\t\tpage.putField(\"patent_number\", page.getHtml().xpath(\"//tbody/tr[5]/td[2]/text()\").all().get(0));\n\t\t\t\n\t\t\t//公开号\n\t\t\tpage.putField(\"public_number\", page.getHtml().xpath(\"//tbody/tr[6]/td[2]/text()\").all().get(0));\n\t\t\t\n\t\t\t//主分类号\n\t\t\tpage.putField(\"main_type_number\",page.getHtml().xpath(\"//tbody/tr[7]/td[2]/text()\").all().get(0));\n\t\t\t\n\t\t\t//分类号\n\t\t\tpage.putField(\"type_number\",page.getHtml().xpath(\"//tbody/tr[8]/td[2]/text()\").all().get(0));\n\t\t\t\n\t\t\t//申请人\n\t\t\t//如果申请人为空,则没有span标签\n\t\t\tList<String> apply=new ArrayList<String>();\n\t\t\tapply=page.getHtml().xpath(\"//tbody/tr[10]/td[2]/span/text()\").all();\n\t\t\tif(apply.size()==0)\n\t\t\t{\n\t\t\t\tpage.putField(\"apply_people\",page.getHtml().xpath(\"//tbody/tr[10]/td[2]/text()\").all().get(0));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tpage.putField(\"apply_people\",apply.get(0));\n\t\t\t}\n\t\t\t\n\t\t\t//发明人\n\t\t\t//如果发明人为空,则没有span标签\n\t\t\tapply=page.getHtml().xpath(\"//tbody/tr[11]/td[2]/span/text()\").all();\n\t\t\tif(apply.size()==0)\n\t\t\t{\n\t\t\t\tpage.putField(\"patent_people\",page.getHtml().xpath(\"//tbody/tr[11]/td[2]/text()\").all().get(0));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tpage.putField(\"patent_people\",apply.get(0));\n\t\t\t}\t\n\t\t}\t\n\t\t\n\t\tpage.putField(\"url\", page.getRequest().getUrl());\n//\t\tSystem.out.println(page.getResultItems().get(\"patent_name\"));\n\t}", "String getWebsite();", "protected APPAAnnounce() {\n\n url = AppaLounge.BASE_URL + \"announcements/2/\";\n\n }", "public void setHome(int home) {\n m_home = home;\n }", "public DiscoverWebsearchFragment() {}", "public final String mo85338c() {\n if (this.f94528N == 0) {\n return \"personal_homepage\";\n }\n return \"personal_collection\";\n }", "InternationalizedResourceLocator getHomePage();", "public static void main(String[] args) {\n\t\tWebDriver driver = new FirefoxDriver();\n\t\tdriver.navigate().to(\"https://www.infinitecampus.com/\");\n\t\t\n\t\tdriver.manage().window().maximize();\n\t\t\n\t\tWebElement HeaderBlock = driver.findElement(By.xpath(\".//*[@id='career_site_home_page']/header\"));\n\t\t\n\t\tList <WebElement> HeaderLinks = HeaderBlock.findElements(By.tagName(\"a\"));\n\t\tSystem.out.println(HeaderLinks.size());\n\t\t\n\t\tfor (int i=0; i<HeaderLinks.size(); i++)\n\t\t{\n\t\t\tSystem.out.println(HeaderLinks.get(i).getText());\n\t\t\tString LinkName = HeaderLinks.get(i).getText();\n\t\t\tHeaderLinks.get(i).click();\n\t\t\tSystem.out.println(driver.getTitle());\n\t\t\tSystem.out.println(driver.getCurrentUrl());\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\tdriver.navigate().back();\n\t\t\t//Sleeper.sleepTight(10);\n\t\t\t\n\t\t\tHeaderBlock = driver.findElement(By.xpath(\".//*[@id='career_site_home_page']/header\"));\n\t\t\tHeaderLinks= HeaderBlock.findElements(By.tagName(\"a\"));\n\t\t} \n\t\t\n\t\tdriver.close();\n\t}", "@Test\n public void testHomepageWelcomeText()\n {\n try {\n WebElement e = driver.findElement(By.className(\"lead\"));\n String elementText = e.getText();\n assertTrue(elementText.contains(\"Welcome, friend,\") && elementText.contains(\"to a land of pure calculation\"));\n } catch (NoSuchElementException e) {\n fail();\n }\n }", "public static String getHome() {\n return home;\n }" ]
[ "0.5590675", "0.53381425", "0.52773005", "0.51932526", "0.5152225", "0.5146646", "0.5131322", "0.50973487", "0.5089884", "0.5072125", "0.50636023", "0.50376743", "0.50118303", "0.5003", "0.49978963", "0.49596608", "0.49579203", "0.4933963", "0.4919814", "0.49127916", "0.4912068", "0.4902837", "0.49024105", "0.4889307", "0.48849425", "0.48575127", "0.48507017", "0.48481575", "0.48300907", "0.48216864", "0.47985923", "0.47968495", "0.47927004", "0.4789649", "0.47713372", "0.47606802", "0.47582075", "0.47429892", "0.47415653", "0.47382745", "0.472438", "0.4724309", "0.47202837", "0.47123593", "0.46998984", "0.46905568", "0.4687156", "0.46685642", "0.46647862", "0.4656056", "0.46510088", "0.46425456", "0.46422485", "0.46395177", "0.46368888", "0.46285433", "0.46281236", "0.46277186", "0.46265554", "0.46261948", "0.4620077", "0.46172962", "0.46135637", "0.4611773", "0.46103033", "0.46094796", "0.4609372", "0.46048328", "0.46035993", "0.46035728", "0.45991406", "0.4574237", "0.45659435", "0.45572576", "0.45544034", "0.45480737", "0.45438257", "0.45368752", "0.45285267", "0.451855", "0.45154676", "0.4510145", "0.45068264", "0.45029265", "0.45004123", "0.45003325", "0.45000634", "0.4496254", "0.44934887", "0.4486368", "0.44858602", "0.4485027", "0.44814447", "0.4470926", "0.44644997", "0.4461727", "0.44514343", "0.44509044", "0.4444125", "0.44429433" ]
0.47182783
43
HomeMembershipBoilerCoverHomeEmergencyAA: with specific test context and state. .title : Home Membership | Boiler Cover | Home Emergency | AA .class : Html.HtmlDocument .url : RegularExpression(homemembership)
protected DocumentTestObject homeMembership(TestObject anchor, long flags) { return new DocumentTestObject( getMappedTestObject("homeMembership"), anchor, flags); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@TestCaseId( id = 1 )\n\t@Steps ( steps = {\n\t\t\t@Step( number = 1, description = \"WHEN user navigates to main page\",\n\t\t\t\t expectedResults = {\n\t\t\t\t\t\t\"THEN url matches the current locale and environment\",\n\t\t\t\t\t\t\"AND the site title, matches the locale defined title\",\n\t\t\t\t })\n\t})\n\t@Test ( description = \"Testing the Locale Common Header Branding initial state and functionality\",\n\t\t\tenabled = true,\n\t\t\tgroups = { \"US\", \"UK\", \"AU\" }\n\t)\n\tpublic void homePage_InitialState_Title_And_Url( ITestContext testContext ) throws Exception\n\t{\n\t\t//logger.info( \"Starting executing method < '{}' > for < '{}' >\", testContext.getName(), testContext.getIncludedGroups() );\n\n\t\tPreConditions.checkNotNull( this.homePage, \"Home page is null, before starting test\" );\n\n\t\t/* THEN url matches the current locale and environment */\n\n\t\tfinal String REASON1 = \"Asserting home page url based locale and environment\";\n\t\tfinal Matcher<String> EXPECTED_URL = JMatchers.is( SiteSessionManager.get().getBaseUrl().toExternalForm() );\n\t\tfinal String ACTUAL_URL = homePage.getCurrentUrl();\n\t\tSiteSessionManager.get().createCheckPoint( \"VALIDATE_URL\" ).assertThat( REASON1, ACTUAL_URL, EXPECTED_URL );\n\n\t\t/* AND the site title, matches the locale */\n\n\t\tfinal String REASON2 = \"Asserting home page title match the locale defined title\";\n\t\t//final Matcher<String> EXPECTED_TITLE = JMatchers.is( ( String ) SiteProperty.HOME_PAGE_TITLE.fromContext() );\n\t\t//final String ACTUAL_TITLE = homePage.getTitle();\n\t\t//SiteSessionManager.get().createCheckPoint( \"VALIDATE_TITLE\" ).assertThat( REASON2, ACTUAL_TITLE, EXPECTED_TITLE );\n\n\t\tSiteSessionManager.get().assertAllCheckpoints();\n\n\t}", "@Test\n public void verifyTitleOfHomePageTest()\n {\n\t \n\t String abc=homepage.validateHomePageTitle();\n\t Assert.assertEquals(\"THIS IS DEMO SITE FOR \",abc );\n }", "public void userIsOnHomePage(){\n\n assertURL(\"\\\"https://demo.nopcommerce.com/\\\" \");\n }", "@Test \n\tpublic void homePageTitleTest() {\n\t\tHomePage homePage = new HomePage(driver);\n\t\thomePage.OpenPage();\n\t\t\n\t\t//Fetch title \n\t\tString title = homePage.getTitle();\n\t\t\n\t\t//Assert title content \n\t\tAssert.assertTrue(title.equals(\"Lorem Ipsum - All the facts - Lipsum generator\"));\n\t}", "@Test()\n\tpublic static void Homep1() {\n\t\t\n\t\tdriver= CallingChrome();\ndriver.navigate().to(\"https://www.spicejet.com/\");\n\t\t\n\n\t\t\n\t\tSystem.out.println(driver.findElement(By.xpath(\"//a[text()='Book']\")).getText());\t\n\t}", "@Given(\"^user is on home page of website$\")\n public void userIsOnHomePageOfWebsite() {\n\n }", "HtmlPage clickSiteName();", "public static void leechBBC(Hdict dict)\r\n {\r\n WebDriver driver = new ChromeDriver();\r\n \r\n String baseUrl = \"https://www.bbc.com/\";\r\n driver.get(baseUrl);\r\n \r\n List<WebElement> links = driver.findElements(By.tagName(\"a\"));\r\n \r\n System.out.println(\"There is a total of \" + links.size() + \" frong page news detected on BBC\");\r\n \r\n Hdict titleDicts = new Hdict();\r\n \r\n for(int i = 0; i < links.size(); i++)\r\n {\r\n //get href links\r\n String url = links.get(i).getAttribute(\"href\");\r\n \r\n Words hUrl = new Words(url, 0);\r\n if(titleDicts.hdict_lookup(hUrl) != null) // if this page is already parsed\r\n {\r\n continue;\r\n }\r\n \r\n //if the page is not parsed\r\n titleDicts.hdict_insert(hUrl);\r\n \r\n String urlname = \"https://www.bbc.com/news/\";\r\n \r\n String[] news = url.split(urlname);\r\n if(news.length > 1 && news[1].length() > 10) // if it is .html and has some other shish, shit solution but works\r\n {\r\n //WebDriver driver1 = new ChromeDriver();\r\n //driver1.get(url);\r\n \r\n String[] temp1 = news[1].split(\"-\");\r\n \r\n try{ // if the serial is not attached\r\n Integer.parseInt(temp1[temp1.length-1]);\r\n }\r\n catch(Exception e){ continue; };\r\n \r\n if(temp1.length < 2) // if it is not even a topic\r\n continue;\r\n \r\n //nytimes doesn't have viewers count, so default 2500 effectiveness on all posts\r\n \r\n int reactions = NYTIME_AVG;\r\n \r\n String directory = news[1];\r\n \r\n directory = directory.split(\".html\")[0]; // removes file name and directory\r\n String[] temp = directory.split(\"/\");\r\n String title = temp[temp.length-2]; // get file name, more concise, skip last for CNN, last is index\r\n String[] keys = title.split(\"-\");\r\n \r\n for(String key : keys)\r\n {\r\n if(key.contains(\".html\")) continue; // useless stuff\r\n \r\n boolean integercheck = true;\r\n try{\r\n Integer.parseInt(key);\r\n } catch(Exception e) \r\n {\r\n integercheck = false;\r\n };\r\n if(integercheck) continue; // useless numbers\r\n \r\n if(Arrays.binarySearch(JUNK_WORDS, key) >= 0) continue; // useless words\r\n \r\n Words wkey = new Words(key, reactions * BBC_WORTH);\r\n Words wkey_old = dict.hdict_lookup(wkey);\r\n if(wkey_old == null) dict.hdict_insert(wkey);\r\n else\r\n {\r\n wkey.setPopularity(wkey.getPopularity() + wkey_old.getPopularity());\r\n dict.hdict_insert(wkey);\r\n }\r\n }\r\n }\r\n }\r\n //close Chrome\r\n driver.close();\r\n }", "@Test\n @Then(\"Headphones page is opened\")\n public void s08_HPUrlCheck() {\n String currentHPTitle = driver.getTitle();\n if (currentHPTitle.contains(\"Наушники\")) {\n System.out.println(\"Step08 PASSED\");\n }\n else\n {\n System.out.println(\"Step08 FAILED\");\n }\n System.out.println(\"Step08 PASSED\");\n }", "@TestCaseId( id = 3 )\n\t@Steps ( steps = {\n\t\t\t@Step( number = 1, description = \"GIVEN user navigates to main page\" ),\n\t\t\t@Step( number = 2, description = \"WHEN examining the header bar, zero navigation section\",\n\t\t\t\t\texpectedResults = { \"THEN the phone number matches the defined locale phone number\",\n\t\t\t\t\t\t\t\"AND the displayed flag displayed in the header matches the current locale\",\n\t\t\t\t\t\t\t\"AND WHEN the locale is 'US' or 'UK', \\\"Top Destinations\\\" should be displayed, otherwise not\",\n\t\t\t\t\t\t\t\"OR WHEN if the locale is AU', the \\\"Currency Selector\\\" should be displayed, otherwise not\",\n\t\t\t\t\t} ),\n\t\t\t@Step( number = 3, description = \"AND WHEN user clicks back on the \\\"Subscribe and Save\\\" link\",\n\t\t\t\t\texpectedResults = { \"THEN the \\\"Header Subscribe\\\" section should be hidden.\" }),\n\t\t\t@Step( number = 4, description = \"THEN user clicks on \\\"Your cruise deals\\\"\",\n\t\t\t\t\texpectedResults = { \"user redirects to \\\"/cruise-deals.aspx\\\" page\" } ),\n\t\t\t@Step( number = 5, description = \"WHEN user clicks on the company LOGO on the left upper corner.\",\n\t\t\t\t\texpectedResults = \"user redirects back to home page.\" ),\n\t\t\t@Step( number = 6, description = \"WHEN user clicks on the locale country flag.\",\n\t\t\t\t\texpectedResults = { \"THEN a drop down containing country names is displayed.\",\n\t\t\t\t\t\t\t\t\t\t\"AND the list contains the expected country names\" } ),\n\t\t\t@Step( number = 7, description = \"WHEN user clicks back on the locale country flag icon.\",\n\t\t\t\t\texpectedResults = { \"THEN the drop down countries list is hidden back.\" } ),\n\t} )\n\t@Test ( description = \"Testing the Header-Branding common part initial state and functionality\",\n\t\t\tenabled = true,\n\t\t\tgroups = { \"US\", \"UK\", \"AU\" }\n\t)\n\tpublic void homePage_InitialState_Header_Branding( ITestContext testContext ) throws Exception\n\t{\n\t\t/* GIVEN user navigates to main page */\n\t\tPreConditions.checkNotNull( this.homePage, \"Home page is null, before starting test\" );\n\t\ttry\n\t\t{\n\n\t\t\t/* WHEN examining the header bar, zero navigation section */\n\t\t\tHeader.HeaderBranding headerBranding = homePage.header().headerBranding();\n\t\t\tHtmlElement container = homePage.header().getContainer();\n\n\t\t\t/* THEN the phone number matches the defined locale phone number */\n\t\t\tString REASON = \"Asserting the phone number matches the defined locale phone number\";\n\t\t\tString ACTUAL_STR = headerBranding.getLocalePhoneNumber();\n\t\t\tMatcher<String> EXPECTED_STR = JMatchers.is( ( String ) SiteProperty.HEADER_PHONE_NUMBER.fromContext() );\n\t\t\tSiteSessionManager.get().createCheckPoint( container, \"VALIDATE_PHONE\" )\n\t\t\t\t\t.assertThat( REASON, ACTUAL_STR, EXPECTED_STR );\n\n\t\t\t/* AND the displayed flag in the header matches the current locale */\n\t\t\tREASON = \"Asserting that the flag displayed in the header matches the current locale\";\n\t\t\tLocale ACTUAL_LOCALE = homePage.header().headerBranding().getDisplayedLocale();\n\t\t\tMatcher<Locale> EXPECTED_LOCALE = JMatchers.is( SiteSessionManager.get().getCurrentLocale() );\n\t\t\tSiteSessionManager.get().createCheckPoint( container, \"VALIDATE_DISPLAYED_FLAG\" )\n\t\t\t\t\t.assertThat( REASON, ACTUAL_LOCALE, EXPECTED_LOCALE );\n\n\t\t\t/* AND WHEN the locale is 'US' or 'UK', \"Top Destinations\" should be displayed, otherwise not */\n\n\t\t\tif ( SiteSessionManager.get().getCurrentLocale().equals( Locale.UK )\n\t\t\t\t\t|| SiteSessionManager.get().getCurrentLocale().equals( Locale.US ) )\n\t\t\t{\n\t\t\t\tREASON = \"Asserting that \\\"Top Destinations\\\" should be displayed\";\n\t\t\t\tboolean ACTUAL_BOOL = headerBranding.hasTopDestinations();\n\t\t\t\tMatcher<Boolean> EXPECTED_OF_BOOL = JMatchers.is( true );\n\t\t\t\tSiteSessionManager.get().createCheckPoint( container, \"TOP_DESTINATIONS_DISPLAYED\" )\n\t\t\t\t\t\t.assertThat( REASON, ACTUAL_BOOL, EXPECTED_OF_BOOL );\n\n\t\t\t\tREASON = \"Asserting that \\\"Currency Selector\\\" should not be displayed\";\n\t\t\t\tACTUAL_BOOL = headerBranding.hasCurrencySelector();\n\t\t\t\tEXPECTED_OF_BOOL = JMatchers.is( false );\n\t\t\t\tSiteSessionManager.get().createCheckPoint( container, \"CURRENCY_SELECTOR_NOT_DISPLAYED\" )\n\t\t\t\t\t\t.assertThat( REASON, ACTUAL_BOOL, EXPECTED_OF_BOOL );\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tREASON = \"Asserting that \\\"Top Destinations\\\" should be displayed\";\n\t\t\t\tMatcher<Boolean> EXPECTED_OF_BOOL = JMatchers.is( false );\n\t\t\t\tboolean ACTUAL_BOOL = headerBranding.hasTopDestinations();\n\t\t\t\tSiteSessionManager.get().createCheckPoint( \"TOP_DESTINATIONS_NOT_DISPLAYED\" )\n\t\t\t\t\t\t.assertThat( REASON, ACTUAL_BOOL, EXPECTED_OF_BOOL );\n\n\t\t\t\tREASON = \"Asserting that \\\"Currency Selector\\\" should not be displayed\";\n\t\t\t\tEXPECTED_OF_BOOL = JMatchers.is( true );\n\t\t\t\tACTUAL_BOOL = homePage.header().headerBranding().hasCurrencySelector();\n\t\t\t\tSiteSessionManager.get().createCheckPoint( container, \"CURRENCY_SELECTOR_IS_DISPLAYED\" )\n\t\t\t\t\t\t.assertThat( REASON, ACTUAL_BOOL, EXPECTED_OF_BOOL );\n\t\t\t}\n\n\t\t \t/* AND WHEN user clicks back on the \"Subscribe and Save\" link */\n\t\t\theaderBranding.clickSubscribeAndSave();\n\n\t\t\tfinal String REASON5 = \"Asserting that \\\"Header Subscribe\\\" should be displayed\";\n\t\t\tfinal ExpectedCondition<WebElement> CONDITION = null;//visibilityBy( Header.HeaderBranding.ROOT_BY, true );\n\t\t\t//\t\tSiteSessionManager.get().createCheckPoint( \"HEADER_SUBSCRIBE_VISIBLE\" )\n\t\t\t//\t\t\t\t.assertWaitThat( REASON5, TimeConstants.FIVE_SECONDS, CONDITION );\n\n\t\t /* WHEN user clicks again on the \"Subscribe and Save\" link THEN \"Header Subscribe\" section should be hidden. */\n\n\t\t\theaderBranding.clickSubscribeAndSave();\n\t\t\tfinal String REASON6 = \"Asserting that \\\"Header Subscribe\\\" should be hidden back\";\n\t\t\t//final ExpectedCondition<WebElement> CONDITION1 = visibilityBy( Header.HeaderBranding.ROOT_BY, false );\n\t\t\t//\t\tSiteSessionManager.get().createCheckPoint( \"HEADER_SUBSCRIBE_HIDDEN\" )\n\t\t\t//\t\t\t\t.assertWaitThat( REASON6, TimeConstants.FIVE_SECONDS, CONDITION1 );\n\n\t\t/* WHEN user clicks on \"Your cruise deals\" THEN user redirects to \"/cruise-deals.aspx\" page */\n\n\t\t\tCruiseDealsPage dealsPage = headerBranding.clickYourCruiseDeals();\n\t\t\tfinal String REASON7 = \"Asserting that user redirected to \\\"/cruise-deals.aspx\\\" page\";\n\t\t\tfinal Matcher<String> EXPECTED_URL = JMatchers.containsString( \"/cruise-deals.aspx\" );\n\t\t\tfinal String ACTUAL_URL = dealsPage.getCurrentUrl();\n\t\t\tSiteSessionManager.get().createCheckPoint( \"URL_CRUISE_DEALS\" )\n\t\t\t\t\t.assertThat( REASON7, ACTUAL_URL, EXPECTED_URL );\n\n\t\t/* WHEN user clicks on the LOGO, THEN user redirects back to home page */\n\n\t\t\tthis.homePage = dealsPage.header().headerBranding().clickOnLogo();\n\t\t\tfinal String REASON8 = \"Asserting that user redirected back to home page\";\n\t\t\tfinal Matcher<URL> EXPECTED_HOME_URL = JMatchers.is( SiteSessionManager.get().getBaseUrl() );\n\t\t\tfinal URL ACTUAL_HOME_URL = new URL( homePage.getCurrentUrl() );\n\t\t\tSiteSessionManager.get().createCheckPoint( \"URL_BACK_HOME\" )\n\t\t\t\t\t.assertThat( REASON8, ACTUAL_HOME_URL, EXPECTED_HOME_URL );\n\n\t\t/* AND user clicks on the locale country flag. */\n\n\t\t\theaderBranding = this.homePage.header().headerBranding();\n\n\t\t\tfinal String REASON9 = \"Asserting that country list is hidden before clicking on the flag icon\";\n\t\t\tfinal Matcher<Boolean> EXPECTED_LIST_STATE1 = JMatchers.is( false );\n\t\t\tfinal boolean ACTUAL_LIST_STATE1 = headerBranding.isLocalesListOpened();\n\t\t\tSiteSessionManager.get().createCheckPoint( \"LOCALE_LIST_INIT_HIDDEN\" )\n\t\t\t\t\t.assertThat( REASON9, ACTUAL_LIST_STATE1, EXPECTED_LIST_STATE1 );\n\n\t\t\tList<String> locales = headerBranding.openLocalesList();\n\n\t\t/* THEN a drop down containing country names is displayed. */\n\n\t\t\tfinal String REASON10 = \"Asserting that country list is displayed after clicking on the flag icon for first time\";\n\t\t\tfinal Matcher<Boolean> EXPECTED_LIST_STATE2 = JMatchers.is( true );\n\t\t\tfinal boolean ACTUAL_LIST_STATE2 = headerBranding.isLocalesListOpened();\n\t\t\tSiteSessionManager.get().createCheckPoint( \"LOCALE_LIST_DISPLAYED\" )\n\t\t\t\t\t.assertThat( REASON10, ACTUAL_LIST_STATE2, EXPECTED_LIST_STATE2 );\n\n\t\t/* AND the list contains the expected country names */\n\n\t\t\tString[] ACTUAL_LOCALES = locales.toArray( new String[ locales.size() ] );\n\t\t\tfinal String REASON11 = \"Asserting that country list contains all expected countries\";\n\t\t\tfinal Matcher<String[]> EXPECTED_LOCALES =\n\t\t\t\t\tJMatchers.arrayContainingInAnyOrder( \"Australia\", \"United States\", \"United Kingdom\" );\n\t\t\tSiteSessionManager.get().createCheckPoint( \"LOCALES_LIST\" )\n\t\t\t\t\t.assertThat( REASON11, ACTUAL_LOCALES, EXPECTED_LOCALES );\n\n\t\t/* AND user clicks back on the locale country flag icon. */\n\n\t\t\theaderBranding.closeLocalesList();\n\n\t\t/* THEN the drop down countries list is hidden back. */\n\n\t\t\tfinal String REASON12 = \"Asserting that country list is hidden after clicking back on the flag icon.\";\n\t\t\tfinal Matcher<Boolean> EXPECTED_LIST_STATE3 = JMatchers.is( false );\n\t\t\tfinal boolean ACTUAL_LIST_STATE3 = headerBranding.isLocalesListOpened();\n\t\t\tSiteSessionManager.get().createCheckPoint( \"LOCALE_LIST_HIDDEN_BACK\" )\n\t\t\t\t\t.assertThat( REASON12, ACTUAL_LIST_STATE3, EXPECTED_LIST_STATE3 );\n\n\t\t\t// reporting and asserting checkpoints\n\n\t\t\tSiteSessionManager.get().assertAllCheckpoints();\n\t\t}\n\t\tcatch ( WebDriverException | AssertionError e )\n\t\t{\n\t\t\tthrow new ApplicationException( SiteSessionManager.get().getDriver(), e );\n\t\t}\n\t}", "@Test// Execute 5 \n\t public void googleTitleTest() {\n\t\t System.out.println(\"google Title test\");\n\t }", "@Test\t\r\n\r\npublic void forgot(){\n\t\r\n driver.findElement(By.partialLinkText(\"Forgot\")).click();\r\n System.out.println(\"the forgotpage title is \"+\" \"+driver.getTitle());\r\n String expectedTitle = \"Forgot Password | Can't Log In | Facebook\";\r\n String actualTitle = driver.getTitle();\r\n softassert.assertEquals(actualTitle, expectedTitle);\r\n softassert.assertAll();\r\n \r\n}", "@When(\"^Click on Compose hyperlink icon$\")\npublic void click_on_Compose_hyperlink_icon() throws Throwable \n{\n\tWebElement p=driver.findElement(By.partialLinkText(\"Compose\"));\n p.click();\n System.out.println(\"Page title after link click : \" + driver.getTitle());\n \n\n\n}", "@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void verifyYourdetailsElectricityOverLayLink()\t\n{\t\n\tReport.createTestLogHeader(\"Anonymous Submit meter read\", \"Verifies the Your details Electricity Page Overlay Links\");\n\t\tnew SubmitMeterReadAction()\n\t\t.openSMRpage(\"Electricity\")\t\t\n\t\t.verifyElectricWhyWeNeedThisLink()\n\t\t.verifyElectricAcctnoWhereCanIfindthisLink()\n\t\t.verifyElectricMeterPointWhereCanIfindthisLink()\n\t\t.verifyElectricMeterIDWhereCanIfindthisLink();\n}", "@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void verifySearchByGlobalSmrPage()\n{\t\t\n\t Report.createTestLogHeader(\"Submit Meter Read\", \"Verify whether the Submit meter read landing page is getting displayed with Global search fields\");\n\tSMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"SmrLoggedInJourneySingleDial\");\n\tnew SubmitMeterReadAction()\t\n\t.BgbnavigateToLogin()\n .BgbloginDetails(smrProfile)\n .BgbverifyAfterLogin()\n .clickSubmitMeterReadLink()\n .SearchByAccoutnNumber(smrProfile)\n .enterGlobalMeterDials(smrProfile)\n .verifyAuditLeadTable(smrProfile);\n\n}", "@Test\r\n public void ActionableTrainingTest() {\n WebElement title1 = driver.findElement(By.cssSelector(\"h3.uagb-ifb-title\"));\r\n \r\n //Assertion for title of the first info box\r\n Assert.assertEquals(title1.getText(), \"Actionable Training\");\r\n \r\n //Print heading of the first info box\r\n Reporter.log(\"Heading is: \" + title1.getText(), true);\r\n }", "@Override\n\tpublic boolean shouldVisit(Page page, WebURL url) {\n\t\tString href = url.getURL().toLowerCase();\n\t\treturn !FILTERS.matcher(href).matches()\n\t\t\t\t&& (href.startsWith(\"http://www.amarujala.com/education\"));\n\t\t\t\t/*\n\t\t\t\t|| href.startsWith(\"http://www.amarujala.com/crime\"));\n\t\t\t\t*/\n\t}", "@Test\n\n public void validateAppTitle() throws IOException {\n LandingPage l = new LandingPage(driver);\n //compare the text from the browser with actual text.- Error..\n Assert.assertEquals(l.getTitle().getText(), \"FEATURED COURSES\");\n\n System.out.println(\"Test running from Inside docker for tests dated 22-03-2020\");\n System.out.println(\"Test completed\");\n\n ;\n\n\n }", "@Test\r\n\t\r\n\tpublic void reviewHotel() throws Throwable {\r\n\tTripAdvisorPage review=new TripAdvisorPage(driver);\r\n\t/*searching Club Mahindra */\r\n\treview.searchinTripAdvisor();\r\n\t/* review*/\r\n\treview.searchForReview();\r\n\t\r\n}", "@Test\n\t@When(\"^I click on home_button$\")\n\tpublic void b_i_click_on_home_button() {\n\t\t\n\t\n\n\t\t driver.findElement(By.xpath(\"//*[contains(text(),'Home')]\")).click();\n\t}", "@Test(priority = 1)\r\n\tpublic void testHomePage() {\r\n\t\tdriver.navigate().to(HomePage.URL);\r\n\t\tdriver.manage().window().maximize();\r\n\r\n\t\tWebDriverWait wait = new WebDriverWait(driver, 10);\r\n\t\tHomePage.clickAnnouncementButton(driver);\r\n\t\tHomePage.clickCookiesButton(driver);\r\n\r\n\t\tHomePage.clickLogin(driver);\r\n\r\n\t\tString currentUrl = driver.getCurrentUrl();\r\n\t\tString expectedUrl = \"https://www.humanity.com/app/\";\r\n\t\tSoftAssert sa = new SoftAssert();\r\n\t\tsa.assertEquals(currentUrl, expectedUrl);\r\n\t\tsa.assertAll();\r\n\t}", "public String verifyUserOnWomenPage(){\n WebElement womenPage = driver.findElement(By.cssSelector(\"div[class='breadcrumb clearfix'] a[title='Dresses']\"));\n String womenPageStatus = womenPage.getText();\n return womenPageStatus;\n }", "@Test\n public void clickContactLink() {\n aboutPage.clickContactLink();\n }", "@Test\n public void clickFaqLink() {\n homePage.clickAboutLink().clickFaqLink();\n }", "@Test\n\tpublic void VerifyTheSearchResult() {\n\t\tString searchString = \"The Choice\";\n\t\thomePage.search(searchString);\n\t\tString searchTitle = resultPage.getSearchResultTitle();\n\t\tAssert.assertTrue(searchTitle.contains(searchString));\n\t}", "@Test(priority=1,dataProvider=\"practoPage\") \n\t\tpublic void practoPage(String hometitle,String pharmacytitle,String paintitle) throws IOException {\n\t\t\tlogger=extent.startTest(\"Load the Url and Navigate to the PainRelief Page\");\n\t\t\tProperties prop=propread.property(FileConstants.config_file);\n\t\t\tProperties prop1=propread.property(FileConstants.practopage_file);\n\t\t\tdriver.get(prop.getProperty(\"url\"));\n\t\t\tlogger.log(LogStatus.INFO, \"Url is loaded\");\n\t\t\tlog.logReport(\"User landed the practo home page Successfully\");\t\n\t\t\tvalidateTitle(driver,hometitle);\n\t\t\tpractopage.practoHome(driver, prop1,pharmacytitle,paintitle);\n\t\t\tlog.logReport(\"Successfully navigated to pain relief Page\");\n\t\t}", "@Test(priority = 2)\n //@Parameters({\"browser\"})\n public void testPageTitleA2() throws Exception{\n driver.get(\"http://www.snapdeal.com\");\n //Thread.sleep(5000);\n String strPageTitle = driver.getTitle();\n System.out.println(\"SnapDeal : \"+strPageTitle);\n try{\n Assert.assertTrue(strPageTitle.contains(\"Amazon\"), \"SnapDeal : Page title doesn't match : \"+strPageTitle);\n }catch (Exception e){\n System.out.println(e);\n }\n //Thread.sleep(5000);\n // driver.quit();\n }", "@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void verifyGlobalNavigationLinks()\t\n{\t\n\tReport.createTestLogHeader(\"Anonymous Submit meter read\", \"Verifies the Your details Gas Page Navigation Links\");\n\tSMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"GloabalSMRGas\");\n\t\tnew SubmitMeterReadAction()\n\t\t.BgbnavigateToLogin()\n\t .BgbloginDetails(smrProfile)\n\t .BgbverifyAfterLogin()\n\t .clickSubmitMeterReadLink()\t\n\t\t.verifyGlobalNavigationLink();\n}", "@When(\"I am on Home page\")\n public void homepage_i_am_on_home_page() {\n homePage = new HomePage(driver);\n homePage.check_page_title();\n }", "public static void main(String[] args) {\n\t\tURLContent uc = new URLContent();\n\t\tuc.fetchTitleString(\"http://www.nytimes.com/2003/08/07/us/first-test-for-freshmen-picking-roommates.html\");\n\t}", "@Test (groups = {\"Regression\"})\n public void verifyElementsOnHarrowWebsiteHomePageAreDisplayed() {\n homePage.isDisplayedServicesBtn();\n }", "@Test\n public void stage04_searchAndPage() {\n String keyWord = \"bilgisayar\";\n Integer pageNumber = 2;\n //Searching with parameters\n SearchKey searchKey = new SearchKey(driver);\n HomePage homePage = searchKey.search(keyWord, pageNumber);\n //Getting current url\n String currentUrl = homePage.getCurrentURL();\n //Testing if this is desired page\n assertEquals(currentUrl, \"https://www.gittigidiyor.com/arama/?k=bilgisayar&sf=2\");\n //logging\n if (currentUrl.equals(\"https://www.gittigidiyor.com/arama/?k=bilgisayar&sf=2\")) {\n logger.info(\"( stage02_testOpenLoginPage )Actual location : \" + currentUrl);\n } else {\n logger.error(\"( stage02_testOpenLoginPage )Actual location : \" + currentUrl);\n }\n }", "@Given(\"user is on admin login page\")\r\npublic void user_is_on_admin_login_page() {\n\r\n\tdriver.get(\"http://uniformm1.upskills.in/admin/index.php?route=common/dashboard&token=GojamxBwtSmLEAaHnCBgb3P8yKe4N2vQ\");\r\n\tString curTitle = driver.getTitle();\r\n\t\r\n\tAssert.assertEquals(curTitle, \"Administration\");\r\n}", "@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void verifyMeterReadingGasOverLayLink()\t\n{\t\n\tReport.createTestLogHeader(\"Anonymous Submit meter read\", \"Verifies the Your details Gas Page Overlay Links\");\nSMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"AnonymousSMRGas\");\n\t\tnew SubmitMeterReadAction()\n\t\t.openSMRpage(\"Gas\")\n\t\t.verifyGassitenoWhereCanIfindthisLink(smrProfile);\n\t\t\n}", "@Given(\"^User is on netbanking landing page$\")\r\n public void user_is_on_netbanking_landing_page() throws Throwable {\n System.out.println(\"Navigated to Login URL\");\r\n }", "@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void verifyYourdetailsGasOverLayLink()\t\n{\t\n\tReport.createTestLogHeader(\"Anonymous Submit meter read\", \"verify the Gas OverLay Link's In Your details\");\n\n\t\tnew SubmitMeterReadAction()\n\t\t.openSMRpage(\"Gas\")\t\t\n\t\t.verifyGasWhyWeNeedThisLink()\n\t\t.verifyGasAcctnoWhereCanIfindthisLink()\n\t\t.verifyGasMeterPointWhereCanIfindthisLink()\n\t\t.verifyGasMeterIDWhereCanIfindthisLink();\n}", "@Test\n public void testHomepageUsageText()\n {\n try {\n WebElement e = driver.findElement(By.className(\"row\"));\n String elementText = e.getText();\n assertTrue(elementText.contains(\"Used for CS1632 Software Quality Assurance, taught by Bill Laboon\"));\n } catch (NoSuchElementException e) {\n fail();\n }\n }", "@org.testng.annotations.Test\n public void test17_3(){\n testInfo.id(\"test17_3\").suite(\"test_Inspiration\").name(\"Inspiration page from start + check blocks.\");\n photolab.forceStop();\n photolab.open();\n photolab.main.waitToLoad();\n photolab.main.selectCategoryBar(\"Inspiration\");\n photolab.main.selectBlock(\"Top\");\n photolab.main.selectBlock(\"Trending\");\n photolab.main.selectBlock(\"Recent\");\n photolab.main.tapMenu();\n photolab.menu.tapHome();\n }", "@Test\n public void searchForCourse(){\n UoMSearchPage page = new UoMSearchPage(driver);\n page.get();\n page.searchForStudies(\"Software Development\");\n assertTrue(page.isSoftwareDevelopmentComponentPresent());\n }", "@Test(priority = 99)\r\n@Epic(\"BILLS PAYMENT\")\r\n@Features(value = { @Feature(value = \"SCHOOL FEES PAYMENTS\") })\r\n@Step (\"Verify that system is able to search and display correct school Name school code and Bank branch when user click on search for school functionality\")\r\npublic void Verify_that_system_is_able_to_search_and_display_correct_school_name_school_code_and_Bank_branch_when_user_click_on_search_for_school_functionality() {\n\tdriver.findElement(By.xpath(\"//a[contains(.,'Home')]\")).click();\r\n\tWebDriverWait wait = new WebDriverWait(driver, 15);\r\n\twait.until(ExpectedConditions.visibilityOfElementLocated(By.linkText(\"Bill Payment\")));\r\n\tdriver.findElement(By.linkText(\"Bill Payment\")).click();\r\n\tWebDriverWait wait1 = new WebDriverWait(driver, 15);\r\n\twait1.until(\r\n\t\tExpectedConditions.visibilityOfElementLocated(By.xpath(\"//div[text()=' Institutional Payments ']\")));\r\n\tdriver.findElement(By.xpath(\"//div[text()=' Institutional Payments ']\")).click();\r\n\tdriver.findElement(By.xpath(\"//div[@class='col-in schoolFee']\")).click();\r\n\tdriver.findElement(By.id(\"FORM_SF_SCHOOL_INFO-SEARCH_SCHOOL_BY\")).click();\r\n\t{\r\n\t WebElement dropdown = driver.findElement(By.id(\"FORM_SF_SCHOOL_INFO-SEARCH_SCHOOL_BY\"));\r\n\t dropdown.findElement(By.xpath(\"//option[. = 'Account Number']\")).click();\r\n\t}\r\n\tdriver.findElement(By.id(\"FORM_SF_SCHOOL_INFO-SEARCH_SCHOOL_BY\")).click();\r\n\tdriver.findElement(By.id(\"FORM_SF_SCHOOL_INFO-SF_ACCOUNT_NUMBER\")).click();\r\n\tdriver.findElement(By.id(\"FORM_SF_SCHOOL_INFO-SF_ACCOUNT_NUMBER\")).sendKeys(\"01129080146300\");\r\n\tdriver.findElement(By.id(\"FORM_SF_SCHOOL_INFO-SEARCH_SCHOOL\")).click();\r\n\tdriver.findElement(By.cssSelector(\".ct-formlayout-SCHOOL_NAME .ct-form__ip\")).click();\r\n\tdriver.findElement(By.cssSelector(\".ct-formlayout-SCHOOL_CODE .ct-form__ip\")).click();\r\n\tSystem.out.println(\"TC13 Verify_that_system_is_able_to_search_and_display_correct_school_name_school_code_and_Bank_branch_when_user_click_on_search_for_school_functionality |Success:\");\r\n\r\n\t}", "@Test\n\t\t public void testLocationSix() {\n\t\t \tdriver.get(\"http://mq-devhost-lm52.ihost.aol.com:9002/us/nj/upper-montclair/\");\n\t\t \tAssertJUnit.assertEquals(Utils.getElementText(driver,PageLayoutSelectors.TOP_NAME),\"Upper Montclair\");\n\t\t }", "@Test\n public void seeInfoAboutAisleFromSearch(){\n String itemTest = \"Potatoes\";\n String aisleCheck = \"Aisle: 2\";\n String aisleDescriptionCheck = \"Aisle Description: Between Aisle 1 and Frozen Aisle\";\n onView(withId(R.id.navigation_search)).perform(click());\n onView(withId(R.id.SearchView)).perform(typeText(itemTest));\n onData(anything()).inAdapterView(withId(R.id.myList)).atPosition(0).perform(click());\n onView(withText(\"VIEW MORE INFORMATION\")).perform(click());\n onView(withId(android.R.id.message)).check(matches(allOf(withSubstring(aisleCheck), isDisplayed())));\n onView(withId(android.R.id.message)).check(matches(allOf(withSubstring(aisleDescriptionCheck), isDisplayed())));\n onView(withText(\"OK\")).perform(click());\n }", "@Test(groups=\"Smoke\")\n\tpublic void Test_Sports_Is_Clicked() throws IOException, Exception, InterruptedException\n\t{\n\t\t\tAssert.assertTrue(driver.getCurrentUrl().contains(\"sports\"));\n\t\t\t\n\t\t\n\t}", "@Test(priority=1)\n\tpublic void validateContestInHomePage()\n\t{\n\t\tPickRightHomePage p = new PickRightHomePage(driver);\n\t\tp.getJoinAsinvestor();\n\n\t\tLoginOrSignUpPage l = new LoginOrSignUpPage(driver);\n\t\tl.getUseMobileNumber();\n\t\tl.getDropDown();\n\t\tl.setSearchField(\"India\");\n\t\tl.getCountry();\n\t\tl.setMobileNumberField(number);\n\t\tl.getNextButton();\n\t\te = new EnterOtpPage(driver);\n\t\te.setOtp();\n\t\te.getCheckBox();\n\t\te.getNextButton();\n\t\th=new HomePage(driver);\n\t\tJavascriptExecutor j=(JavascriptExecutor)driver;\n\t\tj.executeScript(\"arguments[0].scrollIntoView(true)\",h.contest);\n\t\tAssert.assertTrue(h.contest.isDisplayed());\n\t\tAssert.assertTrue(h.participateButtonInTopStock.getText().equalsIgnoreCase(\"Participate\"));\n\t\tAssert.assertTrue(h.participateButtonPredictNifty.getText().equalsIgnoreCase(\"Participate\"));\n\t\t\n\t}", "@Then(\"^homepage is visible$\")\n\tpublic void homepage_is_visible() throws Throwable {\n\t\tString verify = driver.findElement(By.xpath(\"//marquee[@class='heading3']\")).getText();\n\t\tAssert.assertEquals(verify, \"Welcome To Customer's Page of Guru99 Bank\", \"Error in loading!\");\n\t}", "@Test\r\n public void testHomePageButton() {\r\n WicketTester tester = new WicketTester(new GreenometerApplication());\r\n tester.startPage(StopLightPage.class);\r\n tester.assertRenderedPage(StopLightPage.class);\r\n\r\n tester.clickLink(\"HomePageButton\", false);\r\n tester.assertRenderedPage(GreenOMeterPage.class);\r\n }", "@Test\n public void selenium(){\n LandingPage landingPage = new LandingPage();\n landingPage.setDriver(driver);\n landingPage\n .assertTitle()\n .clickFindMeeting()\n .assertTitle()\n .search(\"10011\")\n .printFirstLocation()\n .printFirstDistance()\n .clickOnLocation()\n .assertLocationMatches()\n .printTodaysHours();\n }", "@Test\n public void validateHomePageTest() {\n HomePage homePage = new HomePage(getDriver());\n log.info(\"RUN AUTOTEST TO VALIDATE HOMEPAGE\");\n homePage\n .goToHomePage_method()\n .validateHomePage();\n }", "@Test\n\t\t public void testLocationOne() {\n\t\t \tdriver.get(\"http://mq-devhost-lm52.ihost.aol.com:9002/us/nj/upper-montclair/bellevue-ave-valley-rd\");\n\t\t \tAssertJUnit.assertEquals(Utils.getElementText(driver,PageLayoutSelectors.TOP_NAME),\"Bellevue Ave & Valley Rd\");\n\t\t }", "HtmlPage clickSiteLink();", "@Override\r\n public boolean shouldVisit(WebURL url) {\r\n String href = url.getURL().toLowerCase();\r\n return !FILTERS.matcher(href).matches() && href.startsWith(\"http://fksis.bsuir.by/\");\r\n// \"http://www.ics.uci.edu/\");\r\n }", "@Given(\"I am on Magalu HomePage\")\n\tpublic void i_am_on_the_homepage() {\n\t\tdriver.get(Homeurl);\n\t}", "@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void verifyGasYourdetailsPageNavigationLink()\t\n{\t\n\tReport.createTestLogHeader(\"Anonymous Submit meter read\", \"Verifies the Your details Gas Page Navigation Links\");\n\t\tnew SubmitMeterReadAction()\n\t\t.openSMRpage(\"Gas\")\t\t\n\t\t.verifyGasNavigationLinks();\n}", "public void verifyUserIsOnHomepage()\n {\n asserttextmessage(getTextFromElement(_welcomeTileText),expected,\"user on home page\");\n\n }", "@Test\n\t\t public void testLocationFive() {\n\t\t \tdriver.get(\"http://mq-devhost-lm52.ihost.aol.com:9002/us/nj/upper-montclair/preston-pl-valley-rd/\");\n\t\t \tAssertJUnit.assertEquals(Utils.getElementText(driver,PageLayoutSelectors.TOP_NAME),\"Preston Pl & Valley Rd\");\n\t\t }", "public HomePageTest(){\n\t\tsuper();\n\t}", "@When(\"^title of the page is Guru$\")\n\tpublic void title_of_the_page_is_Guru() {\n\t\tString title= driver.getTitle();\n\t\t Assert.assertEquals(title, \"Guru99 Bank Home Page\");\n\t\t System.out.println(title);\n\t}", "@Then(\"User can view the dashboard\")\npublic void user_can_view_the_dashboard() {\n addCust = new AddcustomerPage(driver);\n Assert.assertEquals(\"Dashboard / nopCommerce administration\", addCust.getPageTitle());\n \n}", "@Given(\"^user is on the main page of website$\")\n public void userIsOnTheMainPageOfWebsite() {\n }", "@Test\n\t\t public void testLocationFour() {\n\t\t \tdriver.get(\"http://mq-devhost-lm52.ihost.aol.com:9002/us/nj/upper-montclair/bellevue-ave-valley-rd\");\n\t\t \tAssertJUnit.assertEquals(Utils.getElementText(driver,PageLayoutSelectors.TOP_NAME),\"Bellevue Ave & Valley Rd\");\n\t\t }", "@Given(\"^user is on google search page \\\"([^\\\"]*)\\\"$\")\n\tpublic void user_is_on_google_search_page_something(String url) throws Throwable {\n\t\thomepage.get(url);\n\t}", "@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void verifyMeterReadingElectricityOverLayLink()\t\n{\t\n\tReport.createTestLogHeader(\"Anonymous Submit meter read\", \"verify the Electricity reading meter Overlay in Reading Page\");\nSMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"SAPSMRElectricityUserforsingleMeter\");\n\t\tnew SubmitMeterReadAction()\n\t\t.openSMRpage(\"Electricity\")\n\t\t.verifyElectricitysitenoWhereCanIfindthisLink(smrProfile);\t\t\n\t\t\n}", "@Then(\"^Homepage is populated$\")\r\n public void homepage_is_populated() throws Throwable {\n \tSystem.out.println(\"Validated HomePage\");\r\n \r\n }", "@Test\n public void testHomepageWelcomeText()\n {\n try {\n WebElement e = driver.findElement(By.className(\"lead\"));\n String elementText = e.getText();\n assertTrue(elementText.contains(\"Welcome, friend,\") && elementText.contains(\"to a land of pure calculation\"));\n } catch (NoSuchElementException e) {\n fail();\n }\n }", "@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void verifyElectricityYourdetailsPageNavigationLink()\t\n{\t\n\tReport.createTestLogHeader(\"Anonymous Submit meter read\", \"Verifies the Your details Electricity Page Navigation Links\");\n\n\t\tnew SubmitMeterReadAction()\n\t\t.openSMRpage(\"Electricity\")\t\t\n\t\t.verifyElectricNavigationLinks();\n\t\t\n}", "@Then(\"^titel of page is \\\"([^\\\"]*)\\\"$\")\r\n public void titel_of_page_is(String arg1) throws Throwable {\n throw new PendingException();\r\n }", "@Test\n\tpublic void TestAct9() {\n\t\tdriver.findElement(By.xpath(\"//li[5]/a\")).click();\n\t\tdriver.findElement(By.xpath(\"//div/section[2]/div[2]/div[2]/div[2]/div[2]/a\")).click();\n\t\tdriver.findElement(By.id(\"user_login\")).sendKeys(\"root\");\n\t\tdriver.findElement(By.id(\"user_pass\")).sendKeys(\"pa$$w0rd\");\n\t\tdriver.findElement(By.id(\"wp-submit\")).click();\n\n\t\t//Viewing the course for Activity 9\n\t\tdriver.findElement(By.xpath(\"//li[2]/a\")).click();\n\t\tdriver.findElement(By.xpath(\"//div[2]/p[2]/a\")).click();\n\t\tdriver.findElement(By.xpath(\"//div[1]/a/div[2]\")).click();\n\n\t\tString t = driver.getTitle();\n\t\tAssert.assertEquals(\"Developing Strategy – Alchemy LMS\", t);\n\n\t\tWebElement s = driver.findElement(By.xpath(\"//div[4]/div[2]\"));\n\t\tString a = s.getText();\n\t\tBoolean c = a.contains(\"Mark Completed\");\n\n\t\tif (c==true)\n\t\t{\n\t\t\ts.click();\n\t\t\tSystem.out.println(\"Found \"+a+\", hence clicking on it.\");\n\t\t} \n\t\telse {\n\t\t\tSystem.out.println(\"Found \"+a+\", hence not clicking on it.\");}\n\t}", "@Then(\"User should be on product page\")\r\n\tpublic void user_should_be_on_product_page() \r\n\t{\n\t expected = \"Search\";\r\n\t \r\n\t String URL = driver.getCurrentUrl();\r\n\t if(URL.contains(expected))\r\n\t {\r\n\t \tSystem.out.println(\"TEST CASE 3 - PASSED\");\r\n\t }\r\n\t}", "@Test\r\n\tpublic void HomeePage() {\n\tSystem.setProperty(\"webdriver.chrome.driver\",\"C:\\\\chromedriver\\\\chromedriver.exe\");\r\n\tWebDriver driver = new ChromeDriver();\r\n\tString baseUrl = \"https://pharma-freelancer.com/uat/\";\r\n\tdriver.get(baseUrl);\r\n\tdriver.getTitle();\r\n\tdriver.manage().window().maximize();\r\n\tString expectedTitle = \"Online jobs in pharma | Jobs in pharma| Post resumes\";\r\n\tString actualTitle = \"\";\r\n driver.get(baseUrl);\r\n // get the actual value of the title\r\n actualTitle = driver.getTitle();\r\n //matching the titles \r\n if (actualTitle.contentEquals(expectedTitle)){\r\n System.out.println(\"Title matched\");\r\n } else {\r\n System.out.println(\"Title not matched\");\r\n }\r\n \r\n\r\nWebElement img = driver.findElement(By.xpath(\"/html/body/div[2]/div[1]/nav/div/div[1]/a/img[2]\"));\r\n//String img2 = img.getAttribute(\"src\");\r\n\r\nSystem.out.println(\"logo detected\");\r\n//This will scroll down the page by 1000 pixel vertical\t\t\r\nJavascriptExecutor jse = (JavascriptExecutor)driver;\r\njse.executeScript(\"window.scrollBy(0,250)\");\r\n\r\nWebElement h = driver.findElement(By.xpath(\"//*[@id=\\\"navbar-menu\\\"]/ul[1]/li[1]/a\"));\r\nh.click();\r\n//This will scroll down the page by 1000 pixel vertical\t\t\r\nJavascriptExecutor jse1 = (JavascriptExecutor)driver;\r\njse1.executeScript(\"window.scrollBy(0,250)\");\r\n\r\nSystem.out.println(\"home Page Verified\");\r\n\r\nWebElement j = driver.findElement(By.xpath(\"//*[@id=\\\"navbar-menu\\\"]/ul[1]/li[2]/a\"));\r\nj.click();\r\n//This will scroll down the page by 1000 pixel vertical\t\t\r\nJavascriptExecutor jse2 = (JavascriptExecutor)driver;\r\njse2.executeScript(\"window.scrollBy(0,250)\");\r\n\r\nSystem.out.println(\"job Page Verified\");\r\nWebElement c = driver.findElement(By.xpath(\"//*[@id=\\\"navbar-menu\\\"]/ul[1]/li[3]/a\"));\r\nc.click();\r\n\r\n//This will scroll down the page by 1000 pixel vertical\t\t\r\nJavascriptExecutor jse3 = (JavascriptExecutor)driver;\r\njse3.executeScript(\"window.scrollBy(0,250)\");\r\n\r\nSystem.out.println(\"candidate Page Verified\");\r\nWebElement e = driver.findElement(By.xpath(\"//*[@id=\\\"navbar-menu\\\"]/ul[1]/li[4]/a\"));\r\ne.click();\r\n\r\n//This will scroll down the page by 1000 pixel vertical\t\t\r\nJavascriptExecutor jse4 = (JavascriptExecutor)driver;\r\njse4.executeScript(\"window.scrollBy(0,250)\");\r\n\r\nSystem.out.println(\"employee Page Verified\");\r\nWebElement b = driver.findElement(By.xpath(\"//*[@id=\\\"navbar-menu\\\"]/ul[1]/li[5]/a\"));\r\nb.click();\r\n\r\n//This will scroll down the page by 1000 pixel vertical\t\t\r\nJavascriptExecutor jse5 = (JavascriptExecutor)driver;\r\njse5.executeScript(\"window.scrollBy(0,250)\");\r\n\r\nSystem.out.println(\"blog Page Verified\");\r\nWebElement r = driver.findElement(By.xpath(\"//*[@id=\\\"navbar-menu\\\"]/ul[1]/li[6]/a\"));\r\nr.click();\r\n\r\n//This will scroll down the page by 1000 pixel vertical\t\t\r\nJavascriptExecutor jse6 = (JavascriptExecutor)driver;\r\njse6.executeScript(\"window.scrollBy(0,250)\");\r\n\r\nSystem.out.println(\"rpo Page Verified\");\r\nWebElement l = driver.findElement(By.xpath(\"//*[@id=\\\"navbar-menu\\\"]/ul[2]/li[1]/a\"));\r\nl.click();\r\n\r\n//This will scroll down the page by 1000 pixel vertical\t\t\r\nJavascriptExecutor jse7 = (JavascriptExecutor)driver;\r\njse7.executeScript(\"window.scrollBy(0,250)\");\r\n\r\nSystem.out.println(\"signin Page Verified\");\r\nWebElement s = driver.findElement(By.xpath(\"//*[@id=\\\"navbar-menu\\\"]/ul[2]/li[2]/a\"));\r\ns.click();\r\n\r\n//This will scroll down the page by 1000 pixel vertical\t\t\r\nJavascriptExecutor jse8 = (JavascriptExecutor)driver;\r\njse8.executeScript(\"window.scrollBy(0,250)\");\r\n\r\nSystem.out.println(\"sign up Page Verified\");\r\n}", "private static List<InOut> getHtmlTestCases() {\n final List<InOut> testCases = new ArrayList<>();\n // <p> tag is allowed\n addTestCase(testCases, \"<p>test</p>\");\n // <h7> tag is not allowed\n addTestCase(testCases, \"<h7>test</h7>\", \"test\");\n // href's are allowed to http, https, mailto and ANET objects, but nofollow is added\n addTestCase(testCases, \"<a href=\\\"http://www.example.com/\\\">test</a>\",\n \"<a href=\\\"http://www.example.com/\\\" rel=\\\"nofollow\\\">test</a>\");\n addTestCase(testCases, \"<a href=\\\"https://www.example.com/\\\">test</a>\",\n \"<a href=\\\"https://www.example.com/\\\" rel=\\\"nofollow\\\">test</a>\");\n addTestCase(testCases, \"<a href=\\\"mailto:[email protected]/\\\">test</a>\",\n \"<a href=\\\"mailto:nobody&#64;example.com/\\\" rel=\\\"nofollow\\\">test</a>\");\n addTestCase(testCases,\n \"<a href=\\\"urn:anet:people:00000000-0000-0000-0000-000000000000\\\">test</a>\",\n \"<a href=\\\"urn:anet:people:00000000-0000-0000-0000-000000000000\\\" rel=\\\"nofollow\\\">test</a>\");\n // href's to ftp and data are not allowed\n addTestCase(testCases, \"<a href=\\\"ftp://ftp.example.com/\\\">test</a>\", \"test\");\n addTestCase(testCases, \"<a href=\\\"data:MMM\\\">test</a>\", \"test\");\n // but title is\n addTestCase(testCases, \"<a href=\\\"data:MMM\\\" title=\\\"test\\\">test</a>\",\n \"<a title=\\\"test\\\">test</a>\");\n // in-line <img> is allowed\n addTestCase(testCases, \"<img src=\\\"data:image/jpeg;base64;MMM\\\" />\");\n // <img> reference is not allowed\n addTestCase(testCases, \"<img src=\\\"http://www.wexample.com/logo.gif\\\" />\", \"\");\n // allowed <img> attributes\n addTestCase(testCases,\n \"<img title=\\\"test\\\" align=\\\"top\\\" alt=\\\"test\\\" border=\\\"0\\\" name=\\\"test\\\" height=\\\"1\\\" width=\\\"1\\\" hspace=\\\"0\\\" vspace=\\\"0\\\" />\");\n // disallowed <img> attributes\n addTestCase(testCases, \"<img crossorigin=\\\"anonymous\\\" />\", \"\");\n addTestCase(testCases, \"<img onload=\\\"test();\\\" />\", \"\");\n // <script> tag is disallowed\n addTestCase(testCases, \"<script type=\\\"text/javascript\\\">alert(\\\"Hello World!\\\");</script>\",\n \"\");\n return testCases;\n }", "@Test(enabled = false)\n public void testCase3() {\n String subHeading = driver.findElement(By.className(\"sub\")).getText();\n Assert.assertTrue(subHeading.contains(\"Practice\"));\n }", "protected DocumentTestObject homeMembership() \n\t{\n\t\treturn new DocumentTestObject(\n getMappedTestObject(\"homeMembership\"));\n\t}", "public URL getHtmlDescription();", "public void VerifySkupageItemDesc(String Linktext){\r\n\t\tString countryy=\"Germany,Denmark\";\r\n\t\tString LinkText = getValue(Linktext);\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Item description should match with \"+LinkText+\" From SKU Page\");\r\n\t\ttry{\r\n\t\t\tif(countryy.contains(countries.get(countrycount))){\r\n\t\t\t\tif(getAndVerifyPartialText(locator_split(\"txtSKUNametitle\"), LinkText)){\r\n\t\t\t\t\tSystem.out.println(LinkText+\" is present\");\r\n\t\t\t\t\tReporter.log(\"PASS_MESSAGE:- \"+LinkText+\" is present in SKU Page\");\r\n\t\t\t\t} else{ \r\n\t\t\t\t\tthrow new Error(\"Actual Text: \"+LinkText+\" is not present in SKU Page\");\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\tif(getAndVerifyPartialText(locator_split(\"txtSKUHeadertitle\"), LinkText)){\r\n\t\t\t\t\tSystem.out.println(LinkText+\" is present\");\r\n\t\t\t\t\tReporter.log(\"PASS_MESSAGE:- \"+LinkText+\" is present in SKU Page\");\r\n\t\t\t\t} else{ \r\n\t\t\t\t\tthrow new Error(\"Actual Text: \"+LinkText+\" is not present in SKU Page\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tcatch(NoSuchElementException e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- \"+elementProperties.getProperty(\"txtSKUHeadertitle\")+\" / \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"txtSKUNametitle\")\r\n\t\t\t\t\t+\" is not Present\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"txtSKUHeadertitle\")\r\n\t\t\t\t\t+ elementProperties.getProperty(\"txtSKUNametitle\")\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\r\n\t\tcatch(Error Er){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Actual Text: \"+LinkText+\" is not present in SKU Page\");\r\n\t\t\tthrow new Error(\"Expected text - '\"+LinkText+\" is not present\");\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n WebDriverManager.chromedriver().setup();\n\n // 1.Open Chrome browser\n WebDriver driver = new ChromeDriver();\n\n driver.manage().window().maximize();\n\n // 2.Go to http://practice.cybertekschool.com\n driver.get(\"http://practice.cybertekschool.com\");\n\n // 3.Verify URL contains Expected: cybertekschool\n String currentUrl = driver.getCurrentUrl();\n System.out.println(\"currentUrl = \" + currentUrl);\n String needs = \"cybertekschool\";\n\n // 4.Verify title: Expected: Practice\n String currentTitle = driver.getTitle();\n System.out.println(\"currentTitle = \" + currentTitle);\n String wants = \"Practice\";\n\n if(currentUrl.contains(needs) && currentTitle.contains(wants)){\n System.out.println(\"URL and Title verification test passed\");\n }else{\n System.out.println(\"URL and Title verification test failed\");\n }\n\n\n\n }", "public void setupmethod() throws InterruptedException,AWTException, IOException {\r\n\r\n\t\tChromeOptions chrome_Profile = new ChromeOptions();\r\n\t\tString service = conf.getservicestring();\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", service);\r\n\t\tdriver = new ChromeDriver(chrome_Profile);\r\n\t\tuser_role = PageFactory.initElements(driver,UserRoleElements.class );\r\n\t\tdriver.get(conf.getUrl());\r\n\t\tSystem.out.println(driver.getCurrentUrl());\r\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\r\n\t\tdriver.manage().window().maximize();\r\n\t\t/*\r\n\t\t * Description :- This code snippet checks if the correct url is opened and user is Navigated to Teach Away home page \r\n\t\t */\t\r\n\t\t String ExpectedTitle_Main = \"Teach Abroad - Teach Away - Discover Where Teaching Can Take You\";\r\n\t\t softAssertion.assertTrue(ExpectedTitle_Main.equals(driver.getTitle()), \"Title does not match\");\r\n\t\t softAssertion.assertAll();\r\n\t\t\t\t\t\t\r\n\t\t\t}", "@Test(priority=1)\r\n\tpublic void getTitle() {\r\n\t\tString title=driver.getTitle();\r\n\t\tSystem.out.println(( title).toUpperCase());\r\n\t}", "public void testadvancedSearchTitleAndBody(){\n\t\t\n//\t\tmanager.advancedSearchTitleAndBody(ElasticIndex.analyzed, \"List of international tennis player \",\" Andre Agassi\" );\n\t}", "public HomeSection enterUrl(){\r\n\t\tGlobal.driver.get(CONSTANT.proUrl);\r\n\t\treturn new HomeSection();\r\n\t}", "@Test\n\t\t public void testLocationTwo() {\n\t\t \tdriver.get(\"http://mq-devhost-lm52.ihost.aol.com:9002/us/nj/upper-montclair/preston-pl-valley-rd/\");\n\t\t \tAssertJUnit.assertEquals(Utils.getElementText(driver,PageLayoutSelectors.TOP_NAME),\"Preston Pl & Valley Rd\");\n\t\t }", "@Test\n\tpublic void jobPage() {\n\t\tWebElement jobLink = getDriver().findElement(By.linkText(\"Jobs\"));\n\t\tjobLink.click();\n\t\tWebElement header = getDriver().findElement(By.cssSelector(\"header>h1\"));\n\t\tString headerText = header.getText();\n\t\tAssert.assertEquals(\"Jobs\", headerText, \"Assert Header Text\");\n\n\t}", "String getOssHomepage();", "public void testSearchRules() throws Exception {\n Project project = new Project();\r\n \r\n DateFormatSymbols symbols = new DateFormatSymbols(Locale.US);\r\n \r\n for (int i = 0; i < 12; i++) {\r\n \r\n String month = symbols.getMonths()[i];\r\n String shortMonth = symbols.getShortMonths()[i];\r\n \r\n // Basic project info\r\n project.setId(i);\r\n project.setCategoryId(1);\r\n project.setAllowGuests(true);\r\n project.setMembershipRequired(false);\r\n project.setApproved(true);\r\n project.setClosed(false);\r\n project.setPortal(false);\r\n \r\n // Unique Title\r\n project.setTitle(month + \" test project\");\r\n project.setShortDescription(month + \" description word\");\r\n project.setKeywords(shortMonth);\r\n \r\n // Unique Location\r\n project.setCity(\"Virginia Beach\");\r\n project.setState(\"VA\");\r\n project.setPostalCode(\"234\" + String.valueOf(50 + i));\r\n \r\n // Random Rating for now\r\n project.setRatingCount(i + 1);\r\n project.setRatingValue(project.getRatingCount() * StringUtils.rand(1, 5));\r\n project.setRatingAverage(project.getRatingValue() / project.getRatingCount());\r\n \r\n // Index it\r\n ProjectIndexer indexer = new ProjectIndexer();\r\n indexer.add(snowballWriter, project, true);\r\n }\r\n \r\n QueryParser parser = new QueryParser(\"contents\", snowballAnalyzer);\r\n \r\n {\r\n // Make sure a single matching term yields a single hit\r\n SearchBean search = new SearchBean();\r\n search.setQuery(symbols.getMonths()[0]);\r\n search.setLocation(\"Virginia Beach\");\r\n assertNotNull(search.getQuery());\r\n assertNotNull(search.getLocation());\r\n search.parseQuery();\r\n assertTrue(search.isValid());\r\n \r\n String queryString = SearchUtils.generateProjectQueryString(search, UserUtils.createGuestUser().getId(), -1, null);\r\n assertNotNull(queryString);\r\n \r\n // (approved:1)\r\n // AND (guests:1)\r\n // AND (closed:0)\r\n // AND (website:0)\r\n // AND (\"january\"^20 OR january^15 OR january*^4) AND (location:(\"virginia beach\"^30))\r\n \r\n Query query = parser.parse(queryString);\r\n Hits hits = getSnowballSearcher().search(query);\r\n assertTrue(hits.length() == 1);\r\n }\r\n \r\n {\r\n // Make sure a single matching term stem yields a single hit\r\n SearchBean search = new SearchBean();\r\n search.setQuery(symbols.getMonths()[0] + \"'s\");\r\n search.setLocation(\"Virginia Beach\");\r\n assertNotNull(search.getQuery());\r\n assertNotNull(search.getLocation());\r\n search.parseQuery();\r\n assertTrue(search.isValid());\r\n \r\n String queryString = SearchUtils.generateProjectQueryString(search, UserUtils.createGuestUser().getId(), -1, null);\r\n assertNotNull(queryString);\r\n \r\n // (approved:1)\r\n // AND (guests:1)\r\n // AND (closed:0)\r\n // AND (website:0)\r\n // AND (\"january's\"^20 OR january's^15 OR january's*^4) AND (location:(\"virginia beach\"^30))\r\n \r\n Query query = parser.parse(queryString);\r\n Hits hits = getSnowballSearcher().search(query);\r\n assertTrue(hits.length() == 1);\r\n }\r\n \r\n {\r\n // Make sure multiple matching words yield two hits\r\n SearchBean search = new SearchBean();\r\n search.setQuery(symbols.getMonths()[0] + \" \" + symbols.getMonths()[1]);\r\n search.setLocation(\"Virginia Beach\");\r\n search.parseQuery();\r\n assertTrue(search.isValid());\r\n \r\n String queryString = SearchUtils.generateProjectQueryString(search, UserUtils.createGuestUser().getId(), -1, null);\r\n assertNotNull(queryString);\r\n \r\n // (approved:1)\r\n // AND (guests:1)\r\n // AND (closed:0)\r\n // AND (website:0)\r\n // AND (\"january february\"^20 OR january^15 OR february^14 OR january*^4 OR february*^3) AND (location:(\"virginia beach\"^30))\r\n \r\n Query query = parser.parse(queryString);\r\n Hits hits = getSnowballSearcher().search(query);\r\n assertTrue(hits.length() == 2);\r\n }\r\n \r\n {\r\n // Make sure wilcards yield multiple hits\r\n SearchBean search = new SearchBean();\r\n search.setQuery(\"j\");\r\n search.setLocation(\"Virginia Beach\");\r\n search.parseQuery();\r\n assertTrue(search.isValid());\r\n \r\n // Look for data with a \"j\" for comparison\r\n int jCount = 0;\r\n for (int i = 0; i < symbols.getMonths().length; i++) {\r\n if (symbols.getMonths()[i].toLowerCase().indexOf(\"j\") > -1 ||\r\n symbols.getShortMonths()[i].toLowerCase().indexOf(\"j\") > -1) {\r\n ++jCount;\r\n }\r\n }\r\n assertTrue(jCount > 0);\r\n \r\n String queryString = SearchUtils.generateProjectQueryString(search, UserUtils.createGuestUser().getId(), -1, null);\r\n assertNotNull(queryString);\r\n \r\n // (approved:1)\r\n // AND (guests:1)\r\n // AND (closed:0)\r\n // AND (website:0)\r\n // AND (\"j\"^20 OR j^15 OR j*^4) AND (location:(\"virginia beach\"^30))\r\n \r\n Query query = parser.parse(queryString);\r\n Hits hits = getSnowballSearcher().search(query);\r\n assertTrue(hits.length() == jCount);\r\n }\r\n \r\n {\r\n // Make sure alternate locations do not yield any hits\r\n SearchBean search = new SearchBean();\r\n search.setQuery(symbols.getMonths()[0]);\r\n search.setLocation(\"Norfolk\");\r\n search.parseQuery();\r\n \r\n String queryString = SearchUtils.generateProjectQueryString(search, UserUtils.createGuestUser().getId(), -1, null);\r\n \r\n Query query = parser.parse(queryString);\r\n Hits hits = getSnowballSearcher().search(query);\r\n assertTrue(hits.length() == 0);\r\n }\r\n \r\n {\r\n // Make sure locations as query terms do not yield any hits\r\n SearchBean search = new SearchBean();\r\n search.setQuery(\"Virginia Beach\");\r\n search.setLocation(\"Virginia Beach\");\r\n search.parseQuery();\r\n \r\n String queryString = SearchUtils.generateProjectQueryString(search, UserUtils.createGuestUser().getId(), -1, null);\r\n \r\n Query query = parser.parse(queryString);\r\n Hits hits = getSnowballSearcher().search(query);\r\n assertTrue(hits.length() == 0);\r\n }\r\n }", "@Test\n\t\t public void testLocationThree() {\n\t\t \tdriver.get(\"http://mq-devhost-lm52.ihost.aol.com:9002/us/nj/upper-montclair/\");\n\t\t \tAssertJUnit.assertEquals(Utils.getElementText(driver,PageLayoutSelectors.TOP_NAME),\"Upper Montclair\");\n\t\t }", "public interface HomePageConstants {\r\n\tpublic static final String MYTASKS=\"html/body/div[1]/div[1]/div/div[2]/ul[1]/li[2]/a\";\r\n}", "@Given(\"User is on google home page\")\npublic void user_is_on_google_home_page() {\n System.out.println(\"Given-Homepage\");\n}", "@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void ValidateOverlay()\n{\t\t\n\t Report.createTestLogHeader(\"Submit Meter Read\", \"Verify whether Account number overlay is getting displayed by clicking link in Global Submit meter read landing page\");\n\tSMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"GlobalSMRMultiDialMetersite\");\n\tnew SubmitMeterReadAction()\n\t.BgbnavigateToLogin()\n .BgbloginDetails(smrProfile)\n .BgbverifyAfterLogin()\n .clickSubmitMeterReadLink()\n .VerifySearchFieldOverlay(); \n}", "public void verifyPage() {\n\t\twaitForPageToLoad();\n\t\tString title = driver.getTitle();\n\t\tSystem.out.println(title);\n\t\tAssert.assertEquals(title,\"News: India News, Latest Bollywood News, Sports News, Business & Political News, National & International News | Times of India\");\n\t}", "@Given(\"User is on the HomePage\")\r\n\tpublic void user_is_on_the_home_page() \r\n\t{\n\t driver.get(\"https://lkmdemoaut.accenture.com/TestMeApp/fetchcat.htm\");\r\n\t driver.findElement(By.linkText(\"SignIn\")).click();\r\n\t \r\n\t WebDriverWait wait = new WebDriverWait(driver, 10);\r\n\t wait.until(ExpectedConditions.visibilityOf(driver.findElement(By.name(\"userName\"))));\r\n\t \r\n\t driver.findElement(By.id(\"userName\")).sendKeys(\"Lalitha\");\r\n\t driver.findElement(By.id(\"password\")).sendKeys(\"password123\");\r\n\t driver.findElement(By.name(\"Login\")).click();\r\n\t}", "@Test\n public void testAdvancedSearchPage() throws InterruptedException {\n log.info(\"Go to Homepage \" );\n log.info(\"Click on Advanced Search link in footer \" );\n WebElement advancedSearchButton = driver.findElement(By.partialLinkText(\"Advanced Search\"));\n advancedSearchButton.click();\n log.info(\"Confirm Adavanced Search Page is displayed in browser\" );\n assertTrue(driver.getCurrentUrl().contains(\"search-advanced\"));\n }", "@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void VerifyLinkNavigationsOfUploadMeter()\n{\t\t\n\t Report.createTestLogHeader(\"Submit Meter Read\",\"Verify the link navigations of Upload meter reads page\");\n\tSMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"GlobalSMRMultiDialMetersite\");\n\tnew SubmitMeterReadAction()\n\t.BgbnavigateToLogin()\n .BgbloginDetails(smrProfile)\n .BgbverifyAfterLogin()\n .clickSubmitMeterReadLink()\n .clickUploadMeterReadLinks()\n\t.verifyUploadMeterPageNavigationLinks();\n}", "@Override\n\tpublic void process(Page page) {\n\t\tboolean contain=false;\n\t\tint idindex=page.getUrl().toString().lastIndexOf(\"=\");\n\t\tString id=\"\";\n\t\tif(page.getUrl().toString().length()>=(idindex+1))\n\t\t id=page.getUrl().toString().substring(idindex+1);\n\t\tSystem.out.println(id);\n\t\tif(id.contains(\".\"))\n\t\t{\n\t\t\tcontain=true;\n\t\t\tSystem.out.println(\"contain is true\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tString ziduan=page.getHtml().xpath(\"//tbody/tr[3]/td[1]/text()\").all().get(0);\n\t\t\tString legal=\"法律状态:\";\n\t\t\tif(ziduan.equals(legal))\n\t\t\t{\n\t\t\t\tcontain=true;\n\t\t\t}\n\t\t}\n\t\t\n\t\t/*`patent_name` '专利名称',\n\t\t `patent_type` '专利类型',\n\t\t `legal_status`'法律状态',\n\t\t `abstract` '文摘',\n\t\t `sovereignty` '主权项',\n\t\t `apply_data` '申请日期',\n\t\t `public_data`'公开(公告)日期',\n\t\t `patent_number` '申请(专利)号',\n\t\t `public_number` '公开(公告)号',\n\t\t `main_type_number` '主分类号',\n\t\t `type_number` '分类号',\n\t\t `apply_people` '申请人',\n\t\t `patent_people` '发明人',\n\t\t `people_address` '主申请人地址',\n\t\t `city_code` '省市、代码',\n\t\t */\n\t\t\n\t\tpage.putField(\"patent_name\", page.getHtml().xpath(\"//tbody/tr[1]/td[2]/text()\").all().get(0));\n\t\t\n\t\t//x类\n\t\tif(contain)\n\t\t{\n\t\t\t//专利类型\n\t\t\tpage.putField(\"patent_type\", page.getHtml().xpath(\"//tbody/tr[2]/td[2]/text()\").all().get(0));\n\t\t\t\n\t\t\t//法律状态\n\t\t\tList<String> legal=new ArrayList<String>();\n\t\t\tlegal=page.getHtml().xpath(\"//tbody/tr[3]/td[2]/div/div/span/text()\").all();\n\t\t\tString templegal=\"\";\n\t\t\tfor(int i=0;i<legal.size();i++)\n\t\t\t\ttemplegal+=legal.get(i);\n\t\t\tpage.putField(\"legal_status\",templegal);\n\t\t\t\n\t\t\t//文摘\n\t\t\tpage.putField(\"abstract\", page.getHtml().xpath(\"//tbody/tr[4]/td[2]//*/text()\").all().get(0));\n\t\t\t\n\t\t\t//主权项\n\t\t\tpage.putField(\"sovereignty\", page.getHtml().xpath(\"//tbody/tr[5]/td[2]//*/text()\").all().get(0));\n\t\t\t\n\t\t\t//申请日期\n\t\t\tpage.putField(\"apply_date\", page.getHtml().xpath(\"//tbody/tr[6]/td[2]/span/text()\").all().get(0));\n\t\t\t\n\t\t\t//公开日期\n\t\t\tpage.putField(\"public_date\",page.getHtml().xpath(\"//tbody/tr[7]/td[2]/span/text()\").all().get(0));\n\t\t\t\n\t\t\t//申请号\n\t\t\tpage.putField(\"patent_number\",page.getHtml().xpath(\"//tbody/tr[8]/td[2]/span/text()\").all().get(0));\n\t\t\t\n\t\t\t//公开号\n\t\t\tpage.putField(\"public_number\", page.getHtml().xpath(\"//tbody/tr[9]/td[2]/span/text()\").all().get(0));\n\t\t\t\n\t\t\t//主分类号\n\t\t\tpage.putField(\"main_type_number\",page.getHtml().xpath(\"//tbody/tr[10]/td[2]/span/text()\").all().get(0));\n\t\t\t\n\t\t\t//分类号\n\t\t\tpage.putField(\"type_number\",page.getHtml().xpath(\"//tbody/tr[11]/td[2]/span/text()\").all().get(0));\n\t\t\t\n\t\t\t//申请人\n\t\t\tpage.putField(\"apply_people\",page.getHtml().xpath(\"//tbody/tr[6]/td[4]/span/text()\").all().get(0));\n\t\t\t\n\t\t\t//发明人\n\t\t\tpage.putField(\"patent_people\",page.getHtml().xpath(\"//tbody/tr[7]/td[4]/span/text()\").all().get(0));\n\t\t\t\n\t\t\t//主申请人地址\n\t\t\tpage.putField(\"people_address\", page.getHtml().xpath(\"//tbody/tr[10]/td[4]/span/text()\").all().get(0));\n\t\t\t\n\t\t\t//省市代码\n\t\t\tpage.putField(\"city_code\", page.getHtml().xpath(\"//tbody/tr[11]/td[4]/span/text()\").all().get(0));\n\t\t}\n\t\t//n类\n\t\telse{\n\t\t\t//文摘\n\t\t\tpage.putField(\"abstract\", page.getHtml().xpath(\"//tbody/tr[2]/td[2]//*/text()\").all().get(0));\n\t\t\t\n\t\t\t//申请日期\n\t\t\tpage.putField(\"apply_date\",page.getHtml().xpath(\"//tbody/tr[3]/td[2]/text()\").all().get(0));\n\t\t\t\n\t\t\t//公开日期\n\t\t\tpage.putField(\"public_date\",page.getHtml().xpath(\"//tbody/tr[4]/td[2]/text()\").all().get(0));\n\t\t\t\n\t\t\t//申请号\n\t\t\tpage.putField(\"patent_number\", page.getHtml().xpath(\"//tbody/tr[5]/td[2]/text()\").all().get(0));\n\t\t\t\n\t\t\t//公开号\n\t\t\tpage.putField(\"public_number\", page.getHtml().xpath(\"//tbody/tr[6]/td[2]/text()\").all().get(0));\n\t\t\t\n\t\t\t//主分类号\n\t\t\tpage.putField(\"main_type_number\",page.getHtml().xpath(\"//tbody/tr[7]/td[2]/text()\").all().get(0));\n\t\t\t\n\t\t\t//分类号\n\t\t\tpage.putField(\"type_number\",page.getHtml().xpath(\"//tbody/tr[8]/td[2]/text()\").all().get(0));\n\t\t\t\n\t\t\t//申请人\n\t\t\t//如果申请人为空,则没有span标签\n\t\t\tList<String> apply=new ArrayList<String>();\n\t\t\tapply=page.getHtml().xpath(\"//tbody/tr[10]/td[2]/span/text()\").all();\n\t\t\tif(apply.size()==0)\n\t\t\t{\n\t\t\t\tpage.putField(\"apply_people\",page.getHtml().xpath(\"//tbody/tr[10]/td[2]/text()\").all().get(0));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tpage.putField(\"apply_people\",apply.get(0));\n\t\t\t}\n\t\t\t\n\t\t\t//发明人\n\t\t\t//如果发明人为空,则没有span标签\n\t\t\tapply=page.getHtml().xpath(\"//tbody/tr[11]/td[2]/span/text()\").all();\n\t\t\tif(apply.size()==0)\n\t\t\t{\n\t\t\t\tpage.putField(\"patent_people\",page.getHtml().xpath(\"//tbody/tr[11]/td[2]/text()\").all().get(0));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tpage.putField(\"patent_people\",apply.get(0));\n\t\t\t}\t\n\t\t}\t\n\t\t\n\t\tpage.putField(\"url\", page.getRequest().getUrl());\n//\t\tSystem.out.println(page.getResultItems().get(\"patent_name\"));\n\t}", "@Test \n\tpublic void homePageHeaderTest() {\n\t\tHomePage homePage = new HomePage(driver);\n\t\thomePage.OpenPage();\n\n\t\t// Validate page header \n\t\tString header = homePage.getHeader();\n\t\tAssert.assertTrue(header.equals(\"\"));\n\n\t\t// Fetch latin quote: \n\t\tString latinQuote = homePage.getQuote(\"latin\");\n\t\tAssert.assertEquals(\"\\\"Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit...\\\"\", latinQuote);\n\n\t\t// Fetch english quote, which is: \n\t\tString englishQuote = homePage.getQuote(\"english\"); \n\t\tAssert.assertEquals(\"\\\"There is no one who loves pain itself, who seeks after it and wants to have it, simply because it is pain...\\\"\",englishQuote); \n\t}", "@Test(priority=3, dependsOnMethods= {\"validateUrl\"})\n\tpublic void validateTtitle() {\n\t\t\n\t\tString actualTtitle = driver.getTitle();\n\t\tString expectedTitle = \"Messenger\";\n\t\tAssert.assertEquals(actualTtitle, expectedTitle);\n\t\t\n\t\t\n\t\t\n\t\tReporter.log(\"Validating the messanger page title\");\n\t\t\n\t}", "@Test(priority = 1,enabled = true)\n //@Parameters({\"browser\"})\n public void testPageTitleA1() throws Exception{\n driver.navigate().to(\"http://www.youtube.com\");\n //Thread.sleep(5000);\n String strPageTitle = driver.getTitle();\n System.out.println(\"Youtube : \"+strPageTitle);\n Assert.assertTrue(strPageTitle.contains(\"Flipkart\"), \"Youtube : Page title doesn't match : \"+strPageTitle);\n //Thread.sleep(5000);\n // driver.quit();\n }", "@Test\n public void testSearchBoxCategoriesList() throws InterruptedException {\n log.info(\"Go to Homepage \" );\n log.info(\"Go to Search Box in Header \" );\n log.info(\"Write urn \" );\n Actions builder = new Actions(driver);\n WebElement searchBox = driver.findElement(By.id(\"SearchInputs\")).findElement(By.tagName(\"input\"));\n searchBox.click();\n searchBox.sendKeys(\"urn\");\n WebElement categoryResults = driver.findElement(By.partialLinkText(\"category results\"));\n List<WebElement> categoryResultsList = driver.findElement(By.className(\"categories\")).findElements(By.tagName(\"a\"));\n WebDriverWait wait = new WebDriverWait(driver, 1000);\n wait.until(ExpectedConditions.elementToBeClickable(categoryResults));\n log.info(\"Click on first result from category suggestion list\" );\n categoryResultsList.get(0).click();\n log.info(\"Confirm that the link oppened contains searched term (urn in this case ) related results.\");\n assertTrue(driver.getCurrentUrl().contains(\"urn\"));\n }", "HtmlPage clickLink();", "@Test\n public void withAttribute_Matching() {\n assertEquals(1, onPage.withAttribute(\"lang\", MatchType.EQUALS, \"en-US\").size());\n assertEquals(3, onPage.get(\"div.article div\").withAttribute(\"class\", MatchType.EQUALS, \"content\").size());\n assertEquals(0, onPage.get(\"div.article div\").withAttribute(\"class\", MatchType.EQUALS, \" content\").size());\n }", "@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void verifySearchMeterByAcctno()\n{\t\t\n\t Report.createTestLogHeader(\"Submit Meter Read\", \"Verify multiple Search results are getting displayed while giving valid Account number in search field\");\n\tSMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"GlobalSMRMultiDialMeter11\");\n\tnew SubmitMeterReadAction()\n\t\n\t.BgbnavigateToLogin()\n .BgbloginDetails(smrProfile)\n .BgbverifyAfterLogin()\n .clickSubmitMeterReadLink()\n .SearchByAccoutnNumber(smrProfile)\n .enterMeterDials(smrProfile)\n //.enterGlobalMeterDials(smrProfile)\n\t.verifyMeterReadConfirmationTitle()\n\t.verifyAuditLeadTable(smrProfile);\n \n}", "@Test(priority=3)\r\n\tpublic void shouldBeAbleToSearchForHotelsTest() {\r\n\t\thotelPage.shouldBeAbleToSearchForHotels();\r\n\t}", "@Test\n @Then(\"Market URL is opened\")\n public void s05_MarketUrlCheck() {\n String currentMUrl = driver.getCurrentUrl();\n Assert.assertTrue(currentMUrl.contains(\"market.yandex.ru\"));\n System.out.println(\"Step05 PASSED\");\n }" ]
[ "0.5705822", "0.55565566", "0.5502292", "0.54723996", "0.5339439", "0.532164", "0.52468663", "0.5229706", "0.521901", "0.5174953", "0.5171531", "0.5163658", "0.5154206", "0.51511025", "0.5137602", "0.51198924", "0.51193637", "0.51148474", "0.51137686", "0.5108672", "0.5094856", "0.5085478", "0.50822866", "0.5074822", "0.5044896", "0.5040613", "0.50385445", "0.5037992", "0.50367016", "0.5024681", "0.4992525", "0.49857312", "0.49838817", "0.49834907", "0.49776223", "0.49666214", "0.4962781", "0.4921", "0.4914902", "0.4913782", "0.4911948", "0.49103236", "0.4902907", "0.48956773", "0.4891618", "0.4881771", "0.48759446", "0.4867819", "0.48542738", "0.4849614", "0.48448578", "0.48436356", "0.4836825", "0.48345563", "0.48338252", "0.48331258", "0.48160827", "0.4815792", "0.4813274", "0.48122877", "0.48075077", "0.48020068", "0.4798105", "0.47977126", "0.47948962", "0.47916996", "0.47899464", "0.4783189", "0.47785074", "0.47717273", "0.47714433", "0.47652075", "0.47613326", "0.47605547", "0.4760028", "0.4759684", "0.47582975", "0.47550976", "0.4751892", "0.47431254", "0.47404197", "0.47389254", "0.47382528", "0.47362143", "0.47318906", "0.4731689", "0.47301477", "0.4729943", "0.4723988", "0.471419", "0.47136635", "0.4707885", "0.4706188", "0.47053298", "0.4702861", "0.46993437", "0.46908748", "0.46906808", "0.4690568", "0.46898067", "0.46896386" ]
0.0
-1
house: with default state. .id : house .type : text .title : .class : Html.INPUT.text .name : house .classIndex : 0
protected TextGuiTestObject house_Number() { return new TextGuiTestObject( getMappedTestObject("house_Number")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setHouse_number(int house_number) {\n this.house_number = house_number;\n }", "public static void main(String[] args) {\n String firstInitial, lastName, streetName, streetType, cityName;\n int houseNumber;\n Scanner keyboard=new Scanner(System.in);\n\n System.out.print(\"Enter your first initial, last name, street name,street type and your house number: \");\n firstInitial=keyboard.next();\n lastName=keyboard.next();\n streetName=keyboard.next();\n streetType=keyboard.next();\n cityName=keyboard.next();\n houseNumber=keyboard.nextInt();\n System.out.print(firstInitial+ \" \" +lastName+ \" \" + houseNumber +\" \");\n System.out.println(streetName + \" \" + streetType + \" \" +cityName);\n\n }", "public void findHouse() {\n System.out.println(\"-----Search House-----\");\n System.out.println(\"enter id: \");\n int findId = Utility.readInt();\n //call service search method\n House h = houseService.searchHouse(findId);\n if (h != null) {\n System.out.println(h);\n } else {\n System.out.println(\"no designate house found\");\n }\n }", "public void editHouse() {\n System.out.println(\"-----Update House-----\");\n System.out.println(\"enter id(-1 cancel): \");\n int updateId = Utility.readInt();\n if (updateId == -1) {\n System.out.println(\"cancel update program\");\n return;\n }\n House h = houseService.searchHouse(updateId);\n if(h == null) {\n System.out.println(\"no house you needed found\");\n return;\n }\n //update owner name\n System.out.print(\"owner = \" + h.getOwner() + \": \");\n String owner = Utility.readString(10, \"\");\n if(!\"\".equals(owner)) {\n h.setOwner(owner);\n }\n\n //update phone\n System.out.print(\"phone = \" + h.getPhone() + \": \");\n String phone = Utility.readString(10, \"\");\n if(!\"\".equals(phone)) {\n h.setPhone(phone);\n }\n\n //update address\n System.out.print(\"address = \" + h.getAddress() + \": \");\n String address = Utility.readString(20, \"\");\n if(!\"\".equals(address)) {\n h.setAddress(address);\n }\n\n //update rent\n System.out.print(\"rent = \" + h.getRent() + \": \");\n int rent = Utility.readInt(-1);\n if(! (-1 == rent)) {\n h.setRent(rent);\n }\n\n //update state\n System.out.print(\"state = \" + h.getState() + \": \");\n String state = Utility.readString(10, \"\");\n if(!\"\".equals(state)) {\n h.setState(state);\n }\n\n System.out.println(\"update successful\");\n }", "public void setHouseType(Integer houseType) {\n this.houseType = houseType;\n }", "public int getHouse_number() {\n return house_number;\n }", "public ConstructHouse(String modelname, int lot_number, int area, int bedrooms, int garage, long price) {\n\t\t\n\t\tthis.modelname = modelname;\n\t\tthis.lot_number = lot_number;\n\t\tthis.area = area;\n\t\tthis.bedrooms = bedrooms;\n\t\tthis.garage = garage;\n\t\tthis.price = price;\n\t\t\t}", "public Household(int householdId, String householdName) {\n this.householdId = householdId;\n this.householdName = householdName;\n }", "@FXML\n void inHouseButtonAction(ActionEvent event){\n \n // On inHouse button press hide the company name label and field \n partCompanyNameField.setVisible(false);\n partCompanyNameLabel.setVisible(false);\n \n outsourcedButton.setSelected(false);\n inHouse = true;\n inHouseButton.setSelected(true);\n \n // On inhouse button press show the machine id field and label visible\n partMachineIDField.setVisible(true);\n partMachineIDLabel.setVisible(true);\n \n }", "public void findUIElements() {\n nameField = (EditText) findViewById(R.id.NAMEFIELD);\n nameField.setHintTextColor(getResources().getColor(R.color.colorPrimary));\n enterButton = (Button) findViewById(R.id.ENTER);\n enterButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n String name = nameField.getText().toString();\n if (name.length() > 0) {\n RealmManager.getInstance().createUser(name);\n finish();\n }\n }\n });\n }", "private void setScene(int selected) {\n int y = 1;\n GridPane layout = new GridPane();\n layout.setPadding(new Insets(10, 10, 10, 10));\n HashMap<FieldName, TextField> input = new HashMap<>();\n\n Label source = new Label(\"Source:\");\n GridPane.setConstraints(source, 0, y);\n\n TextField setSource = new TextField(ref.getClass().getSimpleName());\n GridPane.setConstraints(setSource, 1, y++);\n setSource.setEditable(false);\n setSource.setDisable(true);\n\n Label required = new Label(\"Required fields\");\n required.getStyleClass().add(\"header\");\n GridPane.setConstraints(required, 0, y++);\n\n Label citkey = new Label(\"Citation key\");\n citkey.getStyleClass().add(\"header\");\n GridPane.setConstraints(citkey, 0, y);\n\n TextField citation = new TextField(ref.getCitationKey());\n GridPane.setConstraints(citation, 1, y++);\n citation.setEditable(false);\n citation.setDisable(true);\n\n for (FieldName fn : ref.getRequiredFields()) {\n y = createInputFields(fn, y, layout, input);\n }\n\n Label alternative = new Label(\"Alternative fields\");\n alternative.getStyleClass().add(\"header\");\n GridPane.setConstraints(alternative, 0, y++);\n\n for (FieldName fn : ref.getAlternativeFields()) {\n y = createInputFields(fn, y, layout, input);\n }\n\n Label optional = new Label(\"Optional fields\");\n optional.getStyleClass().add(\"header\");\n GridPane.setConstraints(optional, 0, y++);\n\n for (FieldName fn : ref.getOptionalFields()) {\n y = createInputFields(fn, y, layout, input);\n }\n\n Label tags = new Label(\"Tags\");\n tags.getStyleClass().add(\"header\");\n GridPane.setConstraints(tags, 0, y);\n\n TextField tagwords = new TextField(ref.getTags().replace(',', ' '));\n GridPane.setConstraints(tagwords, 1, y++);\n\n Label taginfo = new Label(\"Tags are keywords separated by whitespace.\");\n taginfo.getStyleClass().add(\"label\");\n GridPane.setRowIndex(taginfo, y++);\n GridPane.setColumnSpan(taginfo, 2);\n \n Button close = new Button(\"Cancel\");\n GridPane.setConstraints(close, 0, y);\n close.setOnAction(e -> window.close());\n\n Button edit = new Button(\"Save changes\");\n GridPane.setConstraints(edit, 1, y++);\n edit.setOnAction(e -> {\n if (validator.validateInput(input, citation, ref)) {\n if (validator.checkTagField(tagwords.getText())) {\n ref.setTags(tagwords.getText());\n App.getLogic().edit(ref);\n validator.getAlertGenerator().alert(\"Confirmation\", \"Reference has been saved.\");\n App.getGUI().setScene();\n window.close();\n App.getGUI().setScene();\n }\n }\n //validator.getAlertGenerator().alert(\"Confirmation\", \"Reference has been saved.\");\n// App.getGUI().setScene();\n// window.close();\n// App.getGUI().setScene();\n });\n\n layout.getChildren().addAll(source, setSource, close, edit, optional, required, citkey, citation, tags, tagwords, taginfo);\n if (!ref.getAlternativeFields().isEmpty()) {\n layout.getChildren().add(alternative);\n }\n layout.setVgap(8);\n layout.setHgap(10);\n layout.setPadding(new Insets(10, 10, 10, 10));\n\n Scene scene = new Scene(layout, 400, y * 35);\n scene.getStylesheets().add(\"style.css\");\n window.setResizable(false);\n window.setScene(scene);\n window.show();\n }", "void stateStored (Search search);", "public void showHouses() {\n System.out.println(\"-----Houses List-----\");\n System.out.println(\"No\\tOwner\\tPhone\\t\\tAddress\\t\\t\\t\\tRent\\tState\");\n houseService.listHouse();\n System.out.println(\"------List Done------\");\n }", "WebElement getNameField();", "private void makeControls() {\n Label label1 = new Label(\"Placement:\");\n textField = new TextField ();\n textField.setPrefWidth(300);\n\n // Task8 Start the game with the randomly selected piece placement\n textField.setText(\"AAO\");\n makePlacement(\"AAO\");\n\n Button button = new Button(\"Refresh\");\n button.setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent e) {\n makePlacement(textField.getText());\n // Task8 Do not clear the textField in order to place pieces step by step.\n // textField.clear();\n }\n });\n HBox hb = new HBox();\n hb.getChildren().addAll(label1, textField, button);\n hb.setSpacing(10);\n hb.setLayoutX(130);\n hb.setLayoutY(VIEWER_HEIGHT - 50);\n controls.getChildren().add(hb);\n }", "public void setHouse_number_addition(java.lang.String house_number_addition) {\n this.house_number_addition = house_number_addition;\n }", "public static void main(String[] args) {\n\t\t\n\t\tScanner input = new Scanner(System.in);\n\t\t \n\t\tSystem.out.println(\"Enter street address:\");\n\t\t \n\t\tint houseNumber = input.nextInt();\n\t\tString street = input.nextLine(); // instead of next(); which only reads to next space.\n\t\t \n\t\tSystem.out.println(\"house number is \" + houseNumber);\n\t\tSystem.out.println(\"street is \" + street);\n\t\t\n\t\tinput.close();\n\t\t\n\t\t\n\t}", "@RequestMapping(value = \"/{id}\", method = RequestMethod.GET)\n public String houseById(@PathVariable long id, Model model) {\n model.addAttribute(\"house\", houseFacade.findById(id));\n return \"house/detail\";\n }", "public void setHouseNumber(String houseNumber) {\n\t\tthis.houseNumber = houseNumber;\n\t}", "public static void architect() {\n NewProject.architect_name = getInput(\"Please enter the NEW name of the architect: \");\r\n\r\n NewProject.architect_tel = getInput(\"Please enter the NEW telephone number of the architect: \");\r\n\r\n NewProject.architect_email = getInput(\"Please enter the NEW email of the architect: \");\r\n\r\n NewProject.architect_address = getInput(\"Please enter the NEW address of the architect: \");\r\n\r\n UpdateData.updateArchitect();\r\n updateMenu();\t//Return back to previous menu.\r\n }", "private void createLastNameBox() {\n lastNameField = new TextField();\n lastNameField.setId(\"Lastname\");\n HBox lastNameBox = new HBox(new Label(\"Last name: \"), lastNameField);\n lastNameBox.setAlignment(Pos.CENTER);\n mainBox.getChildren().add(lastNameBox);\n\n }", "private void createSalaryBox() {\n salaryField = new TextField();\n salaryField.setId(\"Salary\");\n HBox salaryFieldBox = new HBox(new Label(\"Salary: \"), salaryField);\n salaryFieldBox.setAlignment(Pos.CENTER);\n mainBox.getChildren().add(salaryFieldBox);\n\n }", "public void input()\n\t{\n\t\t// this facilitates the output\n\t\tScanner sc = new Scanner(System.in) ; \n\t\tSystem.out.print(\"The Bike Number:- \") ;\n\t \tthis.bno = sc.nextInt() ; \t\n\t\tSystem.out.print(\"The Biker Name:- \") ; \n\t \tthis.name = new Scanner(System.in).nextLine() ; \t\n\t\tSystem.out.print(\"The Phone number:- \") ; \n\t \tthis.phno = sc.nextInt() ; \t\n\t\tSystem.out.print(\"The number of days:- \") ; \n\t \tthis.days = sc.nextInt() ; \t\n\t}", "public static void addNewHouse() {\n Services house = new House();\n house = addNewService(house);\n\n ((House) house).setRoomType(FuncValidation.getValidName(ENTER_ROOM_TYPE,INVALID_NAME));\n\n ((House) house).setFacilities(FuncValidation.getValidName(ENTER_FACILITIIES,INVALID_NAME));\n\n ((House) house).setNumberOfFloor(FuncValidation.getValidIntegerNumber(ENTER_NUMBER_OF_FLOOR,INVALID_NUMBER_OF_FLOOR,0));\n\n //Get list house from CSV\n ArrayList<House> houseList = FuncGeneric.getListFromCSV(FuncGeneric.EntityType.HOUSE);\n\n //Add house to list\n houseList.add((House) house);\n\n //Write house list to CSV\n FuncReadWriteCSV.writeHouseToFileCSV(houseList);\n System.out.println(\"----House \"+house.getNameOfService()+\" added to list---- \");\n addNewServices();\n }", "@Override\n public void actionPerformed(ActionEvent event)\n {\n EnumMap<PersonKeys, String> input = submit();\n if ((input != null) && (input.size() > 0)) {\n // Create the new Hero and display it\n Hero hero = _nhCiv.createHero(input);\n _hdCiv.displayHero(hero, true); // initial Hero needs true\n }\n }", "@Override\n public void handle(ActionEvent event) {\n double mealCost;\n double tax;\n double tip;\n double totalCost;\n double totalBill;\n mealCost = Double.parseDouble(numm1.getText());\n bill.setMealCost(mealCost);\n tax=bill.tax();\n numm2.setText(Double.toString(tax)+\"$\");\n tip=bill.tip();\n numm3.setText(Double.toString(tip)+\"$\");\n totalBill=bill.totalBill();\n numm4.setText(Double.toString(totalBill)+\"$\");\n \n }", "private void displayNameFields() {\n FieldRelatedLabel nameLabel = new FieldRelatedLabel(\"Name\", 750, 170);\n\n invalidNameLabel = new InvalidFormEntryLabel(\"Name must only contain letters,\\nspaces, dots and apostrophes\", 910, 190, false);\n\n nameTF = new TextField();\n nameTF.relocate(750, 200);\n nameTF.textProperty().addListener(e->FormValidatorPokeMongo.handleName(nameTF, invalidNameLabel));\n\n sceneNodes.getChildren().addAll(nameLabel, invalidNameLabel, nameTF);\n }", "StatePac build();", "@OnClick(R.id.search_estate_bt_search)\n public void search(View view) {\n Log.d(TAG, \"search: \");\n\n mSearchEstateViewModel.searchEstate(\n mEstateType.getText().toString(),\n mPrice1.getText().toString(),\n mPrice2.getText().toString(),\n mSurface1.getText().toString(),\n mSurface2.getText().toString(),\n mCity.getText().toString(),\n mNumbersRooms1.getText().toString(),\n mNumbersRooms2.getText().toString(),\n mNumbersBathrooms1.getText().toString(),\n mNumbersBathrooms2.getText().toString(),\n mNumbersBedrooms1.getText().toString(),\n mNumbersBedrooms2.getText().toString(),\n mNumbersPhoto1.getText().toString(),\n mNumbersPhoto2.getText().toString(),\n // Point of Interest\n mChipGarden.isChecked(),\n mChipLibrary.isChecked(),\n mChipRestaurant.isChecked(),\n mChipSchool.isChecked(),\n mChipSwimmingPool.isChecked(),\n mChipTownHall.isChecked()\n );\n }", "public Household() {\n }", "public String searchByStateUI() {\n console.promptForPrintPrompt(\" +++++++++++++++++++++++++++++++++++\");\n console.promptForPrintPrompt(\" + PLEASE ENTER STATE TO SEARCH BY +\");\n console.promptForPrintPrompt(\" +++++++++++++++++++++++++++++++++++\");\n console.promptForString(\"\");\n String state = console.promptForString(\" STATE: \");\n return state;\n }", "public House getHouse() {\r\n return this.house;\r\n }", "public void createNewHouseAndAddToList(){\n\t\t\tHouse newHouse = new House();\r\n\t\t\tString id = createAutomaticallyID().trim();\r\n\t\t\tnewHouse.setId(id);\r\n\t\t\tnewHouse.setPrice(Double.parseDouble(priceTextField.getText().trim()));\r\n\t\t\tnewHouse.setNumberOfBathrooms(Integer.parseInt(bathroomsTextField.getText().trim()));\r\n\t\t\tnewHouse.setAirConditionerFeature(airConditionerComboBox.getSelectedItem().toString());\r\n\t\t\tnewHouse.setNumberOfRooms(Integer.parseInt(roomsTextField.getText().trim()));\r\n\t\t\tnewHouse.setSize(Double.parseDouble(sizeTextField.getText().trim()));\r\n\t\t\t\r\n\t\t\toriginalHouseList.add(newHouse);//first adding newHouse to arrayList\r\n\t\t\tcopyEstateAgent.setHouseList(originalHouseList);//then set new arrayList in copyEstateAgent\r\n\r\n\t\t}", "public WindDragon(String owner)\n {\n input = new Scanner(System.in);\n \n setType(\"Wind\");\n setOwner(owner);\n decideNature();\n decideGender();\n decideName();\n setLevel(1);\n setExp(0);\n }", "public String getHouseNumber() {\n\t\treturn houseNumber;\n\t}", "@Override // from Application class\n\tpublic void start(Stage primaryStage) { // Always has to get ' Stage primaryStage ' as parameter\n\t\t\n // **** I can access FlowPane & HBox class by using ' obj ' which is the object of AddressBook class \n\t\t// since FlowPane & HBox class are declared in AddressBook class ****\n\t\t\n\t\tScene scene = new Scene(obj, 350, 130);\n\t\tprimaryStage.setTitle(\"Address Book\"); // The title of Application\n\t\tprimaryStage.setScene(scene); // put the scene in stage\n\t\tprimaryStage.show(); // show the stage\n\t\t\n\t\tobj.buttonAdd.setOnAction(e -> add()); // This is same as ' onClick Handler ' in javascript , Once I click the ' Add ' button, it will call add function\n\t\tobj.buttonFirst.setOnAction(e -> first()); // This is same as ' onClick Handler ' in javascript , Once I click the ' First ' button, it will call first function\n\t\tobj.buttonNext.setOnAction(e -> next()); // This is same as ' onClick Handler ' in javascript , Once I click the ' Next ' button, it will call next function\n\t\tobj.buttonPrevious.setOnAction(e -> previous()); // This is same as ' onClick Handler ' in javascript , Once I click the ' Previous ' button, it will call previous function\n\t\tobj.buttonLast.setOnAction(e -> last()); // This is same as ' onClick Handler ' in javascript , Once I click the ' Last ' button, it will call last function\n\t\tobj.buttonUpdate.setOnAction(e -> update()); // This is same as ' onClick Handler ' in javascript , Once I click the ' Update ' button, it will call update function\n\t}", "INPUT createINPUT();", "public House()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(480, 352, 1); \n addObject(new GravesHouse(),110,60);\n addObject(new Kid(),300,200);\n addObject(new Sofa(),190,270);\n addObject(new Piano(),275,100);\n }", "public Integer getHouseType() {\n return houseType;\n }", "Input createInput();", "@Test\n\tpublic void TC_01_Web_Element() {\n\t\tdriver.findElement(By.id(\"\")); //**\n\t\t\n\t\t//Tim nhieu element\n\t\tdriver.findElements(By.id(\"\"));//**\n\t\t\n\t\t//If chi thao tac vs element 1 lan thi ko can khai bao bien\n\t\tdriver.findElement(By.id(\"small-searchterms\")).sendKeys(\"Apple\");//**\n\t\t\n\t\t//If can thao tac element nhieu lan thi nen khai bao bien\n\t\tWebElement searchTextbox = driver.findElement(By.id(\"small-searchterms\"));\n\t\tsearchTextbox.clear();//**\n\t\tsearchTextbox.sendKeys(\"Apple\");\n\t\tsearchTextbox.getAttribute(\"value\");//**\n\t\t\n\t\t//driver.findElement(By.id(\"small-searchterms\")).clear();\n\t\t//driver.findElement(By.id(\"small-searchterms\")).sendKeys(\"Apple\");\n\t\t//driver.findElement(By.id(\"small-searchterms\")).getAttribute(\"value\");\n\t\t\n\t\t//Count co bao nhieu element thoa dieu kien\n\t\t//Verify so luong element tra ve nhu mong doi\n\t\t//Thao tac vs all cac loai element giong nhau trong 1 page (checkbox/textbox)\n\t\tList<WebElement> checkboxes = driver.findElements(By.xpath(\"//div[@class='inputs']/input[not(@type='checkbox')]\"));\n\t\t\n\t\t//Lay ra so luong\n\t\tAssert.assertEquals(checkboxes.size(), 6);\n\t\t\n\t\tWebElement singleElement = driver.findElement(By.className(\"\"));\n\t\t\n\t\t//Textbox TextArea/ Edittable dropdown\n\t\t//Du lieu duoc toan ven\n\t\tsearchTextbox.clear();\n\t\tsearchTextbox.sendKeys(\"\");\n\t\t\n\t\t//Button/Link/radio/checkbox/custom dropdown/..\n\t\tsingleElement.click();//**\n\t\t\n\t\t//Cac ham co tien to bat dau bang get lun lun tra ve du lieu \n\t\t//getTitle/ getCurrentUrl/ getPageSource/ getAttribute/ getCssValue/ getText/ get...\n\t\tsingleElement = driver.findElement(By.xpath(\"//input[@id='Firstname']\"));\n\t\tsingleElement.getAttribute(\"\");\n\t\t\n\t\t//Automation\n\t\tsingleElement = driver.findElement(By.xpath(\"//input[@id='small-searchterms']\"));\n\t\tsingleElement.getAttribute(\"placeholder\");\n\t\t//Search store\n\t\t\n\t\t//Lay ra gia tri cua cac thuoc tinh css thuong dung de test GUI\n\t\t//Font/Size/Color/Background/...\n\t\tsingleElement = driver.findElement(By.cssSelector(\"search-box-button\"));\n\t\tsingleElement.getCssValue(\"background-color\");//*\n\t\t//#4ab2f1\n\t\tsingleElement.getCssValue(\"text-transform\");\n\t\t//uppercase\n\t\t\n\t\t//Lay ra toa do element so voi page hien tai (get gox ben ngoai)\n\t\tsingleElement.getLocation();\n\t\t\n\t\t//lay ra kich thuoc cua element (rong x cao) -> get goc ben trong element\n\t\tsingleElement.getSize();\n\t\t\n\t\t//Location + size\n\t\tsingleElement.getRect();\n\t\t\n\t\t//Chup hinh loi => dua vao html export\n\t\tsingleElement.getScreenshotAs(OutputType.FILE);//*\n\t\t\n\t\t\n\t\t//id/class/css/name...//tu 1 element ko bik tagname -> lay ra duoc tagname truyen vao cho 1 locator khac\n\t\tsingleElement = driver.findElement(By.xpath(\"//div[@class='inputs']/input[not(@type='checkbox')]\"));\n\t\tString searchButtonTagname = singleElement.getTagName();//*\n\t\t\n\t\tsearchTextbox = driver.findElement(By.xpath(\"//\" + searchButtonTagname + \"[@class='inputs']/input[not(@type='checkbox')]\"));\n\t\t//input\n\t\t\n\t\t//xpath\n\t\t//tagname[@attribute='value']\n\t\t\n\t\t\n\t\t//lay ra text element (header/link/message/...)\n\t\tsingleElement.getText();//**\n\t\t\n\t\t//Cac ham co tien to la isXXX thi tra ve kieu Boolean (100%)\n\t\t//true/false\n\t\t\n\t\t//kiem tra xem 1 element la hien thi cho nguoi dung thao tac hay ko\n\t\t//true: dang hien thi\n\t\t//false: ko hien thi\n\t\tsingleElement.isDisplayed();//**\n\t\t\n\t\t//kiem tra xem 1 element la disable hay ko\n\t\t//disable: user ko thao tac duoc\n\t\t//true: ko thao tac duoc\n\t\t//false: co the thao tac\n\t\tsingleElement.isEnabled();//*\n\t\t\n\t\t//kiem tra xem 1 element da duoc chon roi hay chua\n\t\t//checkbox/ radio/ dropdown\n\t\t//true: da chon roi\n\t\t//false: chua duoc chon\n\t\tsingleElement.isSelected();//*\n\t\t\n\t\t//no thay cho hanh vi ENTER vao textbox/button\n\t\t//chi dung duoc trong form (Login/search/register/...)\n\t\tsingleElement.submit();\n\t\t\n\t\tsingleElement = driver.findElement(By.id(\"small-searchterms\"));\n\t\tsingleElement.sendKeys(\"Apple\");\n\t\tsingleElement.submit();\n\t\t\n\t\t\n\t\t\n\t}", "public void start(Stage myStage) { \n \n // Give the stage a title. \n myStage.setTitle(\"Demonstrate a TextField\"); \n \n // Use a FlowPane for the root node. In this case, \n // vertical and horizontal gaps of 10. \n FlowPane rootNode = new FlowPane(10, 10); \n \n // Center the controls in the scene. \n rootNode.setAlignment(Pos.CENTER); \n \n // Create a scene. \n Scene myScene = new Scene(rootNode, 230, 140); \n \n // Set the scene on the stage. \n myStage.setScene(myScene); \n \n // Create a label that will report the state of the \n // selected check box. \n response = new Label(\"Enter Name: \"); \n \n // Create a button that gets the text. \n Button btnGetText = new Button(\"Get Name\"); \n \n // Create a text field. \n tf = new TextField(); \n \n // Set the prompt. \n tf.setPromptText(\"Enter a name.\"); \n \n // Set preferred column count. \n tf.setPrefColumnCount(15); \n \n // Use a lambda expression to handle action events for the \n // text field. Action events are generated when ENTER is \n // pressed while the text field has input focus. In this case, \n // the text in the field is obtained and displayed. \n tf.setOnAction( (ae) -> response.setText(\"Enter pressed. Name is: \" + \n tf.getText())); \n \n // Use a lambda expression to get text from the text field \n // when the button is pressed. \n btnGetText.setOnAction((ae) -> \n response.setText(\"Button pressed. Name is: \" + \n tf.getText())); \n \n // Use a separator to better organize the layout. \n Separator separator = new Separator(); \n separator.setPrefWidth(180); \n \n // Add controls to the scene graph. \n rootNode.getChildren().addAll(tf, btnGetText, separator, response); \n \n // Show the stage and its scene. \n myStage.show(); \n }", "public static void main(String[] args) {\n\n House house=new House.HouseBuilder().build();\n\n House house1=new House.HouseBuilder()\n .addGarage(true)\n .addGarden(new Garden())\n .addRooms(5)\n .addWindows(10)\n .build();\n\n\n\n\n House houseWithoutGarden=new House.HouseBuilder().addGarage(true).addRooms(5).addWindows(10).build();\n\n }", "private void createFirstNameBox() {\n firstNameField = new TextField();\n firstNameField.setId(\"Firstname\");\n HBox firstNameBox = new HBox(new Label(\"First name: \"), firstNameField);\n firstNameBox.setAlignment(Pos.CENTER);\n mainBox.getChildren().add(firstNameBox);\n }", "public Harimau(String namaHarimau)\n\t{\n\t//mengisi pengubah yang diwarisi oleh kelas abstract\n\tHarimau.nama = namaHarimau;\n\t}", "@FXML\n void onActionInHouse(ActionEvent event){\n labelPartSource.setText(\"Machine ID\");\n }", "@Override\n\tpublic void onCreate ( Bundle savedInstanceState, PersistableBundle persistentState )\n\t{\n\t\tsuper.onCreate(savedInstanceState, persistentState);\n\t\tsetContentView(R.layout.form_persons);\n\t\tgetActionBar().setDisplayHomeAsUpEnabled(true);\n\t\tname = (EditText) findViewById(R.id.eTextNamePerson);\n\n\t\t\n\t}", "public static WebElement inputLName(WebDriver driver) {\n\t\telement= scrollIntoView(driver,driver.findElement(By.xpath(\".//label[contains(text(),'Last Name')]/following-sibling::input[1]\")));\n\t\thighLighterMethod(element,driver);\n\t\treturn element;\n\t\t\n\t}", "Input getObjetivo();", "private void getTextFromInput() {\n firstName = firstNameField.getText();\n lastName = lastNameField.getText();\n age = ageField.getText();\n email = emailField.getText().toLowerCase();\n }", "public void createHomePage(){\n\t\tsetLayout(new GridBagLayout());\n\t\tGridBagConstraints c = new GridBagConstraints(); \n\t\t//insert username and password fields\n\t\tJLabel title;\n\n\t\t//build the title panel\n\t\ttitlePanel = new JPanel();\n\t\ttitle = new JLabel(\"Budgie\");\n\t\ttitle.setSize(new Dimension(40, 40));\n\t\ttitlePanel.add(title);\n\n\t\tc.anchor = GridBagConstraints.CENTER;\n\t\tc.gridy = 0;\n\t\tc.weighty = .5;\n\t\tadd(titlePanel, c);\n\n\t\tinputField = addinputField();\n\n\t\t//positioning of the grid field\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.gridy = 1;\n\t\tc.ipady = 10;\n\t\tc.weighty = .5;\n\t\tadd(inputField, c);\n\n\t\tc.gridy++;\n\t\tJButton debug = new JButton(\"Debug\");\n\t\tdebug.addActionListener(new ActionListener(){\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tDebugPrinter.toggleDebug();\n\t\t\t}\n\n\t\t});\n\t\tadd(debug,c);\n\n\n\t\tpack();\n\n\n\t}", "public Human() {\n\n name = JOptionPane.showInputDialog(\"Enter The Name Of The Human: \") ;\n }", "private House(HouseBuilder builder) {\n\t\tthis.surface = builder.surface;\n\t\tthis.rooms = builder.rooms;\n\t\tthis.bathrooms = builder.bathrooms;\n\t\tthis.floors = builder.floors;\n\t\tthis.garage = builder.garage;\n\t\tthis.yard = builder.yard;\n\t}", "@FXML\n public void addGym() {\n \tnew eMenuHandler().hideMenu();\n \tDisplayBuildingInstructions.showBuildingInstr();\n \tAddEntityOnMouseClick.setBuildMode(Boolean.TRUE);\n \tAddEntityOnMouseClick.entityList(new BuildingGym(0, 0));\n \t/*\n int xpos = (int) (Math.random() * 600) + 100;\n World.getInstance().addEntityToWorld(new BuildingGym(xpos, 30));\n */\n }", "public void handleInhouseButton() {\n machineIdOrCompanyLabel.setText(\"Machine Id\");\n }", "public GUI_Edit_Tour(){\n init();\n }", "private static String getStateInput() {\n\t\treturn getQuery(\"Valid State\");\n\t}", "@Override\n public void display(JPasswordField passFirstnameTextField,\n JTextField userFirstnameTextField,\n JTextField userLastnameTextField,\n JTextField DoBTextField,\n JTextField contactNumberTextField,\n JTextField emailTextField,\n JTextField salaryTextField,\n JTextField positionStatusTextField,\n JTextField nameTextField,\n JTextField buildingNameTextField,\n JTextField streetTextField,\n JTextField buildingNoTextField,\n JTextField areaTextField,\n JTextField cityTextField,\n JTextField countryTextField,\n JTextField postcodeTextField){\n\n\n\n passFirstnameTextField.setText(getPassword());\n userFirstnameTextField.setText(getFirstname());\n userLastnameTextField.setText(getLastname());\n DoBTextField.setText(DMY.format(getDoB()));\n contactNumberTextField.setText(getContactNumber());\n emailTextField.setText(getEmail());\n salaryTextField.setText(String.valueOf(getSalary()));\n positionStatusTextField.setText(getPositionStatus());\n homeAddress.display(nameTextField,buildingNameTextField,streetTextField,\n buildingNoTextField,areaTextField,cityTextField,\n countryTextField,postcodeTextField);\n }", "private void createTextField(){\n Font font = new Font(\"Verdana\", Font.BOLD,3*getGameContainer().getWidth()/100);\n TrueTypeFont ttf = new TrueTypeFont(font,true);\n int fieldWidth = getGameContainer().getWidth()/3;\n int fieldHeight = getGameContainer().getHeight()/18;\n nameField = new TextField(getGameContainer(), ttf,43*getGameContainer().getWidth()/100,24*getGameContainer().getHeight()/100, fieldWidth, fieldHeight);\n nameField.setBackgroundColor(Color.white);\n nameField.setTextColor(Color.black);\n passwordField= new TextField(getGameContainer(), ttf,43*getGameContainer().getWidth()/100,32*getGameContainer().getHeight()/100, fieldWidth, fieldHeight);\n passwordField.setBackgroundColor(Color.white);\n passwordField.setTextColor(Color.black);\n }", "public void decideName()\n {\n System.out.println(\"What do want your newly tamed WIND dragon to be named?\");\n String name = new String(input.nextLine());\n \n setName(name);\n }", "public Property(String name, int pos, int rent, int oneH, int twoH, int threeH, int fourH,\n\t int hotel, int value, int houses) {\n\t\tthis.rent = rent;\n\t\tthis.oneH = oneH;\n\t\tthis.twoH = twoH;\n\t\tthis.threeH = threeH;\n\t\tthis.fourH = fourH;\n\t\tthis.hotel = hotel;\n\t\tthis.value = value;\n\t\tthis.houses = houses;\n\t\tbuildings = 0;\n\t\tmonopoly = false;\n\t\towned = false;\n\n\t\tthis.pos = pos;\n\t\tthis.name = name;\n\t}", "public void enterPass(String pass){\n actionsWithOurElements.enterTextInToElement(inputPass, pass);\n }", "@FXML\n public void addBlackSmith() {\n \tnew eMenuHandler().hideMenu();\n \tDisplayBuildingInstructions.showBuildingInstr();\n \tAddEntityOnMouseClick.setBuildMode(Boolean.TRUE);\n \tAddEntityOnMouseClick.entityList(new BuildingBlacksmith(0, 0));\n }", "public House(int HID)\n\t{\n\t\ttry\n\t\t{\n\t\t\tConnector con = new Connector();\n\t \n\t String query = \"SELECT * FROM Housing WHERE h_id = '\"+HID+\"'\"; \n\t ResultSet rs = con.stmt.executeQuery(query); \n\t \n\t while(rs.next())\n\t {\n\t \thid = rs.getInt(\"h_id\"); \n\t \tname = rs.getString(\"name\"); \n\t \taddress = rs.getString(\"address\"); \n\t \tphoneNumber = rs.getString(\"phone_number\"); \n\t \tyearBuilt = rs.getInt(\"year_built\"); \n\t \tprice = rs.getInt(\"price\");\n\t \tuid = rs.getInt(\"housing_uid\"); \n\t \tmaxResidents = rs.getInt(\"max_residents\"); \n\t \tcatagory = rs.getString(\"catagory\"); \n\t \t\n\t \tGetKeywords(); \n\t \tGetAvailableDates();\n\t }\n\t \n\t con.closeConnection();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\t\n\t}", "void printestateName(estateName iEstateName)\n {\n System.out.println(iEstateName.getElementValue());\n }", "@FXML\n public void addHospital() {\n \tnew eMenuHandler().hideMenu();\n \tDisplayBuildingInstructions.showBuildingInstr();\n \tAddEntityOnMouseClick.setBuildMode(Boolean.TRUE);\n \tAddEntityOnMouseClick.entityList(new BuildingHospital(0, 0));\n }", "@Override\n\tpublic void actionPerformed(ActionEvent ae) {\n\t\tJButton btn;\n\t\tJTextField classField;\n\t\tif(ae.getSource() instanceof JButton) {\n\t\t\tbtn = (JButton) ae.getSource();\n\t\t\tfind(tree, btn.getActionCommand()\t);\n\t\t}\n\t\telse if(ae.getSource() instanceof JTextField) {\n\t\t\tclassField = (JTextField) ae.getSource();\n\t\t\tfind(tree, classField.getText());\n\t\t}\n\t}", "private void updateHouse() {\n Statement statement = null;\n try {\n statement = this.connection.createStatement();\n ResultSet resultSet = statement.executeQuery(\"SELECT * FROM house\");\n Utils.printResultSet(resultSet);\n System.out.print(\"Select a house to update. Enter its house_id: \");\n Scanner scanner = new Scanner(System.in);\n String id = scanner.next();\n System.out.print(\"What do you want to update? Resident, Number of Residents, \" +\n \"or Head of House? \");\n String field = scanner.next();\n if (field.equalsIgnoreCase(\"Resident\")) {\n System.out.println(\"Enter the first name of the new resident of the house you wish to update: \");\n String firstName = scanner.next();\n int personID = Utils.selectPersonFromFirstName(firstName, connection);\n statement.executeUpdate(\"UPDATE house SET person_id = \" + personID +\n \" WHERE house_id = \" + id);\n }\n else if (field.equalsIgnoreCase(\"Number\")) {\n System.out.println(\"Enter the new number of residents of the house you wish to update\");\n int newNumResidents = scanner.nextInt();\n statement.executeUpdate(\"UPDATE house SET num_residents = \" +\n newNumResidents + \" WHERE house_id = \" + id);\n }\n else if (field.equalsIgnoreCase(\"Head\")) {\n System.out.println(\"Enter the first name of the new head of house of the house you wish to update: \");\n String firstName = scanner.next();\n int personID = Utils.selectPersonFromFirstName(firstName, connection);\n statement.executeUpdate(\"UPDATE house SET head_of_house = \" +\n personID + \" WHERE house_id = \" + id);\n }\n else {\n System.out.println(\"Field not identified. Enter again. \");\n this.updateHouse();\n }\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }", "public String getName() {return this.name.getText();}", "public void pickSandwhich() {\n includedIngredients.clear();\n if(selectSandwhich.getValue().equals(\"Chicken\")){\n includedIngredients.appendText(\"Fried Chicken\\nSpicy Sauce\\nPickles\");\n sandwhich = new Chicken();\n\n }\n\n if(selectSandwhich.getValue().equals(\"Fish\")){\n includedIngredients.appendText(\"Grilled Snapper\\nCilantro\\nLime\");\n sandwhich = new Fish();\n }\n\n if(selectSandwhich.getValue().equals(\"Beef\")){\n includedIngredients.appendText(\"Roast Beef\\nProvolone Cheese\\nMustard\");\n sandwhich = new Beef();\n }\n orderPrice.clear();\n String price = new DecimalFormat(\"#.##\").format(sandwhich.price());\n orderPrice.appendText(\"$\"+price);\n }", "public GetAllStateView(String caption) {\n super(caption);\n setSize(900, 600);\n setLocation(200, 200);\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\n //this.setLayout(new FlowLayout());\n this.setLayout(null);\n display = new JLabel(\"Get the state of all portfolios:\");\n display.setBounds(20, 10, 800, 20);\n\n\n this.add(display);\n\n //the textfield\n input = new JTextField(10);\n\n //output area\n sTextArea = new JTextArea(\"Result will be displayed here.\", 10, 20);\n JScrollPane scrollPane = new JScrollPane(sTextArea);\n sTextArea.setLineWrap(true);\n scrollPane.setBorder(BorderFactory.createTitledBorder(\"Result\"));\n scrollPane.setBounds(20, 40, 820, 400);\n this.add(scrollPane);\n\n //exit button\n exitButton = new JButton(\"Exit\");\n exitButton.setActionCommand(\"GetAllState Exit Button\");\n exitButton.setBounds(20, 500, 80, 20);\n this.add(exitButton);\n\n\n setVisible(false);\n\n }", "Builder addAward(Text value);", "public void begin(String gametype) {\t\n try {\n config = new Config(\n XMLParser.parse(new File(DATA_DIRECTORY + gametype + \".xml\"),\n XMLParser.getValidator(XML_SCHEMA)));\n\t\t\tcellSociety = new CellSociety(config, gridSize);\n } catch (XMLParseException e) {\n return;\n }\n createGameButtons();\n scene = new Scene(cellSociety.getGroup(), config.width, config.height);\n stage.setScene(scene);\n scene.setOnKeyPressed(e -> handleKeyInput(e.getCode()));\n setAnimation();\n stage.show();\n }", "void newGame() {\n\t\tstate = new model.State () ; \n\t\tif(host != null ) host.show(state) ; \n\t}", "private void build() {\r\n HBox teamholder = new HBox();\r\n teamholder.setPadding(new Insets(10, 10, 10, 10));\r\n teamholder.setSpacing(10);\r\n teamholder.getChildren().addAll(this.name_field, this.add_team_button, this.save_button, this.openentitiesbutton, this.coach);\r\n HBox selectorholder = new HBox(10);\r\n selectorholder.getChildren().addAll(this.passive_playerlist, this.roster);\r\n this.getChildren().addAll(teamholder, selectorholder, this.add_player_button);\r\n this.add_player_button.setOnAction((ActionEvent e) -> {\r\n this.addPlayer();\r\n });\r\n\r\n this.save_button.setOnAction((ActionEvent e) -> {\r\n this.save();\r\n this.tonotify.execute();\r\n });\r\n\r\n this.add_team_button.setOnAction((ActionEvent e) -> {\r\n this.newTeam();\r\n });\r\n this.openentitiesbutton.disableProperty().bind(this.esw.showingProperty());\r\n this.openentitiesbutton.setOnAction((ActionEvent e) -> {\r\n this.esw.loadEntities();\r\n this.esw.show();\r\n });\r\n this.save_button.disableProperty().bind(Bindings.not(this.getChanged()));\r\n\r\n }", "private void setNameUI() {\n namePanel = new JPanel();\n name = new JLabel();\n\n name.setText(\"Name : \");\n name.setFont(new Font(\"Nunito\", Font.PLAIN, 14));\n name.setForeground(new Color(247, 37, 133));\n\n nameField = new JTextFieldHintUI(\"Enter country\");\n setTextFieldUI(nameField);\n\n namePanel.add(Box.createHorizontalStrut(15));\n namePanel.add(name);\n namePanel.add(nameField);\n namePanel.setAlignmentX(Component.CENTER_ALIGNMENT);\n namePanel.setBackground(null);\n }", "public Store(String name, String address1, String city, String state, String postalCode) {\n this.name = name;\n this.address1 = address1;\n this.city = city;\n this.state = state;\n this.postalCode = postalCode;\n }", "public void setHousestatus(String housestatus) {\r\n\t\tthis.housestatus = housestatus;\r\n\t}", "@Override\n\tpublic HouseGUI getHouseGui() {\n\t\treturn housegui;\n\t}", "public Hotel(String name, String address) {\n\t\tthis.name = name;\n\t\tthis.address = address;\n\t}", "@FXML\n public void addWell() {\n \tnew eMenuHandler().hideMenu();\n \tDisplayBuildingInstructions.showBuildingInstr();\n \tAddEntityOnMouseClick.setBuildMode(Boolean.TRUE);\n \tAddEntityOnMouseClick.entityList(new BuildingWell(0, 0));\n \n }", "@Override // Override the start method of the Application class\n public void start(Stage primaryStage) throws Exception {\n HTreeFractal hTree = new HTreeFractal();\n\n // TextField control and event handler\n TextField tfOrder = new TextField();\n tfOrder.setPrefColumnCount(5);\n tfOrder.setAlignment(Pos.CENTER);\n\n tfOrder.setOnAction(e -> {\n hTree.setOrder(Integer.parseInt(tfOrder.getText()));\n });\n\n // Pane to hold label, text field, and a button\n HBox hBox = new HBox(10);\n hBox.getChildren().addAll(new Label(\"Enter an order: \"), tfOrder);\n hBox.setAlignment(Pos.CENTER);\n hBox.setPadding(new Insets(10));\n\n // Create a new border pane\n BorderPane borderPane = new BorderPane();\n borderPane.setCenter(hTree);\n borderPane.setBottom(hBox);\n\n // Create a scene and place it in the stage\n Scene scene = new Scene(borderPane);\n primaryStage.setTitle(\"H Tree Fractals\"); // Set the stage title\n primaryStage.setScene(scene); // Place the scene in the stage\n primaryStage.show(); // Display the stage\n primaryStage.setResizable(false); // Make the stage non-resizable\n }", "protected void makeMenu( Menu menu, int instance ) {\n_selectedPerson = null; // Not sure which is focused atm.\nField focusingOn = this.getLeafFieldWithFocus();\nif ( focusingOn == _lfBoys ) {\n_selectedPersonIsABoy = true;\n_selectedPerson = (Person) this.get(_lfBoys, _lfBoys.getSelectedIndex());\n}\nif ( focusingOn == _lfGirls ) {\n_selectedPersonIsABoy = false;\n_selectedPerson = (Person) this.get(_lfGirls, _lfGirls.getSelectedIndex());\n}\n\n}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tint a = Integer.parseInt(text.getText().toString().trim());\r\n\t\t\t\ttry {\r\n\t\t\t\t\tnew Traitement(a);\r\n\t\t\t\t\tvisible(false);\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}", "public void model(){\n\t\t\t String model = \"Honda Shine\";\r\n\t\t\t System.out.println(\"bike model is\"+ model);\r\n\t\t }", "public void initialHeroCastle() {\n Pair<Integer, Integer> heroCastlePosition = world.getHeroCastlePosition();\n SimpleIntegerProperty x2 = new SimpleIntegerProperty();\n SimpleIntegerProperty y2 = new SimpleIntegerProperty();\n x2.set(heroCastlePosition.getValue0());\n y2.set(heroCastlePosition.getValue1());\n String type = \"HeroCastle\";\n Building heroBuilding = new HeroCastleBuilding(x2, y2, type, 0);\n ImageView view = new ImageView(heroBuilding.getImage());\n addEntity(heroBuilding, view);\n squares.getChildren().add(view);\n }", "public static WebElement inputFName(WebDriver driver) {\n\t\telement= scrollIntoView(driver,driver.findElement(By.xpath(\".//label[contains(text(),'First Name')]/following-sibling::input[1]\")));\n\t\thighLighterMethod(element,driver);\n\t\treturn element;\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t builder p = new housebuilder().setBuilddoors(5).setBuildwalls(1).gethouse();//Where as Here we have the flexibility to pass only required fields as parameters\n\t\t System.out.println(p);\n\n\t}", "@Override\n\tpublic void input(String text) {\n\t\t\n\t\tname = text;\n\t}", "@When(\"user clicks on find details\")\r\n\tpublic void user_clicks_on_find_details() {\n\t driver.findElement(By.xpath(\"/html/body/div[1]/form/input\")).click();\r\n\t}", "WebElement getOrganizationField();", "private void addInputFields() {\n dogName = new JTextField();\n dogName.setBounds(205, 160, 140, 25);\n\n weight = new JTextField();\n weight.setBounds(205, 180, 140, 25);\n\n food = new JTextField();\n food.setBounds(205, 200, 140, 25);\n\n this.add(dogName);\n this.add(weight);\n this.add(food);\n }", "public SearchByName() {\n initComponents();\n }", "@Test\n @Then(\"Name of first item is entered in search field\")\n public void s14_SearchByName(){\n searchByNameHP = driver.findElementById(\"header-search\");\n searchByNameHP.sendKeys(checkFirstHP);\n System.out.println(\"Step14 PASSED\");\n }", "private void makeComponents() {\n Font font = new Font(\"Open Sans\", Font.PLAIN, 14);\n\n //Create The buttons and configure their visual design.\n searchArea.setFont(font);\n searchArea.setBorder(new CompoundBorder(BorderFactory.createMatteBorder(4, 7, 4, 7, DrawAttribute.lightblue), BorderFactory.createRaisedBevelBorder()));\n searchArea.setBounds(20, 20, 300, 37);\n searchArea.setActionCommand(\"searchAreaInput\");\n\n makeFrontGUIButtons();\n }", "@FXML\r\n void actionInHouseRadioButton(ActionEvent event) {\r\n\r\n labelPartIdName.setText(\"Machine ID\");\r\n }", "State(String name)\n\t\t{\n\t\t\tthis.name = name;\n\t\t}", "StateClass(String action) {\r\n setAccountAction(action); \r\n }", "public static void main(String[] args) {\n\t\t\n\t\tForm form =new Form();\n\t\t\n\t\tComponent component = new Component(\"txtNama\",\"Nama Saya agung\");\n\t\tComponent component1 = new Component(\"txtNama2\",\"Nama Saya agung setiawan\");\n\t\tComponent component2= new Component(\"txtNama3\",\"Nama Saya agung setiawan\");\n\t\tHeaderComponent headerComponent1=new HeaderComponent(\"txtNama\",\"ini Header\");\n\t\tFooterComponent footerComponent1=new FooterComponent(\"txtNama\",\"ini footer\");\n\t\tContentComponent contentComponent1=new ContentComponent(\"txtNama\",\"ini Content\");\n\t\tInputComponent inputComponent=new InputComponent(\"txtNama\",\"Masukan Nama Anda ?\");\n\t\t\n\t\t\n\t\t\n\t\tform.addComponent(headerComponent1);\n\t\tform.addComponent(contentComponent1);\n\t\tform.addComponent(component);\n\t\tform.addComponent(component1);\n\t\tform.addComponent(footerComponent1);\n\t\tform.addComponent(inputComponent);\n\t\tform.showComponents();\n\t\t\n\t\t\n\t\tinputComponent.setAction(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onAction(Component component ) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tcomponent.setLabel(inputComponent.getValue());\n\t\t\t\tform.showComponents();\n\t\t\t}\n\t\t},headerComponent1);\n\t}", "protected TextGuiTestObject house_Number(TestObject anchor, long flags) \n\t{\n\t\treturn new TextGuiTestObject(\n getMappedTestObject(\"house_Number\"), anchor, flags);\n\t}" ]
[ "0.52111167", "0.5160554", "0.5049923", "0.49892998", "0.48381868", "0.47904995", "0.47544196", "0.47530356", "0.46945292", "0.46772486", "0.4665373", "0.45969495", "0.45680347", "0.45665517", "0.45582992", "0.4544627", "0.4538314", "0.45225585", "0.45002484", "0.44903958", "0.44775176", "0.44713956", "0.4470579", "0.4467407", "0.44631475", "0.4462989", "0.4460851", "0.44582516", "0.44485706", "0.44466543", "0.44441116", "0.44365522", "0.4436443", "0.44362146", "0.4434296", "0.44339088", "0.44071025", "0.44027844", "0.43991396", "0.4391646", "0.4391503", "0.43897653", "0.4383956", "0.43814036", "0.43810976", "0.43534103", "0.4353127", "0.43457237", "0.43396118", "0.43391445", "0.43367016", "0.4332565", "0.43307158", "0.4326771", "0.43261486", "0.4325893", "0.43235764", "0.43233836", "0.43198055", "0.43187785", "0.4315845", "0.43120462", "0.43096557", "0.43078965", "0.43071568", "0.43043143", "0.42959875", "0.429202", "0.42890507", "0.42883316", "0.4287971", "0.42837784", "0.42826518", "0.42823088", "0.4281971", "0.4280186", "0.4276531", "0.42673352", "0.42640436", "0.42612538", "0.42597538", "0.425932", "0.42558044", "0.42465377", "0.4244828", "0.42382067", "0.42367163", "0.42357522", "0.42356086", "0.42344013", "0.42335677", "0.42332968", "0.42307258", "0.42286378", "0.4222481", "0.42167822", "0.42132458", "0.42131904", "0.42124605", "0.4211447" ]
0.4950426
4
house: with specific test context and state. .id : house .type : text .title : .class : Html.INPUT.text .name : house .classIndex : 0
protected TextGuiTestObject house_Number(TestObject anchor, long flags) { return new TextGuiTestObject( getMappedTestObject("house_Number"), anchor, flags); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected TextGuiTestObject house_Number() \n\t{\n\t\treturn new TextGuiTestObject(\n getMappedTestObject(\"house_Number\"));\n\t}", "@Test\r\n public void ActionableTrainingTest() {\n WebElement title1 = driver.findElement(By.cssSelector(\"h3.uagb-ifb-title\"));\r\n \r\n //Assertion for title of the first info box\r\n Assert.assertEquals(title1.getText(), \"Actionable Training\");\r\n \r\n //Print heading of the first info box\r\n Reporter.log(\"Heading is: \" + title1.getText(), true);\r\n }", "@Test\n\tpublic void TC_01_Web_Element() {\n\t\tdriver.findElement(By.id(\"\")); //**\n\t\t\n\t\t//Tim nhieu element\n\t\tdriver.findElements(By.id(\"\"));//**\n\t\t\n\t\t//If chi thao tac vs element 1 lan thi ko can khai bao bien\n\t\tdriver.findElement(By.id(\"small-searchterms\")).sendKeys(\"Apple\");//**\n\t\t\n\t\t//If can thao tac element nhieu lan thi nen khai bao bien\n\t\tWebElement searchTextbox = driver.findElement(By.id(\"small-searchterms\"));\n\t\tsearchTextbox.clear();//**\n\t\tsearchTextbox.sendKeys(\"Apple\");\n\t\tsearchTextbox.getAttribute(\"value\");//**\n\t\t\n\t\t//driver.findElement(By.id(\"small-searchterms\")).clear();\n\t\t//driver.findElement(By.id(\"small-searchterms\")).sendKeys(\"Apple\");\n\t\t//driver.findElement(By.id(\"small-searchterms\")).getAttribute(\"value\");\n\t\t\n\t\t//Count co bao nhieu element thoa dieu kien\n\t\t//Verify so luong element tra ve nhu mong doi\n\t\t//Thao tac vs all cac loai element giong nhau trong 1 page (checkbox/textbox)\n\t\tList<WebElement> checkboxes = driver.findElements(By.xpath(\"//div[@class='inputs']/input[not(@type='checkbox')]\"));\n\t\t\n\t\t//Lay ra so luong\n\t\tAssert.assertEquals(checkboxes.size(), 6);\n\t\t\n\t\tWebElement singleElement = driver.findElement(By.className(\"\"));\n\t\t\n\t\t//Textbox TextArea/ Edittable dropdown\n\t\t//Du lieu duoc toan ven\n\t\tsearchTextbox.clear();\n\t\tsearchTextbox.sendKeys(\"\");\n\t\t\n\t\t//Button/Link/radio/checkbox/custom dropdown/..\n\t\tsingleElement.click();//**\n\t\t\n\t\t//Cac ham co tien to bat dau bang get lun lun tra ve du lieu \n\t\t//getTitle/ getCurrentUrl/ getPageSource/ getAttribute/ getCssValue/ getText/ get...\n\t\tsingleElement = driver.findElement(By.xpath(\"//input[@id='Firstname']\"));\n\t\tsingleElement.getAttribute(\"\");\n\t\t\n\t\t//Automation\n\t\tsingleElement = driver.findElement(By.xpath(\"//input[@id='small-searchterms']\"));\n\t\tsingleElement.getAttribute(\"placeholder\");\n\t\t//Search store\n\t\t\n\t\t//Lay ra gia tri cua cac thuoc tinh css thuong dung de test GUI\n\t\t//Font/Size/Color/Background/...\n\t\tsingleElement = driver.findElement(By.cssSelector(\"search-box-button\"));\n\t\tsingleElement.getCssValue(\"background-color\");//*\n\t\t//#4ab2f1\n\t\tsingleElement.getCssValue(\"text-transform\");\n\t\t//uppercase\n\t\t\n\t\t//Lay ra toa do element so voi page hien tai (get gox ben ngoai)\n\t\tsingleElement.getLocation();\n\t\t\n\t\t//lay ra kich thuoc cua element (rong x cao) -> get goc ben trong element\n\t\tsingleElement.getSize();\n\t\t\n\t\t//Location + size\n\t\tsingleElement.getRect();\n\t\t\n\t\t//Chup hinh loi => dua vao html export\n\t\tsingleElement.getScreenshotAs(OutputType.FILE);//*\n\t\t\n\t\t\n\t\t//id/class/css/name...//tu 1 element ko bik tagname -> lay ra duoc tagname truyen vao cho 1 locator khac\n\t\tsingleElement = driver.findElement(By.xpath(\"//div[@class='inputs']/input[not(@type='checkbox')]\"));\n\t\tString searchButtonTagname = singleElement.getTagName();//*\n\t\t\n\t\tsearchTextbox = driver.findElement(By.xpath(\"//\" + searchButtonTagname + \"[@class='inputs']/input[not(@type='checkbox')]\"));\n\t\t//input\n\t\t\n\t\t//xpath\n\t\t//tagname[@attribute='value']\n\t\t\n\t\t\n\t\t//lay ra text element (header/link/message/...)\n\t\tsingleElement.getText();//**\n\t\t\n\t\t//Cac ham co tien to la isXXX thi tra ve kieu Boolean (100%)\n\t\t//true/false\n\t\t\n\t\t//kiem tra xem 1 element la hien thi cho nguoi dung thao tac hay ko\n\t\t//true: dang hien thi\n\t\t//false: ko hien thi\n\t\tsingleElement.isDisplayed();//**\n\t\t\n\t\t//kiem tra xem 1 element la disable hay ko\n\t\t//disable: user ko thao tac duoc\n\t\t//true: ko thao tac duoc\n\t\t//false: co the thao tac\n\t\tsingleElement.isEnabled();//*\n\t\t\n\t\t//kiem tra xem 1 element da duoc chon roi hay chua\n\t\t//checkbox/ radio/ dropdown\n\t\t//true: da chon roi\n\t\t//false: chua duoc chon\n\t\tsingleElement.isSelected();//*\n\t\t\n\t\t//no thay cho hanh vi ENTER vao textbox/button\n\t\t//chi dung duoc trong form (Login/search/register/...)\n\t\tsingleElement.submit();\n\t\t\n\t\tsingleElement = driver.findElement(By.id(\"small-searchterms\"));\n\t\tsingleElement.sendKeys(\"Apple\");\n\t\tsingleElement.submit();\n\t\t\n\t\t\n\t\t\n\t}", "@Test\n @Then(\"Name of first item is entered in search field\")\n public void s14_SearchByName(){\n searchByNameHP = driver.findElementById(\"header-search\");\n searchByNameHP.sendKeys(checkFirstHP);\n System.out.println(\"Step14 PASSED\");\n }", "public ManagePropertiesPage reviewProrty(Hashtable<String, String> testData) throws Exception {\n\ttry{\n\t\tcheckElementExistence(driver,By.xpath(\"lblPptyAddressvalue\"),5);\n\t\t/*COC.webAdaptor(Actions.waitForObjectToLoad, \"lblPptyAddressvalue\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblPptybillinfo\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblPptyName\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblPptyNameValue\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblPptyAddress\");\n\t\tCOC.webAdaptor(Actions.waitForText, \"lblPptyAddressvalue\");\n\t\n\t\t\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblMasterAccntno\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblMasterAccntnoValue\");\n\t\tCOC.webAdaptor(Actions.waitForText, \"lblAcntBillgName\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblAcntBillgNameValue\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblAccntMailingadd\");\n\t\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblAccntMailingaddvalue\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblUnit\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblAddress\");\n\n\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblTermsAgg\");\n\t\t*/COC.webAdaptor(Actions.click, \"chkTermsAgg\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblName\");\n\t\tcheckElementExistence(driver,By.xpath(\"inputName\"),5);\n\t\tCOC.webAdaptor(Actions.setText, \"inputName\",testData.get(\"Name\"));\n\t\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblTitle\");\n\t\tcheckElementExistence(driver,By.xpath(\"inputTitle\"),5);\n\t\tCOC.webAdaptor(Actions.setText, \"inputTitle\", testData.get(\"Title\"));\n\t\t\n\t\t/*COC.webAdaptor(Actions.waitForObjectToLoad, \"lblEmail\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lblEmailValue\");\n\t\tCOC.webAdaptor(Actions.waitForObjectToLoad, \"lnkBack\");\n\t\n\t*/\t\n\t\tcheckElementExistence(driver,By.xpath(\"btnSubmit\"),5);\n\t\t//COC.webAdaptor(Actions.waitForObjectToLoad, \"btnSubmit\");\n\t\tCOC.webAdaptor(Actions.click, \"btnSubmit\");\n\t\tThread.sleep(5000);\n\t\t\n\t/*\tFile scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\n\t\tFileUtils.copyFile(scrFile, new File(\"Screenshots//\" + this.getClass().getSimpleName() + \"_\" +System.currentTimeMillis() +\".png\"));\n\t\tCOCDriverScript.logMessage(\"testStepPass\", \"Selected New Property\");\n\t*/ }catch(Exception e){\n\t\tCOCDriverScript.logMessage(\"testStepFail\", \"Element not found\");\n\t\tSystem.out.println(e.getMessage());\n\t\te.printStackTrace();\n\t\tFile scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\n\t\tFileUtils.copyFile(scrFile, new File(\"Screenshots//\" + this.getClass().getSimpleName() + \"_\" +System.currentTimeMillis() +\".png\"));\n\t }\n\treturn new ManagePropertiesPage(driver, localData);\n}", "public void findHouse() {\n System.out.println(\"-----Search House-----\");\n System.out.println(\"enter id: \");\n int findId = Utility.readInt();\n //call service search method\n House h = houseService.searchHouse(findId);\n if (h != null) {\n System.out.println(h);\n } else {\n System.out.println(\"no designate house found\");\n }\n }", "@When(\"user clicks on find details\")\r\n\tpublic void user_clicks_on_find_details() {\n\t driver.findElement(By.xpath(\"/html/body/div[1]/form/input\")).click();\r\n\t}", "@Test\n public void resalePropertyMatch() throws UiObjectNotFoundException {\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"btn_create_post\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"lbl_resale_prop\")).click();\n device.findObject(By.text(\"Search building name\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"input_search\")).setText(\"Icon\");\n device.wait(Until.findObject(By.text(\"Icon Linera\")), 10000);\n device.findObject(By.text(\"Icon Linera\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"dd_configuration\")).click();\n device.findObject(By.text(\"3 BHK\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"txt_pricing\")).click();\n device.findObject(By.text(\"7\")).click();\n device.findObject(By.text(\"5\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"Done\")).click();\n device.wait(Until.findObject(By.text(\"sq ft\")), 2000);\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"txt_carpet_area\")\n .childSelector(new UiSelector().className(Utils.EDIT_TEXT_CLASS))).setText(\"1200\");\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"dd_floor\")).click();\n device.findObject(By.text(\"Higher\")).click();\n device.findObject(By.text(\"4\")).click();\n UiScrollable postView = new UiScrollable(new UiSelector().scrollable(true));\n UiSelector postSelector = new UiSelector().text(\"POST\");\n postView.scrollIntoView(postSelector);\n device.findObject(postSelector).click();\n device.wait(Until.findObject(By.text(\"POST\").enabled(true)), 10000);\n String matchNameString = device.findObject(By.textContains(\"matches\")).getText().split(\" \")[0];\n device.findObject(By.text(\"POST\")).click();\n device.wait(Until.findObject(By.text(\"RESALE PROPERTY\")), 9000);\n Assert.assertNotEquals(\"Test Case Failed...No Match found\", \"no\", matchNameString.toLowerCase());\n String postMatchName = device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"lbl_name\")).getText();\n Assert.assertEquals(\"Test Case Failed...Match should have had been found with\", \"dialectic test\", postMatchName.toLowerCase());\n\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"btn_close\")).click();\n Utils.markPostExpired(device);\n }", "@Test\n public void test033() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Checkbox checkbox0 = new Checkbox(errorPage0, \"\", \"\");\n String string0 = checkbox0.defaultTagName();\n XmlEntityRef xmlEntityRef0 = (XmlEntityRef)errorPage0.entity(\"input\");\n }", "@Test\n public void testFindByName() throws Exception {\n\n Tracker tracker = new Tracker();\n\n String action = \"0\";\n String yes = \"y\";\n String no = \"n\";\n\n // add item\n\n String name = \"task1\";\n String desc = \"desc1\";\n String create = \"3724\";\n\n Input input1 = new StubInput(new String[]{action, name, desc, create, yes});\n new StartUI(input1).init(tracker);\n\n // find item\n\n String action2 = \"4\";\n\n Input input2 = new StubInput(new String[]{action2, name, yes});\n new StartUI(input2).init(tracker);\n\n }", "public static void main(String[] args) {\n WebDriver driver = WebDriverFactory.getDriver(\"chrome\");\n driver.get(\"https://www.amazon.com/\");\n\n WebElement searchBox = driver.findElement(By.id(\"twotabsearchtextbox\"));\n searchBox.sendKeys(\"selenium cookbook\" + Keys.ENTER);\n\n WebElement searchedItem = driver.findElement(By.xpath(\"//span[.=\\\"Selenium Testing Tools Cookbook - Second Edition\\\"]\"));\n System.out.println(searchedItem.getText());\n if(searchedItem.isDisplayed()){\n System.out.println(\"pass\");\n }else{\n System.out.println(\"fail\");\n }\n\n\n\n }", "@Test(priority = 99)\r\n@Epic(\"BILLS PAYMENT\")\r\n@Features(value = { @Feature(value = \"SCHOOL FEES PAYMENTS\") })\r\n@Step (\"Verify that system is able to search and display correct school Name school code and Bank branch when user click on search for school functionality\")\r\npublic void Verify_that_system_is_able_to_search_and_display_correct_school_name_school_code_and_Bank_branch_when_user_click_on_search_for_school_functionality() {\n\tdriver.findElement(By.xpath(\"//a[contains(.,'Home')]\")).click();\r\n\tWebDriverWait wait = new WebDriverWait(driver, 15);\r\n\twait.until(ExpectedConditions.visibilityOfElementLocated(By.linkText(\"Bill Payment\")));\r\n\tdriver.findElement(By.linkText(\"Bill Payment\")).click();\r\n\tWebDriverWait wait1 = new WebDriverWait(driver, 15);\r\n\twait1.until(\r\n\t\tExpectedConditions.visibilityOfElementLocated(By.xpath(\"//div[text()=' Institutional Payments ']\")));\r\n\tdriver.findElement(By.xpath(\"//div[text()=' Institutional Payments ']\")).click();\r\n\tdriver.findElement(By.xpath(\"//div[@class='col-in schoolFee']\")).click();\r\n\tdriver.findElement(By.id(\"FORM_SF_SCHOOL_INFO-SEARCH_SCHOOL_BY\")).click();\r\n\t{\r\n\t WebElement dropdown = driver.findElement(By.id(\"FORM_SF_SCHOOL_INFO-SEARCH_SCHOOL_BY\"));\r\n\t dropdown.findElement(By.xpath(\"//option[. = 'Account Number']\")).click();\r\n\t}\r\n\tdriver.findElement(By.id(\"FORM_SF_SCHOOL_INFO-SEARCH_SCHOOL_BY\")).click();\r\n\tdriver.findElement(By.id(\"FORM_SF_SCHOOL_INFO-SF_ACCOUNT_NUMBER\")).click();\r\n\tdriver.findElement(By.id(\"FORM_SF_SCHOOL_INFO-SF_ACCOUNT_NUMBER\")).sendKeys(\"01129080146300\");\r\n\tdriver.findElement(By.id(\"FORM_SF_SCHOOL_INFO-SEARCH_SCHOOL\")).click();\r\n\tdriver.findElement(By.cssSelector(\".ct-formlayout-SCHOOL_NAME .ct-form__ip\")).click();\r\n\tdriver.findElement(By.cssSelector(\".ct-formlayout-SCHOOL_CODE .ct-form__ip\")).click();\r\n\tSystem.out.println(\"TC13 Verify_that_system_is_able_to_search_and_display_correct_school_name_school_code_and_Bank_branch_when_user_click_on_search_for_school_functionality |Success:\");\r\n\r\n\t}", "@Test\n\t @WebTest\n\t public void DemoTest1() throws InterruptedException {\n\t Grid.driver().get(\"http://www.google.com/\");\n\t \n\t TextField field = new TextField(\"id=lst-ib\");\n\n\t //Thread will wait until TextFiled element present in the browser\n\t WebDriverWaitUtils.waitUntilElementIsPresent(field.getLocator());\n\n\t //Search for the string 'SeLion' in the text box\n\t field.type(\"Selenium\\n\");\n\t }", "@Test\n public void testWrongOpenHoursCheck() {\n window.textBox(\"storeNameTFld\").setText(\"store1\");\n window.textBox(\"numOfSeatsTFld\").setText(\"155\");\n window.textBox(\"storeAddressTFld\").setText(\"address\");\n window.textBox(\"storeCityTFld\").setText(\"city\");\n window.textBox(\"storePhoneTFld\").setText(\"123123\");\n window.textBox(\"emailTFld\").setText(\"hlias.karasyahoo.gr\");\n window.textBox(\"fromOpenHoursTFld\").setText(\"00:00\");\n window.textBox(\"toOpenHoursTFld\").setText(\"00:00\"); \n window.button(\"addStoreBtn\").click();\n window.optionPane().okButton().click();\n window.label(\"openHoursFalseLbl\").requireVisible();\n }", "@Test\n public void rentPropertyMatch() throws UiObjectNotFoundException {\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"btn_create_post\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"lbl_rental_prop\")).click();\n device.findObject(By.text(\"Search building name\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"input_search\")).setText(\"Icon\");\n device.wait(Until.findObject(By.text(\"Icon Viva\")), 10000);\n device.findObject(By.text(\"Icon Viva\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"dd_configuration\")).click();\n device.findObject(By.text(\"1 BHK\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"txt_pricing\")).click();\n device.findObject(By.text(\"2\")).click();\n device.findObject(By.text(\"5\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"Done\")).click();\n device.wait(Until.findObject(By.text(\"Yes\")), 2000);\n device.findObject(By.text(\"Yes\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"dd_furnishing\")).click();\n device.findObject(By.text(\"Fully-Furnished\")).click();\n UiScrollable postView = new UiScrollable(new UiSelector().scrollable(true));\n UiSelector postSelector = new UiSelector().text(\"POST\");\n postView.scrollIntoView(postSelector);\n device.findObject(postSelector).click();\n device.wait(Until.findObject(By.text(\"POST\").enabled(true)), 10000);\n String matchNameString = device.findObject(By.textContains(\"matches\")).getText().split(\" \")[0];\n device.findObject(By.text(\"POST\")).click();\n device.wait(Until.findObject(By.text(\"RENTAL PROPERTY\")), 9000);\n Assert.assertNotEquals(\"Test Case Failed...No Match found\", \"no\", matchNameString.toLowerCase());\n String postMatchName = device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"lbl_name\")).getText();\n Assert.assertEquals(\"Test Case Failed...Match should have had been found with\", \"dialectic test\", postMatchName.toLowerCase());\n\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"btn_close\")).click();\n Utils.markPostExpired(device);\n }", "public void setHouse_number(int house_number) {\n this.house_number = house_number;\n }", "@Test\r\n\t\tpublic void testParsePuts() {\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\tString a = \"the_best_cat = \\\"Noogie Cat\\\" \\nputs \\\"The best cat is: \\\" + the_best_cat\";\r\n\t\t\tdriver.findElement(By.id(\"code_code\")).sendKeys(a);;\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\tWebElement submitButton = driver.findElement(By.xpath(\"(//input[@name='commit'])[2]\"));\r\n\t\t\tsubmitButton.click();\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tWebElement e = driver.findElement(By.tagName(\"code\"));\r\n\t\t\t\tString elementText = e.getText();\r\n\t\t\t\tassertTrue(elementText.contains(\"@ident\"));\r\n\t\t\t} catch (NoSuchElementException nseex) {\r\n\t\t\t\tfail();\r\n\t\t\t}\r\n\t\t}", "@Test\n public void flightSearch() {\n FirefoxDriver browser = openBrowser(\"http://www.hotwire.com/ \");\n\n //Go to Bundles option\n bundlesOption(browser);\n\n //Search for the SFO to LAX flight\n inputCities(browser, \"SFO\", \"LAX\");\n\n //Calculate the flight days\n //Departing next day\n //Returning 20 days after\n flightDays(browser);\n\n //Click the Find Deal button\n findDeal(browser);\n\n //Wait for the page to load until the results are displayed\n results(browser);\n }", "@Test\n public void obesityCategory() {\n\n driver.findElement(By.xpath(\"//input[@name='wg']\")).sendKeys(\"102.7\");\n driver.findElement(By.xpath(\"//input[@name='ht']\")).sendKeys(\"185\");\n driver.findElement(By.xpath(\"//input[@name='cc']\")).click();\n Assert.assertEquals(driver.findElement(By.name(\"desc\")).getAttribute(\"value\"), \"Your category is Overweight\",\n \"actual text is not: Your category is Overweight\");\n }", "public void heightWeightTest() {\r\n\t\tif(Step.Wait.forElementVisible(QuoteForm_ComponentObject.feetDropDownLocator, \"Feet drop-down\", 5)) {\r\n\t\t\tdropDownTest(QuoteForm_ComponentObject.feetDropDownLocator, QuoteForm_ComponentObject.feetDefaultLocator, \r\n\t\t\t\t\tQuoteForm_ComponentObject.feetValidSelectionLocator, QuoteForm_ComponentObject.feetInvalidSelectionLocator, \"FT.\", \"6\");\r\n\t\t}\r\n\t\tif(Step.Wait.forElementVisible(QuoteForm_ComponentObject.inchesDropDownLocator, \"Inches drop-down\", 5)) {\r\n\t\t\tdropDownTest(QuoteForm_ComponentObject.inchesDropDownLocator, QuoteForm_ComponentObject.inchesDefaultLocator,\r\n\t\t\t\t\tQuoteForm_ComponentObject.inchesValidSelectionLocator, QuoteForm_ComponentObject.inchesInvalidSelectionLocator, \"IN.\", \"1\");\r\n\t\t}\r\n\t\tif(Step.Wait.forElementVisible(QuoteForm_ComponentObject.weightInputLocator, \"Weight input field\", 5)) {\r\n\t\t\tString weightPlaceHolderLBS = Step.Extract.getContent(QuoteForm_ComponentObject.weightInputLocator, \"Weight placeholder\", \"placeholder\");\r\n\t\t\t\r\n\t\t\tif(weightPlaceHolderLBS.contentEquals(\"LBS.\")) {\r\n\t\t\t\tStep.Passed(\"Weight text box displays 'LBS.' as a placeholder\");\r\n\t\t\t} else {\r\n\t\t\t\tStep.Failed(\"Weight text box does not display 'LBS.' as a placeholder\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tStep.Action.typeText(QuoteForm_ComponentObject.weightInputLocator, \"Weight input field\", \"2345\");\r\n\t\t\tString weightSpecified = Step.Extract.getContentUsingJS(QuoteForm_ComponentObject.weightInputLocator,\r\n\t\t\t\t\t\"Weight input field content\");\r\n\t\t\tif(weightSpecified.length() > 3) {\r\n\t\t\t\tStep.Failed(\"Weight input field accepts more than 3 digits\");\r\n\t\t\t} else {\r\n\t\t\t\tStep.Passed(\"Weight input field does not accept more than 3 digits\");\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Test\n\tpublic void happyCreateNewIngredient(){\n\t\tname = \"Ingredient\" + String.valueOf(Math.random()).replace(\".\", \"\");\n\t\tdriver.manage().timeouts().implicitlyWait(3, TimeUnit.SECONDS);\n\t\tIngredientPage i = new IngredientPage(driver);\n\t\ti.click(By.id(\"dropdown\"));\n\t\ti.click(By.id(\"add_dropdown\"));\n\t\ti.sendKeys(By.id(\"name\"), name);\n\t\ti.sendKeys(By.id(\"cost\"), \"3\");\n\t\ti.sendKeys(By.id(\"inventory\"), \"5\");\n\t\ti.sendKeys(By.id(\"unitofmeasure\"), \"fluffy\");\n\t\ti.click(By.id(\"createingredient\"));\n\t\ti.click(By.className(\"close\"));\n\t\tassertEquals(name, i.getInnerHtml(By.id(name)));\n\t}", "public static void main(String[] args) {\n\n\t\tWebDriverManager.chromedriver().setup();\n\t\t\n\t\tWebDriver driver = new ChromeDriver();\n\t\t\n\t\tdriver.get(\"https://www.etsy.com/ca/\");\n\t\n\t\t\n\t\t\n\t\tString searchTerm=\"wooden spoon\";\n\n\t\t//\t\tdriver.findElement(By.id(\"search-query\")).sendKeys(searchTerm);\n\t\t//WebElemnt class represent element from page. find element method returns a webelement object\n\t\t\n\t\tWebElement input =driver.findElement(By.id(\"search-query\"));\n\t input.sendKeys(searchTerm+Keys.ENTER);\n\t\t\n\t input=driver.findElement(By.id(\"search-query\"));\n\t //To hit the enter you have to import Keys class.\n\t String actual = input.getAttribute(\"value\");\n\t System.out.println(actual);\n\t\t\n\t\tif(actual.equals(searchTerm)) {\n\t\t\tSystem.out.println(\"Pass\");\n\t\t}else {\n\t\t\tSystem.out.println(\"Fail\");\n\t\t\tSystem.out.println(\"Expected:\\t\"+ searchTerm);\n\t\t\tSystem.out.println(\"Actual:\\t\"+ actual);\n\t\t}\n\t\tSystem.out.println(input.getAttribute(\"outerHTML\"));\n\t \n\t\tdriver.findElement(By.linkText(\"Sell on Etsy\")).click();\n\t\t\n\t\t input=driver.findElement(By.id(\"search-query\"));\n\t\t //To hit the enter you have to import Keys class.\n\t\t String actual2 = input.getAttribute(\"id\");\n\t\t System.out.println(actual2);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "protected GuiTestObject html_main() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"html_main\"));\n\t}", "@Test\r\n\t\r\n\tpublic void reviewHotel() throws Throwable {\r\n\tTripAdvisorPage review=new TripAdvisorPage(driver);\r\n\t/*searching Club Mahindra */\r\n\treview.searchinTripAdvisor();\r\n\t/* review*/\r\n\treview.searchForReview();\r\n\t\r\n}", "public void selectstreettype(String Street){\r\n\r\n\t\tString Street1 = getValue(Street);\r\n\t\tString countrygroup_streettype =\"Italy\";\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+Street1);\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:-\"+Street1+\" Street type should be selected\");\r\n\t\ttry{\r\n\t\t\tif((countrygroup_streettype).contains(countries.get(countrycount))){\r\n\t\t\t\twaitforElementVisible(locator_split(\"checkoutstreettype\"));\r\n\t\t\t\tselectList(locator_split(\"checkoutstreettype\"),Street1);\r\n\t\t\t\twaitForPageToLoad(20);\r\n\r\n\t\t\t\tSystem.out.println(locator_split(\"checkoutstreettype\")+\" link selected\");\r\n\t\t\t\tReporter.log(\"PASS_MESSAGE:- Street Type is selected\");\r\n\t\t\t\tSystem.out.println(\"Street type down is applicable to \" +country+ \" only\");\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tSystem.out.println(\"Street type is not applicable for this country\");\r\n\t\t\t\tReporter.log(\"PASS_MESSAGE:- Street Type is not applicable \");\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Street Type is not selected or type not available\"+elementProperties.getProperty(\"txtSearch\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"checkoutstreettype\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\t}", "@Test\n public void testDAM30902001() {\n // Data preparation\n {\n clearAndCreateTestDataForBook();\n }\n\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n TodoListPage todoListPage = dam3IndexPage.dam30902001Click();\n\n // Confirmation of database state before batch update\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"3\"));\n assertThat(todoListPage.getIncompletTodoCount(), equalTo(\"7\"));\n assertThat(todoListPage.getTotalTodoCount(), equalTo(\"10\"));\n\n // add one sample todo which has some unique title from those of the\n // above\n // this is used to have some unique combination satisfying the choose\n // element other branch\n // Open todo registration page\n TodoRegisterPage registerTodoPage = todoListPage.registerTodo();\n\n // input todo details\n registerTodoPage.setTodoId(\"0000000025\");\n registerTodoPage.setTodoCategory(\"CA2\");\n registerTodoPage.setTodoTitle(\"sample todo\");\n\n registerTodoPage.addTodo();\n\n webDriverOperations.displayPage(getPackageRootUrl());\n\n dam3IndexPage = new DAM3IndexPage(driver);\n\n todoListPage = dam3IndexPage.dam30102002Click();\n\n todoListPage.setTodoTitleContent(\"Todo 1\");\n\n todoListPage.setTodoCreationDate(\"2016-12-30\");\n\n todoListPage = todoListPage.chooseElementUsageSearch();\n\n // Confirm the todos when title is specified from the choose element\n\n // Confirmation of database state before batch update\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getIncompletTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getTotalTodoCount(), equalTo(\"2\"));\n\n webDriverOperations.displayPage(getPackageRootUrl());\n\n dam3IndexPage = new DAM3IndexPage(driver);\n\n todoListPage = dam3IndexPage.dam30102002Click();\n\n todoListPage.setTodoCreationDate(\"2016-12-30\");\n\n todoListPage = todoListPage.chooseElementUsageSearch();\n\n // Confirm the todos when title is not specified from the choose\n // element.\n // here it takes default value specified in otherwise tag of choose\n // (sample)\n\n // Confirmation of database state before batch update\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"0\"));\n assertThat(todoListPage.getIncompletTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getTotalTodoCount(), equalTo(\"1\"));\n }", "@Test\r\n public void regButton(){\r\n onView(withId(R.id.edUserReg)).perform(typeText(\"Jade\"));\r\n onView(withId(R.id.Stud_id)).perform(typeText(\"Jade\"));\r\n onView(withId(R.id.edPassReg)).perform(typeText(\"hey\"));\r\n onView(withId(R.id.edPassConReg)).perform(typeText(\"hey\"));\r\n onView(withId(R.id.btnReg)).perform(click());\r\n }", "@Test\n public void seeInfoAboutAisleFromSearch(){\n String itemTest = \"Potatoes\";\n String aisleCheck = \"Aisle: 2\";\n String aisleDescriptionCheck = \"Aisle Description: Between Aisle 1 and Frozen Aisle\";\n onView(withId(R.id.navigation_search)).perform(click());\n onView(withId(R.id.SearchView)).perform(typeText(itemTest));\n onData(anything()).inAdapterView(withId(R.id.myList)).atPosition(0).perform(click());\n onView(withText(\"VIEW MORE INFORMATION\")).perform(click());\n onView(withId(android.R.id.message)).check(matches(allOf(withSubstring(aisleCheck), isDisplayed())));\n onView(withId(android.R.id.message)).check(matches(allOf(withSubstring(aisleDescriptionCheck), isDisplayed())));\n onView(withText(\"OK\")).perform(click());\n }", "@Test(priority = 1)\n\tpublic void enterInputs() throws Exception {\n\n\t\ttest = reports.startTest(pageName + \"Sample test to validate Webpage title\");\n\t\tif (homePage.validateTitle(test)) {\n\t\t\ttest.log(LogStatus.PASS, \"Text is Successfully inserted.\");\n\t\t\tBaseUtil.CaptureScreen(driver,passScreenShotPath + this.getClass().getSimpleName().replaceAll(\"Test\", \"\") + \"//isTitleCorrect\");\n\t\t} else {\n\t\t\tBaseUtil.CaptureScreen(driver,failScreenShotPath + this.getClass().getSimpleName().replaceAll(\"Test\", \"\") + \"//isTitleCorrect\");\n\t\t\ttest.log(LogStatus.FAIL, \"Text is not Successfully inserted.\");\n\t\t}\n\t\treports.endTest(test);\n\t\t// Thread.sleep(5000);\n\t}", "public void findUIElements() {\n nameField = (EditText) findViewById(R.id.NAMEFIELD);\n nameField.setHintTextColor(getResources().getColor(R.color.colorPrimary));\n enterButton = (Button) findViewById(R.id.ENTER);\n enterButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n String name = nameField.getText().toString();\n if (name.length() > 0) {\n RealmManager.getInstance().createUser(name);\n finish();\n }\n }\n });\n }", "@Test\r\n public void passConText() {\r\n onView(withId(R.id.edPassConReg)).perform(typeText(\"hey\"));\r\n }", "public void VerifyShopinsightTitle(String Exptext){\r\n\t\tString countryy=\"Germany\";\r\n\t\tString ExpectedTitle[] = getValue(Exptext).split(\",\",2);\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Shopping insight title should be present\");\r\n\t\ttry{\r\n\t\t\tif(countryy.contains(countries.get(countrycount))){\r\n\t\t\t\tif(getAndVerifyTextfromList(locator_split(\"txtShoppinginSightDesc\"), ExpectedTitle[1],1)){\r\n\t\t\t\t\tSystem.out.println(ExpectedTitle[1]+\" is present\");\r\n\t\t\t\t\tReporter.log(\"PASS_MESSAGE:- \"+ExpectedTitle[1]+\" is present in Shopping insight box\");\r\n\t\t\t\t} else{ \r\n\t\t\t\t\tthrow new Error(ExpectedTitle[1]+\" is not present\");\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\tif(getAndVerifyTextfromList(locator_split(\"txtTitle\"), ExpectedTitle[1],Integer.valueOf(ExpectedTitle[0]))){\r\n\t\t\t\t\tSystem.out.println(ExpectedTitle[1]+\" is present\");\r\n\t\t\t\t\tReporter.log(\"PASS_MESSAGE:- \"+ExpectedTitle[1]+\" is present in Shopping insight box\");\r\n\t\t\t\t} else{ \r\n\t\t\t\t\tthrow new Error(ExpectedTitle[1]+\" is not present\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(NoSuchElementException e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- \"+elementProperties.getProperty(\"txtTitle\")+\" / \"+elementProperties.getProperty(\"txtShoppinginSightDesc\")+\" is not Present\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"txtTitle\")\r\n\t\t\t\t\t+ elementProperties.getProperty(\"txtShoppinginSightDesc\")\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\r\n\t\tcatch(Error Er){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Expected text - '\"+ExpectedTitle[1]+\" is not present in Shopping insight box\");\r\n\t\t\tthrow new Error(\"Expected text - '\"+ExpectedTitle[1]+\" is not present\");\r\n\t\t}\r\n\t}", "@Test\r\n\t\tpublic void testTokenizePuts() {\r\n\t\t\t\t\t\t\t\r\n\t\t\tString a = \"the_best_cat = \\\"Noogie Cat\\\" \\nputs \\\"The best cat is: \\\" + the_best_cat\";\r\n\t\t\tdriver.findElement(By.id(\"code_code\")).sendKeys(a);;\r\n\t\t\t\t\t\t\t\r\n\t\t\tWebElement submitButton = driver.findElement(By.name(\"commit\"));\r\n\t\t\tsubmitButton.click();\r\n\t\t\t\t\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tWebElement e = driver.findElement(By.tagName(\"code\"));\r\n\t\t\t\tString elementText = e.getText();\r\n\t\t\t\tassertTrue(elementText.contains(\":on_ident\"));\r\n\t\t\t} catch (NoSuchElementException nseex) {\r\n\t\t\t\tfail();\r\n\t\t\t}\r\n\t\t}", "@Test\r\n public void passText() {\r\n onView(withId(R.id.edPassReg)).perform(typeText(\"hey\"));\r\n }", "public static void main(String[] args) {\n String firstInitial, lastName, streetName, streetType, cityName;\n int houseNumber;\n Scanner keyboard=new Scanner(System.in);\n\n System.out.print(\"Enter your first initial, last name, street name,street type and your house number: \");\n firstInitial=keyboard.next();\n lastName=keyboard.next();\n streetName=keyboard.next();\n streetType=keyboard.next();\n cityName=keyboard.next();\n houseNumber=keyboard.nextInt();\n System.out.print(firstInitial+ \" \" +lastName+ \" \" + houseNumber +\" \");\n System.out.println(streetName + \" \" + streetType + \" \" +cityName);\n\n }", "public void SetCheckoutRegistrationHousenumber(String hosuenumber){\r\n\t\tString Hosuenumber = getValue(hosuenumber);\r\n\t\tString countrygroup_houseno = \"Netherland\";\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+Hosuenumber);\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Registration House number should be entered as '\"+Hosuenumber+\"' \");\r\n\t\ttry{\r\n\t\t\tif((countrygroup_houseno).contains(countries.get(countrycount))){\r\n\t\t\t\tsendKeys(locator_split(\"txtcheckoutregistrationhousenumber\"),Hosuenumber);\r\n\t\t\t\tSystem.out.println(\"Registration house number is entered as '\"+Hosuenumber+\"' \");\r\n\t\t\t\tReporter.log(\"PASS_MESSAGE:- Registration house number is entered as '\"+Hosuenumber+\"' \");\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{ \r\n\t\t\t\tsendKeys(locator_split(\"txtcheckoutregistrationaddress\"),Hosuenumber);\r\n\t\t\t\tSystem.out.println(\"Registration Address is entered as \"+Hosuenumber);\r\n\t\t\t\tReporter.log(\"PASS_MESSAGE:- Registration Address is entered as \"+Hosuenumber);\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Registration house number is not entered\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"txtcheckoutregistrationhousenumber\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\r\n\r\n\t}", "public void enterPass(String pass){\n actionsWithOurElements.enterTextInToElement(inputPass, pass);\n }", "@OnClick(R.id.search_estate_bt_search)\n public void search(View view) {\n Log.d(TAG, \"search: \");\n\n mSearchEstateViewModel.searchEstate(\n mEstateType.getText().toString(),\n mPrice1.getText().toString(),\n mPrice2.getText().toString(),\n mSurface1.getText().toString(),\n mSurface2.getText().toString(),\n mCity.getText().toString(),\n mNumbersRooms1.getText().toString(),\n mNumbersRooms2.getText().toString(),\n mNumbersBathrooms1.getText().toString(),\n mNumbersBathrooms2.getText().toString(),\n mNumbersBedrooms1.getText().toString(),\n mNumbersBedrooms2.getText().toString(),\n mNumbersPhoto1.getText().toString(),\n mNumbersPhoto2.getText().toString(),\n // Point of Interest\n mChipGarden.isChecked(),\n mChipLibrary.isChecked(),\n mChipRestaurant.isChecked(),\n mChipSchool.isChecked(),\n mChipSwimmingPool.isChecked(),\n mChipTownHall.isChecked()\n );\n }", "public void Hazards(){\r\n\t\r\n\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- My Account should be clicked and user should get logged in\");\r\n\t\ttry{\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t/*driver.switchTo().defaultContent();\r\n\t\t\t\t\tsleep(3000);\r\n\t\t\t System.out.println(\"switched frame\"+ switchframe(\"PegaGadget2Ifr\"));\r\n\t\t\t click(locator_split(\"tabLocationAssesment\"));\r\n\t\t\t click(locator_split(\"linkclickLocation\"));*/\r\n\t\t\t // driver.findElement(By.xpath(\"//*[@tabindex='4']/a/span\")).click();\r\n\t\t\t // driver.findElement(By.xpath(\"//a[@title='Click here to open Location Assessment']\")).click();\r\n\t\t\tsleep(5000);\r\n\t\t\t driver.switchTo().defaultContent();\r\n\t\t\t System.out.println(\"switched frame\"+ switchframe(\"PegaGadget3Ifr\"));\r\n\t\t\t click(locator_split(\"tabhazards\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t click(locator_split(\"btnaddrowhazards\"));\r\n\t\t\t sleep(5000);\r\n\t\t\t Robot r1=new Robot();\r\n\t\t\t\t // r.keyPress(java.awt.event.KeyEvent.);\r\n\t\t\t\t sleep(1000);\r\n\t\t\t\t // Press Enter\r\n\t\t\t\t r1.keyPress(java.awt.event.KeyEvent.VK_ENTER);\r\n\t\t\t\t sleep(1000);\r\n\t\t\t sleep(5000);\r\n\t\t\t \t\r\n\t\t\t\t selectListValue(locator_split(\"listhazardsmaintype\"), getValue(\"HazardsMainType\"));\r\n\t\t\t\t sleep(2000);\r\n\t\t\t \r\n\t\t\t selectListValue(locator_split(\"listhazardtype\"), getValue(\"HazardsType\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t if(getValue(\"HazardsType\").equals(\"Storage\")){\r\n\t\t\t \t\r\n\t\t\t \tclearWebEdit(locator_split(\"txtcustomhazardtype\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \tsendKeys(locator_split(\"txtcustomhazardtype\"), getValue(\"CustomHazardType\"));\r\n\t\t\t \t\r\n\t\t\t\t sleep(2000);\r\n\t\t\t \t\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t \r\n\t\t\t \r\n\t\t\t selectListValue(locator_split(\"lsthazardcategory\"), getValue(\"HazardCategory\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t clearWebEdit(locator_split(\"txthazardareasize\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t sendKeys(locator_split(\"txthazardareasize\"), getValue(\"HazardAreaSize\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t selectListValue(locator_split(\"lsthazardclass\"), getValue(\"HazardClass\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t clearWebEdit(locator_split(\"txtspecificlocationname\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t sendKeys(locator_split(\"txtspecificlocationname\"), getValue(\"SpecificLocationName\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t selectListValue(locator_split(\"lstdeficiencies\"), getValue(\"Deficiencies\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t clearWebEdit(locator_split(\"txtareadeficienciesdescription\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t sendKeys(locator_split(\"txtareadeficienciesdescription\"), getValue(\"DeficienciesDescription\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t if (getValue(\"HazardsMainType\").equals(\"Storage\")){\r\n\t\t\t \t clearWebEdit(locator_split(\"txtstorageheight\"));\r\n\t\t\t\t\t sleep(2000);\r\n\t\t\t\t\t sendKeys(locator_split(\"txtstorageheight\"), getValue(\"StorageHeight\"));\r\n\t\t\t\t\t sleep(2000);\r\n\t\t\t\t\tclearWebEdit(locator_split(\"txtceilingheight\"));\r\n\t\t\t\t\t\t sleep(2000);\r\n\t\t\t\t\t\t sendKeys(locator_split(\"txtceilingheight\"), getValue(\"CeilingHeight\"));\r\n\t\t\t\t\t\t sleep(2000);\r\n\t\t\t\t\tselectListValue(locator_split(\"lstpredominantclass\"), getValue(\"PredominantClass\"));\r\n\t\t\t\t\t\t sleep(2000);\r\n\t\t\t\t\t\t selectListValue(locator_split(\"lststoragearrangement\"), getValue(\"StorageArrangement\"));\r\n\t\t\t\t\t\t sleep(2000);\r\n\t\t\t\t\t\t \r\n\t\t\t }\r\n\t\t\t sleep(2000);\r\n\t\t\t \t\t\t click(locator_split(\"btnuploadphotos\"));\r\n\t\t\t sleep(5000);\r\n\t\t\t \r\n \t\t\t \r\n\t\t\t sendKeys(locator_split(\"txtphotocaption\"), getValue(\"PhotoCaption\"));\r\n\t\t\t \r\n\t\t\t sleep(3000);\r\n\t\t\t \r\n\t\t\t \r\n\t\t\t click(locator_split(\"btnbrowse\"));\r\n\t\t\t sleep(5000);\r\n\t\t\t Runtime.getRuntime().exec(\"D:\\\\Grasp\\\\AutoIT\\\\UploadFile.exe\");\r\n\t\t\t // click(locator_split(\"btnbrowse\"));\r\n\t\t\t /* StringSelection sel = new StringSelection(\"C:\\\\Users\\\\Public\\\\Pictures\\\\Sample Pictures\\\\Penguins.jpg\");\r\n\t\t\t Toolkit.getDefaultToolkit().getSystemClipboard().setContents(sel,null);\r\n\t\t\t System.out.println(\"selection\" +sel);\r\n\t\t\t \r\n\t\t\t sleep(2000);\r\n\t\t\t Robot r=new Robot();\r\n\t\t\t\t // r.keyPress(java.awt.event.KeyEvent.);\r\n\t\t\t\t sleep(3000);\r\n\t\t\t\t // Press Enter\r\n\t\t\t\t r.keyPress(java.awt.event.KeyEvent.VK_ENTER);\r\n\t\t\t\t sleep(1000);\r\n\t\t\t\t // Release Enter\r\n\t\t\t\t r.keyRelease(java.awt.event.KeyEvent.VK_ENTER);\r\n\t\t\t\t sleep(1000);\r\n\t\t\t\t // Press CTRL+V\r\n\t\t\t\t r.keyRelease(java.awt.event.KeyEvent.VK_CONTROL);\r\n\t\t\t\t sleep(1000);\r\n\t\t\t\t //r.keyPress(KeyEvent.VK_CONTROL);\r\n\t\t\t\t r.keyRelease(java.awt.event.KeyEvent.VK_V);\r\n\t\t\t\t //r.keyPress(KeyEvent.VK_V);\r\n\t\t\t\t sleep(1000);\r\n\t\t\t\t // Release CTRL+V\r\n\t\t\t\t r.keyRelease(java.awt.event.KeyEvent.VK_CONTROL);\r\n\t\t\t\t sleep(1000);\r\n\t\t\t\t// r.keyRelease(KeyEvent.VK_CONTROL);\r\n\t\t\t\t r.keyRelease(java.awt.event.KeyEvent.VK_V);\r\n\t\t\t\t sleep(2000);\r\n\t\t\t\t r.keyPress(java.awt.event.KeyEvent.VK_TAB);\r\n\t\t\t\t sleep(2000);\r\n\t\t\t\t r.keyPress(java.awt.event.KeyEvent.VK_TAB);\r\n\t\t\t\t sleep(2000);\r\n\t\t\t\t r.keyPress(java.awt.event.KeyEvent.VK_ENTER);\r\n\t\t\t\t sleep(2000);*/\r\n\t\t\t \r\n\t\t\t \r\n\t\t\t\r\n\t\t\t sleep(10000);\r\n\t\t\tclick(locator_split(\"btnsavebrowse\"));\r\n\t\t\t sleep(4000);\r\n\t\t\t click(locator_split(\"btnclose\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t\t//clickbylinktext(\"No\");\r\n\t\t\t click(locator_split(\"btnhazardclose\"));\r\n\t\t\t sleep(3000);\r\n\t\t\t \r\n\t\t\t \r\n\t\t\t if (driver.findElement(By.xpath(\"//input[contains(@class,'checkbox chkBxCtl')]\")).isSelected()== true ){\r\n\t\t\t\t System.out.println(\"inside if loop\");\r\n\t\t\t\t \r\n\t\t\t }else{\r\n\t\t\t\t System.out.println(\"checkbox not checked\");\r\n\t\t\t\t sleep(2000);\r\n\t\t\t click(locator_split(\"inputcheckhazard\"));\r\n\t\t\t sleep(3000);\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t sleep(3000);\r\n\t\t\t\r\n\t\t//switchframe(\"PegaGadget2Ifr\");\r\n\t\t//\tsleep(3000);\r\n\t\t//clickbylinktext(\"No\");\r\n\t\t\t\r\n\t\t\t\r\n\t\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Report tab is clicked and user is logged in\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Report tab is not clicked in\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"LoginLogout\")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\t}", "@Test\n public void testFindByCreate() throws Exception {\n\n Tracker tracker = new Tracker();\n\n String action = \"0\";\n String yes = \"y\";\n String no = \"n\";\n\n // add item\n\n String name = \"task1\";\n String desc = \"desc1\";\n String create = \"3724\";\n\n Input input1 = new StubInput(new String[]{action, name, desc, create, yes});\n new StartUI(input1).init(tracker);\n\n // find item\n\n String action2 = \"5\";\n\n Input input2 = new StubInput(new String[]{action2, create, yes});\n new StartUI(input2).init(tracker);\n\n }", "public void VerifyBillingAddress(String billingaddresstitle, String billingaddress){\r\n\t\tString BilingTitle=getValue(billingaddresstitle);\r\n\t\tString Billingaddress=getValue(billingaddress);\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Billing address and title should be present\");\r\n\r\n\t\ttry{\r\n\t\t\tif(getAndVerifyPartialText(locator_split(\"txtCheckoutBillingAddressTitle\"), BilingTitle)){\r\n\t\t\t\tSystem.out.println(\"Billing address title is present \"+getText(locator_split(\"txtCheckoutBillingAddressTitle\")));\r\n\t\t\t}else{\r\n\t\t\t\tthrow new Error(\"Billing address title is not present\");\r\n\t\t\t}\r\n\t\t\tif(getAndVerifyPartialText(locator_split(\"txtCheckoutBillingAddress\"), Billingaddress)){\r\n\t\t\t\tSystem.out.println(\"Billing address is present \"+getText(locator_split(\"txtCheckoutBillingAddress\")));\r\n\t\t\t}else{\r\n\t\t\t\tthrow new Error(\"Billing address is not present\");\r\n\t\t\t}\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Billing address and title are present\");\r\n\r\n\t\t}catch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Element is not present\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"txtCheckoutBillingAddressTitle\")\r\n\t\t\t\t\t+ elementProperties.getProperty(\"txtCheckoutBillingAddress\")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\t\tcatch (Error e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Billing title or address is not present\");\r\n\t\t\tthrow new Error(\"Billing address is not present\");\r\n\r\n\t\t}\r\n\t}", "@Test(priority = 1)\n\tpublic static void placeChoosen() throws AWTException, InterruptedException {\n\t\tThread.sleep(5000);\n\t\t// PageFactory.initElements(driver, HomePage.class);\n\t\tPageObjectManager.getHm().roundTrip.click();\n\t\tPageObjectManager.getHm().fromcityBox.click();\n\t\tRobot robot = new Robot();\n\t\trobot.keyPress(KeyEvent.VK_C);\n\t\trobot.keyRelease(KeyEvent.VK_C);\n\n\t\trobot.keyPress(KeyEvent.VK_H);\n\t\trobot.keyRelease(KeyEvent.VK_H);\n\n\t\trobot.keyPress(KeyEvent.VK_E);\n\t\trobot.keyRelease(KeyEvent.VK_E);\n\n\t\tSystem.out.println(Keys.ENTER);\n\n\t\tPageObjectManager.getHm().tocityBox.click();\n\n\t\trobot.keyPress(KeyEvent.VK_D);\n\t\trobot.keyRelease(KeyEvent.VK_D);\n\n\t\trobot.keyPress(KeyEvent.VK_E);\n\t\trobot.keyRelease(KeyEvent.VK_E);\n\n\t\trobot.keyPress(KeyEvent.VK_L);\n\t\trobot.keyRelease(KeyEvent.VK_L);\n\n\t\t// robot.keyPress(KeyEvent.VK_G);\n\t\t// robot.keyRelease(KeyEvent.VK_G);\n\n\t\trobot.keyPress(KeyEvent.VK_ENTER);\n\t\trobot.keyRelease(KeyEvent.VK_ENTER);\n\t\t\n\t}", "public void SetManagingDirectorName(String itemnum){\t\r\n\t\tString searchitem = getValue(itemnum);\r\n\t\tString countrygroup_md=\"Germany\";\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+searchitem);\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Managing Director name should be entered\");\r\n\t\ttry{\r\n\t\t\t//editSubmit(locator_split(\"txtSearch\"));\r\n\t\t\tif((countrygroup_md).contains(countries.get(countrycount))){\r\n\t\t\t\tThread.sleep(2000);\r\n\t\t\t\twaitforElementVisible(locator_split(\"txtManagingDriector\"));\r\n\t\t\t\tclearWebEdit(locator_split(\"txtManagingDriector\"));\r\n\t\t\t\tsendKeys(locator_split(\"txtManagingDriector\"), searchitem);\r\n\t\t\t\tReporter.log(\"PASS_MESSAGE:- Managing Director name is entered\");\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tReporter.log(\"PASS_MESSAGE:- Managing Director field is not applicable to \" + country);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Managing Director name is not entered \"+elementProperties.getProperty(\"FiscalCode\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"txtManagingDriector\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\t}", "protected GuiTestObject title() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"title\"));\n\t}", "@Given(\"user on practice automation page\")\n\tpublic void user_on_practice_automation_page() {\n \t\t tools = new ToolsQA();\n \t\t tools.firstName.sendKeys(\"Erk\");\n\t\t\n\t}", "@Test\n public void nameDetailNeighbourIsGood() {\n ViewInteraction recyclerView = onView(\n allOf(withId(R.id.list_neighbours),isDisplayed()));\n recyclerView.perform(actionOnItemAtPosition(1, click()));\n\n ViewInteraction textView = onView(\n allOf(withId(R.id.titleNameNeighbour_view), withText(\"Jack\"),\n withParent(withParent(withId(android.R.id.content))),\n isDisplayed()));\n textView.check(matches(withText(\"Jack\")));\n }", "@Test\n\tpublic void f() {\n\t\tgetDriver().findElement(By.id(\"search-field\"));\n\t\t// searchField.sendKeys(\"Chef'sChoice 1520 Angle Select Electric Knife\n\t\t// Sharpener\");\n\t\t// searchField.submit();\n\t\t// WebElement results =\n\t\tgetDriver().findElement(By.className(\"product-name\"));\n\t\t// results.click();\n\t\t// WebElement quantityField =\n\t\tgetDriver().findElement(By.className(\"qty\"));\n\t\t// quantityField.sendKeys(\"3\");\n\t}", "public void testMainPage() {\n\t\tbeginAt(\"numguess.jsp\");\n\t\tassertTitleEquals(\"Number Guess\");\n\t\tassertTextPresent(\"Welcome to the Number Guess game\");\n\t\tassertFormElementPresent(\"guess\");\t\t\n\t}", "private void commonLoadTestForHtml(){\n\t\tWebElement tree = getElement(\"id=tree\");\n\t\tlog(\"Found Element for id=tree \" + tree.toString());\n\n\t\t//Make sure News attributes are correct\n\t\tWebElement news = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#news']['title']\\\"}\");\n\t\tAssert.assertNotNull(news);\n\t\tnews.click();\n\n\t\tString content = getText(RESULTS_CONTAINER);\n\t\tlog(\"content\"+content);\n waitForText(RESULTS_CONTAINER, \"id=news\");\n\n\n\t\t// Finds the blogs node and make sure its not null\n\t\twaitForElementVisible(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#blogs']['disclosure']\\\"}\");\n\t\tWebElement blogs = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#blogs']['disclosure']\\\"}\");\n\n\t\tlog(\"Node: \" + blogs);\n\n\t\tAssert.assertNotNull(blogs);\n\n\t\tblogs.click(); // This should expand the node blogs\n\n\t\t//Find the children of blogs node: Today\n\t\tWebElement today = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#today']['title']\\\"}\");\n\n\t\t//Find the children of blogs node: Previous\n\t\tWebElement previous = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#prev']['title']\\\"}\");\n\n\t\tWebElement previousDiscIcon = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#prev']['disclosure']\\\"}\");\n\n\t\tAssert.assertNotNull(previousDiscIcon);\n\n\t\t//Click on Previous Node\n\t\twaitForElementVisible(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#prev']['disclosure']\\\"}\");\n\t\tpreviousDiscIcon.click();\n\n\t\t//Find the children of previous node: Yesterday\n\t\tWebElement yesterday = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#yesterday']['title']\\\"}\");\n\n\t\t//Find the children of previous node: 2DaysBack\n\t\tWebElement twodaysback = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#daysback2']['title']\\\"}\");\n\n\n\n\n\t}", "public void setHouseType(Integer houseType) {\n this.houseType = houseType;\n }", "public static void main(String[] args) {\n\r\n\t\t\r\nSystem.setProperty(\"webdriver.chrome.driver\", \"./driver/chromedriver.exe\");\r\n\t\t\r\n //WebDriverManager.chromedriver().setup();\r\n\t\t\r\n\t\tChromeDriver driver=new ChromeDriver();\r\n\t\t\r\n\t\tdriver.get(\"http://leaftaps.com/opentaps/control/main\");\r\n\t\t\r\n\t\tdriver.manage().window().maximize();\r\n\t\t\r\n\t\t// using attribute\r\n\t\t//************ tagname[attribute_name = ‘attribute_value’]************\r\n\t\t\r\n\t\t//driver.findElementByCssSelector(\"input[id=username]\").sendKeys(\"demosalesmanager\");\r\n\t\t//driver.findElementByCssSelector(\"input[id=password]\").sendKeys(\"crmsfa\");\r\n\t\t//driver.findElementByCssSelector(\"input[value=Login]\").click();\r\n\t\t\r\n\t\t// id\r\n\t\t//************ tagname#id-attributevale************\r\n\t\t\r\n\t\t\r\n\t\tdriver.findElementByCssSelector(\"input#username\").sendKeys(\"demosalesmanager\");\r\n\t\tdriver.findElementByCssSelector(\"input#password\").sendKeys(\"crmsfa\");\r\n\t\t\r\n\t\t\r\n\t\t// class\r\n\t\t\t\t//************ tagname.class-attributevale************\r\n\t\t\r\n\t\tdriver.findElementByCssSelector(\"input.decorativeSubmit\").click();\r\n\t\t\r\n\t\tdriver.findElementByLinkText(\"CRM/SFA\").click();\r\n\t\tdriver.findElementByLinkText(\"Create Lead\").click();\r\n\t\t\r\n\t\tdriver.findElementByCssSelector(\"input#createLeadForm_companyName\").sendKeys(\"TestLeaf\");\r\n\t\t\r\n\t\t// multiple attribute\r\n\t\t\r\n\t\tdriver.findElementByCssSelector(\"input#createLeadForm_firstName[name=firstName]\").sendKeys(\"Babu\");\r\n\t\tdriver.findElementByCssSelector(\"input.inputBox[name=lastName]\").sendKeys(\"Babu\");\r\n\t\t\r\n\t\t// dynamic web element Parent child and text strings\r\n\t\t\r\n\t\t// parent child\r\n\t\t\r\n\t\t//Parent-css selector>child HTML tag:nth-of-type(index)\r\n\t\t\r\n\t\t\r\n\t\t// text String contains\r\n\t\t\r\n\t\tdriver.findElementByCssSelector(\"input[id*=personalTitle]\").sendKeys(\"Mr.\");\r\n\t\t// text String starting text\r\n\t\tdriver.findElementByCssSelector(\"input[id^=createLeadForm_sic]\").sendKeys(\"111\");\r\n\t\t\r\n\t\t// text String ending text\r\n\t\tdriver.findElementByCssSelector(\"input[id$=lastNameLocal]\").sendKeys(\"adadda\");\r\n\t\t\r\n\t\tdriver.findElementByCssSelector(\"input.smallSubmit\").click();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "@Test\n public void rentClientMatch() throws UiObjectNotFoundException {\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"btn_create_post\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"lbl_rental_client\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"txt_name\")\n .childSelector(new UiSelector().className(Utils.EDIT_TEXT_CLASS))).setText(\"Icon Windsor Rent\");\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"dd_configuration\")).click();\n device.findObject(By.text(\"3 BHK\")).click();\n clickButton(device);\n device.wait(Until.findObject(By.text(\"No\")), 2000);\n device.findObject(By.text(\"No\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"dd_furnishing\")).click();\n device.findObject(By.text(\"Fully-Furnished\")).click();\n clickButton(device);\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"txt_pricing\")\n .childSelector(new UiSelector().index(1))).click();\n device.findObject(By.text(\"2\")).click();\n device.findObject(By.text(\"5\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n clickButton(device);\n device.wait(Until.findObject(By.text(\"Building Names\")), 2000);\n device.findObject(By.text(\"ADD BUILDING\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"input_search\")).setText(\"Icon\");\n device.wait(Until.findObject(By.text(\"Icon Windsor Park\")), 10000);\n device.findObject(By.text(\"Icon Windsor Park\")).click();\n clickButton(device);\n UiScrollable postView = new UiScrollable(new UiSelector().scrollable(true));\n UiSelector postSelector = new UiSelector().text(\"POST\");\n postView.scrollIntoView(postSelector);\n device.findObject(postSelector).click();\n device.wait(Until.findObject(By.text(\"POST\").enabled(true)), 10000);\n String matchNameString = device.findObject(By.textContains(\"matches\")).getText().split(\" \")[0];\n device.findObject(By.text(\"POST\")).click();\n device.wait(Until.findObject(By.text(\"RENTAL CLIENT\")), 9000);\n Assert.assertNotEquals(\"Test Case Failed...No Match found\", \"no\", matchNameString.toLowerCase());\n String postMatchName = device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"lbl_name\")).getText();\n Assert.assertEquals(\"Test Case Failed...Match should have had been found with\", \"dialectic test\", postMatchName.toLowerCase());\n\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"btn_close\")).click();\n Utils.markPostExpired(device);\n }", "@Test\n public void underweightCategoryFirstRangeInKgAndCm() {\n\n driver.findElement(By.xpath(\"//input[@name='wg']\")).sendKeys(\"47\");\n driver.findElement(By.xpath(\"//input[@name='ht']\")).sendKeys(\"177\");\n driver.findElement(By.xpath(\"//input[@name='cc']\")).click();\n Assert.assertEquals(driver.findElement(By.name(\"desc\")).getAttribute(\"value\"), \"Your category is Underweight\",\n \"actual text is not: Your category is Underweight\");\n }", "@Test\n public void testFindByDescription() throws Exception {\n\n Tracker tracker = new Tracker();\n\n String action = \"0\";\n String yes = \"y\";\n String no = \"n\";\n\n // add item\n\n String name = \"task1\";\n String desc = \"desc1\";\n String create = \"3724\";\n\n Input input1 = new StubInput(new String[]{action, name, desc, create, yes});\n new StartUI(input1).init(tracker);\n\n // find item\n\n String action2 = \"5\";\n\n Input input2 = new StubInput(new String[]{action2, desc, yes});\n new StartUI(input2).init(tracker);\n\n }", "public String searchByStateUI() {\n console.promptForPrintPrompt(\" +++++++++++++++++++++++++++++++++++\");\n console.promptForPrintPrompt(\" + PLEASE ENTER STATE TO SEARCH BY +\");\n console.promptForPrintPrompt(\" +++++++++++++++++++++++++++++++++++\");\n console.promptForString(\"\");\n String state = console.promptForString(\" STATE: \");\n return state;\n }", "public static void main(String[] args) throws InterruptedException {\n //1- Open a chrome browser\n WebDriver driver=WebDriverUtil.getDriver(\"chrome\");\n\n //2- Go to: https://google.com\n driver.get(\"https://www.google.com\");\n //3- Write \"apple\" in search box\n //driver.findElement(By.name(\"q\")).sendKeys(\"Apple\"); works\n\n //driver.findElement(By.className(\"gLFyf gsfi\")).sendKeys(\"Apple\");\n //having spaces in classname will make your code fail\n //you can remove one part see if it is unique you can locate\n driver.findElement(By.className(\"gLFyf\")).sendKeys(\"Apple\");\n Thread.sleep(1000);\n\n //click i am feeling lucky button\n driver.findElement(By.className(\"RNmpXc\")).click();\n\n //Verify title contains Apple\n\n String actualTitle=driver.getTitle();\n String expectedTitle=\"Apple\";\n\n if (actualTitle.contains(expectedTitle)){\n System.out.println(\"lucky button passed\");\n }else{\n System.out.println(\"lucky button failed\");\n System.out.println(\"actualTitle = \" + actualTitle);\n }\n\n driver.close();\n }", "public void SetCheckoutRegistrationBusinessDesc(String Businesstype){\r\n\t\tString businetype = getValue(Businesstype);\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Registration Tile should be selected as \"+businetype);\r\n\t\ttry{\r\n\r\n\t\t\tsendKeys(locator_split(\"txtRegistrationBusinessDesc\"),businetype);\r\n\t\t\tSystem.out.println(\"Registration Tile is selected as \"+businetype);\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Registration Tile is selected as \"+businetype);\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Registration Tile is not selected as \"+businetype);\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"txtRegistrationBusinessDesc\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\r\n\r\n\t}", "public void initElements() {\n\n emptyStateElement = driver.findElement(By.id(\"com.fiverr.fiverr:id/empty_state_title\"));\n postRequestButton = driver.findElement(By.id(\"com.fiverr.fiverr:id/empty_list_button\"));\n }", "@Test\n @Then(\"Search made and name verified\")\n public void s15_CheckFoundItem(){\n searchByNameHP.submit();\n foundNameHP = driver.findElementByClassName(\"n-product-title\").findElement(By.tagName(\"H1\")).getText();\n if (checkFirstHP.equals(foundNameHP)) {\n System.out.println(\"Step15 PASSED, names are equal\");\n }\n else\n {\n System.out.println(\"Step15 FAILED, names are not equal\");\n }\n }", "@Test\n\t\t public void testLocationOne() {\n\t\t \tdriver.get(\"http://mq-devhost-lm52.ihost.aol.com:9002/us/nj/upper-montclair/bellevue-ave-valley-rd\");\n\t\t \tAssertJUnit.assertEquals(Utils.getElementText(driver,PageLayoutSelectors.TOP_NAME),\"Bellevue Ave & Valley Rd\");\n\t\t }", "@Test\n\n public void validateAppTitle() throws IOException {\n LandingPage l = new LandingPage(driver);\n //compare the text from the browser with actual text.- Error..\n Assert.assertEquals(l.getTitle().getText(), \"FEATURED COURSES\");\n\n System.out.println(\"Test running from Inside docker for tests dated 22-03-2020\");\n System.out.println(\"Test completed\");\n\n ;\n\n\n }", "@Test\n public void testNoOpenDaysCheck() {\n window.textBox(\"storeNameTFld\").setText(\"store1\");\n window.textBox(\"numOfSeatsTFld\").setText(\"155\");\n window.textBox(\"storeAddressTFld\").setText(\"address\");\n window.textBox(\"storeCityTFld\").setText(\"city\");\n window.textBox(\"storePhoneTFld\").setText(\"123123\");\n window.textBox(\"emailTFld\").setText(\"hlias.karasyahoo.gr\");\n window.textBox(\"fromOpenHoursTFld\").setText(\"18:00\");\n window.textBox(\"toOpenHoursTFld\").setText(\"23:00\");\n window.button(\"addStoreBtn\").click();\n window.optionPane().okButton().click();\n window.label(\"openDaysFalseLbl\").requireVisible();\n }", "public void Taxidentificaiton(String itemnum){\t\r\n\t\tString searchitem = getValue(itemnum);\r\n\t\tString countryspecific_tax = \"Italy\";\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+searchitem);\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Taxidentificaiton should be entered in the Tax field\");\r\n\t\ttry{\r\n\t\t\t//editSubmit(locator_split(\"txtSearch\"));\r\n\t\t\tif((countryspecific_tax).contains(countries.get(countrycount))){\r\n\t\t\t\tThread.sleep(3000);\r\n\t\t\t\twaitforElementVisible(locator_split(\"Checkouttax\"));\r\n\t\t\t\tclearWebEdit(locator_split(\"Checkouttax\"));\r\n\t\t\t\tsendKeys(locator_split(\"Checkouttax\"), searchitem);\r\n\t\t\t\tReporter.log(\"PASS_MESSAGE:- Item is searched in the search box\");}\r\n\t\t\telse{\r\n\t\t\t\tReporter.log(\"PASS_MESSAGE:- Taxidentificaiton is not applicable for this country\");\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Item is not entered in the search box \"+elementProperties.getProperty(\"Tax\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"Tax\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\t}", "@Test\n public void selenium(){\n LandingPage landingPage = new LandingPage();\n landingPage.setDriver(driver);\n landingPage\n .assertTitle()\n .clickFindMeeting()\n .assertTitle()\n .search(\"10011\")\n .printFirstLocation()\n .printFirstDistance()\n .clickOnLocation()\n .assertLocationMatches()\n .printTodaysHours();\n }", "@Test\n public void testA_initialState() {\n write(\"marting\");\n clickOn(\"#signInPWD\");\n write(\"Aa12345!\");\n clickOn(\"#signInBtn\");\n verifyThat(\"#RecipeView\", isVisible());\n clickOn(\"#btnShowMenus\");\n verifyThat(\"#windowMenu\", isVisible());\n menuTable = lookup(\"#menuTable\").queryTableView();\n verifyThat(\"#btnDeleteMenu\", isDisabled());\n verifyThat(\"#btnCreateMenu\", isEnabled());\n }", "@Test\r\n public void usernameText() {\r\n onView(withId(R.id.edUserReg)).perform(typeText(\"Jade\"));\r\n }", "@Test\n public void prime(){\n\n WebElement input = driver.findElement(By.id(\"twotabsearchtextbox\"));\n input.sendKeys(\"wooden spoon\");\n WebElement searchButton = driver.findElement(By.className(\"nav-input\"));\n searchButton.click();\n\n String productName = \"COOKSMARK 5 Piece Bamboo Wood Nonstick Cooking Utensils - Wooden Spoons and Spatula Utensil Set with Multicolored Silicone Handles in Red Yellow Green Orange Blue\";\n\n WebElement primeButton = driver.findElement(By.xpath(\"(//i[@class='a-icon a-icon-checkbox'])[1]\"));\n primeButton.click();\n\n\n }", "@Test\n public void byAttributesAndStylesTest() throws Exception {\n /* Navigate to the Checkboxes section */\n driver.findElement(By.xpath(\"//*[@id=\\\"content\\\"]/ul/li[5]/a\")).click();\n\n /* Using the standard devtools */\n WebElement checkedCheckboxByTagName;\n ArrayList<WebElement> checkboxesByTagName = new ArrayList<>();\n checkboxesByTagName.addAll(driver.findElements(By.tagName(\"input\")));\n Iterator<WebElement> it = checkboxesByTagName.iterator();\n while (it.hasNext()){\n checkedCheckboxByTagName = it.next();\n if(checkedCheckboxByTagName.getAttribute(\"checked\") == null){\n checkedCheckboxByTagName = null;\n }\n }\n\n /* Using the selenium OIC and the by attribute locator */\n WebElement checkedCheckboxByAttributes = driver.findElement(By.attribute(\"checked\", \"\"));\n\n /* This test demonstrates the byAttribute locator power :\n * It obviously add another way to locate elements\n * Enhance readability of code\n * Enhance dev-tester efficiency : find directly the item that has the correct attribute VS find all item and then implement a treatment to find the good one\n * */\n }", "public void WaterSupplyDetail(){\r\n\t\r\n\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- My Account should be clicked and user should get logged in\");\r\n\t\ttry{\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t/*driver.switchTo().defaultContent();\r\n\t\t\t\t\tsleep(3000);\r\n\t\t\t System.out.println(\"switched frame\"+ switchframe(\"PegaGadget2Ifr\"));\r\n\t\t\t click(locator_split(\"tabLocationAssesment\"));\r\n\t\t\t click(locator_split(\"linkclickLocation\"));*/\r\n\t\t\t // driver.findElement(By.xpath(\"//*[@tabindex='4']/a/span\")).click();\r\n\t\t\t // driver.findElement(By.xpath(\"//a[@title='Click here to open Location Assessment']\")).click();\r\n\t\t\tsleep(5000);\r\n\t\t\t driver.switchTo().defaultContent();\r\n\t\t\t System.out.println(\"switched frame\"+ switchframe(\"PegaGadget3Ifr\"));\r\n\t\t\t click(locator_split(\"tabwatersupply\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t click(locator_split(\"btnaddwatersupply\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t selectListValue(locator_split(\"listwatersupplytype\"), getValue(\"WaterSupplyType\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t selectListValue(locator_split(\"listpumpsassociated\"), getValue(\"PumpsAssociated\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t selectListValue(locator_split(\"listwateradequecy\"), getValue(\"Adequecy\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t click(locator_split(\"expandwatersupplydata\"));\r\n\t\t\t sleep(5000);\r\n\t\t\t click(locator_split(\"linkaddrow\"));\r\n\t\t\t sleep(5000);\r\n\t\t\t click(locator_split(\"linkaddrow\"));\r\n\t\t\t sleep(5000);\r\n \t\t\t \r\n\t\t\t sendKeys(locator_split(\"txtwatersupplytstname\"), getValue(\"WaterSupplyTestName\"));\r\n\t\t\t \r\n\t\t\t sleep(3000);\r\n\t\t\t sendKeys(locator_split(\"txtwatersupplytestdate\"),getValue(\"TestDate\"));\r\n\t\t\t //select[@id='WATER_SUPPLY_TYPE_CD']\r\n\t\t\t \r\n\t\t\t sleep(3000);\r\n\t\t\t sendKeys(locator_split(\"txtwatersupplytestedby\"),getValue(\"Testedby\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t \r\n\t\t\t sendKeys(locator_split(\"txtstatipressure\"), getValue(\"StaticPressure\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t \r\n\t\t\t sendKeys(locator_split(\"txtresidualpressure\"), getValue(\"ResidualPressure\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t sendKeys(locator_split(\"txtresidualflowrate\"), getValue(\"ResidualFlowRate\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t sendKeys(locator_split(\"txtpressureloss\"), getValue(\"PressureLoss\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t sendKeys(locator_split(\"txtlocationpressurereadings\"), getValue(\"PressureReadings\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t sendKeys(locator_split(\"txtlocationflowreading\"), getValue(\"FlowReadings\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t click(locator_split(\"btnwatersupplysave\"));\r\n\t\t\t sleep(5000);\r\n\t\t\t click(locator_split(\"checkboxclick\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t click(locator_split(\"expandwatersupplygraph\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t selectListValue(locator_split(\"listwatersupplygraph\"), getValue(\"GraphType\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t click(locator_split(\"btnwatersupplysaveall\"));\r\n\t\t\t \r\n\t\t\t// click(locator_split(\"btncopesave\"));\r\n\t\t\t sleep(5000);\r\n\t\t\t \r\n\t\t\t \r\n\t\t\t\t//clickbylinktext(\"No\");\r\n\t\t\t\r\n\t\t//switchframe(\"PegaGadget2Ifr\");\r\n\t\t//\tsleep(3000);\r\n\t\t//clickbylinktext(\"No\");\r\n\t\t\t\r\n\t\t\t\r\n\t\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Report tab is clicked and user is logged in\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Report tab is not clicked in\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"LoginLogout\")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\t}", "@Test\n public void byTypeTest() throws Exception {\n /* Navigate to the Checkboxes section */\n driver.findElement(By.xpath(\"//*[@id=\\\"content\\\"]/ul/li[5]/a\")).click();\n\n /* Using the standard devtools */\n ArrayList<WebElement> checkboxesByTagName = new ArrayList<>();\n checkboxesByTagName.addAll(driver.findElements(By.tagName(\"input\")));\n\n\n /* Using the selenium OIC and the by type locator */\n ArrayList<WebElement> checkboxesByType = new ArrayList<>();\n checkboxesByType.addAll(driver.findElements(By.type(\"checkbox\")));\n\n\n /* Display check list */\n checkboxesByTagName.forEach(c -> System.out.println(\" is checked : \" + c.getAttribute(\"checked\")));\n checkboxesByType.forEach(c -> System.out.println(\" is checked : \" + c.getAttribute(\"checked\")));\n\n /* This test demonstrates the byType locator power :\n * It obviously add another way to locate elements\n * Enhance maintainability of code : What if a username field is added <input type=\"text\"> ? --> the test will be broken !\n * */\n }", "WebElement getNameField();", "void stateStored (Search search);", "@Test\n public void testGreenButton4Vissible() {\n window.textBox(\"usernameText\").setText(\"karona\"); \n window.textBox(\"StoresNameTxt\").setText(\"store1\"); \n window.textBox(\"openHoursTxt\").setText(\"18:00-20:00\");\n window.textBox(\"CustomerNameTxt\").setText(\"\");\n window.textBox(\"NumberOfSeatsTxt\").enterText(\"1\"); \n window.comboBox(\"DateAvailable\").selectItem(1);\n window.comboBox(\"HoursAvailable\").selectItem(1);\n window.button(\"makeReservation\").click();\n window.optionPane().okButton().click();\n window.button(\"greenButton4\").requireVisible();\n }", "@Test\n\t\t public void testLocationThree() {\n\t\t \tdriver.get(\"http://mq-devhost-lm52.ihost.aol.com:9002/us/nj/upper-montclair/\");\n\t\t \tAssertJUnit.assertEquals(Utils.getElementText(driver,PageLayoutSelectors.TOP_NAME),\"Upper Montclair\");\n\t\t }", "public void testadvancedSearchTitleAndBody(){\n\t\t\n//\t\tmanager.advancedSearchTitleAndBody(ElasticIndex.analyzed, \"List of international tennis player \",\" Andre Agassi\" );\n\t}", "@Test\n public void testDAM31801001() {\n // Data preparation\n {\n clearAndCreateTestDataForBook();\n }\n\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n TodoListPage todoListPage = dam3IndexPage.dam31801001Click();\n\n todoListPage.setTodoTitleContent(\"Todo 1\");\n\n todoListPage.setTodoCreationDate(\"2016/12/30\");\n\n todoListPage = todoListPage.searchUsingClassTypeAlias();\n\n // Assert the todo record count from DB table\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getIncompletTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getTotalTodoCount(), equalTo(\"2\"));\n\n boolean isTodoPresent = todoListPage.isTodoDisplayed(\"0000000001\");\n assertThat(isTodoPresent, is(true));\n\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000010\");\n assertThat(isTodoPresent, is(true));\n\n // this todo does not meets the criteria.Hence not displayed.\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000002\");\n assertThat(isTodoPresent, is(false));\n }", "@Test\n public void TEST_FR_SELECTDIFFICULTY_UI() {\n GameData.gameDifficulty = \"unchanged\";\n ChooseDifficultyUI testUI = new ChooseDifficultyUI();\n clickButton(testUI, 1, \"easy\");\n clickButton(testUI, 2, \"medium\");\n clickButton(testUI, 3, \"hard\");\n }", "@Test\n public void testHomepageUsageText()\n {\n try {\n WebElement e = driver.findElement(By.className(\"row\"));\n String elementText = e.getText();\n assertTrue(elementText.contains(\"Used for CS1632 Software Quality Assurance, taught by Bill Laboon\"));\n } catch (NoSuchElementException e) {\n fail();\n }\n }", "@Test()\n\tpublic static void Homep1() {\n\t\t\n\t\tdriver= CallingChrome();\ndriver.navigate().to(\"https://www.spicejet.com/\");\n\t\t\n\n\t\t\n\t\tSystem.out.println(driver.findElement(By.xpath(\"//a[text()='Book']\")).getText());\t\n\t}", "void printestateName(estateName iEstateName)\n {\n System.out.println(iEstateName.getElementValue());\n }", "public void testMain(Object[] args) \n\t{\n\t\t// TODO Insert code here\n\t\tWN.useProject(Cfg.projectName);\n\t\tEE.dnd(EE.parseResourcePath(\"Database Connections->My Sample Database->sampledb->Tables->department (dba)\"), 10, 10);\n\t\n\t\tWN.createWorkFlow(new WorkFlow().startParameter(Cfg.projectName).name(\"wfhtml\")\n\t\t\t\t.option(WorkFlow.SP_SERVER_INIT));\n\n\n\t\tPropertiesView.jumpStart(new WorkFlow()\n\t\t .mbo(\"Department\")\n\t\t\t\t.objectQuery(\"findByPrimaryKey\")\n\t\t\t\t.subject(\"deptid=2\")\n\t\t\t\t.subjectMatchingRule(\"deptid=\")\n\t\t\t\t.setParameterValue(\"dept_id,Subject,deptid=\"));\n\n\t\tWorkFlowEditor.addScreen(\"linktoemail\");\n\t\tWorkFlowEditor.link(WorkFlow.SP_SERVER_INIT, \"linktoemail\");\n\t\t\n\t\t\n\t\t//******************add key from key tab\t\n\t\tDOF.getCTabFolder(DOF.getRoot(), \"Properties\").click(atText(\"Properties\"));\n\t\t DOF.getCTabItem(DOF.getRoot(), \"Screen Design\").click(atPoint(25,10));\n\t\tPropertiesView.clickTab(\"Keys\");\n\t\tPropertiesView.NewKey(\"key1,string\");\n\t\tPropertiesView.NewKey(\"key2,bool\");\n\t\tPropertiesView.NewKey(\"key3,decimal\");\n\t\tPropertiesView.NewKey(\"key4,list\");\n\t\tPropertiesView.NewKey(\"key5,DateTime\");\n\t //**************end\n\t\t\n\t\t\n\t\t\n\t\tWorkFlowEditor.addWidget(Cfg.projectName, \"wfhtml.xbw\", \"linktoemail\", new WFHtmlView());\n\t\tPropertiesView.clickTab(\"General\");\n\t\tString s = PropertiesView.verifykeylist();\n\t\tvpManual(\"keylist\",\"key1,\",s).performTest();\n\n\n //*****need to check other attribute in the key popup window\n\t\tWorkFlowEditor.addWidget(Cfg.projectName, \"wfhtml.xbw\", \"linktoemail\", new WFHtmlView()\n\t\t.newKeyBindMbo(\"htmlkey,int,Department,dept_id\"));\n\t\t\n\t\t//Verify the new key added to the email event but not bound to the HTML view control\n\t\tPropertiesView.clickTab(\"General\");\n\t\tvpManual(\"keylist\",\"key1,\",PropertiesView.verifykeylist()).performTest();\n\t\tDOF.getCTabItem(DOF.getRoot(), \"Screen Design\").click(atPoint(25,10));\n\t\tDOF.getWFScreenDesignCanvas().click();\n\t\tPropertiesView.clickTab(\"Keys\");\t\t\n\t\tvpManual(\"ifkeyexist\",\"true\",TableHelper.hasDataInColumn(DOF.getTable(DOF.getRoot()),\"Key Name\",\"htmlkey\")).performTest();\n\t\t//end\n\t}", "public ChosenItemPage rememberElementAndFindIt(){\n showxButton.click(); //делает выпадющее меню количества выбора показываемых товаров\n waitVisibilityOf(showx12Button); \n showx12Button.click(); //выбираем показывать по 12\n WebElement firstItem=results.get(0);\n waitVisibilityOf(firstItem);\n String name=firstItem.getText(); //name of the product in the first item\n\n Assert.assertEquals(\"Показывать по 12 не установлено\",\n \"Показывать по 12\", showx.getText());\n\n Stash.put(Stash.firstItemName, name); //remeber first item\n fillField(name,headerSearch);\n headerSearch.sendKeys(Keys.ENTER);\n return new ChosenItemPage();\n }", "@Given(\"User is logging on MyStore\")\r\n public void searchingForProduct() {\n LoginPageNew login = new LoginPageNew(driver);\r\n MainPage main = new MainPage(driver);\r\n AccountPage accPage = new AccountPage(driver);\r\n AddingAnAddressForm addressForm = new AddingAnAddressForm(driver);\r\n login.loginAs(\"[email protected]\", \"123456\");\r\n main.goToAccPage();\r\n accPage.goToAddAddressForm();\r\n addressForm.fillingAddressForm(\"12\",\"Street Fighting Man\",\"02-223\",\"Sandia\",\"112322031\");\r\n accPage.goToMainPage();\r\n }", "@Test\n public void underweightCategorySecondRangeInKgAndCm() {\n\n driver.findElement(By.xpath(\"//input[@name='wg']\")).sendKeys(\"58.6\");\n driver.findElement(By.xpath(\"//input[@name='ht']\")).sendKeys(\"178\");\n driver.findElement(By.xpath(\"//input[@name='cc']\")).click();\n Assert.assertEquals(driver.findElement(By.name(\"desc\")).getAttribute(\"value\"), \"Your category is Underweight\",\n \"actual text is not: Your category is Underweight\");\n }", "@Test(dataProvider=\"data-provider\")\n public void search(String ptname,String trname,String revname,String date,String walking_flat,String updown_stairs,String night,String sit_lying,String stand_upright,String catch_lock,String hip_giving_put,String stiffness,String dec_motion,String des_stairs,String asc_stairs,String rising_sitting,String putonsocks,String rising_bed,String sprint_cut,String low_sports,String jogging,String walking,String heavy_duty,String low_duty)throws InterruptedException, BiffException, IOException {\n \t \tdriver.findElement(By.className(\"cls_header_patient\")).click();\n \t \tThread.sleep(500);\n \t \tdriver.findElement(By.id(\"SearchBox\")).click();\n \t \tdriver.findElement(By.id(\"SearchBox\")).sendKeys(\"t\");\n \t \tdriver.findElement(By.className(\"btnStudySearch\")).click();\n \t \tThread.sleep(1000);\n \t WebElement ptlist = driver.findElement(By.className(\"flex_patient\"));\n\t \tList<WebElement> tagname2 = ptlist.findElements(By.tagName(\"tr\"));\n\t \tint j =1; \n\t\tfor(WebElement tlist1 : tagname2)\n\t\t{\t \t \n \t Thread.sleep(3000);\n\t\t Actions action1 = new Actions(driver);\n\t\t \n \t WebElement element1 = tlist1.findElement(By.xpath(\"/html/body/div[3]/div[3]/div/div[2]/div[2]/div[2]/div/div[7]/table/tbody/tr[\"+j+\"]/td[1]/div\"));\n \t driver.findElement(By.xpath(\"/html/body/div[3]/div[3]/div/div[2]/div[2]/div[2]/div/div[7]/table/tbody/tr[\"+j+\"]/td[1]/div\")).click();\n \t String pname=tlist1.findElement(By.xpath(\"/html/body/div[3]/div[3]/div/div[2]/div[2]/div[2]/div/div[7]/table/tbody/tr[\"+j+\"]/td[1]/div\")).getText();\n \t System.out.println(\"Patient Name=\"+pname);\n \t \t\t \t \n if( pname.matches(ptname))\n {\n \tAction doubleClick1 = action1.doubleClick(element1).build();\n \tdoubleClick1.perform();// After performing double click Map will load\n \tThread.sleep(3000);\n \tdriver.findElement(By.className(\"clsapp_pat_treatment\")).click();\n \tThread.sleep(3000);\n \t//driver.findElement(By.xpath(\"/html/body/div[3]/div[3]/div/div[2]/div[1]/div/div[7]/table/tbody/tr/td[3]/div\")).click();\n \t//Thread.sleep(3000);\n \t//driver.findElement(By.xpath(\"/html/body/div[3]/div[3]/div/div[2]/div/div[7]/table/tbody/tr/td[3]/div\")).click();\n \t WebElement trlist= driver.findElement(By.className(\"flex_treatment\"));\n List<WebElement> tagname1=trlist.findElements(By.tagName(\"tr\"));\n int i=1;\n for(WebElement tlist2 : tagname1){\n \tThread.sleep(2000);\n \t//Actions action1 = new Actions(driver);\n \tWebElement element2 = tlist2.findElement(By.xpath(\"/html/body/div[3]/div[3]/div/div[2]/div[1]/div/div[7]/table/tbody/tr[\"+i+\"]/td[3]/div\"));\n \tdriver.findElement(By.xpath(\"/html/body/div[3]/div[3]/div/div[2]/div[1]/div/div[7]/table/tbody/tr[\"+i+\"]/td[3]/div\")).click();\n \tString tname=tlist2.findElement(By.xpath(\"/html/body/div[3]/div[3]/div/div[2]/div[1]/div/div[7]/table/tbody/tr[\"+i+\"]/td[3]/div\")).getText();\n \tSystem.out.println(\"Treatment name=\"+tname);\n \t\n \tif(tname.matches(trname))\n \t\t \n \t\t{\n \t\tAction doubleClick2 = action1.doubleClick(element2).build();\n \t\tdoubleClick2.perform();\n \t\tThread.sleep(2000);\n \t\t\n \t \tThread.sleep(2000);\n \t \t//search2(evdat,mob,self,usual,pain,anxd,healt,comm);\n \t \t//Thread.sleep(3000);\n \t \t//driver.findElement(By.className(\"StudyName\")).click();\n \t \tThread.sleep(3000);\n \t \t//Thread.sleep(2000);\n\n \t \n \t \t WebElement rvlist= driver.findElement(By.className(\"flex_treat_review\"));\n \t List<WebElement> tagname3=rvlist.findElements(By.tagName(\"tr\"));\n \t int k=1;\n \t for(WebElement tlist3 : tagname3){\n \t \tThread.sleep(2000);\n \t \tWebElement element3=tlist3.findElement(By.xpath(\"/html/body/div[3]/div[3]/div/div[2]/div/div[7]/table/tbody/tr[\"+k+\"]/td[3]/div\"));\n \t driver.findElement(By.xpath(\"/html/body/div[3]/div[3]/div/div[2]/div/div[7]/table/tbody/tr[\"+k+\"]/td[3]/div\")).click();\n \t String rvname=tlist3.findElement(By.xpath(\"/html/body/div[3]/div[3]/div/div[2]/div/div[7]/table/tbody/tr[\"+k+\"]/td[3]/div\")).getText();\n \t System.out.println(\"Review name=\"+rvname);\n \t if(rvname.matches(revname)){\n \t \tAction doubleClick3 = action1.doubleClick(element3).build();\n \t\t \tdoubleClick3.perform();\n \t\t \tThread.sleep(2000);\n \t\t \tString rvform = \"//input[contains(@class,'leftmenuBox') and contains(@value,'Nonarthritic Score')]\";\n\t\t\t\t\t\t \n \t \t WebElement selfyes = driver.findElement(By.xpath(rvform));\n \t \t selfyes.click();\n \t \t Thread.sleep(3000);\n \t \t driver.findElement(By.id(\"edate\")).sendKeys(date);\n \t \t //Select ohs1 = new Select(driver.findElement(By.id(\"ohs_pain_usually\")));\n \t \t // ohs1.selectByVisibleText(pain);\n \t Select s=new Select(driver.findElement(By.id(\"score1\")));\n \t s.selectByVisibleText(walking_flat);\n \t Select s1=new Select(driver.findElement(By.id(\"score2\")));\n \t s1.selectByVisibleText(updown_stairs);\n \t Select s2=new Select(driver.findElement(By.id(\"score3\")));\n \t s2.selectByVisibleText(night);\n \t Select s3=new Select(driver.findElement(By.id(\"score4\")));\n \t s3.selectByVisibleText(sit_lying);\t\n \t Select s4=new Select(driver.findElement(By.id(\"score5\")));\n \t s4.selectByVisibleText(stand_upright);\t\n \t Select s5=new Select(driver.findElement(By.id(\"score6\")));\n \t s5.selectByVisibleText(catch_lock);\n \t Select s6=new Select(driver.findElement(By.id(\"score7\")));\n \t s6.selectByVisibleText(hip_giving_put);\n \t Select s7=new Select(driver.findElement(By.id(\"score8\")));\n \t s7.selectByVisibleText(stiffness);\n \t Select s8=new Select(driver.findElement(By.id(\"score9\")));\n \t s8.selectByVisibleText(dec_motion);\n \t Select s9=new Select(driver.findElement(By.id(\"score10\")));\n \t s9.selectByVisibleText(des_stairs);\n \t Select s10=new Select(driver.findElement(By.id(\"score11\")));\n \t s10.selectByVisibleText(asc_stairs);\n \t Select s11=new Select(driver.findElement(By.id(\"score12\")));\n \t s11.selectByVisibleText(rising_sitting);\n \t Select s12=new Select(driver.findElement(By.id(\"score13\")));\n \t s12.selectByVisibleText(putonsocks);\n \t Select s13=new Select(driver.findElement(By.id(\"score14\")));\n \t s13.selectByVisibleText(rising_bed);\n \t Select s14=new Select(driver.findElement(By.id(\"score15\")));\n \t s14.selectByVisibleText(sprint_cut);\n \t Select s15=new Select(driver.findElement(By.id(\"score16\")));\n \t s15.selectByVisibleText(low_sports);\n \t Select s16=new Select(driver.findElement(By.id(\"score17\")));\n \t s16.selectByVisibleText(jogging);\n \t Select s17=new Select(driver.findElement(By.id(\"score18\")));\n \t s17.selectByVisibleText(walking);\n \t Select s18=new Select(driver.findElement(By.id(\"score19\")));\n \t s18.selectByVisibleText(heavy_duty);\n \t Select s19=new Select(driver.findElement(By.id(\"score20\")));\n \t s19.selectByVisibleText(low_duty);\n \t Thread.sleep(2000);\n \t driver.findElement(By.id(\"btn_hip_nonarthritic_save\")).click();\n \t \tbreak;\n \t \t\n \t }\n \t k++;\n \t }\n \t break;\n \t\t}\n \ti++;\n }\n break;\n }\n j++;\n\t\t}\n\t\t\n }", "public void searchInkAndTonnerItem(String itemnum){\t\r\n\t\tString searchitem = getValue(itemnum);\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+searchitem);\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Item should be searched in the Ink and Tonner search box\");\r\n\t\ttry{\r\n\t\t\t//editSubmit(locator_split(\"txtSearch\"));\r\n\t\t\twaitforElementVisible(locator_split(\"txtInkSearch\"));\r\n\t\t\tclearWebEdit(locator_split(\"txtInkSearch\"));\r\n\t\t\tsendKeys(locator_split(\"txtInkSearch\"), searchitem);\r\n\t\t\tThread.sleep(2000);\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Item is searched in the Ink and Tonner search box\");\r\n\t\t\tSystem.out.println(\"Ink and Tonner Search item - \"+searchitem+\" is entered\");\r\n\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Item is not entered in the search box \"+elementProperties.getProperty(\"txtSearch\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"txtInkSearch\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\t}", "@Test\n public void testStoreAlreadyExistsInDatabaseCheck() {\n window.textBox(\"storeNameTFld\").setText(\"store1\");\n window.textBox(\"numOfSeatsTFld\").setText(\"155\");\n window.textBox(\"storeAddressTFld\").setText(\"storeAddress1\");\n window.textBox(\"storeCityTFld\").setText(\"city\");\n window.textBox(\"storePhoneTFld\").setText(\"123123\");\n window.textBox(\"emailTFld\").setText(\"hlias.karasyahoo.gr\");\n window.textBox(\"fromOpenHoursTFld\").setText(\"18:00\");\n window.textBox(\"toOpenHoursTFld\").setText(\"23:00\"); \n window.checkBox(\"mondayCBx\").check();\n window.button(\"addStoreBtn\").click();\n window.optionPane().requireInformationMessage().requireMessage(\"Store already exists in the database!\");\n window.optionPane().okButton().click();\n window.optionPane().okButton().click();\n }", "public void editHouse() {\n System.out.println(\"-----Update House-----\");\n System.out.println(\"enter id(-1 cancel): \");\n int updateId = Utility.readInt();\n if (updateId == -1) {\n System.out.println(\"cancel update program\");\n return;\n }\n House h = houseService.searchHouse(updateId);\n if(h == null) {\n System.out.println(\"no house you needed found\");\n return;\n }\n //update owner name\n System.out.print(\"owner = \" + h.getOwner() + \": \");\n String owner = Utility.readString(10, \"\");\n if(!\"\".equals(owner)) {\n h.setOwner(owner);\n }\n\n //update phone\n System.out.print(\"phone = \" + h.getPhone() + \": \");\n String phone = Utility.readString(10, \"\");\n if(!\"\".equals(phone)) {\n h.setPhone(phone);\n }\n\n //update address\n System.out.print(\"address = \" + h.getAddress() + \": \");\n String address = Utility.readString(20, \"\");\n if(!\"\".equals(address)) {\n h.setAddress(address);\n }\n\n //update rent\n System.out.print(\"rent = \" + h.getRent() + \": \");\n int rent = Utility.readInt(-1);\n if(! (-1 == rent)) {\n h.setRent(rent);\n }\n\n //update state\n System.out.print(\"state = \" + h.getState() + \": \");\n String state = Utility.readString(10, \"\");\n if(!\"\".equals(state)) {\n h.setState(state);\n }\n\n System.out.println(\"update successful\");\n }", "public static void main(String[] args) {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\eclipse-workspace\\\\chromedriver.exe\");\n\t\tWebDriver driver = new ChromeDriver();\n\t\tdriver.get(\"https://ksrtc.in/oprs-web\");\n\t\tdriver.findElement(By.xpath(\"//*[@id='fromPlaceName']\")).sendKeys(\"BENG\");\n\t\tdriver.findElement(By.xpath(\"//*[@id='fromPlaceName']\")).sendKeys(Keys.DOWN);\n\t\tSystem.out.println(driver.findElement(By.xpath(\"//*[@id='fromPlaceName']\")).getText());\n\t\t\n\t\t//javascripit DOM can Exatract hidden elemnets\n\t\t//because selenium canaot identify hidden elements--(AJAX implementation )\n\t\t//investigate the properties of object if it had any hidden text\n\t\t//javascripit executer\n\t\t\n\t\tJavascriptExecutor js = (JavascriptExecutor)driver;\n\t\tString script =\"return document.getElementById(\\\"fromPlaceName\\\").value\";\n\t\tString text= (String) js.executeScript(script);\n\t\tSystem.out.println(text);\n\t\tint i =0;\n\t\twhile(!text.equalsIgnoreCase(\"BENGALURU INTERNATION AIPORT\"))\n\t\t\t\t{\n\t\t\ti++;\n\t\t\t\tdriver.findElement(By.xpath(\"//*[@id='fromPlaceName']\")).sendKeys(Keys.DOWN);\n\t\t\t\t//script =\" return document.getElementById(\\\"fromPlaceName\\\").value\";\n\t\t\t\t text=(String) js.executeScript(script);\n\t\t\t\t System.out.println(text);\n\t\t\tif (i>10)\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (i>10)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"ELement not found\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"element found\");\n\t\t\t}\n\t\t\t\t}\n\t\t\n\t\t\n\t\t\n\n\t\t\n\t}", "public void testEditDependentRepresentative() throws Exception {\n\t\t// Log in.\n\t\tWebDriver driver = new HtmlUnitDriver();\n\t\tdriver = login(\"9000000000\", \"pw\");\n\t\tassertLogged(TransactionType.HOME_VIEW, 9000000000L, 0L, \"\");\n\n\t\t// Click on Representatives.\n\t\tdriver.findElement(By.linkText(\"Representatives\")).click();\n\n\t\t// search for patient 103 by MID.\n\t\tdriver.findElement(By.name(\"UID_PATIENTID\")).sendKeys(\"103\");\n\t\t// the button to click should have the text of the MID\n\t\tdriver.findElement(By.cssSelector(\"input[value='103']\")).submit();\n\n\t\tassertTrue(driver.getTitle().equals(\"iTrust - Manage Representatives\"));\n\n\t\t// Add Caldwell Hudson as a representative\n\t\tWebElement elem = driver.findElement(By.name(\"UID_repID\"));\n\t\telem.sendKeys(\"102\");\n\t\telem.submit();\n\n\t\t// Make sure the text displays.\n\t\tList<WebElement> list = driver.findElements(By.xpath(\"//*[contains(text(),'\" + \"Caldwell Hudson\" + \"')]\"));\n\t\tassertTrue(\"Text not found!\", list.size() > 0);\n\t}", "protected GuiTestObject bed_3() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"bed_3\"));\n\t}", "public void TripType()\n\t{\n\t\tdriver.findElementById(OR.getProperty(\"TripType\")).click();\n\t}", "@Test(timeout = 4000)\n public void test230() throws Throwable {\n Form form0 = new Form(\"println\");\n String[] stringArray0 = new String[0];\n Component component0 = form0.attributes(stringArray0);\n assertEquals(\"println\", component0.getComponentId());\n }", "@Test\n public void overweightCategorySecondRangeInKgAndCm() {\n\n driver.findElement(By.xpath(\"//input[@name='wg']\")).sendKeys(\"94\");\n driver.findElement(By.xpath(\"//input[@name='ht']\")).sendKeys(\"177\");\n driver.findElement(By.xpath(\"//input[@name='cc']\")).click();\n Assert.assertEquals(driver.findElement(By.name(\"desc\")).getAttribute(\"value\"), \"Your category is Overweight\",\n \"actual text is not: Your category is Overweight\");\n }", "public void showHouses() {\n System.out.println(\"-----Houses List-----\");\n System.out.println(\"No\\tOwner\\tPhone\\t\\tAddress\\t\\t\\t\\tRent\\tState\");\n houseService.listHouse();\n System.out.println(\"------List Done------\");\n }", "private void search(){\n solo.waitForView(R.id.search_action_button);\n solo.clickOnView(solo.getView(R.id.search_action_button));\n\n //Click on search bar\n SearchView searchBar = (SearchView) solo.getView(R.id.search_experiment_query);\n solo.clickOnView(searchBar);\n solo.sleep(500);\n\n //Type in a word from the description\n solo.clearEditText(0);\n solo.typeText(0, searchTerm);\n }", "@Test\n public void withAttribute_Matching() {\n assertEquals(1, onPage.withAttribute(\"lang\", MatchType.EQUALS, \"en-US\").size());\n assertEquals(3, onPage.get(\"div.article div\").withAttribute(\"class\", MatchType.EQUALS, \"content\").size());\n assertEquals(0, onPage.get(\"div.article div\").withAttribute(\"class\", MatchType.EQUALS, \" content\").size());\n }", "@Test\n public void test085() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Checkbox checkbox0 = new Checkbox(errorPage0, \">}\\\"_\", \">}\\\"_\");\n String[] stringArray0 = new String[6];\n Checkbox checkbox1 = (Checkbox)checkbox0.attributes(stringArray0);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertFalse(checkbox1._isGeneratedId());\n }", "@Test\n public void exerciseTwoTest() {\n driver.get(properties.getProperty(\"URL\"));\n\n // 2. Assert Browser title\n homePageAsserts.shouldReturnPageTitle();\n\n // 3. Perform login\n homePageSteps.login(properties.getProperty(\"username\"), properties.getProperty(\"password\"));\n\n // 4. Assert User name in the left-top side of screen that user is loggined\n homePageAsserts.shouldReturnUsernameText();\n\n // 5. Open through the header menu Service -> Different Elements Page\n homePageSteps.clickServiceButton();\n homePageSteps.openDifferentElementsPage();\n\n // 6. Select checkboxes\n differentElementsPageSteps.selectCheckbox(WATER.getValue());\n differentElementsPageSteps.selectCheckbox(WIND.getValue());\n\n // 7. Select radio\n differentElementsPageSteps.selectRadioButton(SELEN.getValue());\n\n // 8. Select in dropdown\n differentElementsPageSteps.selectDropdown(YELLOW.getValue());\n\n // 9.1 Assert that for each checkbox there is an individual log row\n // and value is corresponded to the status of checkbox\n differentElementsAsserts.shouldReturnSelectedCheckbox();\n differentElementsAsserts.shouldReturnLogRowText(WATER.getValue(), \"true\");\n differentElementsAsserts.shouldReturnLogRowText(WIND.getValue(), \"true\");\n\n // 9.2 Assert that for radio button there is a log row and value is corresponded to the status of radio button\n differentElementsAsserts.shouldReturnSelectedRadioButton();\n differentElementsAsserts.shouldReturnLogRowText(METAL.getValue(), SELEN.getValue());\n\n // 9.3 Assert that for dropdown there is a log row and value is corresponded to the selected value\n differentElementsAsserts.shouldReturnSelectedDropdown();\n differentElementsAsserts.shouldReturnLogRowText(COLORS.getValue(), YELLOW.getValue());\n }", "public void Select_Alternateproperty_BookNow(String SelectProperty)\r\n\t{\r\n\t\tfor(WebElement propertys:Alternateproperty_name)\t\r\n\t\t{\t\r\n\t\t\tif(propertys.isDisplayed())\r\n\t\t\t{\r\n\t\t\t\tif(propertys.getText().equals(SelectProperty))\r\n\t\t\t\t{\r\n\t\t\t\t\tpropertys.click();\r\n\t\t\t\t\ttest.log(Status.INFO, SelectProperty+\" property selected successfully\");\t\r\n\t\t\t\t\tlogger.info( SelectProperty+\" property selected successfully\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\ttest.log(Status.FAIL, SelectProperty+\" property not found \");\r\n\t\t\t\tlogger.error(SelectProperty+\" property not found \");\r\n\t\t\t}\r\n\t\t}\r\n\t\t/*try\r\n\t\t{\r\n\t\t\tExplicitWait(SeleniumRepo.driver.findElement(By.xpath(\"(//*[text()='\"+SelectProperty+\"' and @ng-bind='booking.hotel.name'])[1]\")));\r\n\t\tWebElement Booking_Propoertyname=SeleniumRepo.driver.findElement(By.xpath(\"(//*[text()='\"+SelectProperty+\"' and @ng-bind='booking.hotel.name'])[1]\"));\r\n\r\n\t\t\t\ttest.log(Status.PASS, SelectProperty+\" property displayed on Map Successfully\");\r\n\t\t\t\tlogger.info(SelectProperty+\" property displayed on Map Successfully\");\r\n\r\n\t\t\ttest.log(Status.FAIL, SelectProperty+\" property not found on Map \");\r\n\t\t\tlogger.error(SelectProperty+\" property not found on Map\");\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tWebElement Booking_Propoertyname=SeleniumRepo.driver.findElement(By.xpath(\"(//*[text()='\"+SelectProperty+\"' and @ng-bind='booking.hotel.name'])[2]\"));\r\n\r\n\t\t\tif(Booking_Propoertyname.isDisplayed())\r\n\t\t\t{\r\n\t\t\t\t\ttest.log(Status.PASS, SelectProperty+\" property displayed on Map Successfully\");\r\n\t\t\t\t\tlogger.info(SelectProperty+\" property displayed on Map Successfully\");\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\ttest.log(Status.FAIL, SelectProperty+\" property not found on Map \");\r\n\t\t\t\tlogger.error(SelectProperty+\" property not found on Map\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t */\r\n\t}" ]
[ "0.53222764", "0.5255497", "0.52524334", "0.516527", "0.51188433", "0.5059261", "0.49565116", "0.49110997", "0.4879749", "0.4868174", "0.4867996", "0.48440072", "0.4811233", "0.48066393", "0.47616902", "0.47430804", "0.47243923", "0.47189537", "0.4718426", "0.47050697", "0.4683135", "0.4674954", "0.46619114", "0.46545216", "0.4653962", "0.46502978", "0.46398035", "0.46394908", "0.46182215", "0.46148807", "0.46061343", "0.46029747", "0.46011525", "0.4600934", "0.45980358", "0.4597347", "0.45964387", "0.45936924", "0.459061", "0.45900816", "0.45830902", "0.45752752", "0.4567857", "0.45633057", "0.4561374", "0.45600507", "0.4556516", "0.4552191", "0.45385185", "0.45287922", "0.45263067", "0.45251468", "0.45199615", "0.45065114", "0.4502297", "0.44995672", "0.449213", "0.4489236", "0.4489196", "0.44887635", "0.4488289", "0.44872758", "0.4479009", "0.44738784", "0.44737098", "0.44735613", "0.44706902", "0.44691294", "0.44655433", "0.44590226", "0.4452918", "0.44517398", "0.44515833", "0.445123", "0.4450821", "0.4449974", "0.44467214", "0.4443032", "0.44414493", "0.4435048", "0.4434363", "0.44340727", "0.44335848", "0.4431372", "0.44247094", "0.44219804", "0.44188416", "0.441573", "0.44049674", "0.4400847", "0.43976784", "0.4397063", "0.43956786", "0.43940386", "0.4392891", "0.43789193", "0.43788576", "0.43709838", "0.43708885", "0.43677643" ]
0.44328648
83
htmlBrowser: with default state. .class : Html.HtmlBrowser .browserName : MS Internet Explorer .processName : iexplore.exe
protected BrowserTestObject iE() { return new BrowserTestObject( getMappedTestObject("iE")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface WebBrowser {\r\n}", "public void openIe(){\n\n }", "String getBrowser();", "private static org.netbeans.beaninfo.editors.HtmlBrowser.FactoryEditor createHtmlBrowserFactoryEditor() {\n return new org.netbeans.beaninfo.editors.HtmlBrowser.FactoryEditor(){\n public void setValue(Object value) {\n setWWWBrowser((HtmlBrowser.Factory)value);\n }\n\n public Object getValue() {\n return getWWWBrowser();\n }\n };\n }", "private NKE_BrowserWindow() {}", "@BeforeTest\r\n\tpublic void operBrowser(){\n\t\td1=Driver.getBrowser();\r\n\t\tWebDriverCommonLib wlib=new WebDriverCommonLib();\r\n\t\td1.get(Constant.url);\r\n\t\twlib.maximizeBrowse();\r\n\t\twlib.WaitPageToLoad();\r\n\t}", "public static void executeBrowser() throws Exception{\n\t\tinvokeMyBrowser();\n\t}", "public String getBrowserName(){\r\n\t\treturn rb.getProperty(\"browser\");\r\n\t}", "public void Open_Browser() \r\n\t{\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"drivers\\\\chromedriver.exe\");\r\n\t\t//Brower initiation\r\n\t\tdriver=new ChromeDriver();\r\n\t\t//maximize browser window\r\n\t\tdriver.manage().window().maximize();\r\n\t\t\r\n\t\r\n\t}", "public static void main(String [] args) throws IOException {\n MyIe jf=new MyIe();\n jf.getEditPanel().setPage(\"http://www.sina.com\");\n jf.getEditPanel().setEnabled(false);\n jf.getFrame().setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n jf.getFrame().setVisible(true);\n }", "void browserMethod();", "@Override\r\n public void run() {\n ax.browserPane.setTitleAt(0,ax.browser.getTitle());\r\n String stringToken1 = null; \r\n try {\r\n stringToken1 = (\"<Navigate Home>::\" + getHome());\r\n } catch (IOException ex) {\r\n Logger.getLogger(AxBrowser.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n ax.consoleTextArea.setText(stringToken1);\r\n //Put the current html address in the addressbar\r\n ax.addressBar.setText(ax.browser.getCurrentLocation());\r\n \r\n }", "public static void setBrowser() {\n\t\t browser=\"Chrome\";\n\t }", "public static WebDriver ie()\r\n\t{\r\n\t\tSystem.setProperty(\"webdriver.ie.driver\",System.getProperty(\"user.dir\")+\"\\\\IE\\\\IEDriverServer.exe\");\r\n\t\tgk = new InternetExplorerDriver();\r\n\t\treturn gk;\r\n\t}", "public Browser getBrowser() {\n return browser;\n }", "public BrowserInfo getBrowserInfo() {\n return browserInfo;\n }", "public static String getBrowser(){\n\t\treturn browser;\n\t}", "void setBrowser(String browser);", "public static void openBrowser()\n\t{\n\t\tdriver = DriverSetup.getWebDriver(ReadPropertiesFile.getBrowser());\n\t\tdriver.get(ReadPropertiesFile.getURL());\n\t\tlog.info(\"Opening Browser\");\n\t\tlog.info(\"Practo website is launched \");\n\t}", "public static boolean isBrowserIE() {\r\n\t\treturn ConfigProperties.BROWSER.equalsIgnoreCase(INTERNET_EXPLORER);\r\n\t}", "private static WebDriver newHtmlUnitDiver() {\n\t\tcapabilities = new DesiredCapabilities().htmlUnit();\n\t\tcapabilities.setBrowserName(\"HtmlUnit\");\n\t\tsetCommonCapabilities();\n\n//\t\treturn new HtmlUnitDriver(capabilities);\n\t\treturn new HtmlUnitDriver(true);\n\t}", "public static HtmlBrowser.Factory getWWWBrowser () {\n return getBrowser( PROP_WWWBROWSER, false );\n }", "public void browserChanged() { }", "public static void openBrowser() {\r\n\t\tString browser = prop.getProperty(\"browserType\").toLowerCase();\r\n\r\n\t\ttry {\r\n\t\t\tif (browser.equals(\"chrome\")) {\r\n\t\t\t\tSystem.setProperty(prop.getProperty(\"chromeName\"), prop.getProperty(\"chromePath\"));\r\n\t\t\t\tdriver = new ChromeDriver();\r\n\r\n\t\t\t} else if (browser.equals(\"ff\")) {\r\n\t\t\t\tSystem.setProperty(prop.getProperty(\"FFName\"), prop.getProperty(\"FFPath\"));\r\n\t\t\t\tdriver = new FirefoxDriver();\r\n\r\n\t\t\t} else if (browser.equals(\"ie\")) {\r\n\t\t\t\tSystem.setProperty(prop.getProperty(\"IEName\"), prop.getProperty(\"IEPath\"));\r\n\t\t\t\tdriver = new InternetExplorerDriver();\r\n\r\n\t\t\t} else {\r\n\t\t\t\tAssert.fail(\"Unable to find browser, Check EnvrionrmentData.properties file\");\r\n\t\t\t}\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tAssert.fail(\"Unable to find browser, Check EnvrionrmentData.properties file\");\r\n\t\t}\r\n\t}", "private boolean openBrowser(IProgressMonitor monitor) {\n\n monitor.subTask(\"Open index page\");\n // FIXME: port should come from the config files\n Display.getDefault().syncExec(new Runnable() {\n public void run() {\n URL url;\n try {\n url = new URL(\"http://localhost:8888\");\n IWorkbenchBrowserSupport browserSupport = WebBrowserUIPlugin\n .getInstance().getWorkbench().getBrowserSupport();\n IWebBrowser browser = browserSupport.createBrowser(\n IWorkbenchBrowserSupport.LOCATION_BAR\n | IWorkbenchBrowserSupport.NAVIGATION_BAR,\n null, null, null);\n browser.openURL(url);\n } catch (Exception e) {\n Trace.trace(Trace.SEVERE, \"Error opening browser\", e);\n }\n }\n });\n\n monitor.worked(3);\n return true;\n }", "public final EObject ruleWebBrowser() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token lv_name_1_0=null;\n Token otherlv_2=null;\n Token otherlv_4=null;\n EObject lv_onglets_3_0 = null;\n\n\n enterRule(); \n \n try {\n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:79:28: ( (otherlv_0= 'webBrowser' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'open' ( (lv_onglets_3_0= ruleOnglet ) )* otherlv_4= 'close' ) )\n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:80:1: (otherlv_0= 'webBrowser' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'open' ( (lv_onglets_3_0= ruleOnglet ) )* otherlv_4= 'close' )\n {\n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:80:1: (otherlv_0= 'webBrowser' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'open' ( (lv_onglets_3_0= ruleOnglet ) )* otherlv_4= 'close' )\n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:80:3: otherlv_0= 'webBrowser' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'open' ( (lv_onglets_3_0= ruleOnglet ) )* otherlv_4= 'close'\n {\n otherlv_0=(Token)match(input,11,FOLLOW_11_in_ruleWebBrowser122); \n\n \tnewLeafNode(otherlv_0, grammarAccess.getWebBrowserAccess().getWebBrowserKeyword_0());\n \n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:84:1: ( (lv_name_1_0= RULE_ID ) )\n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:85:1: (lv_name_1_0= RULE_ID )\n {\n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:85:1: (lv_name_1_0= RULE_ID )\n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:86:3: lv_name_1_0= RULE_ID\n {\n lv_name_1_0=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleWebBrowser139); \n\n \t\t\tnewLeafNode(lv_name_1_0, grammarAccess.getWebBrowserAccess().getNameIDTerminalRuleCall_1_0()); \n \t\t\n\n \t if (current==null) {\n \t current = createModelElement(grammarAccess.getWebBrowserRule());\n \t }\n \t\tsetWithLastConsumed(\n \t\t\tcurrent, \n \t\t\t\"name\",\n \t\tlv_name_1_0, \n \t\t\"ID\");\n \t \n\n }\n\n\n }\n\n otherlv_2=(Token)match(input,12,FOLLOW_12_in_ruleWebBrowser156); \n\n \tnewLeafNode(otherlv_2, grammarAccess.getWebBrowserAccess().getOpenKeyword_2());\n \n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:106:1: ( (lv_onglets_3_0= ruleOnglet ) )*\n loop1:\n do {\n int alt1=2;\n int LA1_0 = input.LA(1);\n\n if ( (LA1_0==12) ) {\n alt1=1;\n }\n\n\n switch (alt1) {\n \tcase 1 :\n \t // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:107:1: (lv_onglets_3_0= ruleOnglet )\n \t {\n \t // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:107:1: (lv_onglets_3_0= ruleOnglet )\n \t // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:108:3: lv_onglets_3_0= ruleOnglet\n \t {\n \t \n \t \t newCompositeNode(grammarAccess.getWebBrowserAccess().getOngletsOngletParserRuleCall_3_0()); \n \t \t \n \t pushFollow(FOLLOW_ruleOnglet_in_ruleWebBrowser177);\n \t lv_onglets_3_0=ruleOnglet();\n\n \t state._fsp--;\n\n\n \t \t if (current==null) {\n \t \t current = createModelElementForParent(grammarAccess.getWebBrowserRule());\n \t \t }\n \t \t\tadd(\n \t \t\t\tcurrent, \n \t \t\t\t\"onglets\",\n \t \t\tlv_onglets_3_0, \n \t \t\t\"Onglet\");\n \t \t afterParserOrEnumRuleCall();\n \t \t \n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop1;\n }\n } while (true);\n\n otherlv_4=(Token)match(input,13,FOLLOW_13_in_ruleWebBrowser190); \n\n \tnewLeafNode(otherlv_4, grammarAccess.getWebBrowserAccess().getCloseKeyword_4());\n \n\n }\n\n\n }\n\n leaveRule(); \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "private static void closeBrowser() {\n System.out.println(\"Browser closed\");}", "public void initiateBrowser(String browser) {\n\t\tString os = System.getProperty(\"os.name\").toLowerCase();\n\t\tString current_dir = System.getProperty(\"user.dir\");\n\t\tSystem.out.println(os);\n\t\tSystem.out.println(current_dir);\n\t\tswitch (browser) {\n\t\tcase \"ie\":\n\t\t\tSystem.setProperty(\"webdriver.ie.driver\", current_dir + \"/drivers/IEDriverServer.exe\");\n\t\t\tdriver = new InternetExplorerDriver();\n\t\t\tbreak;\n\t\tcase \"chrome\":\n\t\t\tChromeOptions options = new ChromeOptions();\n\t\t\tif (os.contains(\"linux\")) {\n\t\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", current_dir + \"/drivers/linuxdrivers/chromedriver\");\n\t\t\t\tDesiredCapabilities caps = DesiredCapabilities.chrome();\n\t\t\t\tLoggingPreferences logPrefs = new LoggingPreferences();\n\t\t\t\tlogPrefs.enable(LogType.BROWSER, Level.ALL);\n\t\t\t\tcaps.setCapability(CapabilityType.LOGGING_PREFS, logPrefs);\n\n\t\t\t\toptions.setBinary(\"/usr/bin/google-chrome\");\n\t\t\t\toptions.addArguments(\"--headless\");\n\t\t\t} else if (os.contains(\"windows\")) {\n\t\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", current_dir + \"/drivers/chromedriver.exe\");\n\t\t\t\tDesiredCapabilities caps = DesiredCapabilities.chrome();\n\t\t\t\tLoggingPreferences logPrefs = new LoggingPreferences();\n\t\t\t\tlogPrefs.enable(LogType.BROWSER, Level.ALL);\n\t\t\t\tcaps.setCapability(CapabilityType.LOGGING_PREFS, logPrefs);\n\t\t\t}\n\t\t\toptions.addArguments(\"test-type\");\n\t\t\toptions.addArguments(\"disable-popup-blocking\");\n\t\t\tdriver = new ChromeDriver(options);\n\n\t\t\tdriver.manage().window().maximize();\n\t\t\tbreak;\n\t\tcase \"firefox\":\n\t\t\tdriver = new FirefoxDriver();\n\t\t\tbreak;\n\t\t}\n\t\tdriver.manage().window().maximize();\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\n\t}", "protected void openInNewBrowser(SelectEvent event, String url)\n {\n try\n {\n BrowserOpener.browse(new URL(url));\n event.consume();\n }\n catch (Exception e)\n {\n String message = Logging.getMessage(\"generic.ExceptionAttemptingToInvokeWebBrower\", url);\n Logging.logger().warning(message);\n }\n }", "@Parameters({\"browserName\"})\n\t@BeforeMethod\n\tpublic void openBrowser(String browserName) {\n\t\tString currentProjectPath = System.getProperty(\"user.dir\");\n\t\tSystem.out.println(\"Current project path is = \" + currentProjectPath);\n\t\t\n\t\tString currentOSname = System.getProperty(\"os.name\");\n\t\tSystem.out.println(\"Current OS name is = \" + currentOSname);\n\t\t\n\t\tif(browserName.equalsIgnoreCase(\"chrome\")) {\n\t\t\t//Open Chrome\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", currentProjectPath + \"\\\\browserDriverEXE\\\\chromedriver.exe\"); \n\t\t\tdriver = new ChromeDriver();\n\t\t}\n\t\t\n\t\telse if(browserName.equalsIgnoreCase(\"firefox\")) {\n\t\t\t//Open FF\n\t\t\tSystem.setProperty(\"webdriver.gecko.driver\", currentProjectPath + \"\\\\browserDriverEXE\\\\geckodriver.exe\"); \n\t\t\tdriver = new FirefoxDriver();\n\t\t}\n\t\t\n\t\telse {\n\t\t\t//Open IE\n\t\t\tSystem.setProperty(\"webdriver.ie.driver\", currentProjectPath + \"\\\\browserDriverEXE\\\\IEDriverServer.exe\"); \n\t\t\tdriver = new InternetExplorerDriver();\n\t\t}\n\t\tdriver.manage().window().maximize();\n\t\t\n\t\t//refresh\n\t\t//driver.navigate().refresh();\n\t\t\n\t\t//driver.navigate().forward();\n\t\t\n\t\t//driver.navigate().back();\n\t\t\n\t\t//driver.manage().deleteAllCookies();\n\t\t\n\t\t//imp wait\n\t\t//driver.manage().timeouts().setScriptTimeout(10, TimeUnit.MINUTES);\n\t\t//driver.manage().timeouts().pageLoadTimeout(5, TimeUnit.SECONDS);\n\t\tdriver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n\t}", "public java.lang.String getBrowserurl() {\n return browserurl;\n }", "private void launchBrowser(URI uri) throws IOException\r\n {\r\n getDesktop().browse(uri);\r\n }", "public static void main(String[] args) throws Exception {\n\t\t\t\tlaunchBrowser(\"ch\");\n\t\t\t\tThread.sleep(2000);\n\t\t\t\tRobot rb = new Robot();\n\t\t\t\trb.keyPress(KeyEvent.VK_TAB);\n\t\t\t\trb.keyRelease(KeyEvent.VK_TAB);\n\t\t\t\tThread.sleep(2000);\n\t\t\t\trb.keyPress(KeyEvent.VK_A); //--> to type a letter A\n\t\t\t\trb.keyRelease(KeyEvent.VK_A);\n\t\t\t\trb.keyPress(KeyEvent.VK_D); \n\t\t\t\trb.keyRelease(KeyEvent.VK_D);\n\t\t\t\trb.keyPress(KeyEvent.VK_M); \n\t\t\t\trb.keyRelease(KeyEvent.VK_M);\n\t\t\t\trb.keyPress(KeyEvent.VK_I); \n\t\t\t\trb.keyRelease(KeyEvent.VK_I);\n\t\t\t\trb.keyPress(KeyEvent.VK_N); \n\t\t\t\trb.keyRelease(KeyEvent.VK_N);\n\t\t\t\trb.keyPress(KeyEvent.VK_1); \n\t\t\t\trb.keyRelease(KeyEvent.VK_1);\n\t\t\t\trb.keyPress(KeyEvent.VK_2); \n\t\t\t\trb.keyRelease(KeyEvent.VK_2);\n\t\t\t\trb.keyPress(KeyEvent.VK_3); \n\t\t\t\trb.keyRelease(KeyEvent.VK_3);\n\t\t\t\t//rb.keyPress(KeyEvent.VK_AT); \n\t\t\t\t//rb.keyRelease(KeyEvent.VK_AT);\n\t\t\t\trb.keyPress(KeyEvent.VK_G); \n\t\t\t\trb.keyRelease(KeyEvent.VK_G);\n\t\t\t\trb.keyPress(KeyEvent.VK_M); \n\t\t\t\trb.keyRelease(KeyEvent.VK_M);\n\t\t\t\trb.keyPress(KeyEvent.VK_A); \n\t\t\t\trb.keyRelease(KeyEvent.VK_A);\n\t\t\t\trb.keyPress(KeyEvent.VK_I); \n\t\t\t\trb.keyRelease(KeyEvent.VK_I);\n\t\t\t\trb.keyPress(KeyEvent.VK_L); \n\t\t\t\trb.keyRelease(KeyEvent.VK_L);\n\t\t\t\trb.keyPress(KeyEvent.VK_PERIOD); \n\t\t\t\trb.keyRelease(KeyEvent.VK_PERIOD);\n\t\t\t\trb.keyPress(KeyEvent.VK_C); \n\t\t\t\trb.keyRelease(KeyEvent.VK_C);\n\t\t\t\trb.keyPress(KeyEvent.VK_O); \n\t\t\t\trb.keyRelease(KeyEvent.VK_O);\n\t\t\t\trb.keyPress(KeyEvent.VK_M); \n\t\t\t\trb.keyRelease(KeyEvent.VK_M);\n\t\t\t\tThread.sleep(5000);\n\t\t\t\trb.keyPress(KeyEvent.VK_TAB);\n\t\t\t\trb.keyRelease(KeyEvent.VK_TAB);\n\t\t\t\tThread.sleep(2000);\n\t\t\t\trb.keyPress(KeyEvent.VK_TAB);\n\t\t\t\trb.keyRelease(KeyEvent.VK_TAB);\n\t\t\t\tThread.sleep(2000);\n\t\t\t\trb.keyPress(KeyEvent.VK_ENTER);\n\t\t\t\trb.keyRelease(KeyEvent.VK_ENTER);\n\t\t\t\t\n\t\t\t\t//File upload test cases we used to do that --> \n\t\t\t\t//This will work on focus basis --> Recomended\n\t\t\t\t//No gurantee whether it is success or not\n\t\t\t\t// Always recomended we have to ask the developers to write elements/Automation supported codes\n\t\t\t\t\n\t\t\t\t//This is recomended but can be used in browser only\n\t\t\t\t//driver.findElement(By.xpath(\"//button[contains(text(),'Login to Account')]\")).sendKeys(keys.ENTER);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t}", "BrowserStack getBrowserStackInst();", "public static String getChosenBrowser() {\n return CHOSEN_BROWSER;\n }", "protected IBrowserManager getBrowserMgr () {\n return (this.theBrowserMgr);\n }", "private static WebDriver getIEDriver() {\n\t\treturn null;\n\t}", "public static HtmlBrowser.Factory getExternalWWWBrowser () {\n return getBrowser( PROP_EXTERNAL_WWWBROWSER, true );\n }", "public void openWebBrowser(String stringURL) {\r\n\t\tWebBrowser.openBrowser(stringURL);\r\n\t}", "public void openBrowser() {\n ResourceBundle config = ResourceBundle.getBundle(\"config\");\n\n config.getString(\"browser\").equalsIgnoreCase(\"Chrome\");\n System.setProperty(\"webdriver.chrome.driver\", \"src/Drivers/chromedriver_76.0.exe\");\n driver = new ChromeDriver();\n\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n// driver.get(config.getString(\"URL\"));\n driver.manage().window().maximize();\n }", "public void getBrowser(String browser, String url) {\n\n\n if (browser.equalsIgnoreCase(\"chrome\")) {\n WebDriverManager.chromedriver().setup();\n driver = new ChromeDriver();\n } else if (browser.equalsIgnoreCase(\"firefox\")) {\n WebDriverManager.firefoxdriver().setup();\n driver = new FirefoxDriver();\n }\n driver.manage().window().maximize();\n driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n driver.get(url);\n\n }", "private WebDriver createInternetExplorerDriver() {\n\t\tDesiredCapabilities capabilities = DesiredCapabilities.internetExplorer();\n\t\tcapabilities.setCapability(InternetExplorerDriver.IGNORE_ZOOM_SETTING, true);\n\t\tsetDriverPropertyIfRequired(\"webdriver.ie.driver\", \"IEDriverServer.exe\");\n\t\t_driver = new InternetExplorerDriver(capabilities);\n\t\treturn _driver;\n\t}", "public static WebDriver startBrowser() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"./driver/chromedriver.exe\");\n\t\t\n\t\t// Create ChromeDriver object, launch Chrome browser\n\t\t WebDriver driver = new ChromeDriver();\n\t\t \n\t\t// Create ChromeDriver object, launch Chrome browser\n\t\tdriver.get(\"http://techfios.com/test/107/\");\n\t\treturn driver;\n\t}", "public boolean isSetBrowser() {\n return this.browser != null;\n }", "@Test\n public void testReturnsDefaultBrowser() {\n String defaultBrowser = BROWSER_INSTALLED_SUPPORTING_WEBAPKS;\n mockInstallBrowsers(sInstalledBrowsers, defaultBrowser);\n setHostBrowserInMetadata(null);\n // Simulates that there isn't any host browser stored in the SharedPreference.\n setHostBrowserInSharedPreferences(null);\n\n String hostBrowser = WebApkUtils.getHostBrowserPackageName(mContext);\n Assert.assertEquals(defaultBrowser, hostBrowser);\n }", "public String getForcedBrowserMode() {\n return forcedBrowserMode;\n }", "public static WebDriver getBrowser(BrowserType browserName) {\n\t\tWebDriver driver = null;\n\t\t// System.setProperty(\"webdriver.gecko.driver\",\"G:\\\\eclipse-workspace\\\\zeeui\\\\driver\\\\geckodriver.exe\");\n\t\t// String browserType=Config.getValue(\"BROWSER_TYPE\");\n\t\tif (browserName.equals(BrowserType.FIREFOX)) {\n\t\t\tSystem.setProperty(\"webdriver.gecko.driver\", Constants.firefoxDriver);\n\t\t\tFirefoxProfile profile = new FirefoxProfile();\n\t\t\tprofile.setPreference(\"browser.download.folderList\", 2);\n\t\t\tprofile.setPreference(\"browser.download.manager.showWhenStarting\", false);\n\t\t\tprofile.setPreference(\"browser.download.dir\", Config.getValue(\"EXPORT_FILE_PATH\"));\n\t\t\tprofile.setPreference(\"browser.helperApps.neverAsk.saveToDisk\",\n\t\t\t\t\t\"image/jpg, text/csv,text/xml,application/xml,application/vnd.ms-excel,application/x-excel,application/x-msexcel,application/excel,application/pdf,application/octet-stream\");\n\t\t\tdriver = new FirefoxDriver(profile);\n\t\t\tdrivers.put(\"firefox\", driver);\n\t\t} else if (browserName.equals(\"chrome\")) {\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", Constants.chromeDriver);\n\t\t\tMap<String, String> prefs = new Hashtable<String, String>();\n\t\t\tprefs.put(\"download.prompt_for_download\", \"false\");\n\t\t\tprefs.put(\"download.default_directory\", Config.getValue(\"EXPORT_FILE_PATH\"));\n\t\t\tprefs.put(\"download.extensions_to_open\",\n\t\t\t\t\t\"image/jpg, text/csv,text/xml,application/xml,application/vnd.ms-excel,application/x-excel,application/x-msexcel,application/excel,application/pdf,application/octet-stream\");\n\n\t\t\tChromeOptions options = new ChromeOptions();\n\t\t\toptions.setExperimentalOption(\"prefs\", prefs);\n\t\t\tdriver = new ChromeDriver(options);\n\t\t\tdrivers.put(\"chrome\", driver);\n\t\t} else if (browserName.equals(\"ie\")) {\n\t\t\tSystem.setProperty(\"webdriver.ie.driver\", Config.getValue(\"IE_DRIVER\"));\n\t\t\tdriver = new InternetExplorerDriver();\n\t\t\tdrivers.put(\"ie\", driver);\n\t\t} else if (browserName.equals(\"edge\")) {\n\t\t\tSystem.setProperty(\"webdriver.edge.driver\", Config.getValue(\"EDGE_DRIVER\"));\n\t\t\tdriver = new EdgeDriver();\n\t\t\tdrivers.put(\"edge\", driver);\n\t\t} else if (browserName.equals(\"safari\")) {\n\t\t\tdriver = new SafariDriver();\n\t\t\tdrivers.put(\"safari\", driver);\n\t\t} else if (browserName.equals(\"htmlUnit\")) {\n\t\t\tdriver = new HtmlUnitDriver();\n\t\t}\n\n\t\treturn driver;\n\n\t}", "public static void openBrowser() {\n WebDriverManager.chromedriver().setup();\n driver = new ChromeDriver();\n // === Google Chrome Browsers === //\n CHOSEN_BROWSER = CHROME;\n driver.manage().window().maximize();\n }", "public WebDriver createWebDriverInstance(String Browser) throws MalformedURLException\n\t{\n\t\tif(d==null && Browser.equals(\"Firefox\"))\n\t\t{\n\n\t\t\td = new FirefoxDriver();\n\t\t\tlogger.info(\"--FireFox Browser has opened \");\n\t\t}\n\n\t\telse if(d==null && Browser.equals(\"Chrome\"))\n\t\t{\n\t\t\tChromeOptions options = new ChromeOptions();\n\t\t\toptions.addArguments(\"start-maximized\");\n\t\t\tDesiredCapabilities capabilities = new DesiredCapabilities(DesiredCapabilities.chrome());\n\t\t\tcapabilities.setCapability (CapabilityType.ACCEPT_SSL_CERTS, true);\n\t\t\tcapabilities.setCapability (ChromeOptions.CAPABILITY,options);\n\t\t\tChromeDriverManager.getInstance().setup();\n\t\t\t\n\t\t\t//Don't Remember Passwords by default\n\t\t\tMap<String, Object> prefs = new HashMap<String, Object>();\n\t\t\tprefs.put(\"credentials_enable_service\", false);\n\t\t\tprefs.put(\"profile.password_manager_enabled\", false);\n\t\t\toptions.setExperimentalOption(\"prefs\", prefs);\n\t\t\t/*\n\t\t\tString path =System.getProperty(\"user.dir\")+File.separator+\"chromedriver.exe\";\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", path);\n\t\t\tChromeOptions options = new ChromeOptions();\n\t\t\tDesiredCapabilities caps = DesiredCapabilities.chrome();*/\n\t\t\td = new ChromeDriver(capabilities);\n\t\t\tlogger.info(\"--Chrome Browser has opened \");\n\t\t}\n\n\t\telse if (d==null && Browser.equals(\"IE\"))\n\t\t{\n\t\t\tString path =\"binary/IEDriverServer.exe\";\n\t\t\tSystem.setProperty(\"webdriver.ie.driver\", path);\n\t\t\tlogger.info(\"--IEDriver has setup\");\n\t\t\tDesiredCapabilities caps = DesiredCapabilities.internetExplorer();\n\t\t\tcaps.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,true);\n\t\t\tcaps.setCapability(\"requireWindowFocus\", true);\n\t\t\tcaps.setCapability(\"enablePersistentHover\", true);\n\t\t\tcaps.setCapability(\"native events\", true);\n\t\t\td = new InternetExplorerDriver(caps);\n\t\t\tlogger.info(\"--IE Browser has opened \");\n\t\t}\n\t\telse if (d==null && Browser.equals(\"IE32bit\"))\n\t\t{\n\t\t\tString path =\"binary/IEDriverServer_32bit.exe\";\n\t\t\tSystem.setProperty(\"webdriver.ie.driver\", path);\n\t\t\tlogger.info(\"--IEDriver has setup\");\n\t\t\tDesiredCapabilities caps = DesiredCapabilities.internetExplorer();\n\t\t\tcaps.setCapability(\n\t\t\t\t\tInternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,\n\t\t\t\t\ttrue);\n\t\t\tcaps.setCapability(\"requireWindowFocus\", true);\n\t\t\tcaps.setCapability(\"enablePersistentHover\", false);\n\t\t\tcaps.setCapability(\"native events\", true);\n\t\t\td = new InternetExplorerDriver(caps);\n\t\t\tlogger.info(\"--IE Browser has opened \");\n\t\t}\n\t\treturn d;\n\n\n\t}", "public static void chromeTest() throws Exception{\n driver = BrowserFactory.getDriver(\"chrome\");\n Thread.sleep(2000);\n\n driver.get(\"http://google.com\");\n Thread.sleep(3000);\n String title = driver.getTitle();\n driver.navigate().to(\"https://etsy.com\");\n Thread.sleep(2000);\n String title2 = driver.getTitle();\n driver.navigate().back();\n title = driver.getTitle();\n Thread.sleep(2000);\n driver.navigate().to(\"https://etsy.com\");\n title2 = driver.getTitle();\n driver.quit();\n }", "public WebDriver browserSetup() throws IOException\r\n\t{ \r\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\r\n\t\tSystem.out.println(\"1.Chrome\\n2.Firefox \\nEnter your choice:\");\r\n\t\tString choice=br.readLine();\r\n\t\t\r\n\t\tswitch(choice)\r\n\t\t{\r\n\t\t//To start Chrome Driver\r\n\t\tcase \"1\":\r\n\t\t System.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Test Automation\\\\Software\\\\chrome\\\\New Version\\\\chromedriver.exe\");\r\n\t\t ChromeOptions options=new ChromeOptions();\r\n\t\t options.addArguments(\"--disable-notifications\");\r\n\t\t driver=new ChromeDriver(options);\r\n\t\t break;\r\n\t\t\r\n\t\t//To start Firefox Driver\r\n\t\tcase \"2\":\r\n\t\t\tSystem.setProperty(\"webdriver.gecko.driver\", \"C:\\\\***\\\\drivers\\\\geckodriver.exe\");\r\n\t\t\tdriver=new FirefoxDriver();\r\n\t\t\tbreak;\r\n\t\t} \r\n\t\t\r\n\t\tdriver.get(url);\r\n\t\t\r\n\t\t//To maximize the window\r\n\t\tdriver.manage().window().maximize();\r\n\t\t\r\n\t\tdriver.manage().timeouts().pageLoadTimeout(8, TimeUnit.SECONDS);\r\n\t\t\r\n\t\treturn driver;\r\n\t}", "@Test\n\tpublic void ieOptions()\t{\n\t\tSystem.setProperty(InternetExplorerDriverService.IE_DRIVER_LOGLEVEL_PROPERTY,\"INFO\"); \n\t\t//System.setProperty(InternetExplorerDriverService.IE_DRIVER_LOGLEVEL_PROPERTY,\"FATAL\"); \n\t\t//System.setProperty(InternetExplorerDriverService.IE_DRIVER_LOGLEVEL_PROPERTY,\"ERROR\"); \n\t\tSystem.setProperty(InternetExplorerDriverService.IE_DRIVER_LOGFILE_PROPERTY, \"D:\\\\IE.log\");\n\t // System.setProperty(InternetExplorerDriverService.IE_DRIVER_SILENT_PROPERTY, \"true\");\n\t\tInternetExplorerOptions options = new InternetExplorerOptions();\n\t\t//options.setPageLoadStrategy(\"\");\n\t\tSystem.setProperty(InternetExplorerDriverService.IE_DRIVER_EXE_PROPERTY, \"D:\\\\Selenium Drivers\\\\IEDriverServer.exe\");\n\t\tDesiredCapabilities cap = new DesiredCapabilities();\n\t\t// Enable proxy but will enable in system settings\n/*\n\t\tString PROXY = \"83.209.94.89:44557\";\n\t Proxy proxy = new Proxy();\n\t proxy.setAutodetect(false);\n\t proxy.setProxyType(Proxy.ProxyType.MANUAL);\n\t proxy.setSocksProxy(PROXY);\n\t cap.setCapability(CapabilityType.PROXY, proxy);\n\t\t options.merge(cap);\n*/\t\t\n\t\t\n\t\tWebDriver driver = new InternetExplorerDriver(options);\n \tdriver.get(\"https://192.163.254.17/\");\n \t// Get rid of https allow page - standard code\n\t\tdriver.get(\"javascript:document.getElementById('overridelink').click();\");\n\t}", "public static void launchingBrowser() throws Exception {\n\n\t\tString applicationURL = merchEnv.getProtocol() + \"://\"\n\t\t\t\t+ merchEnv.getHost() + \":\" + merchEnv.getPort() + \"/\";\n\t\tselectedBrowser = merchEnv.getBrowser();\n\t\ttry {\n\t\t\tbaseScreen = new BaseScreen(selectedBrowser, applicationURL,\n\t\t\t\t\tmerchEnv.getContext(), merchEnv, merchUserInfo, merchUI);\n\t\t} catch (ScreenException e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public FirefoxDriver openBrowser(String site){\n System.setProperty(\"webdriver.gecko.driver\", \"c:\\\\Utils\\\\geckodriver.exe\");\n FirefoxDriver browser = new FirefoxDriver();\n browser.get(site);\n return browser;\n }", "public FxRequest.Browser getBrowser() {\n return FxJsfUtils.getRequest().getBrowser();\n }", "@BeforeTest\n\tpublic void LaunchBrowser() {\n\t\t driver = init(\"URL_JQuery\");\n\t\t// driver.get(\"https://jqueryui.com/autocomplete/\");\n\t\t driver.switchTo().frame(0);\n\t\t jq = new JQueryAutocompletePage(driver);\n\t\t \n\t}", "public String getBrowser(){\n\t\tif (prop.getProperty(\"browser\") == null)\n\t\t\treturn \"\";\n\t\treturn prop.getProperty(\"browser\");\n\t}", "private void openBrowser(String Url) {\n \tif (Url != null && Url.trim().length()>0) {\n \t\tUri uri = Uri.parse(Url);\n \tIntent i = new Intent(Intent.ACTION_VIEW, uri);\n \tstartActivity(i);\n \t} \t\n }", "public String getBrowser() {\n String browser = null;\n\n try\n {\n browser = System.getProperty(\"browser\");\n if(browser !=null)\n return browser;\n else\n return prop.getProperty(BROWSER_KEY);\n\n\n }catch(Exception e)\n {\n return prop.getProperty(BROWSER_KEY);\n }\n\n\n }", "@Test\n\t@BeforeSuite\n\tpublic void OpenBrowser() throws InterruptedException {\n\t\t\n\t\tdriver = new FirefoxDriver();\n\t\tdriver.get(\"https://www.gmail.com\");\n\t\tmanageInit();\n\t\n\t}", "public String getBrowserType(){\n\t\treturn browserType;\n\t}", "private void openBrowser() {\r\n //http://必须有\r\n String url = urlText.getText().toString();\r\n if (!\"http\".equals(url.substring(0, 4))) {\r\n url = \"http://\" + url;\r\n }\r\n Uri uri = Uri.parse(url);//获取网址,并转换成URI\r\n Intent intent = new Intent(Intent.ACTION_VIEW, uri);//打开浏览器\r\n startActivity(intent);\r\n }", "public static void main(String[] args) throws Exception {\n\t\t\r\n\t\tDifferent_Browser.call_Firefox();\r\n\t\tDifferent_Browser.get_Google();\r\n\t\tDifferent_Browser.close_browser();\r\n\t\t\r\n//\t\tDifferent_Browser.call_chrome();\r\n//\t\tDifferent_Browser.get_Google();\r\n//\t\tDifferent_Browser.close_browser();\r\n\t}", "@Test\n public void basicHTMLUnitDriverBrowserVersion(){\n\n // changed to BrowserVersion.FIREFOX_38 from BrowserVersion.FIREFOX_24\n // when upgrading to WebDriver 2.46.0\n // changed to BrowserVersion.FIREFOX_24 from BrowserVersion.FIREFOX_3_6\n // when upgrading to WebDriver 2.42.2, if you are using a version below this\n // then change it back to FIREFOX_3_6\n WebDriver htmlunit = new HtmlUnitDriver(BrowserVersion.FIREFOX_52);\n\n htmlunit.get(\"http://www.compendiumdev.co.uk/selenium/basic_html_form.html\");\n\n assertThat(htmlunit.getTitle(), is(\"HTML Form Elements\"));\n\n htmlunit.quit();\n }", "public static void main(String[] args)\n\t{\n WebDriver driver = new HtmlUnitDriver();\n\n // And now use this to visit Google\n driver.get(\"http://www.google.com/\"); \n System.out.println(\"Page title is: \" + driver.getTitle()); \n\t}", "public void mo6082b() {\n if (m14898d()) {\n C3720a.this.StartBrowser();\n }\n }", "public String getBrowserAsString() {\n return String.valueOf(FxJsfUtils.getRequest().getBrowser());\n }", "private static void openWebpage(String url) {\n try {\n new ProcessBuilder(\"x-www-browser\", url).start();\n } catch (IOException e) {\n log.error(e.getMessage(), e);\n }\n }", "public void setBrowserMgr (IBrowserManager theMgr) {\n this.theBrowserMgr = theMgr;\n }", "@Parameters(\"browser\")\n private void switchBrowser(String browser) {\n if (browser.equals(DRIVER_TYPE.IE.name())) {\n System.setProperty(\"webdriver.ie.driver\", \"src/test/resources/driver/IEDriverServer.exe\");\n driver = new InternetExplorerDriver();\n } else {\n System.setProperty(\"webdriver.chrome.driver\", \"src/test/resources/driver/chromedriver.exe\");\n driver = new ChromeDriver();\n }\n }", "public static void main(String[] args) {\nWebDriver driver = new FirefoxDriver();\nSystem.out.println(\"hai\");\ndriver.get(\"https://www.google.com\");\nSystem.out.println(driver.getTitle());\ndriver.close();\n\t}", "private static WebDriver launchInternetExplorer()\n\t{\n\t\tif (REMOTE_URL != null && !REMOTE_URL.equals(\"\")) {\n\t\t\tDesiredCapabilities capabilities = DesiredCapabilities.internetExplorer();\n\t\t\ttry {\n\n\t\t\t\treturn new RemoteWebDriver(new URL(System.getProperty(\"RemoteUrl\")), capabilities);\n\t\t\t}\n\n\n\t\t\tcatch (MalformedURLException e) {\n\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\n\t\telse\n\t\t{\n\t\tURL IEDriverURL = BrowserDriver.class.getResource(\"/drivers/IEDriverServer.exe\");\n\t\tFile file = new File(IEDriverURL.getFile()); \n\t\tSystem.setProperty(InternetExplorerDriverService.IE_DRIVER_EXE_PROPERTY, file.getAbsolutePath());\n\t\t\n\t\tDesiredCapabilities capabilities = DesiredCapabilities.internetExplorer();\n\t\tcapabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS, true);\n\t\tcapabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);\n\t\t\n\t\treturn new InternetExplorerDriver(capabilities);\n\t\t}\n\t\n\t\t\n\t}", "@Before\n public synchronized static WebDriver openBrowser() {\n String browser = System.getProperty(\"BROWSER\");\n\n\n if (driver == null) {\n try {\n //Kiem tra BROWSER = null -> gan = chrome\n if (browser == null) {\n browser = System.getenv(\"BROWSER\");\n if (browser == null) {\n browser = \"chrome\";\n }\n }\n switch (browser) {\n case \"chrome\":\n WebDriverManager.chromedriver().setup();\n driver = new ChromeDriver();\n break;\n case \"firefox\":\n WebDriverManager.firefoxdriver().setup();\n driver = new FirefoxDriver();\n break;\n case \"chrome_headless\":\n WebDriverManager.chromedriver().setup();\n ChromeOptions options = new ChromeOptions();\n options.addArguments(\"headless\");\n options.addArguments(\"window-size=1366x768\");\n driver = new ChromeDriver(options);\n break;\n default:\n WebDriverManager.chromedriver().setup();\n driver = new ChromeDriver();\n break;\n }\n } catch (UnreachableBrowserException e) {\n driver = new ChromeDriver();\n } catch (WebDriverException e) {\n driver = new ChromeDriver();\n } finally {\n Runtime.getRuntime().addShutdownHook(new Thread(new BrowserCleanup()));\n }\n driver.get(\"http://demo.guru99.com/v4/\");\n driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n driver.manage().window().maximize();\n log.info(\"----------- START BRWOSER -----------\");\n\n }\n return driver;\n }", "static String getBrowserPath()\n \t{\n \t\tint os = PropertiesAndDirectories.os();\n \t\tString result = browserPath;\n \t\tif (result == null)\n \t\t{\n \t\t\tswitch (os)\n \t\t\t{\n \t\t\tcase PropertiesAndDirectories.XP:\n \t\t\tcase PropertiesAndDirectories.VISTA_AND_7:\n \t\t\t\tif (!Pref.lookupBoolean(\"navigate_with_ie\"))\n \t\t\t\t\tresult = FIREFOX_PATH_WINDOWS;\n \t\t\t\tif (result != null)\n \t\t\t\t{\n \t\t\t\t\tFile existentialTester = new File(result);\n \t\t\t\t\tif (!existentialTester.exists())\n \t\t\t\t\t{\n \t\t\t\t\t\tresult = FIREFOX_PATH_WINDOWS_64;\n \t\t\t\t\t\texistentialTester = new File(result);\n \t\t\t\t\t\tif (!existentialTester.exists())\n \t\t\t\t\t\t{\n \t\t\t\t\t\t\tresult = IE_PATH_WINDOWS;\n \t\t\t\t\t\t\texistentialTester = new File(result);\n \t\t\t\t\t\t\tif (!existentialTester.exists())\n \t\t\t\t\t\t\t\tresult = null;\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\tbreak;\n \t\t\tcase PropertiesAndDirectories.MAC:\n \t\t\t\tresult = \"/usr/bin/open\";\n \t\t\t\tbreak;\n \t\t\tdefault:\n \t\t\t\terror(PropertiesAndDirectories.getOsName(), \"go(ParsedURL) not supported\");\n \t\t\t\tbreak;\n \t\t\t}\n \t\t\tif (result != null)\n \t\t\t{\n \t\t\t\tbrowserPath = result;\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t}", "private void setIEDriver() throws Exception {\n\t\tcapabilities = DesiredCapabilities.internetExplorer();\n\t\t// capabilities.setCapability(\"ignoreProtectedModeSettings\", true);\n\t\t// capabilities.setCapability(\"ignoreZoomSetting\", true);\n\t\t// capabilities.setCapability(InternetExplorerDriver.IE_ENSURE_CLEAN_SESSION,\n\t\t// true);\n\t\tcapabilities.setJavascriptEnabled(true);\n\n\t\tInternetExplorerOptions ieOptions = new InternetExplorerOptions();\n\t\tieOptions.destructivelyEnsureCleanSession();\n\t\tieOptions.ignoreZoomSettings();\n\t\tieOptions.setCapability(\"ignoreProtectedModeSettings\", true);\n\t\tieOptions.merge(capabilities);\n\n\t\tWebDriver myDriver = null;\n\t\tRemoteWebDriver rcDriver;\n\n\t\tswitch (runLocation.toLowerCase()) {\n\t\tcase \"local\":\n\t\t\tSystem.setProperty(\"webdriver.ie.driver\", ieDriverLocation);\n\t\t\tmyDriver = new InternetExplorerDriver(ieOptions);\n\t\t\tbreak;\n\t\tcase \"grid\":\n\t\t\trcDriver = new RemoteWebDriver(new URL(serverURL), capabilities);\n\t\t\trcDriver.setFileDetector(new LocalFileDetector());\n\t\t\tmyDriver = new Augmenter().augment(rcDriver);\n\t\t\tbreak;\n\t\tcase \"testingbot\":\n\t\t\tif (browserVersion.isEmpty()) {\n\t\t\t\tbrowserVersion = defaultIEVersion;\n\t\t\t}\n\t\t\tif (platformOS.isEmpty()) {\n\t\t\t\tplatformOS = defaultPlatformOS;\n\t\t\t}\n\t\t\tcapabilities.setCapability(\"browserName\", browser);\n\t\t\tcapabilities.setCapability(\"version\", browserVersion);\n\t\t\tcapabilities.setCapability(\"platform\", platformOS);\n\t\t\t// capabilities.setCapability(\"name\", testName); // TODO: set a test\n\t\t\t// name (suite name maybe) or combined with env\n\t\t\trcDriver = new RemoteWebDriver(new URL(serverURL), capabilities);\n\t\t\trcDriver.setFileDetector(new LocalFileDetector());\n\t\t\tmyDriver = new Augmenter().augment(rcDriver);\n\t\t\tbreak;\n\t\tcase \"smartbear\":\n\t\t\tif (browserVersion.isEmpty()) {\n\t\t\t\tbrowserVersion = defaultIEVersion;\n\t\t\t}\n\t\t\tif (platformOS.isEmpty()) {\n\t\t\t\tplatformOS = defaultPlatformOS;\n\t\t\t}\n\t\t\t//capabilities.setCapability(\"name\", testMethod.get());\n\t\t\tcapabilities.setCapability(\"build\", testProperties.getString(TEST_ENV)+\" IE-\"+platformOS);\n\t\t\tcapabilities.setCapability(\"max_duration\", smartBearDefaultTimeout);\n\t\t\tcapabilities.setCapability(\"browserName\", browser);\n\t\t\tcapabilities.setCapability(\"version\", browserVersion);\n\t\t\tcapabilities.setCapability(\"platform\", platformOS);\n\t\t\tcapabilities.setCapability(\"screenResolution\", smartBearScreenRes);\n\t\t\tcapabilities.setCapability(\"record_video\", \"true\"); Reporter.log(\n\t\t\t\t\t \"BROWSER: \" + browser, true); Reporter.log(\"BROWSER Version: \" +\n\t\t\t\t\t\t\t browserVersion, true); Reporter.log(\"PLATFORM: \" + platformOS, true);\n\t\t\tReporter.log(\"URL '\" + serverURL + \"'\", true); rcDriver = new\n\t\t\tRemoteWebDriver(new URL(serverURL), capabilities); myDriver = new\n\t\t\tAugmenter().augment(rcDriver);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.setProperty(\"webdriver.ie.driver\", ieDriverLocation);\n\t\t\tmyDriver = new InternetExplorerDriver(ieOptions);\n\t\t\tbreak;\n\t\t}\n\t\tdriver.set(myDriver);\n\t}", "@Parameters(\"browser\")\n\t@BeforeMethod\n\tpublic void launchBrowser(String browser) throws InterruptedException{\n\t\tif(browser.equalsIgnoreCase(\"firefox\")) {\n\t\t\t \n\t\t\t driver = new FirefoxDriver();\n\t\t \n\t\t // If browser is IE, then do this\t \n\t\t \n\t\t }else if (browser.equalsIgnoreCase(\"ie\")) { \n\t\t \n\t\t\t // Here I am setting up the path for my IEDriver\n\t\t \n\t\t\t System.setProperty(\"webdriver.ie.driver\", \"C://Users//sudt//Downloads//IEDriverServer_x64_2.53.1//IEDriverServer (2).exe\");\n\t\t \n\t\t\t driver = new InternetExplorerDriver();\n\t\t \n\t\t } \n\t\t else if (browser.equalsIgnoreCase(\"chrome\")){\n\t\t\t System.setProperty(\"webdriver.chrome.driver\", \"C://Users//sudt//Downloads//chromedriver_win32//chromedriver.exe\");\n\t\t\t driver = new ChromeDriver();\n\t\t }\n\t\t else {\n throw new IllegalArgumentException(\"The Browser Type is Undefined\");\n }\n\n\t\tdriver.get(\"https://www.xero.com/us/\");\n\t\tdriver.manage().window().maximize();\n\t\n\t\n\t}", "@Test\n public void testReturnsNullWhenDefaultBrowserDoesNotSupportWebApks() {\n mockInstallBrowsers(sInstalledBrowsers, BROWSER_INSTALLED_NOT_SUPPORTING_WEBAPKS);\n setHostBrowserInMetadata(null);\n setHostBrowserInSharedPreferences(null);\n\n String hostBrowser = WebApkUtils.getHostBrowserPackageName(mContext);\n Assert.assertNull(hostBrowser);\n }", "public interface BrowserService {\n\n void openLink(String url);\n}", "public static WebDriver selectBrowser(String browser){\r\n\t\tif(browser.equalsIgnoreCase(\"firefox\")){\r\n\t\t\tdriver = new FirefoxDriver();\r\n\t\t\tdriver.manage().window().maximize();\r\n\t\t\treturn driver;\r\n\t\t}else if(browser.equalsIgnoreCase(\"chrome\")){\r\n\t\t\tSystem.out.println(\"chrome browser\");\r\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", System.getProperty(\"user.dir\")+\"chromedriver.exe\");\r\n\t\t\tdriver = new ChromeDriver();\r\n\t\t\tdriver.manage().window().maximize();\r\n\t\t\treturn driver;\r\n\t\t} else if(browser.equalsIgnoreCase(\"IE\")){\r\n\t\t\tSystem.out.println(\"Internet Explorer\");\r\n\t\t\tSystem.setProperty(\"webdriver.IE.driver\", System.getProperty(\"user.dir\")+\"iexplore.exe\");\r\n\t\t\tdriver = new InternetExplorerDriver();\r\n\t\t\tdriver.manage().window().maximize();\r\n\t\t\treturn driver;\r\n\t}\r\n\t\treturn null;\r\n\t}", "public void openUrlInBrowser(String URL) {}", "public static void main(String[] args) throws InterruptedException {\n WebDriverManager.chromedriver().setup();\n ChromeDriver driver = new ChromeDriver(); // ChromeDriver is a reference type\n //RemoteWebDriver driver = new SafariDriver();\n //RemoteWebDriver driver = new ChromeDriver();\n //RemoteWebDriver driver = new InternetExplorerDriver(); //RemoteWebDriver is the parent of webdrivers\n //They all inherited RemoteWebDriver. It is called polymorphism\n\n //In selenium, everything starts from Webdriver interface\n //If I want to open a web page I just call this driver and I use methods from the driver\n //here we used get() method. Every single script always start with get() method.\n //It is like key to open the door. Get will open website first\n driver.get(\"http://google.com\");\n driver.manage().window().maximize(); //to maximize the browser\n //driver.manage().window().fullscreen();\n\n Thread.sleep(3000); //for demo, wait 3 seconds. If you use this add throws declaration. This is why we used throws InterruptedException\n\n //method that returns page title. You can also see it as tab name, in the browser\n String title = driver.getTitle(); //returns <title>Some title</title> text. It is actual title\n String expectedTitle = \"Google\"; //It is expected title\n System.out.println(\"Title is...\"+ title);\n\n if (expectedTitle.equalsIgnoreCase(title)){ //expected title is equal to actual title\n System.out.println(\"TEST PASSED!\");\n }else {\n System.out.println(\"TEST FAILED\");\n }\n\n //go to another website within the same window\n driver.navigate().to(\"http://amazon.com\");\n //amazon has long title so we just used contain method not equals\n if (driver.getTitle().toLowerCase().contains(\"amazon\")){\n System.out.println(\"TEST PASSED!\");\n }else {\n System.out.println(\"TEST FAILED!\");\n }\n\n //comeback to google. Instead of writing if statement,line 32, we can write this method\n driver.navigate().back();\n Thread.sleep(3000); //adding 3 sec between the navigating Google to Amazon\n verifyEquals(driver.getTitle(), \"Google\"); //calling verifyEquals method, line 55, checking if page title is equals to Google\n\n //move forward in the browser history, again going to amazon\n driver.navigate().forward();\n Thread.sleep(3000);\n\n System.out.println(\"Title: \"+driver.getTitle()); //Title is a String\n System.out.println(\"URL: \"+ driver.getCurrentUrl()); // to get URL, URL is a String\n\n driver.navigate().refresh(); //to reload page\n Thread.sleep(3000);\n //must be at the end\n driver.close(); //to close browser\n }", "public void openBrowser(String url) {\n System.setProperty(\"webdriver.chrome.driver\", \"c:\\\\webdriver\\\\chromedriver.exe\");\n driver = new ChromeDriver();\n driver.manage().window().maximize();\n// int timeout = Integer.parseInt(ApplicationConfig.readConfigProperties(\"config-week17project.properties\", \"timeout\"));\n int timeout = Integer.parseInt(testData.timeout);\n driver.manage().timeouts().pageLoadTimeout(timeout, TimeUnit.SECONDS);\n driver.get(url);\n }", "public static boolean useInternalBrowser() {\n\t\treturn (isWindows() || isLinux() || isMac());\n\t}", "@Test\r\n\tpublic void launch_browser()\r\n\t{ \r\n\t\t\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C://TESTING TOOLS - SOFTWARES/chromedriver.exe\");\r\n\t\tWebDriver driver = new ChromeDriver();\r\n\t\tdriver.get(\"https://www.javatpoint.com/\");\r\n\t\t// remove all cookies\r\n\t\t//driver.manage().deleteAllCookies();\r\n\t\tdriver.manage().window().maximize();\r\n\t\t\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n WebDriverManager.chromedriver().setup();\n\n // create object for using selenium driver;\n WebDriver driver=new ChromeDriver();\n\n //open browser\n driver.get(\"http://amazon.com\");// bumu exlaydu\n //driver.get(\"http://google.com\");\n // open website\n System.out.println(driver.getTitle());\n\n\n\n\n }", "public void unsetBrowser()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(BROWSER$0, 0);\n }\n }", "public static void main(String[] args) {\nString browser=\"ff\";\nif (browser.equals(\"chrome\")) {\n\tWebDriverManager.chromedriver().setup();\n\t// System.setProperty(\"webdriver.chrome.driver\", \"/Users/user/Downloads/chromedriver\");\n\tdriver=new ChromeDriver();\n}\nelse if (browser.equals(\"ff\")) {\n\tWebDriverManager.firefoxdriver().setup();\n\tdriver=new FirefoxDriver();\n}\nelse\n\tif (browser.equals(\"IE\")) {\n\t\tWebDriverManager.iedriver().setup();\n\t\tdriver=new InternetExplorerDriver();\n\t}\n\telse\n\t\tif (browser.equals(\"opera\")) {\n\t\t\tWebDriverManager.operadriver().setup();\n\t\t\tdriver=new OperaDriver();\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"no defined driver\");\n\t\t}\n\n\ndriver.get(\"https://google.com\");\n\n\n\n\t\n\n\n\n\n\n\n\n\n\n\n\n\t}", "public Page() {\n driver = WebDriverFactory.getWebDriverAndHandleErrors();\n lastBrowserDimensions = originalBrowserDimensions = driver.manage().window().getSize();\n lastBrowserLocation = originalBrowserLocation = driver.manage().window().getPosition();\n this.setImplicitWait(10); // Set a 10 second wait before erroring out on not finding elements.\n }", "public static void setExternalWWWBrowser (HtmlBrowser.Factory brow) {\n setBrowser( PROP_EXTERNAL_WWWBROWSER, brow );\n }", "public static void main(String[] args) throws InterruptedException {\n\t\t\r\n\t\tSystem.setProperty(\"webdriver.ie.driver\", \"F:\\\\Training\\\\SeleniumSupport\\\\IEDriverServer.exe\");\r\n\t\tWebDriver driver = new InternetExplorerDriver();\r\n\r\n\t\t\r\n\t\t//WebDriver driver = new FirefoxDriver();\r\n\t\t//driver.get(\"https://www.google.co.in/\");\r\n\t\tdriver.navigate().to(\"https://www.google.co.in/\");\r\n\t\tThread.sleep(3000);\r\n\t\tdriver.close();\r\n\t\t//driver.quit();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public String openBrowser(String object, String data) throws IOException, InterruptedException {\r\n\t\tAPP_LOGS.debug(\"Browser Opening Method Start\");\r\n\t\tString os = System.getProperty(\"os.name\");\r\n\t\tRuntime.getRuntime().exec(\"taskkill /F /IM safari.exe\");\r\n//Runtime.getRuntime().exec(\"taskkill /F /IM chromedriver.exe\");\r\n\t\tRuntime.getRuntime().exec(\"taskkill /F /IM opera.exe\");\r\n\t\tif (CONFIG.getProperty(\"browserType\").contains(\",\")) {\r\n\t\t\tdata = currentBrowser;\r\n\t\t}\r\n\t\tif (os.contains(\"Windows\")) {\r\n\t\t\tif (data.equals(\"Mozilla\")) {\r\n\r\n\t\t\t\tAPP_LOGS.debug(\"Mozilla Browser Opening Method Start\");\r\n\t\t\t\t// Runtime.getRuntime().exec(\"taskkill /F /IM firefox.exe\");\r\n\t\t\t\tThread.sleep(10000);\r\n\t\t\t\tdriver = new FirefoxDriver();\r\n\t\t\t\tdriver.manage().window().maximize();\r\n\t\t\t} else if (data.equals(\"IE\")) {\r\n\t\t\t\tAPP_LOGS.debug(\"IE Browser Opening Method START\");\r\n\t\t\t\tRuntime.getRuntime().exec(\"taskkill /F /IM iexplore.exe\");\r\n\t\t\t\tSystem.setProperty(\"webdriver.ie.driver\", CONFIG.getProperty(\"IEDriver\"));\r\n\t\t\t\tdriver = new InternetExplorerDriver();\r\n\t\t\t\tdriver.manage().window().maximize();\r\n\t\t\t} else if (data.equals(\"Chrome\")) {\r\n\t\t\t\tAPP_LOGS.debug(\"Chrome Browser Opening Method Start\");\r\n\t\t\t\tDesiredCapabilities capability = DesiredCapabilities.chrome();\r\n\t\t\t\t// To Accept SSL certificate\r\n\t\t\t\tcapability.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);\r\n\r\n\t\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", CONFIG.getProperty(\"ChromeDriver\"));\r\n\t\t\t\tThread.sleep(10000);\r\n\r\n\t\t\t\tdriver = new ChromeDriver();\r\n\t\t\t\tdriver.manage().window().maximize();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tThread.sleep(2000);\r\n\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tAPP_LOGS.debug(\"Browser Opening Method End\");\r\n\t\t\t}\r\n\r\n\t\t\tlong implicitWaitTime = Long.parseLong(CONFIG.getProperty(\"implicitwait\"));\r\n\t\t\tdriver.manage().timeouts().implicitlyWait(implicitWaitTime, TimeUnit.SECONDS);\r\n\t\t\tdriver.manage().window().maximize();\r\n\t\t\treturn Constants.KEYWORD_PASS;\r\n\r\n\t\t}\r\n\t\treturn os;\r\n\t}", "public static void InvokeBrowser() {\n\t\tString currentDir = System.getProperty(\"user.dir\");\n\t\tSystem.out.println(\"Current Directory \"+currentDir);\n\t\tDesiredCapabilities capabilities = DesiredCapabilities.chrome();\n\t\tChromeOptions options = new ChromeOptions();\n\t\toptions.addArguments(\"--incognito\");\n\t\tcapabilities.setCapability(ChromeOptions.CAPABILITY, options);\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\n\t\t\t\tcurrentDir+\"/lib/chromedriver/36/chromedriver.exe\");\n\t\tdriver = new ChromeDriver(capabilities);\n\t\tdriver.manage().window().maximize();\n\t\t//driver.navigate().to(URL);\n\t\t//logger.info(\"URL to proceed with transaction --> \"+URL);\n\t\t/*BestBuyAddCart.addToCart();\n\t\tdriver.close();\n\t\tdriver.quit();*/\n\t}", "public static void main(String[] args) {\n\r\n\t\tWorkingwithfirefox wc = new Workingwithfirefox();\r\n\t\t\r\n\t\twc.invokeBroser();\r\n\t\twc.getTitleOfThePage();\r\n\t\twc.closeBrowser();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"F:\\\\Selenium\\\\chromedriver_win32\\\\chromedriver.exe\");\r\n\r\n\t\tWebDriver driver = new ChromeDriver();\r\n\t\t\r\n\t\tdriver.get(\"http://seleniumpractise.blogspot.com/2017/07/multiple-window-examples.html\");\r\n\t\t\t\r\n\t\tWebElement r =driver.findElement(By.cssSelector(\"#post-body-6170641642826198246 > a:nth-child(2)\"));\r\n\t\t//Storing the window id in parent (note getwindow can store only one window value i.e parent class window)\r\n\t\tString parent = driver.getWindowHandle();\r\n \t\t\tSystem.out.println(parent);\r\n \t\t\t\r\n\t\t\tr.click();\r\n \t\t// storing the multiple value of window id in array name called Set with data type String.\t\r\n \t\t\tSet<String> allclass = \tdriver.getWindowHandles();\r\n \t\t\tSystem.out.println(allclass);\r\n \t\t\t\r\n \t\t// Printing the no of window id present in Set in integer form\t\r\n \t\t\tint noofelement = allclass.size();\r\n \t\t\tSystem.out.println(noofelement);\r\n \t\t\r\n \t\t//below code proof us that still a new tab is open but the control is still in parent class i.e first class\r\n \t\t\t\r\n \t\t\tSystem.out.println(driver.getCurrentUrl());\r\n \t\t//\tdriver.findElement(By.className(\"gb_d\")).click(); // error noelementfound\r\n \t\t\t\r\n \t\t\tfor (String child : allclass) {\r\n\t\t\t\t\r\n \t\t\t\tif(! child.equals(parent)){\r\n \t\t\t\t\t\r\n \t\t\t\t\tdriver.switchTo().window(child);\r\n \t\t\t\t// now control is over the child class or new tab\r\n \t\t \t\t\tSystem.out.println(driver.getCurrentUrl()); // print google website\r\n \t\t\t\t}\r\n\t\t\t}\r\n \t\t\t\r\n \t\t\t\r\n \t\t//\tdriver.switchTo().window(parent);\r\n \t\t\tSystem.out.println(driver.getCurrentUrl()); // print selenium practise website\r\n \t\t\t\r\n \t\t\t\r\n \t\t\t\r\n \t\t\t\r\n \r\n\t}", "public static void main(String[] args) throws InterruptedException {\n\t\tString key=\"webdriver.gecko.driver\";\r\n\t\tString value=\".\\\\Drivers\\\\geckodriver.exe\";\r\n\t\tSystem.setProperty(key, value);\r\n\t\t\r\n\t\tWebDriver driver =new FirefoxDriver();\r\n\t\t\r\n\t\tdriver.get(\"https://www.naukri.com/\");\r\n\t\tThread.sleep(1000);\r\n\t\tSet<String> winhandls=driver.getWindowHandles();\r\n\t\t\r\n\t\tfor(String wh:winhandls)\r\n\t\t{\r\n\t\t\tSystem.out.println(wh);\r\n\t\t\tWebDriver win=driver.switchTo().window(wh);\r\n\t\t\twin.close();\r\n\t\t\t//System.out.println(win.getTitle());\r\n\t\t\t\r\n\t\t\t/*if((win.getTitle()).equals(\"Cognizant\"))\r\n\t\t\t{\r\n\t\t\t\tdriver.close();\r\n\t\t\t}\r\n\t\t\t*/\r\n\t\t}\r\n\t\t\r\n\t\t//driver.quit();\r\n\t\t\r\n\r\n\t}", "void displayBrowser(Context context, String urlString) {\n displayBrowser(context, urlString, true);\n }", "@BeforeClass\n\tpublic void initializebrowser() throws InterruptedException {\n\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", Chrome);\n\t\t// driver = new ChromeDriver(); \n\t\tChromeOptions options = new ChromeOptions();\n\t\toptions.addArguments(\"--disable-extensions\");\n\t\toptions.addArguments(\"test-type\");\n\t\toptions.addArguments(\"--disable-popup-blocking\");\n\t\tdriver = new ChromeDriver(options);\n\t\tdriver.manage().window().maximize();\n\t\tdriver.get(common.URL);\n\t\tThread.sleep(3000);\n\n\t\t\n\t\t/*DesiredCapabilities capabilities = DesiredCapabilities.internetExplorer();\n\t\t \n\t\t //Method and Description - void setCapability(java.lang.String capabilityName, boolean value)\n\t\t capabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS, true);\n\t\t \n\t\t //Among the facilities provided by the System class are standard input, standard output, and error output streams; access to externally defined \"properties\"; a means of loading files and libraries; and a utility method for quickly copying a portion of an array.\n\t\t System.setProperty(\"webdriver.ie.driver\", common.IE);\n\t\t \n\t\t //InternetExplorerDriver(Capabilities capabilities)\n\t\t WebDriver driver = new InternetExplorerDriver(capabilities);\n\t\t \n\t\t driver.manage().window().maximize();\n\t\t driver.get(common.URL);\n\t\t Thread.sleep(3000);*/\n\t\t\n\t}", "public static void setWWWBrowser (HtmlBrowser.Factory brow) {\n setBrowser( PROP_WWWBROWSER, brow );\n if( isExternal( brow ) ) {\n setExternalWWWBrowser(brow);\n }\n }", "@BeforeTest\n\tpublic void OpenBrowser() throws InterruptedException {\n\t\t\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\PSQA\\\\Desktop\\\\driver\\\\chromedriver.exe\");\n\t\tdriver = new ChromeDriver();\n\t\tdriver.get(\"https://www.booking.com/\");\n\t\n\t\t\n\t\tdriver.manage().window().maximize();\n\t\tThread.sleep(100);\n\t\t\n}", "public WebDriver launchBrowser(String browserName) {\n\n\t\tif (browserName.equals(\"chrome\")) {\n\t\t\t//System.setProperty(\"webdriver.chrome.driver\", \"/Users/naveenautomationlabs/Downloads/chromedriver\");\n\t\t\tWebDriverManager.chromedriver().setup();\n\t\t\tdriver = new ChromeDriver();\n\t\t} else if (browserName.equals(\"firefox\")) {\n\t\t\t//System.setProperty(\"webdriver.gecko.driver\", \"/Users/naveenautomationlabs/Downloads/geckodriver\");\n\t\t\tWebDriverManager.firefoxdriver().setup();\n\t\t\tdriver = new FirefoxDriver();\n\t\t} else if (browserName.equals(\"safari\")) {\n\t\t\tdriver = new SafariDriver();\n\t\t} else {\n\t\t\tSystem.out.println(\"please pass the correct browser....\");\n\t\t}\n\n\t\treturn driver;\n\t}", "public WebDriver getBrowserObject(BrowserType btype) throws Exception {\n\t\ttry {\n\t\t\tswitch(btype){\n\t\t\tcase Chrome:\n\t\t\t\tChromeBrowser chrome = ChromeBrowser.class.newInstance();\n\t\t\t\tChromeOptions chromeOptions = chrome.getChromeOptions();\n\t\t\t\treturn chrome.getChromeDriver(chromeOptions);\n\t\t\tcase FireFox:\n\t\t\t\tFirefoxBrowser ff = FirefoxBrowser.class.newInstance();\n\t\t\t\tFirefoxOptions ffOptions = ff.getFirefoxOptions();\n\t\t\t\treturn ff.getFirefoxDriver(ffOptions);\n\t\t\t\t\n\t\t\tcase Iexplorer:\n\t\t\t\tIExploreBrowser ie = IExploreBrowser.class.newInstance();\n\t\t\t\tInternetExplorerOptions ieoptions = ie.getIExplorerCapabilities();\n\t\t\t\treturn ie.getIExplorerDriver(ieoptions);\n\t\t\t\n\t\t\tdefault:\n\t\t\t\tthrow new Exception(\"Driver not found \"+btype.name());\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\tlog.info(e.getMessage());\n\t\t\tthrow e;\n\t\t}\n\t}" ]
[ "0.6673413", "0.65668213", "0.6418155", "0.63792825", "0.63383096", "0.63337356", "0.6191489", "0.6191399", "0.6177138", "0.61727756", "0.6142977", "0.6136361", "0.61259216", "0.61223155", "0.6114998", "0.6109909", "0.6108326", "0.6102668", "0.6074006", "0.6028875", "0.6027368", "0.6025007", "0.6018919", "0.6014063", "0.6007292", "0.5969247", "0.5962921", "0.5909803", "0.590563", "0.5898105", "0.58875436", "0.5883735", "0.5853408", "0.585085", "0.58479905", "0.58354986", "0.583228", "0.5831008", "0.5825742", "0.58040094", "0.57969433", "0.57950467", "0.5780635", "0.57760274", "0.5773489", "0.5772996", "0.576487", "0.57628083", "0.5757688", "0.5756423", "0.5735835", "0.5735075", "0.57350343", "0.5727928", "0.5724429", "0.5715838", "0.5707349", "0.5707094", "0.5695703", "0.569408", "0.56927985", "0.56837946", "0.568246", "0.56764627", "0.5667946", "0.5662993", "0.5650161", "0.5646873", "0.5646551", "0.56419027", "0.5638797", "0.5625338", "0.5623602", "0.5620663", "0.561859", "0.5618538", "0.5611959", "0.5610113", "0.5605308", "0.5602555", "0.5601936", "0.559966", "0.55956995", "0.5587062", "0.5585386", "0.55823135", "0.5579362", "0.55783415", "0.55682635", "0.5555735", "0.55450714", "0.55392104", "0.5536433", "0.55310667", "0.5528565", "0.5528292", "0.55278754", "0.5518531", "0.5509971", "0.55009323", "0.5498623" ]
0.0
-1
htmlBrowser: with specific test context and state. .class : Html.HtmlBrowser .browserName : MS Internet Explorer .processName : iexplore.exe
protected BrowserTestObject iE(TestObject anchor, long flags) { return new BrowserTestObject( getMappedTestObject("iE"), anchor, flags); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@BeforeTest\r\n\tpublic void operBrowser(){\n\t\td1=Driver.getBrowser();\r\n\t\tWebDriverCommonLib wlib=new WebDriverCommonLib();\r\n\t\td1.get(Constant.url);\r\n\t\twlib.maximizeBrowse();\r\n\t\twlib.WaitPageToLoad();\r\n\t}", "private static WebDriver newHtmlUnitDiver() {\n\t\tcapabilities = new DesiredCapabilities().htmlUnit();\n\t\tcapabilities.setBrowserName(\"HtmlUnit\");\n\t\tsetCommonCapabilities();\n\n//\t\treturn new HtmlUnitDriver(capabilities);\n\t\treturn new HtmlUnitDriver(true);\n\t}", "public static void main(String[] args)\n\t{\n WebDriver driver = new HtmlUnitDriver();\n\n // And now use this to visit Google\n driver.get(\"http://www.google.com/\"); \n System.out.println(\"Page title is: \" + driver.getTitle()); \n\t}", "public static void main(String[] args) throws InterruptedException {\n WebDriverManager.chromedriver().setup();\n ChromeDriver driver = new ChromeDriver(); // ChromeDriver is a reference type\n //RemoteWebDriver driver = new SafariDriver();\n //RemoteWebDriver driver = new ChromeDriver();\n //RemoteWebDriver driver = new InternetExplorerDriver(); //RemoteWebDriver is the parent of webdrivers\n //They all inherited RemoteWebDriver. It is called polymorphism\n\n //In selenium, everything starts from Webdriver interface\n //If I want to open a web page I just call this driver and I use methods from the driver\n //here we used get() method. Every single script always start with get() method.\n //It is like key to open the door. Get will open website first\n driver.get(\"http://google.com\");\n driver.manage().window().maximize(); //to maximize the browser\n //driver.manage().window().fullscreen();\n\n Thread.sleep(3000); //for demo, wait 3 seconds. If you use this add throws declaration. This is why we used throws InterruptedException\n\n //method that returns page title. You can also see it as tab name, in the browser\n String title = driver.getTitle(); //returns <title>Some title</title> text. It is actual title\n String expectedTitle = \"Google\"; //It is expected title\n System.out.println(\"Title is...\"+ title);\n\n if (expectedTitle.equalsIgnoreCase(title)){ //expected title is equal to actual title\n System.out.println(\"TEST PASSED!\");\n }else {\n System.out.println(\"TEST FAILED\");\n }\n\n //go to another website within the same window\n driver.navigate().to(\"http://amazon.com\");\n //amazon has long title so we just used contain method not equals\n if (driver.getTitle().toLowerCase().contains(\"amazon\")){\n System.out.println(\"TEST PASSED!\");\n }else {\n System.out.println(\"TEST FAILED!\");\n }\n\n //comeback to google. Instead of writing if statement,line 32, we can write this method\n driver.navigate().back();\n Thread.sleep(3000); //adding 3 sec between the navigating Google to Amazon\n verifyEquals(driver.getTitle(), \"Google\"); //calling verifyEquals method, line 55, checking if page title is equals to Google\n\n //move forward in the browser history, again going to amazon\n driver.navigate().forward();\n Thread.sleep(3000);\n\n System.out.println(\"Title: \"+driver.getTitle()); //Title is a String\n System.out.println(\"URL: \"+ driver.getCurrentUrl()); // to get URL, URL is a String\n\n driver.navigate().refresh(); //to reload page\n Thread.sleep(3000);\n //must be at the end\n driver.close(); //to close browser\n }", "void browserMethod();", "public interface WebBrowser {\r\n}", "@Test\n\t@BeforeSuite\n\tpublic void OpenBrowser() throws InterruptedException {\n\t\t\n\t\tdriver = new FirefoxDriver();\n\t\tdriver.get(\"https://www.gmail.com\");\n\t\tmanageInit();\n\t\n\t}", "public static void executeBrowser() throws Exception{\n\t\tinvokeMyBrowser();\n\t}", "public void openIe(){\n\n }", "@Test\n public void basicHTMLUnitDriverBrowserVersion(){\n\n // changed to BrowserVersion.FIREFOX_38 from BrowserVersion.FIREFOX_24\n // when upgrading to WebDriver 2.46.0\n // changed to BrowserVersion.FIREFOX_24 from BrowserVersion.FIREFOX_3_6\n // when upgrading to WebDriver 2.42.2, if you are using a version below this\n // then change it back to FIREFOX_3_6\n WebDriver htmlunit = new HtmlUnitDriver(BrowserVersion.FIREFOX_52);\n\n htmlunit.get(\"http://www.compendiumdev.co.uk/selenium/basic_html_form.html\");\n\n assertThat(htmlunit.getTitle(), is(\"HTML Form Elements\"));\n\n htmlunit.quit();\n }", "String getBrowser();", "@BeforeClass\n\tpublic void initializebrowser() throws InterruptedException {\n\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", Chrome);\n\t\t// driver = new ChromeDriver(); \n\t\tChromeOptions options = new ChromeOptions();\n\t\toptions.addArguments(\"--disable-extensions\");\n\t\toptions.addArguments(\"test-type\");\n\t\toptions.addArguments(\"--disable-popup-blocking\");\n\t\tdriver = new ChromeDriver(options);\n\t\tdriver.manage().window().maximize();\n\t\tdriver.get(common.URL);\n\t\tThread.sleep(3000);\n\n\t\t\n\t\t/*DesiredCapabilities capabilities = DesiredCapabilities.internetExplorer();\n\t\t \n\t\t //Method and Description - void setCapability(java.lang.String capabilityName, boolean value)\n\t\t capabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS, true);\n\t\t \n\t\t //Among the facilities provided by the System class are standard input, standard output, and error output streams; access to externally defined \"properties\"; a means of loading files and libraries; and a utility method for quickly copying a portion of an array.\n\t\t System.setProperty(\"webdriver.ie.driver\", common.IE);\n\t\t \n\t\t //InternetExplorerDriver(Capabilities capabilities)\n\t\t WebDriver driver = new InternetExplorerDriver(capabilities);\n\t\t \n\t\t driver.manage().window().maximize();\n\t\t driver.get(common.URL);\n\t\t Thread.sleep(3000);*/\n\t\t\n\t}", "@BeforeTest\n\tpublic void OpenBrowser() throws InterruptedException {\n\t\t\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\PSQA\\\\Desktop\\\\driver\\\\chromedriver.exe\");\n\t\tdriver = new ChromeDriver();\n\t\tdriver.get(\"https://www.booking.com/\");\n\t\n\t\t\n\t\tdriver.manage().window().maximize();\n\t\tThread.sleep(100);\n\t\t\n}", "protected void openInNewBrowser(SelectEvent event, String url)\n {\n try\n {\n BrowserOpener.browse(new URL(url));\n event.consume();\n }\n catch (Exception e)\n {\n String message = Logging.getMessage(\"generic.ExceptionAttemptingToInvokeWebBrower\", url);\n Logging.logger().warning(message);\n }\n }", "private void setIEDriver() throws Exception {\n\t\tcapabilities = DesiredCapabilities.internetExplorer();\n\t\t// capabilities.setCapability(\"ignoreProtectedModeSettings\", true);\n\t\t// capabilities.setCapability(\"ignoreZoomSetting\", true);\n\t\t// capabilities.setCapability(InternetExplorerDriver.IE_ENSURE_CLEAN_SESSION,\n\t\t// true);\n\t\tcapabilities.setJavascriptEnabled(true);\n\n\t\tInternetExplorerOptions ieOptions = new InternetExplorerOptions();\n\t\tieOptions.destructivelyEnsureCleanSession();\n\t\tieOptions.ignoreZoomSettings();\n\t\tieOptions.setCapability(\"ignoreProtectedModeSettings\", true);\n\t\tieOptions.merge(capabilities);\n\n\t\tWebDriver myDriver = null;\n\t\tRemoteWebDriver rcDriver;\n\n\t\tswitch (runLocation.toLowerCase()) {\n\t\tcase \"local\":\n\t\t\tSystem.setProperty(\"webdriver.ie.driver\", ieDriverLocation);\n\t\t\tmyDriver = new InternetExplorerDriver(ieOptions);\n\t\t\tbreak;\n\t\tcase \"grid\":\n\t\t\trcDriver = new RemoteWebDriver(new URL(serverURL), capabilities);\n\t\t\trcDriver.setFileDetector(new LocalFileDetector());\n\t\t\tmyDriver = new Augmenter().augment(rcDriver);\n\t\t\tbreak;\n\t\tcase \"testingbot\":\n\t\t\tif (browserVersion.isEmpty()) {\n\t\t\t\tbrowserVersion = defaultIEVersion;\n\t\t\t}\n\t\t\tif (platformOS.isEmpty()) {\n\t\t\t\tplatformOS = defaultPlatformOS;\n\t\t\t}\n\t\t\tcapabilities.setCapability(\"browserName\", browser);\n\t\t\tcapabilities.setCapability(\"version\", browserVersion);\n\t\t\tcapabilities.setCapability(\"platform\", platformOS);\n\t\t\t// capabilities.setCapability(\"name\", testName); // TODO: set a test\n\t\t\t// name (suite name maybe) or combined with env\n\t\t\trcDriver = new RemoteWebDriver(new URL(serverURL), capabilities);\n\t\t\trcDriver.setFileDetector(new LocalFileDetector());\n\t\t\tmyDriver = new Augmenter().augment(rcDriver);\n\t\t\tbreak;\n\t\tcase \"smartbear\":\n\t\t\tif (browserVersion.isEmpty()) {\n\t\t\t\tbrowserVersion = defaultIEVersion;\n\t\t\t}\n\t\t\tif (platformOS.isEmpty()) {\n\t\t\t\tplatformOS = defaultPlatformOS;\n\t\t\t}\n\t\t\t//capabilities.setCapability(\"name\", testMethod.get());\n\t\t\tcapabilities.setCapability(\"build\", testProperties.getString(TEST_ENV)+\" IE-\"+platformOS);\n\t\t\tcapabilities.setCapability(\"max_duration\", smartBearDefaultTimeout);\n\t\t\tcapabilities.setCapability(\"browserName\", browser);\n\t\t\tcapabilities.setCapability(\"version\", browserVersion);\n\t\t\tcapabilities.setCapability(\"platform\", platformOS);\n\t\t\tcapabilities.setCapability(\"screenResolution\", smartBearScreenRes);\n\t\t\tcapabilities.setCapability(\"record_video\", \"true\"); Reporter.log(\n\t\t\t\t\t \"BROWSER: \" + browser, true); Reporter.log(\"BROWSER Version: \" +\n\t\t\t\t\t\t\t browserVersion, true); Reporter.log(\"PLATFORM: \" + platformOS, true);\n\t\t\tReporter.log(\"URL '\" + serverURL + \"'\", true); rcDriver = new\n\t\t\tRemoteWebDriver(new URL(serverURL), capabilities); myDriver = new\n\t\t\tAugmenter().augment(rcDriver);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.setProperty(\"webdriver.ie.driver\", ieDriverLocation);\n\t\t\tmyDriver = new InternetExplorerDriver(ieOptions);\n\t\t\tbreak;\n\t\t}\n\t\tdriver.set(myDriver);\n\t}", "private static void exerciseBrowser(RTCRepositoryBrowser browser) throws Exception {\n\t\tRTCChangeLogSet changeLogSet = setupChangeLogSet();\n\t\t\n\t\tassertEquals(null, browser.getBaselineSetLink(changeLogSet));\n\t\t\n\t\tRTCChangeLogComponentEntry componentEntry = changeLogSet.getComponentChanges().get(0);\n\t\tRTCChangeLogChangeSetEntry changeSetEntry = changeLogSet.getChangeSetsAccepted(COMPONENT_ITEMID).get(0);\n\t\tWorkItemDesc workItem = changeSetEntry.getWorkItem();\n\t\tChangeDesc change = changeSetEntry.getAffectedVersionables().get(0);\n\t\t\n\t\tassertEquals(null , browser.getWorkItemLink(workItem));\n\t\tassertEquals(null, browser.getChangeSetLink(changeSetEntry));\n\t\tassertEquals(null, browser.getChangeSetLink(componentEntry));\n\t\tassertEquals(null, browser.getVersionableStateLink(changeSetEntry, change));\n\t}", "public interface DevTemplate {\n\t\n\tString name=\"selenium\";\n\t// these features have to implemented for chrome browser, FF browser and IE browser\n\tvoid browserMethod();\n\tvoid OpenURL();\n\tvoid senddata();\n\tvoid click();\n\tvoid getattribute();\n\n}", "public static void chromeTest() throws Exception{\n driver = BrowserFactory.getDriver(\"chrome\");\n Thread.sleep(2000);\n\n driver.get(\"http://google.com\");\n Thread.sleep(3000);\n String title = driver.getTitle();\n driver.navigate().to(\"https://etsy.com\");\n Thread.sleep(2000);\n String title2 = driver.getTitle();\n driver.navigate().back();\n title = driver.getTitle();\n Thread.sleep(2000);\n driver.navigate().to(\"https://etsy.com\");\n title2 = driver.getTitle();\n driver.quit();\n }", "BrowserStack getBrowserStackInst();", "public BrowserInfo getBrowserInfo() {\n return browserInfo;\n }", "@Parameters({ \"driver\" })\n\n\t@Test\n\t// Creation of second scenario for 'Web view interaction'on selendroid app\n\n\tpublic void WebViewInteraction() throws Exception {\n\t\tWebElement element;\n\t\t// click on Icon to fill Web Interaction details\n\t\telement = driver.findElement(By.id(\"io.selendroid.testapp:id/buttonStartWebview\"));\n\t\telement.click();\n\n\t\t// select Webdriver Test file\n\t\telement = driver.findElement(By.id(\"io.selendroid.testapp:id/spinner_webdriver_test_data\"));\n\t\telement.click();\n\n\t\telement = driver.findElement(By.id(\"android:id/text1\"));\n\t\telement.click();\n\n\t\t// Enter name\n\t\telement = driver.findElement(By.xpath(\"//*[@content-desc ='Enter your name here!']\"));\n\t\telement.click();\n\t\telement.clear();\n\t\telement.sendKeys(\"Rahul\");\n\t\n\n\t\t// Select preferred card\n\t\telement = driver.findElement(By.xpath(\"//*[@content-desc = 'Volvo']\"));\n\t\telement.click();\n\n\t\telement = driver.findElement(By.id(\"android:id/text1\"));\n\t\telement.click();\n\n\t\t// Send name to view the details\n\t\telement = driver.findElement(By.xpath(\"//*[@content-desc = 'Send me your name!']\"));\n\t\telement.click();\n\n\t}", "public static WebDriver ie()\r\n\t{\r\n\t\tSystem.setProperty(\"webdriver.ie.driver\",System.getProperty(\"user.dir\")+\"\\\\IE\\\\IEDriverServer.exe\");\r\n\t\tgk = new InternetExplorerDriver();\r\n\t\treturn gk;\r\n\t}", "public static void openBrowser() {\r\n\t\tString browser = prop.getProperty(\"browserType\").toLowerCase();\r\n\r\n\t\ttry {\r\n\t\t\tif (browser.equals(\"chrome\")) {\r\n\t\t\t\tSystem.setProperty(prop.getProperty(\"chromeName\"), prop.getProperty(\"chromePath\"));\r\n\t\t\t\tdriver = new ChromeDriver();\r\n\r\n\t\t\t} else if (browser.equals(\"ff\")) {\r\n\t\t\t\tSystem.setProperty(prop.getProperty(\"FFName\"), prop.getProperty(\"FFPath\"));\r\n\t\t\t\tdriver = new FirefoxDriver();\r\n\r\n\t\t\t} else if (browser.equals(\"ie\")) {\r\n\t\t\t\tSystem.setProperty(prop.getProperty(\"IEName\"), prop.getProperty(\"IEPath\"));\r\n\t\t\t\tdriver = new InternetExplorerDriver();\r\n\r\n\t\t\t} else {\r\n\t\t\t\tAssert.fail(\"Unable to find browser, Check EnvrionrmentData.properties file\");\r\n\t\t\t}\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tAssert.fail(\"Unable to find browser, Check EnvrionrmentData.properties file\");\r\n\t\t}\r\n\t}", "@Given(\"^user should launch the browser$\")\n\tpublic void user_should_launch_the_browser() throws Throwable {\n\t\tgetUrl(\"https://adactin.com/HotelAppBuild2/\");\n\t \n\t}", "@Test \n public void executSessionOne(){\n\t System.out.println(\"open the browser: chrome\");\n final String CHROME_DRIVER_DIRECTORY = System.getProperty(\"user.dir\") + \"/src/test/java/BrowserDrivers/chromedriver.exe\";\n System.setProperty(\"webdriver.chrome.driver\", CHROME_DRIVER_DIRECTORY);\n final WebDriver driver = new ChromeDriver();\n //Goto guru99 site\n driver.get(\"http://demo.guru99.com/V4/\");\n //find user name text box and fill it\n driver.quit();\n }", "void setBrowser(String browser);", "@Parameters({ \"browser\", \"appUrl\" })\n\t @BeforeTest\n\n\t public WebDriver openBrowser(String browser, String appUrl) throws MalformedURLException {\n\t\t \n\t\t String os = System.getProperty(\"os.name\").toLowerCase();\n\n\t\t try {\n\t\t if (browser.equalsIgnoreCase(\"firefox\")) {\n\t\t \t System.setProperty(\"webdriver.gecko.driver\",gecko_driver_linux);\n\t\t \tFirefoxProfile fprofile = new FirefoxProfile();\n\t\t fprofile.setAcceptUntrustedCertificates(true); \n\t\t fprofile.setAssumeUntrustedCertificateIssuer(false);\n\t\t \n\t\t \n\t\t // Pass fprofile parameter In webdriver to use preferences to download\n\t\t // file.\n\t\t\t\t\t\tSystem.setProperty(\"webdriver.gecko.driver\", \"/usr/bin/geckodriver\");\n\t\t driver = new FirefoxDriver();\n\t\t \n\n\t\t } else if (browser.equalsIgnoreCase(\"chrome\")) {\n\t\t System.setProperty(\"webdriver.chrome.driver\", chrome_driver);\n\t\t driver = new ChromeDriver();\n\t\t \n\t\t } else if (browser.equalsIgnoreCase(\"safari\")){\n\t\t \t driver = new SafariDriver();\n\t\t \t \n\t\t \n\t\t \n\t\t }else if (browser.equalsIgnoreCase(\"ie\")) {\n\t\t System.setProperty(\"webdriver.ie.driver\", ie_driver);\n\t\t driver = new InternetExplorerDriver();\n\t\t \n\t\t }\n\t\t driver.manage().window().maximize();\n\t\t driver.get(appUrl);\n\t\t return driver;\n\t\t \n\t\t \n\t\t } catch (Exception e) {\n\t\t e.getMessage();\n\t\t }\n\t\t return driver;\t \n\t\t \n\t }", "@Test \n public void executeSessionTwo(){\n System.out.println(\"open the browser: FIREFOX \");\n final String GECKO_DRIVER_DIRECTORY = System.getProperty(\"user.dir\") + \"/src/test/java/BrowserDrivers/geckodriver.exe\";\n System.setProperty(\"webdriver.gecko.driver\", GECKO_DRIVER_DIRECTORY);\n final WebDriver driver = new FirefoxDriver();\n //Goto guru99 site\n driver.get(\"http://demo.guru99.com/V4/\");\n //find user name text box and fill it\n driver.quit();\n }", "@BeforeTest\n\tpublic void LaunchBrowser() {\n\t\t driver = init(\"URL_JQuery\");\n\t\t// driver.get(\"https://jqueryui.com/autocomplete/\");\n\t\t driver.switchTo().frame(0);\n\t\t jq = new JQueryAutocompletePage(driver);\n\t\t \n\t}", "@Parameters(\"browser\")\n\t@BeforeMethod\n\tpublic void launchBrowser(String browser) throws InterruptedException{\n\t\tif(browser.equalsIgnoreCase(\"firefox\")) {\n\t\t\t \n\t\t\t driver = new FirefoxDriver();\n\t\t \n\t\t // If browser is IE, then do this\t \n\t\t \n\t\t }else if (browser.equalsIgnoreCase(\"ie\")) { \n\t\t \n\t\t\t // Here I am setting up the path for my IEDriver\n\t\t \n\t\t\t System.setProperty(\"webdriver.ie.driver\", \"C://Users//sudt//Downloads//IEDriverServer_x64_2.53.1//IEDriverServer (2).exe\");\n\t\t \n\t\t\t driver = new InternetExplorerDriver();\n\t\t \n\t\t } \n\t\t else if (browser.equalsIgnoreCase(\"chrome\")){\n\t\t\t System.setProperty(\"webdriver.chrome.driver\", \"C://Users//sudt//Downloads//chromedriver_win32//chromedriver.exe\");\n\t\t\t driver = new ChromeDriver();\n\t\t }\n\t\t else {\n throw new IllegalArgumentException(\"The Browser Type is Undefined\");\n }\n\n\t\tdriver.get(\"https://www.xero.com/us/\");\n\t\tdriver.manage().window().maximize();\n\t\n\t\n\t}", "@BeforeTest //special type of testng method which alway run before.\r\n\t\t\tpublic void openBrowser() {\r\n\t\t\t\tWebDriverManager.chromedriver().setup();\r\n\t\t\t\tdriver = new ChromeDriver();\r\n\t\t\t\tdriver.get(\"https://locator.chase.com/\");\r\n\t\t\t}", "@Test \n public void executSessionThree(){\n System.out.println(\"open the browser: chrome III\");\n final String CHROME_DRIVER_DIRECTORY = System.getProperty(\"user.dir\") + \"/src/test/java/BrowserDrivers/chromedriver.exe\";\n System.setProperty(\"webdriver.chrome.driver\", CHROME_DRIVER_DIRECTORY);\n final WebDriver driver = new ChromeDriver();\n //Goto guru99 site\n driver.get(\"http://demo.guru99.com/V4/\");\n //find user name text box and fill it\n driver.quit();\n }", "@Test\r\n\tpublic void launch_browser()\r\n\t{ \r\n\t\t\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C://TESTING TOOLS - SOFTWARES/chromedriver.exe\");\r\n\t\tWebDriver driver = new ChromeDriver();\r\n\t\tdriver.get(\"https://www.javatpoint.com/\");\r\n\t\t// remove all cookies\r\n\t\t//driver.manage().deleteAllCookies();\r\n\t\tdriver.manage().window().maximize();\r\n\t\t\r\n\t\t\r\n\t}", "public static void InvokeBrowser() {\n\t\tString currentDir = System.getProperty(\"user.dir\");\n\t\tSystem.out.println(\"Current Directory \"+currentDir);\n\t\tDesiredCapabilities capabilities = DesiredCapabilities.chrome();\n\t\tChromeOptions options = new ChromeOptions();\n\t\toptions.addArguments(\"--incognito\");\n\t\tcapabilities.setCapability(ChromeOptions.CAPABILITY, options);\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\n\t\t\t\tcurrentDir+\"/lib/chromedriver/36/chromedriver.exe\");\n\t\tdriver = new ChromeDriver(capabilities);\n\t\tdriver.manage().window().maximize();\n\t\t//driver.navigate().to(URL);\n\t\t//logger.info(\"URL to proceed with transaction --> \"+URL);\n\t\t/*BestBuyAddCart.addToCart();\n\t\tdriver.close();\n\t\tdriver.quit();*/\n\t}", "public static void main(String[] args) {\n\n\n WebDriver driver = WebDriverFactory.getDriver(\"CHROME\");\n driver.get(\"http://google.com\");\n driver.navigate().to(\"https://amazon.com\");\n driver.navigate().back();\n\n driver.close();\n\n WebDriver driver2 = WebDriverFactory.getDriver(\"FIREFOX\");\n driver2.get(\"https://www.mozilla.org\");\n\n\n driver2.close();\n }", "public Browser getBrowser() {\n return browser;\n }", "@Test\n public void testBrowser() {\n driver.get(BASE_URL);\n assertEquals(\"My AngularJS App\", driver.getTitle());\n }", "private WebDriver startWebDriver(String browser) {\n\t\tString msg = \">>> DRIVER : %s TestCase %s\";\n\t\tif (driver == null) {\n\t\t\t// driver is not started so we start it\n\t\t\tdriver = BrowserFactory.create(BROWSERS.valueOf(browser));\n\n\t\t\tif (driver != null)\n\t\t\t\tSystem.out.println(String.format(msg, driver.getWindowHandle(), this));\n\t\t}\n\t\treturn driver;\n\t}", "public WebDriver createWebDriverInstance(String Browser) throws MalformedURLException\n\t{\n\t\tif(d==null && Browser.equals(\"Firefox\"))\n\t\t{\n\n\t\t\td = new FirefoxDriver();\n\t\t\tlogger.info(\"--FireFox Browser has opened \");\n\t\t}\n\n\t\telse if(d==null && Browser.equals(\"Chrome\"))\n\t\t{\n\t\t\tChromeOptions options = new ChromeOptions();\n\t\t\toptions.addArguments(\"start-maximized\");\n\t\t\tDesiredCapabilities capabilities = new DesiredCapabilities(DesiredCapabilities.chrome());\n\t\t\tcapabilities.setCapability (CapabilityType.ACCEPT_SSL_CERTS, true);\n\t\t\tcapabilities.setCapability (ChromeOptions.CAPABILITY,options);\n\t\t\tChromeDriverManager.getInstance().setup();\n\t\t\t\n\t\t\t//Don't Remember Passwords by default\n\t\t\tMap<String, Object> prefs = new HashMap<String, Object>();\n\t\t\tprefs.put(\"credentials_enable_service\", false);\n\t\t\tprefs.put(\"profile.password_manager_enabled\", false);\n\t\t\toptions.setExperimentalOption(\"prefs\", prefs);\n\t\t\t/*\n\t\t\tString path =System.getProperty(\"user.dir\")+File.separator+\"chromedriver.exe\";\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", path);\n\t\t\tChromeOptions options = new ChromeOptions();\n\t\t\tDesiredCapabilities caps = DesiredCapabilities.chrome();*/\n\t\t\td = new ChromeDriver(capabilities);\n\t\t\tlogger.info(\"--Chrome Browser has opened \");\n\t\t}\n\n\t\telse if (d==null && Browser.equals(\"IE\"))\n\t\t{\n\t\t\tString path =\"binary/IEDriverServer.exe\";\n\t\t\tSystem.setProperty(\"webdriver.ie.driver\", path);\n\t\t\tlogger.info(\"--IEDriver has setup\");\n\t\t\tDesiredCapabilities caps = DesiredCapabilities.internetExplorer();\n\t\t\tcaps.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,true);\n\t\t\tcaps.setCapability(\"requireWindowFocus\", true);\n\t\t\tcaps.setCapability(\"enablePersistentHover\", true);\n\t\t\tcaps.setCapability(\"native events\", true);\n\t\t\td = new InternetExplorerDriver(caps);\n\t\t\tlogger.info(\"--IE Browser has opened \");\n\t\t}\n\t\telse if (d==null && Browser.equals(\"IE32bit\"))\n\t\t{\n\t\t\tString path =\"binary/IEDriverServer_32bit.exe\";\n\t\t\tSystem.setProperty(\"webdriver.ie.driver\", path);\n\t\t\tlogger.info(\"--IEDriver has setup\");\n\t\t\tDesiredCapabilities caps = DesiredCapabilities.internetExplorer();\n\t\t\tcaps.setCapability(\n\t\t\t\t\tInternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,\n\t\t\t\t\ttrue);\n\t\t\tcaps.setCapability(\"requireWindowFocus\", true);\n\t\t\tcaps.setCapability(\"enablePersistentHover\", false);\n\t\t\tcaps.setCapability(\"native events\", true);\n\t\t\td = new InternetExplorerDriver(caps);\n\t\t\tlogger.info(\"--IE Browser has opened \");\n\t\t}\n\t\treturn d;\n\n\n\t}", "protected GuiTestObject html_main() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"html_main\"));\n\t}", "@Given(\"^I go to \\\"([^\\\"]*)\\\" on \\\"([^\\\"]*)\\\"$\") \n\tpublic void openWebPage(String url, String browser){\n\t\tString result = selenium.openBrowser(browser);\n\t\tAssert.assertEquals(selenium.result_pass, result);\n\t\tString result2 = selenium.navigate(url);\n\t\tAssert.assertEquals(selenium.result_pass, result2);\n\t}", "public void initiateBrowser(String browser) {\n\t\tString os = System.getProperty(\"os.name\").toLowerCase();\n\t\tString current_dir = System.getProperty(\"user.dir\");\n\t\tSystem.out.println(os);\n\t\tSystem.out.println(current_dir);\n\t\tswitch (browser) {\n\t\tcase \"ie\":\n\t\t\tSystem.setProperty(\"webdriver.ie.driver\", current_dir + \"/drivers/IEDriverServer.exe\");\n\t\t\tdriver = new InternetExplorerDriver();\n\t\t\tbreak;\n\t\tcase \"chrome\":\n\t\t\tChromeOptions options = new ChromeOptions();\n\t\t\tif (os.contains(\"linux\")) {\n\t\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", current_dir + \"/drivers/linuxdrivers/chromedriver\");\n\t\t\t\tDesiredCapabilities caps = DesiredCapabilities.chrome();\n\t\t\t\tLoggingPreferences logPrefs = new LoggingPreferences();\n\t\t\t\tlogPrefs.enable(LogType.BROWSER, Level.ALL);\n\t\t\t\tcaps.setCapability(CapabilityType.LOGGING_PREFS, logPrefs);\n\n\t\t\t\toptions.setBinary(\"/usr/bin/google-chrome\");\n\t\t\t\toptions.addArguments(\"--headless\");\n\t\t\t} else if (os.contains(\"windows\")) {\n\t\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", current_dir + \"/drivers/chromedriver.exe\");\n\t\t\t\tDesiredCapabilities caps = DesiredCapabilities.chrome();\n\t\t\t\tLoggingPreferences logPrefs = new LoggingPreferences();\n\t\t\t\tlogPrefs.enable(LogType.BROWSER, Level.ALL);\n\t\t\t\tcaps.setCapability(CapabilityType.LOGGING_PREFS, logPrefs);\n\t\t\t}\n\t\t\toptions.addArguments(\"test-type\");\n\t\t\toptions.addArguments(\"disable-popup-blocking\");\n\t\t\tdriver = new ChromeDriver(options);\n\n\t\t\tdriver.manage().window().maximize();\n\t\t\tbreak;\n\t\tcase \"firefox\":\n\t\t\tdriver = new FirefoxDriver();\n\t\t\tbreak;\n\t\t}\n\t\tdriver.manage().window().maximize();\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\n\t}", "public static void main(String[] args) {\n WebDriverManager.chromedriver().setup();\n\n // create object for using selenium driver;\n WebDriver driver=new ChromeDriver();\n\n //open browser\n driver.get(\"http://amazon.com\");// bumu exlaydu\n //driver.get(\"http://google.com\");\n // open website\n System.out.println(driver.getTitle());\n\n\n\n\n }", "@BeforeTest\r\n\tpublic void launch()\r\n\t{\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Yogini\\\\chromedriver\\\\chromedriver.exe\"); //location of browser in local drive\r\n\t\tWebDriver driver = new ChromeDriver(); \r\n\t\tdriver.get(tobj.url);\r\n\t\tSystem.out.println(\"Before test, browser is launched\");\r\n\t}", "@Test\n\tpublic void ieOptions()\t{\n\t\tSystem.setProperty(InternetExplorerDriverService.IE_DRIVER_LOGLEVEL_PROPERTY,\"INFO\"); \n\t\t//System.setProperty(InternetExplorerDriverService.IE_DRIVER_LOGLEVEL_PROPERTY,\"FATAL\"); \n\t\t//System.setProperty(InternetExplorerDriverService.IE_DRIVER_LOGLEVEL_PROPERTY,\"ERROR\"); \n\t\tSystem.setProperty(InternetExplorerDriverService.IE_DRIVER_LOGFILE_PROPERTY, \"D:\\\\IE.log\");\n\t // System.setProperty(InternetExplorerDriverService.IE_DRIVER_SILENT_PROPERTY, \"true\");\n\t\tInternetExplorerOptions options = new InternetExplorerOptions();\n\t\t//options.setPageLoadStrategy(\"\");\n\t\tSystem.setProperty(InternetExplorerDriverService.IE_DRIVER_EXE_PROPERTY, \"D:\\\\Selenium Drivers\\\\IEDriverServer.exe\");\n\t\tDesiredCapabilities cap = new DesiredCapabilities();\n\t\t// Enable proxy but will enable in system settings\n/*\n\t\tString PROXY = \"83.209.94.89:44557\";\n\t Proxy proxy = new Proxy();\n\t proxy.setAutodetect(false);\n\t proxy.setProxyType(Proxy.ProxyType.MANUAL);\n\t proxy.setSocksProxy(PROXY);\n\t cap.setCapability(CapabilityType.PROXY, proxy);\n\t\t options.merge(cap);\n*/\t\t\n\t\t\n\t\tWebDriver driver = new InternetExplorerDriver(options);\n \tdriver.get(\"https://192.163.254.17/\");\n \t// Get rid of https allow page - standard code\n\t\tdriver.get(\"javascript:document.getElementById('overridelink').click();\");\n\t}", "@Before\n public synchronized static WebDriver openBrowser() {\n String browser = System.getProperty(\"BROWSER\");\n\n\n if (driver == null) {\n try {\n //Kiem tra BROWSER = null -> gan = chrome\n if (browser == null) {\n browser = System.getenv(\"BROWSER\");\n if (browser == null) {\n browser = \"chrome\";\n }\n }\n switch (browser) {\n case \"chrome\":\n WebDriverManager.chromedriver().setup();\n driver = new ChromeDriver();\n break;\n case \"firefox\":\n WebDriverManager.firefoxdriver().setup();\n driver = new FirefoxDriver();\n break;\n case \"chrome_headless\":\n WebDriverManager.chromedriver().setup();\n ChromeOptions options = new ChromeOptions();\n options.addArguments(\"headless\");\n options.addArguments(\"window-size=1366x768\");\n driver = new ChromeDriver(options);\n break;\n default:\n WebDriverManager.chromedriver().setup();\n driver = new ChromeDriver();\n break;\n }\n } catch (UnreachableBrowserException e) {\n driver = new ChromeDriver();\n } catch (WebDriverException e) {\n driver = new ChromeDriver();\n } finally {\n Runtime.getRuntime().addShutdownHook(new Thread(new BrowserCleanup()));\n }\n driver.get(\"http://demo.guru99.com/v4/\");\n driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n driver.manage().window().maximize();\n log.info(\"----------- START BRWOSER -----------\");\n\n }\n return driver;\n }", "public static void openBrowser()\n\t{\n\t\tdriver = DriverSetup.getWebDriver(ReadPropertiesFile.getBrowser());\n\t\tdriver.get(ReadPropertiesFile.getURL());\n\t\tlog.info(\"Opening Browser\");\n\t\tlog.info(\"Practo website is launched \");\n\t}", "void displayBrowser(Context context, String urlString) {\n displayBrowser(context, urlString, true);\n }", "@Before\n public void start(){\n DesiredCapabilities caps = new DesiredCapabilities();\n driver = new FirefoxDriver(new FirefoxBinary(new File(\"C:\\\\Program Files (x86)\\\\Nightly\\\\firefox.exe\")), new FirefoxProfile(), caps);\n wait = new WebDriverWait(driver, 10);\n\n //IE\n// DesiredCapabilities caps = new DesiredCapabilities();\n// caps.setCapability(InternetExplorerDriver.REQUIRE_WINDOW_FOCUS, true);\n// WebDriver driver = new InternetExplorerDriver(caps);\n\n\n }", "private WebDriver createInternetExplorerDriver() {\n\t\tDesiredCapabilities capabilities = DesiredCapabilities.internetExplorer();\n\t\tcapabilities.setCapability(InternetExplorerDriver.IGNORE_ZOOM_SETTING, true);\n\t\tsetDriverPropertyIfRequired(\"webdriver.ie.driver\", \"IEDriverServer.exe\");\n\t\t_driver = new InternetExplorerDriver(capabilities);\n\t\treturn _driver;\n\t}", "public static void main(String[] args) {\n\r\n\t\tWebDriver driver = new ChromeDriver();\r\n\t\t\r\n\t\t\r\n\t\t//1.html\r\n\t\tdriver.get(\"file:\\\\C:\\\\Users\\\\mrsba\\\\OneDrive\\\\Desktop\\\\training\\\\automation\\\\lessons\\\\HTML_rightclick_doubleclick_drag+drop\\\\html files\\\\HTML\\\\1.html\");\r\n\t\t\r\n\t\tdriver.findElement(By.name(\"1\")).sendKeys(\"HEllo\");\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//2.html - opens in new tab\r\n\t\t\r\n\t\tJavascriptExecutor jsc = (JavascriptExecutor)driver;\r\n\t\t\r\n\t\tjsc.executeScript(\"window.open('file:\\\\\\\\C:\\\\\\\\Users\\\\\\\\mrsba\\\\\\\\OneDrive\\\\\\\\Desktop\\\\\\\\training\\\\\\\\automation\\\\\\\\lessons\\\\\\\\HTML_rightclick_doubleclick_drag+drop\\\\\\\\html files\\\\\\\\HTML\\\\\\\\2.html');\");\r\n\t\t\t\t\r\n\t ArrayList<String> tabs = new ArrayList<String> (driver.getWindowHandles());\r\n\t\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\tdriver.switchTo().window(tabs.get(1));\r\n\t\t\r\n\t\t\r\n\t\tWebElement txt = driver.findElement(By.name(\"2\"));\r\n\t\ttxt.sendKeys(\"1234\");\r\n\t\t\r\n\t\r\n\t\t//context click - right click?\r\n\t\t\r\n\t\tjsc.executeScript(\"window.open('file:\\\\\\\\C:\\\\\\\\Users\\\\\\\\mrsba\\\\\\\\OneDrive\\\\\\\\Desktop\\\\\\\\training\\\\\\\\automation\\\\\\\\lessons\\\\\\\\HTML_rightclick_doubleclick_drag+drop\\\\\\\\html files\\\\\\\\HTML\\\\\\\\ContextClick.html');\");\r\n\t\t\r\n\t\tdriver.switchTo().window(tabs.get(2));\r\n\t\t\r\n\t\tActions actions = new Actions(driver);\r\n\t\t\r\n\r\n\t\t\r\n\t\tWebElement contxt = driver.findElement(By.xpath(\"//*[@id=\\\"div-context\\\"]\")); \r\n\t\t\r\n\t\tWebDriverWait wait=new WebDriverWait(driver,20);\r\n\t\t \r\n\t\t \r\n\t\t \r\n\t\t// Wait till the element is not visible\r\n\t\t \r\n\t\twait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//*[@id=\\\"menu\\\"]\")));\r\n\t\t \r\n\t\t\r\n\t\t\r\n\t\tSystem.out.println(contxt.getText());\r\n\t\t\r\n\t\tactions.contextClick(contxt).perform();\r\n\t\t\r\n\t//\tdriver.findElement(By.xpath(\"//*[@id=\\\"ui-id-4\\\"]\")).click();\r\n\t}", "public static WebDriver startBrowser() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"./driver/chromedriver.exe\");\n\t\t\n\t\t// Create ChromeDriver object, launch Chrome browser\n\t\t WebDriver driver = new ChromeDriver();\n\t\t \n\t\t// Create ChromeDriver object, launch Chrome browser\n\t\tdriver.get(\"http://techfios.com/test/107/\");\n\t\treturn driver;\n\t}", "public static void setBrowser() {\n\t\t browser=\"Chrome\";\n\t }", "public static void main(String[] args) throws Exception {\n\t\t\t\tlaunchBrowser(\"ch\");\n\t\t\t\tThread.sleep(2000);\n\t\t\t\tRobot rb = new Robot();\n\t\t\t\trb.keyPress(KeyEvent.VK_TAB);\n\t\t\t\trb.keyRelease(KeyEvent.VK_TAB);\n\t\t\t\tThread.sleep(2000);\n\t\t\t\trb.keyPress(KeyEvent.VK_A); //--> to type a letter A\n\t\t\t\trb.keyRelease(KeyEvent.VK_A);\n\t\t\t\trb.keyPress(KeyEvent.VK_D); \n\t\t\t\trb.keyRelease(KeyEvent.VK_D);\n\t\t\t\trb.keyPress(KeyEvent.VK_M); \n\t\t\t\trb.keyRelease(KeyEvent.VK_M);\n\t\t\t\trb.keyPress(KeyEvent.VK_I); \n\t\t\t\trb.keyRelease(KeyEvent.VK_I);\n\t\t\t\trb.keyPress(KeyEvent.VK_N); \n\t\t\t\trb.keyRelease(KeyEvent.VK_N);\n\t\t\t\trb.keyPress(KeyEvent.VK_1); \n\t\t\t\trb.keyRelease(KeyEvent.VK_1);\n\t\t\t\trb.keyPress(KeyEvent.VK_2); \n\t\t\t\trb.keyRelease(KeyEvent.VK_2);\n\t\t\t\trb.keyPress(KeyEvent.VK_3); \n\t\t\t\trb.keyRelease(KeyEvent.VK_3);\n\t\t\t\t//rb.keyPress(KeyEvent.VK_AT); \n\t\t\t\t//rb.keyRelease(KeyEvent.VK_AT);\n\t\t\t\trb.keyPress(KeyEvent.VK_G); \n\t\t\t\trb.keyRelease(KeyEvent.VK_G);\n\t\t\t\trb.keyPress(KeyEvent.VK_M); \n\t\t\t\trb.keyRelease(KeyEvent.VK_M);\n\t\t\t\trb.keyPress(KeyEvent.VK_A); \n\t\t\t\trb.keyRelease(KeyEvent.VK_A);\n\t\t\t\trb.keyPress(KeyEvent.VK_I); \n\t\t\t\trb.keyRelease(KeyEvent.VK_I);\n\t\t\t\trb.keyPress(KeyEvent.VK_L); \n\t\t\t\trb.keyRelease(KeyEvent.VK_L);\n\t\t\t\trb.keyPress(KeyEvent.VK_PERIOD); \n\t\t\t\trb.keyRelease(KeyEvent.VK_PERIOD);\n\t\t\t\trb.keyPress(KeyEvent.VK_C); \n\t\t\t\trb.keyRelease(KeyEvent.VK_C);\n\t\t\t\trb.keyPress(KeyEvent.VK_O); \n\t\t\t\trb.keyRelease(KeyEvent.VK_O);\n\t\t\t\trb.keyPress(KeyEvent.VK_M); \n\t\t\t\trb.keyRelease(KeyEvent.VK_M);\n\t\t\t\tThread.sleep(5000);\n\t\t\t\trb.keyPress(KeyEvent.VK_TAB);\n\t\t\t\trb.keyRelease(KeyEvent.VK_TAB);\n\t\t\t\tThread.sleep(2000);\n\t\t\t\trb.keyPress(KeyEvent.VK_TAB);\n\t\t\t\trb.keyRelease(KeyEvent.VK_TAB);\n\t\t\t\tThread.sleep(2000);\n\t\t\t\trb.keyPress(KeyEvent.VK_ENTER);\n\t\t\t\trb.keyRelease(KeyEvent.VK_ENTER);\n\t\t\t\t\n\t\t\t\t//File upload test cases we used to do that --> \n\t\t\t\t//This will work on focus basis --> Recomended\n\t\t\t\t//No gurantee whether it is success or not\n\t\t\t\t// Always recomended we have to ask the developers to write elements/Automation supported codes\n\t\t\t\t\n\t\t\t\t//This is recomended but can be used in browser only\n\t\t\t\t//driver.findElement(By.xpath(\"//button[contains(text(),'Login to Account')]\")).sendKeys(keys.ENTER);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t}", "@Parameters({\"Browser\"})\n\t@BeforeTest\n\tpublic void launchBrowser(String Browser){\t\t\n//Method invokes extent report with the given name\n//'**********************************************************\n\t\textentTest = extentReports.startTest(\"Registration and Add to Cart\");\n\t\tdriver = com.wipro.browser.LaunchBrowser.openBrowser(Browser);\n\t\textentTest.log(LogStatus.PASS, \"Browser Launched and accessed application\");\n\t\t\n\t}", "public void openBrowser(String url) {\n System.setProperty(\"webdriver.chrome.driver\", \"c:\\\\webdriver\\\\chromedriver.exe\");\n driver = new ChromeDriver();\n driver.manage().window().maximize();\n// int timeout = Integer.parseInt(ApplicationConfig.readConfigProperties(\"config-week17project.properties\", \"timeout\"));\n int timeout = Integer.parseInt(testData.timeout);\n driver.manage().timeouts().pageLoadTimeout(timeout, TimeUnit.SECONDS);\n driver.get(url);\n }", "public void browserChanged() { }", "public final EObject ruleWebBrowser() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token lv_name_1_0=null;\n Token otherlv_2=null;\n Token otherlv_4=null;\n EObject lv_onglets_3_0 = null;\n\n\n enterRule(); \n \n try {\n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:79:28: ( (otherlv_0= 'webBrowser' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'open' ( (lv_onglets_3_0= ruleOnglet ) )* otherlv_4= 'close' ) )\n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:80:1: (otherlv_0= 'webBrowser' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'open' ( (lv_onglets_3_0= ruleOnglet ) )* otherlv_4= 'close' )\n {\n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:80:1: (otherlv_0= 'webBrowser' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'open' ( (lv_onglets_3_0= ruleOnglet ) )* otherlv_4= 'close' )\n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:80:3: otherlv_0= 'webBrowser' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'open' ( (lv_onglets_3_0= ruleOnglet ) )* otherlv_4= 'close'\n {\n otherlv_0=(Token)match(input,11,FOLLOW_11_in_ruleWebBrowser122); \n\n \tnewLeafNode(otherlv_0, grammarAccess.getWebBrowserAccess().getWebBrowserKeyword_0());\n \n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:84:1: ( (lv_name_1_0= RULE_ID ) )\n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:85:1: (lv_name_1_0= RULE_ID )\n {\n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:85:1: (lv_name_1_0= RULE_ID )\n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:86:3: lv_name_1_0= RULE_ID\n {\n lv_name_1_0=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleWebBrowser139); \n\n \t\t\tnewLeafNode(lv_name_1_0, grammarAccess.getWebBrowserAccess().getNameIDTerminalRuleCall_1_0()); \n \t\t\n\n \t if (current==null) {\n \t current = createModelElement(grammarAccess.getWebBrowserRule());\n \t }\n \t\tsetWithLastConsumed(\n \t\t\tcurrent, \n \t\t\t\"name\",\n \t\tlv_name_1_0, \n \t\t\"ID\");\n \t \n\n }\n\n\n }\n\n otherlv_2=(Token)match(input,12,FOLLOW_12_in_ruleWebBrowser156); \n\n \tnewLeafNode(otherlv_2, grammarAccess.getWebBrowserAccess().getOpenKeyword_2());\n \n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:106:1: ( (lv_onglets_3_0= ruleOnglet ) )*\n loop1:\n do {\n int alt1=2;\n int LA1_0 = input.LA(1);\n\n if ( (LA1_0==12) ) {\n alt1=1;\n }\n\n\n switch (alt1) {\n \tcase 1 :\n \t // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:107:1: (lv_onglets_3_0= ruleOnglet )\n \t {\n \t // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:107:1: (lv_onglets_3_0= ruleOnglet )\n \t // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:108:3: lv_onglets_3_0= ruleOnglet\n \t {\n \t \n \t \t newCompositeNode(grammarAccess.getWebBrowserAccess().getOngletsOngletParserRuleCall_3_0()); \n \t \t \n \t pushFollow(FOLLOW_ruleOnglet_in_ruleWebBrowser177);\n \t lv_onglets_3_0=ruleOnglet();\n\n \t state._fsp--;\n\n\n \t \t if (current==null) {\n \t \t current = createModelElementForParent(grammarAccess.getWebBrowserRule());\n \t \t }\n \t \t\tadd(\n \t \t\t\tcurrent, \n \t \t\t\t\"onglets\",\n \t \t\tlv_onglets_3_0, \n \t \t\t\"Onglet\");\n \t \t afterParserOrEnumRuleCall();\n \t \t \n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop1;\n }\n } while (true);\n\n otherlv_4=(Token)match(input,13,FOLLOW_13_in_ruleWebBrowser190); \n\n \tnewLeafNode(otherlv_4, grammarAccess.getWebBrowserAccess().getCloseKeyword_4());\n \n\n }\n\n\n }\n\n leaveRule(); \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "@Parameters({\"browserName\"})\n\t@BeforeMethod\n\tpublic void openBrowser(String browserName) {\n\t\tString currentProjectPath = System.getProperty(\"user.dir\");\n\t\tSystem.out.println(\"Current project path is = \" + currentProjectPath);\n\t\t\n\t\tString currentOSname = System.getProperty(\"os.name\");\n\t\tSystem.out.println(\"Current OS name is = \" + currentOSname);\n\t\t\n\t\tif(browserName.equalsIgnoreCase(\"chrome\")) {\n\t\t\t//Open Chrome\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", currentProjectPath + \"\\\\browserDriverEXE\\\\chromedriver.exe\"); \n\t\t\tdriver = new ChromeDriver();\n\t\t}\n\t\t\n\t\telse if(browserName.equalsIgnoreCase(\"firefox\")) {\n\t\t\t//Open FF\n\t\t\tSystem.setProperty(\"webdriver.gecko.driver\", currentProjectPath + \"\\\\browserDriverEXE\\\\geckodriver.exe\"); \n\t\t\tdriver = new FirefoxDriver();\n\t\t}\n\t\t\n\t\telse {\n\t\t\t//Open IE\n\t\t\tSystem.setProperty(\"webdriver.ie.driver\", currentProjectPath + \"\\\\browserDriverEXE\\\\IEDriverServer.exe\"); \n\t\t\tdriver = new InternetExplorerDriver();\n\t\t}\n\t\tdriver.manage().window().maximize();\n\t\t\n\t\t//refresh\n\t\t//driver.navigate().refresh();\n\t\t\n\t\t//driver.navigate().forward();\n\t\t\n\t\t//driver.navigate().back();\n\t\t\n\t\t//driver.manage().deleteAllCookies();\n\t\t\n\t\t//imp wait\n\t\t//driver.manage().timeouts().setScriptTimeout(10, TimeUnit.MINUTES);\n\t\t//driver.manage().timeouts().pageLoadTimeout(5, TimeUnit.SECONDS);\n\t\tdriver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n\t}", "public static void main(String[] args) throws InterruptedException {\n\t\t\r\n\t\tSystem.setProperty(\"webdriver.ie.driver\", \"F:\\\\Training\\\\SeleniumSupport\\\\IEDriverServer.exe\");\r\n\t\tWebDriver driver = new InternetExplorerDriver();\r\n\r\n\t\t\r\n\t\t//WebDriver driver = new FirefoxDriver();\r\n\t\t//driver.get(\"https://www.google.co.in/\");\r\n\t\tdriver.navigate().to(\"https://www.google.co.in/\");\r\n\t\tThread.sleep(3000);\r\n\t\tdriver.close();\r\n\t\t//driver.quit();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "@Given(\"browser is open\")\n\tpublic void browser_is_open() {\n\t\tSystem.out.println(\"browseris open\");\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"/home/rahul/Desktop\");\n\t\tdriver=new ChromeDriver();\n\t\tdriver.manage().timeouts().implicitlyWait(40,TimeUnit.SECONDS);\n\t\t\n\t}", "public void getBrowser(String browser, String url) {\n\n\n if (browser.equalsIgnoreCase(\"chrome\")) {\n WebDriverManager.chromedriver().setup();\n driver = new ChromeDriver();\n } else if (browser.equalsIgnoreCase(\"firefox\")) {\n WebDriverManager.firefoxdriver().setup();\n driver = new FirefoxDriver();\n }\n driver.manage().window().maximize();\n driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n driver.get(url);\n\n }", "public interface TestPage<D> {\r\n\tpublic TestPage<D> getParent();\r\n\r\n\tpublic PageLocator getPageLocator();\r\n\r\n\t/***\r\n\t * This method check for existence of page in browser so we can proceed\r\n\t * further with page functionality.\r\n\t * \r\n\t * @param args\r\n\t * optional arguments required to identify page.\r\n\t * @return\r\n\t */\r\n\tpublic boolean isPageActive(PageLocator loc, Object... args);\r\n\r\n\t/**\r\n\t * selenium base instance to provide selenium\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic UiTestBase<D> getTestBase();\r\n\r\n\t/**\r\n\t * Returns the body text of the current page\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic String getText();\r\n\r\n\t/**\r\n\t * Use only launchPage method to load a page. For more usability you can\r\n\t * overload this method in your page class but make sure to call this method\r\n\t * within it to load page. eg:\r\n\t * \r\n\t * <pre>\r\n\t * <code>\r\n\t * void launchPage(){\r\n\t * \t\tlaunchPage(null)\r\n\t * }\r\n\t * OR\r\n\t * void launchPage(String locator){\r\n\t * \t\tlaunchPage(new DefaultPageLocator(locator));\r\n\t * }\r\n\t * </code>\r\n\t * </pre>\r\n\t * \r\n\t * @param locator\r\n\t * to locate page on parent page.\r\n\t * <p>\r\n\t * This locator will be passed to other fw methods for example\r\n\t * {@link #isPageActive(PageLocator, Object...)}\r\n\t * @param args\r\n\t * optional page identifiers to verify is this page for what we\r\n\t * aspect? for example: view details page for specific user or\r\n\t * item, you can identify page by user or item id/name\r\n\t * <p>\r\n\t * This args will be passed to other fw methods for example\r\n\t * {@link #isPageActive(PageLocator, Object...)}\r\n\t */\r\n\tpublic void launchPage(PageLocator locator, Object... args);\r\n\r\n\t/**\r\n\t * You can specify launch behavior before launching the page by calling this\r\n\t * method.\r\n\t * \r\n\t * @param strategy\r\n\t * launch strategy.\r\n\t */\r\n\tpublic void setLaunchStrategy(LaunchStrategy strategy);\r\n\r\n\tpublic enum LaunchStrategy {\r\n\t\t/**\r\n\t\t * To specify that even if the page is active, launch page form the\r\n\t\t * parent page.\r\n\t\t */\r\n\t\talwaysRelaunchFromParent,\r\n\t\t/**\r\n\t\t * To specify that even if the page or its parent page is active, launch\r\n\t\t * form the root by navigating entire hierarchy.\r\n\t\t */\r\n\t\talwaysRelaunchFromRoot,\r\n\t\t/**\r\n\t\t * To specify that launch the page if it is not active.\r\n\t\t */\r\n\t\tonlyIfRequired;\r\n\t}\r\n\r\n}", "public void navigateToBrowserTab(String text) throws Exception {\n\n\t\tArrayList<String> tabs2 = new ArrayList<String>(wdriver.getWindowHandles());\n\t\twdriver.switchTo().window(tabs2.get(1));\n\t\twdriver.findElement(By.xpath(\"//div[text()='\" + text + \"']\")).isDisplayed();\n\t}", "@Parameters(\"browser\")\n private void switchBrowser(String browser) {\n if (browser.equals(DRIVER_TYPE.IE.name())) {\n System.setProperty(\"webdriver.ie.driver\", \"src/test/resources/driver/IEDriverServer.exe\");\n driver = new InternetExplorerDriver();\n } else {\n System.setProperty(\"webdriver.chrome.driver\", \"src/test/resources/driver/chromedriver.exe\");\n driver = new ChromeDriver();\n }\n }", "public static String getBrowser(){\n\t\treturn browser;\n\t}", "public static void main(String[] args) {\nWebDriver driver = new FirefoxDriver();\nSystem.out.println(\"hai\");\ndriver.get(\"https://www.google.com\");\nSystem.out.println(driver.getTitle());\ndriver.close();\n\t}", "public static void main(String[] args) throws Exception {\n\t\t\r\n\t\tDifferent_Browser.call_Firefox();\r\n\t\tDifferent_Browser.get_Google();\r\n\t\tDifferent_Browser.close_browser();\r\n\t\t\r\n//\t\tDifferent_Browser.call_chrome();\r\n//\t\tDifferent_Browser.get_Google();\r\n//\t\tDifferent_Browser.close_browser();\r\n\t}", "public static void main(String[] args) {\n\n\n WebDriverManager.chromedriver().setup();\n WebDriver driver = new ChromeDriver();\n\n //difference between get and navigate is get will w8 for page to load fully yet navigate wont\n// driver.get(\"http://www.facebook.com\");\n driver.navigate().to(\"http://www.facebook.com\");\n driver.navigate().to(\"http://www.google.com\");\n driver.navigate().back();\n driver.navigate().forward();\n driver.navigate().refresh();\n\n\n slpBrowser(2000);\n qBrowser(driver);\n System.out.println(\"Test Done\");\n }", "private NKE_BrowserWindow() {}", "public String getBrowserName(){\r\n\t\treturn rb.getProperty(\"browser\");\r\n\t}", "public static void main(String[] args) {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\Rani\\\\Desktop\\\\chromedriver.exe\");\n\t\tWebDriver driver = new ChromeDriver();\n\t\tdriver.get(\"https://www.google.com/\");\n//\n//\t\tString abc = driver.getTitle();\n//\t\tSystem.out.println(\"abc\");\n//\n//\t\tString actual = driver.getTitle();\n//\t\tString expected = (\"Google\");\n//\t\tif (actual.contentEquals(expected)) {\n//\t\t\tSystem.out.println(\"Test case is Pass\");\n//\n//\t\t} else {\n//\t\t\tSystem.out.println(\"Test case is fail\");\n//\n//\t\t}\n//\t\tString A = driver.getCurrentUrl();\n//\t\t// System.out.println(\"A\");\n//\t\tString E = \"https://www.google.com/\";\n//\t\tif (A.contentEquals(E)) {\n//\t\t\tSystem.out.println(\"Test case2 pass\");\n//\t\t} else {\n//\t\t\tSystem.out.println(\"Test case2 fail\");\n//\t\t}\n//\t\n//\t\tdriver.navigate().to(\"https://www.gmail.com/\");\n//\t\tdriver.navigate().back();\n//\t\tdriver.navigate().forward();\n//\t\tdriver.close();\n//\t\tdriver.quit();\n//\t\t\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\Rani\\\\Desktop\\\\chromedriver.exe\");\n\t\tWebDriver driver1 = new ChromeDriver();\n\t\tdriver.get(\"https://www.google.com/\");\n\n\t\tString s = driver1.getTitle();\n\t\tSystem.out.println(\"The title is :\");\n\t\tString A = driver1.getTitle();\n\t\tString E = (\"Google\");\n\t\tif (A.contentEquals(E)) {\n\t\t\tSystem.out.println(\"Test case of gettitle is: pass\");\n\n\t\t}\n\n\t\telse {\n\t\t\tSystem.out.println(\"Test case of gettitle is: Fail\");\n\t\t}\n\n\t\tString Ac = driver1.getCurrentUrl();\n\t\tString Ex = (\"https://www.google.com/\");\n\t\tif (Ac.contentEquals(Ex)) {\n\t\t\tSystem.out.println(\"Test case of url is :pass\");\n\n\t\t} else {\n\t\t\tSystem.out.println(\"Test case of url is:fail\");\n\t\t}\n\t\tdriver1.navigate().to(\"http://staging-admin.sproutlogix.com/\");\n\t\tdriver1.navigate().back();\n\t\tdriver1.navigate().forward();\n\t\tdriver1.close();\n\t\tdriver.quit();\n\t}", "public static void main(String[] args) {\nString browser=\"ff\";\nif (browser.equals(\"chrome\")) {\n\tWebDriverManager.chromedriver().setup();\n\t// System.setProperty(\"webdriver.chrome.driver\", \"/Users/user/Downloads/chromedriver\");\n\tdriver=new ChromeDriver();\n}\nelse if (browser.equals(\"ff\")) {\n\tWebDriverManager.firefoxdriver().setup();\n\tdriver=new FirefoxDriver();\n}\nelse\n\tif (browser.equals(\"IE\")) {\n\t\tWebDriverManager.iedriver().setup();\n\t\tdriver=new InternetExplorerDriver();\n\t}\n\telse\n\t\tif (browser.equals(\"opera\")) {\n\t\t\tWebDriverManager.operadriver().setup();\n\t\t\tdriver=new OperaDriver();\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"no defined driver\");\n\t\t}\n\n\ndriver.get(\"https://google.com\");\n\n\n\n\t\n\n\n\n\n\n\n\n\n\n\n\n\t}", "public void openBrowser() {\n ResourceBundle config = ResourceBundle.getBundle(\"config\");\n\n config.getString(\"browser\").equalsIgnoreCase(\"Chrome\");\n System.setProperty(\"webdriver.chrome.driver\", \"src/Drivers/chromedriver_76.0.exe\");\n driver = new ChromeDriver();\n\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n// driver.get(config.getString(\"URL\"));\n driver.manage().window().maximize();\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"F:\\\\Selenium\\\\chromedriver_win32\\\\chromedriver.exe\");\r\n\r\n\t\tWebDriver driver = new ChromeDriver();\r\n\t\t\r\n\t\tdriver.get(\"http://seleniumpractise.blogspot.com/2017/07/multiple-window-examples.html\");\r\n\t\t\t\r\n\t\tWebElement r =driver.findElement(By.cssSelector(\"#post-body-6170641642826198246 > a:nth-child(2)\"));\r\n\t\t//Storing the window id in parent (note getwindow can store only one window value i.e parent class window)\r\n\t\tString parent = driver.getWindowHandle();\r\n \t\t\tSystem.out.println(parent);\r\n \t\t\t\r\n\t\t\tr.click();\r\n \t\t// storing the multiple value of window id in array name called Set with data type String.\t\r\n \t\t\tSet<String> allclass = \tdriver.getWindowHandles();\r\n \t\t\tSystem.out.println(allclass);\r\n \t\t\t\r\n \t\t// Printing the no of window id present in Set in integer form\t\r\n \t\t\tint noofelement = allclass.size();\r\n \t\t\tSystem.out.println(noofelement);\r\n \t\t\r\n \t\t//below code proof us that still a new tab is open but the control is still in parent class i.e first class\r\n \t\t\t\r\n \t\t\tSystem.out.println(driver.getCurrentUrl());\r\n \t\t//\tdriver.findElement(By.className(\"gb_d\")).click(); // error noelementfound\r\n \t\t\t\r\n \t\t\tfor (String child : allclass) {\r\n\t\t\t\t\r\n \t\t\t\tif(! child.equals(parent)){\r\n \t\t\t\t\t\r\n \t\t\t\t\tdriver.switchTo().window(child);\r\n \t\t\t\t// now control is over the child class or new tab\r\n \t\t \t\t\tSystem.out.println(driver.getCurrentUrl()); // print google website\r\n \t\t\t\t}\r\n\t\t\t}\r\n \t\t\t\r\n \t\t\t\r\n \t\t//\tdriver.switchTo().window(parent);\r\n \t\t\tSystem.out.println(driver.getCurrentUrl()); // print selenium practise website\r\n \t\t\t\r\n \t\t\t\r\n \t\t\t\r\n \t\t\t\r\n \r\n\t}", "@BeforeTest\r\n public void launchBrowser() {\n System.setProperty(\"webdriver.chrome.driver\", ChromePath);\r\n driver= new ChromeDriver();\r\n driver.manage().window().maximize();\r\n driver.get(titulo);\r\n }", "public WebDriver browserSetup() throws IOException\r\n\t{ \r\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\r\n\t\tSystem.out.println(\"1.Chrome\\n2.Firefox \\nEnter your choice:\");\r\n\t\tString choice=br.readLine();\r\n\t\t\r\n\t\tswitch(choice)\r\n\t\t{\r\n\t\t//To start Chrome Driver\r\n\t\tcase \"1\":\r\n\t\t System.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Test Automation\\\\Software\\\\chrome\\\\New Version\\\\chromedriver.exe\");\r\n\t\t ChromeOptions options=new ChromeOptions();\r\n\t\t options.addArguments(\"--disable-notifications\");\r\n\t\t driver=new ChromeDriver(options);\r\n\t\t break;\r\n\t\t\r\n\t\t//To start Firefox Driver\r\n\t\tcase \"2\":\r\n\t\t\tSystem.setProperty(\"webdriver.gecko.driver\", \"C:\\\\***\\\\drivers\\\\geckodriver.exe\");\r\n\t\t\tdriver=new FirefoxDriver();\r\n\t\t\tbreak;\r\n\t\t} \r\n\t\t\r\n\t\tdriver.get(url);\r\n\t\t\r\n\t\t//To maximize the window\r\n\t\tdriver.manage().window().maximize();\r\n\t\t\r\n\t\tdriver.manage().timeouts().pageLoadTimeout(8, TimeUnit.SECONDS);\r\n\t\t\r\n\t\treturn driver;\r\n\t}", "public static void main(String[] args) {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"./driver/chromedriver.exe\");\n\t\tWebDriver d=new ChromeDriver();\n\t\td.get(\"file:///C:/Users/SYED%20HASSAN/Desktop/selinium%202%20se/p1.html\");\n\t\tString title = d.getTitle();\n\t\tSystem.out.println(\"title = \"+title);\n\t\tString window = d.getWindowHandle();\n System.out.println(\"windowhandle\"+window);\n String c = d.getCurrentUrl();\n System.out.println(\"currenturl\"+c);\n d.close();\n System.out.println();\n\t}", "@Given(\"I open a browser and launch the application\")\n public void open_a_browser_and_launch_the_application() throws MalformedURLException\n {\n try {\n if(System.getProperty(\"exemode\").equals(\"remote\")) {\n if(System.getProperty(\"browser\").equals(\"firefox\")){\n System.setProperty(\"webdriver.gecko.driver\", \"./drivers/geckodriver\");\n DesiredCapabilities dc = DesiredCapabilities.firefox();\n dc.setBrowserName(\"firefox\");\n dc.setPlatform(Platform.LINUX);\n driver = new RemoteWebDriver(new URL(UtilConstants.ENDPOINT_SELENIUM_HUB), dc);\n }\n else if(System.getProperty(\"browser\").equals(\"chrome\")){\n System.setProperty(\"webdriver.chrome.driver\", \"./drivers/chromedriver\");\n DesiredCapabilities dc = DesiredCapabilities.chrome();\n dc.setBrowserName(\"chrome\");\n dc.setPlatform(Platform.LINUX);\n driver = new RemoteWebDriver(new URL(UtilConstants.ENDPOINT_SELENIUM_HUB), dc);\n }\n }\n else{\n if(System.getProperty(\"browser\").equals(\"firefox\")){\n System.setProperty(\"webdriver.gecko.driver\", \"./drivers/geckodriver\");\n driver = new FirefoxDriver();\n }\n else if(System.getProperty(\"browser\").equals(\"chrome\")){\n System.setProperty(\"webdriver.chrome.driver\", \"./drivers/chromedriver\");\n driver = new ChromeDriver();\n }\n }\n\n if(driver!=null){\n driver.manage().window().maximize();\n driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n //driver.manage().timeouts().pageLoadTimeout(5, TimeUnit.SECONDS);\n driver.get(ENDPOINT_PHPTRAVELS);\n }\n }\n catch(Exception e){\n e.printStackTrace();\n// System.exit(1);\n }\n }", "public void setUpDriver(final String browser) throws MalformedURLException{\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tString gridUrl=System.getProperty(\"gridurl\");\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//check if parameter passed from TestNg is 'firefox'\r\n\t\t\r\n//\t\tif (BrowserLib.FIREFOX.equalsIgnoreCase(browser)){\r\n//\t\t DesiredCapabilities capabilities =DesiredCapabilities.firefox();\r\n//\t\t capabilities.setCapability(CapabilityType.ForSeleniumServer.ENSURING_CLEAN_SESSION, true);\r\n//\t\t if(StringUtils.isNotEmpty(gridUrl)){\r\n//\t\t\t driver=new RemoteWebDriver(new URL(gridUrl),capabilities);\r\n//\t\t }\r\n//\t\t else{\r\n//\t\t\t driver =new FirefoxDriver(capabilities);\r\n//\t\t }\r\n\t\t \r\n\t\t\r\n\t\tif(BrowserLib.FIREFOX.equalsIgnoreCase(browser)){\r\n\t\t\t\r\n\t\t\t DesiredCapabilities capabilities =DesiredCapabilities.firefox();\r\n//\t\t\t capabilities.setCapability(CapabilityType.ForSeleniumServer.ENSURING_CLEAN_SESSION, true);\r\n\t\t\t \r\n\t\t\t final String firebugpath1=\"src//main//resource//firepath-0.9.7.1-fx.xpi\";\r\n\t\t\t final String firebugpath =\"src//main//resource//firebug-1.12.8.xpi\";\r\n\t\t\t FirefoxProfile profile=new FirefoxProfile();\r\n//\t\t System.setProperty(\"webdriver.firefox.driver\", \"C:\\\\Program Files\\\\MozillaFirefox\\\\firefox.exe\");\r\n\r\n\t\t\t \r\n\t\t\t try{\r\n\t\t\t\t profile.addExtension(new File(firebugpath));\r\n\t\t\t\t profile.addExtension(new File(firebugpath1));\t \r\n\t\t\t }catch (IOException e){\r\n\t\t\t\t logger.error(\"Exception:\",e);\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t profile.setPreference(\"extensions.firebug.allpagesActivation\", \"on\");\r\n//\t\t\t capabilities.setCapability(FirefoxDriver.PROFILE,profile);\r\n\t\t\t capabilities.setCapability(CapabilityType.ForSeleniumServer.ENSURING_CLEAN_SESSION, true);\r\n\t\t\t System.setProperty(\"webdriver.firefox.driver\", \"C:\\\\Program Files\\\\MozillaFirefox\\\\firefox.exe\");\r\n\t\t\t //if (StringUtils.isNotEmpty(gridUrl)){\r\n\t\t\t if(gridUrl==null){\r\n\t\t\t\t driver =new FirefoxDriver(capabilities); \r\n \t\t\t \r\n\t\t\t }else{\r\n\t\t\t\t driver=new RemoteWebDriver(new URL(gridUrl),capabilities);\r\n\t\t\t }\r\n\t\t}else if(BrowserLib.CHROME.equalsIgnoreCase(browser)){\r\n\t\t\t DesiredCapabilities capabilities =DesiredCapabilities.chrome();\r\n\t\t\t capabilities.setCapability(CapabilityType.ForSeleniumServer.ENSURING_CLEAN_SESSION, true);\r\n\t\t\t if(gridUrl==null){\r\n\t\t\t\t driver =new ChromeDriver();\t \r\n\t\t\t }else{\r\n\t\t\t\t driver=new RemoteWebDriver(new URL(gridUrl),capabilities);\r\n\t\t\t }\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t \r\n\t\t}else if(BrowserLib.INTERNET_EXP.equalsIgnoreCase(browser)){\r\n//\t\t\tset path to iedriver.exe you may need to download it from 32 bits\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tSystem.setProperty(\"webDriver.ie.driver\", System.getProperty(\"user.dir\")+\"/src/main/resource/\"+ \"IEDriverserver.exe\");\r\n//\t\t\t create ie instance\r\n\t\t\t DesiredCapabilities capabilities =DesiredCapabilities.internetExplorer();\r\n\t\t\t capabilities.setCapability(CapabilityType.ForSeleniumServer.ENSURING_CLEAN_SESSION, true);\r\n//\t\t\t if (StringUtils.isNotEmpty(gridUrl)){\r\n// \t\t\t driver=new RemoteWebDriver(new URL(gridUrl),capabilities);\r\n//\t\t\t }else{\r\n//\t\t\t\t driver =new FirefoxDriver(capabilities); \r\n//\t\t\t }\r\n\t\t\t if(gridUrl.isEmpty()){\r\n\t\t\t\t driver =new InternetExplorerDriver(capabilities); \r\n \t\t\t \r\n\t\t\t }else{\r\n\t\t\t\t driver=new RemoteWebDriver(new URL(gridUrl),capabilities);\r\n\t\t\t }\r\n\t\t\t \r\n\t\t}else{\r\n//\t\t\tif no browser passed throw exception\r\n\t\t\tthrow new UnsupportBrowserException();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tthis.driver.manage().deleteAllCookies();\r\n\t\tthis.browserMaximize();\r\n\t\tthis.driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\r\n\t\t\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\t ExtentHtmlReporter htmlReporter = new Exte\r\n\t\t\t\t ntHtmlReporter(\"extent.html\");\r\n\t // create ExtentReports and attach reporter(s)\r\n\t ExtentReports extent = new ExtentReports();\r\n\t extent.attachReporter(htmlReporter);\r\n\t // creates a toggle for the given test, adds all log events under it \r\n ExtentTest MYTEST = extent.createTest(\"Google Search\", \"To validate the ggogle search functionality\"); \r\n System.setProperty(\"webdriver.gecko.driver\",\"C:\\\\Users\\\\ADMIN\\\\Downloads\\\\geckodriver.exe\");\r\n\t\t WebDriver driver=new FirefoxDriver();\r\n\t\t driver.get(\"https://google.com\");\r\n\t\t \r\n\t\t MYTEST.log(Status.INFO,\"starting my test case\");\r\n\t\t // driver.get(url);\r\n\t\t driver.findElement(By.name(\"q\")).sendKeys(\"selenium automation\");\r\n\t\t MYTEST.pass(\"entered text in search box\");\r\n\t\t //driver.findElement(By.name(\"btnK\")).sendKeys(Keys.RETURN);\r\n\t\t // MYTEST.pass(\"pressed the click button\");\r\n\t\t driver.close();\r\n\t\t driver.quit(); \r\n\t\t //MYTEST.pass(\"closed the browser\");\r\n\t\t MYTEST.pass(\"compoleted the test\");\r\n\t\t // calling flush writes everything to the log file\r\n\t\t extent.flush();\r\n\t\r\n\t}", "protected void openWebPage() {\n\t\tEseoTest.driver.get(Configuration.getString(\"website_address\"));\n\t\t//Assert.assertEquals(\"Web page title does not appear correct.\", Configuration.getString(\"login_title\"),\n\t\t\t//\tEseoTest.driver.getTitle());\t\t\n\t\tAssert.assertEquals(\"Browser title bar does not appear correct.\",Configuration.getString(\"homepage_title\"),EseoTest.driver.getTitle());\n\t\tAssert.assertEquals(\"Site title does not appear correct.\",Configuration.getString(\"blog_title\"),EseoTest.driver.findElement(By.tagName(\"h1\")).getText());\n\t\tAssert.assertEquals(\"Site description does not appear correct.\",Configuration.getString(\"blog_description\"),EseoTest.driver.findElement(By.tagName(\"p\")).getText());\n\t\tAssert.assertTrue(\"Log in item does not appear correct.\",EseoTest.driver.findElement(By.linkText(Configuration.getString(\"mainmenu_login_item\"))).isDisplayed());\n\t}", "private boolean openBrowser(IProgressMonitor monitor) {\n\n monitor.subTask(\"Open index page\");\n // FIXME: port should come from the config files\n Display.getDefault().syncExec(new Runnable() {\n public void run() {\n URL url;\n try {\n url = new URL(\"http://localhost:8888\");\n IWorkbenchBrowserSupport browserSupport = WebBrowserUIPlugin\n .getInstance().getWorkbench().getBrowserSupport();\n IWebBrowser browser = browserSupport.createBrowser(\n IWorkbenchBrowserSupport.LOCATION_BAR\n | IWorkbenchBrowserSupport.NAVIGATION_BAR,\n null, null, null);\n browser.openURL(url);\n } catch (Exception e) {\n Trace.trace(Trace.SEVERE, \"Error opening browser\", e);\n }\n }\n });\n\n monitor.worked(3);\n return true;\n }", "private static org.netbeans.beaninfo.editors.HtmlBrowser.FactoryEditor createHtmlBrowserFactoryEditor() {\n return new org.netbeans.beaninfo.editors.HtmlBrowser.FactoryEditor(){\n public void setValue(Object value) {\n setWWWBrowser((HtmlBrowser.Factory)value);\n }\n\n public Object getValue() {\n return getWWWBrowser();\n }\n };\n }", "@Override\r\n public void run() {\n ax.browserPane.setTitleAt(0,ax.browser.getTitle());\r\n String stringToken1 = null; \r\n try {\r\n stringToken1 = (\"<Navigate Home>::\" + getHome());\r\n } catch (IOException ex) {\r\n Logger.getLogger(AxBrowser.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n ax.consoleTextArea.setText(stringToken1);\r\n //Put the current html address in the addressbar\r\n ax.addressBar.setText(ax.browser.getCurrentLocation());\r\n \r\n }", "public void Open_Browser() \r\n\t{\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"drivers\\\\chromedriver.exe\");\r\n\t\t//Brower initiation\r\n\t\tdriver=new ChromeDriver();\r\n\t\t//maximize browser window\r\n\t\tdriver.manage().window().maximize();\r\n\t\t\r\n\t\r\n\t}", "public static void main(String[] args) {\n\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"C:\\\\Iguru\\\\I guru\\\\ChromeDriver\\\\chromedriver.exe\");\n\t \n\t\t WebDriver driver = new ChromeDriver();\n\t\t System.out.println(\"========browser started================\");\n\t\t String AppURL=\"https://www.google.com\"; \n\t driver.get(AppURL);\n\t String title= driver.getTitle();\n\t System.out.println(\"page title is\" +title);\n\t \n\t if(title.equals(\"Google\"))\n\t {\n\t \t System.out.println(\"Title is correct\");\n\t }\n\t else\n\t {\n\t \t System.out.println(\"Title is in-correct\");\n\t }\n\t String url =driver.getCurrentUrl();\n\t System.out.println(url);\n\t // driver.quit();\n\t \n\t // in case of close\n\t driver.close(); // in case of close invalid session id \n\t String title1= driver.getTitle(); //in case of quit Session ID is null Using WebDriver after calling quit()? \n\t System.out.println(title1);\n\n\t}", "@Parameters(\"browser\")\n\t \n @BeforeTest\n // Passing Browser parameter from TestNG xml\n \n public void beforeTest(String browser){\n\t if(browser.equalsIgnoreCase(\"firefox\")){\n\t driver = new FirefoxDriver();\n\t \n\t }// If browser is IE, then do this\n\t else if (browser.equalsIgnoreCase(\"ie\")){ \n\t // Here I am setting up the path for my IEDriver\n\t System.setProperty(\"webdriver.ie.driver\", \"E:\\\\IEDriverServer.exe\");\n\t driver = new InternetExplorerDriver();\n\t } \n\t // Doesn't the browser type, lauch the Website\n\t browserHelper.setUp(driver);\n\t }", "public FirefoxDriver openBrowser(String site){\n System.setProperty(\"webdriver.gecko.driver\", \"c:\\\\Utils\\\\geckodriver.exe\");\n FirefoxDriver browser = new FirefoxDriver();\n browser.get(site);\n return browser;\n }", "public void open() {\n setWebDriver();\n }", "public static void main(String[] args) {\nWebDriver driver = new FirefoxDriver();\ndriver.navigate().to(\"http://naukri.com\");\nString title = getCurrentWindowTitle(driver);\nString mainWindow = getMainWindowHandler(driver);\nAssert.assertTrue(closeAllOtherWindows(mainWindow,driver));\nAssert.assertTrue(\"Main window title is not matching\",title.contains(\"Jobs - Recruitment - Job Search - Employment - Job Vacancies - Naukri.com\"));\n\t}", "public static void main(String[] args) throws Exception{\n\n WebDriverManager.chromedriver().setup();\n\n WebDriver driver = new ChromeDriver();\n\n driver.get(\"http://practice.cybertekschool.com/open_new_tab\");\n\n Thread.sleep(4000);\n\n //driver.close(); //expected to close the original one\n driver.quit(); //all window will be closed\n\n\n\n\n }", "private static WebDriver launchInternetExplorer()\n\t{\n\t\tif (REMOTE_URL != null && !REMOTE_URL.equals(\"\")) {\n\t\t\tDesiredCapabilities capabilities = DesiredCapabilities.internetExplorer();\n\t\t\ttry {\n\n\t\t\t\treturn new RemoteWebDriver(new URL(System.getProperty(\"RemoteUrl\")), capabilities);\n\t\t\t}\n\n\n\t\t\tcatch (MalformedURLException e) {\n\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\n\t\telse\n\t\t{\n\t\tURL IEDriverURL = BrowserDriver.class.getResource(\"/drivers/IEDriverServer.exe\");\n\t\tFile file = new File(IEDriverURL.getFile()); \n\t\tSystem.setProperty(InternetExplorerDriverService.IE_DRIVER_EXE_PROPERTY, file.getAbsolutePath());\n\t\t\n\t\tDesiredCapabilities capabilities = DesiredCapabilities.internetExplorer();\n\t\tcapabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS, true);\n\t\tcapabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);\n\t\t\n\t\treturn new InternetExplorerDriver(capabilities);\n\t\t}\n\t\n\t\t\n\t}", "@Given(\"^Open URL in chrome browser$\")\r\n\tpublic void open_URL_in_chrome_browser() {\n\t nop.Launch(\"chrome\", \"http://automationpractice.com/index.php\");\r\n\t}", "public void openBrowser(Context context, String url) {\n Intent i = new Intent(Intent.ACTION_VIEW);\n i.setData(Uri.parse(url));\n context.startActivity(i);\n }", "public static void main(String[] args) {\n\r\n\t\tWorkingwithfirefox wc = new Workingwithfirefox();\r\n\t\t\r\n\t\twc.invokeBroser();\r\n\t\twc.getTitleOfThePage();\r\n\t\twc.closeBrowser();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public void testSingleBrowserMultiScript() {\n\t\t// Create a SingleBrowserMultiScriptHelper object. A new object should be created for a full set\n\t\t// of openBrowser, executeScript, executeScript, executeScript..., killBrowser calls.\n\t\tSingleBrowserMultiScriptHelper helper = new SingleBrowserMultiScriptHelper(sahiHost, sahiPort, browserType);\n\t\tboolean opened = false;\n\n\t\ttry {\n\t\t\t// Logging default script execution timeout.\n\t\t\tSystem.out.println(helper.getScriptExecutionTimeout());\n\n\t\t\t// Set the script execution timeout to 15 minutes. This applies for each script.\n\t\t\t// Depending on the duration of your scripts, adjust this time accordingly.\n\t\t\thelper.setScriptExecutionTimeout(15*60*1000); // 15 minutes\n\n\t\t\t// Log debug messages\n\t\t\thelper.setLogDebugMessages(true);\n\n\t\t\t// Launch the browser with a start url\n\t\t\topened = helper.launchBrowser(\"http://sahi.co.in/demo/\");\n\n\t\t\tif (!opened) {\n\t\t\t\tSystem.out.println(\"Failed to launch browser correctly. Tests will not proceed\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tSystem.out.println(\"Browser opened\");\n\n\t\t\t// Execute the script\n\t\t\tboolean success = helper.executeScript(userDataScriptsFolder, \"demo/clickCombo.sah\");\n\n\t\t\t// NOTE: If script fails, you may decide whether to move ahead or not depending upon the flow.\n\t\t\tif (!success) {\n\t\t\t\tSystem.out.println(\"Script 1 failed. Tests will not proceed\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tSystem.out.println(\"Script1 success\");\n\n\t\t\t// Randomly doing something between two scripts\n\t\t\tdoSomethingElse();\n\n\t\t\t// Execute the second script\n\t\t\tsuccess = helper.executeScript(userDataScriptsFolder, \"demo/clicksTest.sah\");\n\n\t\t\tif (!success) {\n\t\t\t\tSystem.out.println(\"Script 2 failed. Tests will not proceed\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tSystem.out.println(\"Script2 success\");\n\n\t\t\tdoSomethingElse();\n\n\t\t\t// Execute the third script, by passing in parameters.\n\t\t\tMap<String, String> inputParams = new HashMap<String, String>();\n\t\t\tinputParams.put(\"user\", \"test\");\n\t\t\tinputParams.put(\"password\", \"secret\");\t\t\t\n\t\t\tsuccess = helper.executeScript(userDataScriptsFolder, \"demo/sampleapp_with_params.sah\", inputParams);\n\n\t\t\tif (!success) {\n\t\t\t\tSystem.out.println(\"Script 3 failed. Tests will not proceed\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tSystem.out.println(\"Script3 success\");\n\t\t}\n\t\tfinally {\n\t\t\tif (opened) {\n\t\t\t\t// Kill the browser.\n\t\t\t\thelper.killBrowser();\n\t\t\t}\n\t\t}\t\n\t}", "public static void main(String[] args) throws InterruptedException {\n\t\tString key=\"webdriver.gecko.driver\";\r\n\t\tString value=\".\\\\Drivers\\\\geckodriver.exe\";\r\n\t\tSystem.setProperty(key, value);\r\n\t\t\r\n\t\tWebDriver driver =new FirefoxDriver();\r\n\t\t\r\n\t\tdriver.get(\"https://www.naukri.com/\");\r\n\t\tThread.sleep(1000);\r\n\t\tSet<String> winhandls=driver.getWindowHandles();\r\n\t\t\r\n\t\tfor(String wh:winhandls)\r\n\t\t{\r\n\t\t\tSystem.out.println(wh);\r\n\t\t\tWebDriver win=driver.switchTo().window(wh);\r\n\t\t\twin.close();\r\n\t\t\t//System.out.println(win.getTitle());\r\n\t\t\t\r\n\t\t\t/*if((win.getTitle()).equals(\"Cognizant\"))\r\n\t\t\t{\r\n\t\t\t\tdriver.close();\r\n\t\t\t}\r\n\t\t\t*/\r\n\t\t}\r\n\t\t\r\n\t\t//driver.quit();\r\n\t\t\r\n\r\n\t}", "@BeforeTest(alwaysRun=true)\r\n\t@Parameters({\"browser\",\"url\"})\r\n\tpublic void set(String browser,String url)\r\n\t{\r\n\t\ttry\r\n\t\t{selectBrowser(browser);\r\n\t\tgeturl(url);\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"not set up\");\r\n\t\t}\r\n\t}", "public WebDriver getBrowserObject(BrowserType btype) throws Exception {\n\t\ttry {\n\t\t\tswitch(btype){\n\t\t\tcase Chrome:\n\t\t\t\tChromeBrowser chrome = ChromeBrowser.class.newInstance();\n\t\t\t\tChromeOptions chromeOptions = chrome.getChromeOptions();\n\t\t\t\treturn chrome.getChromeDriver(chromeOptions);\n\t\t\tcase FireFox:\n\t\t\t\tFirefoxBrowser ff = FirefoxBrowser.class.newInstance();\n\t\t\t\tFirefoxOptions ffOptions = ff.getFirefoxOptions();\n\t\t\t\treturn ff.getFirefoxDriver(ffOptions);\n\t\t\t\t\n\t\t\tcase Iexplorer:\n\t\t\t\tIExploreBrowser ie = IExploreBrowser.class.newInstance();\n\t\t\t\tInternetExplorerOptions ieoptions = ie.getIExplorerCapabilities();\n\t\t\t\treturn ie.getIExplorerDriver(ieoptions);\n\t\t\t\n\t\t\tdefault:\n\t\t\t\tthrow new Exception(\"Driver not found \"+btype.name());\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\tlog.info(e.getMessage());\n\t\t\tthrow e;\n\t\t}\n\t}", "public static void main(String [] args) throws IOException {\n MyIe jf=new MyIe();\n jf.getEditPanel().setPage(\"http://www.sina.com\");\n jf.getEditPanel().setEnabled(false);\n jf.getFrame().setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n jf.getFrame().setVisible(true);\n }" ]
[ "0.65795815", "0.6181926", "0.60249007", "0.60191894", "0.60106856", "0.5982617", "0.59667516", "0.5962851", "0.5960498", "0.5923392", "0.58922005", "0.58675903", "0.5858587", "0.5839026", "0.5831146", "0.58244085", "0.58101696", "0.5801322", "0.57999486", "0.57982063", "0.57816976", "0.57815605", "0.5765203", "0.5740753", "0.5724118", "0.5720781", "0.5719858", "0.57193965", "0.5717136", "0.57137716", "0.570789", "0.5688215", "0.56856006", "0.56850696", "0.56804675", "0.5679361", "0.5679186", "0.56752974", "0.5668643", "0.5665035", "0.5651962", "0.56477374", "0.56373423", "0.5629991", "0.5623894", "0.5622886", "0.5620775", "0.5619958", "0.5610826", "0.560166", "0.5597691", "0.55890733", "0.55882514", "0.5582947", "0.5577216", "0.5574443", "0.5562094", "0.55615455", "0.55602455", "0.5559742", "0.5556084", "0.5553037", "0.555292", "0.5552802", "0.5549278", "0.5546267", "0.55433977", "0.5522105", "0.55213296", "0.55212307", "0.5516562", "0.55162233", "0.5513664", "0.5511726", "0.55091095", "0.550827", "0.5507229", "0.5506693", "0.55061495", "0.55041724", "0.5501863", "0.5499836", "0.54998237", "0.54796684", "0.5479398", "0.54774296", "0.54754704", "0.547481", "0.54737866", "0.54704654", "0.5466129", "0.54635334", "0.54596186", "0.5452077", "0.5445093", "0.5439494", "0.5436011", "0.5430356", "0.5425945", "0.54170054", "0.5412975" ]
0.0
-1
No: with default state. .id : memberfalse .value : No .title : .class : Html.LABEL .classIndex : 1
protected GuiTestObject member_No() { return new GuiTestObject( getMappedTestObject("member_No")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic String getLabel() {\n\t\t\t\treturn null;\n\t\t\t}", "@Override\n\tpublic String getLabel() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getLabel() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getLabel() {\n\t\treturn null;\n\t}", "public Identity(){\n setLabel(\"I\");\n }", "@JSProperty(\"showFirstLabel\")\n boolean getShowFirstLabel();", "@Override\n public int getId() {\n return 0;\n }", "public LabelValueBean() {\r\n\t\tsuper(\"\", \"\");\r\n\t}", "public SceneLabelObjectState(){\n\t\tsuper();\n\t\tsuper.setObjectsPrimaryType(SceneObjectType.Label);\n\n\t}", "@Override\n public String getId() {\n return \"1\";\n }", "@Override\n\tpublic int getId() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int getId() {\n\t\treturn 0;\n\t}", "public HTMLLabel() {\n this(null);\n }", "@Override\n\tboolean applyLabel() {\n\n\t\treturn false;\n\t}", "@Override\n public boolean isLabelProperty(Object element, String property) {\n return false;\n }", "@JSProperty(\"showFirstLabel\")\n void setShowFirstLabel(boolean value);", "@Override\n public String getLabel() {\n return label;\n }", "@Override\n public String getId() {\n return null;\n }", "Object getDefaultLabel() {\n return null;\n }", "@Override\r\n\t\tpublic String getId()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "@Override\r\n\tpublic String getId() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic String getId() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic String getId() {\n\t\treturn null;\r\n\t}", "public String getLabel(){\n return label;\n }", "boolean isSetLabel();", "@Override\n\t\tpublic String getId() {\n\t\t\treturn null;\n\t\t}", "@UIAttribute(hidden = true)\n public Long getId() {\n return id;\n }", "@Override\n\tpublic String Show()\n\t{\n\t\treturn id;\n\t\t\n\t}", "@Override\n public void setLabel(String arg0)\n {\n \n }", "public Node( String id )\r\n {\r\n initialize(id);\r\n lbl = id;\r\n }", "private boolean isDefault(int id) {\n return id == -1;\n }", "@Override\n\tpublic String getId() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getId() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getId() {\n\t\treturn null;\n\t}", "public Node()\r\n {\r\n initialize(null);\r\n lbl = id;\r\n }", "public String getLabel(){\n\t\treturn label;\n\t}", "public abstract String getLabel();", "@Override\n public boolean isLabelProperty(Object element, String property) {\n return false;\n }", "public SimpleNodeLabel() {\n super();\n }", "public default boolean shouldHideEntity(){ return false; }", "public BooleanPanel(String id, IModel model) {\n\t\tsuper(id, model, false);\n\t}", "public Object getLabel() \n {\n return label;\n }", "public Label() {\n }", "protected HashSet getNoLabelFor(){\n return tester.noLabelFor;\n }", "ReadOnlyStringProperty labelProperty();", "@DISPID(-2147417110)\n @PropGet\n java.lang.String id();", "@Override\n\tpublic void setId(String id)\n\t{\n\t\t\n\t}", "@Override\n\t\tpublic long getId() {\n\t\t\treturn 0;\n\t\t}", "@Override\r\n\tpublic String getIdFieldName() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic void setId(String id) {\n\t\t\r\n\t}", "@Override\n\tpublic double setId() {\n\t\treturn 0;\n\t}", "public ScText newIdText()\n {\n return newIdText(\"Id\");\n }", "public ScText newIdText()\n {\n return newIdText(\"Id\");\n }", "public ScText newIdText()\n {\n return newIdText(\"Id\");\n }", "public ScText newIdText()\n {\n return newIdText(\"Id\");\n }", "public boolean isLabeledFieldEmptyOrHidden() {\n return labeledFieldEmptyOrHidden;\n }", "Label getLabel();", "Label getLabel();", "Label getLabel();", "@Override\n\tpublic void setLabel(String label) {\n\t\t\n\t}", "public String getLabel()\n { \n return label;\n }", "public SceneLabelObjectState(SceneDivObjectState state){\t\t\n\t\tsuper(state); //will create a SceneDivObjectState from the supplied state\n\t\tsuper.setObjectsPrimaryType(SceneObjectType.Label); //subtypes should also run this statement straight after the super command in order to override their parents type and set their own as the primary/\n\n\t\t//Clear css parameters from general settings passed to this\n\t\t//This is because Dialogue objects treats these differently.\n\t\t//We fill them up correctly when the dialogue specific stuff is processed\n\t\tCurrentBoxCSS=\"\";\n\n\t}", "public Node( String id, String label )\r\n {\r\n initialize(id);\r\n if ( label == null ) lbl = id;\r\n else lbl = label;\r\n }", "public String getLabel() {\n return label;\n }", "public boolean isLabelProperty(Object arg0, String arg1) {\n\t\t\t\treturn false;\r\n\t\t\t\t\r\n\t\t\t}", "public String getId(){return id;}", "protected GuiTestObject member_No(TestObject anchor, long flags) \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"member_No\"), anchor, flags);\n\t}", "public String getLabel();", "public String getLabel();", "public String getLabel();", "public String getLabel();", "public boolean isId() {\n return false;\n }", "private javax.swing.JLabel getLabOptional() {\r\n\tif (ivjLabOptional == null) {\r\n\t\ttry {\r\n\t\t\tivjLabOptional = new javax.swing.JLabel();\r\n\t\t\tivjLabOptional.setName(\"LabOptional\");\r\n\t\t\tivjLabOptional.setText(\"(Optional)\");\r\n\t\t\t// user code begin {1}\r\n\t\t\t// user code end\r\n\t\t} catch (java.lang.Throwable ivjExc) {\r\n\t\t\t// user code begin {2}\r\n\t\t\t// user code end\r\n\t\t\thandleException(ivjExc);\r\n\t\t}\r\n\t}\r\n\treturn ivjLabOptional;\r\n}", "@Override\r\n\t\tpublic void setId(String id)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}", "public void setId(int id){ this.id = id; }", "public String getLabel() {\n return label;\n }", "@Override\n\tpublic void setId(Integer arg0) {\n\n\t}", "public VirtualNode(String id, String label){\n\t\tthis.id = id;\n\t\tthis.label = label;\n\t}", "void setNilLabel();", "public String label() {\n return this.label;\n }", "public boolean hasLabel()\n {\n return _label.isNotNull();\n }", "String getLabel() {\n return label;\n }", "@Override public String getID() { return id;}", "@Override\n\tpublic boolean isLabelProperty(Object arg0, String arg1) {\n\t\treturn false;\n\t}", "public int getLabel() {\n\t\treturn label;\n\t}", "public Field label(String label);", "private String getLabel() {\n return this.label;\n }", "public TreeTag()\n {\n setNoField(true);\n setRootVisible(true);\n icons = new HashMap<String, Object>();\n }", "public LLabel() {\n this(\"\");\n }", "@Override\n public String getElementId()\n {\n return null;\n }", "@Override\r\n\tpublic LabelArticle selectById(int id) {\n\t\treturn null;\r\n\t}", "@JsonGetter(\"label\")\r\n public String getLabel ( ) { \r\n return this.label;\r\n }", "public SceneLabelObjectState(SceneObjectState state){\n\t\tsuper(state);\n\t\tsuper.setObjectsPrimaryType(SceneObjectType.Label);\n\t\t//super.getCurrentType()=SceneObjectType.DialogBox;\n\t\t//super.setObjectsOnlyType(SceneObjectType.DialogBox); //we don't set this anymore as subclasses may set this themselves!\n\n\t\t//Clear css parameters from general settings passed to this\n\t\t//This is because Dialogue objects treats these differently.\n\t\t//We fill them up correctly when the dialogue specific stuff is processed\n\t\tCurrentBoxCSS=\"\";\n\n\t}", "void setId(int val);", "public HTMLLabelElement getElementLabelNombre() { return this.$element_LabelNombre; }", "public HTMLLabelElement getElementLabelNombre() { return this.$element_LabelNombre; }", "public ToggleControl() {\n\t\tfieldName = \"Untitled Control\";\n\t\tvalue = false;\n\t}", "Model(String _name, int _value, int _id) {\n this.name = _name;\n this.value = _value;\n this.id = _id;\n }", "public String getLabel()\n\t{\n\t\treturn label;\n\t}", "public static LabelTarget label() { throw Extensions.todo(); }" ]
[ "0.60298014", "0.5957726", "0.5957726", "0.5957726", "0.5946163", "0.5909966", "0.5837052", "0.58186036", "0.57561064", "0.5712423", "0.5670539", "0.5670539", "0.56639236", "0.5645163", "0.5627965", "0.5599222", "0.5593138", "0.55849063", "0.5503544", "0.54908437", "0.54831004", "0.54831004", "0.54831004", "0.5476384", "0.5461248", "0.5455705", "0.5452356", "0.5431926", "0.54100806", "0.53881335", "0.5380499", "0.5370918", "0.5370918", "0.5370918", "0.5369152", "0.5366925", "0.53523034", "0.53404415", "0.533577", "0.53273654", "0.53265935", "0.5326113", "0.5318737", "0.5312045", "0.5309671", "0.528888", "0.5281195", "0.528004", "0.52724427", "0.52618825", "0.5256724", "0.52546066", "0.52546066", "0.52546066", "0.52546066", "0.52369344", "0.52368695", "0.52368695", "0.52368695", "0.5233741", "0.5231203", "0.5229829", "0.5222572", "0.522233", "0.52185047", "0.52178764", "0.5214201", "0.5214019", "0.5214019", "0.5214019", "0.5214019", "0.5212834", "0.5206881", "0.52052605", "0.5192555", "0.5192536", "0.51854974", "0.51752585", "0.5174018", "0.51740086", "0.51729465", "0.517159", "0.5168058", "0.5165209", "0.5164188", "0.51637655", "0.515972", "0.5158178", "0.5157695", "0.5152496", "0.51497215", "0.51490295", "0.5148872", "0.51479316", "0.51401013", "0.51401013", "0.5135517", "0.5133213", "0.51322347", "0.5130745" ]
0.5301213
45
No: with specific test context and state. .id : memberfalse .value : No .title : .class : Html.LABEL .classIndex : 1
protected GuiTestObject member_No(TestObject anchor, long flags) { return new GuiTestObject( getMappedTestObject("member_No"), anchor, flags); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test217() throws Throwable {\n Hidden hidden0 = new Hidden((Component) null, \".*,r%\", \"Col component ca be added only to a TableBlock.\");\n Checkbox checkbox0 = new Checkbox(hidden0, \"Col component ca be added only to a TableBlock.\", \"Col component ca be added only to a TableBlock.\");\n Checkbox checkbox1 = (Checkbox)checkbox0.addInternalRenderHint(\"z%+/0u:g&ib%-bQ:\");\n assertEquals(\"Col component ca be added only to a TableBlock.\", checkbox1.getFormElementName());\n }", "@Test(timeout = 4000)\n public void test196() throws Throwable {\n Hidden hidden0 = new Hidden((Component) null, \"(vLoO6y2\\\"Vht&{{\", \"(vLoO6y2\\\"Vht&{{\");\n Hidden hidden1 = (Hidden)hidden0.attribute(\"(vLoO6y2\\\"Vht&{{\", \"(vLoO6y2\\\"Vht&{{\");\n assertTrue(hidden1.isValid());\n }", "@Test\n public void test085() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Checkbox checkbox0 = new Checkbox(errorPage0, \">}\\\"_\", \">}\\\"_\");\n String[] stringArray0 = new String[6];\n Checkbox checkbox1 = (Checkbox)checkbox0.attributes(stringArray0);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertFalse(checkbox1._isGeneratedId());\n }", "@Test\n public void test094() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Hidden hidden0 = new Hidden(errorPage0, \"\", \"\");\n Image image0 = new Image(hidden0, \"\", \"\");\n Label label0 = (Label)errorPage0.ins((Object) image0);\n Block block0 = (Block)errorPage0.h3();\n Label label1 = (Label)errorPage0.u((Object) errorPage0);\n assertTrue(label1._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "@Test\n public void test100() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Block block0 = (Block)errorPage0.li();\n Label label0 = (Label)errorPage0.label((Object) null);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(label0._isGeneratedId());\n }", "@Test(timeout = 4000)\n public void test221() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n MockDate mockDate0 = new MockDate((-800), (-800), (-707), 75, 43);\n Label label0 = new Label(errorPage0, mockDate0);\n Component component0 = label0.b();\n component0._getVisibleForm(false);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component0._isGeneratedId());\n }", "@Override\n public boolean isLabelProperty(Object element, String property) {\n return false;\n }", "@Test(timeout = 4000)\n public void test009() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Byte byte0 = new Byte((byte)1);\n Label label0 = new Label(errorPage0, byte0);\n Checkbox checkbox0 = new Checkbox(label0, \"\", \"\");\n Component component0 = checkbox0.renderHint(\"\");\n assertTrue(component0._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "@Test\n public void test105() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = (Label)errorPage0.strong((Object) errorPage0);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(label0._isGeneratedId());\n }", "protected GuiTestObject member_No() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"member_No\"));\n\t}", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n DynamicSelectModel dynamicSelectModel0 = new DynamicSelectModel();\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = new Label(errorPage0, dynamicSelectModel0);\n dynamicSelectModel0.setComponent(label0);\n Component component0 = dynamicSelectModel0.getComponent();\n assertEquals(\"Label_1\", component0.getComponentId());\n }", "@Test(timeout = 4000)\n public void test344() throws Throwable {\n Hidden hidden0 = new Hidden((Component) null, \"(vLoO6y2\\\"Vht&{{\", \"(vLoO6y2\\\"Vht&{{\");\n Map<String, String> map0 = hidden0.getAttributes();\n assertEquals(1, map0.size());\n }", "@Test\n public void getLabel() {\n cleanEntity0();\n\n ReflectionTestUtils.setField(entity0, \"label\", labelS);\n assertEquals(entity0.getLabel(), labelS);\n }", "protected GuiTestObject title() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"title\"));\n\t}", "@Test\n\t@TestProperties(name = \"Set element ${by}:${locator} not selected\", paramsInclude = { \"by\", \"locator\" })\n\tpublic void setElementNotSelected() {\n\t\tthrow new IllegalStateException(\"Unimplemenetd\");\n\t}", "@Test\n public void test121() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = (Label)errorPage0.em((Object) errorPage0);\n assertTrue(label0._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "protected HashSet getNoLabelFor(){\n return tester.noLabelFor;\n }", "@JSProperty(\"showFirstLabel\")\n boolean getShowFirstLabel();", "public void test_getId() {\n assertEquals(\"'id' value should be properly retrieved.\", id, instance.getId());\n }", "protected GuiTestObject member_Yes() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"member_Yes\"));\n\t}", "@Test\n public void test133() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = (Label)errorPage0.dd((Object) errorPage0);\n assertTrue(label0._isGeneratedId());\n \n List<Component> list0 = errorPage0._getChildren();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertEquals(1, list0.size());\n }", "@Test(timeout = 4000)\n public void test197() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Checkbox checkbox0 = new Checkbox(errorPage0, \"kiDz=CI9_ri)~odKM\", \"]1\");\n checkbox0.renderHint(\"]1\");\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "boolean isSetLabel();", "public void testGetId_Accuracy() {\r\n int id = 1;\r\n UnitTestHelper.setPrivateField(AuditDetail.class, auditDetail, \"id\", new Integer(id));\r\n assertEquals(\"The id value should be got properly.\", id, auditDetail.getId());\r\n }", "@Test\r\n public void testSetId() {\r\n System.out.println(\"setId\");\r\n int lId = 0;\r\n \r\n instance.setId(lId);\r\n assertEquals(lId, instance.getId());\r\n \r\n }", "public void testGetIdentifier() {\n\t\tassertEquals(item.getIdentifier(),\"cup8\");\r\n\t}", "@Test(timeout = 4000)\n public void test219() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = new Label(errorPage0, errorPage0);\n label0.map(\"org.mvel.conversion.LongCH$1\");\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(label0._isGeneratedId());\n }", "@Test\n public void test091() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n LabeledWord labeledWord0 = new LabeledWord(\"\");\n Label label0 = (Label)errorPage0.s((Object) labeledWord0);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(label0._isGeneratedId());\n }", "@DISPID(-2147417110)\n @PropGet\n java.lang.String id();", "@Test\n\tpublic void getIdTest() {\n\t}", "@Test(timeout = 4000)\n public void test030() throws Throwable {\n Form form0 = new Form(\"java.lang.String@0000000005\");\n Component component0 = form0.actionBinding(\"o{xQ(Aq;o|d28j\");\n assertFalse(component0._isGeneratedId());\n }", "@Test\n public void idTest() {\n // TODO: test id\n }", "@Test\n public void idTest() {\n // TODO: test id\n }", "@Test\n public void test144() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n CategoryWordTagFactory categoryWordTagFactory0 = new CategoryWordTagFactory();\n CategoryWordTag categoryWordTag0 = (CategoryWordTag)categoryWordTagFactory0.newLabel(\"\", 4152);\n LabeledWord labeledWord0 = new LabeledWord((edu.stanford.nlp.ling.Label) categoryWordTag0, (edu.stanford.nlp.ling.Label) categoryWordTag0);\n Label label0 = (Label)errorPage0.li((Object) labeledWord0);\n assertTrue(label0._isGeneratedId());\n \n Checkbox checkbox0 = new Checkbox(errorPage0, \"\", \"SvTt\");\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertEquals(\"SvTt\", checkbox0.getComponentId());\n }", "@Test(timeout = 4000)\n public void test228() throws Throwable {\n Checkbox checkbox0 = new Checkbox((Component) null, \"unsupported feature \", \"unsupported feature \");\n String[] stringArray0 = new String[2];\n Component component0 = checkbox0.attributes(stringArray0);\n assertSame(component0, checkbox0);\n }", "@Test(timeout = 4000)\n public void test222() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Block block0 = (Block)errorPage0.label();\n assertTrue(block0._isGeneratedId());\n \n block0.id(\"sajp\");\n assertFalse(block0._isGeneratedId());\n }", "@Override\n public boolean isLabelProperty(Object element, String property) {\n return false;\n }", "@Override\n public String getId() {\n return \"1\";\n }", "@Test\n\tpublic void testGetID() {\n\t}", "@Test(timeout = 4000)\n public void test334() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = new Label(errorPage0, errorPage0);\n Component component0 = errorPage0.legend((Object) label0);\n assertTrue(component0._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "public void testSetId_Accuracy() {\r\n int id = 1;\r\n auditDetail.setId(id);\r\n assertEquals(\"The id value should be set properly.\", \"\" + id,\r\n UnitTestHelper.getPrivateField(AuditDetail.class, auditDetail, \"id\").toString());\r\n }", "@Test\r\n\tpublic void testGetState() {\r\n\t}", "@Override\n\t\t\tpublic String getLabel() {\n\t\t\t\treturn null;\n\t\t\t}", "@Override\n\tpublic String getLabel() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getLabel() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getLabel() {\n\t\treturn null;\n\t}", "@Test\n public void test049() throws Throwable {\n Checkbox checkbox0 = new Checkbox((Component) null, \"x_Oj]\", \"x_Oj]\");\n ActionExpression actionExpression0 = checkbox0._getAction();\n }", "@Test\n public void labelIsNotNull() {\n propertyIsNot(null, null, CodeI18N.FIELD_NOT_NULL, \"name property must not be null\");\n }", "@Test(timeout = 4000)\n public void test366() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Byte byte0 = new Byte((byte)1);\n Label label0 = new Label(errorPage0, byte0);\n Component component0 = label0.samp();\n assertTrue(component0._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "@Test\r\n public void getIdTest() {\r\n assertEquals(1, testTile.getId());\r\n }", "public void testGetId_Default_Accuracy() {\r\n assertEquals(\"The id value should be got properly.\", -1, auditDetail.getId());\r\n }", "@Test\n public void test056() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Hidden hidden0 = new Hidden(errorPage0, \"}4>j:%ZQb{mjn\", \"}4>j:%ZQb{mjn\");\n Hidden hidden1 = (Hidden)hidden0.up(0);\n }", "public static LabelTarget label() { throw Extensions.todo(); }", "@Test(timeout = 4000)\n public void test107() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"&!a0Q!<8UDk+%_*<Z'\");\n Hidden hidden0 = new Hidden(xmlEntityRef0, \"&!a0Q!<8UDk+%_*<Z'\", \"&!a0Q!<8UDk+%_*<Z'\");\n // Undeclared exception!\n try { \n hidden0.label();\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test\n public void labelIsNotBlank() {\n propertyIsNot(\"\", null, CodeI18N.FIELD_NOT_BLANK, \"label property must not be blank\");\n }", "@Test\n public void test120() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n ErrorPage errorPage1 = (ErrorPage)errorPage0.clasS((CharSequence) \"\");\n assertEquals(\"wheel_ErrorPage\", errorPage1.getComponentId());\n }", "@Test(timeout = 4000)\n public void test230() throws Throwable {\n Form form0 = new Form(\"println\");\n String[] stringArray0 = new String[0];\n Component component0 = form0.attributes(stringArray0);\n assertEquals(\"println\", component0.getComponentId());\n }", "@Test\r\n public void testSetLabel() {\r\n System.out.println(\"setLabel\");\r\n String label = \"\";\r\n OpeningTicketPurpose instance = new OpeningTicketPurpose();\r\n instance.setLabel(label);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "@Test\r\n public void studNoText() {\r\n onView(withId(R.id.Stud_id)).perform(typeText(\"123456\"));\r\n }", "@Override\n\tboolean applyLabel() {\n\n\t\treturn false;\n\t}", "@Test\r\n public void testGetId() {\r\n System.out.println(\"getId\");\r\n \r\n int expResult = 0;\r\n int result = instance.getId();\r\n assertEquals(expResult, result);\r\n \r\n \r\n }", "@Override\n public int getId() {\n return 0;\n }", "@Test\n public void idTypeTest() {\n // TODO: test idType\n }", "@Test\n @DisplayName(\"Enabled when it is built\")\n @Disabled\n @Tag(\"development\")\n void developmentTest() {\n }", "@Test\r\n public void testSetTypeId() {\r\n System.out.println(\"setTypeId\");\r\n int tid = 0;\r\n \r\n instance.setTypeId(tid);\r\n assertEquals(tid, instance.getTypeId());\r\n \r\n }", "@Test(timeout = 4000)\n public void test277() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n errorPage0.strike();\n Component component0 = errorPage0.legend();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component0._isGeneratedId());\n }", "@Test(timeout = 4000)\n public void test232() throws Throwable {\n Form form0 = new Form(\"ms)\");\n form0.renderHint(\"z:_i>EAQ.Bdq@CL&k?\\\"\");\n Form form1 = form0.renderHint(\"z:_i>EAQ.Bdq@CL&k?\\\"\");\n assertEquals(\"ms)\", form1.getComponentId());\n }", "@Test(timeout = 4000)\n public void test233() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.label();\n Component component1 = component0.code();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component1._isGeneratedId());\n }", "@Test(timeout = 4000)\n public void test006() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n MockDate mockDate0 = new MockDate((-800), (-800), (-707), 75, 43);\n Label label0 = new Label(errorPage0, mockDate0);\n Component component0 = label0.b();\n Submit submit0 = new Submit(component0, \"The list of names must not be null\", \"\\f\");\n Component component1 = label0.strike((Object) submit0);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component1._isGeneratedId());\n }", "@Test(timeout = 4000)\n public void test231() throws Throwable {\n Form form0 = new Form(\"DUP\");\n Component component0 = form0.attributes((String[]) null);\n assertEquals(\"DUP\", component0.getComponentId());\n }", "public static LabelTarget label(Class type) { throw Extensions.todo(); }", "@Test\n\t@TestProperties(name = \"Set element ${by}:${locator} selected\", paramsInclude = { \"by\", \"locator\" })\n\tpublic void setElementSelected() {\n\t\tthrow new IllegalStateException(\"Unimplemenetd\");\n\t}", "@Test\n public void testIntPropertyQuick() {\n Assertions.assertNotEquals(0, classObject.getInt(\"ProcessId\"));\n }", "@Test\n public void testPersonReturn(){\n// System.out.println(\"------->\"+ mHbParam.getId());\n }", "@Test(enabled = false, priority = 7)\n\tpublic void userIdTest() {\n\t\tdriver.findElement(By.cssSelector(\".cms-login-field.ng-pristine.ng-invalid.ng-touched\")).click();\n\t}", "@Test\n public void test066() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = (Label)errorPage0.tt((Object) \"\");\n }", "@Test\n public void test106() throws Throwable {\n Form form0 = new Form(\"&<baD1At0a\");\n boolean boolean0 = form0.equals((Object) \"&<baD1At0a\");\n assertEquals(\"&<baD1At0a\", form0.getComponentId());\n assertFalse(boolean0);\n }", "boolean hasLabel();", "boolean hasLabel();", "boolean hasLabel();", "@Test(timeout = 4000)\n public void test026() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.button();\n assertTrue(component0._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "@Test\n public void test125() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Any any0 = (Any)errorPage0.iframe();\n Block block0 = (Block)errorPage0.p();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(block0._isGeneratedId());\n }", "@Ignore\n @Test\n @Override\n public void testBoolean(TestContext ctx) {\n super.testBoolean(ctx);\n }", "@Test\n public void testBooleanPropertyQuick() {\n Assertions.assertTrue(classObject.getBoolean(\"Started\"));\n }", "@Test\n public void testNoOpenDaysCheck() {\n window.textBox(\"storeNameTFld\").setText(\"store1\");\n window.textBox(\"numOfSeatsTFld\").setText(\"155\");\n window.textBox(\"storeAddressTFld\").setText(\"address\");\n window.textBox(\"storeCityTFld\").setText(\"city\");\n window.textBox(\"storePhoneTFld\").setText(\"123123\");\n window.textBox(\"emailTFld\").setText(\"hlias.karasyahoo.gr\");\n window.textBox(\"fromOpenHoursTFld\").setText(\"18:00\");\n window.textBox(\"toOpenHoursTFld\").setText(\"23:00\");\n window.button(\"addStoreBtn\").click();\n window.optionPane().okButton().click();\n window.label(\"openDaysFalseLbl\").requireVisible();\n }", "@Test\r\n public void testGetTypeId() {\r\n System.out.println(\"getTypeId\");\r\n \r\n int expResult = 0;\r\n int result = instance.getTypeId();\r\n assertEquals(expResult, result);\r\n \r\n \r\n }", "@Override\n public String getLabel() {\n return label;\n }", "@Test\n public void testGetLabelByName() {\n System.out.println(\"getLabelByName\");\n String labelName = \"yupiya\";\n String labelColor = \"#FF3300\";\n\n Label label = createlabel(labelColor, labelName);\n label = issueService.createLabel(label);\n Label result = issueService.getLabelByName(labelName);\n assertEquals(result.getId(), label.getId());;\n }", "@Test(timeout = 4000)\n public void test223() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.table();\n Component component1 = component0.ins();\n ActionExpression actionExpression0 = new ActionExpression(\"java.lang.String@0000000005\");\n Form form0 = new Form(component1, \"? fOYd~2\", actionExpression0);\n form0.id(\"org.mvel.conversion.BooleanCH$2\");\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertEquals(\"Table_1\", component0.getComponentId());\n }", "@Test\n public void test099() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = (Label)errorPage0.abbr((Object) null);\n Link link0 = (Link)errorPage0.a();\n assertTrue(link0._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "@Test(priority =1)\r\n\tpublic void button() {\r\n button = driver.findElement(By.cssSelector(\"button.black\"));\r\n assertFalse(button.isDisplayed());\r\n //sf.assertFalse(button.isDisplayed());\r\n System.out.println(\"Print this\");\r\n\t}", "@Test\n public void test116() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Block block0 = (Block)errorPage0.dt();\n assertTrue(block0._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "@JSProperty(\"showFirstLabel\")\n void setShowFirstLabel(boolean value);", "@Test(timeout = 4000)\n public void test011() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n errorPage0.placeholder(\"h4\");\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "@UniqueID(\"ProvidedID\")\n\t\[email protected]\n\t\tprivate void uniqueIdAnnotation() {\n\t\t}", "@Test\n public void testGetDisplayName_2()\n throws Exception {\n ColumnPreferences fixture = new ColumnPreferences(\"\", \"\", 1, ColumnPreferences.Visibility.HIDDEN, ColumnPreferences.Hidability.HIDABLE);\n fixture.setVisible(true);\n\n String result = fixture.getDisplayName();\n\n assertEquals(\"\", result);\n }", "@Override\n\tpublic boolean isLabelProperty(Object arg0, String arg1) {\n\t\treturn false;\n\t}", "@Test\n public void testSetVisible() {\n writeBanner(getMethodName());\n }", "@Test\r\n public void testGetLabel() {\r\n System.out.println(\"getLabel\");\r\n OpeningTicketPurpose instance = new OpeningTicketPurpose();\r\n String expResult = \"\";\r\n String result = instance.getLabel();\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "@Test(enabled = false)\n public void testCase3() {\n String subHeading = driver.findElement(By.className(\"sub\")).getText();\n Assert.assertTrue(subHeading.contains(\"Practice\"));\n }" ]
[ "0.5992592", "0.5963328", "0.5791646", "0.5690282", "0.56810695", "0.5677698", "0.5618812", "0.56174165", "0.56051743", "0.55974543", "0.5584383", "0.55404186", "0.55364704", "0.550214", "0.55011755", "0.549284", "0.54910225", "0.5430962", "0.5428054", "0.54278225", "0.54104507", "0.53987306", "0.53974146", "0.53925407", "0.53633815", "0.5358544", "0.53567034", "0.5355937", "0.5352736", "0.53505814", "0.53497016", "0.53383124", "0.53383124", "0.53337467", "0.5323306", "0.5319066", "0.53160185", "0.53142947", "0.53119326", "0.53114927", "0.53109145", "0.53049606", "0.5302944", "0.52955395", "0.52955395", "0.52955395", "0.528725", "0.5284553", "0.526397", "0.5263066", "0.5261592", "0.5260324", "0.524924", "0.5247312", "0.52470094", "0.5246934", "0.5246763", "0.5244152", "0.5223651", "0.5222964", "0.52053523", "0.5198347", "0.51921207", "0.51876444", "0.51754", "0.517525", "0.51641303", "0.5159467", "0.5159339", "0.5155491", "0.5150419", "0.51496166", "0.51333165", "0.51312304", "0.51215965", "0.5118236", "0.5098063", "0.5094464", "0.5094464", "0.5094464", "0.5089544", "0.5087475", "0.5085033", "0.50739706", "0.5071457", "0.5070459", "0.5070136", "0.5067625", "0.5057465", "0.50552285", "0.50524324", "0.50503075", "0.50484765", "0.50469154", "0.50421935", "0.50416875", "0.50414467", "0.50378764", "0.50375676", "0.50325495" ]
0.52564406
52
Yes: with default state. .id : membertrue .value : Yes .title : .class : Html.LABEL .classIndex : 0
protected GuiTestObject member_Yes() { return new GuiTestObject( getMappedTestObject("member_Yes")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isSetLabel();", "@JSProperty(\"showFirstLabel\")\n boolean getShowFirstLabel();", "@JSProperty(\"showFirstLabel\")\n void setShowFirstLabel(boolean value);", "protected GuiTestObject member_Yes(TestObject anchor, long flags) \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"member_Yes\"), anchor, flags);\n\t}", "boolean hasLabel();", "boolean hasLabel();", "boolean hasLabel();", "public Button getYes() {\n return yes;\n }", "@Override\n\tboolean applyLabel() {\n\n\t\treturn false;\n\t}", "public SceneLabelObjectState(){\n\t\tsuper();\n\t\tsuper.setObjectsPrimaryType(SceneObjectType.Label);\n\n\t}", "public void setIsActive (boolean IsActive);", "public void setIsActive (boolean IsActive);", "public void setIsActive (boolean IsActive);", "public void setIsActive (boolean IsActive);", "public void setIsActive (boolean IsActive);", "public void setIsActive (boolean IsActive);", "public void setIsActive (boolean IsActive);", "public void setIsActive (boolean IsActive);", "public void setIsActive (boolean IsActive);", "public void setIsActive (boolean IsActive);", "public void setIsActive (boolean IsActive);", "public void setIsActive (boolean IsActive);", "public boolean labelOnOlemassa(String label);", "public TrueValue (){\n }", "public void setIsApproved (boolean IsApproved);", "public void setIsApproved (boolean IsApproved);", "public boolean hasLabel()\n {\n return _label.isNotNull();\n }", "public void setLabeled(){\n\t\tthis._isLabeled = true;\n\t}", "@Override\n public boolean isLabelProperty(Object element, String property) {\n return false;\n }", "public Identity(){\n setLabel(\"I\");\n }", "public String sayYes(){\n return \"Yes\";\n }", "public boolean dynamicLabels() { return dyn_label_cbmi.isSelected(); }", "public boolean isLabelProperty(Object arg0, String arg1) {\n\t\t\t\treturn false;\r\n\t\t\t\t\r\n\t\t\t}", "public Boolean getBooleanAttribute();", "public Boolean isActive(){return status;}", "boolean isSetID();", "@Override\n public void payeeInputVisible(boolean yes) {\n\t\n }", "@Override\n public boolean isLabelProperty(Object element, String property) {\n return false;\n }", "boolean hasCampaignLabel();", "public boolean getEstado(){\n return estado;\n }", "public void clickYes ();", "public void ClickYes()\n\t{\n\t\tdriver.findElementByName(OR.getProperty(\"Yes\")).click();\n\t}", "public BooleanPanel(String id, IModel model) {\n\t\tsuper(id, model, false);\n\t}", "@Override\n\tpublic boolean isLabelProperty(Object arg0, String arg1) {\n\t\treturn false;\n\t}", "public String getName() {\n return \"sdo_boolean\";\n }", "public void setActive(Boolean active)\r\n/* */ {\r\n/* 207 */ this.active = active;\r\n/* */ }", "@JSProperty(\"visible\")\n void setVisible(boolean value);", "public Boolean getIsShow() {\n return isShow;\n }", "public boolean isVisible(String label)\n {\n return true;\n }", "public boolean isActive() { return true; }", "public interface IsShowMessage\n {\n /**\n * not show\n */\n String UN_SHOW = \"0\";\n\n /**\n * show\n */\n String SHOW = \"1\";\n }", "public boolean isLabelProperty(Object arg0, String arg1) {\n\t\t\treturn false;\r\n\t\t}", "@FXML\n public void init_labels() {\n name_output.setText(\"el que digui domini\");\n\n String quatri;\n int q = 1; // pillar de domini\n if(q == 1) quatri = \"Q1\";\n else if (q == 2) quatri =\"Q2\";\n else quatri = \"Q1 & Q2\";\n quatri_output.setText(quatri);\n\n String nivell;\n int n = 1; // pillar de domini\n if(n == 1) nivell = \"Inicial\";\n else if (n == 2) nivell =\"Troncal\";\n else nivell = \"Especialitat\";\n nivell_output.setText(nivell);\n\n boolean tmp = false; // pillar de domini i pot desapareixer aquest boolean tmp\n if(tmp) teo_output.setText(\"Sí\");\n else teo_output.setText(\"No\");\n\n // suposo que domini em retorna un array de bools\n boolean tmp_array[] = {true, false, true, false, true, false};\n String lab = \"\";\n if (tmp_array[0]) lab += \"Projector\\n\";\n if (tmp_array[1]) lab += \"Ubuntu\\n\";\n if (tmp_array[2]) lab += \"Linux/Windows\\n\";\n if (tmp_array[3]) lab += \"Física\\n\";\n if (tmp_array[4]) lab += \"Embeded\\n\";\n if (tmp_array[5]) lab += \"Xarxes\\n\";\n // lab_output.setWrapText(true);\n lab_output.setText(lab);\n }", "@Override\n public String getLabel() {\n return label;\n }", "public void setDisplayTextLabel (boolean value)\r\n {\r\n displayTextLabelInformation_ = value;\r\n }", "@Override\n public void setLabel(String arg0)\n {\n \n }", "@Override\n public void payeeDisplayVisible(boolean yes) {\n\t\n }", "public boolean getLblVisible() {\n return lblVisible;\n }", "private void enableAll(Label id){\n id.setVisible(true);\n enableLabels();\n whoseTurn = playerX;\n label.setText(whoseTurn + \"'s turn to play\");\n }", "public String getLabel(){\n return label;\n }", "boolean hasCustomerLabel();", "@Override\n\t\tpublic boolean hasLabel(Label label) {\n\t\t\treturn false;\n\t\t}", "public boolean shown();", "public boolean isLabelProperty(Object arg0, String arg1) {\n\t\treturn false;\r\n\t}", "public void setActive(boolean active);", "public void setActive(boolean active);", "public void setActive(boolean active);", "boolean isSelected();", "boolean isSelected();", "boolean isSelected();", "boolean isSetDisplayName();", "@Override\n\tpublic String Show()\n\t{\n\t\treturn id;\n\t\t\n\t}", "public void setIsPrimary(boolean isPrimary);", "public boolean isActivo()\r\n/* 144: */ {\r\n/* 145:245 */ return this.activo;\r\n/* 146: */ }", "public boolean isLabelProperty(Object arg0, String arg1) {\n\t\treturn false;\n\t}", "@Override\n\t\t\tpublic String getLabel() {\n\t\t\t\treturn null;\n\t\t\t}", "@Override\r\n public String getOKTitle() {\r\n return \"Set\";\r\n }", "public SimpleObjectProperty<Boolean> visibleProperty () {\n return singleProperty.property1();\n }", "public void setIsDefault(boolean value) {\n this.isDefault = value;\n }", "public boolean isActivo()\r\n/* 110: */ {\r\n/* 111:138 */ return this.activo;\r\n/* 112: */ }", "@Override\n\tpublic String toString() {\n\t\treturn shared?\"yes\":\"no\";\n\t}", "@Override\n public String getId() {\n return \"1\";\n }", "private boolean isDefault(int id) {\n return id == -1;\n }", "@JSProperty(\"visible\")\n boolean getVisible();", "void setIsManaged(boolean isManaged);", "public Boolean getActive()\r\n/* */ {\r\n/* 200 */ return this.active;\r\n/* */ }", "public abstract boolean setActive(boolean active);", "@Override\n\tpublic void setLabel(String label) {\n\t\t\n\t}", "public boolean linkLabels() { return link_labels_cb.isSelected(); }", "public boolean isLabeled(){\n\t\treturn this._isLabeled;\n\t}", "Label getLabel();", "Label getLabel();", "Label getLabel();", "private BooleanValueProvider() {\n this.state = true;\n }", "public void setLabel(String label) {\n this.label = label;\n }", "@JSProperty(\"visible\")\n void setVisible(String value);", "public void setProcessed (boolean Processed)\n{\nset_Value (\"Processed\", new Boolean(Processed));\n}", "public abstract String getLabel();", "public String getLabel(){\n\t\treturn label;\n\t}", "@Override\n public Boolean getValue(SimInfo object) {\n return selectionModel.isSelected(object);\n }" ]
[ "0.6220172", "0.61735535", "0.6049444", "0.5971997", "0.59244514", "0.59244514", "0.59244514", "0.58098394", "0.57725793", "0.5628452", "0.55406576", "0.55406576", "0.55406576", "0.55406576", "0.55406576", "0.55406576", "0.55406576", "0.55406576", "0.55406576", "0.55406576", "0.55406576", "0.55406576", "0.5512179", "0.546564", "0.5459869", "0.5459869", "0.5442599", "0.54309803", "0.5420184", "0.54040414", "0.53935474", "0.5364235", "0.5329026", "0.5320035", "0.53168964", "0.5300429", "0.5284929", "0.52598995", "0.5253748", "0.52427375", "0.5239146", "0.5237903", "0.52278733", "0.5217132", "0.52122176", "0.52114403", "0.521126", "0.52110523", "0.5210963", "0.52085835", "0.52085316", "0.520761", "0.5203508", "0.5169281", "0.5166819", "0.5161285", "0.5156369", "0.51436013", "0.51428026", "0.51399255", "0.5130533", "0.5127652", "0.5127504", "0.5119853", "0.51184684", "0.51184684", "0.51184684", "0.51111203", "0.51111203", "0.51111203", "0.5100103", "0.50977623", "0.50967205", "0.5092512", "0.5087381", "0.50870496", "0.50819045", "0.5081572", "0.50802505", "0.5078292", "0.50770926", "0.5069489", "0.5065737", "0.50642216", "0.50634605", "0.50614053", "0.5059885", "0.5055247", "0.50527173", "0.5051042", "0.50464964", "0.50464964", "0.50464964", "0.5044094", "0.5042424", "0.5038051", "0.5030938", "0.5030153", "0.50259644", "0.5025538" ]
0.63623476
0
Yes: with specific test context and state. .id : membertrue .value : Yes .title : .class : Html.LABEL .classIndex : 0
protected GuiTestObject member_Yes(TestObject anchor, long flags) { return new GuiTestObject( getMappedTestObject("member_Yes"), anchor, flags); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected GuiTestObject member_Yes() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"member_Yes\"));\n\t}", "@Test\n public void testBooleanPropertyQuick() {\n Assertions.assertTrue(classObject.getBoolean(\"Started\"));\n }", "boolean isSetLabel();", "boolean hasLabel();", "boolean hasLabel();", "boolean hasLabel();", "@Test(description = \"Verify that task is created and visual editor is visible\")\n public void verifyIfHighPriority() {\n\n LoginPage loginPage = new LoginPage();\n TaskPage taskPage = new TaskPage();\n loginPage.login(\"[email protected]\", \"UserUser\");\n\n test = report.createTest(\"Task tab is visible!\");\n Assert.assertEquals(taskPage.taskTab(\"Demo Meeting!\"), \"TASK\");\n test.pass(\"Task tab is visible\");\n\n\n test = report.createTest(\"High Priority checkbox is clicked\");\n Assert.assertEquals(taskPage.highPriorityLabel(), \"High Priority\");\n taskPage.highPriorityCheckBox();\n test.pass(\"High Priority checkbox visible and clickable\");\n\n\n test = report.createTest(\"Visual editor is visible and the bar is displayed\");\n taskPage.visualEditor();\n taskPage.visualEditorBarIsDisplayed();\n Assert.assertTrue(taskPage.visualEditorBarIsDisplayed());\n test.pass(\"Visual editor is clicked and the bar is displayed\");\n\n }", "@Test\r\n\tpublic void testGetState() {\r\n\t}", "@Test\n public void testPersonReturn(){\n// System.out.println(\"------->\"+ mHbParam.getId());\n }", "public CampaignEditPage isActive(boolean answer)\r\n\t{ \r\n\t\treadconfig();\r\n\t\t//no\r\n\t\tif(answer==false)\r\n\t\t{\r\n\t\t\tdriver.findElement(By.xpath(library.getProperty(\"camp_status_inactive\"))).click();\r\n\t\t}\t\r\n\t\t//yes\r\n\t\telse if(answer==true)\r\n\t\t{\r\n\t\t\tdriver.findElement(By.xpath(library.getProperty(\"camp_status_active\"))).click();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tthrow new InvalidParameterException\r\n\t\t\t(\"answer \"+answer +\" is not supported, ref automation doc workflow page.\");\r\n\t\t}\r\n\t\tAssert.assertEquals(driver.getTitle(),library.getProperty(\"camp_edit_page_title\"));\r\n\t\treturn new CampaignEditPage(driver);\r\n\t}", "@Test(timeout = 4000)\n public void test217() throws Throwable {\n Hidden hidden0 = new Hidden((Component) null, \".*,r%\", \"Col component ca be added only to a TableBlock.\");\n Checkbox checkbox0 = new Checkbox(hidden0, \"Col component ca be added only to a TableBlock.\", \"Col component ca be added only to a TableBlock.\");\n Checkbox checkbox1 = (Checkbox)checkbox0.addInternalRenderHint(\"z%+/0u:g&ib%-bQ:\");\n assertEquals(\"Col component ca be added only to a TableBlock.\", checkbox1.getFormElementName());\n }", "@Test\n public void test34(){\n Tree<PermissionDO> tree = permissionService.getTree(16);\n for (Tree<PermissionDO> permissionDOTree : tree.getChildren()) {\n if((boolean)(permissionDOTree.getState().get(\"selected\"))){\n System.out.println(permissionDOTree.getText());\n }\n System.out.println(\"--------------------\");\n }\n }", "@Test\n public void test085() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Checkbox checkbox0 = new Checkbox(errorPage0, \">}\\\"_\", \">}\\\"_\");\n String[] stringArray0 = new String[6];\n Checkbox checkbox1 = (Checkbox)checkbox0.attributes(stringArray0);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertFalse(checkbox1._isGeneratedId());\n }", "@Test\r\n public void ActionableTrainingTest() {\n WebElement title1 = driver.findElement(By.cssSelector(\"h3.uagb-ifb-title\"));\r\n \r\n //Assertion for title of the first info box\r\n Assert.assertEquals(title1.getText(), \"Actionable Training\");\r\n \r\n //Print heading of the first info box\r\n Reporter.log(\"Heading is: \" + title1.getText(), true);\r\n }", "@Test\n void testSetIsComplete() {\n Item actualResult = new Item(\"Test Description\", \"2022-05-30\", \"Complete\");\n // Edit the isComplete variable using boolean.\n actualResult.setIsComplete(false);\n assertEquals(\"Incomplete\",actualResult.getIsComplete());\n }", "@Ignore\n @Test\n @Override\n public void testBoolean(TestContext ctx) {\n super.testBoolean(ctx);\n }", "@Test\n public void test1() {\n FirefoxBinary binary =\n new FirefoxBinary(new File(FIREFOX_PATH));\n driver = TestBench.createDriver(\n new FirefoxDriver(binary, new FirefoxProfile()));\n setDriver(driver);\n getDriver().get(URL);\n ButtonElement button = $(ButtonElement.class).first();\n button.click();\n LabelElement label = $(LabelElement.class).id(\"result\");\n\n Assert.assertEquals(\"Thanks , it works!\",label.getText());\n driver.quit();\n }", "@Then(\"detailed description is displaying\")\n public void detailed_description_is_displaying() {\n }", "@Then(\"code description is displaying\")\n public void code_description_is_displaying() {\n }", "@Test\n public void testNoOpenDaysCheck() {\n window.textBox(\"storeNameTFld\").setText(\"store1\");\n window.textBox(\"numOfSeatsTFld\").setText(\"155\");\n window.textBox(\"storeAddressTFld\").setText(\"address\");\n window.textBox(\"storeCityTFld\").setText(\"city\");\n window.textBox(\"storePhoneTFld\").setText(\"123123\");\n window.textBox(\"emailTFld\").setText(\"hlias.karasyahoo.gr\");\n window.textBox(\"fromOpenHoursTFld\").setText(\"18:00\");\n window.textBox(\"toOpenHoursTFld\").setText(\"23:00\");\n window.button(\"addStoreBtn\").click();\n window.optionPane().okButton().click();\n window.label(\"openDaysFalseLbl\").requireVisible();\n }", "@Override\n public Boolean examState(Integer id, String state) {\n return ChainBuilder.builder().handle(state,state);\n }", "@Test\n public void testToggle() {\n // collapse and check the status\n rootPage.menu().collapse();\n Assert.assertTrue(rootPage.menu().isCollapsed());\n // expand and check the status\n rootPage.menu().expand();\n Assert.assertFalse(rootPage.menu().isCollapsed());\n }", "public Test TestStart(boolean run){\n Test theTest = new Test(\n \"Test Start\",//Test Title\n CLASSNAME,//Class Name\n \"start()\",//Method Being Tested\n \"A test to seethe slide can start\", //Description\n \"N/A\", //Input Data\n \"True\" //Expected output\n ); \n \n \n \n \n \n if(run){\n theTest.hasRun();\n try{\n sl.start();\n theTest.setPassed(true);\n }catch(Exception e){\n theTest.setPassed(false);\n }\n \n }\n return theTest;\n }", "@Test\n public void testBooleanProperty() {\n try (ReleasableVariant started = classObject.get(\"Started\")) {\n Assertions.assertTrue(started.booleanValue());\n }\n }", "protected GuiTestObject okbutton() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"okbutton\"));\n\t}", "public boolean defineSetupPage_state() {\r\n\t\treturn IsElementVisibleStatus(DefineSetupPageName);\r\n\t}", "@JSProperty(\"showFirstLabel\")\n boolean getShowFirstLabel();", "@DisplayName(\"Load context\")\n\t@Test\n\tvoid testContext() {\n\t\tLOGGER.info(\"Context loaded successfully\");\n\t\tAssertions.assertTrue(true);\n\t}", "boolean isSetTarget();", "@Test\n public void testCreateView() {\n System.out.println(\"createView\");\n int i =1;\n AfinadorModelo modeloTest = new AfinadorModelo();\n AfinadorControlador controladorTest = new AfinadorControlador(modeloTest,i);\n String test = controladorTest.vista1.bpmOutputLabel.getText();\n if( test != \"APAGADO \")\n fail(\"The test case is a prototype.\");\n }", "public void ClickYes()\n\t{\n\t\tdriver.findElementByName(OR.getProperty(\"Yes\")).click();\n\t}", "public void testGetIdentifier() {\n\t\tassertEquals(item.getIdentifier(),\"cup8\");\r\n\t}", "public void areYouAAAmemberRadioButtonTest() {\r\n\t\tif(Step.Wait.forElementVisible(QuoteForm_ComponentObject.yesRadioButtonLocator, \"Yes radio button\", 5) &&\r\n\t\t\t\tStep.Wait.forElementVisible(QuoteForm_ComponentObject.noRadioButtonLocator, \"No radio button\", 5)){\r\n\t\t\tStep.Wait.forElementVisible(QuoteForm_ComponentObject.yesButtonInvalidLocator, \"Yes button invalid (your quote button has already been pressed before)\", 5);\r\n\t\t\tStep.Wait.forElementVisible(QuoteForm_ComponentObject.noButtonInvalidLocator, \"No button invalid (your quote button has already been pressed before)\", 5);\r\n\t\t\t\r\n\t\t\tStep.Action.click(QuoteForm_ComponentObject.yesRadioButtonLocator, \"AAA member (yes radio button)\");\r\n\t\t\tStep.Wait.forElementVisible(QuoteForm_ComponentObject.yesButtonValidLocator, \"Yes button is now valid\", 5);\r\n\t\t\tStep.Wait.forElementVisible(QuoteForm_ComponentObject.noButtonValidLocator, \"No button is now valid\", 5);\r\n\t\t}\r\n\t}", "protected GuiTestObject title() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"title\"));\n\t}", "@Then(\"^story is displayed in the project page$\")\n public void newStoryNameIsDisplayedInTheProjectPage() {\n assertion.assertTrue(project.isVisibleStory(helper.getStoryVariable()));\n }", "@Then(\"User should be navigated to services page\")\n\tpublic static void services_positive_tc_001() throws Exception {\n\t\ttry {\n\t\t\tstr=driver.findElement(By.xpath(OR_reader(\"Object Locator\",\"services_title\"))).isDisplayed();\n\t\t\tAssert.assertEquals(str, true);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\ttakeScreenShot(\"services_positive_tc_001\");\n\t\t}\n\t}", "@Test(timeout = 4000)\n public void test197() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Checkbox checkbox0 = new Checkbox(errorPage0, \"kiDz=CI9_ri)~odKM\", \"]1\");\n checkbox0.renderHint(\"]1\");\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "boolean isSetID();", "@Test\n\tpublic void contextLoads() {\n\t\t/**/\n\t\t\n\t\tassertTrue(\"BIDON : \", 1 == 1);\n\t\t\n\t}", "@Test(groups ={Slingshot,Regression})\n\tpublic void VerifyNewUserDetailsactivation() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify the Super User Overlay Yes Button Selection\");\n\n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"MuMVTestDatas\");\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.BgbloginDetails(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t.ClickManageUserLink()\n\t\t.ClickAddNewUserLink()\n\t\t.AddUserRadioButton()\n\t\t.SuperUserCreation()\n\t\t.SuperUserOverlayyes(); \t \t \t \t \n\t}", "boolean hasCampaignLabel();", "public void testIsModal() {\n System.out.println(\"isModal\");\n Wizard instance = new Wizard();\n boolean expResult = false;\n boolean result = instance.isModal();\n assertEquals(expResult, result);\n }", "public void clickYes ();", "boolean isDisplayed();", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n DynamicSelectModel dynamicSelectModel0 = new DynamicSelectModel();\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = new Label(errorPage0, dynamicSelectModel0);\n dynamicSelectModel0.setComponent(label0);\n Component component0 = dynamicSelectModel0.getComponent();\n assertEquals(\"Label_1\", component0.getComponentId());\n }", "@Test\n public void idTest() {\n // TODO: test id\n }", "@Test\n public void idTest() {\n // TODO: test id\n }", "@Then(\"^product in shown as available\")\n public void clicks_On_Add_Button(){\n }", "@Test\n public void testWrongOpenHoursCheck() {\n window.textBox(\"storeNameTFld\").setText(\"store1\");\n window.textBox(\"numOfSeatsTFld\").setText(\"155\");\n window.textBox(\"storeAddressTFld\").setText(\"address\");\n window.textBox(\"storeCityTFld\").setText(\"city\");\n window.textBox(\"storePhoneTFld\").setText(\"123123\");\n window.textBox(\"emailTFld\").setText(\"hlias.karasyahoo.gr\");\n window.textBox(\"fromOpenHoursTFld\").setText(\"00:00\");\n window.textBox(\"toOpenHoursTFld\").setText(\"00:00\"); \n window.button(\"addStoreBtn\").click();\n window.optionPane().okButton().click();\n window.label(\"openHoursFalseLbl\").requireVisible();\n }", "@Test(timeout = 4000)\n public void test221() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n MockDate mockDate0 = new MockDate((-800), (-800), (-707), 75, 43);\n Label label0 = new Label(errorPage0, mockDate0);\n Component component0 = label0.b();\n component0._getVisibleForm(false);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component0._isGeneratedId());\n }", "@Test\n public void test049() throws Throwable {\n Checkbox checkbox0 = new Checkbox((Component) null, \"x_Oj]\", \"x_Oj]\");\n ActionExpression actionExpression0 = checkbox0._getAction();\n }", "@Test(description = \"Проверка отображения стартовой страницы\")\n public void startPageDisplayCheck() {\n StartPage startPage = (StartPage) context.getBean(\"startPage\");\n\n startPage.checkPageShow();\n }", "@Test\n\tpublic void testShow() {\n\t}", "@Test\r\n public void regButton(){\r\n onView(withId(R.id.edUserReg)).perform(typeText(\"Jade\"));\r\n onView(withId(R.id.Stud_id)).perform(typeText(\"Jade\"));\r\n onView(withId(R.id.edPassReg)).perform(typeText(\"hey\"));\r\n onView(withId(R.id.edPassConReg)).perform(typeText(\"hey\"));\r\n onView(withId(R.id.btnReg)).perform(click());\r\n }", "boolean isSetDesc();", "@Test\n public void setShuffleButtonState() {\n expandPanel();\n\n onView(withId(R.id.shuffle)).perform(click()); //Set state to shuffled\n\n onView(withId(R.id.shuffle)).check(matches(withHighlightState(true)));\n }", "@Test\n public void test105() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = (Label)errorPage0.strong((Object) errorPage0);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(label0._isGeneratedId());\n }", "public void verifyTodoCompleteFrontend(String toDoName, String status) {\n try {\n Thread.sleep(smallTimeOut);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n //TODO move xpath to properties file\n WebElement toDoRow = getDriver()\n .findElement(By.xpath(\"//input[@class='newTodoInput'][@value='\" + toDoName + \"']/ancestor::tr[contains(@class,'newRow')]\"));\n WebElement toDoCategory = getDriver().findElement(By.xpath(\n \"//input[@class='newTodoInput'][@value='\" + toDoName + \"']/ancestor::tr[contains(@class,'newRow')]//div[contains(@class,'ui dropdown category')]\"));\n WebElement toDoClient = getDriver().findElement(By.xpath(\n \"//input[@class='newTodoInput'][@value='\" + toDoName + \"']/ancestor::tr[contains(@class,'newRow')]//div[contains(@class,'ui dropdown client')]\"));\n WebElement toDoAuditor = getDriver().findElement(By.xpath(\n \"//input[@class='newTodoInput'][@value='\" + toDoName + \"']/ancestor::tr[contains(@class,'newRow')]//div[contains(@class,'ui dropdown auditor')]\"));\n\n if (status.equals(\"true\")) {\n getLogger().info(\"Verify Completed To-Do front-end\");\n if ((toDoRow.getAttribute(\"class\").endsWith(\"todoCompleted\")) && (toDoCategory.getAttribute(\"class\").endsWith(\"disabled\")) && (toDoClient\n .getAttribute(\"class\").endsWith(\"disabled\")) && (toDoAuditor.getAttribute(\"class\").endsWith(\"disabled\"))) {\n NXGReports.addStep(\"Verify Completed To-Do front-end\", LogAs.PASSED, null);\n } else {\n AbstractService.sStatusCnt++;\n NXGReports.addStep(\"Verify Completed To-Do front-end\", LogAs.FAILED, new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n } else {\n getLogger().info(\"Verify not Completed To-Do front-end\");\n if ((!toDoRow.getAttribute(\"class\").endsWith(\"todoCompleted\")) && (!toDoCategory.getAttribute(\"class\")\n .endsWith(\"disabled\")) && (!toDoClient.getAttribute(\"class\").endsWith(\"disabled\")) && (!toDoAuditor.getAttribute(\"class\")\n .endsWith(\"disabled\"))) {\n NXGReports.addStep(\"Verify not Completed To-Do front-end\", LogAs.PASSED, null);\n } else {\n AbstractService.sStatusCnt++;\n NXGReports.addStep(\"Verify not Completed To-Do front-end\", LogAs.FAILED, new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n }\n }", "@Test(timeout = 4000)\n public void test009() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Byte byte0 = new Byte((byte)1);\n Label label0 = new Label(errorPage0, byte0);\n Checkbox checkbox0 = new Checkbox(label0, \"\", \"\");\n Component component0 = checkbox0.renderHint(\"\");\n assertTrue(component0._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "@Test\n public void testSetStatus() {\n System.out.println(\"setStatus\");\n Member instance = member;\n \n String status = \"APPLIED\";\n instance.setStatus(status);\n \n String expResult = status;\n String result = instance.getStatus();\n \n assertEquals(expResult,result);\n }", "@Test\n public void test144() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n CategoryWordTagFactory categoryWordTagFactory0 = new CategoryWordTagFactory();\n CategoryWordTag categoryWordTag0 = (CategoryWordTag)categoryWordTagFactory0.newLabel(\"\", 4152);\n LabeledWord labeledWord0 = new LabeledWord((edu.stanford.nlp.ling.Label) categoryWordTag0, (edu.stanford.nlp.ling.Label) categoryWordTag0);\n Label label0 = (Label)errorPage0.li((Object) labeledWord0);\n assertTrue(label0._isGeneratedId());\n \n Checkbox checkbox0 = new Checkbox(errorPage0, \"\", \"SvTt\");\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertEquals(\"SvTt\", checkbox0.getComponentId());\n }", "public boolean isActive() {\n/* 134 */ if (this.stub != null) {\n/* 135 */ return this.stub.isActive();\n/* */ }\n/* 137 */ return false;\n/* */ }", "@Test\n\t@TestProperties(name = \"Set element ${by}:${locator} selected\", paramsInclude = { \"by\", \"locator\" })\n\tpublic void setElementSelected() {\n\t\tthrow new IllegalStateException(\"Unimplemenetd\");\n\t}", "@Test\n\tpublic void testGetID() {\n\t}", "@Test(timeout = 4000)\n public void test196() throws Throwable {\n Hidden hidden0 = new Hidden((Component) null, \"(vLoO6y2\\\"Vht&{{\", \"(vLoO6y2\\\"Vht&{{\");\n Hidden hidden1 = (Hidden)hidden0.attribute(\"(vLoO6y2\\\"Vht&{{\", \"(vLoO6y2\\\"Vht&{{\");\n assertTrue(hidden1.isValid());\n }", "@Test\n public void testDAM31801001() {\n // Data preparation\n {\n clearAndCreateTestDataForBook();\n }\n\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n TodoListPage todoListPage = dam3IndexPage.dam31801001Click();\n\n todoListPage.setTodoTitleContent(\"Todo 1\");\n\n todoListPage.setTodoCreationDate(\"2016/12/30\");\n\n todoListPage = todoListPage.searchUsingClassTypeAlias();\n\n // Assert the todo record count from DB table\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getIncompletTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getTotalTodoCount(), equalTo(\"2\"));\n\n boolean isTodoPresent = todoListPage.isTodoDisplayed(\"0000000001\");\n assertThat(isTodoPresent, is(true));\n\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000010\");\n assertThat(isTodoPresent, is(true));\n\n // this todo does not meets the criteria.Hence not displayed.\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000002\");\n assertThat(isTodoPresent, is(false));\n }", "@Test(priority = 66)\r\n@Epic(\"BILLS PAYMENT\")\r\n@Features(value = { @Feature(value = \"BUY GOODS USING MPESA\") })\r\n@Step (\"BUY GOODS USING MPESA\")\r\n@Severity(SeverityLevel.TRIVIAL)\r\npublic void Buy_Goods_Using_MPESA_Test_cases() {\n\tSystem.out.println(\"BUY GOODS AND SERVICES\");\t\r\n\tSystem.out.println(\"*************************(1)Running Buy Goods Using MPESA Testcases***********************************\");\r\n\r\n}", "@Test\n @DisplayName(\"Enabled when it is built\")\n @Disabled\n @Tag(\"development\")\n void developmentTest() {\n }", "public void test_getId() {\n assertEquals(\"'id' value should be properly retrieved.\", id, instance.getId());\n }", "boolean isSetSpecimen();", "@Test\n public void testGetLabelByName() {\n System.out.println(\"getLabelByName\");\n String labelName = \"yupiya\";\n String labelColor = \"#FF3300\";\n\n Label label = createlabel(labelColor, labelName);\n label = issueService.createLabel(label);\n Label result = issueService.getLabelByName(labelName);\n assertEquals(result.getId(), label.getId());;\n }", "private void verifyTextAndLabels(){\n common.explicitWaitVisibilityElement(\"//*[@id=\\\"content\\\"]/article/h2\");\n\n //Swedish labels\n common.timeoutMilliSeconds(500);\n textAndLabelsSwedish();\n\n //Change to English\n common.selectEnglish();\n\n //English labels\n textAndLabelsEnglish();\n }", "@Test\n\tpublic void test03_CheckTogglesAndTheirTooltipsForEnableddisabledUsers() {\n\t\tinfo(\"Test 3: Check toggles and their tooltips for enabled/disabled users\");\n\t\tcreateNewUser();\n\t\tString[] users={username,DATA_USER3};\n\t\tsearchUserName = userSearchOptionData.getUserSearchOptionByIndex(0);\n\t\tnavToolBar.goToUsersAndGroupsManagement();\n \t \tuserAndGroup.checkStatusDropBox();\n \t \tdisableUser();\n\t\t/*Step Number: 1\n\t\t*Step Name: Step 1: Open User Management\n\t\t*Step Description: \n\t\t\t- Log in as admin.\n\t\t\t- Go to Administration \n\t\t\t-\n\t\t\t-> Community \n\t\t\t-\n\t\t\t-> Manage Community.\n\t\t\t- Choose the tab \"User Management\".\n\t\t*Input Data: \n\t\t\t\n\t\t*Expected Outcome: \n\t\t\t- The list of users is displayed: enabled and disabled\n\t\t\t- A new Column \"Enabled\" is displayed before the column \"Action\"\n\t\t\t- Toggles are displayed in the column: + For enabled users: toggle displays Yes.+ For disabled user: toggle displays No.*/\n \t \tuserAndGroup.checkDisplayAllUsers(users);\n \t \tuserAndGroup.selectDisableStatus(\"Enabled\");\n \t \tuserAndGroup.searchUser(DATA_USER3, searchUserName);\n \t \tuserAndGroup.checkDisplayEnableUser(DATA_USER3);\n \t \tuserAndGroup.selectDisableStatus(\"Disabled\");\n \t \tuserAndGroup.searchUser(username, searchUserName);\n \t \tuserAndGroup.checkDisplayDisableUser(username);\n \t \t\n\t\t/*Step number: 2\n\t\t*Step Name: Step 2: Check tooltip of No button.\n\t\t*Step Description: \n\t\t\t- Hover cursor over the toggle \"No\".\n\t\t*Input Data: \n\t\t\t\n\t\t*Expected Outcome: \n\t\t\t- The tooltip is Enable User.*/\n\n\t\t/*Step number: 3\n\t\t*Step Name: Step 3: Check tooltip of Yes button.\n\t\t*Step Description: \n\t\t\t- Hover cursor over the toggle \"Yes\".\n\t\t*Input Data: \n\t\t\t\n\t\t*Expected Outcome: \n\t\t\t- The tooltip is Disable User*/ \n \t \tdeleteUser();\n \t}", "@Test\n public void testStoreAlreadyExistsInDatabaseCheck() {\n window.textBox(\"storeNameTFld\").setText(\"store1\");\n window.textBox(\"numOfSeatsTFld\").setText(\"155\");\n window.textBox(\"storeAddressTFld\").setText(\"storeAddress1\");\n window.textBox(\"storeCityTFld\").setText(\"city\");\n window.textBox(\"storePhoneTFld\").setText(\"123123\");\n window.textBox(\"emailTFld\").setText(\"hlias.karasyahoo.gr\");\n window.textBox(\"fromOpenHoursTFld\").setText(\"18:00\");\n window.textBox(\"toOpenHoursTFld\").setText(\"23:00\"); \n window.checkBox(\"mondayCBx\").check();\n window.button(\"addStoreBtn\").click();\n window.optionPane().requireInformationMessage().requireMessage(\"Store already exists in the database!\");\n window.optionPane().okButton().click();\n window.optionPane().okButton().click();\n }", "@Test(groups ={Slingshot,Regression})\n\tpublic void verifyUsertable() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify AddnewView Button Overlay\"); \t \t \t \n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"MuMVTestDatas\");\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.BgbloginDetails(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t.ClickManageUserLink()\n\t\t.Verifyuserlistindb(userProfile);\n\t}", "@Then(\"User can view the dashboard\")\npublic void user_can_view_the_dashboard() {\n addCust = new AddcustomerPage(driver);\n Assert.assertEquals(\"Dashboard / nopCommerce administration\", addCust.getPageTitle());\n \n}", "public Boolean isActive(){return status;}", "@Test\n\t@Deployment(resources = \"process.bpmn\")\n\tpublic void testCurrentStatus() {\n\t\t\t\n\t\t// Obtain test run of BPMN\n\t\tProcessInstanceWithVariables processInstance = (ProcessInstanceWithVariables)processEngine().getRuntimeService().startProcessInstanceByKey(PROCESS_DEFINITION_KEY);\n\n\t\t// Obtain the value of the deliveryOK variable\n\t\tboolean deliveryOK = (boolean)processInstance.getVariables().get(\"deliveryOK\");\n\t\tSystem.out.println(\"DeliveryOK: \" + deliveryOK);\n\t\t\t\n\t \n\t\t// Obtain a reference to the current task\n\t\tTaskAssert task = assertThat(processInstance).task();\n\n\t\tif (deliveryOK) {\n\t\t\t\tassertThat(processInstance).isWaitingAt(\"Activity_066txhw\");\n\t\t\t\ttask.hasName(\"Checkout 1\");\n\t\t\t\ttask.isNotAssigned();\n\t\t\t} else {\n\t\t\t\tassertThat(processInstance).isWaitingAt(\"Activity_19fouew\");\n\t\t\t\ttask.hasName(\"Checkout 2\");\n\t\t\t\ttask.isNotAssigned();\n\t\t\t}\n\n\t\t}", "@Override\n public boolean isLabelProperty(Object element, String property) {\n return false;\n }", "@Then(\"Admin homepage should be loaded successfully\")\r\npublic void admin_homepage_should_be_loaded_successfully() {\n\r\n\tboolean isloginsuccess=uAdminlogin.isHeaderFound();\r\n\tAssert.assertEquals(isloginsuccess, true);\r\n\t\r\n}", "@Test\n void setName() {\n assertEquals(\"Process\", new Process() {{\n setName(\"Process\");\n }}.getName());\n }", "@Test\n\tpublic void getIdTest() {\n\t}", "@Test\n public void testSetVisible() {\n writeBanner(getMethodName());\n }", "boolean hasTestFlag();", "boolean isSetDisplayName();", "public void v_Verify_Guest1_Displayed(){\n\t}", "public void testexisteDescripcion()\n\t{\n\t\tString descripcion = new String(\"admin\");\n\t\tLong id = new Long(\"-1\");\n\t\t\n\t\tBoolean bol = servicio.existeDescripcion(descripcion, id);\n\t\t\tassertEquals(bol.booleanValue(), true);\n\t}", "@Test\n public void clickOnTask_ShowsDetailUi() {\n Song requestedSong = new Song(\"Details Requested\", \"For this task\", SOURCE);\n Playlist playlist = new Playlist(requestedSong);\n\n // When open task details is requested\n mPlaylistPresenter.openSongPlayer(playlist);\n\n // Then task detail UI is shown\n verify(mTasksView).showSongPlayerUI(any(Playlist.class));\n }", "@Test\n\tpublic void activeHires()\n\t{\t\t\n\t\tassertTrue(controller.getReport().getNoOfActiveHires() == 1);\n\t}", "@Given(\"user is on admin login page\")\r\npublic void user_is_on_admin_login_page() {\n\r\n\tdriver.get(\"http://uniformm1.upskills.in/admin/index.php?route=common/dashboard&token=GojamxBwtSmLEAaHnCBgb3P8yKe4N2vQ\");\r\n\tString curTitle = driver.getTitle();\r\n\t\r\n\tAssert.assertEquals(curTitle, \"Administration\");\r\n}", "@Test\n public void testCloseMenuPlan() {\n System.out.println(\"closeMenuPlan\");\n MenuPlan instance = new MenuPlan();\n instance.closeMenuPlan();\n boolean expResult = true;\n boolean result = false;\n if(instance.getState() == State.CLOSED){\n result = true;\n } \n assertEquals(result, expResult);\n \n }", "@Test\n\tpublic void test_returnBooleanFoo_true() {\n\n\t}", "public static void testShowTodoView(){\n }", "@Test\n public void testifyName() throws InterruptedException {\n onView(withId(R.id.name)).check(matches(isDisplayed()));\n }", "@Then(\"I land on checkboxradio page\")\n public void i_land_on_checkboxradio_page() {\n System.out.println(\"checkbox landing page\");\n }", "boolean isSetId();", "boolean isTestEligible();", "@Test(priority =1)\r\n\tpublic void button() {\r\n button = driver.findElement(By.cssSelector(\"button.black\"));\r\n assertFalse(button.isDisplayed());\r\n //sf.assertFalse(button.isDisplayed());\r\n System.out.println(\"Print this\");\r\n\t}", "@Test\n public void testGetInfo_1()\n throws Exception {\n LogicStep fixture = new LogicStep();\n fixture.setScript(\"\");\n fixture.setName(\"\");\n fixture.setOnFail(\"\");\n fixture.setScriptGroupName(\"\");\n fixture.stepIndex = 1;\n\n String result = fixture.getInfo();\n\n assertEquals(\"Logic Step: \", result);\n }", "@JSProperty(\"showFirstLabel\")\n void setShowFirstLabel(boolean value);" ]
[ "0.62011623", "0.5805598", "0.57554275", "0.5540013", "0.5540013", "0.5540013", "0.54462063", "0.5389752", "0.53684264", "0.53637797", "0.53345716", "0.5332963", "0.5318455", "0.5306729", "0.53040814", "0.5299706", "0.529075", "0.52856743", "0.52801526", "0.5278432", "0.5273243", "0.5255535", "0.52501166", "0.5249263", "0.5236679", "0.52339363", "0.5217688", "0.52102536", "0.52059793", "0.5197072", "0.5191397", "0.51824564", "0.5181887", "0.5181468", "0.51700115", "0.5169074", "0.51626885", "0.5159346", "0.51554054", "0.5150429", "0.51472324", "0.5143932", "0.51432383", "0.5125768", "0.51255107", "0.51241875", "0.51241875", "0.51065505", "0.51044124", "0.5103423", "0.51032794", "0.5095386", "0.509064", "0.5088996", "0.5088804", "0.5083595", "0.5081302", "0.5078861", "0.5067353", "0.5065214", "0.50613153", "0.5059722", "0.5056433", "0.5054946", "0.50473315", "0.50471336", "0.5046472", "0.5046228", "0.5045957", "0.5042669", "0.5037863", "0.50360966", "0.5035808", "0.50341225", "0.5033817", "0.50337636", "0.50329727", "0.50321656", "0.5031391", "0.50292134", "0.50284845", "0.5026434", "0.50255895", "0.50234705", "0.5021922", "0.50174534", "0.5017328", "0.5012112", "0.5005486", "0.5003472", "0.500232", "0.50015527", "0.50010586", "0.49988836", "0.49974602", "0.49945495", "0.49843833", "0.4983471", "0.4982269", "0.49807248" ]
0.57656443
2
Nextsubmit: with default state. .id : initdetails_nextButton .type : submit .value : Next .title : .class : Html.BUTTON .name : .classIndex : 0
protected GuiTestObject nextsubmit() { return new GuiTestObject( getMappedTestObject("nextsubmit")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void clickNextBtn() {\t\n\t\ttry {\n\t\t\tdriver.findElement(By.id(\"nextquest\")).click();\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\tSystem.out.println(\"Next button in Q&A submit doesnt work\");\n\t\t}\n\t}", "public static void checkAndClickNextButton() {\r\n\t\tcheckNoSuchElementExceptionByID(\"nextquest\", \"\\\"Next\\\" button\");\r\n\t\tcheckElementNotInteractableExceptionByID(\"nextquest\", \"\\\"Next\\\" button\");\r\n\t}", "public void goToNextPage() {\n nextPageButton.click();\n }", "public static void clickNextBtnGame() {\t\n\t\tdriver.findElement(By.id(\"btnnext\")).click();\n\t}", "public void ClickNext() {\r\n\t\tnext.click();\r\n\t\t\tLog(\"Clicked the \\\"Next\\\" button on the Birthdays page\");\r\n\t}", "private void showNextButton(){\n\t\tif(nextButton != null){\n\t\t\thideSubmitBtn();\n\t\t\tmainWindow.addLayer(nextButton, BUTTON_LAYER, submitBtnX, submitBtnY);\n\t\t}\n\t}", "private void btnNext_click(ActionEvent e) {\n\t\tString stuAnswer = \"\";\r\n\t\tif (rdoItemA.isSelected()) {\r\n\t\t\tstuAnswer = \"A\";\r\n\t\t}\r\n\t\tif (rdoItemB.isSelected()) {\r\n\t\t\tstuAnswer = \"B\";\r\n\t\t}\r\n\t\tif (rdoItemC != null) {\r\n\t\t\tif (rdoItemC.isSelected()) {\r\n\t\t\t\tstuAnswer = \"C\";\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (rdoItemD != null) {\r\n\t\t\tif (rdoItemD.isSelected()) {\r\n\t\t\t\tstuAnswer = \"D\";\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (!stuAnswer.isEmpty()) {\r\n\t\t\tExamItem bean = eiList.get(questionNO - 1);\r\n\r\n\t\t\tif (bean.getStuAnswer() == null || !bean.getStuAnswer().equalsIgnoreCase(stuAnswer)) {\r\n\t\t\t\tbean.setStuAnswer(stuAnswer);\r\n\t\t\t\tif (bean.getStdAnswer().equalsIgnoreCase(stuAnswer)) {\r\n\t\t\t\t\tbean.setMarkResult(1l);\r\n\t\t\t\t\tbean.setGainScore(bean.getStdScore());\r\n\t\t\t\t} else {\r\n\t\t\t\t\tbean.setMarkResult(0l);\r\n\t\t\t\t\tbean.setGainScore(0l);\r\n\t\t\t\t}\r\n\t\t\t\texamItemService.update(bean);\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (questionNO == questionNum) {\r\n\t\t\tJOptionPane.showMessageDialog(null, \"这是最后一题。\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tquestionNO++;\r\n\t\tinitData();\r\n\t}", "private LoginPage clickOnNext() {\n if (waitForElementDisplayed(By.id(ID_NEXT), 10, 20)) {\n clickOnElementUsingJquery(driver.findElement(By.id(ID_NEXT)));\n return this;\n }\n return null;\n }", "public void clickNextButton() {\n if (editSummaryFragment.isActive()) {\n //we're showing the custom edit summary window, so close it and\n //apply the provided summary.\n editSummaryFragment.hide();\n editPreviewFragment.setCustomSummary(editSummaryFragment.getSummary());\n } else if (editPreviewFragment.isActive()) {\n //we're showing the Preview window, which means that the next step is to save it!\n if (abusefilterEditResult != null) {\n //if the user was already shown an AbuseFilter warning, and they're ignoring it:\n funnel.logAbuseFilterWarningIgnore(abusefilterEditResult.getCode());\n }\n getEditTokenThenSave(false);\n funnel.logSaveAttempt();\n } else {\n //we must be showing the editing window, so show the Preview.\n hideSoftKeyboard(this);\n editPreviewFragment.showPreview(title, sectionText.getText().toString());\n funnel.logPreview();\n }\n }", "public SelectGradableItemsPage clickNextButton() throws Exception {\n try {\n logInstruction(\"LOG INSTRUCTION:clicking the next button\");\n frameSwitch.switchToFrameContent();\n uiDriver.waitToBeDisplayed(btnNextButton, waitTime);\n btnNextButton.click();\n } catch (Exception e) {\n throw new Exception(\"ISSUE IN CLICKING THE 'Next' BUTTON\" + \"clickNextButton\" + e\n .getLocalizedMessage());\n }\n return new SelectGradableItemsPage(uiDriver);\n }", "public void nextBtnClicked(View v) {\r\n//\t\tshowMsg(\"Next Button clicked: \"+ v);\r\n\t\tresetSelection();\r\n\t\tnextQuestion(1);\r\n\t\tshowQuesAndAnswers();\r\n\t}", "@OnClick\n public void onClickNext() {\n alipayPhoneLogging();\n String phoneNumber = this.airPhone.phoneInputText();\n String countryCode = this.phoneNumberInput.getCountryCode();\n getAlipayActivity().setPhoneNumber(phoneNumber);\n CreatePaymentInstrumentRequest.forAlipay(new Builder().alipayLoginId(getAlipayActivity().getAlipayId()).mobilePhoneNumber(phoneNumber).mobilePhoneCountry(countryCode).build()).withListener((Observer) this.requestListener).execute(this.requestManager);\n this.nextButton.setState(AirButton.State.Loading);\n }", "public static void checkAndClickNextButtonTriviaMode() {\r\n\t\tcheckNoSuchElementExceptionByID(\"btnnext\", \"\\\"Next\\\" button in trivia mode\");\r\n\t\tcheckElementNotInteractableExceptionByID(\"btnnext\", \"\\\"Next\\\" button in trivia mode\");\r\n\t}", "@OnClick\n public void onNext() {\n KeyboardUtils.dismissSoftKeyboard(getView());\n this.nextButton.setState(AirButton.State.Loading);\n RegistrationAnalytics.trackClickEvent(RegistrationAnalytics.NEXT_BUTTON, \"phone\", getNavigationTrackingTag());\n AccountCreationRequest.forValidatingPhone(this.airPhone.formattedPhone()).withListener((Observer) this.phoneNumberExistValidationRequestListener).execute(this.requestManager);\n }", "public void nextButtonClicked()\r\n {\n manager = sond.getManager();\r\n String insertSearchDelete = sond.getInsertSearchDelete();\r\n AnimatorThread animThread = model.getThread();\r\n\r\n // falls der Thread pausiert ist, wird er beim betätigen des\r\n // next-Buttons aufgeweckt\r\n if (button.getPlay() && animThread != null && animThread.isAlive())\r\n {\r\n if (!animThread.getWait())\r\n {\r\n animThread.interrupt();\r\n }\r\n else\r\n {\r\n animThread.wake();\r\n }\r\n }\r\n // Redo muss vor den weiteren if Anweisungen stehen, damit erst alle\r\n // Redo ausgeführt werden, bevor neue Aktionen dem manager hinzugefuegt\r\n // werden\r\n else if (manager.canRedo())\r\n {\r\n manager.redo();\r\n }\r\n else if (!sond.getArrayPosition() && insertSearchDelete.equals(\"insert\"))\r\n {\r\n sond.nextInsertPosition();\r\n UndoRedoSetAnimation command = new UndoRedoSetAnimation(sond);\r\n manager.addEdit(command);\r\n }\r\n else if (!sond.getArrayPosition() && insertSearchDelete.equals(\"search\"))\r\n {\r\n sond.nextSearchPosition();\r\n UndoRedoSetAnimation command = new UndoRedoSetAnimation(sond);\r\n manager.addEdit(command);\r\n }\r\n else if (!sond.getArrayPosition() && insertSearchDelete.equals(\"delete\"))\r\n {\r\n sond.nextSearchPosition();\r\n UndoRedoSetAnimation command = new UndoRedoSetAnimation(sond);\r\n manager.addEdit(command);\r\n }\r\n }", "public void goOnToNextQuestion(){\n\t\tbtnConfirmOrNext.setText(\"Next Question\");\n\t\tenableAllButtons();// need to be able to click to proceed\n\t\tquizAccuracy.setText(\": \"+spellList.getLvlAccuracy()+\"%\");\n\t\t// if user got answer correct move on immediately, else let user look at the correct answer first\n\t\tif(correctFlag){\n\t\t\t// set it to false initially for the next question\n\t\t\tcorrectFlag = false;\n\t\t\tbtnConfirmOrNext.doClick();\n\t\t}\n\n\t}", "protected JButton getNext()\n {\n return next;\n }", "public EmagHomePage clickonContinueButton()\n {\n continueButton.click();\n return new EmagHomePage(driver);\n }", "@Override\n public void onNextPressed() {\n }", "public void addNext()\r\n\t{\r\n\t\tnext = new JButton(\"Next\");\r\n\t\tnext.addActionListener(new ActionListener()\r\n\t\t{\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e)\r\n\t\t\t{\r\n\t\t\t\tif (state.getTurn() == 1)\r\n\t\t\t\t{\r\n\t\t\t\t\tstate.setPlayerTwoTurn();\r\n\t\t\t\t}\r\n\t\t\t\telse if (state.getTurn() == 2)\r\n\t\t\t\t{\r\n\t\t\t\t\tstate.setPlayerOneTurn();\r\n\t\t\t\t}\r\n\t\t\t\tremoveNext();\r\n\t\t\t\t\r\n\t\t\t\tstate.setWaiting(false);\r\n\t\t\t}\r\n\t\t});\r\n\t\tadd(next);\r\n\t\t\r\n\t\trevalidate();\r\n\t\trepaint();\r\n\t}", "void OnNextButtonClicked(String buttonClicked,StoriesClass currentStor);", "protected void handleNext(ActionEvent event) {\n\t}", "public TeacherPage clickNextPageButton() {\n nextPage.click();\n return this;\n }", "public void addNextActionListener(ActionListener actionListener){\n\t\tbtnNext.addActionListener(actionListener);\n\t}", "public void actionPerformed(ActionEvent e)\n\t\t{\n\t\t\tnextButton.setText(\"NEXT >> \");\n\t\t\tint index = tabbedPane.getSelectedIndex();\n\t\t\tif (index != 0)\n\t\t\t{\n\t\t\t\ttabbedPane.setSelectedIndex(index - 1);\n\t\t\t}\n\t\t\tif (index - 1 == 0)\n\t\t\t{\n\t\t\t\tbackButton.setEnabled(false);\n\t\t\t}\n\t\t}", "@Override\r\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tgoNext();\r\n\t\t\t\t}", "public static Result next() {\r\n\t\t// get current node\r\n\t\tMap<String, String> requestData = Form.form().bindFromRequest().data();\r\n\t\tString idCurrentNode = requestData.get(RequestParams.CURRENT_NODE);\r\n\t\tString formName = ChangeOrderForm.NAME;\r\n\t\tString employeeName = CMSSession.getEmployeeName();\r\n\r\n\t\tDecision nextDecision = CMSGuidedFormFill.makeDecision(formName,\r\n\t\t\t\temployeeName, idCurrentNode, requestData);\r\n\r\n\t\treturn ok(backdrop.render(nextDecision));\r\n\t}", "public MentorConnectRequestCompose nextTap()\n\t{\n\t\tmentorConnectRequestObjects.nextButtonHeader.click();\n\t\treturn new MentorConnectRequestCompose(driver);\n\t}", "public interface OnNextButtonClicked {\n // TODO: Update argument type and name\n void OnNextButtonClicked(String buttonClicked,StoriesClass currentStor);\n }", "private void nextPage()\n {\n if(currentPage + 1 <= maxPage)\n {\n prevPageButton.setEnabled(true);\n if(currentPage + 2 > maxPage)\n nextPageButton.setEnabled(false);\n \n paginate(++currentPage, getResultsPerPage());\n updatePageLabel(currentPage, maxPage);\n }\n }", "private void hideNextButton(){\n\t\tif(nextButton != null){\n\t\t\tmainWindow.getContainer().remove(nextButton);\n\t\t\tshowSubmitBtn();\n\t\t}\n\t}", "private void nextButtonActionPerformed() {//GEN-FIRST:event_nextButtonActionPerformed\r\n getNextPicture();\r\n\r\n }", "@Override\n public void run() {\n nextButtonAction(); // invoking next button //\n }", "void onNextIconClick();", "public IWizardPage getNextPage();", "private JButton getAfterButton() {\r\n\t\tif (afterButton == null) {\r\n\t\t\tafterButton = new JButton();\r\n\t\t\tafterButton.setLocation(new Point(660, 480));\r\n\t\t\tafterButton.setText(\"Next Page\");\r\n\t\t\tafterButton.setSize(new Dimension(120, 30));\r\n\t\t}\r\n\t\treturn afterButton;\r\n\t}", "private void buttonNext (){\n Intent nextActivity = new Intent(Question_One.this, Question_two.class);\n nextActivity.putExtra(EXTRA_TEXT,scoreCounter);\n startActivity(nextActivity);\n }", "protected void updateButtonStates()\n\t{\n\t\tboolean isLastStep = isLastStep(currentStep);\n\t\tboolean isFirstStep = isFirstStep(currentStep);\n\t\t// Check whether current step data is valid or not\n\t\tboolean isValid = currentStep.onAdvance();\n\t\tthis.getCancelButton().setVisible(!isLastStep);\n\t\tthis.getCancelButton().setEnabled(!isLastStep);\n\t\t\n\t\tthis.getBackButton().setVisible(!isLastStep);\n\t\tthis.getBackButton().setEnabled(!isFirstStep && !isLastStep);\n\n\t\tthis.getNextButton().setVisible(!isLastStep);\n\t\tthis.getNextButton().setEnabled(!isLastStep && isValid);\n\n\t\tthis.getFinishButton().setEnabled(isLastStep);\n\t\tthis.getFinishButton().setVisible(isLastStep);\n\t}", "public void nextQuestion(View view) {\n Button button = (Button) findViewById(R.id.question_button_previous);\n if (!button.isEnabled()){\n button.setEnabled(true);\n }\n saveProgress();\n sequence++;\n updateView();\n }", "protected Component createNextButton() {\n JButton b = new BasicArrowButton(SwingConstants.NORTH);\n b.addActionListener(nextButtonHandler);\n b.addMouseListener(nextButtonHandler);\n return b; }", "public void pgr_D_Next(ActionEvent e) throws Exception\n\t{\n\t\t//#CM5132\n\t\t// Store listbox to the Session\n\t\tSessionDeadStockListRet listbox =\n\t\t\t(SessionDeadStockListRet) this.getSession().getAttribute(\"LISTBOX\");\n\t\tsetList(listbox, \"next\");\n\t}", "private InboxPage clickPasswordNext() {\n try {\n Thread.sleep(2000);\n } catch (Exception e) {\n }\n if (waitForElementDisplayed(By.id(ID_PASSWORD_NEXT), 10, 20)) {\n clickOnElementUsingJquery(driver.findElement(By.id(ID_PASSWORD_NEXT)));\n return new InboxPage(driver);\n }\n return null;\n }", "public void addNextActionListener(ActionListener listener) {\n\t next.addActionListener(listener);\n\t }", "private void nextButtonActionPerformed(ActionEvent e) {\n // TODO add your code here\n int remainItem = this.list.size() - 6 * (this.page + 1);\n\n if(remainItem <= 0){\n Warning.run(\"No more page here.\");\n }\n else{\n this.page++;\n this.update();\n }\n }", "public void next(){\n\t\tboundIndex = (boundIndex+1)%buttonBounds.length;\n\t\tupdateButtonBounds();\n\t}", "public void next(Parameters params) {\r\n pui.commitParameters();\r\n }", "public void onClick(View view) {\n\t\t\t\tmButton1.setBackgroundDrawable(mButtonDrawable1);\n\t\t\t\tmButton2.setBackgroundDrawable(mButtonDrawable2);\n\t\t\t\tmButton3.setBackgroundDrawable(mButtonDrawable3);\n\n\t\t\t\tString rightResult = getString(mRightResult.get(mRandomIndex));\n\t\t\t\tLog.d(TAG, \"next button onClick start, mRandomIndex =\" + mRandomIndex + \"; rightResult is \" + rightResult + \",mFinalResult is \" + mFinalResult + \"; mRightResultCount =\" + mRightResultCount);\n\t\t\t\tif (mFinalResult == null) {\n\t\t\t\t\tmTimer.stop();\n\t\t\t\t\tshowErrorDialog();\n\t\t\t\t\treturn;\n\t\t\t\t} else if (mFinalResult != null && mFinalResult.equals(rightResult)) {\n\t\t\t\t\tmFinalResult = null;\n\t\t\t\t\tmRightResultCount++;\n\t\t\t\t} else {\n\t\t\t\t\tmFinalResult = null;\n\t\t\t\t}\n\t\t\t\trefreshScreen();\n\t\t\t\tLog.d(TAG, \"next button onClick end, mRandomIndex =\" + mRandomIndex + \"; rightResult is \" + rightResult + \",mFinalResult is \" + mFinalResult + \"; mRightResultCount =\" + mRightResultCount);\n\t\t\t}", "private void nextButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_nextButtonActionPerformed\n if(napakalakiModel.getCurrentPlayer() == null){\n this.nextButton.setEnabled(false);\n this.combatButton.setEnabled(false);\n this.playerView1.enableAfterNextButton();\n napakalakiModel.nextTurn();\n this.combatResultLabel.setText(\"\");\n // Llamo al setNapakalaki para que surjan efecto los cambios\n setNapakalaki(napakalakiModel); \n }\n else{\n // Si ha cumplido el mal rollo puede continuar\n if( napakalakiModel.getCurrentPlayer().validState() ){\n this.nextButton.setEnabled(false);\n this.combatButton.setEnabled(false);\n this.playerView1.enableAfterNextButton();\n napakalakiModel.nextTurn();\n this.combatResultLabel.setText(\"\");\n // Llamo al setNapakalaki para que surjan efecto los cambios\n setNapakalaki(napakalakiModel);\n }\n else{\n this.combatResultLabel.setText(\"No cumples las condiciones para pasar de turno.\");\n }\n } \n }", "private void moveToLastPage() {\n while (!isLastPage()) {\n click(findElement(next_btn));\n }\n }", "public abstract boolean nextOrFinishPressed();", "public void testSetNextFinishButtonEnabled() {\n System.out.println(\"setNextFinishButtonEnabled\");\n boolean newValue = false;\n Wizard instance = new Wizard();\n instance.setNextFinishButtonEnabled(newValue);\n }", "public void onNextButtonPressed(View v) {\n ParticipantDetailsDataAdapter.ViewHolder partViewHolder;\n CrtPollForm3Data form3Data = new CrtPollForm3Data();\n if (mListener != null) {\n for (int i = 0 ; i < mRecyclerView.getAdapter().getItemCount();i++)\n {\n RecyclerView.ViewHolder viewHolder = mRecyclerView.findViewHolderForAdapterPosition(i);\n if (viewHolder != null && viewHolder instanceof ParticipantDetailsDataAdapter.ViewHolder){\n partViewHolder = (ParticipantDetailsDataAdapter.ViewHolder) viewHolder;\n }\n }\n mListener.onFragmentInteractionForm3(form3Data);\n }\n }", "public void setNextEnabled(boolean b){\n\t\tbtnNext.setEnabled(b);\n\t}", "private void goToNextActivity() {\n startActivity(new Intent(this,NextActivity.class));\n }", "public void showNextQuestion() {\n currentQuiz++;\n gui.setUp();\n if (currentQuiz <= VocabularyQuizList.MAX_NUMBER_QUIZ) {\n showQuestion(currentQuiz);\n } else {\n result();\n }\n gui.getFrame().setVisible(true);\n }", "@Override\r\n\t\tpublic void onClick(View v) {\n\t\t\tif(v==Bn_Pre){\r\n\t\t\t\tIntent intent = new Intent(NextActivity.this, MainActivity.class);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t}else if(v==Bn_Next){\r\n\t\t\t\tIntent intent = new Intent(NextActivity.this, Next2Activity.class);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t}\r\n\t\t}", "public void toggleSubmitButton(){\n switch (mSubmitButton.getText().toString()){\n case \"Submit\":\n mSubmitButton.setText(\"Next\");\n mSubmitButton.setOnClickListener(view -> recreate());\n break;\n case \"Next\":\n mSubmitButton.setText(\"Submit\");\n mSubmitButton.setOnClickListener(view -> mGameController.checkGuess());\n break;\n }\n }", "private void callNextQuestion() {\n questionProgress++;\n\n if (questionProgress <= 10) {\n\n if (Utils.isKitkat()) {\n ContinuousSlide slide = new ContinuousSlide(Gravity.RIGHT);\n TransitionManager.beginDelayedTransition(llBody, slide);\n }\n\n btNext.setVisibility(View.GONE);\n currentQuestion = getQuestionById(questionProgress);\n ivScene.setVisibility(View.GONE);\n tvQuestion.setVisibility(View.GONE);\n\n if (tvResult != null) {\n flSceneFrame.removeView(tvResult);\n }\n ivScene.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {\n @Override\n public void onGlobalLayout() {\n ivScene.getViewTreeObserver().removeOnGlobalLayoutListener(this);\n resizeSceneArea();\n for (int i = 0; i < 4; i++) {\n positionAnswer(answerButtonList.get(i), currentQuestion.getAnswers().get(i));\n waitAnimations();\n }\n }\n });\n } else {\n questionProgress = 10;\n Intent intent = new Intent(this, ResultActivity_.class);\n startActivity(intent);\n }\n }", "public void clickContinue() {\n\t\tcontinueButton.click();\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\tSystem.out.println(button.getText());\n\t\tif(currentState==MENU) {\n\t\t}\n\t\tif(button.getText().equals(\"Next\")&&currentState==MENU) {\n\t\t\tcurrentState++;\n\t\t\trepaint();\n\t\t}\n\t\tif(currentState == GAME){\n\t\t updateGameState();\n\t\t}else if(currentState == END){\n\t\t updateEndState();\n\t\t}\n\t\tSystem.out.println(currentState);\n\t\trepaint();\n\t}", "public void nextButton(View view) {\n Button submit = (Button) findViewById(R.id.start_and_submit_button);\n RadioGroup radioButtons = (RadioGroup) findViewById(R.id.radio_group);\n LinearLayout checkGroup = (LinearLayout) findViewById(R.id.check_group);\n EditText inputText = (EditText) findViewById(R.id.input_text);\n getUserAnswer();\n\n if (currentQueNum < maxNumOfQues) {\n currentQueNum += 1;\n optionsSelect();\n\n //this set question no 4 to checkbox view UI reply as required\n if (currentQueNum == 4) {\n radioButtons.setVisibility(View.GONE);\n checkGroup.setVisibility(View.VISIBLE);\n inputText.setVisibility(View.GONE);\n String que[] = getResources().getStringArray(R.array.questions);\n TextView questionsPane = (TextView) findViewById(R.id.questions_pane);\n questionsPane.setText(que[currentQueNum - 1]);\n }\n\n //this below block of code will set question number 7 and 10 to textView UI reply\n else if (currentQueNum == 7 || currentQueNum == 10) {\n radioButtons.setVisibility(View.GONE);\n inputText.setVisibility(View.VISIBLE);\n checkGroup.setVisibility(View.GONE);\n String que[] = getResources().getStringArray(R.array.questions);\n TextView quesDisp = (TextView) findViewById(R.id.questions_pane);\n quesDisp.setText(que[currentQueNum - 1]);\n }\n\n // this below block of code will set the view with appropriate UI for answers\n else {\n radioButtons.setVisibility(View.VISIBLE);\n inputText.setVisibility(View.GONE);\n checkGroup.setVisibility(View.GONE);\n String que[] = getResources().getStringArray(R.array.questions);\n TextView questionsPane = (TextView) findViewById(R.id.questions_pane);\n questionsPane.setText(que[currentQueNum - 1]);\n }\n }\n\n //notify the user that he/she have reach the end of test he should submit?\n else {\n Toast endOfQuiz = makeText(getApplicationContext(), \"YOU HAVE REACH THE END OF TEST, SUBMIT?\", Toast.LENGTH_SHORT);\n endOfQuiz.show();\n submit.setEnabled(true);\n }\n if (currentQueNum != maxNumOfQues) {\n inputText.setText(\"\");//clear the text field for subsequent use\n radioButtons.clearCheck();//this clear the check state of radioButtons since same object will be re used in next question\n }\n }", "private void initNextBtn() throws IOException{\n\t\tnextButton = new ContentPane(ImageLoader.getBufferedImage(\"\\\\images\\\\test\\\\Next.png\"), true, false);\n\t\tnextButton.registerObserver(this);\n\t}", "protected GuiTestObject nextsubmit(TestObject anchor, long flags) \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"nextsubmit\"), anchor, flags);\n\t}", "private void clickContinueButton() {\n clickElement(continueButtonLocator);\n }", "@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\tcard.next(bootpanel);\n\t\t\tSystem.out.println(\"next\");\n\t\t}", "public void Click_Done()\r\n\t{\r\n\t\tExplicitWait(Specialdone);\r\n\t\tif (Specialdone.isDisplayed()) \r\n\t\t{\r\n\t\t\tJavascriptexecutor(Specialdone);\r\n\t\t\tExplicitWait(Checkavailability);\r\n\t\t\t//System.out.println(\"Clicked on Special Rate plan done button \");\r\n\t\t\tlogger.info(\"Clicked on Special Rate plan done button\");\r\n\t\t\ttest.log(Status.INFO, \"Clicked on Special Rate plan done button\");\r\n\r\n\t\t} else {\r\n\t\t\t//System.out.println(\"Special Rate plan done button not found\");\r\n\t\t\tlogger.error(\"Special Rate plan done button not found\");\r\n\t\t\ttest.log(Status.FAIL, \"Special Rate plan done button not found\");\r\n\r\n\t\t}\r\n\t}", "public void btnNextClicked(){\n\n fname = etFName.getText().toString();\n lname = etLName.getText().toString();\n country = spcountry.getSelectedItem().toString();\n description = etDescription.getText().toString();\n phone = etPhone.getText().toString();\n\n controller.setData(fname,lname,country,description,phone);\n\n controller.putStringData(this);\n\n /*editorPreferences.putString(\"First Name: \",user.getFirstName());\n editorPreferences.putString(\"Last Name: \",user.getLastName());\n editorPreferences.putString(\"Country : \",user.getCountry());\n editorPreferences.putString(\"Description : \",user.getDescription());\n editorPreferences.putString(\"Phone Number : \",user.getPhone());\n editorPreferences.apply();*/\n\n }", "boolean isNextButtonDisabled() {\r\n\t\treturn nextPage.isDisabled();\r\n\t}", "protected void showNextPage() {\n\t\tif (currPageIndex.equals(pages.size() - 1)) {\n\t\t\t// Last page so dispose\n\n\t\t\tcleanup();\n\t\t\treturn;\n\t\t}\n\n\t\tAbstractWizardPanel page = pages.get(currPageIndex);\n\n\t\t// Remove page from ignored list if requested\n\t\tif (page.getEnablePageClassArray().size() > 0) {\n\t\t\tfor (Class<? extends AbstractWizardPanel> ignorePage : page\n\t\t\t\t\t.getEnablePageClassArray()) {\n\t\t\t\tignoredPages.remove(ignorePage);\n\t\t\t}\n\t\t}\n\n\t\t// Add page to ignored list if requested\n\t\tif (page.getDisablePageClassArray().size() > 0) {\n\t\t\tfor (Class<? extends AbstractWizardPanel> ignorePage : page\n\t\t\t\t\t.getDisablePageClassArray()) {\n\t\t\t\tif (!ignoredPages.contains(ignorePage)) {\n\t\t\t\t\tignoredPages.add(ignorePage);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tshowPage(currPageIndex + 1, Direction.FORWARD);\n\n\t}", "@WebElementLocator(webDesktop = \"//input[@type='submit']\",webPhone = \"//input[@type='submit']\")\n private static WebElement buttonSubmit() {\n return getDriver().findElement(By.xpath(new WebElementLocatorFactory().getLocator(LoginPage.class, \"buttonSubmit\")));\n }", "public void setNext(Prompt next) {\n\t\t\tthis.next = next;\n\t\t}", "@Nullable\n WizardPage flipToNext();", "public static void pressSubmit(){\n DriverManager.driver.findElement(Constans.SUBMIT_BUTTON_LOCATOR).click();\n }", "public SelenideElement submitButton() {\n return formPageRoot().$(By.xpath (\"//button[@type='submit']\")); \n }", "public void setDoneButton(){\n\t\tbtnConfirmOrNext.setText(\"Done\");\n\t\tbtnStop.setVisible(false); // no more stop quiz since quiz is done\n\t}", "public static void next() {\n\t\tsendMessage(NEXT_COMMAND);\n\t}", "public String next() {\r\n\t\treturn \"/private/admin/Aktienbestaetigung?faces-redirect=true\";\r\n\t}", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n Button nextPage = (Button) findViewById(R.id.button_id);\n System.out.println(\"THE RESULT CODE IS = \" + resultCode);\n if (resultCode==7 | resultCode==0) {\n nextPage.setVisibility(View.VISIBLE);\n }\n else {\n nextPage.setVisibility(View.GONE);\n callbackManager.onActivityResult(requestCode, resultCode, data);\n }\n }", "public void gotoNext(){\r\n if(curr == null){\r\n return;\r\n }\r\n prev = curr;\r\n curr = curr.link;\r\n }", "public void selectSubmitButton() {\n\t\tel = Browser.getDriver().findElement(element_submit_button);\n\t\tuihelper.click(el);\n\t}", "void clickNextStation();", "public void Regcontinuebutton( ){\r\n\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- continue Registartion button clicked\");\r\n\t\ttry{\r\n\r\n\t\t\twaitforElementVisible(locator_split(\"Regcontinuebutton\"));\r\n\t\t\tclick(locator_split(\"Regcontinuebutton\"));\r\n\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- continue Registartion button clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- continue Registartion button is not clicked \"+elementProperties.getProperty(\"Regcontinuebutton\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"Regcontinuebutton\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\r\n\t}", "@OnClick(R.id.nextButton)\n public void onNext(View view){\n Intent intent = new Intent(getApplicationContext(), SettingActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n overridePendingTransition(R.anim.slide_in_right, R.anim.slide_out_left);\n finish();\n database.close();\n }", "public void goToNext() {\r\n\t\tif (curr == null)\r\n\t\t\treturn;\r\n\t\tprev = curr;\r\n\t\tcurr = curr.link;\r\n\t}", "private void getNextQuestionHandler() {\n //Log.i(TAG, \"getNextQuestionHandler\");\n p.setVisibility(View.VISIBLE);\n questionText.setText(\"Loading...\");\n readableCheck.setChecked(false);\n readableCheck.setEnabled(false);\n submitBtn.setEnabled(false);\n skipBtn.setEnabled(false);\n img01.setImageResource(R.drawable.new_rating_smile_grey);\n img02.setImageResource(R.drawable.new_rating_nutral_grey);\n img03.setImageResource(R.drawable.new_rating_angry_grey);\n imgb01 = false;\n imgb02 = false;\n imgb03 = false;\n rateValue = 0;\n\n controller.getNextQuestion();\n }", "public void checkoutcontinuebutton( ){\r\n\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- continue Registartion button clicked in popu page\");\r\n\t\ttry{\r\n\r\n\t\t\twaitforElementVisible(locator_split(\"checkoutregistrationcontinue\"));\r\n\t\t\tclick(locator_split(\"checkoutregistrationcontinue\"));\r\n\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- ccontinue Registartion button clicked in popu page\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- continue Registartion button is not clicked in popu page\"+elementProperties.getProperty(\"_Regcontinuebutton\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"checkoutregistrationcontinue\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\r\n\t}", "public void Next(View view)\n {\n increaseNum();\n }", "public abstract void goNext();", "private void nextQuestion() {\n mCurrentIndex = (mCurrentIndex + 1) % questions.length;\n int question = questions[mCurrentIndex].getTextResId();\n mText.setText(question);\n }", "private Button continueButton(EventHandler<ActionEvent> splashScreenComboBoxEvent) {\n\t\tcontinueButton = new Button();\n\t\tcontinueButton.setText(CONTINUE);\n\t\tcontinueButton.setPrefWidth(200);\n\t\tcontinueButton.setOnAction(splashScreenComboBoxEvent);\n\t\tcontinueButton.setId(\"Continue\");\n\t\t\n\t\tcontinueButton.setDisable(true);\n\t\t\n\t\treturn continueButton;\n\t}", "@Test\r\n public void startNextOptionTest()\r\n {\r\n presenter.onClickNext();\r\n\r\n Assert.assertEquals(stub.getNextCounter(), 1);\r\n }", "@Then(\"^click on the Login button user nagivate to the next page$\")\r\n\tpublic void click_on_the_Login_button_user_nagivate_to_the_next_page() throws Throwable {\n\t w.submit();\r\n\t}", "@Test\n public void testNextAndPrevious() throws Exception {\n\n driver.get(baseUrl + \"/computerdatabase/computers?page-number=1&lang=en\");\n\n driver.findElement(By.xpath(\"//li[contains(@class, 'active')]/a[text()='1']\"));\n\n driver.findElement(By.linkText(\"Next\")).click();\n driver.findElement(By.xpath(\"//li[contains(@class, 'active')]/a[text()='2']\"));\n\n try {\n driver.findElement(By.xpath(\"//li[contains(@class, 'active')]/a[text()='1']\"));\n fail();\n } catch (NoSuchElementException e) {\n assertTrue(true);\n }\n\n driver.findElement(By.linkText(\"Previous\")).click();\n driver.findElement(By.xpath(\"//li[contains(@class, 'active')]/a[text()='1']\"));\n try {\n driver.findElement(By.xpath(\"//li[contains(@class, 'active')]/a[text()='2']\"));\n fail();\n } catch (NoSuchElementException e) {\n assertTrue(true);\n }\n }", "@FXML\r\n private void handleNextButtonAction(ActionEvent event) throws IOException {\n p.switcher(event, \"MusicList.fxml\");\r\n \r\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tMessage msg = Message.obtain();\r\n\t\t\t\tnextStep = OK;\r\n\t\t\t\tmsg.what = nextStep;\r\n\t\t\t\tmHandler.sendMessage(msg);\r\n\t\t\t\tisPause =true;\r\n\t\t\t}", "private void moveToNextCard() {\r\n\t\t// This is simple enough: Move the card set to the next\r\n\t\t// card and update the label and database. If we're now on\r\n\t\t// the last card, disable the Next button and make sure\r\n\t\t// the Previous button is always enabled. Then rebuild the card\r\n\t\t// itself so the correct passcodes are displayed.\r\n \tif (cardSet.getLastCard() != Cardset.FINAL_CARD) {\r\n\t\t\tcardSet.nextCard();\r\n\t\t\tbtnPrevious.setEnabled(true);\r\n\t\t\tif (cardSet.getLastCard() == Cardset.FINAL_CARD)\r\n\t\t\t\tbtnNext.setEnabled(false);\r\n\t\t\t// Save the card set to the database:\r\n\t\t\tDBHelper.saveCardset(cardSet);\r\n\t\t\trebuildCard();\r\n\t lblCardNumber.setText(getResources().getString(R.string.cardview_card_num_prompt).replace(getResources().getString(R.string.meta_replace_token), String.valueOf(cardSet.getLastCard())));\r\n \t}\r\n }", "private JButton getJbtnPreviousStep() {\n\t\tif (jbtnPreviousStep == null) {\n\t\t\tjbtnPreviousStep = new JButton();\n\t\t\tjbtnPreviousStep.setHorizontalAlignment(SwingConstants.CENTER);\n\t\t\tjbtnPreviousStep.setHorizontalTextPosition(SwingConstants.TRAILING);\n\t\t\tjbtnPreviousStep.setIcon(new ImageIcon(getClass().getResource(\"/org/measureyourgradient/images/back.png\")));\n\t\t\tjbtnPreviousStep.setText(\" Previous Step\");\n\t\t\tjbtnPreviousStep.setSize(new Dimension(178, 34));\n\t\t\tjbtnPreviousStep.setLocation(new Point(6, 576));\n\t\t\tjbtnPreviousStep.setActionCommand(\"Previous Step\");\n\t\t}\n\t\treturn jbtnPreviousStep;\n\t}", "public void buttonHintNext(View view) {\n //using finish to activity\n finish();\n\n //create a new object to start new activity\n Intent intent = new Intent(this, Hint.class);\n //pass object to startActivity\n startActivity(intent);\n }", "void setNext(final UrlArgumentBuilder next);", "@Override\n\tpublic void onClick(View v) {\n\t\tif(v==btnnext)\n\t\t{\n\t\t\tstitle =edittitle.getText().toString().trim();\n\t\t\tsdesc =editdesc.getText().toString().trim();\n\t\t\tsrent =editrent.getText().toString().trim();\n\t\t\tscontact =editcontact.getText().toString().trim();\n\t\t\t\n\t\t\tselectedarea = spinArea.getSelectedItemPosition();\n\t\t\t\n\t\t\tif(stitle.equals(\"\"))\n\t\t\t{\n\t\t\t\tedittitle.setError(\"Enter Title\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse if(sdesc.equals(\"\"))\n\t\t\t{\n\t\t\t\teditdesc.setError(\"Enter Description\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse if(selectedarea==0)\n\t\t\t{\n\t\t\t\tToast.makeText(AddFoodAdvActivity.this,\"Select Area\",Toast.LENGTH_SHORT).show();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse if(srent.equals(\"\"))\n\t\t\t{\n\t\t\t\teditrent.setError(\"Enter Rent\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse if(scontact.equals(\"\"))\n\t\t\t{\n\t\t\t\teditcontact.setError(\"Enter Contact No\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tsarea = AreaList.get(selectedarea-1).getArea_ID().toString().trim();\n\t\t\t\t\n\t\t\t\tif(!sarea.trim().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tnew PostWaterAdv().execute();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t}\n\t}" ]
[ "0.7818435", "0.7328615", "0.72656965", "0.7257168", "0.72201407", "0.69784796", "0.6957019", "0.69541925", "0.69329864", "0.68798643", "0.68535054", "0.6843473", "0.68160814", "0.67614996", "0.67364895", "0.664357", "0.6616127", "0.66015744", "0.6491139", "0.647717", "0.6398323", "0.63770723", "0.6369033", "0.63635945", "0.63580865", "0.6332455", "0.63286394", "0.62931174", "0.6281826", "0.6276518", "0.62702996", "0.62086785", "0.62031746", "0.6186738", "0.6181993", "0.6144803", "0.6117803", "0.60611194", "0.60469043", "0.6033887", "0.6004652", "0.59948426", "0.5969716", "0.59678704", "0.5948308", "0.5940461", "0.5924771", "0.5915032", "0.59009224", "0.58938515", "0.58754975", "0.5862549", "0.5841899", "0.5840236", "0.5835574", "0.5826688", "0.5822528", "0.5818299", "0.58146036", "0.5800799", "0.5799595", "0.57935363", "0.57919616", "0.57723665", "0.5771827", "0.57631403", "0.575997", "0.5746961", "0.57450384", "0.5739046", "0.57293755", "0.5716504", "0.57130617", "0.5683787", "0.56801784", "0.5674501", "0.56675", "0.566296", "0.5652341", "0.56448793", "0.5643396", "0.56304663", "0.56299025", "0.56263685", "0.5624486", "0.56004137", "0.5599609", "0.55875283", "0.55861175", "0.55781204", "0.55764526", "0.55729043", "0.55530375", "0.55496913", "0.55414057", "0.55412954", "0.5540124", "0.5538975", "0.5537946", "0.5529662" ]
0.6734938
15
Nextsubmit: with specific test context and state. .id : initdetails_nextButton .type : submit .value : Next .title : .class : Html.BUTTON .name : .classIndex : 0
protected GuiTestObject nextsubmit(TestObject anchor, long flags) { return new GuiTestObject( getMappedTestObject("nextsubmit"), anchor, flags); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void clickNextBtn() {\t\n\t\ttry {\n\t\t\tdriver.findElement(By.id(\"nextquest\")).click();\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\tSystem.out.println(\"Next button in Q&A submit doesnt work\");\n\t\t}\n\t}", "protected GuiTestObject nextsubmit() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"nextsubmit\"));\n\t}", "public static void checkAndClickNextButton() {\r\n\t\tcheckNoSuchElementExceptionByID(\"nextquest\", \"\\\"Next\\\" button\");\r\n\t\tcheckElementNotInteractableExceptionByID(\"nextquest\", \"\\\"Next\\\" button\");\r\n\t}", "public void goToNextPage() {\n nextPageButton.click();\n }", "public static void clickNextBtnGame() {\t\n\t\tdriver.findElement(By.id(\"btnnext\")).click();\n\t}", "public void ClickNext() {\r\n\t\tnext.click();\r\n\t\t\tLog(\"Clicked the \\\"Next\\\" button on the Birthdays page\");\r\n\t}", "public static void checkAndClickNextButtonTriviaMode() {\r\n\t\tcheckNoSuchElementExceptionByID(\"btnnext\", \"\\\"Next\\\" button in trivia mode\");\r\n\t\tcheckElementNotInteractableExceptionByID(\"btnnext\", \"\\\"Next\\\" button in trivia mode\");\r\n\t}", "public SelectGradableItemsPage clickNextButton() throws Exception {\n try {\n logInstruction(\"LOG INSTRUCTION:clicking the next button\");\n frameSwitch.switchToFrameContent();\n uiDriver.waitToBeDisplayed(btnNextButton, waitTime);\n btnNextButton.click();\n } catch (Exception e) {\n throw new Exception(\"ISSUE IN CLICKING THE 'Next' BUTTON\" + \"clickNextButton\" + e\n .getLocalizedMessage());\n }\n return new SelectGradableItemsPage(uiDriver);\n }", "public void clickNextButton() {\n if (editSummaryFragment.isActive()) {\n //we're showing the custom edit summary window, so close it and\n //apply the provided summary.\n editSummaryFragment.hide();\n editPreviewFragment.setCustomSummary(editSummaryFragment.getSummary());\n } else if (editPreviewFragment.isActive()) {\n //we're showing the Preview window, which means that the next step is to save it!\n if (abusefilterEditResult != null) {\n //if the user was already shown an AbuseFilter warning, and they're ignoring it:\n funnel.logAbuseFilterWarningIgnore(abusefilterEditResult.getCode());\n }\n getEditTokenThenSave(false);\n funnel.logSaveAttempt();\n } else {\n //we must be showing the editing window, so show the Preview.\n hideSoftKeyboard(this);\n editPreviewFragment.showPreview(title, sectionText.getText().toString());\n funnel.logPreview();\n }\n }", "private void btnNext_click(ActionEvent e) {\n\t\tString stuAnswer = \"\";\r\n\t\tif (rdoItemA.isSelected()) {\r\n\t\t\tstuAnswer = \"A\";\r\n\t\t}\r\n\t\tif (rdoItemB.isSelected()) {\r\n\t\t\tstuAnswer = \"B\";\r\n\t\t}\r\n\t\tif (rdoItemC != null) {\r\n\t\t\tif (rdoItemC.isSelected()) {\r\n\t\t\t\tstuAnswer = \"C\";\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (rdoItemD != null) {\r\n\t\t\tif (rdoItemD.isSelected()) {\r\n\t\t\t\tstuAnswer = \"D\";\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (!stuAnswer.isEmpty()) {\r\n\t\t\tExamItem bean = eiList.get(questionNO - 1);\r\n\r\n\t\t\tif (bean.getStuAnswer() == null || !bean.getStuAnswer().equalsIgnoreCase(stuAnswer)) {\r\n\t\t\t\tbean.setStuAnswer(stuAnswer);\r\n\t\t\t\tif (bean.getStdAnswer().equalsIgnoreCase(stuAnswer)) {\r\n\t\t\t\t\tbean.setMarkResult(1l);\r\n\t\t\t\t\tbean.setGainScore(bean.getStdScore());\r\n\t\t\t\t} else {\r\n\t\t\t\t\tbean.setMarkResult(0l);\r\n\t\t\t\t\tbean.setGainScore(0l);\r\n\t\t\t\t}\r\n\t\t\t\texamItemService.update(bean);\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (questionNO == questionNum) {\r\n\t\t\tJOptionPane.showMessageDialog(null, \"这是最后一题。\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tquestionNO++;\r\n\t\tinitData();\r\n\t}", "private LoginPage clickOnNext() {\n if (waitForElementDisplayed(By.id(ID_NEXT), 10, 20)) {\n clickOnElementUsingJquery(driver.findElement(By.id(ID_NEXT)));\n return this;\n }\n return null;\n }", "public void goOnToNextQuestion(){\n\t\tbtnConfirmOrNext.setText(\"Next Question\");\n\t\tenableAllButtons();// need to be able to click to proceed\n\t\tquizAccuracy.setText(\": \"+spellList.getLvlAccuracy()+\"%\");\n\t\t// if user got answer correct move on immediately, else let user look at the correct answer first\n\t\tif(correctFlag){\n\t\t\t// set it to false initially for the next question\n\t\t\tcorrectFlag = false;\n\t\t\tbtnConfirmOrNext.doClick();\n\t\t}\n\n\t}", "@OnClick\n public void onClickNext() {\n alipayPhoneLogging();\n String phoneNumber = this.airPhone.phoneInputText();\n String countryCode = this.phoneNumberInput.getCountryCode();\n getAlipayActivity().setPhoneNumber(phoneNumber);\n CreatePaymentInstrumentRequest.forAlipay(new Builder().alipayLoginId(getAlipayActivity().getAlipayId()).mobilePhoneNumber(phoneNumber).mobilePhoneCountry(countryCode).build()).withListener((Observer) this.requestListener).execute(this.requestManager);\n this.nextButton.setState(AirButton.State.Loading);\n }", "public EmagHomePage clickonContinueButton()\n {\n continueButton.click();\n return new EmagHomePage(driver);\n }", "public void nextBtnClicked(View v) {\r\n//\t\tshowMsg(\"Next Button clicked: \"+ v);\r\n\t\tresetSelection();\r\n\t\tnextQuestion(1);\r\n\t\tshowQuesAndAnswers();\r\n\t}", "@Test\r\n public void startNextOptionTest()\r\n {\r\n presenter.onClickNext();\r\n\r\n Assert.assertEquals(stub.getNextCounter(), 1);\r\n }", "@OnClick\n public void onNext() {\n KeyboardUtils.dismissSoftKeyboard(getView());\n this.nextButton.setState(AirButton.State.Loading);\n RegistrationAnalytics.trackClickEvent(RegistrationAnalytics.NEXT_BUTTON, \"phone\", getNavigationTrackingTag());\n AccountCreationRequest.forValidatingPhone(this.airPhone.formattedPhone()).withListener((Observer) this.phoneNumberExistValidationRequestListener).execute(this.requestManager);\n }", "public void submitorder( ){\r\n\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- submit order link is clicked entered\");\r\n\t\ttry{\r\n\r\n\t\t\twaitforElementVisible(locator_split(\"submitorder\"));\r\n\t\t\tclick(locator_split(\"submitorder\"));\r\n\t\t\twaitForPageToLoad(20);\r\n\t\t\tSystem.out.println(\"submit link clicked\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:-submit link clicked \");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- unable to click submit button\" );\r\n\r\n\t\t}\r\n\t}", "public void Click_Done()\r\n\t{\r\n\t\tExplicitWait(Specialdone);\r\n\t\tif (Specialdone.isDisplayed()) \r\n\t\t{\r\n\t\t\tJavascriptexecutor(Specialdone);\r\n\t\t\tExplicitWait(Checkavailability);\r\n\t\t\t//System.out.println(\"Clicked on Special Rate plan done button \");\r\n\t\t\tlogger.info(\"Clicked on Special Rate plan done button\");\r\n\t\t\ttest.log(Status.INFO, \"Clicked on Special Rate plan done button\");\r\n\r\n\t\t} else {\r\n\t\t\t//System.out.println(\"Special Rate plan done button not found\");\r\n\t\t\tlogger.error(\"Special Rate plan done button not found\");\r\n\t\t\ttest.log(Status.FAIL, \"Special Rate plan done button not found\");\r\n\r\n\t\t}\r\n\t}", "public TeacherPage clickNextPageButton() {\n nextPage.click();\n return this;\n }", "public void Regcontinuebutton( ){\r\n\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- continue Registartion button clicked\");\r\n\t\ttry{\r\n\r\n\t\t\twaitforElementVisible(locator_split(\"Regcontinuebutton\"));\r\n\t\t\tclick(locator_split(\"Regcontinuebutton\"));\r\n\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- continue Registartion button clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- continue Registartion button is not clicked \"+elementProperties.getProperty(\"Regcontinuebutton\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"Regcontinuebutton\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\r\n\t}", "void OnNextButtonClicked(String buttonClicked,StoriesClass currentStor);", "public void ClickChecoutsubmitcontinue(){\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Checkout Registration submit continue button should be clicked\");\r\n\t\ttry{\r\n\r\n\t\t\tif(isElementPresent(locator_split(\"btncheckoutregistrationsubmitcontinue\"))){\r\n\t\t\t\tclick(locator_split(\"btncheckoutregistrationsubmitcontinue\"));\r\n\t\t\t}else{\r\n\t\t\t\tclick(locator_split(\"chkcheckoutregistrationconfirmaddress\"));\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"Checkout Registration submit continue button is clicked\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Checkout Registration submit continue button is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Checkout Registration submit continue button is not clicked\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"btncheckoutregistrationsubmitcontinue\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\r\n\r\n\t}", "public MentorConnectRequestCompose nextTap()\n\t{\n\t\tmentorConnectRequestObjects.nextButtonHeader.click();\n\t\treturn new MentorConnectRequestCompose(driver);\n\t}", "protected void handleNext(ActionEvent event) {\n\t}", "public void checkoutcontinuebutton( ){\r\n\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- continue Registartion button clicked in popu page\");\r\n\t\ttry{\r\n\r\n\t\t\twaitforElementVisible(locator_split(\"checkoutregistrationcontinue\"));\r\n\t\t\tclick(locator_split(\"checkoutregistrationcontinue\"));\r\n\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- ccontinue Registartion button clicked in popu page\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- continue Registartion button is not clicked in popu page\"+elementProperties.getProperty(\"_Regcontinuebutton\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"checkoutregistrationcontinue\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\r\n\t}", "public void ClickMyAccountSubmitbutton(){\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- My Account Registration submit button should be clicked\");\r\n\t\ttry{\r\n\r\n\t\t\tclick(locator_split(\"btnMyAccountSubmit\"));\r\n\t\t\tSystem.out.println(\"Checkout Registration submit button is clicked\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- My Account Registration submit button is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- My Account Registration submit button is not clicked\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"btnMyAccountSubmit\")\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\r\n\r\n\t}", "public static Result next() {\r\n\t\t// get current node\r\n\t\tMap<String, String> requestData = Form.form().bindFromRequest().data();\r\n\t\tString idCurrentNode = requestData.get(RequestParams.CURRENT_NODE);\r\n\t\tString formName = ChangeOrderForm.NAME;\r\n\t\tString employeeName = CMSSession.getEmployeeName();\r\n\r\n\t\tDecision nextDecision = CMSGuidedFormFill.makeDecision(formName,\r\n\t\t\t\temployeeName, idCurrentNode, requestData);\r\n\r\n\t\treturn ok(backdrop.render(nextDecision));\r\n\t}", "public void clickSubmitInkAndTonnerSearchButton(){\r\n\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Ink and Tonner Search Button should be clicked\");\r\n\t\ttry{\r\n\r\n\t\t\twaitforElementVisible(locator_split(\"btnInkSeacrh\"));\r\n\t\t\tclick(locator_split(\"btnInkSeacrh\"));\r\n\t\t\twaitForPageToLoad(10);\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Ink and Tonner Search Button is clicked\");\r\n\t\t\tSystem.out.println(\"Ink and Tonner Search icon is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Ink and Tonner Search Button is not clicked \"+elementProperties.getProperty(\"btnSearchSubmit\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"btnInkSeacrh\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\r\n\t}", "public interface OnNextButtonClicked {\n // TODO: Update argument type and name\n void OnNextButtonClicked(String buttonClicked,StoriesClass currentStor);\n }", "public void clickFirstQviewbutton(){\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Qview First Buy button should be clicked\");\r\n\t\ttry{\r\n\r\n\t\t\t/*List<WebElement> eles=driver.findElements((locator_split(\"btnQview\")));\r\n\t\t\tSystem.out.println(eles.size());\r\n\t\t\teles.get(0).click();*/\r\n\r\n\t\t\tclick(locator_split(\"btnQview\"));\t\t\t\t\r\n\t\t\tSystem.out.println(\"Clicked on the First Buy button\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- First Buy Button is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Qview First Buy button is not clicked or Not Available\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"btnQview\")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\t}", "private void buttonNext (){\n Intent nextActivity = new Intent(Question_One.this, Question_two.class);\n nextActivity.putExtra(EXTRA_TEXT,scoreCounter);\n startActivity(nextActivity);\n }", "public void clickSubmitSearchButton(){\r\n\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Search Button should be clicked\");\r\n\t\ttry{\r\n\r\n\t\t\twaitforElementVisible(locator_split(\"btnSearchSubmit\"));\r\n\t\t\tclick(locator_split(\"btnSearchSubmit\"));\r\n\t\t\twaitForPageToLoad(10);\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Search Button is clicked\");\r\n\t\t\tSystem.out.println(\"Sarch icon is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Search Button is not clicked \"+elementProperties.getProperty(\"btnSearchSubmit\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"btnSearchSubmit\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\r\n\t}", "private void showNextButton(){\n\t\tif(nextButton != null){\n\t\t\thideSubmitBtn();\n\t\t\tmainWindow.addLayer(nextButton, BUTTON_LAYER, submitBtnX, submitBtnY);\n\t\t}\n\t}", "public void ClickChecoutSubmitbutton(){\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Checkout Registration submit button should be clicked\");\r\n\t\ttry{\r\n\r\n\t\t\tclick(locator_split(\"btncheckoutregistrationsubmit\"));\r\n\t\t\tSystem.out.println(\"Checkout Registration submit button is clicked\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Checkout Registration submit button is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Checkout Registration submit button is not clicked\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"btncheckoutregistrationsubmit\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\r\n\r\n\t}", "private InboxPage clickPasswordNext() {\n try {\n Thread.sleep(2000);\n } catch (Exception e) {\n }\n if (waitForElementDisplayed(By.id(ID_PASSWORD_NEXT), 10, 20)) {\n clickOnElementUsingJquery(driver.findElement(By.id(ID_PASSWORD_NEXT)));\n return new InboxPage(driver);\n }\n return null;\n }", "public void nextButtonClicked()\r\n {\n manager = sond.getManager();\r\n String insertSearchDelete = sond.getInsertSearchDelete();\r\n AnimatorThread animThread = model.getThread();\r\n\r\n // falls der Thread pausiert ist, wird er beim betätigen des\r\n // next-Buttons aufgeweckt\r\n if (button.getPlay() && animThread != null && animThread.isAlive())\r\n {\r\n if (!animThread.getWait())\r\n {\r\n animThread.interrupt();\r\n }\r\n else\r\n {\r\n animThread.wake();\r\n }\r\n }\r\n // Redo muss vor den weiteren if Anweisungen stehen, damit erst alle\r\n // Redo ausgeführt werden, bevor neue Aktionen dem manager hinzugefuegt\r\n // werden\r\n else if (manager.canRedo())\r\n {\r\n manager.redo();\r\n }\r\n else if (!sond.getArrayPosition() && insertSearchDelete.equals(\"insert\"))\r\n {\r\n sond.nextInsertPosition();\r\n UndoRedoSetAnimation command = new UndoRedoSetAnimation(sond);\r\n manager.addEdit(command);\r\n }\r\n else if (!sond.getArrayPosition() && insertSearchDelete.equals(\"search\"))\r\n {\r\n sond.nextSearchPosition();\r\n UndoRedoSetAnimation command = new UndoRedoSetAnimation(sond);\r\n manager.addEdit(command);\r\n }\r\n else if (!sond.getArrayPosition() && insertSearchDelete.equals(\"delete\"))\r\n {\r\n sond.nextSearchPosition();\r\n UndoRedoSetAnimation command = new UndoRedoSetAnimation(sond);\r\n manager.addEdit(command);\r\n }\r\n }", "@Override\n public void run() {\n nextButtonAction(); // invoking next button //\n }", "private void clickContinueButton() {\n clickElement(continueButtonLocator);\n }", "@Override\n public void onNextPressed() {\n }", "public void clickOnSubmit() {\r\n\r\n\t\treportStep(\"About to click on Submit button \", \"INFO\");\r\n\r\n\t\tif(clickAfterWait(submitButton)) {\r\n\r\n\t\t\treportStep(\"Successfully clicked on the Submit button \", \"PASS\");\r\n\r\n\t\t}else {\r\n\t\t\tclickAfterWait(submitButton);\r\n\t\t\treportStep(\"Failed to click on the Submit button \", \"INFO\");\r\n\r\n\t\t}\r\n\t}", "public static void pressSubmit(){\n DriverManager.driver.findElement(Constans.SUBMIT_BUTTON_LOCATOR).click();\n }", "public SelenideElement submitButton() {\n return formPageRoot().$(By.xpath (\"//button[@type='submit']\")); \n }", "public void testGetNextFinishButtonEnabled() {\n System.out.println(\"getNextFinishButtonEnabled\");\n Wizard instance = new Wizard();\n boolean expResult = false;\n boolean result = instance.getNextFinishButtonEnabled();\n assertEquals(expResult, result);\n }", "@Then(\"user clicks submit button\")\n\tpublic void user_clicks_submit_button(){\n\t\t driver.findElement(By.name(\"sub\")).click();\n\t\t driver.findElement(By.xpath(\"//a[@href='addcustomerpage.php']\")).click();\n\t}", "@Then(\"^click on the Login button user nagivate to the next page$\")\r\n\tpublic void click_on_the_Login_button_user_nagivate_to_the_next_page() throws Throwable {\n\t w.submit();\r\n\t}", "public void cashondeliverysubmit(){\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Submit order button should be clicked\");\r\n\t\ttry{\r\n\t\t\twaitforElementVisible(locator_split(\"btnsubmitorder\"));\r\n\t\t\tclick(locator_split(\"btnsubmitorder\"));\r\n\t\t\tif(isExist(locator_split(\"btnsubmitorder\")))\r\n\t\t\t{\r\n\t\t\t\tclick(locator_split(\"btnsubmitorder\"));\r\n\t\t\t}\r\n\r\n\t\t\twaitForPageToLoad(20);\r\n\t\t\tSystem.out.println(\"Submit order button is clicked.\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Submit order button is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Submit order button is not clicked \");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"btnsubmitorder\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\r\n\r\n\t}", "@Test\n public void testNextAndPrevious() throws Exception {\n\n driver.get(baseUrl + \"/computerdatabase/computers?page-number=1&lang=en\");\n\n driver.findElement(By.xpath(\"//li[contains(@class, 'active')]/a[text()='1']\"));\n\n driver.findElement(By.linkText(\"Next\")).click();\n driver.findElement(By.xpath(\"//li[contains(@class, 'active')]/a[text()='2']\"));\n\n try {\n driver.findElement(By.xpath(\"//li[contains(@class, 'active')]/a[text()='1']\"));\n fail();\n } catch (NoSuchElementException e) {\n assertTrue(true);\n }\n\n driver.findElement(By.linkText(\"Previous\")).click();\n driver.findElement(By.xpath(\"//li[contains(@class, 'active')]/a[text()='1']\"));\n try {\n driver.findElement(By.xpath(\"//li[contains(@class, 'active')]/a[text()='2']\"));\n fail();\n } catch (NoSuchElementException e) {\n assertTrue(true);\n }\n }", "@Override\r\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tgoNext();\r\n\t\t\t\t}", "public void clickContinueInAgentPage() throws Exception {\n\n\t\twdriver.findElement(By.xpath(\"//button[@type='submit']\")).click();\n\n\t}", "public void next(Parameters params) {\r\n pui.commitParameters();\r\n }", "protected JButton getNext()\n {\n return next;\n }", "public IWizardPage getNextPage();", "@Step\r\n\tpublic void clickSubmit() {\r\n\t\tLOGGER.info(\"Clicking submit\");\r\n\t\tspeedoSubmit.click();\r\n\t}", "public void onClick(View view) {\n\t\t\t\tmButton1.setBackgroundDrawable(mButtonDrawable1);\n\t\t\t\tmButton2.setBackgroundDrawable(mButtonDrawable2);\n\t\t\t\tmButton3.setBackgroundDrawable(mButtonDrawable3);\n\n\t\t\t\tString rightResult = getString(mRightResult.get(mRandomIndex));\n\t\t\t\tLog.d(TAG, \"next button onClick start, mRandomIndex =\" + mRandomIndex + \"; rightResult is \" + rightResult + \",mFinalResult is \" + mFinalResult + \"; mRightResultCount =\" + mRightResultCount);\n\t\t\t\tif (mFinalResult == null) {\n\t\t\t\t\tmTimer.stop();\n\t\t\t\t\tshowErrorDialog();\n\t\t\t\t\treturn;\n\t\t\t\t} else if (mFinalResult != null && mFinalResult.equals(rightResult)) {\n\t\t\t\t\tmFinalResult = null;\n\t\t\t\t\tmRightResultCount++;\n\t\t\t\t} else {\n\t\t\t\t\tmFinalResult = null;\n\t\t\t\t}\n\t\t\t\trefreshScreen();\n\t\t\t\tLog.d(TAG, \"next button onClick end, mRandomIndex =\" + mRandomIndex + \"; rightResult is \" + rightResult + \",mFinalResult is \" + mFinalResult + \"; mRightResultCount =\" + mRightResultCount);\n\t\t\t}", "@Test(dependsOnMethods = {\"createThingByTopButton\"})\n public void createThingByNextButton() {\n int before = mainPage.countThings();\n // create a new thing\n mainPage.newThingByNext();\n // count things after creation\n int after = mainPage.countThings();\n\n Assert.assertTrue(mainPage.isNewThingCreated(before, after), \"Thing was not created!\");\n }", "@WebElementLocator(webDesktop = \"//input[@type='submit']\",webPhone = \"//input[@type='submit']\")\n private static WebElement buttonSubmit() {\n return getDriver().findElement(By.xpath(new WebElementLocatorFactory().getLocator(LoginPage.class, \"buttonSubmit\")));\n }", "private void nexttest(){\n\t\tif (TestListPanel.ktea2yn = true){\n\t\tnextframe = new Ktea2frame();\n\t\tDas2panel.das2fr.setVisible(false);\n\t\t}\n\t\t/*else if (wiscyn = true){\n\t\tnextframe = new Wiscframe();\n\t\tDas2panel.das2fr.setVisible(false);\n\t\t}\n\t\telse if (basc2yn = true){\n\t\tnextframe = new Basc2frame();\n\t\tDas2panel.das2fr.setVisible(false);\n\t\t}\n\t\telse {\n\t\t\n\t\t}*/\n\t\t\n\t}", "public void nextQuestion(View view) {\n Button button = (Button) findViewById(R.id.question_button_previous);\n if (!button.isEnabled()){\n button.setEnabled(true);\n }\n saveProgress();\n sequence++;\n updateView();\n }", "public void ClickChecoutInsertBillingInfobutton(){\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Checkout InsertBillingInfo submit button should be clicked\");\r\n\t\ttry{\r\n\r\n\t\t\tclick(locator_split(\"btncheckoutInsertBillingInfo\"));\r\n\t\t\tSystem.out.println(\"Checkout InsertBillingInfo submit button is clicked\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Checkout InsertBillingInfo submit button is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Checkout InsertBillingInfo submit button is not clicked\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"btncheckoutInsertBillingInfo\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\r\n\r\n\t}", "private void callNextQuestion() {\n questionProgress++;\n\n if (questionProgress <= 10) {\n\n if (Utils.isKitkat()) {\n ContinuousSlide slide = new ContinuousSlide(Gravity.RIGHT);\n TransitionManager.beginDelayedTransition(llBody, slide);\n }\n\n btNext.setVisibility(View.GONE);\n currentQuestion = getQuestionById(questionProgress);\n ivScene.setVisibility(View.GONE);\n tvQuestion.setVisibility(View.GONE);\n\n if (tvResult != null) {\n flSceneFrame.removeView(tvResult);\n }\n ivScene.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {\n @Override\n public void onGlobalLayout() {\n ivScene.getViewTreeObserver().removeOnGlobalLayoutListener(this);\n resizeSceneArea();\n for (int i = 0; i < 4; i++) {\n positionAnswer(answerButtonList.get(i), currentQuestion.getAnswers().get(i));\n waitAnimations();\n }\n }\n });\n } else {\n questionProgress = 10;\n Intent intent = new Intent(this, ResultActivity_.class);\n startActivity(intent);\n }\n }", "public void clickOnContinueShoppingButton()\n \t{\n \t\tproductRequirementsPageLocators.clickOnContinueShoppingButton.click();\n\n \t}", "public void clickContinue() {\n\t\tcontinueButton.click();\n\t}", "public void clickOnProceedToCheckoutButton()\n \t{\n \t\tproductRequirementsPageLocators.clickOnProceedToCheckoutButton.click();\n\n \t}", "public void onNextButtonPressed(View v) {\n ParticipantDetailsDataAdapter.ViewHolder partViewHolder;\n CrtPollForm3Data form3Data = new CrtPollForm3Data();\n if (mListener != null) {\n for (int i = 0 ; i < mRecyclerView.getAdapter().getItemCount();i++)\n {\n RecyclerView.ViewHolder viewHolder = mRecyclerView.findViewHolderForAdapterPosition(i);\n if (viewHolder != null && viewHolder instanceof ParticipantDetailsDataAdapter.ViewHolder){\n partViewHolder = (ParticipantDetailsDataAdapter.ViewHolder) viewHolder;\n }\n }\n mListener.onFragmentInteractionForm3(form3Data);\n }\n }", "public void actionPerformed(ActionEvent e)\n\t\t{\n\t\t\tnextButton.setText(\"NEXT >> \");\n\t\t\tint index = tabbedPane.getSelectedIndex();\n\t\t\tif (index != 0)\n\t\t\t{\n\t\t\t\ttabbedPane.setSelectedIndex(index - 1);\n\t\t\t}\n\t\t\tif (index - 1 == 0)\n\t\t\t{\n\t\t\t\tbackButton.setEnabled(false);\n\t\t\t}\n\t\t}", "protected void updateButtonStates()\n\t{\n\t\tboolean isLastStep = isLastStep(currentStep);\n\t\tboolean isFirstStep = isFirstStep(currentStep);\n\t\t// Check whether current step data is valid or not\n\t\tboolean isValid = currentStep.onAdvance();\n\t\tthis.getCancelButton().setVisible(!isLastStep);\n\t\tthis.getCancelButton().setEnabled(!isLastStep);\n\t\t\n\t\tthis.getBackButton().setVisible(!isLastStep);\n\t\tthis.getBackButton().setEnabled(!isFirstStep && !isLastStep);\n\n\t\tthis.getNextButton().setVisible(!isLastStep);\n\t\tthis.getNextButton().setEnabled(!isLastStep && isValid);\n\n\t\tthis.getFinishButton().setEnabled(isLastStep);\n\t\tthis.getFinishButton().setVisible(isLastStep);\n\t}", "public void ClickContinueShoppingBtnAddedToCartPage( ){\r\n\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Continue Shopping button clicked in Added to Cart Page.\");\r\n\t\ttry{\r\n\r\n\t\t\twaitforElementVisible(locator_split(\"btnShoppingCartContinueShopping\"));\r\n\t\t\tclick(locator_split(\"btnShoppingCartContinueShopping\"));\r\n\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Continue Shopping button clicked in Added to Cart Page.\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Continue Shopping button is not clicked in Added to Cart Page.\"+elementProperties.getProperty(\"btnShoppingCartContinueShopping\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"btnShoppingCartContinueShopping\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\r\n\t}", "@Then(\"^Click on signup button$\")\t\t\t\t\t\n public void Click_on_signup_button() throws Throwable \t\t\t\t\t\t\t\n { \n \tdriver.findElement(By.xpath(\"//*[@id='accountDetailsNext']/content/span\")).click();\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\t\t\t\t\n }", "@And(\"^I Should see Continue shopping button$\")\n public void iShouldSeeCountinueButton()throws Throwable{\n Assert.assertTrue(\"Continue shopping button is not present\", Elements.elementPresent(\"checkout.rc_test_element\"));\n Clicks.click(\"checkout.rc_test_element\");\n getWebDriver().navigate().back();\n }", "@Test\n\tpublic void firstPage() throws Exception {\n\t\tpostRequest(1, 0).andExpect(content().string(CoreMatchers.containsString(\"Answered\")))\n\t\t\t\t.andExpect(content().string(IsNot.not(CoreMatchers.containsString(\"prevBtn\"))));\n\t}", "public void selectSubmitButton() {\n\t\tel = Browser.getDriver().findElement(element_submit_button);\n\t\tuihelper.click(el);\n\t}", "public void clickSubmitButton(){\n actionsWithOurElements.clickOnElement(buttonSubmit);\n }", "public void addNext()\r\n\t{\r\n\t\tnext = new JButton(\"Next\");\r\n\t\tnext.addActionListener(new ActionListener()\r\n\t\t{\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e)\r\n\t\t\t{\r\n\t\t\t\tif (state.getTurn() == 1)\r\n\t\t\t\t{\r\n\t\t\t\t\tstate.setPlayerTwoTurn();\r\n\t\t\t\t}\r\n\t\t\t\telse if (state.getTurn() == 2)\r\n\t\t\t\t{\r\n\t\t\t\t\tstate.setPlayerOneTurn();\r\n\t\t\t\t}\r\n\t\t\t\tremoveNext();\r\n\t\t\t\t\r\n\t\t\t\tstate.setWaiting(false);\r\n\t\t\t}\r\n\t\t});\r\n\t\tadd(next);\r\n\t\t\r\n\t\trevalidate();\r\n\t\trepaint();\r\n\t}", "public void ClickContinueShopping(){\r\n\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Continue shopping button should be clicked\");\r\n\t\ttry{\r\n\t\t\tsleep(3000);\r\n\t\t\tList<WebElement> ele = listofelements(locator_split(\"btnClickcontinueButton\"));\r\n\t\t\tif(ele.size()>1){\r\n\t\t\t\tclick(ele.get(1));\r\n\t\t\t}else{\r\n\t\t\t\tclick(ele.get(0));\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"Continue Shopping button is clicked\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Continue Shopping button is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Continue Shopping button is not clicked\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"btnClickcontinueButton\")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\t}", "public void ClickMyAccountContinueShopping(){\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- My Account Registration continue shopping should be clicked\");\r\n\t\ttry{\r\n\r\n\t\t\tclick(locator_split(\"btnMyAccountContinueShopping\"));\r\n\t\t\tThread.sleep(3000);\r\n\t\t\tSystem.out.println(\"My Account Registration continue shopping is clicked\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- My Account Registration continue shopping is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- My Account Registration continue shopping is not clicked\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"btnMyAccountContinueShopping\")\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\r\n\r\n\t}", "public NewcommunityPage submitKo() {\n driver.findElement(nextLocator).click();\r\n\r\n // Return a new page object representing the destination. Should the login page ever\r\n // go somewhere else (for example, a legal disclaimer) then changing the method signature\r\n // for this method will mean that all tests that rely on this behaviour won't compile.\r\n return new NewcommunityPage(driver); \r\n\t}", "public void addNextActionListener(ActionListener actionListener){\n\t\tbtnNext.addActionListener(actionListener);\n\t}", "protected GuiTestObject button_registerNowsubmit() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"button_registerNowsubmit\"));\n\t}", "public void acceptAndProceed()\r\n {\r\n\t driver.findElement(By.id(\"PCNChecked\")).click();\r\n\t driver.findElement(By.xpath(\"/html/body/div[1]/div/div/main/div/main/div/div/div[1]/div/div/form/fieldset/div[3]/div[2]/button\")).click();\r\n }", "@When(\"User clicks on Find Details button\")\r\n\tpublic void user_clicks_on_find_details_button() \r\n\t{\n\t driver.findElement(By.xpath(\"//input[@type='submit']\")).click();\r\n\t}", "void clickNextStation();", "private void nextButtonActionPerformed() {//GEN-FIRST:event_nextButtonActionPerformed\r\n getNextPicture();\r\n\r\n }", "void onNextIconClick();", "public void pgr_D_Next(ActionEvent e) throws Exception\n\t{\n\t\t//#CM5132\n\t\t// Store listbox to the Session\n\t\tSessionDeadStockListRet listbox =\n\t\t\t(SessionDeadStockListRet) this.getSession().getAttribute(\"LISTBOX\");\n\t\tsetList(listbox, \"next\");\n\t}", "@When(\"^I click on the Continue button$\")\n\tpublic void i_click_on_the_Continue_button() throws Throwable {\n\t\tdriver.findElement(By.id(\"tdb5\")).click();\n\t \n\t}", "private JButton getAfterButton() {\r\n\t\tif (afterButton == null) {\r\n\t\t\tafterButton = new JButton();\r\n\t\t\tafterButton.setLocation(new Point(660, 480));\r\n\t\t\tafterButton.setText(\"Next Page\");\r\n\t\t\tafterButton.setSize(new Dimension(120, 30));\r\n\t\t}\r\n\t\treturn afterButton;\r\n\t}", "@When(\"^Click's on Submit Button$\")\n\tpublic void click_s_on_Submit_Button() throws Throwable {\n\t\treviewPageObjects.clickonsubmit();\n\t}", "public void nextButton(View view) {\n Button submit = (Button) findViewById(R.id.start_and_submit_button);\n RadioGroup radioButtons = (RadioGroup) findViewById(R.id.radio_group);\n LinearLayout checkGroup = (LinearLayout) findViewById(R.id.check_group);\n EditText inputText = (EditText) findViewById(R.id.input_text);\n getUserAnswer();\n\n if (currentQueNum < maxNumOfQues) {\n currentQueNum += 1;\n optionsSelect();\n\n //this set question no 4 to checkbox view UI reply as required\n if (currentQueNum == 4) {\n radioButtons.setVisibility(View.GONE);\n checkGroup.setVisibility(View.VISIBLE);\n inputText.setVisibility(View.GONE);\n String que[] = getResources().getStringArray(R.array.questions);\n TextView questionsPane = (TextView) findViewById(R.id.questions_pane);\n questionsPane.setText(que[currentQueNum - 1]);\n }\n\n //this below block of code will set question number 7 and 10 to textView UI reply\n else if (currentQueNum == 7 || currentQueNum == 10) {\n radioButtons.setVisibility(View.GONE);\n inputText.setVisibility(View.VISIBLE);\n checkGroup.setVisibility(View.GONE);\n String que[] = getResources().getStringArray(R.array.questions);\n TextView quesDisp = (TextView) findViewById(R.id.questions_pane);\n quesDisp.setText(que[currentQueNum - 1]);\n }\n\n // this below block of code will set the view with appropriate UI for answers\n else {\n radioButtons.setVisibility(View.VISIBLE);\n inputText.setVisibility(View.GONE);\n checkGroup.setVisibility(View.GONE);\n String que[] = getResources().getStringArray(R.array.questions);\n TextView questionsPane = (TextView) findViewById(R.id.questions_pane);\n questionsPane.setText(que[currentQueNum - 1]);\n }\n }\n\n //notify the user that he/she have reach the end of test he should submit?\n else {\n Toast endOfQuiz = makeText(getApplicationContext(), \"YOU HAVE REACH THE END OF TEST, SUBMIT?\", Toast.LENGTH_SHORT);\n endOfQuiz.show();\n submit.setEnabled(true);\n }\n if (currentQueNum != maxNumOfQues) {\n inputText.setText(\"\");//clear the text field for subsequent use\n radioButtons.clearCheck();//this clear the check state of radioButtons since same object will be re used in next question\n }\n }", "public void CashonDeliverySubmit(){\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Cashondelivery should be submitted\");\r\n\t\ttry{\r\n\r\n\t\t\tclick(locator_split(\"btnsubmitorder\"));\r\n\r\n\t\t\tif(isExist(locator_split(\"btnsubmitorder\"))){\r\n\r\n\t\t\t\tclick_submitorder_creditcard();\r\n\r\n\t\t\t}\r\n\r\n\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Cashondelivery should be clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Cashondelivery button is not clicked\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"btnsubmitorder\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\t}", "public void createnewusersubmitbutton( ){\r\n\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Create new user button clicked\");\r\n\t\ttry{\r\n\r\n\t\t\twaitforElementVisible(locator_split(\"createnewuserbutton\"));\r\n\t\t\tclick(locator_split(\"createnewuserbutton\"));\r\n\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- create new user button clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- create new user button is not clicked \"+elementProperties.getProperty(\"createnewuserbutton\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"createnewuserbutton\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\r\n\t}", "public void testSetNextFinishButtonEnabled() {\n System.out.println(\"setNextFinishButtonEnabled\");\n boolean newValue = false;\n Wizard instance = new Wizard();\n instance.setNextFinishButtonEnabled(newValue);\n }", "public static void click_SubmitButton() {\n\t\tboolean bstatus;\n\n\t\tbstatus = clickElement(btn_Submit);\n\t\tReporter.log(bstatus, \"Submit Button is clicked\", \"Submit Button not clicked\");\n\n\t\t\n\t}", "public void cashondelivery_submit(){\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- shopping cart link should be clicked\");\r\n\t\ttry{\r\n\r\n\t\t\twaitforElementVisible(locator_split(\"cashondelivery\"));\r\n\t\t\tclick(locator_split(\"cashondelivery\"));\r\n\t\t\twaitForPageToLoad(100);\r\n\t\t\twaitforElementVisible(locator_split(\"submitorder\"));\r\n\t\t\tclick(locator_split(\"submitorder\"));\r\n\t\t\twaitForPageToLoad(20);\r\n\t\t\tSystem.out.println(\"shopping cart link is clicked.\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- shopping cart link is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- shopping cart link is not clicked \");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"submitorder\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\r\n\r\n\t}", "private void nextPage()\n {\n if(currentPage + 1 <= maxPage)\n {\n prevPageButton.setEnabled(true);\n if(currentPage + 2 > maxPage)\n nextPageButton.setEnabled(false);\n \n paginate(++currentPage, getResultsPerPage());\n updatePageLabel(currentPage, maxPage);\n }\n }", "private void buttonSubmit (){\n Intent nextActivity = new Intent(Question_One.this, Question_two.class);\n\n // Transfers the user's current score to the next intent(question)\n nextActivity.putExtra(EXTRA_TEXT,scoreCounter);\n startActivity(nextActivity);\n }", "public void submit() {\n driver.findElement(SUBMIT_SELECTOR).click();\n }", "public void onNextPress() {\n try {\n timer(ctx,true,ConstantTestIDs.EAR_PHONE_ID,null);\n MainActivity activity = (MainActivity) getActivity();\n if (Constants.isSkipButton) {\n try{\n testController.unRegisterEarJack();\n\n }\n catch (Exception e){\n e.printStackTrace();\n }\n isTestPerformed=true;\n mImgViewEarPhone.setImageDrawable(getResources().getDrawable(R.drawable.ic_earphone_green_svg_168),false,getActivity());\n utils.showToast(ctx, getResources().getString(R.string.txtManualFail));\n\n }\n boolean semi=true;\n nextPress(activity,semi);\n\n } catch (Exception e) {\n logException(e, \"EarJackManualFragment_onNextPress()\");\n }\n\n }", "public String nextStep();", "public void showNextQuestion() {\n currentQuiz++;\n gui.setUp();\n if (currentQuiz <= VocabularyQuizList.MAX_NUMBER_QUIZ) {\n showQuestion(currentQuiz);\n } else {\n result();\n }\n gui.getFrame().setVisible(true);\n }" ]
[ "0.787031", "0.73991144", "0.73264945", "0.7257676", "0.72134876", "0.7150805", "0.7043181", "0.693248", "0.6865035", "0.68249625", "0.6814236", "0.6591589", "0.659094", "0.65559477", "0.6429099", "0.6370658", "0.63592863", "0.63525003", "0.6342275", "0.63139915", "0.62776744", "0.62744397", "0.6234761", "0.6234132", "0.6228353", "0.6224067", "0.6219494", "0.62108344", "0.6208222", "0.61519533", "0.61232543", "0.6123186", "0.61144453", "0.6109172", "0.60993034", "0.6074545", "0.6049139", "0.60186374", "0.6017193", "0.6010252", "0.59634936", "0.596", "0.59389013", "0.5938552", "0.5923575", "0.59208924", "0.59196055", "0.59116143", "0.5892042", "0.5887497", "0.5883766", "0.5881027", "0.58796597", "0.5877892", "0.5859618", "0.5832349", "0.58144015", "0.58090174", "0.5806133", "0.57965857", "0.57925487", "0.57836175", "0.5780605", "0.57786024", "0.5776827", "0.57718426", "0.57646257", "0.5758229", "0.5757878", "0.5756408", "0.57490367", "0.5748013", "0.5746005", "0.5734488", "0.57256484", "0.57060724", "0.5699246", "0.56962985", "0.56877315", "0.568225", "0.56811947", "0.56769735", "0.56737196", "0.5671374", "0.56433606", "0.56373066", "0.56314194", "0.5624114", "0.56168354", "0.5615357", "0.5609515", "0.56019384", "0.5601139", "0.55990744", "0.5587354", "0.5582866", "0.5574497", "0.55730397", "0.55598116", "0.55580634" ]
0.6302911
20
postcode: with default state. .id : postcode .type : text .title : .class : Html.INPUT.text .name : postcode .classIndex : 1
protected TextGuiTestObject postCode() { return new TextGuiTestObject( getMappedTestObject("postCode")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPostcode(String postcode) {\n this.postcode = postcode;\n }", "public void setPostcode(java.lang.String postcode) {\r\n this.postcode = postcode;\r\n }", "public void setPostcode(java.lang.String postcode) {\n this.postcode = postcode;\n }", "public String getPostcode() {\r\n return postcode;\r\n }", "public String getPostcode()\n {\n return postcode;\n }", "public String getPostcode() {\n return postcode;\n }", "public void setPostcode(String postcode) {\n\t\tthis.postcode = postcode;\n\t}", "public void setPostcode(String postcode) {\n\t\tthis.postcode = postcode;\n\t}", "public CustomerAddressQuery postcode() {\n startField(\"postcode\");\n\n return this;\n }", "public void setPostcode(String postcode){\r\n\t\t\tif(postcode == null || postcode.isEmpty()) {\r\n\t\t\t\tthis.postcode = \"N/A\";\r\n\t\t\t}else\r\n\t\t\t{\r\n\t\t\t\tthis.postcode = postcode;\r\n\t\t\t}\r\n\t\t}", "public String getPostcode() {\n return (String) get(\"postcode\");\n }", "public String getPostcode() {\n\t\treturn postcode;\n\t}", "public String getPostcode() {\n\t\treturn postcode;\n\t}", "public void setPostalcode(String postalcode) {\n this.postalcode = postalcode;\n }", "public void setPostalCode(String postalCode) {\n this.postalCode = postalCode;\n }", "public java.lang.String getPostcode() {\r\n return postcode;\r\n }", "public java.lang.String getPostcode() {\n return postcode;\n }", "public void setPostalCode(String postalCode) {\n this.postalCode = postalCode;\n }", "private String getAnomizedPostcode() {\r\n\tString postcode = (String) record.get(\"postcode\");\r\n\tif (postcode != null && postcode.length() > 0) {\r\n\t postcode = postcode.substring(0, 1);\r\n\t}\r\n\treturn postcode;\r\n }", "public void setAddressPostalCode(String addressPostalCode) {\n this.addressPostalCode = addressPostalCode;\n }", "public synchronized void enterPincode(String pincode) {\n\t\ttry {\n\t\t\tWebActionUtil.waitForElement(pincodeTxtField, \"pincode Txt Field\", 30);\n\t\t\tWebActionUtil.typeText(pincodeTxtField, pincode, \"pincodeTxtField\");\n\t\t}\n\t\t catch (Exception e) \n\t\t{\n\t\t\t WebActionUtil.error(e.getMessage());\n\t\t\tWebActionUtil.error(\"Unable to enter pincode\");\n\t\t\tAssert.fail(\"Unable to enter pincode\");\n\t\t}\n\t}", "public void setPostalCode(java.lang.String postalCode) {\n this.postalCode = postalCode;\n }", "public Address postalCode(String postalCode) {\n this.postalCode = postalCode;\n return this;\n }", "public String getPostalCode() {\n return postalCode;\n }", "public String getPostalCode() {\n return postalCode;\n }", "public void setPostCode(Integer postCode) {\n this.postCode = postCode;\n }", "public String getPostalcode() {\n return postalcode;\n }", "public void setPostalCodeState(String postalCode) {\r\n\t\tthis.postalCode = postalCode;\r\n\t}", "public String getPostalCode() {\r\n return postalCode;\r\n }", "public String getContactPostcode() {\n return contactPostcode;\n }", "public void setPostalCode (java.lang.String postalCode) {\n\t\tthis.postalCode = postalCode;\n\t}", "public void validate_the_Postcode_of_Billing_Address_in_Customer_Tab(String Postcode)throws Exception {\n\t\tVerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_BillingAddress.replaceAll(\"M_Header\", \"Billing Address\").replaceAll(\"M_Category\", \"Postcode\").replaceAll(\"M_InnerText\", Postcode), \"Postcode of Billing Address - \"+Postcode, false);\n\t}", "@Override\n public void onSelected(BaseSearchDialogCompat dialog,\n SearchModelForPostcode item, int position) {\n\n\n Toast.makeText(RegisterActivity.this, \"postcode selected:\"+item.getTitle(),\n Toast.LENGTH_SHORT).show();\n pc.setText(item.getTitle());\n dialog.dismiss();\n }", "public Integer getPostCode() {\n return postCode;\n }", "public String getPostalCodeState() {\r\n\t\treturn postalCode;\r\n\t}", "public Zip_Code Zip_Code(String userValue){\n Reusable_Library_Loggers.userKeys(driver,\"//input[@id = 'txtZipCode']\",userValue,\"Zip Code Box\",logger);\n return new Zip_Code(driver);\n\n }", "private void fillCity() {\n \n if(postalCodeTF.getText().length() == 4){\n City city = memberConnection.getCity(postalCodeTF.getText());\n cityTF.setText(city.getCity().replaceAll(\"_\", \" \"));\n municipalTF.setText(city.getMunicipal().replaceAll(\"_\", \" \"));\n }\n }", "public String CheckPostCode (HashMap<String, ?> InputObj) throws NoSuchElementException {\n\t\tString outRetVal = \"-1\";\n\t\t\n\t\tString inCountryCode = InputObj.get(\"CountryCode\").toString();\n\t\tString inPostCode = InputObj.get(\"PostCode\").toString();\n\t\t\n\t\tCustSiteEditorObj Obj = new CustSiteEditorObj(webdriver);\n\t\t\n\t\tWebElement TxtCountryCode = Obj.getTxtCountryCode();\n\t\tif (!TxtCountryCode.getAttribute(\"value\").equals(inCountryCode)) {\n\t\t\tTxtCountryCode.clear();\n\t\t\tTxtCountryCode.sendKeys(inCountryCode);\n\t\t\tWebElement TxtPostCode = Obj.getTxtPostCode();\n\t\t\tTxtPostCode.click();\n\t\t}\n\t\t\n\t\tboolean isCountryCodeMsgExist = SeleniumUtil.isWebElementExist(webdriver, Obj.getLblCountryCodeMessageLocator(), 1);\n\t\tif (isCountryCodeMsgExist) {\n\t\t\tWebElement LblCountryCodeMessage = Obj.getLblCountryCodeMessage();\n\t\t\tboolean isVisible = LblCountryCodeMessage.isDisplayed();\n\t\t\tif (isVisible) {\n\t\t\t\tCommUtil.logger.info(\" > Msg: \"+LblCountryCodeMessage.getText());\n\t\t\t\tif (CommUtil.isMatchByReg(LblCountryCodeMessage.getText(), \"Only 2 characters\")) {\n\t\t\t\t\toutRetVal = \"1\";\n\t\t\t\t\treturn outRetVal;\n\t\t\t\t} else {\n\t\t\t\t\tCommUtil.logger.info(\" > Unhandled message.\");\n\t\t\t\t\treturn outRetVal;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tWebElement TxtPostCode = Obj.getTxtPostCode();\n\t\tif (!TxtPostCode.getAttribute(\"value\").equals(inPostCode)) {\n\t\t\tTxtPostCode.clear();\n\t\t\tTxtPostCode.sendKeys(inPostCode);\n\t\t\tTxtCountryCode = Obj.getTxtCountryCode();\n\t\t\tTxtCountryCode.click();\n\t\t}\t\n\t\t\n\t\tboolean isPostCodeMsgExist = SeleniumUtil.isWebElementExist(webdriver, Obj.getLblPostCodeMessageLocator(), 1);\n\t\tif (isPostCodeMsgExist) {\n\t\t\tWebElement LblPostCodeMessage = Obj.getLblPostCodeMessage();\n\t\t\tboolean isVisible = LblPostCodeMessage.isDisplayed();\n\t\t\tif (isVisible) {\n\t\t\t\tCommUtil.logger.info(\" > Msg: \"+LblPostCodeMessage.getText());\n\t\t\t\tif (CommUtil.isMatchByReg(LblPostCodeMessage.getText(), \"Only 5 digits\")) {\n\t\t\t\t\toutRetVal = \"2\";\n\t\t\t\t\treturn outRetVal;\n\t\t\t\t} else if (CommUtil.isMatchByReg(LblPostCodeMessage.getText(), \"Only alpha numeric dash space\")) {\n\t\t\t\t\toutRetVal = \"3\";\n\t\t\t\t\treturn outRetVal;\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tCommUtil.logger.info(\" > Unhandled message.\");\n\t\t\t\t\treturn outRetVal;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\toutRetVal = \"0\";\n\t\treturn outRetVal;\n\t\t\n\t}", "public PersonAddressBuilderDFB withPostCode(String postCode){\n person.postCode = postCode;\n return this;\n }", "public void setPOST_CODE1(java.lang.String value)\n {\n if ((__POST_CODE1 == null) != (value == null) || (value != null && ! value.equals(__POST_CODE1)))\n {\n _isDirty = true;\n }\n __POST_CODE1 = value;\n }", "public void validate_the_Postcode_of_Installation_Address_in_Customer_Tab(String Postcode)throws Exception {\n\t\tVerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_InstallationAddress.replaceAll(\"M_Header\", \"Installation Address\").replaceAll(\"M_Category\", \"Postcode\").replaceAll(\"M_InnerText\", Postcode), \"Postcode of Installation Address - \"+Postcode, false);\n\t}", "@Override\r\n\tpublic Boolean setCode(PostalCodeValue pCode) throws NotLoggedInException {\r\n\t\tcode = new PostalCode(getUser(), pCode.getCode());\r\n\t\t\r\n\t\tif (code != null) {\r\n\t\t\tString placeString = code.getCode();\r\n\t\t\tLatLong aLatLong = findLatLong(placeString);\r\n\t\t\tif (aLatLong != null) {\r\n\t\t\t\tlatitude = aLatLong.getLatitude();\r\n\t\t\t\tlongitude = aLatLong.getLongitude();\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\treturn false;\r\n\t}", "public PostalCode(String postalCode) throws IllegalValueException {\n requireNonNull(postalCode);\n String trimmedPostalCode = postalCode.trim();\n if (!isValidPostalCode(trimmedPostalCode)) {\n throw new IllegalValueException(MESSAGE_POSTAL_CODE_CONSTRAINTS);\n }\n this.value = trimmedPostalCode.toUpperCase();\n }", "@Override\r\n\tpublic PostalCodeValue getCode() {\r\n\t\treturn new PostalCodeValue(code.getCode());\r\n\t}", "public void setCodeposte(String value) {\n setAttributeInternal(CODEPOSTE, value);\n }", "public void setPostalCd(String postalCd) {\r\n this.postalCd = postalCd;\r\n }", "public void setPincode(java.lang.String pincode) {\r\n this.pincode = pincode;\r\n }", "@Override\n public String getPostCode() {\n\n if(this.postCode == null){\n\n this.postCode = TestDatabase.getInstance().getClientField(token, id, \"postCode\");\n }\n\n return postCode;\n }", "public void setContactPostcode(String contactPostcode) {\n this.contactPostcode = contactPostcode;\n }", "public void saveJalPostalcode(JalPostalcode jalPostalcode);", "public void setZipcode(String zipcode)\n {\n this.zipcode = zipcode;\n }", "public void setPincode(String pincode)\n\t{\n\t\tthis._pincode=pincode;\n\t}", "public java.lang.String getPostalCode () {\n\t\treturn postalCode;\n\t}", "public java.lang.String getPostalCode() {\n return postalCode;\n }", "@ApiModelProperty(value = \"Identifier consisting of a group of letters and/or numbers that is added to a postal address to assist the sorting of mail.\")\n\n@Size(min=1,max=16) \n public String getPostalCode() {\n return postalCode;\n }", "public void setPincode(String pincode) {\r\n\t\tthis.pincode = pincode;\r\n\t}", "@When(\"^I insert my postcode as \\\"([^\\\"]*)\\\"$\")\n public void iInsertMyPostcodeAs(String arg0) throws Throwable {\n home.setUser_postcode(\"G128RF\");\n // throw new PendingException();\n }", "public void validate_the_Postcode_of_Correspondence_Address_in_Customer_Tab(String Postcode)throws Exception {\n\t\tVerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_CorrespondenceAddress.replaceAll(\"M_Header\", \"Correspondence Address\").replaceAll(\"M_Category\", \"Postcode\").replaceAll(\"M_InnerText\", Postcode), \"Postcode of Correspondence Address - \"+Postcode, false);\n\t}", "public List<Address> listAddressByPostCode(String postCode)\n {\n @SuppressWarnings(\"unchecked\")\n List<Address> result = this.sessionFactory.getCurrentSession().createQuery(\"from AddressImpl as address where address.postCode = :postcode order by address.id asc\").setParameter(\"postcode\", postCode).list();\n\n return result;\n }", "public String getPincode() {\r\n\t\treturn pincode;\r\n\t}", "public Zip_Code GO_Zip_Code(){\n Reusable_Library_Loggers.click(driver,\"//*[@id ='txtZipCodetxt']\",\"clicking on GO\",logger);\n return new Zip_Code(driver);\n\n }", "@Override\n public void onClick(View v) {\n\n new SimpleSearchDialogCompat(RegisterActivity.this, \"Select your new postcode\",\n \"What are you looking for?\", null, createSampleData(),\n new SearchResultListener<SearchModelForPostcode>() {\n @Override\n public void onSelected(BaseSearchDialogCompat dialog,\n SearchModelForPostcode item, int position) {\n\n //SharedPreferences.Editor editor = getSharedPreferences(MY_PREFS_NAME, MODE_PRIVATE).edit();\n //editor.putString(\"postcode\", item.getTitle());\n\n\n Toast.makeText(RegisterActivity.this, \"postcode selected:\"+item.getTitle(),\n Toast.LENGTH_SHORT).show();\n pc.setText(item.getTitle());\n dialog.dismiss();\n }\n }).show();\n\n }", "public void setJP_BankDataCustomerCode1 (String JP_BankDataCustomerCode1);", "public void setCityPostalcode (java.lang.String cityPostalcode) {\n\t\tthis.cityPostalcode = cityPostalcode;\n\t}", "public abstract void setZipCode(String sValue);", "protected void setPostalCodesOnSelectedCity(String requestedCityAndFields, final ArrayList<AddressPostalCode> postalCodes) {\n if (postalCodes.size() > 1) {\n postal_spinner.setVisibility(View.VISIBLE);\n ArrayAdapter<AddressPostalCode> adapter = new ArrayAdapter<>(getBaseActivity(), R.layout.form_spinner_item, postalCodes);\n adapter.setDropDownViewResource(R.layout.form_spinner_dropdown_item);\n PromptSpinnerAdapter promptAdapter = new PromptSpinnerAdapter(adapter, R.layout.form_spinner_prompt, getBaseActivity());\n promptAdapter.setPrompt(getString(R.string.address_district_placeholder));\n postal_spinner.setAdapter(promptAdapter);\n postal_spinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n address_postal_region_error.setVisibility(View.GONE);\n post_id = postalCodes.get(position).getValue();\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n }\n });\n hideActivityProgress();\n showFragmentContentContainer();\n } else {\n if (!CollectionUtils.isEmpty(postalCodes)) {\n post_id = postalCodes.get(0).getValue();\n } else {\n post_id = UNKNOWN_POSTAL_CODE;\n }\n postal_spinner.setVisibility(View.GONE);\n address_postal_region_error.setVisibility(View.GONE);\n }\n\n }", "public PostalAddress getPostAddress(){\r\n\t\treturn postalAddress;\r\n\t}", "public String getPostalCd() {\r\n return postalCd;\r\n }", "public void setCode(String code){\n\t\tthis.code = code;\n\t}", "public void setCode(String code)\n {\n this.code = code;\n }", "@Override\n\t@XmlElement\n\tpublic void setAreaCode(String areaCode) {\n\t\t\n\t}", "public void setPostalAddress(String postalAddress) {\n\t\tPostalAddress = postalAddress;\n\t}", "String getTextin_adresse() {\n return in_adresse.getText() ; //To change body of generated methods, choose Tools | Templates.\n }", "public java.lang.String getPincode() {\r\n return pincode;\r\n }", "@Test\n public void postalCodeTest() {\n // TODO: test postalCode\n }", "public void setAreaCode(String areaCode) {\n this.areaCode = areaCode;\n }", "public void setAreacode(Integer areacode) {\n this.areacode = areacode;\n }", "public Address(String street, String townORcity, String postcode) {\r\n this.street = street;\r\n this.townORcity = townORcity;\r\n this.postcode = postcode;\r\n }", "public void setPostalZipCode(PostalCodeEbo postalZipCode) {\n this.postalZipCode = postalZipCode;\n }", "public void setPostalZipCode(PostalCodeEbo postalZipCode) {\n this.postalZipCode = postalZipCode;\n }", "void setCode(String code);", "public void zipCodeFieldTest() {\r\n\t\tif(Step.Wait.forElementVisible(QuoteForm_ComponentObject.zipCodeFieldLocator, \"Zip Code Input Field\", 10)) {\r\n\t\t\t\r\n\t\t\t//Verifies the zip code field populates with the user's zip code\r\n\t\t\tString zipInputBoxTextContent = \r\n\t\t\t\t\tStep.Extract.getContentUsingJS(QuoteForm_ComponentObject.zipCodeFieldLocator, \"Zip Code Field\");\r\n\t\t\tif(zipInputBoxTextContent.isEmpty()) {\r\n\t\t\t\tStep.Failed(\"Zip Code Field is empty\");\r\n\t\t\t} else {\r\n\t\t\t\tStep.Passed(\"Zip Code Field populated with user's location\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Verifies special characters aren't accepted\r\n\t\t\tStep.Wait.forSeconds(1);\r\n\t\t\tStep.Action.typeText(QuoteForm_ComponentObject.zipCodeFieldLocator, \"Zip Code Input Field\", \"!@#$%\");\r\n\t\t\tStep.Action.click(QuoteForm_ComponentObject.seeYourQuoteButtonLocator, \"See Your Quote Button\");\r\n\t\t\tStep.Wait.forElementVisible(QuoteForm_ComponentObject.zipCodeInValidInputLocator,\r\n\t\t\t\t\t\"Zip Code Field shows invalid input\", 10);\r\n\t\t\t\r\n\t\t\t//Veriies invalid zip codes aren't accepted\r\n\t\t\tStep.Action.typeText(QuoteForm_ComponentObject.zipCodeFieldLocator, \"Zip code Input field\", \"00000\");\r\n\t\t\tStep.Action.click(QuoteForm_ComponentObject.seeYourQuoteButtonLocator, \"See Your Quote button\");\r\n\t\t\tStep.Action.click(QuoteForm_ComponentObject.seeYourQuoteButtonLocator, \"See Your Quote button\");\r\n\t\t\tStep.Wait.forElementVisible(QuoteForm_ComponentObject.zipCodeInValidInputLocator,\r\n\t\t\t\t\t\"Zip Code Field shows invalid input\", 10);\r\n\t\t\t\r\n\t\t\t//Verifies that only 5 digits are accepted\r\n\t\t\tStep.Action.typeText(QuoteForm_ComponentObject.zipCodeFieldLocator, \"Zip Code Input Field\", \"1234567\");\r\n\t\t\tzipInputBoxTextContent = Step.Extract.getContentUsingJS(QuoteForm_ComponentObject.zipCodeFieldLocator,\r\n\t\t\t\t\t\"Zip code text box\");\r\n\t\t\tif(zipInputBoxTextContent.length() > 5) {\r\n\t\t\t\tStep.Failed(\"Zip Code Input Field contains more than 5 digits\");\r\n\t\t\t} else {\r\n\t\t\t\tStep.Passed(\"Zip Code Input Field does not accept more than 5 digits\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Verifies user cannot submit a blank zip code\r\n\t\t\tStep.Action.clear(QuoteForm_ComponentObject.zipCodeFieldLocator, \"Zip Code Input Field\");\r\n\t\t\tStep.Action.click(QuoteForm_ComponentObject.seeYourQuoteButtonLocator, \"See Your Quote Button\");\r\n\t\t\tStep.Action.click(QuoteForm_ComponentObject.seeYourQuoteButtonLocator, \"See Your Quote Button\");\r\n\t\t\tStep.Wait.forElementVisible(QuoteForm_ComponentObject.zipCodeInValidInputLocator,\r\n\t\t\t\t\t\"Zip Code Input Field shows invalid input\", 10);\r\n\t\t\t\r\n\t\t\t//Verifies that a valid input is accepted\r\n\t\t\tStep.Action.typeText(QuoteForm_ComponentObject.zipCodeFieldLocator, \"Zip Code Input Field\", \"48146\");\r\n\t\t\tStep.Action.click(QuoteForm_ComponentObject.seeYourQuoteButtonLocator, \"See Your Quote Button\");\r\n\t\t\tStep.Wait.forElementVisible(QuoteForm_ComponentObject.zipCodeValidInputLocator,\r\n\t\t\t\t\t\"Zip Code Field displays as valid input\", 10);\r\n\t\t}\r\n\t}", "public void setZipCode(String zipCode) {\n this.zipCode = zipCode;\n }", "public void setCode(String code) {\n this.code = code;\n }", "public void setCode(String code) {\n this.code = code;\n }", "public void setCode(String code) {\n this.code = code;\n }", "public void setCode(String code) {\n this.code = code;\n }", "public void setCode(String code) {\n this.code = code;\n }", "public void setCode(String code) {\n this.code = code;\n }", "public void setStateCode(java.lang.String stateCode) {\n this.stateCode = stateCode;\n }", "public void setCode (String code) {\r\n\t\tthis.code = code;\r\n\t}", "public void setAreaCode(int value) {\r\n this.areaCode = value;\r\n }", "public void setCodProvincia(String codProvincia);", "public String getCode()\n {\n return code;\n}", "public String getZip_code()\n {\n \treturn zip_code;\n }", "public abstract String getZipCode();", "public java.lang.String getCityPostalcode () {\n\t\treturn cityPostalcode;\n\t}", "@Test\r\n public void getPostalCodeTest()\r\n {\r\n Assert.assertEquals(stub.getPostalCode(), POSTALCODE);\r\n }", "public void setAddress(String street, String town, String postcode)\r\n {\r\n address.setFullAddress(street, town, postcode);\r\n }", "public void setAddress(String street, String town, String postcode)\r\n {\r\n address.setFullAddress(street, town, postcode);\r\n }" ]
[ "0.69351614", "0.691073", "0.684684", "0.6773684", "0.67335135", "0.67033285", "0.66579103", "0.66579103", "0.6653184", "0.6565007", "0.6511412", "0.6495972", "0.6495972", "0.63676685", "0.63118196", "0.630757", "0.622305", "0.6202483", "0.6195161", "0.61069894", "0.60877705", "0.6075299", "0.6034152", "0.59994805", "0.59994805", "0.59641606", "0.5951266", "0.5949154", "0.5908731", "0.5884678", "0.5865722", "0.585291", "0.58177006", "0.5728291", "0.5685526", "0.5657646", "0.5630028", "0.5597393", "0.5574593", "0.55665857", "0.5566515", "0.556077", "0.5548415", "0.55376565", "0.55323565", "0.5504483", "0.5495523", "0.54782236", "0.5474202", "0.54385775", "0.54071915", "0.5404913", "0.5396526", "0.53927064", "0.5380594", "0.5364482", "0.5325206", "0.5311486", "0.530116", "0.5283675", "0.52651834", "0.52333194", "0.52077496", "0.5155726", "0.514761", "0.5146216", "0.51451075", "0.51174754", "0.5106651", "0.5105676", "0.509853", "0.5091977", "0.50897056", "0.5054071", "0.50511456", "0.50461954", "0.5041758", "0.50263137", "0.5016963", "0.5016963", "0.5006018", "0.4997688", "0.49941278", "0.4982854", "0.4982854", "0.4982854", "0.4982854", "0.4982854", "0.4982854", "0.4979009", "0.49728656", "0.4952922", "0.49398303", "0.493887", "0.49337408", "0.49312636", "0.49222624", "0.49122566", "0.4907067", "0.4907067" ]
0.5042518
76
postcode: with specific test context and state. .id : postcode .type : text .title : .class : Html.INPUT.text .name : postcode .classIndex : 1
protected TextGuiTestObject postCode(TestObject anchor, long flags) { return new TextGuiTestObject( getMappedTestObject("postCode"), anchor, flags); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPostcode(String postcode) {\n this.postcode = postcode;\n }", "public void setPostcode(java.lang.String postcode) {\r\n this.postcode = postcode;\r\n }", "public void setPostcode(java.lang.String postcode) {\n this.postcode = postcode;\n }", "public void setPostcode(String postcode) {\n\t\tthis.postcode = postcode;\n\t}", "public void setPostcode(String postcode) {\n\t\tthis.postcode = postcode;\n\t}", "public String getPostcode() {\r\n return postcode;\r\n }", "public String getPostcode()\n {\n return postcode;\n }", "public String getPostcode() {\n return postcode;\n }", "public void validate_the_Postcode_of_Billing_Address_in_Customer_Tab(String Postcode)throws Exception {\n\t\tVerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_BillingAddress.replaceAll(\"M_Header\", \"Billing Address\").replaceAll(\"M_Category\", \"Postcode\").replaceAll(\"M_InnerText\", Postcode), \"Postcode of Billing Address - \"+Postcode, false);\n\t}", "public void setPostcode(String postcode){\r\n\t\t\tif(postcode == null || postcode.isEmpty()) {\r\n\t\t\t\tthis.postcode = \"N/A\";\r\n\t\t\t}else\r\n\t\t\t{\r\n\t\t\t\tthis.postcode = postcode;\r\n\t\t\t}\r\n\t\t}", "public void setPostalcode(String postalcode) {\n this.postalcode = postalcode;\n }", "public CustomerAddressQuery postcode() {\n startField(\"postcode\");\n\n return this;\n }", "public String getPostcode() {\n\t\treturn postcode;\n\t}", "public String getPostcode() {\n\t\treturn postcode;\n\t}", "public void setPostalCode(String postalCode) {\n this.postalCode = postalCode;\n }", "public void setAddressPostalCode(String addressPostalCode) {\n this.addressPostalCode = addressPostalCode;\n }", "public void setPostalCode(String postalCode) {\n this.postalCode = postalCode;\n }", "public String getPostcode() {\n return (String) get(\"postcode\");\n }", "@Test\n public void postalCodeTest() {\n // TODO: test postalCode\n }", "public void validate_the_Postcode_of_Installation_Address_in_Customer_Tab(String Postcode)throws Exception {\n\t\tVerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_InstallationAddress.replaceAll(\"M_Header\", \"Installation Address\").replaceAll(\"M_Category\", \"Postcode\").replaceAll(\"M_InnerText\", Postcode), \"Postcode of Installation Address - \"+Postcode, false);\n\t}", "public void setPostCode(Integer postCode) {\n this.postCode = postCode;\n }", "public java.lang.String getPostcode() {\r\n return postcode;\r\n }", "public void setPostalCodeState(String postalCode) {\r\n\t\tthis.postalCode = postalCode;\r\n\t}", "public void setPostalCode(java.lang.String postalCode) {\n this.postalCode = postalCode;\n }", "public synchronized void enterPincode(String pincode) {\n\t\ttry {\n\t\t\tWebActionUtil.waitForElement(pincodeTxtField, \"pincode Txt Field\", 30);\n\t\t\tWebActionUtil.typeText(pincodeTxtField, pincode, \"pincodeTxtField\");\n\t\t}\n\t\t catch (Exception e) \n\t\t{\n\t\t\t WebActionUtil.error(e.getMessage());\n\t\t\tWebActionUtil.error(\"Unable to enter pincode\");\n\t\t\tAssert.fail(\"Unable to enter pincode\");\n\t\t}\n\t}", "protected TextGuiTestObject postCode() \n\t{\n\t\treturn new TextGuiTestObject(\n getMappedTestObject(\"postCode\"));\n\t}", "public java.lang.String getPostcode() {\n return postcode;\n }", "public void validate_the_Postcode_of_Correspondence_Address_in_Customer_Tab(String Postcode)throws Exception {\n\t\tVerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_CorrespondenceAddress.replaceAll(\"M_Header\", \"Correspondence Address\").replaceAll(\"M_Category\", \"Postcode\").replaceAll(\"M_InnerText\", Postcode), \"Postcode of Correspondence Address - \"+Postcode, false);\n\t}", "public String CheckPostCode (HashMap<String, ?> InputObj) throws NoSuchElementException {\n\t\tString outRetVal = \"-1\";\n\t\t\n\t\tString inCountryCode = InputObj.get(\"CountryCode\").toString();\n\t\tString inPostCode = InputObj.get(\"PostCode\").toString();\n\t\t\n\t\tCustSiteEditorObj Obj = new CustSiteEditorObj(webdriver);\n\t\t\n\t\tWebElement TxtCountryCode = Obj.getTxtCountryCode();\n\t\tif (!TxtCountryCode.getAttribute(\"value\").equals(inCountryCode)) {\n\t\t\tTxtCountryCode.clear();\n\t\t\tTxtCountryCode.sendKeys(inCountryCode);\n\t\t\tWebElement TxtPostCode = Obj.getTxtPostCode();\n\t\t\tTxtPostCode.click();\n\t\t}\n\t\t\n\t\tboolean isCountryCodeMsgExist = SeleniumUtil.isWebElementExist(webdriver, Obj.getLblCountryCodeMessageLocator(), 1);\n\t\tif (isCountryCodeMsgExist) {\n\t\t\tWebElement LblCountryCodeMessage = Obj.getLblCountryCodeMessage();\n\t\t\tboolean isVisible = LblCountryCodeMessage.isDisplayed();\n\t\t\tif (isVisible) {\n\t\t\t\tCommUtil.logger.info(\" > Msg: \"+LblCountryCodeMessage.getText());\n\t\t\t\tif (CommUtil.isMatchByReg(LblCountryCodeMessage.getText(), \"Only 2 characters\")) {\n\t\t\t\t\toutRetVal = \"1\";\n\t\t\t\t\treturn outRetVal;\n\t\t\t\t} else {\n\t\t\t\t\tCommUtil.logger.info(\" > Unhandled message.\");\n\t\t\t\t\treturn outRetVal;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tWebElement TxtPostCode = Obj.getTxtPostCode();\n\t\tif (!TxtPostCode.getAttribute(\"value\").equals(inPostCode)) {\n\t\t\tTxtPostCode.clear();\n\t\t\tTxtPostCode.sendKeys(inPostCode);\n\t\t\tTxtCountryCode = Obj.getTxtCountryCode();\n\t\t\tTxtCountryCode.click();\n\t\t}\t\n\t\t\n\t\tboolean isPostCodeMsgExist = SeleniumUtil.isWebElementExist(webdriver, Obj.getLblPostCodeMessageLocator(), 1);\n\t\tif (isPostCodeMsgExist) {\n\t\t\tWebElement LblPostCodeMessage = Obj.getLblPostCodeMessage();\n\t\t\tboolean isVisible = LblPostCodeMessage.isDisplayed();\n\t\t\tif (isVisible) {\n\t\t\t\tCommUtil.logger.info(\" > Msg: \"+LblPostCodeMessage.getText());\n\t\t\t\tif (CommUtil.isMatchByReg(LblPostCodeMessage.getText(), \"Only 5 digits\")) {\n\t\t\t\t\toutRetVal = \"2\";\n\t\t\t\t\treturn outRetVal;\n\t\t\t\t} else if (CommUtil.isMatchByReg(LblPostCodeMessage.getText(), \"Only alpha numeric dash space\")) {\n\t\t\t\t\toutRetVal = \"3\";\n\t\t\t\t\treturn outRetVal;\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tCommUtil.logger.info(\" > Unhandled message.\");\n\t\t\t\t\treturn outRetVal;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\toutRetVal = \"0\";\n\t\treturn outRetVal;\n\t\t\n\t}", "@Override\n public void onSelected(BaseSearchDialogCompat dialog,\n SearchModelForPostcode item, int position) {\n\n\n Toast.makeText(RegisterActivity.this, \"postcode selected:\"+item.getTitle(),\n Toast.LENGTH_SHORT).show();\n pc.setText(item.getTitle());\n dialog.dismiss();\n }", "public Zip_Code Zip_Code(String userValue){\n Reusable_Library_Loggers.userKeys(driver,\"//input[@id = 'txtZipCode']\",userValue,\"Zip Code Box\",logger);\n return new Zip_Code(driver);\n\n }", "public void setPostalCode (java.lang.String postalCode) {\n\t\tthis.postalCode = postalCode;\n\t}", "public Address postalCode(String postalCode) {\n this.postalCode = postalCode;\n return this;\n }", "public void zipCodeFieldTest() {\r\n\t\tif(Step.Wait.forElementVisible(QuoteForm_ComponentObject.zipCodeFieldLocator, \"Zip Code Input Field\", 10)) {\r\n\t\t\t\r\n\t\t\t//Verifies the zip code field populates with the user's zip code\r\n\t\t\tString zipInputBoxTextContent = \r\n\t\t\t\t\tStep.Extract.getContentUsingJS(QuoteForm_ComponentObject.zipCodeFieldLocator, \"Zip Code Field\");\r\n\t\t\tif(zipInputBoxTextContent.isEmpty()) {\r\n\t\t\t\tStep.Failed(\"Zip Code Field is empty\");\r\n\t\t\t} else {\r\n\t\t\t\tStep.Passed(\"Zip Code Field populated with user's location\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Verifies special characters aren't accepted\r\n\t\t\tStep.Wait.forSeconds(1);\r\n\t\t\tStep.Action.typeText(QuoteForm_ComponentObject.zipCodeFieldLocator, \"Zip Code Input Field\", \"!@#$%\");\r\n\t\t\tStep.Action.click(QuoteForm_ComponentObject.seeYourQuoteButtonLocator, \"See Your Quote Button\");\r\n\t\t\tStep.Wait.forElementVisible(QuoteForm_ComponentObject.zipCodeInValidInputLocator,\r\n\t\t\t\t\t\"Zip Code Field shows invalid input\", 10);\r\n\t\t\t\r\n\t\t\t//Veriies invalid zip codes aren't accepted\r\n\t\t\tStep.Action.typeText(QuoteForm_ComponentObject.zipCodeFieldLocator, \"Zip code Input field\", \"00000\");\r\n\t\t\tStep.Action.click(QuoteForm_ComponentObject.seeYourQuoteButtonLocator, \"See Your Quote button\");\r\n\t\t\tStep.Action.click(QuoteForm_ComponentObject.seeYourQuoteButtonLocator, \"See Your Quote button\");\r\n\t\t\tStep.Wait.forElementVisible(QuoteForm_ComponentObject.zipCodeInValidInputLocator,\r\n\t\t\t\t\t\"Zip Code Field shows invalid input\", 10);\r\n\t\t\t\r\n\t\t\t//Verifies that only 5 digits are accepted\r\n\t\t\tStep.Action.typeText(QuoteForm_ComponentObject.zipCodeFieldLocator, \"Zip Code Input Field\", \"1234567\");\r\n\t\t\tzipInputBoxTextContent = Step.Extract.getContentUsingJS(QuoteForm_ComponentObject.zipCodeFieldLocator,\r\n\t\t\t\t\t\"Zip code text box\");\r\n\t\t\tif(zipInputBoxTextContent.length() > 5) {\r\n\t\t\t\tStep.Failed(\"Zip Code Input Field contains more than 5 digits\");\r\n\t\t\t} else {\r\n\t\t\t\tStep.Passed(\"Zip Code Input Field does not accept more than 5 digits\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Verifies user cannot submit a blank zip code\r\n\t\t\tStep.Action.clear(QuoteForm_ComponentObject.zipCodeFieldLocator, \"Zip Code Input Field\");\r\n\t\t\tStep.Action.click(QuoteForm_ComponentObject.seeYourQuoteButtonLocator, \"See Your Quote Button\");\r\n\t\t\tStep.Action.click(QuoteForm_ComponentObject.seeYourQuoteButtonLocator, \"See Your Quote Button\");\r\n\t\t\tStep.Wait.forElementVisible(QuoteForm_ComponentObject.zipCodeInValidInputLocator,\r\n\t\t\t\t\t\"Zip Code Input Field shows invalid input\", 10);\r\n\t\t\t\r\n\t\t\t//Verifies that a valid input is accepted\r\n\t\t\tStep.Action.typeText(QuoteForm_ComponentObject.zipCodeFieldLocator, \"Zip Code Input Field\", \"48146\");\r\n\t\t\tStep.Action.click(QuoteForm_ComponentObject.seeYourQuoteButtonLocator, \"See Your Quote Button\");\r\n\t\t\tStep.Wait.forElementVisible(QuoteForm_ComponentObject.zipCodeValidInputLocator,\r\n\t\t\t\t\t\"Zip Code Field displays as valid input\", 10);\r\n\t\t}\r\n\t}", "public String getPostalCode() {\n return postalCode;\n }", "public String getPostalCode() {\n return postalCode;\n }", "public String getPostalcode() {\n return postalcode;\n }", "private String getAnomizedPostcode() {\r\n\tString postcode = (String) record.get(\"postcode\");\r\n\tif (postcode != null && postcode.length() > 0) {\r\n\t postcode = postcode.substring(0, 1);\r\n\t}\r\n\treturn postcode;\r\n }", "public String getPostalCodeState() {\r\n\t\treturn postalCode;\r\n\t}", "public String getPostalCode() {\r\n return postalCode;\r\n }", "public PersonAddressBuilderDFB withPostCode(String postCode){\n person.postCode = postCode;\n return this;\n }", "public String getContactPostcode() {\n return contactPostcode;\n }", "public Integer getPostCode() {\n return postCode;\n }", "@Test\r\n public void getPostalCodeTest()\r\n {\r\n Assert.assertEquals(stub.getPostalCode(), POSTALCODE);\r\n }", "@When(\"^I insert my postcode as \\\"([^\\\"]*)\\\"$\")\n public void iInsertMyPostcodeAs(String arg0) throws Throwable {\n home.setUser_postcode(\"G128RF\");\n // throw new PendingException();\n }", "public void setContactPostcode(String contactPostcode) {\n this.contactPostcode = contactPostcode;\n }", "@Override\n public String getPostCode() {\n\n if(this.postCode == null){\n\n this.postCode = TestDatabase.getInstance().getClientField(token, id, \"postCode\");\n }\n\n return postCode;\n }", "public void setPostalCd(String postalCd) {\r\n this.postalCd = postalCd;\r\n }", "@Override\r\n\tpublic Boolean setCode(PostalCodeValue pCode) throws NotLoggedInException {\r\n\t\tcode = new PostalCode(getUser(), pCode.getCode());\r\n\t\t\r\n\t\tif (code != null) {\r\n\t\t\tString placeString = code.getCode();\r\n\t\t\tLatLong aLatLong = findLatLong(placeString);\r\n\t\t\tif (aLatLong != null) {\r\n\t\t\t\tlatitude = aLatLong.getLatitude();\r\n\t\t\t\tlongitude = aLatLong.getLongitude();\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\treturn false;\r\n\t}", "public Zip_Code GO_Zip_Code(){\n Reusable_Library_Loggers.click(driver,\"//*[@id ='txtZipCodetxt']\",\"clicking on GO\",logger);\n return new Zip_Code(driver);\n\n }", "public List<Address> listAddressByPostCode(String postCode)\n {\n @SuppressWarnings(\"unchecked\")\n List<Address> result = this.sessionFactory.getCurrentSession().createQuery(\"from AddressImpl as address where address.postCode = :postcode order by address.id asc\").setParameter(\"postcode\", postCode).list();\n\n return result;\n }", "public void setPincode(java.lang.String pincode) {\r\n this.pincode = pincode;\r\n }", "public void setZipcode(String zipcode)\n {\n this.zipcode = zipcode;\n }", "private void fillCity() {\n \n if(postalCodeTF.getText().length() == 4){\n City city = memberConnection.getCity(postalCodeTF.getText());\n cityTF.setText(city.getCity().replaceAll(\"_\", \" \"));\n municipalTF.setText(city.getMunicipal().replaceAll(\"_\", \" \"));\n }\n }", "public void saveJalPostalcode(JalPostalcode jalPostalcode);", "public void setPOST_CODE1(java.lang.String value)\n {\n if ((__POST_CODE1 == null) != (value == null) || (value != null && ! value.equals(__POST_CODE1)))\n {\n _isDirty = true;\n }\n __POST_CODE1 = value;\n }", "public void SetCheckoutRegistrationPhonecode_number(String code, String phoneno){\r\n\t\tString Code = getValue(code);\r\n\t\tString Phoneno = getValue(phoneno);\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:- \"+Code+\" , \"+Phoneno);\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Registration Phone code and Phone number should be entered as '\"+Code+\"' , '\"+Phoneno+\"' \");\r\n\t\ttry{\r\n\t\t\tif((countrygroup_phoneNo).contains(countries.get(countrycount))){\r\n\t\t\t\tsendKeys(locator_split(\"txtcheckoutregistrationPhonenumber\"),Phoneno);\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tsendKeys(locator_split(\"txtcheckoutregistrationPhonecode\"),Code);\r\n\t\t\t\tsendKeys(locator_split(\"txtcheckoutregistrationPhonenumber\"),Phoneno);\r\n\t\t\t}\r\n\r\n\r\n\t\t\tSystem.out.println(\"Registration Phone code and number is entered as '\"+Code+\"' , '\"+Phoneno+\"' \");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Registration Phone code and number is entered as '\"+Code+\"' , '\"+Phoneno+\"' \");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Registration Phone code and number is not entered\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"txtcheckoutregistrationPhonecode\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" / \"+elementProperties.getProperty(\"txtcheckoutregistrationPhonenumber\").toString().replace(\"By.\", \" \")+\r\n\t\t\t\t\t\" not found\");\r\n\t\t}\r\n\r\n\t}", "public void setPincode(String pincode)\n\t{\n\t\tthis._pincode=pincode;\n\t}", "public void setPincode(String pincode) {\r\n\t\tthis.pincode = pincode;\r\n\t}", "@Test\n public void iPAddressPostTest() throws Exception {\n String value = null;\n GeolocateResponse response = api.iPAddressPost(value);\n\n // TODO: test validations\n }", "protected void setPostalCodesOnSelectedCity(String requestedCityAndFields, final ArrayList<AddressPostalCode> postalCodes) {\n if (postalCodes.size() > 1) {\n postal_spinner.setVisibility(View.VISIBLE);\n ArrayAdapter<AddressPostalCode> adapter = new ArrayAdapter<>(getBaseActivity(), R.layout.form_spinner_item, postalCodes);\n adapter.setDropDownViewResource(R.layout.form_spinner_dropdown_item);\n PromptSpinnerAdapter promptAdapter = new PromptSpinnerAdapter(adapter, R.layout.form_spinner_prompt, getBaseActivity());\n promptAdapter.setPrompt(getString(R.string.address_district_placeholder));\n postal_spinner.setAdapter(promptAdapter);\n postal_spinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n address_postal_region_error.setVisibility(View.GONE);\n post_id = postalCodes.get(position).getValue();\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n }\n });\n hideActivityProgress();\n showFragmentContentContainer();\n } else {\n if (!CollectionUtils.isEmpty(postalCodes)) {\n post_id = postalCodes.get(0).getValue();\n } else {\n post_id = UNKNOWN_POSTAL_CODE;\n }\n postal_spinner.setVisibility(View.GONE);\n address_postal_region_error.setVisibility(View.GONE);\n }\n\n }", "public void SetCheckoutRegistrationPhonecode_number(String phoneno){\r\n\r\n\t\tString Phoneno = getValue(phoneno);\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Registration Phone code and number should be entered as , \"+Phoneno);\r\n\t\ttry{\r\n\r\n\r\n\t\t\tsendKeys(locator_split(\"txtcheckoutregistrationPhonenumber\"),Phoneno);\r\n\t\t\tSystem.out.println(\"Registration Phone code and number is entered as , \"+Phoneno);\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Registration Phone code and number is entered as , \"+Phoneno);\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Registration Phone number is not entered\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"checkoutregistrationPhonenumber\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" / \"+elementProperties.getProperty(\"checkoutregistrationPhonenumber\").toString().replace(\"By.\", \" \")+\r\n\t\t\t\t\t\" not found\");\r\n\t\t}\r\n\r\n\t}", "@Override\n public void onClick(View v) {\n\n new SimpleSearchDialogCompat(RegisterActivity.this, \"Select your new postcode\",\n \"What are you looking for?\", null, createSampleData(),\n new SearchResultListener<SearchModelForPostcode>() {\n @Override\n public void onSelected(BaseSearchDialogCompat dialog,\n SearchModelForPostcode item, int position) {\n\n //SharedPreferences.Editor editor = getSharedPreferences(MY_PREFS_NAME, MODE_PRIVATE).edit();\n //editor.putString(\"postcode\", item.getTitle());\n\n\n Toast.makeText(RegisterActivity.this, \"postcode selected:\"+item.getTitle(),\n Toast.LENGTH_SHORT).show();\n pc.setText(item.getTitle());\n dialog.dismiss();\n }\n }).show();\n\n }", "public void setCodeposte(String value) {\n setAttributeInternal(CODEPOSTE, value);\n }", "public void setCityPostalcode (java.lang.String cityPostalcode) {\n\t\tthis.cityPostalcode = cityPostalcode;\n\t}", "public PostalAddress getPostAddress(){\r\n\t\treturn postalAddress;\r\n\t}", "@Override\r\n\tpublic PostalCodeValue getCode() {\r\n\t\treturn new PostalCodeValue(code.getCode());\r\n\t}", "public PostalCode(String postalCode) throws IllegalValueException {\n requireNonNull(postalCode);\n String trimmedPostalCode = postalCode.trim();\n if (!isValidPostalCode(trimmedPostalCode)) {\n throw new IllegalValueException(MESSAGE_POSTAL_CODE_CONSTRAINTS);\n }\n this.value = trimmedPostalCode.toUpperCase();\n }", "public void setPostalAddress(String postalAddress) {\n\t\tPostalAddress = postalAddress;\n\t}", "@Override\n\t@XmlElement\n\tpublic void setAreaCode(String areaCode) {\n\t\t\n\t}", "@Test\n public void ebayTestGetZip() throws Exception {\n driver.findElement(By.id(\"gh-ac\")).sendKeys(\"java book\");\n driver.findElement(By.id(\"gh-btn\")).click();\n\n Thread.sleep(4000);\n\n WebElement zipCode = driver.findElement(By.className(\"srp-controls--selected-value\"));\n String actual = zipCode.getText();\n String expected = \"30004\";\n System.out.println(\"Actual zipcode: \"+actual+ \" - Expected zipcode: \" +expected);\n assertEquals(actual,expected);\n }", "public void setPostalZipCode(PostalCodeEbo postalZipCode) {\n this.postalZipCode = postalZipCode;\n }", "public void setPostalZipCode(PostalCodeEbo postalZipCode) {\n this.postalZipCode = postalZipCode;\n }", "public java.lang.String getPostalCode () {\n\t\treturn postalCode;\n\t}", "public Address(String street, String townORcity, String postcode) {\r\n this.street = street;\r\n this.townORcity = townORcity;\r\n this.postcode = postcode;\r\n }", "public java.lang.String getPostalCode() {\n return postalCode;\n }", "@ApiModelProperty(value = \"Identifier consisting of a group of letters and/or numbers that is added to a postal address to assist the sorting of mail.\")\n\n@Size(min=1,max=16) \n public String getPostalCode() {\n return postalCode;\n }", "public abstract void setZipCode(String sValue);", "public void setAreaCode(String areaCode) {\n this.areaCode = areaCode;\n }", "public List getJalPostalcodes(JalPostalcode jalPostalcode);", "public void setAddressState(String addressState) {\n this.addressState = addressState;\n }", "public void setJP_BankDataCustomerCode1 (String JP_BankDataCustomerCode1);", "public void setAddress(PostalAddress address) {\n this.address = address;\n }", "public void setAddress(String street, String town, String postcode)\r\n {\r\n address.setFullAddress(street, town, postcode);\r\n }", "public void setAddress(String street, String town, String postcode)\r\n {\r\n address.setFullAddress(street, town, postcode);\r\n }", "public void setCode(String code)\n {\n this.code = code;\n }", "public void setStateCode(java.lang.String stateCode) {\n this.stateCode = stateCode;\n }", "public String getPostalCd() {\r\n return postalCd;\r\n }", "@Test\r\n\tpublic void testSetGetPostCodeValid() {\r\n\t\tDoctor doctor = new Doctor();\r\n\t\tdoctor.setPostCode(postCodeValid);\r\n\t\tassertEquals(postCodeValid, doctor.getPostCode());\r\n\t}", "public void setAreacode(Integer areacode) {\n this.areacode = areacode;\n }", "public void setZipCode(String zipCode) {\n this.zipCode = zipCode;\n }", "private void Postinfo (String uid, String inputname, String profilestring, String nation){\n }", "public String getPincode() {\r\n\t\treturn pincode;\r\n\t}", "public Address(String street, int zipCode, String city, String state) {\n this.street = street;\n this.zipCode = zipCode;\n this.city = city;\n this.state = state;\n }", "public void setCode(String code){\n\t\tthis.code = code;\n\t}", "public void setPostalCode( EAIMMCtxtIfc theCtxt, java.lang.String thePostalCode) throws EAIException;", "public void setTAX_CODE(java.lang.String TAX_CODE) {\r\n this.TAX_CODE = TAX_CODE;\r\n }", "@Test\r\n\t\tpublic void testParsePuts() {\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\tString a = \"the_best_cat = \\\"Noogie Cat\\\" \\nputs \\\"The best cat is: \\\" + the_best_cat\";\r\n\t\t\tdriver.findElement(By.id(\"code_code\")).sendKeys(a);;\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\tWebElement submitButton = driver.findElement(By.xpath(\"(//input[@name='commit'])[2]\"));\r\n\t\t\tsubmitButton.click();\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tWebElement e = driver.findElement(By.tagName(\"code\"));\r\n\t\t\t\tString elementText = e.getText();\r\n\t\t\t\tassertTrue(elementText.contains(\"@ident\"));\r\n\t\t\t} catch (NoSuchElementException nseex) {\r\n\t\t\t\tfail();\r\n\t\t\t}\r\n\t\t}", "public static void captureAddressInformation(){\r\n\t\ttestInfo.log(Status.INFO, \"Capture Address Information\");\r\n\t\tIWanna.selectFromDropdown(\"ddStatus\", red.getCellData(\"TestData\", \"ResStatus\", currentRow));\r\n\t\tIWanna.type(\"tbResidentialLine1\", red.getCellData(\"TestData\", \"ResLine1\", currentRow));\r\n\t\tIWanna.type(\"tbResidentialLine2\", red.getCellData(\"TestData\", \"ResLine2\", currentRow));\r\n\t\tIWanna.type(\"tbResidentialSuburb\", red.getCellData(\"TestData\", \"ResSuburb\", currentRow));\r\n\t\tIWanna.click(\"btnSearchResidentialSuburb\");\r\n\t\tIWanna.wait(1);\r\n\t\tIWanna.selectFromDropdown(\"ddResidentialSuburb\", 1);\t\r\n\t\tIWanna.type(\"tbResidentialCity\", red.getCellData(\"TestData\", \"ResCity\", currentRow));\r\n\t\tIWanna.click(\"btnResidentialCitySearch\");\r\n\t\tIWanna.selectFromDropdown(\"ddResidentialCity\", 1);\r\n\t\tIWanna.type(\"tbYYatThisAddress\", red.getCellData(\"TestData\", \"PeriodYY\", currentRow));\r\n\t\tIWanna.type(\"tbMMatThisAddress\", red.getCellData(\"TestData\", \"PeriodMM\", currentRow));\r\n\t\t\r\n\t\tString sameAsPostal = red.getCellData(\"TestData\", \"SameAsPostal\", currentRow);\r\n\t\tif (sameAsPostal.equalsIgnoreCase(\"Yes\")){\r\n\t\t\tIWanna.click(\"rbSameAsPostalYes\");\r\n\t\t}\r\n\t\telse if(sameAsPostal.equalsIgnoreCase(\"No\")){\r\n\t\t\tIWanna.type(\"tbPostalLine1\", red.getCellData(\"TestData\", \"PostalLine1\", currentRow));\r\n\t\t\tIWanna.type(\"tbPostalLine2\", red.getCellData(\"TestData\", \"PostalLine2\", currentRow));\r\n\t\t\tIWanna.type(\"tbPostalSuburb\", red.getCellData(\"TestData\", \"PostalSuburb\", currentRow));\r\n\t\t\tIWanna.click(\"btnSearchPostalSuburb\");\r\n\t\t\tIWanna.selectFromDropdown(\"ddPostalSuburb\", 1);\t\r\n\t\t\tIWanna.type(\"tbPostalCity\", red.getCellData(\"TestData\", \"PostalCity\", currentRow));\r\n\t\t\tIWanna.click(\"btnSearchPostalCity\");\r\n\t\t\tIWanna.selectFromDropdown(\"ddPostalCity\", 1);\r\n\t\t}\r\n\t}", "public void Checkouttaxsubmit(){\t\r\n\t\tString countryspecific_tax = \"Italy,Germany,Sweden,Spain\";\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Item should be searched in the search box\");\r\n\t\ttry{\r\n\t\t\tif((countryspecific_tax).contains(countries.get(countrycount))){\r\n\t\t\t\t//editSubmit(locator_split(\"txtSearch\"));\r\n\t\t\t\twaitforElementVisible(locator_split(\"checkouttaxsubmit\"));\r\n\t\t\t\tclick(locator_split(\"checkouttaxsubmit\"));\r\n\t\t\t\tReporter.log(\"PASS_MESSAGE:- Tax submit button is clicked\");\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tReporter.log(\"PASS_MESSAGE:- Tax submit button is not applicable to \" +country);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Item is not entered in the search box \"+elementProperties.getProperty(\"checkoutFiscalCode\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"checkoutFiscalCode\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\t}", "public void setAddressCity(String addressCity) {\n this.addressCity = addressCity;\n }" ]
[ "0.69281846", "0.6902656", "0.68468773", "0.65986705", "0.65986705", "0.65455556", "0.647199", "0.6446108", "0.64148605", "0.634543", "0.6317856", "0.6279211", "0.6219131", "0.6219131", "0.6214226", "0.6208904", "0.61218745", "0.61058676", "0.6067254", "0.6060726", "0.605894", "0.6036529", "0.6032847", "0.5994372", "0.5959736", "0.5938488", "0.59273183", "0.58861333", "0.5868694", "0.5792555", "0.5784326", "0.5761344", "0.5735462", "0.5735124", "0.5722447", "0.5722447", "0.56920105", "0.5691209", "0.56500113", "0.5649737", "0.56454134", "0.56374115", "0.56084573", "0.5588347", "0.5586577", "0.5550841", "0.55117476", "0.5506004", "0.548055", "0.5451575", "0.538887", "0.5379572", "0.536969", "0.53669316", "0.5295437", "0.52898186", "0.52893245", "0.5264882", "0.52515763", "0.52353567", "0.521977", "0.51807535", "0.5179247", "0.5164541", "0.51570964", "0.51408684", "0.5129416", "0.51123196", "0.51116663", "0.51014835", "0.50996083", "0.5098965", "0.5098965", "0.5075032", "0.5073712", "0.50679255", "0.5059013", "0.50371915", "0.5011759", "0.5010756", "0.49963474", "0.49834388", "0.4967291", "0.49656203", "0.49656203", "0.49643904", "0.49566975", "0.49534944", "0.49448636", "0.4941635", "0.493626", "0.49293414", "0.4928937", "0.4926355", "0.49236163", "0.49091148", "0.48940286", "0.48887187", "0.48867014", "0.48775378", "0.4871024" ]
0.0
-1
SemiDetached: with default state. .id : propertysemi .value : Semidetached .title : .class : Html.LABEL .classIndex : 2
protected GuiTestObject semiDetached() { return new GuiTestObject( getMappedTestObject("semiDetached")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Identity(){\n setLabel(\"I\");\n }", "@Override\n public int getId() {\n return 0;\n }", "void setId(int val);", "@Override\n public String getId() {\n return \"1\";\n }", "@Override\n\tpublic int getId() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int getId() {\n\t\treturn 0;\n\t}", "@Override\r\n\tpublic void setId(String id) {\n\t\t\r\n\t}", "@Override\r\n\t\tpublic void setId(String id)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void setId(String id)\n\t{\n\t\t\n\t}", "@Override\n\tpublic double setId() {\n\t\treturn 0;\n\t}", "public SceneLabelObjectState(){\n\t\tsuper();\n\t\tsuper.setObjectsPrimaryType(SceneObjectType.Label);\n\n\t}", "public void setId(String newValue);", "@Override\n\tprotected void setValueOnUi() {\n\n\t}", "private void setId(int value) {\n \n id_ = value;\n }", "public SceneLabelObjectState(SceneDivObjectState state){\t\t\n\t\tsuper(state); //will create a SceneDivObjectState from the supplied state\n\t\tsuper.setObjectsPrimaryType(SceneObjectType.Label); //subtypes should also run this statement straight after the super command in order to override their parents type and set their own as the primary/\n\n\t\t//Clear css parameters from general settings passed to this\n\t\t//This is because Dialogue objects treats these differently.\n\t\t//We fill them up correctly when the dialogue specific stuff is processed\n\t\tCurrentBoxCSS=\"\";\n\n\t}", "@Override\n public String getId() {\n return null;\n }", "@Override\r\n\t\tpublic String getId()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "@Override\n\t\tpublic String getId() {\n\t\t\treturn null;\n\t\t}", "@Override\r\n\tpublic String getId() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic String getId() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic String getId() {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic void setId(int id) {\n\n\t}", "public void setId(int id){ this.id = id; }", "@Override\n\tpublic void setId(long value) {\n super.setId(value);\n }", "@Override\r\n\tpublic void setId(final K id) {\n\t\tsuper.setId(id);\r\n\t}", "@JSProperty(\"showFirstLabel\")\n boolean getShowFirstLabel();", "public void setId(int id) { this.id = id; }", "public void setId(int id) { this.id = id; }", "public ScText newIdText()\n {\n return newIdText(\"Id\");\n }", "public ScText newIdText()\n {\n return newIdText(\"Id\");\n }", "public ScText newIdText()\n {\n return newIdText(\"Id\");\n }", "public ScText newIdText()\n {\n return newIdText(\"Id\");\n }", "private void setId(int value) {\n \n id_ = value;\n }", "public void setId(String id) {\n this.ide = id;\n //System.out.println(\"linkyhandler setid \" + ide);\n }", "private void setId(Integer id) { this.id = id; }", "public void setId(String value) {\n \tif (value==null)\n \t\tthis.id = \"\";\n \telse\n \t\tthis.id = value;\n }", "@Override\n\t\t\tpublic String getLabel() {\n\t\t\t\treturn null;\n\t\t\t}", "@Override\n\tpublic String getId() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getId() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getId() {\n\t\treturn null;\n\t}", "public void set(String id, Color value, DockColor uiValue) {\n TitleColor title = (TitleColor)uiValue;\n Dockable dockable = title.getTitle().getDockable();\n if (dockable instanceof ColorDockable) {\n Color base = ((ColorDockable)dockable).getColor();\n\n if (\"title.active.left\".equals(id)) {\n uiValue.set(base);\n }\n else if (\"title.active.right\".equals(id)) {\n uiValue.set(Color.WHITE);\n }\n else if (\"title.inactive.left\".equals(id)) {\n uiValue.set(base.darker());\n }\n else if (\"title.inactive.right\".equals(id)) {\n uiValue.set(Color.LIGHT_GRAY);\n }\n else {\n uiValue.set(value);\n }\n }\n else {\n uiValue.set(value);\n }\n }", "Object getDefaultLabel() {\n return null;\n }", "public void setId(String id)\r\n/* 19: */ {\r\n/* 20:17 */ this.id = id;\r\n/* 21: */ }", "@Override\n\t\tpublic long getId() {\n\t\t\treturn 0;\n\t\t}", "public void setId(java.lang.String value) {\n this.id = value;\n }", "public void setId(java.lang.String value) {\n this.id = value;\n }", "public void setId(java.lang.String value) {\n this.id = value;\n }", "@Override\n\tpublic void setId(Integer arg0) {\n\n\t}", "public void setId(int idNuevo)\n { \n this.id = idNuevo;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private Label setTitle() {\r\n Label title = new Label(TITLE);\r\n title.setFont(Font.font(null, FontWeight.BOLD, null, TITLESZE));\r\n return title;\r\n }", "public void defId(int id) {\r\n\t\tthis.id = id;\r\n\t}", "@DISPID(-2147417110)\n @PropGet\n java.lang.String id();", "public void setId (String id);", "@Override\n public void selectGolem(int id) {\n }", "public void setId(String id) {\n }", "public SceneLabelObjectState(SceneObjectState state){\n\t\tsuper(state);\n\t\tsuper.setObjectsPrimaryType(SceneObjectType.Label);\n\t\t//super.getCurrentType()=SceneObjectType.DialogBox;\n\t\t//super.setObjectsOnlyType(SceneObjectType.DialogBox); //we don't set this anymore as subclasses may set this themselves!\n\n\t\t//Clear css parameters from general settings passed to this\n\t\t//This is because Dialogue objects treats these differently.\n\t\t//We fill them up correctly when the dialogue specific stuff is processed\n\t\tCurrentBoxCSS=\"\";\n\n\t}", "public SimpleIntegerProperty getIDProperty(){ return id; }", "public void setId(String id) {\n this.id = id;\n }", "@Id\n\t@Key\n\t@Override\n\tpublic void setId(String id)\n\t{\n\t\tsuper.setId(id);\n\t}", "Model(String _name, int _value, int _id) {\n this.name = _name;\n this.value = _value;\n this.id = _id;\n }", "public void setId(int value) {\r\n this.id = value;\r\n }", "@Override\r\n\tpublic LabelArticle selectById(int id) {\n\t\treturn null;\r\n\t}", "@JSProperty(\"id\")\n void setId(String value);", "@UIAttribute(hidden = true)\n public Long getId() {\n return id;\n }", "@Override\n\tpublic String getLabel() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getLabel() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getLabel() {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic int id() {\n\t\treturn 4;\r\n\t}", "@Override\n\tpublic int GetTitleId() {\n\t\treturn 0;\n\t}", "public void setTitleID(String val){\n\t\ttid = val;\n\t}", "@JSProperty(\"showFirstLabel\")\n void setShowFirstLabel(boolean value);", "@Override\n public void setLabel(String arg0)\n {\n \n }", "public AnnotationDefaultAttr(ElemValPair s) { //\r\n elem = s;\r\n }", "public SceneLabelObjectState(SceneLabelObjectState state){\t\t\n\t\tsuper(state); //will create a SceneDivObjectState from the supplied state\n\t\tsuper.setObjectsPrimaryType(SceneObjectType.Label); //subtypes should also run this statement straight after the super command in order to override their parents type and set their own as the primary/\n\n\n\t\tthis.ObjectsCurrentText = state.ObjectsCurrentText;\n\t\tthis.CSSname = state.CSSname;\n\t\tthis.cursorVisible=state.cursorVisible;\n\t\tthis.TypedText=state.TypedText;\t\t\n\t\tthis.Custom_Key_Beep = state.Custom_Key_Beep;\n\t\tthis.Custom_Space_Beep = state.Custom_Space_Beep;\n\n\t}", "@Override\r\n public int getId() {\n return id;\r\n }", "public void setId(int value) {\n this.id = value;\n }", "@Override\n\tpublic String Show()\n\t{\n\t\treturn id;\n\t\t\n\t}", "private void setId(int ida2) {\n\t\tthis.id=ida;\r\n\t}", "public void setId1(int value) {\n this.id1 = value;\n }", "@Override\r\n public String getId() {\r\n return id;\r\n }", "public void setId(int id)\n {\n this.id=id;\n }", "public void setId(int id){\r\n this.id = id;\r\n }", "private void setId() {\n id = count++;\n }", "public void setId (int id) {\r\n\t\tthis.id=id;\r\n\t}", "public Node( String id )\r\n {\r\n initialize(id);\r\n lbl = id;\r\n }", "@Override\r\n public int identifier() {\r\n return 100;\r\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }" ]
[ "0.5627711", "0.5623682", "0.5528127", "0.5521242", "0.5495638", "0.5495638", "0.5406889", "0.5376113", "0.5352073", "0.53470796", "0.5322007", "0.5254175", "0.52347755", "0.5233745", "0.52296007", "0.52209777", "0.51993996", "0.5196648", "0.51801884", "0.51801884", "0.51801884", "0.5169501", "0.5163702", "0.51627314", "0.5135046", "0.51342744", "0.51116496", "0.51116496", "0.51038074", "0.51038074", "0.51038074", "0.51038074", "0.51001704", "0.50907606", "0.50816125", "0.5080584", "0.50801665", "0.5070963", "0.5070963", "0.5070963", "0.5066513", "0.50638425", "0.5058935", "0.50578576", "0.5055235", "0.5055235", "0.5055235", "0.50551635", "0.5047902", "0.50454944", "0.50454944", "0.50454944", "0.50454944", "0.50454944", "0.50454944", "0.50454944", "0.50451934", "0.5042698", "0.50426793", "0.5036924", "0.50362027", "0.5036145", "0.50309163", "0.5010055", "0.50071263", "0.50007975", "0.49980953", "0.49942183", "0.4988468", "0.4981613", "0.49762017", "0.4972187", "0.4972187", "0.4972187", "0.49655715", "0.49653822", "0.49623948", "0.49570468", "0.49568835", "0.49544027", "0.49436095", "0.49416563", "0.49386644", "0.49344343", "0.49338603", "0.49295604", "0.4917583", "0.49099633", "0.49053285", "0.49033645", "0.4901445", "0.49013075", "0.49012458", "0.48982006", "0.48982006", "0.48982006", "0.48982006", "0.48982006", "0.48982006", "0.48982006", "0.48982006" ]
0.0
-1
SemiDetached: with specific test context and state. .id : propertysemi .value : Semidetached .title : .class : Html.LABEL .classIndex : 2
protected GuiTestObject semiDetached(TestObject anchor, long flags) { return new GuiTestObject( getMappedTestObject("semiDetached"), anchor, flags); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test196() throws Throwable {\n Hidden hidden0 = new Hidden((Component) null, \"(vLoO6y2\\\"Vht&{{\", \"(vLoO6y2\\\"Vht&{{\");\n Hidden hidden1 = (Hidden)hidden0.attribute(\"(vLoO6y2\\\"Vht&{{\", \"(vLoO6y2\\\"Vht&{{\");\n assertTrue(hidden1.isValid());\n }", "protected GuiTestObject semiDetached() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"semiDetached\"));\n\t}", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n DynamicSelectModel dynamicSelectModel0 = new DynamicSelectModel();\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = new Label(errorPage0, dynamicSelectModel0);\n dynamicSelectModel0.setComponent(label0);\n Component component0 = dynamicSelectModel0.getComponent();\n assertEquals(\"Label_1\", component0.getComponentId());\n }", "protected GuiTestObject title() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"title\"));\n\t}", "@Test\n public void test105() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = (Label)errorPage0.strong((Object) errorPage0);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(label0._isGeneratedId());\n }", "@Test\n public void test121() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = (Label)errorPage0.em((Object) errorPage0);\n assertTrue(label0._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "@Test(timeout = 4000)\n public void test334() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = new Label(errorPage0, errorPage0);\n Component component0 = errorPage0.legend((Object) label0);\n assertTrue(component0._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "@Test\n\t@TestProperties(name = \"Set element ${by}:${locator} selected\", paramsInclude = { \"by\", \"locator\" })\n\tpublic void setElementSelected() {\n\t\tthrow new IllegalStateException(\"Unimplemenetd\");\n\t}", "@Test\n public void test094() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Hidden hidden0 = new Hidden(errorPage0, \"\", \"\");\n Image image0 = new Image(hidden0, \"\", \"\");\n Label label0 = (Label)errorPage0.ins((Object) image0);\n Block block0 = (Block)errorPage0.h3();\n Label label1 = (Label)errorPage0.u((Object) errorPage0);\n assertTrue(label1._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "@Test\n public void test100() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Block block0 = (Block)errorPage0.li();\n Label label0 = (Label)errorPage0.label((Object) null);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(label0._isGeneratedId());\n }", "@Test\n public void test085() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Checkbox checkbox0 = new Checkbox(errorPage0, \">}\\\"_\", \">}\\\"_\");\n String[] stringArray0 = new String[6];\n Checkbox checkbox1 = (Checkbox)checkbox0.attributes(stringArray0);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertFalse(checkbox1._isGeneratedId());\n }", "@Test\n public void testPseudoVariable() {\n String html = source.toHTML(new SEclipseStyle(), new SPseudoVariable());\n assertEquals(html, \"<pre style='color:#000000\"\n + \";background:#ffffff;'>\"\n + \"public class MainClass {\\n\"\n + \" \\n\"\n + \" public static void main(String args[]){\\n\"\n + \" GradeBook myGradeBook=new GradeBook();\\n\"\n + \" String courseName=\\\"Java \\\";\\n\"\n + \" myGradeBook.displayMessage(courseName);\\n\"\n + \" \\n\"\n + \" }\\n\"\n + \" }public class Foo {\\n\"\n + \" \\n\"\n + \" public boolean bar(){\\n\"\n + \" <span style='color:#7f0055;\"\n + \" font-weight:bold; '>\"\n + \"super</span>.foo();\\n\"\n + \" return false;\\n\"\n + \" \\n\"\n + \" }\\n\"\n + \" }</pre>\");\n }", "@Test(timeout = 4000)\n public void test221() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n MockDate mockDate0 = new MockDate((-800), (-800), (-707), 75, 43);\n Label label0 = new Label(errorPage0, mockDate0);\n Component component0 = label0.b();\n component0._getVisibleForm(false);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component0._isGeneratedId());\n }", "@Test\n public void test133() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = (Label)errorPage0.dd((Object) errorPage0);\n assertTrue(label0._isGeneratedId());\n \n List<Component> list0 = errorPage0._getChildren();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertEquals(1, list0.size());\n }", "@Test(timeout = 4000)\n public void test277() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n errorPage0.strike();\n Component component0 = errorPage0.legend();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component0._isGeneratedId());\n }", "@Test(timeout = 4000)\n public void test217() throws Throwable {\n Hidden hidden0 = new Hidden((Component) null, \".*,r%\", \"Col component ca be added only to a TableBlock.\");\n Checkbox checkbox0 = new Checkbox(hidden0, \"Col component ca be added only to a TableBlock.\", \"Col component ca be added only to a TableBlock.\");\n Checkbox checkbox1 = (Checkbox)checkbox0.addInternalRenderHint(\"z%+/0u:g&ib%-bQ:\");\n assertEquals(\"Col component ca be added only to a TableBlock.\", checkbox1.getFormElementName());\n }", "@Test(timeout = 4000)\n public void test344() throws Throwable {\n Hidden hidden0 = new Hidden((Component) null, \"(vLoO6y2\\\"Vht&{{\", \"(vLoO6y2\\\"Vht&{{\");\n Map<String, String> map0 = hidden0.getAttributes();\n assertEquals(1, map0.size());\n }", "@Test\n\t@TestProperties(name = \"Set element ${by}:${locator} not selected\", paramsInclude = { \"by\", \"locator\" })\n\tpublic void setElementNotSelected() {\n\t\tthrow new IllegalStateException(\"Unimplemenetd\");\n\t}", "@DISPID(-2147417110)\n @PropGet\n java.lang.String id();", "@Test\r\n public void testSetId_getId() {\r\n System.out.println(\"getId\");\r\n ConfigNode configNode = new ConfigNode(testLine);\r\n configNode.setId(\"id1\");\r\n assertEquals(\"id1\", configNode.getId());\r\n }", "@Test\n public void testSetId_edificio() {\n System.out.println(\"setId_edificio\");\n int id_edificio = 1;\n DboEdificio instance = new DboEdificio(1, \"T-3\");\n instance.setId_edificio(id_edificio);\n \n }", "@Test(timeout = 4000)\n public void test366() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Byte byte0 = new Byte((byte)1);\n Label label0 = new Label(errorPage0, byte0);\n Component component0 = label0.samp();\n assertTrue(component0._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "@Test\n public void getLabel() {\n cleanEntity0();\n\n ReflectionTestUtils.setField(entity0, \"label\", labelS);\n assertEquals(entity0.getLabel(), labelS);\n }", "@Test(timeout = 4000)\n public void test006() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n MockDate mockDate0 = new MockDate((-800), (-800), (-707), 75, 43);\n Label label0 = new Label(errorPage0, mockDate0);\n Component component0 = label0.b();\n Submit submit0 = new Submit(component0, \"The list of names must not be null\", \"\\f\");\n Component component1 = label0.strike((Object) submit0);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component1._isGeneratedId());\n }", "@Test(timeout = 4000)\n public void test222() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Block block0 = (Block)errorPage0.label();\n assertTrue(block0._isGeneratedId());\n \n block0.id(\"sajp\");\n assertFalse(block0._isGeneratedId());\n }", "@Test\n\t@TestProperties(name = \"Set element ${by}:${locator} text to '${text}'\", paramsInclude = { \"by\", \"locator\", \"text\" })\n\tpublic void setElementText() {\n\t\tthrow new IllegalStateException(\"Unimplemenetd\");\n\t}", "@Test\r\n public void testSetId() {\r\n System.out.println(\"setId\");\r\n int lId = 0;\r\n \r\n instance.setId(lId);\r\n assertEquals(lId, instance.getId());\r\n \r\n }", "@Test(timeout = 4000)\n public void test261() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.style();\n assertTrue(component0._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "@Test(timeout = 4000)\n public void test230() throws Throwable {\n Form form0 = new Form(\"println\");\n String[] stringArray0 = new String[0];\n Component component0 = form0.attributes(stringArray0);\n assertEquals(\"println\", component0.getComponentId());\n }", "@Override\n public String getId() {\n return \"1\";\n }", "public void testSetId_Accuracy() {\r\n int id = 1;\r\n auditDetail.setId(id);\r\n assertEquals(\"The id value should be set properly.\", \"\" + id,\r\n UnitTestHelper.getPrivateField(AuditDetail.class, auditDetail, \"id\").toString());\r\n }", "@Test\r\n\tpublic void testSetId() {\r\n\t\tbreaku1.setId(5);\r\n\t\texternu1.setId(6);\r\n\t\tmeetingu1.setId(7);\r\n\t\tteachu1.setId(8);\r\n\r\n\t\tassertEquals(5, breaku1.getId());\r\n\t\tassertEquals(6, externu1.getId());\r\n\t\tassertEquals(7, meetingu1.getId());\r\n\t\tassertEquals(8, teachu1.getId());\r\n\t}", "public void testHideAndRevealLabelWithOutlineOnLabel() throws Exception {\n if (TestsUtil.shouldSkipUnreliableTests()) {\n return;\n }\n // Step 1 : hide the label and check that it is correctly hidden\n SWTBotGefEditPart editPart = editor.getEditPart(NODE_WITH_LABEL_NAME);\n SWTBotGefEditPart parentEditPart = editPart.parent();\n checkLabelIsVisible(NODE_WITH_LABEL_NAME);\n\n // Step 1.1 : open the outline view and get its SWTBotView\n final SWTBotView view = getAndExpandOutlineView(true);\n\n // Step 1.2 : open the context menu the element to hide and select the\n // hide element action\n SWTBotTreeItem item = view.bot().tree().getTreeItem(\"p\").getNode(NODE_WITH_LABEL_NAME).getNode(NODE_WITH_LABEL_NAME + \" \" + LABEL_SUFFIX_IN_OUTLINE).click();\n view.bot().tree().getTreeItem(\"p\").getNode(NODE_WITH_LABEL_NAME).getNode(NODE_WITH_LABEL_NAME + \" \" + LABEL_SUFFIX_IN_OUTLINE).select();\n SWTBotUtils.waitAllUiEvents();\n bot.waitUntil(new TreeItemSelected(item));\n setShownImage(item);\n checkOutlineIsCorrectlyDecorated(item, false);\n item.contextMenu(HIDE_LABEL_TOOLTIP).click();\n\n // Step 1.3 : ensure node is hidden\n checkLabelIsHidden(NODE_WITH_LABEL_NAME);\n checkOutlineIsCorrectlyDecorated(item, true);\n\n // Step 3 : ensure that the outline doesn't propose user to hide\n // label anymore\n boolean outlineAllowToHideLabel = true;\n boolean outlineAllowToRevealLabel = false;\n\n editor.select(parentEditPart);\n SWTBotUtils.waitAllUiEvents();\n try {\n item = view.bot().tree().getTreeItem(\"p\").getNode(NODE_WITH_LABEL_NAME + LABEL_SUFFIX_IN_OUTLINE).click();\n view.bot().tree().getTreeItem(\"p\").getNode(NODE_WITH_LABEL_NAME + LABEL_SUFFIX_IN_OUTLINE).select();\n SWTBotUtils.waitAllUiEvents();\n bot.waitUntil(new TreeItemSelected(item));\n item.contextMenu(HIDE_LABEL_TOOLTIP).click();\n } catch (WidgetNotFoundException e) {\n outlineAllowToHideLabel = false;\n try {\n item.contextMenu(REVEAL_LABEL_TOOLTIP).click();\n outlineAllowToRevealLabel = true;\n } catch (WidgetNotFoundException wnfe) {\n outlineAllowToRevealLabel = false;\n }\n } finally {\n Assert.assertFalse(\"The context menu shouldn't allow user to hide label of \" + editPart.part(), outlineAllowToHideLabel);\n Assert.assertTrue(\"The context menu should allow user to show label of \" + editPart.part(), outlineAllowToRevealLabel);\n\n // Step 4 : we ensure that label has been correctly revealed\n checkLabelIsVisible(NODE_WITH_LABEL_NAME);\n checkOutlineIsCorrectlyDecorated(item, false);\n }\n\n }", "interface WithTitle {\n /**\n * Specifies the title property: The title of the lab..\n *\n * @param title The title of the lab.\n * @return the next definition stage.\n */\n WithCreate withTitle(String title);\n }", "@Test(timeout = 4000)\n public void test219() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = new Label(errorPage0, errorPage0);\n label0.map(\"org.mvel.conversion.LongCH$1\");\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(label0._isGeneratedId());\n }", "private void setId(String id) {\r\n\t\tAssert.hasText(id, \"This state must have a valid identifier\");\r\n\t\tthis.id = id;\r\n\t}", "@Test\n @TestLog(title = \"Test3\", id = \"444\")\n public void test3() {\n }", "@Test\n public void test120() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n ErrorPage errorPage1 = (ErrorPage)errorPage0.clasS((CharSequence) \"\");\n assertEquals(\"wheel_ErrorPage\", errorPage1.getComponentId());\n }", "@Test\r\n\tpublic void testSetTitleEU() {\r\n\t\texternu1.setTitle(\"UnitExtern\");\r\n\t\tassertEquals(\"UnitExtern\", externu1.getTitle());\r\n\t}", "@Test\n public void test144() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n CategoryWordTagFactory categoryWordTagFactory0 = new CategoryWordTagFactory();\n CategoryWordTag categoryWordTag0 = (CategoryWordTag)categoryWordTagFactory0.newLabel(\"\", 4152);\n LabeledWord labeledWord0 = new LabeledWord((edu.stanford.nlp.ling.Label) categoryWordTag0, (edu.stanford.nlp.ling.Label) categoryWordTag0);\n Label label0 = (Label)errorPage0.li((Object) labeledWord0);\n assertTrue(label0._isGeneratedId());\n \n Checkbox checkbox0 = new Checkbox(errorPage0, \"\", \"SvTt\");\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertEquals(\"SvTt\", checkbox0.getComponentId());\n }", "@Test\n public void test116() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Block block0 = (Block)errorPage0.dt();\n assertTrue(block0._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "@Test\n public void test056() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Hidden hidden0 = new Hidden(errorPage0, \"}4>j:%ZQb{mjn\", \"}4>j:%ZQb{mjn\");\n Hidden hidden1 = (Hidden)hidden0.up(0);\n }", "protected GuiTestObject terraced() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"terraced\"));\n\t}", "@Test\n public void idTest() {\n // TODO: test id\n }", "@Test\n public void idTest() {\n // TODO: test id\n }", "@Test\n public void test145() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Block block0 = (Block)errorPage0.strike();\n assertTrue(block0._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "@Test\r\n public void ActionableTrainingTest() {\n WebElement title1 = driver.findElement(By.cssSelector(\"h3.uagb-ifb-title\"));\r\n \r\n //Assertion for title of the first info box\r\n Assert.assertEquals(title1.getText(), \"Actionable Training\");\r\n \r\n //Print heading of the first info box\r\n Reporter.log(\"Heading is: \" + title1.getText(), true);\r\n }", "@Test\n @DisplayName(\"Enabled when it is built\")\n @Disabled\n @Tag(\"development\")\n void developmentTest() {\n }", "public Identity(){\n setLabel(\"I\");\n }", "public void testSetTitle() {\n System.out.println(\"setTitle\");\n String s = \"\";\n Wizard instance = new Wizard();\n instance.setTitle(s);\n }", "@Test\n public void testSetName_1()\n throws Exception {\n LogicStep fixture = new LogicStep();\n fixture.setScript(\"\");\n fixture.setName(\"\");\n fixture.setOnFail(\"\");\n fixture.setScriptGroupName(\"\");\n fixture.stepIndex = 1;\n String name = \"\";\n\n fixture.setName(name);\n\n }", "@Test\n public void test091() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n LabeledWord labeledWord0 = new LabeledWord(\"\");\n Label label0 = (Label)errorPage0.s((Object) labeledWord0);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(label0._isGeneratedId());\n }", "@Test(timeout = 4000)\n public void test24() throws Throwable {\n DynamicSelectModel dynamicSelectModel0 = new DynamicSelectModel();\n DynamicSelectModel dynamicSelectModel1 = dynamicSelectModel0.enumeration(\"J[jnSW)BoPhq1+\");\n // Undeclared exception!\n dynamicSelectModel1.getLabel(180);\n }", "@Test(timeout = 4000)\n public void test233() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.label();\n Component component1 = component0.code();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component1._isGeneratedId());\n }", "@Test\n public void test108() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Block block0 = (Block)errorPage0.ul();\n Label label0 = (Label)errorPage0.big((Object) errorPage0);\n ActionExpression actionExpression0 = errorPage0.action(\"~Dci\");\n Label label1 = (Label)errorPage0.small((Object) actionExpression0);\n Block block1 = (Block)errorPage0.b();\n List<ActionExpression> list0 = errorPage0._getActions();\n block1._clear();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(block1._isGeneratedId());\n }", "@Test\n public void test125() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Any any0 = (Any)errorPage0.iframe();\n Block block0 = (Block)errorPage0.p();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(block0._isGeneratedId());\n }", "protected GuiTestObject html_main() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"html_main\"));\n\t}", "@Test(timeout = 4000)\n public void test228() throws Throwable {\n Checkbox checkbox0 = new Checkbox((Component) null, \"unsupported feature \", \"unsupported feature \");\n String[] stringArray0 = new String[2];\n Component component0 = checkbox0.attributes(stringArray0);\n assertSame(component0, checkbox0);\n }", "@Test\n public void test015() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Block block0 = (Block)errorPage0.span();\n Hidden hidden0 = new Hidden(block0, \"x_O/V\", \"x_O/V\");\n hidden0._setParent((Component) errorPage0);\n }", "@Test(timeout = 4000)\n public void test002() throws Throwable {\n Form form0 = new Form(\"z=OF5Ty4t\");\n String[] stringArray0 = new String[8];\n stringArray0[0] = \"java.lang.String@0000000005\";\n Component component0 = form0.attributes(stringArray0);\n assertEquals(\"z=OF5Ty4t\", component0.getComponentId());\n }", "@Test(timeout = 4000)\n public void test232() throws Throwable {\n Form form0 = new Form(\"ms)\");\n form0.renderHint(\"z:_i>EAQ.Bdq@CL&k?\\\"\");\n Form form1 = form0.renderHint(\"z:_i>EAQ.Bdq@CL&k?\\\"\");\n assertEquals(\"ms)\", form1.getComponentId());\n }", "@Test(timeout = 4000)\n public void test240() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.noscript();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component0._isGeneratedId());\n }", "@Test(timeout = 4000)\n public void test365() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.kbd((Object) errorPage0);\n assertTrue(component0._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "public SceneLabelObjectState(SceneDivObjectState state){\t\t\n\t\tsuper(state); //will create a SceneDivObjectState from the supplied state\n\t\tsuper.setObjectsPrimaryType(SceneObjectType.Label); //subtypes should also run this statement straight after the super command in order to override their parents type and set their own as the primary/\n\n\t\t//Clear css parameters from general settings passed to this\n\t\t//This is because Dialogue objects treats these differently.\n\t\t//We fill them up correctly when the dialogue specific stuff is processed\n\t\tCurrentBoxCSS=\"\";\n\n\t}", "public void testHideLabelWithContextMenuOnLabel() {\n // Step 1 : hide the label and check that it is correctly hidden\n SWTBotGefEditPart editPart = editor.getEditPart(NODE_WITH_LABEL_NAME);\n SWTBotGefEditPart parentEditPart = editPart.parent();\n checkLabelIsVisible(NODE_WITH_LABEL_NAME);\n editor.select(Sets.newHashSet(editPart));\n editor.clickContextMenu(HIDE_LABEL_TOOLTIP);\n\n checkLabelIsHidden(NODE_WITH_LABEL_NAME);\n\n // Step 2 : ensure that the context menu doesn't propose user to hide\n // label anymore\n boolean hideLabelContextMenuActionFound = true;\n editor.select(parentEditPart);\n try {\n editor.clickContextMenu(HIDE_LABEL_TOOLTIP);\n } catch (WidgetNotFoundException e) {\n hideLabelContextMenuActionFound = false;\n } finally {\n Assert.assertFalse(\"The context menu shouldn't allow user to hide label of \" + NODE_WITH_LABEL_NAME + \" (as it is already hidden)\", hideLabelContextMenuActionFound);\n }\n }", "@Test\n public void test1() {\n FirefoxBinary binary =\n new FirefoxBinary(new File(FIREFOX_PATH));\n driver = TestBench.createDriver(\n new FirefoxDriver(binary, new FirefoxProfile()));\n setDriver(driver);\n getDriver().get(URL);\n ButtonElement button = $(ButtonElement.class).first();\n button.click();\n LabelElement label = $(LabelElement.class).id(\"result\");\n\n Assert.assertEquals(\"Thanks , it works!\",label.getText());\n driver.quit();\n }", "public void testGetId_Accuracy() {\r\n int id = 1;\r\n UnitTestHelper.setPrivateField(AuditDetail.class, auditDetail, \"id\", new Integer(id));\r\n assertEquals(\"The id value should be got properly.\", id, auditDetail.getId());\r\n }", "interface WithTitle {\n /**\n * Specifies the title property: The title of the lab..\n *\n * @param title The title of the lab.\n * @return the next definition stage.\n */\n Update withTitle(String title);\n }", "@Test\n public void testSetId() {\n System.out.println(\"setId\");\n Long id = null;\n Reserva instance = new Reserva();\n instance.setId(id);\n \n }", "@Test\r\n public void testSetId_compte() {\r\n System.out.println(\"setId_compte\");\r\n int id_compte = 0;\r\n chequeBeans instance = new chequeBeans();\r\n instance.setId_compte(id_compte);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "void setId(int val);", "public void setElementName(CamelCaseName value){\n ((MenuDMO) core).setElementName(value);\n }", "@Test(timeout = 4000)\n public void test197() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Checkbox checkbox0 = new Checkbox(errorPage0, \"kiDz=CI9_ri)~odKM\", \"]1\");\n checkbox0.renderHint(\"]1\");\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "public void testHideAndRevealLabelWithOutlineOnNode() throws Exception {\n if (TestsUtil.shouldSkipUnreliableTests()) {\n // Can cause timeouts.\n return;\n }\n // Step 1 : hide the label and check that it is correctly hidden\n SWTBotGefEditPart editPart = editor.getEditPart(NODE_WITH_LABEL_NAME);\n SWTBotGefEditPart parentEditPart = editPart.parent();\n checkLabelIsVisible(NODE_WITH_LABEL_NAME);\n\n final SWTBotView view = getAndExpandOutlineView(true);\n\n // Step 1.2 : open the context menu the element to hide and select the\n // hide element action\n SWTBotTreeItem labelItem = view.bot().tree().getTreeItem(\"p\").getNode(NODE_WITH_LABEL_NAME).getNode(NODE_WITH_LABEL_NAME + \" \" + LABEL_SUFFIX_IN_OUTLINE).click();\n view.bot().tree().getTreeItem(\"p\").getNode(NODE_WITH_LABEL_NAME).getNode(NODE_WITH_LABEL_NAME + \" \" + LABEL_SUFFIX_IN_OUTLINE).select();\n SWTBotUtils.waitAllUiEvents();\n bot.waitUntil(new TreeItemSelected(labelItem));\n setShownImage(labelItem);\n SWTBotTreeItem nodeItem = view.bot().tree().getTreeItem(\"p\").getNode(NODE_WITH_LABEL_NAME).click();\n view.bot().tree().getTreeItem(\"p\").getNode(NODE_WITH_LABEL_NAME).select();\n SWTBotUtils.waitAllUiEvents();\n bot.waitUntil(new TreeItemSelected(nodeItem));\n checkOutlineIsCorrectlyDecorated(labelItem, false);\n nodeItem.contextMenu(HIDE_LABEL_TOOLTIP).click();\n\n // Step 1.3 : ensure node is hidden\n checkLabelIsHidden(NODE_WITH_LABEL_NAME);\n checkOutlineIsCorrectlyDecorated(labelItem, true);\n\n // Step 2 : ensure that the outline doesn't propose user to hide\n // label anymore\n boolean outlineAllowToHideLabel = true;\n boolean outlineAllowToRevealLabel = false;\n\n editor.select(parentEditPart);\n SWTBotUtils.waitAllUiEvents();\n final long oldTimeout = SWTBotPreferences.TIMEOUT;\n try {\n SWTBotPreferences.TIMEOUT = 1000;\n nodeItem.click().contextMenu(HIDE_LABEL_TOOLTIP).click();\n } catch (RuntimeException e) {\n outlineAllowToHideLabel = false;\n try {\n nodeItem.click().contextMenu(REVEAL_LABEL_TOOLTIP).click();\n outlineAllowToRevealLabel = true;\n } catch (WidgetNotFoundException wnfe) {\n outlineAllowToRevealLabel = false;\n }\n } finally {\n SWTBotPreferences.TIMEOUT = oldTimeout;\n Assert.assertFalse(\"The context menu shouldn't allow user to hide label of \" + editPart.part(), outlineAllowToHideLabel);\n Assert.assertTrue(\"The context menu should allow user to show label of \" + editPart.part(), outlineAllowToRevealLabel);\n\n // Step 4 : we ensure that label has been correctly revealed\n checkLabelIsVisible(NODE_WITH_LABEL_NAME);\n checkOutlineIsCorrectlyDecorated(labelItem, false);\n }\n\n }", "public void setId(String id) {\n this.ide = id;\n //System.out.println(\"linkyhandler setid \" + ide);\n }", "@Override\n\tpublic void setTest() {\n\t}", "@Test(timeout = 4000)\n public void test356() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.h3();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component0._isGeneratedId());\n }", "@Test(timeout = 4000)\n public void test23() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = new Label(errorPage0, errorPage0);\n Component component0 = label0.dfn();\n Any any0 = new Any(component0, (CharSequence) null);\n DynamicSelectModel dynamicSelectModel0 = any0.selectModel();\n dynamicSelectModel0.enumeration(\"\");\n // Undeclared exception!\n try { \n dynamicSelectModel0.getLabel(180);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Could not evaluate expression .values() to create a dynamic ISelectModel.\n //\n verifyException(\"wheel.components.ElExpression\", e);\n }\n }", "@Test\n\tpublic void TC_01_Web_Element() {\n\t\tdriver.findElement(By.id(\"\")); //**\n\t\t\n\t\t//Tim nhieu element\n\t\tdriver.findElements(By.id(\"\"));//**\n\t\t\n\t\t//If chi thao tac vs element 1 lan thi ko can khai bao bien\n\t\tdriver.findElement(By.id(\"small-searchterms\")).sendKeys(\"Apple\");//**\n\t\t\n\t\t//If can thao tac element nhieu lan thi nen khai bao bien\n\t\tWebElement searchTextbox = driver.findElement(By.id(\"small-searchterms\"));\n\t\tsearchTextbox.clear();//**\n\t\tsearchTextbox.sendKeys(\"Apple\");\n\t\tsearchTextbox.getAttribute(\"value\");//**\n\t\t\n\t\t//driver.findElement(By.id(\"small-searchterms\")).clear();\n\t\t//driver.findElement(By.id(\"small-searchterms\")).sendKeys(\"Apple\");\n\t\t//driver.findElement(By.id(\"small-searchterms\")).getAttribute(\"value\");\n\t\t\n\t\t//Count co bao nhieu element thoa dieu kien\n\t\t//Verify so luong element tra ve nhu mong doi\n\t\t//Thao tac vs all cac loai element giong nhau trong 1 page (checkbox/textbox)\n\t\tList<WebElement> checkboxes = driver.findElements(By.xpath(\"//div[@class='inputs']/input[not(@type='checkbox')]\"));\n\t\t\n\t\t//Lay ra so luong\n\t\tAssert.assertEquals(checkboxes.size(), 6);\n\t\t\n\t\tWebElement singleElement = driver.findElement(By.className(\"\"));\n\t\t\n\t\t//Textbox TextArea/ Edittable dropdown\n\t\t//Du lieu duoc toan ven\n\t\tsearchTextbox.clear();\n\t\tsearchTextbox.sendKeys(\"\");\n\t\t\n\t\t//Button/Link/radio/checkbox/custom dropdown/..\n\t\tsingleElement.click();//**\n\t\t\n\t\t//Cac ham co tien to bat dau bang get lun lun tra ve du lieu \n\t\t//getTitle/ getCurrentUrl/ getPageSource/ getAttribute/ getCssValue/ getText/ get...\n\t\tsingleElement = driver.findElement(By.xpath(\"//input[@id='Firstname']\"));\n\t\tsingleElement.getAttribute(\"\");\n\t\t\n\t\t//Automation\n\t\tsingleElement = driver.findElement(By.xpath(\"//input[@id='small-searchterms']\"));\n\t\tsingleElement.getAttribute(\"placeholder\");\n\t\t//Search store\n\t\t\n\t\t//Lay ra gia tri cua cac thuoc tinh css thuong dung de test GUI\n\t\t//Font/Size/Color/Background/...\n\t\tsingleElement = driver.findElement(By.cssSelector(\"search-box-button\"));\n\t\tsingleElement.getCssValue(\"background-color\");//*\n\t\t//#4ab2f1\n\t\tsingleElement.getCssValue(\"text-transform\");\n\t\t//uppercase\n\t\t\n\t\t//Lay ra toa do element so voi page hien tai (get gox ben ngoai)\n\t\tsingleElement.getLocation();\n\t\t\n\t\t//lay ra kich thuoc cua element (rong x cao) -> get goc ben trong element\n\t\tsingleElement.getSize();\n\t\t\n\t\t//Location + size\n\t\tsingleElement.getRect();\n\t\t\n\t\t//Chup hinh loi => dua vao html export\n\t\tsingleElement.getScreenshotAs(OutputType.FILE);//*\n\t\t\n\t\t\n\t\t//id/class/css/name...//tu 1 element ko bik tagname -> lay ra duoc tagname truyen vao cho 1 locator khac\n\t\tsingleElement = driver.findElement(By.xpath(\"//div[@class='inputs']/input[not(@type='checkbox')]\"));\n\t\tString searchButtonTagname = singleElement.getTagName();//*\n\t\t\n\t\tsearchTextbox = driver.findElement(By.xpath(\"//\" + searchButtonTagname + \"[@class='inputs']/input[not(@type='checkbox')]\"));\n\t\t//input\n\t\t\n\t\t//xpath\n\t\t//tagname[@attribute='value']\n\t\t\n\t\t\n\t\t//lay ra text element (header/link/message/...)\n\t\tsingleElement.getText();//**\n\t\t\n\t\t//Cac ham co tien to la isXXX thi tra ve kieu Boolean (100%)\n\t\t//true/false\n\t\t\n\t\t//kiem tra xem 1 element la hien thi cho nguoi dung thao tac hay ko\n\t\t//true: dang hien thi\n\t\t//false: ko hien thi\n\t\tsingleElement.isDisplayed();//**\n\t\t\n\t\t//kiem tra xem 1 element la disable hay ko\n\t\t//disable: user ko thao tac duoc\n\t\t//true: ko thao tac duoc\n\t\t//false: co the thao tac\n\t\tsingleElement.isEnabled();//*\n\t\t\n\t\t//kiem tra xem 1 element da duoc chon roi hay chua\n\t\t//checkbox/ radio/ dropdown\n\t\t//true: da chon roi\n\t\t//false: chua duoc chon\n\t\tsingleElement.isSelected();//*\n\t\t\n\t\t//no thay cho hanh vi ENTER vao textbox/button\n\t\t//chi dung duoc trong form (Login/search/register/...)\n\t\tsingleElement.submit();\n\t\t\n\t\tsingleElement = driver.findElement(By.id(\"small-searchterms\"));\n\t\tsingleElement.sendKeys(\"Apple\");\n\t\tsingleElement.submit();\n\t\t\n\t\t\n\t\t\n\t}", "@Test\n\tpublic void testDifferentID() {\n\t\tMainDish dessertTest = new MainDish(\"quiche\");\n\t\tMainDish dessertTest2 = new MainDish(\"quiche\");\n\t\tassertTrue(dessertTest.getId()!=dessertTest2.getId());\n\t}", "@Test(timeout = 4000)\n public void test181() throws Throwable {\n Hidden hidden0 = new Hidden((Component) null, \"(vLoO6y2\\\"Vht&{{\", \"(vLoO6y2\\\"Vht&{{\");\n // Undeclared exception!\n try { \n hidden0._wrapComponentId(\"(vLoO6y2\\\"Vht&{{\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // No top level component found.\n //\n verifyException(\"wheel.components.Component\", e);\n }\n }", "public void testHideAndRevealLabelWithOutlineOnEdge() throws Exception {\n if (TestsUtil.shouldSkipUnreliableTests()) {\n // Causes timeout.\n return;\n }\n // Step 1 : hide the label and check that it is correctly hidden\n SWTBotGefEditPart editPart = editor.getEditPart(EDGE_WITH_LABEL_NAME);\n SWTBotGefEditPart parentEditPart = editPart.parent();\n checkEdgeLabelIsVisible(EDGE_WITH_LABEL_NAME);\n\n final SWTBotView view = getAndExpandOutlineView(true);\n\n // Step 1.2 : open the context menu the element to hide and select the\n // hide element action\n SWTBotTreeItem labelItem = view.bot().tree().getTreeItem(\"p\").getNode(EDGE_WITH_LABEL_NAME + \" : B\").getNode(LABEL_SUFFIX_IN_OUTLINE).click();\n view.bot().tree().getTreeItem(\"p\").getNode(EDGE_WITH_LABEL_NAME + \" : B\").getNode(LABEL_SUFFIX_IN_OUTLINE).select();\n SWTBotUtils.waitAllUiEvents();\n bot.waitUntil(new TreeItemSelected(labelItem));\n setShownImage(labelItem);\n SWTBotTreeItem nodeItem = view.bot().tree().getTreeItem(\"p\").getNode(EDGE_WITH_LABEL_NAME + \" : B\").click();\n view.bot().tree().getTreeItem(\"p\").getNode(EDGE_WITH_LABEL_NAME + \" : B\").select();\n SWTBotUtils.waitAllUiEvents();\n bot.waitUntil(new TreeItemSelected(nodeItem));\n checkOutlineIsCorrectlyDecorated(labelItem, false);\n nodeItem.contextMenu(HIDE_LABEL_TOOLTIP).click();\n\n // Step 1.3 : ensure node is hidden\n checkEdgeLabelIsHidden(EDGE_WITH_LABEL_NAME);\n checkOutlineIsCorrectlyDecorated(labelItem, true);\n\n // Step 2 : ensure that the outline doesn't propose user to hide\n // label anymore\n boolean outlineAllowToHideLabel = true;\n boolean outlineAllowToRevealLabel = false;\n\n editor.select(parentEditPart);\n SWTBotUtils.waitAllUiEvents();\n final long oldTimeout = SWTBotPreferences.TIMEOUT;\n try {\n SWTBotPreferences.TIMEOUT = 1000;\n nodeItem.click().contextMenu(HIDE_LABEL_TOOLTIP).click();\n } catch (RuntimeException e) {\n outlineAllowToHideLabel = false;\n try {\n nodeItem.click().contextMenu(REVEAL_LABEL_TOOLTIP).click();\n outlineAllowToRevealLabel = true;\n } catch (WidgetNotFoundException wnfe) {\n outlineAllowToRevealLabel = false;\n }\n } finally {\n SWTBotPreferences.TIMEOUT = oldTimeout;\n Assert.assertFalse(\"The context menu shouldn't allow user to hide label of \" + editPart.part(), outlineAllowToHideLabel);\n Assert.assertTrue(\"The context menu should allow user to show label of \" + editPart.part(), outlineAllowToRevealLabel);\n\n // Step 4 : we ensure that label has been correctly revealed\n checkEdgeLabelIsVisible(EDGE_WITH_LABEL_NAME);\n checkOutlineIsCorrectlyDecorated(labelItem, false);\n }\n\n }", "@DISPID(-2147417085)\n @PropGet\n java.lang.String innerText();", "public void setTitleID(String val){\n\t\ttid = val;\n\t}", "@Test(timeout = 4000)\n public void test343() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Byte byte0 = new Byte((byte)1);\n Label label0 = new Label(errorPage0, byte0);\n // Undeclared exception!\n try { \n label0.title(\"select\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.components.StandaloneComponent\", e);\n }\n }", "@Test\n void getAndSetDescription() {\n }", "@JSProperty(\"showFirstLabel\")\n boolean getShowFirstLabel();", "@Override\n public int getId() {\n return 0;\n }", "@Test\n public void testSetTitle() {\n System.out.println(\"setTitle\");\n String title = \"Title\";\n \n instance.setTitle(title);\n \n assertTrue(\"Title unchanged\", title.equals(instance.getTitle()));\n // TODO review the generated test code and remove the default call to fail.\n // fail(\"The test case is a prototype.\");\n }", "private Label setTitle() {\r\n Label title = new Label(TITLE);\r\n title.setFont(Font.font(null, FontWeight.BOLD, null, TITLESZE));\r\n return title;\r\n }", "@Test(timeout = 4000)\n public void test009() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Byte byte0 = new Byte((byte)1);\n Label label0 = new Label(errorPage0, byte0);\n Checkbox checkbox0 = new Checkbox(label0, \"\", \"\");\n Component component0 = checkbox0.renderHint(\"\");\n assertTrue(component0._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "@Override\n public String getTittle() {\n return tittleText;\n }", "@Test\n\tpublic void getIdTest() {\n\t}", "@Test(timeout = 4000)\n public void test107() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"&!a0Q!<8UDk+%_*<Z'\");\n Hidden hidden0 = new Hidden(xmlEntityRef0, \"&!a0Q!<8UDk+%_*<Z'\", \"&!a0Q!<8UDk+%_*<Z'\");\n // Undeclared exception!\n try { \n hidden0.label();\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test\r\n public void testSetTitle() {\r\n System.out.println(\"SetTitle\");\r\n String title = \"\";\r\n Graph instance = new Graph();\r\n instance.SetTitle(title);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "public void setId(String newValue);", "@Test\r\n\tpublic void testSetTitleMU() {\r\n\t\tmeetingu1.setTitle(\"UnitMeeting\");\r\n\t\tassertEquals(\"UnitMeeting\", meetingu1.getTitle());\r\n\t}", "public static LabelTarget label() { throw Extensions.todo(); }", "@Test(timeout = 4000)\n public void test024() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.dfn();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component0._isGeneratedId());\n }", "@Test(timeout = 4000)\n public void test008() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.small();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component0._isGeneratedId());\n }" ]
[ "0.55554533", "0.5418597", "0.5336946", "0.5322252", "0.52834845", "0.52520806", "0.52423626", "0.52357304", "0.5138011", "0.5125792", "0.5120498", "0.5102353", "0.5093962", "0.50939596", "0.50578004", "0.504758", "0.50475645", "0.5023297", "0.5016095", "0.49955043", "0.49727187", "0.4954749", "0.49503005", "0.49426168", "0.49385065", "0.4928922", "0.491104", "0.48783037", "0.48630098", "0.48597467", "0.48472977", "0.48458555", "0.4841423", "0.48239338", "0.48175663", "0.4781142", "0.4774974", "0.4770595", "0.476416", "0.47556317", "0.47554532", "0.4735308", "0.47323433", "0.47298813", "0.47298813", "0.47279885", "0.47261918", "0.47239384", "0.47213584", "0.4714187", "0.47112778", "0.4708578", "0.47026798", "0.47020873", "0.4699828", "0.4695074", "0.46927288", "0.46920702", "0.4684749", "0.4684608", "0.46840465", "0.46818367", "0.46804932", "0.46766573", "0.46757263", "0.46643206", "0.4663223", "0.46596232", "0.46552756", "0.46516553", "0.46502414", "0.46500894", "0.4647707", "0.46407816", "0.46160883", "0.46152353", "0.46128947", "0.46097556", "0.4603406", "0.45997304", "0.45966166", "0.45955336", "0.45943126", "0.45899653", "0.4580178", "0.45787498", "0.45783114", "0.4577169", "0.45725274", "0.45693117", "0.45628864", "0.45619205", "0.45600036", "0.45526496", "0.45493495", "0.4548245", "0.45477805", "0.4545998", "0.45417655", "0.45409396" ]
0.48586407
30
Terraced: with default state. .id : propertyterraced .value : Terraced .title : .class : Html.LABEL .classIndex : 1
protected GuiTestObject terraced() { return new GuiTestObject( getMappedTestObject("terraced")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ScText newIdText()\n {\n return newIdText(\"Id\");\n }", "public ScText newIdText()\n {\n return newIdText(\"Id\");\n }", "public ScText newIdText()\n {\n return newIdText(\"Id\");\n }", "public ScText newIdText()\n {\n return newIdText(\"Id\");\n }", "@RdfProperty(\"http://www.coadunation.net/schema/rdf/1.0/base#IdValue\")\n public abstract String getValue();", "@Override\n public String getId() {\n return \"1\";\n }", "@Override\n\tpublic String toString() {\treturn id + \" [\" + value + \"]\" ;}", "public HtmlHolder (@Nonnull final Id id)\n {\n super(id);\n addAttribute(\"style\", NW + id.stringValue());\n setMimeType(\"text/html\");\n }", "public SceneLabelObjectState(SceneDivObjectState state){\t\t\n\t\tsuper(state); //will create a SceneDivObjectState from the supplied state\n\t\tsuper.setObjectsPrimaryType(SceneObjectType.Label); //subtypes should also run this statement straight after the super command in order to override their parents type and set their own as the primary/\n\n\t\t//Clear css parameters from general settings passed to this\n\t\t//This is because Dialogue objects treats these differently.\n\t\t//We fill them up correctly when the dialogue specific stuff is processed\n\t\tCurrentBoxCSS=\"\";\n\n\t}", "protected String text() {\n\t\treturn idSet ? String.valueOf(id) : \"\";\n\t}", "public static String defaultLabel(String id, Messages messages, String propertyExpression)\n {\n String key = id + \"-label\";\n \n if (messages.contains(key))\n return messages.get(key);\n \n return toUserPresentable(extractIdFromPropertyExpression(InternalCommonsUtils.lastTerm(propertyExpression)));\n }", "void setId(int val);", "public SceneLabelObjectState(){\n\t\tsuper();\n\t\tsuper.setObjectsPrimaryType(SceneObjectType.Label);\n\n\t}", "public LabelValueBean() {\r\n\t\tsuper(\"\", \"\");\r\n\t}", "public Identity(){\n setLabel(\"I\");\n }", "public void setTitleID(String val){\n\t\ttid = val;\n\t}", "public Node( String id )\r\n {\r\n initialize(id);\r\n lbl = id;\r\n }", "private String prefTag(String id) {\n\t\treturn preferenceTag + \"_\" + id;\n\t}", "public SceneLabelObjectState(SceneLabelObjectState state){\t\t\n\t\tsuper(state); //will create a SceneDivObjectState from the supplied state\n\t\tsuper.setObjectsPrimaryType(SceneObjectType.Label); //subtypes should also run this statement straight after the super command in order to override their parents type and set their own as the primary/\n\n\n\t\tthis.ObjectsCurrentText = state.ObjectsCurrentText;\n\t\tthis.CSSname = state.CSSname;\n\t\tthis.cursorVisible=state.cursorVisible;\n\t\tthis.TypedText=state.TypedText;\t\t\n\t\tthis.Custom_Key_Beep = state.Custom_Key_Beep;\n\t\tthis.Custom_Space_Beep = state.Custom_Space_Beep;\n\n\t}", "@Override\n public int getId() {\n return 0;\n }", "public SimpleIntegerProperty getIDProperty(){ return id; }", "private Theme(int value, String name, String literal) {\n\t\tthis.value = value;\n\t\tthis.name = name;\n\t\tthis.literal = literal;\n\t}", "public Title()\r\n {\r\n startTag=\"TITLE\";\r\n endTag=\"/TITLE\"; \r\n }", "public Object get_KeyValue(){return\t\t\t Id;}", "interface WithTitle {\n /**\n * Specifies the title property: The title of the lab..\n *\n * @param title The title of the lab.\n * @return the next definition stage.\n */\n Update withTitle(String title);\n }", "public SceneLabelObjectState(SceneObjectState state){\n\t\tsuper(state);\n\t\tsuper.setObjectsPrimaryType(SceneObjectType.Label);\n\t\t//super.getCurrentType()=SceneObjectType.DialogBox;\n\t\t//super.setObjectsOnlyType(SceneObjectType.DialogBox); //we don't set this anymore as subclasses may set this themselves!\n\n\t\t//Clear css parameters from general settings passed to this\n\t\t//This is because Dialogue objects treats these differently.\n\t\t//We fill them up correctly when the dialogue specific stuff is processed\n\t\tCurrentBoxCSS=\"\";\n\n\t}", "@DISPID(-2147417110)\n @PropGet\n java.lang.String id();", "private FormComponentLabel addLabeled( String id, FormComponent<?> component ) {\n component.setOutputMarkupId( true );\n FormComponentLabel result = new FormComponentLabel( id, component );\n add( result );\n add( component );\n addIssuesAnnotation( component, getFlow(), component.getId() );\n return result;\n }", "@JSProperty(\"id\")\n void setId(String value);", "@Override\r\n\t\tpublic void setId(String id)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}", "public void setClassLabel(String key, String label);", "private Label setTitle() {\r\n Label title = new Label(TITLE);\r\n title.setFont(Font.font(null, FontWeight.BOLD, null, TITLESZE));\r\n return title;\r\n }", "ReadOnlyStringProperty labelProperty();", "@Override\r\n\tpublic void setId(String id) {\n\t\t\r\n\t}", "public abstract String getLabel();", "public Tag(Property.Name value) {\n\t}", "@Override\n\tpublic void setId(String id)\n\t{\n\t\t\n\t}", "@Override\n\tpublic int getId() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int getId() {\n\t\treturn 0;\n\t}", "public void setId(String newValue);", "interface WithTitle {\n /**\n * Specifies the title property: The title of the lab..\n *\n * @param title The title of the lab.\n * @return the next definition stage.\n */\n WithCreate withTitle(String title);\n }", "public Field label(String label);", "public void setId(String id)\r\n/* 19: */ {\r\n/* 20:17 */ this.id = id;\r\n/* 21: */ }", "@JSProperty(\"showFirstLabel\")\n boolean getShowFirstLabel();", "@Override\n public String getLabel() {\n return label;\n }", "public abstract void render(Context context, C value, SafeHtmlBuilder sb, String id);", "public String getId(){ return ID; }", "public String getId(){return id;}", "@Override\n public void setLabel(String arg0)\n {\n \n }", "public SimpleStringProperty titelProperty() {\n return titel;\n }", "@Override\n\tpublic String Show()\n\t{\n\t\treturn id;\n\t\t\n\t}", "@Override\n\n // <editor-fold defaultstate=\"collapsed\" desc=\" UML Marker \"> \n // #[regen=yes,id=DCE.E1700BD9-298C-DA86-4BFF-194B41A6CF5E]\n // </editor-fold> \n protected String getProperties() {\n\n return \"Size = \" + size + \", Index = \" + value;\n\n }", "public Text createTitle() {\n\t\tText title = new Text(\"Selecteer Gasten\");\n\t\ttitle.getStyleClass().add(\"h1\");\n\t\ttitle.setFont(Font.font(22));\n\t\treturn title;\t\t\n\t}", "@Override\r\n public String getId() {\r\n return id;\r\n }", "public static void setTitle( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, TITLE, value);\r\n\t}", "public String getId()\r\n/* 14: */ {\r\n/* 15:14 */ return this.id;\r\n/* 16: */ }", "Model(String _name, int _value, int _id) {\n this.name = _name;\n this.value = _value;\n this.id = _id;\n }", "public void setId(java.lang.String value) {\n this.id = value;\n }", "public void setId(java.lang.String value) {\n this.id = value;\n }", "public void setId(java.lang.String value) {\n this.id = value;\n }", "public String getId() { return id; }", "public String getId() { return id; }", "public String getId() { return id; }", "private void setId(int value) {\n \n id_ = value;\n }", "Label getLabelRootRecherche();", "@Override\r\n public int identifier() {\r\n return 100;\r\n }", "private Label initLabel(DraftKit_PropertyType labelProperty, String styleClass) {\n PropertiesManager props = PropertiesManager.getPropertiesManager();\n String labelText = props.getProperty(labelProperty);\n Label label = new Label(labelText);\n label.getStyleClass().add(styleClass);\n return label;\n }", "protected GuiTestObject title() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"title\"));\n\t}", "private void setTextID(String key, String value) {\n fieldID.get(key).setText(value);\n }", "public abstract String getLabelText();", "public void defId(int id) {\r\n\t\tthis.id = id;\r\n\t}", "public LightParameter(Integer id, String labelKey)\r\n\t{\r\n\t\tsuper(id, labelKey);\r\n\t}", "private void setId(Integer id) { this.id = id; }", "@Override\n public String getId() {\n return id;\n }", "public void setId(int id){ this.id = id; }", "public BaseCmsTT (java.lang.Integer id) {\n\t\tthis.setId(id);\n\t\tinitialize();\n\t}", "id() {}", "public Label create() {\n\t\t\tgeneratedValue += 1;\n\t\t\treturn new Label(Type.GENERATED, generatedValue);\n\t\t}", "public String toString( ) {\n return \"v\" + id;\n }", "private Value() {\n\t}", "public Tag addDefaultTag(){\n StringProperty tagName = new SimpleStringProperty();\n tagName.setValue(\"New Tag\");\n Tag newTag = new Tag(tagName);\n\n\n /* verify if id is integer or string, we handle just strings here\n newTag.setIdProperty(0);\n */\n\n addTag(newTag);\n\n System.out.println(contentFromTags(tags));\n\n return newTag;\n }", "public AnnotationDefaultAttr(ElemValPair s) { //\r\n elem = s;\r\n }", "public void setId(String id) {\n this.id = id;\n }", "private TopmarkType(int value, String name, String literal) {\n\t\tthis.value = value;\n\t\tthis.name = name;\n\t\tthis.literal = literal;\n\t}", "public VirtualNode(String id, String label){\n\t\tthis.id = id;\n\t\tthis.label = label;\n\t}", "protected String getValueTitle() {\r\n\t\treturn \"Value\";\r\n\t}", "public String label() {\n\t\treturn \"LABEL_\" + (labelCount++);\n\t}", "@RdfProperty(\"http://www.coadunation.net/schema/rdf/1.0/base#IdValue\")\n public abstract void setValue(String value);", "@Override\n\t/**\n\t * returns the class Id for selected class\n\t * \n\t * @return the class id for the class \n\t */\n\tpublic int getClassID() {\n\t\treturn ID;\n\t}", "@Override\n\t\t\tpublic String getLabel() {\n\t\t\t\treturn null;\n\t\t\t}", "public String getLabel(){\n return label;\n }", "@Override public String getID() { return id;}", "public void set(String id, Color value, DockColor uiValue) {\n TitleColor title = (TitleColor)uiValue;\n Dockable dockable = title.getTitle().getDockable();\n if (dockable instanceof ColorDockable) {\n Color base = ((ColorDockable)dockable).getColor();\n\n if (\"title.active.left\".equals(id)) {\n uiValue.set(base);\n }\n else if (\"title.active.right\".equals(id)) {\n uiValue.set(Color.WHITE);\n }\n else if (\"title.inactive.left\".equals(id)) {\n uiValue.set(base.darker());\n }\n else if (\"title.inactive.right\".equals(id)) {\n uiValue.set(Color.LIGHT_GRAY);\n }\n else {\n uiValue.set(value);\n }\n }\n else {\n uiValue.set(value);\n }\n }", "private void setId(int value) {\n \n id_ = value;\n }", "@Transient\n\tpublic String getCaption(){\n\t return \"[\" + getCode() + \"] \" + getName();\n\t}", "String getLabel();", "String getLabel();", "@Import(\"id\")\n\tint getId();", "@IdObjectEntitySettings(defaultPageSize = 5, defaultSortField = \"description\", defaultSortAscending = true,\n singular = \"Class\", plural = \"Classes\",\n viewFieldOrder = {\"description\", \"lastObservationTimestamp\", \"modificationTimestamp\", \"archived\"},\n editFieldOrder = {\"description\"})\npublic interface ClassList extends Observable {\n\n public final static String CLASS_LIST_DESCRIPTION_CANNOT_BE_BLANK_OR_NULL_ERROR = \"ClassList.description\" + CANNOT_BE_BLANK_OR_NULL_ERROR;\n public final static String CLASS_LIST_DESCRIPTION_SIZE_ERROR = \"ClassList.description\" + MAX_DESCRIPTION_SIZE;\n\n @NotEmpty(message = CLASS_LIST_DESCRIPTION_CANNOT_BE_BLANK_OR_NULL_ERROR)\n @Size(max = MAX_DESCRIPTION_SIZE, message = CLASS_LIST_DESCRIPTION_SIZE_ERROR)\n @IdObjectFieldSettings(label = \"Description\", width = 40, alignment = IdObjectFieldSettings.DisplayAlignment.LEFT, fieldType = IdObjectFieldSettings.DisplayFieldType.TEXT)\n String getDescription();\n\n void setDescription(final String description);\n\n}", "@Override\n\tprotected void setValueOnUi() {\n\n\t}", "@Override\n\tpublic String visitValue(ValueContext ctx) {\n\t \n\t\t\n\t return ctx.getChild(0).getText();\n\t\t\n\t\t\n\t}" ]
[ "0.5551524", "0.5551524", "0.5551524", "0.5551524", "0.5405068", "0.53038245", "0.5302689", "0.5244912", "0.5242104", "0.5230103", "0.51808333", "0.5176872", "0.51755065", "0.51559037", "0.5120409", "0.5106182", "0.50814056", "0.507024", "0.50665647", "0.5035386", "0.5021473", "0.50196743", "0.50189734", "0.49925303", "0.49914908", "0.49799085", "0.4961042", "0.49539375", "0.49503112", "0.49404228", "0.49354842", "0.4935271", "0.49327993", "0.49317232", "0.49214977", "0.49159795", "0.48981217", "0.48960847", "0.48960847", "0.489046", "0.48848355", "0.48835424", "0.48828557", "0.4881631", "0.48699766", "0.4868226", "0.486504", "0.4853939", "0.48482785", "0.48466218", "0.4845923", "0.48452073", "0.48396373", "0.48340848", "0.48303854", "0.48292872", "0.4823563", "0.4819923", "0.4819923", "0.4819923", "0.4816297", "0.4816297", "0.4816297", "0.4812893", "0.4805957", "0.47912142", "0.4788258", "0.47875017", "0.47803253", "0.4778858", "0.47774372", "0.47758624", "0.47747833", "0.47719252", "0.47704557", "0.47701865", "0.47682723", "0.47652397", "0.47591326", "0.47585213", "0.4758048", "0.47553697", "0.47536656", "0.4752815", "0.4746743", "0.47429985", "0.4738188", "0.47374323", "0.47369266", "0.47357067", "0.47323224", "0.47310516", "0.47303954", "0.47302192", "0.47220635", "0.4721762", "0.4721762", "0.4721708", "0.47216544", "0.4720426", "0.47201666" ]
0.0
-1
Terraced: with specific test context and state. .id : propertyterraced .value : Terraced .title : .class : Html.LABEL .classIndex : 1
protected GuiTestObject terraced(TestObject anchor, long flags) { return new GuiTestObject( getMappedTestObject("terraced"), anchor, flags); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected GuiTestObject title() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"title\"));\n\t}", "@Test\n public void testPseudoVariable() {\n String html = source.toHTML(new SEclipseStyle(), new SPseudoVariable());\n assertEquals(html, \"<pre style='color:#000000\"\n + \";background:#ffffff;'>\"\n + \"public class MainClass {\\n\"\n + \" \\n\"\n + \" public static void main(String args[]){\\n\"\n + \" GradeBook myGradeBook=new GradeBook();\\n\"\n + \" String courseName=\\\"Java \\\";\\n\"\n + \" myGradeBook.displayMessage(courseName);\\n\"\n + \" \\n\"\n + \" }\\n\"\n + \" }public class Foo {\\n\"\n + \" \\n\"\n + \" public boolean bar(){\\n\"\n + \" <span style='color:#7f0055;\"\n + \" font-weight:bold; '>\"\n + \"super</span>.foo();\\n\"\n + \" return false;\\n\"\n + \" \\n\"\n + \" }\\n\"\n + \" }</pre>\");\n }", "@Test\n @TestLog(title = \"Test3\", id = \"444\")\n public void test3() {\n }", "@Test\n public void test105() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = (Label)errorPage0.strong((Object) errorPage0);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(label0._isGeneratedId());\n }", "interface WithTitle {\n /**\n * Specifies the title property: The title of the lab..\n *\n * @param title The title of the lab.\n * @return the next definition stage.\n */\n WithCreate withTitle(String title);\n }", "@Test\n public void test100() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Block block0 = (Block)errorPage0.li();\n Label label0 = (Label)errorPage0.label((Object) null);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(label0._isGeneratedId());\n }", "interface WithTitle {\n /**\n * Specifies the title property: The title of the lab..\n *\n * @param title The title of the lab.\n * @return the next definition stage.\n */\n Update withTitle(String title);\n }", "@Test(timeout = 4000)\n public void test334() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = new Label(errorPage0, errorPage0);\n Component component0 = errorPage0.legend((Object) label0);\n assertTrue(component0._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "@Test(timeout = 4000)\n public void test219() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = new Label(errorPage0, errorPage0);\n label0.map(\"org.mvel.conversion.LongCH$1\");\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(label0._isGeneratedId());\n }", "@Test(timeout = 4000)\n public void test233() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.label();\n Component component1 = component0.code();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component1._isGeneratedId());\n }", "void updatedProperty(TestResult tr, String name, String value);", "@Test\n void setName() {\n assertEquals(\"Process\", new Process() {{\n setName(\"Process\");\n }}.getName());\n }", "private void generateTestExecution(ITestResult result) throws IOException{\r\n\t\t//create the html file with current running class and test name\r\n\t\tfout = createRequiredFile(result.getName());\r\n\t\t\r\n\t\t//Write initial html codes neccessary for report\r\n\t\tstartHtmlPage(fout,result);\r\n\t\t\r\n\t\t//get all the attributes set during the test execution\r\n\t\tObject[] array = result.getAttributeNames().toArray();\r\n\t\t\r\n\t\t//Above got values are not in sort. So, Sorting that based on time\r\n\t\tArrays.sort(array);\r\n\t\t\r\n\t\t//Iterating the array value to generate report\r\n \tfor(Object name : array){\r\n \t\t\t\r\n \t\t\t//Each and every array value contains, All the info about the particular action\r\n \t\t\t//And Values combined using deliminator. So, split using deliminator\r\n\t \t\tString temp[] = result.getAttribute((String) name).toString().split(\"####\");\r\n\t \t\t\r\n\t \t\t//After split up, If the third array value contains 'Fail' means that step failed \r\n\t \t\tif(temp[3].toLowerCase().contains(\"fail\")){\r\n\t \t\t\t//If Fail create '<tr>' tag with 'status_failed' class(Which is used for create 'red' background color for failed cases)\r\n\t \t\t\tfout.println(\"<tr class=\\\"status_failed\\\" title=\\\"\\\" alt=\\\"\\\">\");\r\n\t \t\t\t\r\n\t \t\t\t//create the screenshot path\r\n\t \t\t\tString pathToScreenshot = \"../Failure_Screenshot/\"+temp[5]+\".jpg\";\r\n\t \t\t\t\r\n\t \t\t\t//creating mapping for failed step(Link to screen shot and embed the screenshot in that step)\r\n\t \t\t\ttemp[4] = \"<a href=\\'\" + pathToScreenshot + \"\\'> <img src=\\'\" + pathToScreenshot + \"\\' height=\\\"100\\\" width=\\\"100\\\"> </a>\";\r\n\r\n\t \t\t}\r\n\t \t\t\r\n\t \t\t//After split up, If the third array value contains 'title' means that is title\r\n\t \t\telse if(temp[3].toLowerCase().contains(\"title\")){\r\n\t \t\t\t//So, If it is a title then create '<tr>' tag with class name 'title'\r\n\t \t\t\tfout.println(\"<tr class=\\\"title\\\" title=\\\"\\\" alt=\\\"\\\">\");\r\n\t \t\t\tfout.println(\"<td colspan=\\\"6\\\">\"+ temp[0] + \"</td>\");\r\n\t \t\t\tfout.println(\"</tr>\");\r\n\t \t\t\tcontinue;\r\n\t \t\t}\r\n\t \t\t\r\n\t \t\t//Else status is passed\r\n\t \t\telse{\r\n\t \t\t\tfout.println(\"<tr class=\\\"status_passed\\\" title=\\\"\\\" alt=\\\"\\\">\");\r\n\t \t\t}\r\n\t \t\t\r\n\t \t\t//this will create separate '<td>' for messages inside the action\r\n\t \t\tfor(String temp1 : temp){\r\n\t \t\t\t\tfout.println(\"<td>\"+ temp1 + \"</td>\");\r\n\r\n\t \t\t}\r\n\t \t//end up '<tr>' tag\t\r\n\t \tfout.println(\"</tr>\");\r\n \t}\r\n \t\r\n \t//this used for write some end up html tags\r\n \tonFinish();\r\n \t\r\n\t}", "@Test\n void getName() {\n assertEquals(\"Process\", new Process() {{\n setName(\"Process\");\n }}.getName());\n }", "@Test(timeout = 4000)\n public void test261() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.style();\n assertTrue(component0._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "@Test\n public void testClassName() {\n// assertEquals(SParser.parse(\"HardDisk\").toHTML(new SEclipseStyle(), new SClassName()),\"<pre style='color:#000000;background:#ffffff;'></pre>\"); //ClassName\n// assertEquals(\"{\",\"\"); //CurlyBracket\n// assertEquals(\"class\",\"\");//KeyWord\n// assertEquals(\"String\",\"\");//MainClass\n// assertEquals(\"String string\",\"\");//MainClass\n// assertEquals(\"public\",\"\");//Modifier\n// assertEquals(\"this\",\"\"); //PseudoVariable\n// assertEquals(\";\",\"\"); //Semicolon\n// assertEquals(\"\\\"string\\\"\",\"\"); //String\n// assertEquals(\"\",\"\"); //Body Alone\n\n// String html = source.toHTML(new SEclipseStyle(), new SClassName());\n// assertEquals(html, \"<pre style=\"\n// + \"'color:#000000;background:#ffffff;'>\"\n// + \"public class MainClass {\\n\"\n// + \" \\n\"\n// + \" public static void main(String args[]){\\n\"\n// + \" GradeBook myGradeBook=new GradeBook();\\n\"\n// + \" String courseName=\\\"Java \\\";\\n\"\n// + \" myGradeBook.displayMessage(courseName);\\n\"\n// + \" \\n\"\n// + \" }\\n\"\n// + \" }public class Foo {\\n\"\n// + \" \\n\"\n// + \" public boolean bar(){\\n\"\n// + \" super.foo();\\n\"\n// + \" return false;\\n\"\n// + \" \\n\"\n// + \" }\\n\"\n// + \" }</pre>\");\n }", "@Test\n public void idTest() {\n // TODO: test id\n }", "@Test\n public void idTest() {\n // TODO: test id\n }", "@Test\n @Named(\"accessing values\")\n @Order(1)\n public void _accessingValues() throws Exception {\n StringConcatenation _builder = new StringConcatenation();\n _builder.append(\"package bootstrap\");\n _builder.newLine();\n _builder.newLine();\n _builder.append(\"describe \\\"Example Tables\\\"{\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"def myExamples{\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"| input | result | \");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"| \\\"Hello World\\\" | \\\"HELLO WORLD\\\" | \");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"| \\\"Hallo Welt\\\" | \\\"HALLO WELT\\\" |\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"} \");\n _builder.newLine();\n _builder.append(\" \");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"fact \\\"can be accessed via the table name\\\"{\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"myExamples.forEach[ \");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"input.toUpperCase should be result\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"] \");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"}\");\n _builder.newLine();\n _builder.append(\"}\");\n _builder.newLine();\n this._behaviorExecutor.executesSuccessfully(_builder);\n }", "@Test(timeout = 4000)\n public void test366() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Byte byte0 = new Byte((byte)1);\n Label label0 = new Label(errorPage0, byte0);\n Component component0 = label0.samp();\n assertTrue(component0._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "@Test(timeout = 4000)\n public void test221() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n MockDate mockDate0 = new MockDate((-800), (-800), (-707), 75, 43);\n Label label0 = new Label(errorPage0, mockDate0);\n Component component0 = label0.b();\n component0._getVisibleForm(false);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component0._isGeneratedId());\n }", "@Test\n public void test121() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = (Label)errorPage0.em((Object) errorPage0);\n assertTrue(label0._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "@Test(timeout = 4000)\n public void test277() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n errorPage0.strike();\n Component component0 = errorPage0.legend();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component0._isGeneratedId());\n }", "@Test\n public void test120() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n ErrorPage errorPage1 = (ErrorPage)errorPage0.clasS((CharSequence) \"\");\n assertEquals(\"wheel_ErrorPage\", errorPage1.getComponentId());\n }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n DynamicSelectModel dynamicSelectModel0 = new DynamicSelectModel();\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = new Label(errorPage0, dynamicSelectModel0);\n dynamicSelectModel0.setComponent(label0);\n Component component0 = dynamicSelectModel0.getComponent();\n assertEquals(\"Label_1\", component0.getComponentId());\n }", "@Test\n public void testSetTreeItemPropertyValueFactory() {\n writeBanner(getMethodName());\n }", "@Test\n public void getLabel() {\n cleanEntity0();\n\n ReflectionTestUtils.setField(entity0, \"label\", labelS);\n assertEquals(entity0.getLabel(), labelS);\n }", "private EstimatingTechnique(int value, String name, String literal) {\r\n\t\tthis.value = value;\r\n\t\tthis.name = name;\r\n\t\tthis.literal = literal;\r\n\t}", "@Test(timeout = 4000)\n public void test311() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n ActionExpression actionExpression0 = new ActionExpression(\"? fOYd~2\");\n Component component0 = errorPage0.tt((Object) actionExpression0);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component0._isGeneratedId());\n }", "@Test\n public void test091() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n LabeledWord labeledWord0 = new LabeledWord(\"\");\n Label label0 = (Label)errorPage0.s((Object) labeledWord0);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(label0._isGeneratedId());\n }", "@Test\n\t@TestProperties(name = \"Set element ${by}:${locator} text to '${text}'\", paramsInclude = { \"by\", \"locator\", \"text\" })\n\tpublic void setElementText() {\n\t\tthrow new IllegalStateException(\"Unimplemenetd\");\n\t}", "protected GuiTestObject terraced() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"terraced\"));\n\t}", "@Test\n public void test094() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Hidden hidden0 = new Hidden(errorPage0, \"\", \"\");\n Image image0 = new Image(hidden0, \"\", \"\");\n Label label0 = (Label)errorPage0.ins((Object) image0);\n Block block0 = (Block)errorPage0.h3();\n Label label1 = (Label)errorPage0.u((Object) errorPage0);\n assertTrue(label1._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "@Test\r\n public void ActionableTrainingTest() {\n WebElement title1 = driver.findElement(By.cssSelector(\"h3.uagb-ifb-title\"));\r\n \r\n //Assertion for title of the first info box\r\n Assert.assertEquals(title1.getText(), \"Actionable Training\");\r\n \r\n //Print heading of the first info box\r\n Reporter.log(\"Heading is: \" + title1.getText(), true);\r\n }", "@Test(timeout = 4000)\n public void test232() throws Throwable {\n Form form0 = new Form(\"ms)\");\n form0.renderHint(\"z:_i>EAQ.Bdq@CL&k?\\\"\");\n Form form1 = form0.renderHint(\"z:_i>EAQ.Bdq@CL&k?\\\"\");\n assertEquals(\"ms)\", form1.getComponentId());\n }", "public TestID(int testID, String testType, String testState)\n {\n this.m_testID = testID;\n this.m_testType = testType;\n this.m_testState = testState;\n this.m_testStatus = \"\";\n\n }", "@DISPID(-2147417085)\n @PropGet\n java.lang.String innerText();", "protected GuiTestObject html_main() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"html_main\"));\n\t}", "@DisplayName(\"Load context\")\n\t@Test\n\tvoid testContext() {\n\t\tLOGGER.info(\"Context loaded successfully\");\n\t\tAssertions.assertTrue(true);\n\t}", "@Test\r\n public void testSetId_getId() {\r\n System.out.println(\"getId\");\r\n ConfigNode configNode = new ConfigNode(testLine);\r\n configNode.setId(\"id1\");\r\n assertEquals(\"id1\", configNode.getId());\r\n }", "@Test(timeout = 4000)\n public void test365() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.kbd((Object) errorPage0);\n assertTrue(component0._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "@Test// Execute 5 \n\t public void googleTitleTest() {\n\t\t System.out.println(\"google Title test\");\n\t }", "public void setTitleID(String val){\n\t\ttid = val;\n\t}", "@Test(timeout = 4000)\n public void test217() throws Throwable {\n Hidden hidden0 = new Hidden((Component) null, \".*,r%\", \"Col component ca be added only to a TableBlock.\");\n Checkbox checkbox0 = new Checkbox(hidden0, \"Col component ca be added only to a TableBlock.\", \"Col component ca be added only to a TableBlock.\");\n Checkbox checkbox1 = (Checkbox)checkbox0.addInternalRenderHint(\"z%+/0u:g&ib%-bQ:\");\n assertEquals(\"Col component ca be added only to a TableBlock.\", checkbox1.getFormElementName());\n }", "@Test\n public void titleTest() {\n // TODO: test title\n }", "@Test(timeout = 4000)\n public void test240() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.noscript();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component0._isGeneratedId());\n }", "@Test\npublic void tc__VerifyTooltip_EnviromentValue() throws Exception\n{\n EN.BeginTest( TestName );\n\n // Testscript in Schlüsselwort-Notation\n EN.SelectWindow( \"Rechner\" );\n\n // Soll/Ist-Vergleich: Ist das Richtige Fenster gesetzt?\n // Check the Name, Called Method and Value of Actuel object\n assertEquals( \"NO VALUE\", myClipBoard.getValue().get( 0 ) );\n assertEquals( 1, myClipBoard.getValue().size() );\n assertEquals( \"Rechner\", myClipBoard.getObjectName() );\n assertEquals( \"SelectWindow()\", myClipBoard.getMethod() );\n\n EN.SetValue( \"All_MethodsObj\", \"${TCN}\" );\n // Umgebungsvariable eingeben\n EN.VerifyTooltip( \"All_MethodsObj\", \"${TCN}\" );\n\n // Check the Name, Called Method and Value of Actuel object\n assertEquals( TestName, myClipBoard.getValue().get( 0 ) );\n assertEquals( 1, myClipBoard.getValue().size() );\n\n assertEquals( \"Rechner.All_MethodsObj\", myClipBoard.getObjectName() );\n assertEquals( \"VerifyTooltip()\", myClipBoard.getMethod() );\n}", "@Test(timeout = 4000)\n public void test222() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Block block0 = (Block)errorPage0.label();\n assertTrue(block0._isGeneratedId());\n \n block0.id(\"sajp\");\n assertFalse(block0._isGeneratedId());\n }", "@Test(timeout = 4000)\n public void test006() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n MockDate mockDate0 = new MockDate((-800), (-800), (-707), 75, 43);\n Label label0 = new Label(errorPage0, mockDate0);\n Component component0 = label0.b();\n Submit submit0 = new Submit(component0, \"The list of names must not be null\", \"\\f\");\n Component component1 = label0.strike((Object) submit0);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component1._isGeneratedId());\n }", "@Test(timeout = 4000)\n public void test032() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.acronym((Object) \"src\");\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component0._isGeneratedId());\n }", "@DISPID(-2147417110)\n @PropGet\n java.lang.String id();", "@Test(timeout = 4000)\n public void test185() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.label();\n component0._wrapComponentId(\"d1^!A21Y[^*?\");\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component0._isGeneratedId());\n }", "@Test(timeout = 4000)\n public void test197() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Checkbox checkbox0 = new Checkbox(errorPage0, \"kiDz=CI9_ri)~odKM\", \"]1\");\n checkbox0.renderHint(\"]1\");\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "@Override\n\tpublic String visitValue(ValueContext ctx) {\n\t \n\t\t\n\t return ctx.getChild(0).getText();\n\t\t\n\t\t\n\t}", "@Test(timeout = 4000)\n public void test230() throws Throwable {\n Form form0 = new Form(\"println\");\n String[] stringArray0 = new String[0];\n Component component0 = form0.attributes(stringArray0);\n assertEquals(\"println\", component0.getComponentId());\n }", "public static LabelTarget label(Class type) { throw Extensions.todo(); }", "private void getTestDetails() {\n Task<String> testNameTask = new Task<String>() {\n @Override\n protected String call() throws Exception {\n String sql = \"select TestName from LabTests where TestId = \" + testId;\n ResultSet resultSet = DBUtil.executeQuery(sql);\n try {\n if (resultSet != null && resultSet.next()) {\n return resultSet.getString(\"TestName\");\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return null;\n }\n };\n testNameTask.setOnSucceeded(event -> {\n test.setText(testNameTask.getValue());\n });\n new Thread(testNameTask).start();\n }", "@Test\n public void withAttribute_Matching() {\n assertEquals(1, onPage.withAttribute(\"lang\", MatchType.EQUALS, \"en-US\").size());\n assertEquals(3, onPage.get(\"div.article div\").withAttribute(\"class\", MatchType.EQUALS, \"content\").size());\n assertEquals(0, onPage.get(\"div.article div\").withAttribute(\"class\", MatchType.EQUALS, \" content\").size());\n }", "@Test\n public void testKeyWord() {\n String html = source.toHTML(new SEclipseStyle(), new SKeyWord());\n assertEquals(html, \"<pre style='color:#000000;background\"\n + \":#ffffff;'>\"\n + \"public <span style='color:#7f0055; font-weight:bold;\"\n + \" '>class</span> MainClass {\\n\"\n + \" \\n\"\n + \" public <span style='color:#7f0055; \"\n + \"font-weight:bold; '>static</span> <span style='color:#7f0055;\"\n + \" font-weight:bold; '>void</span> main(String args[]){\\n\"\n + \" GradeBook myGradeBook=<span style='color:#7f0055;\"\n + \" font-weight:bold; '>new</span> GradeBook();\\n\"\n + \" String courseName=\\\"Java \\\";\\n\"\n + \" myGradeBook.displayMessage(courseName);\\n\"\n + \" \\n\"\n + \" }\\n\"\n + \" }public <span style='color:#7f0055; font-weight:bold; \"\n + \"'>class</span> Foo {\\n\"\n + \" \\n\"\n + \" public <span style='color:#7f0055; font-weight:bold;\"\n + \" '>boolean</span> bar(){\\n\"\n + \" <span style='color:#7f0055; font-weight:\"\n + \"bold; '>\"\n + \"super</span>.foo();\\n\"\n + \" <span style='color:#7f0055; font-\"\n + \"weight:bold; '>\"\n + \"return</span> <span style='color:\"\n + \"#7f0055; font-weight:bold;\"\n + \" '>false</span>;\\n\"\n + \" \\n\"\n + \" }\\n\"\n + \" }</pre>\");\n }", "@Test(timeout = 4000)\n public void test223() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.table();\n Component component1 = component0.ins();\n ActionExpression actionExpression0 = new ActionExpression(\"java.lang.String@0000000005\");\n Form form0 = new Form(component1, \"? fOYd~2\", actionExpression0);\n form0.id(\"org.mvel.conversion.BooleanCH$2\");\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertEquals(\"Table_1\", component0.getComponentId());\n }", "protected GuiTestObject title(TestObject anchor, long flags) \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"title\"), anchor, flags);\n\t}", "@Test\n public void test066() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = (Label)errorPage0.tt((Object) \"\");\n }", "@Test\n public void getID() {\n\n }", "public ScText newIdText()\n {\n return newIdText(\"Id\");\n }", "public ScText newIdText()\n {\n return newIdText(\"Id\");\n }", "public ScText newIdText()\n {\n return newIdText(\"Id\");\n }", "public ScText newIdText()\n {\n return newIdText(\"Id\");\n }", "private JDefinedClass addClassVariablesForTestCaseClass (JCodeModel codeModel, JDefinedClass testCaseClass, String testExecutionEngine) {\n\t\tJClass testCaseClassReference = codeModel.ref(\"com.hcl.atf.taf.TestCase\");\r\n\t\tJClass testStepClassReference = codeModel.ref(\"com.hcl.atf.taf.TestStep\");\r\n\t\tJClass consoleWriterReference = codeModel.directClass(\"com.hcl.atf.taf.ConsoleWriter\");\r\n\t\tJClass mainClassReference = codeModel.directClass(\"com.hcl.atf.taf.Main\");\r\n\t\tJClass evidenceCaptureReference = null;\r\n\t\tif (testExecutionEngine.equals(TAFConstants.TESTENGINE_SELENIUM)) {\r\n\t\t\tevidenceCaptureReference = codeModel.directClass(\"com.hcl.atf.taf.seleniumUtilities.EvidenceCapture\");\r\n\t\t\tJClass ByReference = codeModel.directClass(\"org.openqa.selenium.By\");\r\n\t\t\tJClass InternetExplorerDriverReference = codeModel.directClass(\"org.openqa.selenium.ie.InternetExplorerDriver\");\r\n\t\t\tJClass FirefoxDriverReference = codeModel.directClass(\"org.openqa.selenium.firefox.FirefoxDriver\");\r\n\t\t} else if (testExecutionEngine.equals(TAFConstants.TESTENGINE_SEETEST)) {\r\n\t\t\tevidenceCaptureReference = codeModel.directClass(\"com.hcl.atf.taf.seeTestUtilities.EvidenceCapture\");\r\n\t\t} \t\r\n\t\t\r\n\t\tJFieldVar testCaseField = testCaseClass.field(JMod.PUBLIC, testCaseClassReference, \"testCase\");\r\n\t\tJFieldVar testStepField = testCaseClass.field(JMod.PUBLIC, testStepClassReference, \"testStep\");\r\n\t\tJFieldVar consoleWriterField = testCaseClass.field(JMod.PUBLIC, consoleWriterReference, \"taf\");\r\n\t\r\n\t\t// 2.c Test execution API references\r\n\t\tif (testExecutionEngine.equals(TAFConstants.TESTENGINE_SEETEST)) {\r\n\t\r\n\t\t\tJClass seeTestClientReference = codeModel.ref(\"com.experitest.client.Client\");\r\n\t\t\tJFieldVar seeTestClient = testCaseClass.field(JMod.PUBLIC, seeTestClientReference, \"client\");\r\n\t\t\tJFieldVar evidenceCaptureVar = testCaseClass.field(JMod.PUBLIC, evidenceCaptureReference, \"evidenceCapture\");\r\n\t\t} else if (testExecutionEngine.equals(TAFConstants.TESTENGINE_SELENIUM)) {\r\n\t\r\n\t\t\tJClass WebDriverReference = codeModel.ref(\"org.openqa.selenium.WebDriver\");\r\n\t\t\tJClass WebElementReference = codeModel.ref(\"org.openqa.selenium.WebElement\");\r\n\t\t\tJClass ActionsReference = codeModel.ref(\"org.openqa.selenium.interactions.Actions\");\r\n\t\t\tJFieldVar driver = testCaseClass.field(JMod.PUBLIC, WebDriverReference, \"driver\");\r\n\t\t\tJFieldVar element = testCaseClass.field(JMod.PUBLIC, WebElementReference, \"element\");\r\n\t\t\tJFieldVar actor = testCaseClass.field(JMod.PUBLIC, ActionsReference, \"actor\");\r\n\t\t\tJFieldVar webURL = testCaseClass.field(JMod.PUBLIC, codeModel.ref(java.lang.String.class), \"webURL\");\r\n\t\t\tJFieldVar evidenceCaptureVar = testCaseClass.field(JMod.PUBLIC, evidenceCaptureReference, \"evidenceCapture\");\r\n\t\t}\r\n\t\t// 2.d Add standard reference variables\r\n\t\tJFieldVar result = testCaseClass.field(JMod.PUBLIC, codeModel.BOOLEAN, \"status\");\r\n\t\tJFieldVar observedOutput = testCaseClass.field(JMod.PUBLIC, codeModel.ref(java.lang.String.class), \"observedOutput\");\r\n\t\tJFieldVar executionRemarks = testCaseClass.field(JMod.PUBLIC, codeModel.ref(java.lang.String.class), \"executionRemarks\");\r\n\t\tJFieldVar failureRemarks = testCaseClass.field(JMod.PUBLIC, codeModel.ref(java.lang.String.class), \"failureRemarks\");\r\n\t\tJFieldVar screenShotPath = testCaseClass.field(JMod.PUBLIC, codeModel.ref(java.lang.String.class), \"screenShotPath\");\r\n\t\tJFieldVar screenShotLabel = testCaseClass.field(JMod.PUBLIC, codeModel.ref(java.lang.String.class), \"screenShotLabel\");\r\n\t\tJFieldVar devicePlatform = testCaseClass.field(JMod.PUBLIC, codeModel.ref(java.lang.String.class), \"devicePlatform\");\r\n\t\tJFieldVar runListId = testCaseClass.field(JMod.PUBLIC, codeModel.ref(java.lang.String.class), \"runListId\");\r\n\t\tJFieldVar testScriptQualifiedName = testCaseClass.field(JMod.PUBLIC, codeModel.ref(java.lang.String.class), \"testScriptQualifiedName\");\r\n\t\ttestScriptQualifiedName.assign(JExpr.lit(\"\"));\r\n\t\tJFieldVar testScriptFileName = testCaseClass.field(JMod.PUBLIC, codeModel.ref(java.lang.String.class), \"testScriptFileName\");\r\n\t\ttestScriptFileName.assign(JExpr.lit(\"\"));\r\n\t\tJFieldVar testPriority = testCaseClass.field(JMod.PUBLIC, codeModel.ref(java.lang.String.class), \"testPriority\");\r\n\t\ttestPriority.assign(JExpr.lit(\"\"));\r\n\t\treturn testCaseClass;\r\n\t}", "public void testGetSetTitle() {\n exp = new Experiment(\"10\");\n exp.setTitle(\"test\");\n assertEquals(\"test/set title does not work\", \"test\", exp.getTitle());\n }", "@Test\n\tpublic void getIdTest() {\n\t}", "@Test\r\n public void passConText() {\r\n onView(withId(R.id.edPassConReg)).perform(typeText(\"hey\"));\r\n }", "@Test\n public void titlesTest() {\n // TODO: test titles\n }", "public Builder setTitle(int title) {\r\n this.title = (String) context.getText(title);\r\n return this;\r\n }", "@Test(timeout = 4000)\n public void test350() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.ins((Object) \"sajp\");\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component0._isGeneratedId());\n }", "public void onStart(ITestContext context) {\n\t\tSystem.out.println(context.getName()+\"**********All Test Started.............This is result.getName\");\r\n\t\t\r\n\t}", "public void testGetId(){\n exp = new Experiment(\"10\");\n assertEquals(\"getId does not work\", \"10\", exp.getId());\n }", "@Test\n public void test133() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = (Label)errorPage0.dd((Object) errorPage0);\n assertTrue(label0._isGeneratedId());\n \n List<Component> list0 = errorPage0._getChildren();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertEquals(1, list0.size());\n }", "@Test(timeout = 4000)\n public void test033() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.acronym();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component0._isGeneratedId());\n }", "@Test(timeout = 4000)\n public void test009() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Byte byte0 = new Byte((byte)1);\n Label label0 = new Label(errorPage0, byte0);\n Checkbox checkbox0 = new Checkbox(label0, \"\", \"\");\n Component component0 = checkbox0.renderHint(\"\");\n assertTrue(component0._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "public void testGetId_Accuracy() {\r\n int id = 1;\r\n UnitTestHelper.setPrivateField(AuditDetail.class, auditDetail, \"id\", new Integer(id));\r\n assertEquals(\"The id value should be got properly.\", id, auditDetail.getId());\r\n }", "@Test\n public void test144() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n CategoryWordTagFactory categoryWordTagFactory0 = new CategoryWordTagFactory();\n CategoryWordTag categoryWordTag0 = (CategoryWordTag)categoryWordTagFactory0.newLabel(\"\", 4152);\n LabeledWord labeledWord0 = new LabeledWord((edu.stanford.nlp.ling.Label) categoryWordTag0, (edu.stanford.nlp.ling.Label) categoryWordTag0);\n Label label0 = (Label)errorPage0.li((Object) labeledWord0);\n assertTrue(label0._isGeneratedId());\n \n Checkbox checkbox0 = new Checkbox(errorPage0, \"\", \"SvTt\");\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertEquals(\"SvTt\", checkbox0.getComponentId());\n }", "@Test\n\tpublic void test_getTitle() {\n\tTvShow t1 = new TvShow(\"Sherlock\",\"BBC\");\n\tassertEquals(\"Sherlock\",t1.getTitle());\n }", "@Test\n public void test1() {\n FirefoxBinary binary =\n new FirefoxBinary(new File(FIREFOX_PATH));\n driver = TestBench.createDriver(\n new FirefoxDriver(binary, new FirefoxProfile()));\n setDriver(driver);\n getDriver().get(URL);\n ButtonElement button = $(ButtonElement.class).first();\n button.click();\n LabelElement label = $(LabelElement.class).id(\"result\");\n\n Assert.assertEquals(\"Thanks , it works!\",label.getText());\n driver.quit();\n }", "public void test_getId() {\n assertEquals(\"'id' value should be properly retrieved.\", id, instance.getId());\n }", "@Test\n public void test085() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Checkbox checkbox0 = new Checkbox(errorPage0, \">}\\\"_\", \">}\\\"_\");\n String[] stringArray0 = new String[6];\n Checkbox checkbox1 = (Checkbox)checkbox0.attributes(stringArray0);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertFalse(checkbox1._isGeneratedId());\n }", "@Test\n public void test125() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Any any0 = (Any)errorPage0.iframe();\n Block block0 = (Block)errorPage0.p();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(block0._isGeneratedId());\n }", "public String getTitle()\n {\n return \"Test XY Data\";\n }", "@Test(timeout = 4000)\n public void test011() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n errorPage0.placeholder(\"h4\");\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "@Test(timeout = 4000)\n public void test021() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n errorPage0.entity(\"java.lang.String@0000000004\");\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "@Test(priority=1)\r\n\tpublic void getTitle() {\r\n\t\tString title=driver.getTitle();\r\n\t\tSystem.out.println(( title).toUpperCase());\r\n\t}", "@Test(timeout = 4000)\n public void test356() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.h3();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component0._isGeneratedId());\n }", "public static LabelTarget label(Class type, String name) { throw Extensions.todo(); }", "public abstract void render(Context context, C value, SafeHtmlBuilder sb, String id);", "Text getT();", "private void setSWTTestIDs() {\n\t\t\n\t\tString label = \"General Settings\";\n\t\t\n\t\t//set keys for SWTBot testing\n\t\tresultFilepathField.setData(\"org.eclipse.swtbot.widget.key\", label+\".resultFilepathField\");\n\t\tdelimiterCombo.setData(\"org.eclipse.swtbot.widget.key\", label+\".delimiterCombo\");\n\t\tsortResultCheckbox.setData(\"org.eclipse.swtbot.widget.key\", label+\".sortResultCheckbox\");\n\t\tmakeUniqueCheckbox.setData(\"org.eclipse.swtbot.widget.key\", label+\".makeUniqueCheckbox\");\n\t\ttopLevelCheckbox.setData(\"org.eclipse.swtbot.widget.key\", label+\".topLevelCheckbox\");\n\t\tolderColumnCombo.getCombo().setData(\"org.eclipse.swtbot.widget.key\", label+\".olderColumnCombo\");\n\t\tyoungerColumnCombo.getCombo().setData(\"org.eclipse.swtbot.widget.key\", label+\".youngerColumnCombo\");\n\t\ttopLevelField.setData(\"org.eclipse.swtbot.widget.key\", label+\".topLevelField\");\n\t}", "public Builder setTitle(int title) {\n this.title = (String) context.getText(title);\n return this;\n }", "public Builder setTitle(int title) {\n this.title = (String) context.getText(title);\n return this;\n }", "@Test\n public void test001() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = (Label)errorPage0.pre((Object) errorPage0);\n }", "public void setClassLabel(String key, String label);", "@Override\n\t\t\tpublic String getText(Object element) {\n\t\t\t\treturn \"test5\";\n\t\t\t}", "@Test\n public void testRun_Complex_Execution() {\n // TODO: TBD - Exactly as done in Javascript\n }" ]
[ "0.54400706", "0.53551495", "0.5201393", "0.5189997", "0.5121246", "0.5030812", "0.5016768", "0.49884403", "0.49699536", "0.491999", "0.4918369", "0.4916364", "0.4905643", "0.49005508", "0.49002767", "0.48888534", "0.4867079", "0.4867079", "0.4864886", "0.48559475", "0.48503572", "0.48449615", "0.48404193", "0.48400828", "0.48389056", "0.48376372", "0.48191318", "0.4812591", "0.48099667", "0.48016945", "0.47964793", "0.4789547", "0.47877058", "0.47679082", "0.47492018", "0.47464287", "0.47436154", "0.4731736", "0.47286204", "0.47237322", "0.47221544", "0.47202697", "0.47194737", "0.47163567", "0.47162518", "0.47108957", "0.4710592", "0.46975416", "0.4687836", "0.46783176", "0.46739203", "0.46731552", "0.4660814", "0.46604675", "0.46557474", "0.4653114", "0.46494672", "0.46459684", "0.46424636", "0.46399185", "0.46387628", "0.4627023", "0.46170506", "0.46128097", "0.46128097", "0.46128097", "0.46128097", "0.46118528", "0.46086824", "0.46059936", "0.4603423", "0.46019608", "0.46005377", "0.46000096", "0.45912945", "0.45880175", "0.45877844", "0.4580355", "0.457976", "0.4573513", "0.45734492", "0.45717344", "0.4571709", "0.45691332", "0.4568217", "0.45681953", "0.4565276", "0.4562595", "0.45609134", "0.45584714", "0.4549881", "0.45489016", "0.45454806", "0.45399946", "0.4539051", "0.45388174", "0.45388174", "0.45385724", "0.4530601", "0.4528787", "0.4525934" ]
0.0
-1
headerInner: with default state. .id : headerInner .title : .class : Html.DIV .classIndex : 0
protected GuiTestObject title() { return new GuiTestObject( getMappedTestObject("title")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public WebElement headerDiv() {\r\n return driver.findElement(By.id(\"header\"));\r\n }", "public JLabel buildDefaultHeader(){\n JLabel returnHeader = new JLabel();\n returnHeader.setHorizontalAlignment(SwingConstants.LEFT);\n returnHeader.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 48)); // Great font, makes it pop\n returnHeader.setForeground(Color.WHITE);\n returnHeader.setBackground(Color.BLACK);\n \n return returnHeader;\n }", "public Header(DOMelement element){\n\t\tsuper(tag(Header.class),element);\n\t}", "private void buildHeader(Layout parent) {\n\n }", "private void validatedHeader() {\n\t\tif(loginView != null){\n\t\t\tLabel greeting = new Label(T.get(\"LABEL_TOP_BAR_GREETING\") + T.get(\"LABEL_GUEST_USER\"));\n\t\t\tLanguageSelector languageSelector = new LanguageSelector(loginView);\n\t\t\tThemeSelector themeSelector = new ThemeSelector();\n\t\t\tbuildHeader(greeting ,null, languageSelector, themeSelector);\n\t\t}\n\t\telse if(registerView != null){\n\t\t\tLabel greeting = new Label(T.get(\"LABEL_TOP_BAR_GREETING\") + T.get(\"LABEL_GUEST_USER\"));\n\t\t\tLanguageSelector languageSelector = new LanguageSelector(registerView);\n\t\t\tThemeSelector themeSelector = new ThemeSelector();\n\t\t\tbuildHeader(greeting ,null, languageSelector, themeSelector);\n\t\t}\n\t\telse if(mainView != null){\n\t\t\tString username = UI.getCurrent().getSession().getAttribute(T.system(\"SESSION_NAME\")).toString();\n\t\t\tLabel greeting = new Label(T.get(\"LABEL_TOP_BAR_GREETING\") + username);\n\t\t\tLanguageSelector languageSelector = new LanguageSelector(mainView);\n\t\t\tThemeSelector themeSelector = new ThemeSelector();\n\t\t\tLogoutButton logout = new LogoutButton();\n\t\t\tbuildHeader(greeting ,logout, languageSelector, themeSelector);\n\t\t}\n\t\tsetStyleName(T.system(\"STYLE_VIEW_TOP_BAR\"));\n\t}", "public void buildClassHeader() {\n\t\tString key;\n\t\tif (isInterface) {\n\t\t\tkey = \"doclet.Interface\";\n\t\t} else if (isEnum) {\n\t\t\tkey = \"doclet.Enum\";\n\t\t} else {\n\t\t\tkey = \"doclet.Class\";\n\t\t}\n\n\t\twriter.writeHeader(configuration.getText(key) + \" \" + classDoc.name());\n\t}", "private HorizontalLayout getHeader() {\n HorizontalLayout header = new HorizontalLayout();\n header.setWidth(\"100%\");\n header.setHeight(\"100px\");\n // TODO move this into a separate HeaderView class\n header.addComponent(new Label(\"Patient Management System Team Green\"));\n return header;\n }", "public Header() {\n\t\tsuper(tag(Header.class)); \n\t}", "@Override\n public ElementHeader getElementHeader()\n {\n return elementHeader;\n }", "private org.gwtbootstrap3.client.ui.PanelHeader get_f_PanelHeader76() {\n return build_f_PanelHeader76();\n }", "PageHeader getPageHeader();", "PageHeader getPageHeader();", "private static UINode _createGlobalHeaders()\n {\n MarlinBean globalHeaders = new MarlinBean(FLOW_LAYOUT_NAME);\n\n //\n // add the client header\n //\n globalHeaders.addIndexedChild(\n ContextPoppingUINode.getUINode(NAVIGATION2_CHILD));\n\n //\n // create and add the default header\n //\n MarlinBean defaultHeader = new MarlinBean(GLOBAL_HEADER_NAME);\n\n defaultHeader.setAttributeValue(\n RENDERED_ATTR,\n new NotBoundValue(\n PdaHtmlLafUtils.createIsRenderedBoundValue(NAVIGATION2_CHILD)));\n\n globalHeaders.addIndexedChild(defaultHeader);\n\n return globalHeaders;\n }", "private org.gwtbootstrap3.client.ui.PanelHeader get_f_PanelHeader29() {\n return build_f_PanelHeader29();\n }", "private String collectHeading(Document doc) {\n String heading = doc.select(\"[class^=header1 style]\").first().text();\r\n\r\n return heading;\r\n }", "@Override\n public void addHeader(Div headerDiv)\n {\n getHeaders().add(headerDiv);\n headerDiv.addClass(JQLayoutCSSThemeBlockNames.UI_Layout_Header.toString());\n //getChildren().add(headers.size() - 1, headerDiv);\n }", "public Header(String headerCode, String id, String domClass, String Styles, String jsCallout) {\n\t\tsuper(tag(Header.class), headerCode, id, domClass, Styles, jsCallout); \n\t}", "Header createHeader();", "public StateHeader() { // for externalization\r\n }", "private void buildHeader(Label greeting, LogoutButton logout, LanguageSelector languageSelector, ThemeSelector themeSelector) {\n\n//\t\tAdd a style name for the greeting label\n\t\tgreeting.setStyleName(T.system(\"STYLE_LABEL_GREETING\"));\n\t\t\n//\t\tAdd components to the layout\n\t\taddComponent(greeting);\n\t\tif(logout != null){\n\t\t\taddComponent(logout);\n\t\t}\n\t\taddComponent(languageSelector);\n\t\taddComponent(themeSelector);\n\t\t\n\t\tsetIds(greeting, logout, languageSelector, themeSelector);\n\t}", "public void createHeader() {\n\t\tHBox box = new HBox();\n\t\tButton printBtn = new Button(\"Print\");\n\t\tprintBtn.getStyleClass().addAll(\"btn\", \"btn-primary\");\n\t\tButton printAllBtn = new Button(\"Print allemaal\");\n\t\tprintAllBtn.getStyleClass().addAll(\"btn\", \"btn-primary\");\n\t\tButton cancelBtn = new Button(\"Annuleer\");\n\t\tcancelBtn.getStyleClass().addAll(\"btn\", \"btn-danger\");\n\t\tbox.getChildren().addAll(createTitle(), printBtn, printAllBtn, cancelBtn);\n\t\t\n\t\tprintBtn.setOnAction(e -> {\n\t\t\ttry {\n\t\t\t\tprintController.printSelected(debiteuren);\n\t\t\t} catch (Exception e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t\tSystem.out.println(\"Nothing selected mate\");\n\t\t\t}\n\t\t});\n\t\t\n\t\tprintAllBtn.setOnAction(e -> {\n\t\t\ttry {\n\t\t\t\tprintController.printAll(debiteuren);\n\t\t\t} catch (Exception e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t\tSystem.out.println(\"Nothing selected mate\");\n\t\t\t}\n\t\t});\n\t\t\n\t\tcancelBtn.setOnAction(e -> {\n\t\t\tprintController.cancel();\n\t\t});\n\t\t\n\t\tsetTop(box);\n\t}", "private org.gwtbootstrap3.client.ui.PanelHeader get_f_PanelHeader39() {\n return build_f_PanelHeader39();\n }", "public HeaderFragment() {}", "public GridPane simulationHeader() {\r\n\t\t// Create Title\r\n\t\tHBox title = simulationTitle();\r\n\t\t\r\n\t\t// Create Slider Title\r\n\t\tHBox sliderTitle = simulationControlTitle();\r\n\t\t\r\n\t\t// Create Slider\r\n\t\tHBox slider = simulationControl();\r\n\t\t\r\n\t\t// Create Tick Counter\r\n\t\tHBox tickCount = simulationTicks();\r\n\t\t\r\n\t\t// Create Error Placeholder\r\n\t\tHBox errorMessage = errorMessage();\r\n\t\t\r\n\t\t// Setup Grid\r\n\t\tGridPane header = new GridPane();\r\n\t\theader.setMinSize(800, 200); \r\n\t\theader.setVgap(10); \r\n\t\theader.setHgap(10); \r\n\t\theader.setAlignment(Pos.CENTER); \r\n\t\t\r\n\t\t// Add Components To Grid\r\n\t\theader.add(title, 0, 0); \r\n\t\theader.add(sliderTitle, 0, 1);\r\n\t\theader.add(slider, 0, 2); \r\n\t\theader.add(tickCount, 0, 3); \r\n\t\theader.add(errorMessage, 0, 4);\r\n\t\t\r\n\t\treturn header;\r\n\t}", "private void setUpHeader() {\n header = new JPanel();\n header.setLayout(new BorderLayout());\n header.setBackground(Color.darkGray);\n highscoreTitle = new JLabel();\n highscoreTitle.setText(\"Highscores:\");\n highscoreTitle.setForeground(Color.white);\n highscoreTitle.setHorizontalAlignment(JLabel.CENTER);\n highscoreTitle.setFont(new Font(\"Arial Black\", Font.BOLD, 24));\n header.add(highscoreTitle, BorderLayout.CENTER);\n setUpSortingBtn();\n\n rootPanel.add(header, BorderLayout.NORTH);\n }", "private void createMainMenuHeaderComposite() {\n\n\t\tGridData gridData8 = new GridData();\n\t\tgridData8.grabExcessHorizontalSpace = true;\n\t\tgridData8.horizontalAlignment = GridData.FILL;\n\t\tgridData8.verticalAlignment = GridData.BEGINNING;\n\t\tgridData8.grabExcessVerticalSpace = true;\n\t\tGridData gridData7 = new GridData();\n\t\tgridData7.grabExcessHorizontalSpace = true;\n\t\tgridData7.horizontalAlignment = GridData.FILL;\n\t\tgridData7.verticalAlignment = GridData.END;\n\t\tgridData7.grabExcessVerticalSpace = true;\n\t\tGridData gridData21 = new GridData();\n\t\tgridData21.horizontalAlignment = GridData.FILL;\n\t\tgridData21.grabExcessHorizontalSpace = true;\n\t\tgridData21.grabExcessVerticalSpace = false;\n\t\tgridData21.heightHint = 150;\n\t\tgridData21.verticalAlignment = GridData.BEGINNING;\n\t\tGridLayout gridLayout = new GridLayout();\n\t\tgridLayout.horizontalSpacing = 50;\n\t\tgridLayout.marginWidth = 20;\n\t\tgridLayout.marginHeight = 0;\n\t\tgridLayout.verticalSpacing = 35;\n\t\tmainMenuHeaderComposite = new Composite(this, SWT.NONE);\n\t\tmainMenuHeaderComposite.setBackground(new Color(Display.getCurrent(),\n\t\t\t\t255, 255, 255));\n\t\tmainMenuHeaderComposite.setLayoutData(gridData21);\n\t\tmainMenuHeaderComposite.setLayout(gridLayout);\n\n\t\tlblTitle1 = new CbctlLabel(mainMenuHeaderComposite, SWT.CENTER);\n\t\tlblTitle1\n\t\t\t\t.setText(LabelLoader\n\t\t\t\t\t\t.getLabelValue(LabelKeyConstants.WELCOME_NOTE_ON_TOUCH_SCREEN_HOMEPAGE));\n\t\tlblTitle1\n\t\t\t\t.setFont(SDSControlFactory.getStandardTouchScreenFont());\n\t\tlblTitle1.setLayoutData(gridData7);\n\n\t\tlblTitle2 = new CbctlLabel(mainMenuHeaderComposite, SWT.CENTER);\n\t\tlblTitle2\n\t\t\t\t.setText(LabelLoader\n\t\t\t\t\t\t.getLabelValue(LabelKeyConstants.SELECT_NOTE_ON_TOUCH_SCREEN_HOMEPAGE));\n\t\tlblTitle2\n\t\t\t\t.setFont(SDSControlFactory.getStandardTouchScreenFont());\n\t\tlblTitle2.setLayoutData(gridData8);\n\t}", "private org.gwtbootstrap3.client.ui.PanelHeader get_f_PanelHeader5() {\n return build_f_PanelHeader5();\n }", "public interface BaseHeaderOperator {\n View addLeftHeader(ViewGroup llLeftHeader);\n View addRightHeader(ViewGroup llRightHeader);\n void setDefaultLeftHeader();\n}", "public static void VerifyHeaderItem_CommonComponent_Div_H2(String renderingControl){\t\t\t\t\n\t\ttry{\n\t\t\tactualHeaderText=sitecoreObj.aboutusHeaderItemTitleRightTop.isDisplayed();\n\t\t\tAssert.assertEquals(actualHeaderText, true);\n\t\t\tlog.info(\"The Actual AboutUs \" + renderingControl + \" Title - <\"+sitecoreObj.aboutusHeaderItemTitleRightTop.getTagName()+\">\");\n\t\t\tlog.info(\"The Expected AboutUs \" + renderingControl + \" Title - <h1>\");\t\n\t\t\tlog.info(\"TEST PASSED: The Actual and Expected AboutUs \" + renderingControl + \" Title are Same\");\n\t\t}catch(AssertionError e){\n\t\t\tlog.error(\"The Actual AboutUs \" + renderingControl + \" Title - <\"+sitecoreObj.aboutusHeaderItemTitleRightTop.getTagName()+\">\");\n\t\t\tlog.error(\"The Expected AboutUs \" + renderingControl + \" Title - <h1>\");\t\t\t\t\t\t\n\t\t\tlog.error(\"TEST FAILED: The Actual and Expected AboutUs \" + renderingControl + \" Title are NOT same\");\n\t\t}catch(org.openqa.selenium.NoSuchElementException e){\n\t\t\tlog.error(\"TEST FAILED: There is No Title On \" + renderingControl + \" element\");\n\t\t}\n\t}", "private void updateHeader() {\n this.mViewHolder.imageView = findViewById(R.id.image_header);\n this.mViewHolder.textHeader = findViewById(R.id.text_nav_header);\n\n this.mViewHolder.textHeader.setText(_NAME);\n\n Glide.with(this).load(user.getPhotoUrl()).into(this.mViewHolder.imageView);\n\n }", "protected void updateHeader() {\n\t}", "protected String getDivClassName() {\n\t\treturn getDocPart().getName();\n\t}", "protected JTableHeader createDefaultTableHeader() {\r\n \treturn new JTableHeader(columnModel) {\r\n \t\t\r\n \t\tprivate static final long serialVersionUID = 1L;\r\n \t\t\r\n \t\tpublic String getToolTipText(MouseEvent e) {\r\n \t\t\tjava.awt.Point p = e.getPoint();\r\n \t\t\tint index = columnModel.getColumnIndexAtX(p.x);\r\n \t\t\tint realColumnIndex = convertColumnIndexToModel(index);\r\n \t\t\tif ((realColumnIndex >= 0) && (realColumnIndex < getModel().getColumnCount()))\r\n \t\t\t\treturn \"The column \" + getModel().getColumnName(realColumnIndex);\r\n \t\t\telse\r\n \t\t\t\treturn \"\";\r\n \t\t}\r\n \t};\r\n }", "private org.gwtbootstrap3.client.ui.PanelHeader get_f_PanelHeader49() {\n return build_f_PanelHeader49();\n }", "abstract public void header();", "public ContainerTag generateHeader(String title) {\n return TagCreator.main(attrs(\"#main.header\"), h1(title),\n h3(String.format(MESSAGE_TIME_GENERATED, formatter.format(Instant.now()))));\n }", "public void setHeader() {\n tvHeader.setText(getResources().getString(R.string.text_skill));\n tvDots.setVisibility(View.INVISIBLE);\n }", "public JComponent getHeaderComponent() {\r\n JPanel panel = new JPanel();\r\n panel.setBackground(Color.white);\r\n GridBagConstraints constraints = new GridBagConstraints();\r\n GridBagLayout gridbag = new GridBagLayout();\r\n panel.setLayout(gridbag);\r\n constraints.fill = GridBagConstraints.HORIZONTAL;\r\n buildConstraints(constraints, 0, 0, 1, 1, 100, 100);\r\n gridbag.setConstraints(header, constraints);\r\n panel.add(header);\r\n return panel;\r\n //return header;\r\n }", "private org.gwtbootstrap3.client.ui.PageHeader get_f_PageHeader3() {\n return build_f_PageHeader3();\n }", "private org.gwtbootstrap3.client.ui.PanelHeader get_f_PanelHeader17() {\n return build_f_PanelHeader17();\n }", "private HeaderUtil() {}", "@Override\n\tprotected String getHeaderTitle() {\n\t\treturn \"\";\n\t}", "private org.gwtbootstrap3.client.ui.NavbarHeader get_f_NavbarHeader5() {\n return build_f_NavbarHeader5();\n }", "public static final synchronized void colorUsingHeader (TreeDrawerNode root, HeaderInfo h, int ci) {\n\t\tcolorInd = ci;\n\t\theaderInfo =h;\n\t\tif (headerInfo == null) {\n\t // CyLogger.getLogger(TreeColorer.class).warn(\"TreeColorer: headers null\");\n\t\t\treturn;\n\t\t}\n\t\tif (colorInd < 0) {\n\t // CyLogger.getLogger(TreeColorer.class).warn(\"TreeColorer: colorInd < 0\");\n\t\t\treturn;\n\t\t}\n\t\tif (root == null) {\n\t // CyLogger.getLogger(TreeColorer.class).warn(\"TreeColorer: root null\");\n\t\t\treturn;\n\t\t}\n\t\trecursiveColorUsingHeader(root);\n\t}", "protected String getPageHeader()\n {\n if (this.pageHeader == null) {\n String title = (this.privateLabel != null)? this.privateLabel.getPageTitle() : \"\";\n StringBuffer sb = new StringBuffer();\n sb.append(\"<center>\");\n sb.append(\"<span style='font-size:14pt;'><b>\" + title + \"</b></span>\");\n sb.append(\"<hr>\");\n sb.append(\"</center>\");\n this.pageHeader = sb.toString();\n }\n return this.pageHeader;\n }", "public interface PullHeader extends IsWidget {\n\t\t/**\n\t\t * called when a scroll starts\n\t\t * \n\t\t * @param state\n\t\t * the current state of the pull panel\n\t\t */\n\t\tpublic void scrollStart(State state);\n\n\t\t/**\n\t\t * continously called when scrolling\n\t\t * \n\t\t * @param state\n\t\t * the state of the pull panel\n\t\t * @param positionY\n\t\t * the current scroll position\n\t\t */\n\t\tpublic void onScroll(State state, int positionY);\n\n\t\t/**\n\t\t * called when a scroll ends\n\t\t * \n\t\t * @param state\n\t\t * the current state of the pull panel\n\t\t * @param positionY\n\t\t * the end scroll position\n\t\t * @param duration\n\t\t * the duration to scroll took\n\t\t */\n\t\tvoid onScrollEnd(State state, int positionY, int duration);\n\n\t\t/**\n\t\t * get the height of the pullheader\n\t\t * \n\t\t * @return the height of the pull header\n\t\t */\n\t\tpublic int getHeight();\n\n\t\t/**\n\t\t * get the position in px that triggers a state change\n\t\t * \n\t\t * @return the position in px that triggers the state change\n\t\t */\n\t\tpublic int getStateSwitchPosition();\n\n\t\t/**\n\t\t * set the html of a pull header\n\t\t * \n\t\t * @param html\n\t\t * the html as String\n\t\t */\n\t\tpublic void setHTML(String html);\n\n\t}", "private static void outputHeaderMainPage(SimpleWriter out) {\n out.print(\"<html>\\n\" + \"<head>\\n\" + \"\\t<title>\" + \"Index\" + \"</title>\\n\"\n + \"<font size = '10' >\" + \"Glossary Homepage\" + \"</font>\"\n + \"</head>\\n\" + \"<body>\\n\" + \"<head>\\n\" + \"\\t<h1>\\n\"\n + \"<font size = '6' >\" + \"Index\" + \"</font>\" + \"\\t</h1>\\n\"\n + \"</head>\\n\" + \"</body>\\n\" + \"</html>\");\n }", "private void initializeAnimalHeader() {\r\n\t\t//initialize text\r\n\t\tTextProperties textProps = new TextProperties();\r\n\t\ttextProps.set(AnimationPropertiesKeys.FONT_PROPERTY, new Font(\"SansSerif\", Font.BOLD, 24));\r\n\t\ttextProps.set(AnimationPropertiesKeys.DEPTH_PROPERTY, 1);\r\n\t\tlang.newText(new Coordinates(20, 30), \"ShiftRows\", \"header\", null, textProps);\r\n\t\t//initialize rectangle\r\n\t\tRectProperties hRectProps = new RectProperties();\r\n\t\thRectProps.set(AnimationPropertiesKeys.DEPTH_PROPERTY, 2);\r\n\t\tlang.newRect(new Offset(-5, -5, \"header\", AnimalScript.DIRECTION_NW), new Offset(5, 5, \"header\", AnimalScript.DIRECTION_SE), \"hRect\", null, hRectProps);\r\n\t}", "public Header(String t) {\n this.title=t;\n }", "private ULCContainer getHeaderPane() {\n if (headerPane == null) {\n headerPane = RichDialogPanelFactory.create(TabHeaderBarPanel.class);\n headerPane.setName(\"headerPane\");\n }\n return headerPane;\n }", "public WebElement getSearchPageHeaderText()\n{\n\treturn driver.findElement(headertext);\n}", "public interface HeaderRenderer {\n\n\tpublic abstract Component getHeaderRenderer(HeaderPanel headerpanel, Object obj, boolean flag, boolean flag1);\n}", "private HTMLElement generateHeaderDiv(String divId, String headerType,\n \t\t\tString spanID, String spanClass, String spanContent, int indentLevel) {\n \t\t// create the text element: <P><SPAN>spanContent</SPAN></P>\n \t\tHTMLElement text = generateTextElement(headerType, spanID, spanClass,\n \t\t\t\tspanContent, indentLevel + 1);\n \t\t// create the containing div element\n \t\tHTMLElement div = generateDivElement(divId, indentLevel);\n \t\tdiv.addContent(text);\n \t\treturn div;\n \t}", "protected abstract ITitleAndSearchPanelFilter instantiateHeaderAndSearchFilter ( ) ;", "private RGridBagLayoutPane getTitlePane() {\n if (titlePane == null) {\n titlePane = new RGridBagLayoutPane();\n titlePane.setName(\"titlePane\");\n titlePane.setStyleProperties(\"{/fill \\\"HORIZONTAL\\\"/weightY \\\"0\\\"}\");\n titlePane.add(getHeaderPane(), new com.ulcjava.base.application.GridBagConstraints(0, 0, 1, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n }\n return titlePane;\n }", "H1 createH1();", "private void initialiseHeader()\n\t{\n\t ListHead head = null;\n\n\t head = super.getListHead();\n\n\t //init only once\n\t if (head != null)\n\t {\n\t \treturn;\n\t }\n\n\t head = new ListHead();\n\n\t // render list head\n\t if (this.getItemRenderer() instanceof WListItemRenderer)\n\t {\n\t \t((WListItemRenderer)this.getItemRenderer()).renderListHead(head);\n\t }\n\t else\n\t {\n\t \tthrow new ApplicationException(\"Rendering of the ListHead is unsupported for \"\n\t \t\t\t+ this.getItemRenderer().getClass().getSimpleName());\n\t }\n\n\t //attach the listhead\n\t head.setParent(this);\n\n\t return;\n\t}", "protected JTableHeader createDefaultTableHeader() {\n return new JTableHeader(columnModel) {\n public String getToolTipText(MouseEvent e) {\n java.awt.Point p = e.getPoint();\n int index = columnModel.getColumnIndexAtX(p.x);\n int realIndex = columnModel.getColumn(index).getModelIndex();\n return columnToolTips[realIndex];\n }\n };\n }", "public Header( String headerCode) {\n\t\tsuper(tag(Header.class), headerCode); \n\t}", "private void loadNavHeader() {\n // name, website\n txtName.setText(StoreData.LoadString(Constants.NAME,\"Anonymous\",getApplicationContext()));\n txtWebsite.setText(StoreData.LoadString(Constants.EMAIL,\"anonymous\",getApplicationContext()));\n urlProfileImg = StoreData.LoadString(Constants.IMGURL,\"\",getApplicationContext());\n // loading header background image\n Glide.with(this).load(urlNavHeaderBg)\n .crossFade()\n .diskCacheStrategy(DiskCacheStrategy.ALL)\n .into(imgNavHeaderBg);\n\n // Loading profile image\n Glide.with(this).load(urlProfileImg)\n .crossFade()\n .placeholder(R.drawable.anonymous_profile_pic)\n .error(R.drawable.anonymous_profile_pic)\n .thumbnail(0.5f)\n .bitmapTransform(new CircleTransform(this))\n .diskCacheStrategy(DiskCacheStrategy.ALL)\n .into(imgProfile);\n\n // showing dot next to notifications label\n navigationView.getMenu().getItem(3).setActionView(R.layout.menu_dot);\n }", "public ElementHeader getElementHeader()\n {\n return elementHeader;\n }", "public void visit(Header n){\r\n\t\tif(tempNode.notifyNode().equals(\"Header\")){\r\n\t\t\ttempNode = nodeList.get(sequence);\r\n\t\t\tArrayList<Token> tokenList = tempNode.getTokenList();\r\n\t\t\tString tmp =\"\";\r\n\t\t\tfor(int i=0;i<tempNode.getTokenListSize();i++){\r\n\t\t\t\tvisit(tokenList.get(i));\r\n\t\t\t}\r\n\r\n\t\t\tif(tokenList.size()<1)\r\n\t\t\ttmp = \"<h\"+tempNode.htype+\">\"+\"</h\"+tempNode.htype+\">\";\r\n\t\t\telse\r\n\t\t\ttmp = \"<h\"+tempNode.htype+\">\"+line+\"</h\"+tempNode.htype+\">\";\r\n\t\t\tline = tmp;\r\n\t\t}\r\n\t }", "private void loadNavHeader() {\n // name, website\n txtName.setText(\"Ashish Jain\");\n txtWebsite.setText(\"[email protected]\");\n\n navigationView.getMenu().getItem(3).setActionView(R.layout.menu_dot);\n }", "public abstract String header();", "public VerticalTableHeaderCellRenderer() {\n\t\tsetHorizontalAlignment(LEFT);\n\t\tsetHorizontalTextPosition(CENTER);\n\t\tsetVerticalAlignment(CENTER);\n\t\tsetVerticalTextPosition(TOP);\n\t\tsetUI(new VerticalLabelUI(false));\n\t}", "@SuppressWarnings(\"unchecked\")\n public TCS header() {\n alignment(CENTER);\n alignment(VERTICAL_CENTER);\n wrapText();\n defaultEdging();\n addFont().heightInPoints((short) 10).color(IndexedColors.BLACK)\n .boldweight(Boldweight.BOLD).configureFont();\n\n return (TCS) this;\n }", "private void loadNavHeader() {\n\t\t// name, Email\n\t\ttxtName.setText(\"Tester\");\n\t\ttxtEmail.setText(\"[email protected]\");\n\t}", "@Override\r\n\tpublic void loadHeader() {\n\r\n\t}", "@Override\n public void initPane(final MainView parent) {\n this.parent = parent;\n headerAnchorPane.getChildren().setAll(PaneFactory.initHeader());\n\n }", "public String getbyHeader(){\n String byHed=driver.findElement(byHeader).getText();\n return byHed;\n }", "private org.gwtbootstrap3.client.ui.Heading get_f_Heading6() {\n return build_f_Heading6();\n }", "protected void calculateHeaderIndices() {\n List<HeaderItem> items = headerCore.getHeaderItems();\n LongSparseArray<Integer> counts = headerCore.getHeaderChildCountMap();\n \n items.clear();\n counts.clear();\n HeaderItem currentItem = null;\n\n for (int i = 0; i < headerApi.getChildCount(); i++) {\n long id = headerApi.getHeaderId(i);\n if (id == RecyclerView.NO_ID) {\n continue;\n }\n\n //Updates the child count for the headerId\n Integer childCount = counts.get(id);\n childCount = (childCount == null) ? 1 : childCount +1;\n counts.put(id, childCount);\n\n //Adds new headers to the list when detected\n if (currentItem == null || currentItem.getId() != id) {\n int position = i + (headerCore.showHeaderAsChild ? 0 : items.size());\n currentItem = new HeaderItem(id, position);\n items.add(currentItem);\n }\n }\n }", "@Override\n protected JTableHeader createDefaultTableHeader()\n {\n return new JTableHeader(columnModel)\n {\n /**\n * Serial version UID variable for the inner class.\n */\n public static final long serialVersionUID = 111222333444555601L;\n\n @Override\n public String getToolTipText(MouseEvent e)\n {\n int index = columnModel.getColumnIndexAtX( e.getPoint().x );\n int realIndex = columnModel.getColumn(index).getModelIndex();\n return columnNames[realIndex];\n }\n };\n }", "public TempTableHeader getHeader1() { return header1; }", "private void setupUIElements() {\n setBadgeDrawable(ContextCompat.getDrawable(getActivity(), R.drawable.company_logo));\n //setTitle(getString(R.string.browse_title));\n\n setHeadersState(HEADERS_ENABLED);\n setHeadersTransitionOnBackEnabled(true);\n\n // Set headers and rows background color\n setBrandColor(ContextCompat.getColor(getActivity(), R.color.browse_headers_bar));\n mBackgroundManager.setColor(ContextCompat.getColor(getActivity(),\n R.color.browse_background_color));\n\n // Disables the scaling of rows when Headers bar is in open state.\n enableRowScaling(false);\n\n // Here is where a header presenter can be set to customize the look\n // of the headers list.\n setHeaderPresenterSelector(new PresenterSelector() {\n @Override\n public Presenter getPresenter(Object o) {\n\n return new RowHeaderPresenter();\n }\n });\n }", "public void updateHeader() {\n if (this.mBarState == 1) {\n updateHeaderKeyguardAlpha();\n }\n updateQsExpansion();\n }", "public static WebElement headerText(final WebDriver driver, final String headerNumber) {\n return driver.findElement(By.xpath(\"//*[@id=\\\"main-content\\\"]/div[2]/h2[\" + headerNumber + \"]\"));\n }", "@Test\n\tpublic void h1_header_test() {\n\t\tString text = \"# heading1\";\n\t\tassertEquals(\"<html><h1>heading1</h1></html>\", createHTML(text));\n\t}", "private static Text createHeader() {\n StringBuilder stringBuilder = new StringBuilder();\n //noinspection HardCodedStringLiteral\n stringBuilder.append(\"Offset \");\n for (int i = 0; i < 16; i++) {\n stringBuilder.append(\" 0\");\n stringBuilder.append(Integer.toHexString(i));\n }\n stringBuilder.append(System.lineSeparator()).append(System.lineSeparator());\n Text result = new Text(stringBuilder.toString());\n //noinspection HardCodedStringLiteral\n result.getStyleClass().add(\"normal\");\n return result;\n }", "private void addHeader(Section catPart) throws BadElementException, IOException{\r\n PdfPTable header = new PdfPTable(1);\r\n PdfPCell c = new PdfPCell(Image.getInstance(\"res/brandogredninglogo.png\"));\r\n c.setBackgroundColor(COLOR_BLUE);\r\n //c.setBorderColor(BaseColor.RED);\r\n header.setHeaderRows(0);\r\n header.addCell(c);\r\n header.setWidthPercentage(100.0f);\r\n \r\n catPart.add(header);\r\n }", "public static void VerifyCommonComponent_2DIVs_H1(String renderingControl){\t\t\t\t\n\t\ttry{\n\t\t\tactualHeaderText=sitecoreObj.aboutusCommonComponent_2Divs_H1.isDisplayed();\n\t\t\tAssert.assertEquals(actualHeaderText, true);\n\t\t\tlog.info(\"The Actual AboutUs \" + renderingControl + \" Title - <\"+sitecoreObj.aboutusCommonComponent_2Divs_H1.getTagName()+\">\");\n\t\t\tlog.info(\"The Expected AboutUs \" + renderingControl + \" Title - <h1>\");\t\n\t\t\tlog.info(\"TEST PASSED: The Actual and Expected AboutUs \" + renderingControl + \" Title are Same\");\n\t\t}catch(AssertionError e){\n\t\t\tlog.error(\"The Actual AboutUs \" + renderingControl + \" Title - <\"+sitecoreObj.aboutusCommonComponent_2Divs_H1.getTagName()+\">\");\n\t\t\tlog.error(\"The Expected AboutUs \" + renderingControl + \" Title - <h1>\");\t\t\t\t\t\t\n\t\t\tlog.error(\"TEST FAILED: The Actual and Expected AboutUs \" + renderingControl + \" Title are NOT same\");\n\t\t}catch(org.openqa.selenium.NoSuchElementException e){\n\t\t\tlog.error(\"TEST FAILED: There is No Title On \" + renderingControl + \" element\");\n\t\t}\n\t}", "private void insertHeader(StringBuilder sb) {\n String id = \"ID\";\n String name = \"Name\";\n String objects = \"Objects collected\";\n sb.append(id);\n insertSpacing(sb, id);\n sb.append(name);\n insertSpacing(sb, name);\n sb.append(objects);\n insertSpacing(sb, objects);\n sb.append(NEWLINE);\n sb.append(\"---------------------------------------------------------------\");\n sb.append(NEWLINE);\n }", "ComponentHeaderType getHeader();", "private org.gwtbootstrap3.client.ui.Heading get_f_Heading77() {\n return build_f_Heading77();\n }", "private HeaderViewClickListener manageHeaderClick() {\n return new HeaderViewClickListener() {\n @Override\n public void onClickOfHeaderLeftView() {\n AppUtils.showLog(TAG, \"onClickOfHeaderLeftView\");\n mActivity.onBackPressed();\n }\n\n @Override\n public void onClickOfHeaderRightView() {\n Toast.makeText(mActivity, \"Coming Soon\", Toast.LENGTH_SHORT).show();\n }\n };\n }", "public Class<?> header() {\n return header;\n }", "CommunityProfileEventHeader()\n {\n /*\n * Nothing to do.\n */\n }", "public Head() {\r\n\t\tLog.debug(\"new Head\");\r\n\t\tsetStyleName(\"resHead\");\r\n\t\tsetWidth(WIDTH);\r\n\t\tsetAutoHeight();\r\n\t\tsetPadding(0);\r\n\r\n\t\ttitleRow = new HLayout();\r\n\t\ttitle = new Label();\r\n\t\tbreadcrumbs = new Breadcrumbs();\r\n\r\n\t\ttitleRow.setHeight(TITLE_HEIGHT);\r\n\t\ttitleRow.setWidth(WIDTH);\r\n\t\ttitle.setAutoFit(true);\r\n\t\ttitle.setWrap(false);\r\n\t\ttitle.setStyleName(\"resHeadTitle\");\r\n\t\ttitleRow.addMember(title);\r\n\r\n\t\taddMember(titleRow);\r\n\t\taddMember(breadcrumbs);\r\n\r\n\t}", "Rule Header() {\n // Push 1 HeaderNode onto the value stack\n return Sequence(\n FirstOf(\n Include(),\n CppInclude(),\n Namespace()),\n actions.pushHeaderNode());\n }", "private static String header() {\r\n String output = \"\";\r\n output += \"\\\\documentclass[a4paper,10pt]{article}\\n\";\r\n output += \"\\\\title{Wilcoxon Signed Ranks test.}\\n\";\r\n output += \"\\\\date{\\\\today}\\n\\\\author{KEEL non-parametric statistical module}\\n\\\\begin{document}\\n\\n\\\\pagestyle{empty}\\n\\\\maketitle\\n\\\\thispagestyle{empty}\\n\\n\";\r\n\r\n return output;\r\n\r\n }", "private PageId getHeaderPage(RelationInfo relInfo) {\n\t\treturn new PageId(0, relInfo.getFileIdx());\n\t}", "private void initRowHeaders() {\n TableColumn aColumn = jTable1.getColumnModel().getColumn(0);\n TableCellRenderer aRenderer = jTable1.getTableHeader().getDefaultRenderer();\n if (aRenderer == null) {\n System.out.println(\" Aouch !\");\n aColumn = jTable1.getColumnModel().getColumn(0);\n aRenderer = aColumn.getHeaderRenderer();\n if (aRenderer == null) {\n System.out.println(\" Aouch Aouch !\");\n // System.exit(3);\n exitForm(null);\n }\n }\n Component aComponent = aRenderer.getTableCellRendererComponent(jTable1, aColumn.getHeaderValue(), false, false, -1, 0);\n aFont = aComponent.getFont();\n aBackground = aComponent.getBackground();\n aForeground = aComponent.getForeground();\n\n border = (Border) UIManager.getDefaults().get(\"TableHeader.cellBorder\");\n insets = border.getBorderInsets(jTable1.getTableHeader());\n metrics = jTable1.getFontMetrics(aFont);\n }", "public TableRow build_header(){\n int padding_in_dp = 25;\n final float scale = getResources().getDisplayMetrics().density;\n int padd_bottom = (int) (padding_in_dp * scale + 0.5f);\n\n TableRow header = new TableRow(getContext());\n\n TextView item = new TextView(getContext());\n TextView quantity = new TextView(getContext());\n TextView price = new TextView(getContext());\n\n //picks the right colors depending on theme\n if(sharedPref.loadNightMode()){\n item.setTextColor(Color.parseColor(\"#EEEEEE\"));\n quantity.setTextColor(Color.parseColor(\"#EEEEEE\"));\n price.setTextColor(Color.parseColor(\"#EEEEEE\"));\n }\n else{\n item.setTextColor(Color.parseColor(\"#252525\"));\n quantity.setTextColor(Color.parseColor(\"#252525\"));\n price.setTextColor(Color.parseColor(\"#252525\"));\n }\n\n item.setText(\"Item\");\n item.setTextSize(16);\n item.setLayoutParams(new TableRow.LayoutParams(0, TableRow.LayoutParams.WRAP_CONTENT, 6));\n\n quantity.setText(\"Quantity\");\n quantity.setTextSize(14);\n quantity.setLayoutParams(new TableRow.LayoutParams(0, TableRow.LayoutParams.WRAP_CONTENT, 3));\n\n price.setText(\"Price\");\n price.setTextSize(16);\n price.setLayoutParams(new TableRow.LayoutParams(0, TableRow.LayoutParams.WRAP_CONTENT, 3));\n\n header.addView(item);\n header.addView(quantity);\n header.addView(price);\n\n header.setPadding(0,0,0, padd_bottom);\n return header;\n\n }", "public String getHeader() {\n\t\tString item_text = getQuantityString(getCount());\n\t\tString header = getActivity().getString(R.string.browse_items_text, item_text, getCount());\n\t\treturn header;\n\t}", "@Override\n public void sectionTitle()\n {\n }", "private ConfigurationHTMLPrinter doTagTitle(final String tag) {\n println(\"<tr>\").incrementIndent();\n print(\"<td class='header_cell tag_cell' colspan='5'><h3>\").print0(convertTag(tag)).print0ln(\"</h3></td>\");\n decrementIndent().println(\"</tr>\");\n return doHeaderRow();\n }", "protected void BuildHtmlHeader(PrintWriter out, String title) throws IOException\n {\n out.println(\"<HTML>\");\n out.println(\"<head>\");\n out.println(\"<link rel=\\\"stylesheet\\\" href=\\\"/css/nny.css\\\" type=\\\"text/css\\\">\");\n out.println(\"<TITLE>\");\n out.println(title);\n out.println(\"</TITLE>\");\n out.println(\"<SCRIPT LANGUAGE=\\\"JavaScript\\\" SRC=\\\"/javascript/data_validation.js\\\"></SCRIPT>\");\n out.println(\"</head>\");\n /*\n if (navbarTemplate != null)\n {\n if (header_tp == null)\n {\n header_tp = new TemplateProcessor(template_path_ + navbarTemplate);\n }\n out.println(header_tp.process().toString());\n }*/\n out.flush();\n }", "public DataSetHeader(){\r\n \t//this.elementStr = SerializationHelper.nullSerialization;\r\n }", "@Override\n public void addHeader(HeaderText headerDivString)\n {\n Div headerDiv = new Div();\n headerDiv.add(headerDivString);\n addHeader(headerDiv);\n }", "public void createHeader() throws DocumentException\n {\n createHeader(100f, Element.ALIGN_LEFT);\n }", "public void configurePinnedHeader(View header, int position, int alpha) {\n\t\t PinnedHeaderCache cache = (PinnedHeaderCache) header.getTag();\n\t\n\t\t if (cache == null) {\n\t\t cache = new PinnedHeaderCache();\n\t\t cache.titleView = (TextView) header.findViewById(R.id.header_text);\n\t\t cache.textColor = cache.titleView.getTextColors();\n\t\t cache.background = header.getBackground();\n\t\t header.setTag(cache);\n\t\t }\n\t\t\n\t\t int section = getSectionForPosition(position);\n\t\t \n\t\t if (section != -1) {\n\t\t\t String title = (String) mIndexer.getSections()[section];\n\t\t\t cache.titleView.setText(title);\n\t\t\t\n\t\t\t if (alpha == 255) {\n\t\t\t // Opaque: use the default background, and the original text color\n\t\t\t header.setBackgroundDrawable(cache.background);\n\t\t\t cache.titleView.setTextColor(cache.textColor);\n\t\t\t } else {\n\t\t\t // Faded: use a solid color approximation of the background, and\n\t\t\t // a translucent text color\n\t\t\t \tfinal int diffAlpha = 255 - alpha;\n\t\t\t \tfinal int red = Color.red(mPinnedHeaderBackgroundColor);\n\t\t\t \tfinal int diffRed = 255 - red;\n\t\t\t \tfinal int green = Color.green(mPinnedHeaderBackgroundColor);\n\t\t\t \tfinal int diffGreen = 255 - green;\n\t\t\t \tfinal int blue = Color.blue(mPinnedHeaderBackgroundColor);\n\t\t\t \tfinal int diffBlue = 255 - blue;\n\t\t\t header.setBackgroundColor(Color.rgb(\n\t\t\t \t\tred + (diffRed * diffAlpha / 255),\n\t\t\t \t\tgreen + (diffGreen * diffAlpha / 255),\n\t\t\t \t\tblue + (diffBlue * diffAlpha / 255)));\n\t\t\t\n\t\t\t int textColor = cache.textColor.getDefaultColor();\n\t\t\t cache.titleView.setTextColor(Color.argb(alpha,\n\t\t\t Color.red(textColor), Color.green(textColor), Color.blue(textColor)));\n\t\t\t }\n\t\t }\n\t\t}" ]
[ "0.61462224", "0.6030846", "0.58432174", "0.5782986", "0.57781005", "0.56199497", "0.5618682", "0.56140214", "0.55605924", "0.55593395", "0.5548985", "0.5548985", "0.5540845", "0.55054355", "0.54610765", "0.5443712", "0.54370207", "0.5423361", "0.54225373", "0.5399338", "0.53520644", "0.53379977", "0.53318566", "0.53308177", "0.5323856", "0.5306009", "0.52900946", "0.52887934", "0.52829146", "0.52676743", "0.52281266", "0.5224199", "0.5208655", "0.51996076", "0.51893556", "0.5181922", "0.51803786", "0.5170856", "0.51666874", "0.5166439", "0.51642156", "0.5161058", "0.5159693", "0.5148375", "0.51405764", "0.51205766", "0.5114874", "0.510713", "0.5103505", "0.51032573", "0.5087872", "0.5071935", "0.5070173", "0.5065602", "0.5061168", "0.50595987", "0.5055244", "0.5051358", "0.5046549", "0.5040041", "0.5037441", "0.5030447", "0.5025306", "0.5018659", "0.5007459", "0.4999063", "0.49967232", "0.4996061", "0.49869788", "0.49727777", "0.49696773", "0.4954956", "0.49536404", "0.495156", "0.4948643", "0.49336344", "0.4928554", "0.491929", "0.49174464", "0.49173293", "0.49019948", "0.48963848", "0.48925292", "0.48873535", "0.48868763", "0.4884811", "0.4874769", "0.4872592", "0.48694375", "0.4868067", "0.48617983", "0.48575655", "0.4849014", "0.48475075", "0.48453963", "0.4836771", "0.4831564", "0.4831392", "0.48262918", "0.48261186", "0.48220304" ]
0.0
-1
headerInner: with specific test context and state. .id : headerInner .title : .class : Html.DIV .classIndex : 0
protected GuiTestObject title(TestObject anchor, long flags) { return new GuiTestObject( getMappedTestObject("title"), anchor, flags); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void VerifyHeaderItem_CommonComponent_Div_H2(String renderingControl){\t\t\t\t\n\t\ttry{\n\t\t\tactualHeaderText=sitecoreObj.aboutusHeaderItemTitleRightTop.isDisplayed();\n\t\t\tAssert.assertEquals(actualHeaderText, true);\n\t\t\tlog.info(\"The Actual AboutUs \" + renderingControl + \" Title - <\"+sitecoreObj.aboutusHeaderItemTitleRightTop.getTagName()+\">\");\n\t\t\tlog.info(\"The Expected AboutUs \" + renderingControl + \" Title - <h1>\");\t\n\t\t\tlog.info(\"TEST PASSED: The Actual and Expected AboutUs \" + renderingControl + \" Title are Same\");\n\t\t}catch(AssertionError e){\n\t\t\tlog.error(\"The Actual AboutUs \" + renderingControl + \" Title - <\"+sitecoreObj.aboutusHeaderItemTitleRightTop.getTagName()+\">\");\n\t\t\tlog.error(\"The Expected AboutUs \" + renderingControl + \" Title - <h1>\");\t\t\t\t\t\t\n\t\t\tlog.error(\"TEST FAILED: The Actual and Expected AboutUs \" + renderingControl + \" Title are NOT same\");\n\t\t}catch(org.openqa.selenium.NoSuchElementException e){\n\t\t\tlog.error(\"TEST FAILED: There is No Title On \" + renderingControl + \" element\");\n\t\t}\n\t}", "public WebElement headerDiv() {\r\n return driver.findElement(By.id(\"header\"));\r\n }", "public static void VerifyHeaderItem_CommonComponent_Div_Div2_H2(String renderingControl){\n\t\ttry{\n\t\t\tactualTitleImg=sitecoreObj.aboutusCommonComponent_Div_Div2_H2.isDisplayed();\n\t\t\tAssert.assertEquals(actualTitleImg, true);\n\t\t\tlog.info(\"The Actual AboutUs \" + renderingControl + \" Title - <\"+sitecoreObj.aboutusCommonComponent_Div_Div2_H2.getTagName()+\">\");\n\t\t\tlog.info(\"The Expected AboutUs \" + renderingControl + \" Title - <h1>\");\n\t\t\tlog.info(\"TEST PASSED: The Actual and Expected AboutUs \" + renderingControl + \" Title are Same\");\n\t\t}catch(AssertionError e){\n\t\t\tlog.error(\"The Actual AboutUs \" + renderingControl + \" Title - \"+sitecoreObj.aboutusCommonComponent_Div_Div2_H2.getTagName());\n\t\t\tlog.error(\"The Expected AboutUs \" + renderingControl + \" Title - <h1>\");\n\t\t\tlog.error(\"TEST FAILED: The Actual and Expected AboutUs \" + renderingControl + \" Title are NOT same\");\n\t\t}catch(org.openqa.selenium.NoSuchElementException e){\n\t\t\tlog.error(\"TEST FAILED: There is No Title On \" + renderingControl + \" element\");\n\t\t}\t\t\t\t\n\t}", "public static void VerifyCommonComponent_2DIVs_H1(String renderingControl){\t\t\t\t\n\t\ttry{\n\t\t\tactualHeaderText=sitecoreObj.aboutusCommonComponent_2Divs_H1.isDisplayed();\n\t\t\tAssert.assertEquals(actualHeaderText, true);\n\t\t\tlog.info(\"The Actual AboutUs \" + renderingControl + \" Title - <\"+sitecoreObj.aboutusCommonComponent_2Divs_H1.getTagName()+\">\");\n\t\t\tlog.info(\"The Expected AboutUs \" + renderingControl + \" Title - <h1>\");\t\n\t\t\tlog.info(\"TEST PASSED: The Actual and Expected AboutUs \" + renderingControl + \" Title are Same\");\n\t\t}catch(AssertionError e){\n\t\t\tlog.error(\"The Actual AboutUs \" + renderingControl + \" Title - <\"+sitecoreObj.aboutusCommonComponent_2Divs_H1.getTagName()+\">\");\n\t\t\tlog.error(\"The Expected AboutUs \" + renderingControl + \" Title - <h1>\");\t\t\t\t\t\t\n\t\t\tlog.error(\"TEST FAILED: The Actual and Expected AboutUs \" + renderingControl + \" Title are NOT same\");\n\t\t}catch(org.openqa.selenium.NoSuchElementException e){\n\t\t\tlog.error(\"TEST FAILED: There is No Title On \" + renderingControl + \" element\");\n\t\t}\n\t}", "@Test\r\n public void ActionableTrainingTest() {\n WebElement title1 = driver.findElement(By.cssSelector(\"h3.uagb-ifb-title\"));\r\n \r\n //Assertion for title of the first info box\r\n Assert.assertEquals(title1.getText(), \"Actionable Training\");\r\n \r\n //Print heading of the first info box\r\n Reporter.log(\"Heading is: \" + title1.getText(), true);\r\n }", "@Test\n void testHeaderWithErasure() {\n driver.get(\"https://training360.github.io/swd-java-2021-11-15/\");\n\n var header = driver.findElement(By.tagName(\"h1\"));\n var text = header.getText();\n assertEquals(\"Welcome in Selenium Training!\", text);\n }", "@Test\n\tpublic void h1_header_test() {\n\t\tString text = \"# heading1\";\n\t\tassertEquals(\"<html><h1>heading1</h1></html>\", createHTML(text));\n\t}", "@Test\n\tvoid withHeaderItemsWithWicketHeadNoDuplicates()\n\t{\n\t\ttester.startPage(SubPageWithHeaderItemsAndWicketHead.class);\n\t\tString responseAsString = tester.getLastResponseAsString();\n\n\t\t{\n\t\t\tint idxMetaPanelWicketHead = responseAsString\n\t\t\t\t.indexOf(\"meta name=\\\"panel-wicket-head\\\"\");\n\t\t\tint lastIdxMetaPanelWicketHead = responseAsString\n\t\t\t\t.lastIndexOf(\"meta name=\\\"panel-wicket-head\\\"\");\n\t\t\tassertEquals(idxMetaPanelWicketHead, lastIdxMetaPanelWicketHead);\n\t\t}\n\n\t\t{\n\t\t\tint idxWicketAjaxJs = responseAsString.indexOf(\"wicket-ajax-jquery.js\");\n\t\t\tint lastIdxWicketAjaxJs = responseAsString.lastIndexOf(\"wicket-ajax-jquery.js\");\n\t\t\tassertEquals(idxWicketAjaxJs, lastIdxWicketAjaxJs);\n\t\t}\n\n\t\t{\n\t\t\tint idxTitleElement = responseAsString\n\t\t\t\t.indexOf(\"<title>Apache Wicket Quickstart</title>\");\n\t\t\tint lastIdxTitleElement = responseAsString\n\t\t\t\t.lastIndexOf(\"<title>Apache Wicket Quickstart</title>\");\n\t\t\tassertEquals(idxTitleElement, lastIdxTitleElement);\n\t\t}\n\n\t\t{\n\t\t\tint idxMetaFromBasePage = responseAsString\n\t\t\t\t.indexOf(\"<meta name='fromBasePage' content='1'\");\n\t\t\tint lastIdxMetaFromBasePage = responseAsString\n\t\t\t\t.lastIndexOf(\"<meta name='fromBasePage' content='1'\");\n\t\t\tassertEquals(idxMetaFromBasePage, lastIdxMetaFromBasePage);\n\t\t}\n\n\t\t{\n\t\t\tint idxMetaFromSubPage = responseAsString\n\t\t\t\t.indexOf(\"<meta name=\\\"SubPageWithHeaderItemsAndWicketHead\\\"\");\n\t\t\tint lastIdxMetaFromSubPage = responseAsString\n\t\t\t\t.lastIndexOf(\"<meta name=\\\"SubPageWithHeaderItemsAndWicketHead\\\"\");\n\t\t\tassertEquals(idxMetaFromSubPage, lastIdxMetaFromSubPage);\n\t\t}\n\t}", "public WebElement getSearchPageHeaderText()\n{\n\treturn driver.findElement(headertext);\n}", "@Test\n\tvoid pageWithTwoHeaderItems()\n\t{\n\t\tassertThrows(MarkupException.class, () -> {\n\t\t\ttester.startPage(PageWithTwoHeaderItems.class);\n\t\t});\n\t}", "private void buildHeader(Layout parent) {\n\n }", "@Test\n\tvoid pageWithHeaderItemsOutOfHead()\n\t{\n\t\tassertThrows(MarkupException.class, () -> {\n\t\t\ttester.startPage(PageWithHeaderItemsOutOfHead.class);\n\t\t});\n\t}", "public static WebElement headerText(final WebDriver driver, final String headerNumber) {\n return driver.findElement(By.xpath(\"//*[@id=\\\"main-content\\\"]/div[2]/h2[\" + headerNumber + \"]\"));\n }", "PageHeader getPageHeader();", "PageHeader getPageHeader();", "@Test\n public void checkHeaderElement() {\n\t boolean marqueeElement = driver.findElement(By.cssSelector(\"div.c.c-nav\")).isDisplayed();\n\t \tAssert.assertTrue(marqueeElement, \"Is Not Present, this is not expected\");\n\t}", "private void validatedHeader() {\n\t\tif(loginView != null){\n\t\t\tLabel greeting = new Label(T.get(\"LABEL_TOP_BAR_GREETING\") + T.get(\"LABEL_GUEST_USER\"));\n\t\t\tLanguageSelector languageSelector = new LanguageSelector(loginView);\n\t\t\tThemeSelector themeSelector = new ThemeSelector();\n\t\t\tbuildHeader(greeting ,null, languageSelector, themeSelector);\n\t\t}\n\t\telse if(registerView != null){\n\t\t\tLabel greeting = new Label(T.get(\"LABEL_TOP_BAR_GREETING\") + T.get(\"LABEL_GUEST_USER\"));\n\t\t\tLanguageSelector languageSelector = new LanguageSelector(registerView);\n\t\t\tThemeSelector themeSelector = new ThemeSelector();\n\t\t\tbuildHeader(greeting ,null, languageSelector, themeSelector);\n\t\t}\n\t\telse if(mainView != null){\n\t\t\tString username = UI.getCurrent().getSession().getAttribute(T.system(\"SESSION_NAME\")).toString();\n\t\t\tLabel greeting = new Label(T.get(\"LABEL_TOP_BAR_GREETING\") + username);\n\t\t\tLanguageSelector languageSelector = new LanguageSelector(mainView);\n\t\t\tThemeSelector themeSelector = new ThemeSelector();\n\t\t\tLogoutButton logout = new LogoutButton();\n\t\t\tbuildHeader(greeting ,logout, languageSelector, themeSelector);\n\t\t}\n\t\tsetStyleName(T.system(\"STYLE_VIEW_TOP_BAR\"));\n\t}", "@Test\n\tpublic void h2_header_test() {\n\t\tString text = \"## heading2\";\n\t\tassertEquals(\"<html><h2>heading2</h2></html>\", createHTML(text));\n\t}", "public void testGetView_Header() {\n mView = mAdapter.getView(0, null, null);\n }", "public static void VerifyCommonComponent_Div_H2(String renderingControl){\n\t\ttry{\n\t\t\tactualTitleButton=sitecoreObj.aboutusCommonComponent_Div_H2.isDisplayed();\n\t\t\tAssert.assertEquals(actualTitleButton, true);\n\t\t\tlog.info(\"The Actual AboutUs \" + renderingControl + \" Title - <\"+sitecoreObj.aboutusCommonComponent_Div_H2.getTagName()+\">\");\n\t\t\tlog.info(\"The Expected AboutUs \" + renderingControl + \" Title - <h2>\");\n\t\t\tlog.info(\"TEST PASSED: The Actual and Expected AboutUs \" + renderingControl + \" Title are Same\");\n\t\t}catch(AssertionError e){\n\t\t\tlog.error(\"The Actual AboutUs \" + renderingControl + \" Title - \"+sitecoreObj.aboutusCommonComponent_Div_H2.getTagName());\n\t\t\tlog.error(\"The Expected AboutUs \" + renderingControl + \" Title - <h2>\");\n\t\t\tlog.error(\"TEST FAILED: The Actual and Expected AboutUs \" + renderingControl + \" Title are NOT same\");\n\t\t}catch(org.openqa.selenium.NoSuchElementException e){\n\t\t\tlog.error(\"TEST FAILED: There is No Title On \" + renderingControl + \" element\");\n\t\t}\t\t\n\t}", "public String getbyHeader(){\n String byHed=driver.findElement(byHeader).getText();\n return byHed;\n }", "public static void VerifyCommonComponent_2DIVs_H2(String renderingControl){\t\t\t\t\n\t\ttry{\n\t\t\tactualHeaderText=sitecoreObj.aboutusCommonComponent_2Divs_H2.isDisplayed();\n\t\t\tAssert.assertEquals(actualHeaderText, true);\n\t\t\tlog.info(\"The Actual AboutUs \" + renderingControl + \" Title - <\"+sitecoreObj.aboutusCommonComponent_2Divs_H2.getTagName()+\">\");\n\t\t\tlog.info(\"The Expected AboutUs \" + renderingControl + \" Title - <h2>\");\t\n\t\t\tlog.info(\"TEST PASSED: The Actual and Expected AboutUs \" + renderingControl + \" Title are Same\");\n\t\t}catch(AssertionError e){\n\t\t\tlog.error(\"The Actual AboutUs \" + renderingControl + \" Title - <\"+sitecoreObj.aboutusCommonComponent_2Divs_H2.getTagName()+\">\");\n\t\t\tlog.error(\"The Expected AboutUs \" + renderingControl + \" Title - <h2>\");\t\t\t\t\t\t\n\t\t\tlog.error(\"TEST FAILED: The Actual and Expected AboutUs \" + renderingControl + \" Title are NOT same\");\n\t\t}catch(org.openqa.selenium.NoSuchElementException e){\n\t\t\tlog.error(\"TEST FAILED: There is No Title On \" + renderingControl + \" element\");\n\t\t}\n\t}", "@Test \n\tpublic void homePageHeaderTest() {\n\t\tHomePage homePage = new HomePage(driver);\n\t\thomePage.OpenPage();\n\n\t\t// Validate page header \n\t\tString header = homePage.getHeader();\n\t\tAssert.assertTrue(header.equals(\"\"));\n\n\t\t// Fetch latin quote: \n\t\tString latinQuote = homePage.getQuote(\"latin\");\n\t\tAssert.assertEquals(\"\\\"Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit...\\\"\", latinQuote);\n\n\t\t// Fetch english quote, which is: \n\t\tString englishQuote = homePage.getQuote(\"english\"); \n\t\tAssert.assertEquals(\"\\\"There is no one who loves pain itself, who seeks after it and wants to have it, simply because it is pain...\\\"\",englishQuote); \n\t}", "protected GuiTestObject title() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"title\"));\n\t}", "public static void VerifyTitleText_ContentTitle(String xPath, String headerTag){\n\t\tString actualTitleTextContentTitle = null;\n\t\tfor(int i=1; i<=3; i++){\n\t\ttry{\n\t\t\tactualTitleTextContentTitle=Driver.findElement(By.xpath(xPath + i + \"]/\" + headerTag + \"[1]\")).getText();\n\t\t\tAssert.assertEquals(actualTitleTextContentTitle, dataSourceProvider.getProperty(\"Article\" + i + \"Title\"));\n\t\t\tlog.info(\"The Actual AboutUs Title Text is - \"+actualTitleTextContentTitle);\n\t\t\tlog.info(\"The Expected AboutUs Title Text is - \"+dataSourceProvider.getProperty(\"Article\" + i + \"Title\"));\n\t\t\tlog.info(\"TEST PASSED: The Actual and Expected AboutUs Title Text are Same\");\n\t\t}catch(AssertionError e){\n\t\t\tlog.error(\"The Actual AboutUs Title Text is - \"+actualTitleTextContentTitle);\n\t\t\tlog.error(\"The Expected AboutUs Title Text is - \"+dataSourceProvider.getProperty(\"Article\" + i + \"Title\"));\n\t\t\tlog.error(\"TEST FAILED: The Actual and Expected AboutUs TitleText ContentTitle are NOT same\");\n\t\t}catch(org.openqa.selenium.NoSuchElementException e){\n\t\t\tlog.error(\"TEST FAILED: There is No Override article ContentTitle element On TitleText Container\");\n\t\t}\t\t\n\t }\n\t}", "private String collectHeading(Document doc) {\n String heading = doc.select(\"[class^=header1 style]\").first().text();\r\n\r\n return heading;\r\n }", "public static void VerifyCommonComponent_H2(String renderingControl){\n\t\ttry{\n\t\t\tactualTitleImg=sitecoreObj.aboutusCommonComponent_H2.isDisplayed();\n\t\t\tAssert.assertEquals(actualTitleImg, true);\n\t\t\tlog.info(\"The Actual AboutUs \" + renderingControl + \" Title - <\"+sitecoreObj.aboutusCommonComponent_H2.getTagName()+\">\");\n\t\t\tlog.info(\"The Expected AboutUs \" + renderingControl + \" Title - <h2>\");\n\t\t\tlog.info(\"TEST PASSED: The Actual and Expected AboutUs \" + renderingControl + \" Title are Same\");\n\t\t}catch(AssertionError e){\n\t\t\tlog.error(\"The Actual AboutUs \" + renderingControl + \" Title - \"+sitecoreObj.aboutusCommonComponent_H2.getTagName());\n\t\t\tlog.error(\"The Expected AboutUs \" + renderingControl + \" Title - <h2>\");\n\t\t\tlog.error(\"TEST FAILED: The Actual and Expected AboutUs \" + renderingControl + \" Title are NOT same\");\n\t\t}catch(org.openqa.selenium.NoSuchElementException e){\n\t\t\tlog.error(\"TEST FAILED: There is No Title On \" + renderingControl + \" element\");\n\t\t}\t\t\n\t}", "private org.gwtbootstrap3.client.ui.PanelHeader get_f_PanelHeader76() {\n return build_f_PanelHeader76();\n }", "public Header(String t) {\n this.title=t;\n }", "public Header(DOMelement element){\n\t\tsuper(tag(Header.class),element);\n\t}", "@TestCaseId( id = 3 )\n\t@Steps ( steps = {\n\t\t\t@Step( number = 1, description = \"GIVEN user navigates to main page\" ),\n\t\t\t@Step( number = 2, description = \"WHEN examining the header bar, zero navigation section\",\n\t\t\t\t\texpectedResults = { \"THEN the phone number matches the defined locale phone number\",\n\t\t\t\t\t\t\t\"AND the displayed flag displayed in the header matches the current locale\",\n\t\t\t\t\t\t\t\"AND WHEN the locale is 'US' or 'UK', \\\"Top Destinations\\\" should be displayed, otherwise not\",\n\t\t\t\t\t\t\t\"OR WHEN if the locale is AU', the \\\"Currency Selector\\\" should be displayed, otherwise not\",\n\t\t\t\t\t} ),\n\t\t\t@Step( number = 3, description = \"AND WHEN user clicks back on the \\\"Subscribe and Save\\\" link\",\n\t\t\t\t\texpectedResults = { \"THEN the \\\"Header Subscribe\\\" section should be hidden.\" }),\n\t\t\t@Step( number = 4, description = \"THEN user clicks on \\\"Your cruise deals\\\"\",\n\t\t\t\t\texpectedResults = { \"user redirects to \\\"/cruise-deals.aspx\\\" page\" } ),\n\t\t\t@Step( number = 5, description = \"WHEN user clicks on the company LOGO on the left upper corner.\",\n\t\t\t\t\texpectedResults = \"user redirects back to home page.\" ),\n\t\t\t@Step( number = 6, description = \"WHEN user clicks on the locale country flag.\",\n\t\t\t\t\texpectedResults = { \"THEN a drop down containing country names is displayed.\",\n\t\t\t\t\t\t\t\t\t\t\"AND the list contains the expected country names\" } ),\n\t\t\t@Step( number = 7, description = \"WHEN user clicks back on the locale country flag icon.\",\n\t\t\t\t\texpectedResults = { \"THEN the drop down countries list is hidden back.\" } ),\n\t} )\n\t@Test ( description = \"Testing the Header-Branding common part initial state and functionality\",\n\t\t\tenabled = true,\n\t\t\tgroups = { \"US\", \"UK\", \"AU\" }\n\t)\n\tpublic void homePage_InitialState_Header_Branding( ITestContext testContext ) throws Exception\n\t{\n\t\t/* GIVEN user navigates to main page */\n\t\tPreConditions.checkNotNull( this.homePage, \"Home page is null, before starting test\" );\n\t\ttry\n\t\t{\n\n\t\t\t/* WHEN examining the header bar, zero navigation section */\n\t\t\tHeader.HeaderBranding headerBranding = homePage.header().headerBranding();\n\t\t\tHtmlElement container = homePage.header().getContainer();\n\n\t\t\t/* THEN the phone number matches the defined locale phone number */\n\t\t\tString REASON = \"Asserting the phone number matches the defined locale phone number\";\n\t\t\tString ACTUAL_STR = headerBranding.getLocalePhoneNumber();\n\t\t\tMatcher<String> EXPECTED_STR = JMatchers.is( ( String ) SiteProperty.HEADER_PHONE_NUMBER.fromContext() );\n\t\t\tSiteSessionManager.get().createCheckPoint( container, \"VALIDATE_PHONE\" )\n\t\t\t\t\t.assertThat( REASON, ACTUAL_STR, EXPECTED_STR );\n\n\t\t\t/* AND the displayed flag in the header matches the current locale */\n\t\t\tREASON = \"Asserting that the flag displayed in the header matches the current locale\";\n\t\t\tLocale ACTUAL_LOCALE = homePage.header().headerBranding().getDisplayedLocale();\n\t\t\tMatcher<Locale> EXPECTED_LOCALE = JMatchers.is( SiteSessionManager.get().getCurrentLocale() );\n\t\t\tSiteSessionManager.get().createCheckPoint( container, \"VALIDATE_DISPLAYED_FLAG\" )\n\t\t\t\t\t.assertThat( REASON, ACTUAL_LOCALE, EXPECTED_LOCALE );\n\n\t\t\t/* AND WHEN the locale is 'US' or 'UK', \"Top Destinations\" should be displayed, otherwise not */\n\n\t\t\tif ( SiteSessionManager.get().getCurrentLocale().equals( Locale.UK )\n\t\t\t\t\t|| SiteSessionManager.get().getCurrentLocale().equals( Locale.US ) )\n\t\t\t{\n\t\t\t\tREASON = \"Asserting that \\\"Top Destinations\\\" should be displayed\";\n\t\t\t\tboolean ACTUAL_BOOL = headerBranding.hasTopDestinations();\n\t\t\t\tMatcher<Boolean> EXPECTED_OF_BOOL = JMatchers.is( true );\n\t\t\t\tSiteSessionManager.get().createCheckPoint( container, \"TOP_DESTINATIONS_DISPLAYED\" )\n\t\t\t\t\t\t.assertThat( REASON, ACTUAL_BOOL, EXPECTED_OF_BOOL );\n\n\t\t\t\tREASON = \"Asserting that \\\"Currency Selector\\\" should not be displayed\";\n\t\t\t\tACTUAL_BOOL = headerBranding.hasCurrencySelector();\n\t\t\t\tEXPECTED_OF_BOOL = JMatchers.is( false );\n\t\t\t\tSiteSessionManager.get().createCheckPoint( container, \"CURRENCY_SELECTOR_NOT_DISPLAYED\" )\n\t\t\t\t\t\t.assertThat( REASON, ACTUAL_BOOL, EXPECTED_OF_BOOL );\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tREASON = \"Asserting that \\\"Top Destinations\\\" should be displayed\";\n\t\t\t\tMatcher<Boolean> EXPECTED_OF_BOOL = JMatchers.is( false );\n\t\t\t\tboolean ACTUAL_BOOL = headerBranding.hasTopDestinations();\n\t\t\t\tSiteSessionManager.get().createCheckPoint( \"TOP_DESTINATIONS_NOT_DISPLAYED\" )\n\t\t\t\t\t\t.assertThat( REASON, ACTUAL_BOOL, EXPECTED_OF_BOOL );\n\n\t\t\t\tREASON = \"Asserting that \\\"Currency Selector\\\" should not be displayed\";\n\t\t\t\tEXPECTED_OF_BOOL = JMatchers.is( true );\n\t\t\t\tACTUAL_BOOL = homePage.header().headerBranding().hasCurrencySelector();\n\t\t\t\tSiteSessionManager.get().createCheckPoint( container, \"CURRENCY_SELECTOR_IS_DISPLAYED\" )\n\t\t\t\t\t\t.assertThat( REASON, ACTUAL_BOOL, EXPECTED_OF_BOOL );\n\t\t\t}\n\n\t\t \t/* AND WHEN user clicks back on the \"Subscribe and Save\" link */\n\t\t\theaderBranding.clickSubscribeAndSave();\n\n\t\t\tfinal String REASON5 = \"Asserting that \\\"Header Subscribe\\\" should be displayed\";\n\t\t\tfinal ExpectedCondition<WebElement> CONDITION = null;//visibilityBy( Header.HeaderBranding.ROOT_BY, true );\n\t\t\t//\t\tSiteSessionManager.get().createCheckPoint( \"HEADER_SUBSCRIBE_VISIBLE\" )\n\t\t\t//\t\t\t\t.assertWaitThat( REASON5, TimeConstants.FIVE_SECONDS, CONDITION );\n\n\t\t /* WHEN user clicks again on the \"Subscribe and Save\" link THEN \"Header Subscribe\" section should be hidden. */\n\n\t\t\theaderBranding.clickSubscribeAndSave();\n\t\t\tfinal String REASON6 = \"Asserting that \\\"Header Subscribe\\\" should be hidden back\";\n\t\t\t//final ExpectedCondition<WebElement> CONDITION1 = visibilityBy( Header.HeaderBranding.ROOT_BY, false );\n\t\t\t//\t\tSiteSessionManager.get().createCheckPoint( \"HEADER_SUBSCRIBE_HIDDEN\" )\n\t\t\t//\t\t\t\t.assertWaitThat( REASON6, TimeConstants.FIVE_SECONDS, CONDITION1 );\n\n\t\t/* WHEN user clicks on \"Your cruise deals\" THEN user redirects to \"/cruise-deals.aspx\" page */\n\n\t\t\tCruiseDealsPage dealsPage = headerBranding.clickYourCruiseDeals();\n\t\t\tfinal String REASON7 = \"Asserting that user redirected to \\\"/cruise-deals.aspx\\\" page\";\n\t\t\tfinal Matcher<String> EXPECTED_URL = JMatchers.containsString( \"/cruise-deals.aspx\" );\n\t\t\tfinal String ACTUAL_URL = dealsPage.getCurrentUrl();\n\t\t\tSiteSessionManager.get().createCheckPoint( \"URL_CRUISE_DEALS\" )\n\t\t\t\t\t.assertThat( REASON7, ACTUAL_URL, EXPECTED_URL );\n\n\t\t/* WHEN user clicks on the LOGO, THEN user redirects back to home page */\n\n\t\t\tthis.homePage = dealsPage.header().headerBranding().clickOnLogo();\n\t\t\tfinal String REASON8 = \"Asserting that user redirected back to home page\";\n\t\t\tfinal Matcher<URL> EXPECTED_HOME_URL = JMatchers.is( SiteSessionManager.get().getBaseUrl() );\n\t\t\tfinal URL ACTUAL_HOME_URL = new URL( homePage.getCurrentUrl() );\n\t\t\tSiteSessionManager.get().createCheckPoint( \"URL_BACK_HOME\" )\n\t\t\t\t\t.assertThat( REASON8, ACTUAL_HOME_URL, EXPECTED_HOME_URL );\n\n\t\t/* AND user clicks on the locale country flag. */\n\n\t\t\theaderBranding = this.homePage.header().headerBranding();\n\n\t\t\tfinal String REASON9 = \"Asserting that country list is hidden before clicking on the flag icon\";\n\t\t\tfinal Matcher<Boolean> EXPECTED_LIST_STATE1 = JMatchers.is( false );\n\t\t\tfinal boolean ACTUAL_LIST_STATE1 = headerBranding.isLocalesListOpened();\n\t\t\tSiteSessionManager.get().createCheckPoint( \"LOCALE_LIST_INIT_HIDDEN\" )\n\t\t\t\t\t.assertThat( REASON9, ACTUAL_LIST_STATE1, EXPECTED_LIST_STATE1 );\n\n\t\t\tList<String> locales = headerBranding.openLocalesList();\n\n\t\t/* THEN a drop down containing country names is displayed. */\n\n\t\t\tfinal String REASON10 = \"Asserting that country list is displayed after clicking on the flag icon for first time\";\n\t\t\tfinal Matcher<Boolean> EXPECTED_LIST_STATE2 = JMatchers.is( true );\n\t\t\tfinal boolean ACTUAL_LIST_STATE2 = headerBranding.isLocalesListOpened();\n\t\t\tSiteSessionManager.get().createCheckPoint( \"LOCALE_LIST_DISPLAYED\" )\n\t\t\t\t\t.assertThat( REASON10, ACTUAL_LIST_STATE2, EXPECTED_LIST_STATE2 );\n\n\t\t/* AND the list contains the expected country names */\n\n\t\t\tString[] ACTUAL_LOCALES = locales.toArray( new String[ locales.size() ] );\n\t\t\tfinal String REASON11 = \"Asserting that country list contains all expected countries\";\n\t\t\tfinal Matcher<String[]> EXPECTED_LOCALES =\n\t\t\t\t\tJMatchers.arrayContainingInAnyOrder( \"Australia\", \"United States\", \"United Kingdom\" );\n\t\t\tSiteSessionManager.get().createCheckPoint( \"LOCALES_LIST\" )\n\t\t\t\t\t.assertThat( REASON11, ACTUAL_LOCALES, EXPECTED_LOCALES );\n\n\t\t/* AND user clicks back on the locale country flag icon. */\n\n\t\t\theaderBranding.closeLocalesList();\n\n\t\t/* THEN the drop down countries list is hidden back. */\n\n\t\t\tfinal String REASON12 = \"Asserting that country list is hidden after clicking back on the flag icon.\";\n\t\t\tfinal Matcher<Boolean> EXPECTED_LIST_STATE3 = JMatchers.is( false );\n\t\t\tfinal boolean ACTUAL_LIST_STATE3 = headerBranding.isLocalesListOpened();\n\t\t\tSiteSessionManager.get().createCheckPoint( \"LOCALE_LIST_HIDDEN_BACK\" )\n\t\t\t\t\t.assertThat( REASON12, ACTUAL_LIST_STATE3, EXPECTED_LIST_STATE3 );\n\n\t\t\t// reporting and asserting checkpoints\n\n\t\t\tSiteSessionManager.get().assertAllCheckpoints();\n\t\t}\n\t\tcatch ( WebDriverException | AssertionError e )\n\t\t{\n\t\t\tthrow new ApplicationException( SiteSessionManager.get().getDriver(), e );\n\t\t}\n\t}", "private HorizontalLayout getHeader() {\n HorizontalLayout header = new HorizontalLayout();\n header.setWidth(\"100%\");\n header.setHeight(\"100px\");\n // TODO move this into a separate HeaderView class\n header.addComponent(new Label(\"Patient Management System Team Green\"));\n return header;\n }", "private void setUpHeader() {\n header = new JPanel();\n header.setLayout(new BorderLayout());\n header.setBackground(Color.darkGray);\n highscoreTitle = new JLabel();\n highscoreTitle.setText(\"Highscores:\");\n highscoreTitle.setForeground(Color.white);\n highscoreTitle.setHorizontalAlignment(JLabel.CENTER);\n highscoreTitle.setFont(new Font(\"Arial Black\", Font.BOLD, 24));\n header.add(highscoreTitle, BorderLayout.CENTER);\n setUpSortingBtn();\n\n rootPanel.add(header, BorderLayout.NORTH);\n }", "public static void VerifyCommonComponent_Div_Div_H2(String renderingControl){\n\t\tboolean actualSideBySideTitle = false;\n\t\ttry{\n\t\t\tactualSideBySideTitle=sitecoreObj.aboutusCommonComponent_Div_Div_H2.isDisplayed();\n\t\t\tAssert.assertEquals(actualSideBySideTitle, true);\n\t\t\tlog.info(\"The Actual AboutUs \" + renderingControl + \" Title - <\"+sitecoreObj.aboutusCommonComponent_Div_Div_H2.getTagName()+\">\");\n\t\t\tlog.info(\"The Expected AboutUs \" + renderingControl + \" Title - <h2>\");\n\t\t\tlog.info(\"TEST PASSED: The Actual and Expected AboutUs \" + renderingControl + \" Titles are Same\");\n\t\t}catch(AssertionError e){\n\t\t\tlog.error(\"The Actual AboutUs \" + renderingControl + \" Title - <\"+sitecoreObj.aboutusCommonComponent_Div_Div_H2.getTagName()+\">\");\n\t\t\tlog.error(\"The Expected AboutUs \" + renderingControl + \" Title - <h2>\");\n\t\t\tlog.error(\"TEST FAILED: The Actual and Expected AboutUs \" + renderingControl + \" Titles are NOT same\");\n\t\t}catch(org.openqa.selenium.NoSuchElementException e){\n\t\t\tlog.error(\"TEST FAILED: There is No Title element On \" + renderingControl + \" Container\");\n\t\t}\t\t\n\t}", "public static void VerifyHeaderItem_CommonComponent_Div_Div2_P(String renderingControl){\t\t\t\t\n\t\ttry{\n\t\t\tactualHeaderText=sitecoreObj.aboutusCommonComponent_Div_Div2_P.isDisplayed();\n\t\t\tAssert.assertEquals(actualHeaderText, true);\n\t\t\tlog.info(\"The Actual AboutUs \" + renderingControl + \" Description - <\"+sitecoreObj.aboutusCommonComponent_Div_Div2_P.getTagName()+\">\");\n\t\t\tlog.info(\"The Expected AboutUs \" + renderingControl + \" Description - <p>\");\t\n\t\t\tlog.info(\"TEST PASSED: The Actual and Expected AboutUs \" + renderingControl + \" Description are Same\");\n\t\t}catch(AssertionError e){\n\t\t\tlog.error(\"The Actual AboutUs \" + renderingControl + \" Description - <\"+sitecoreObj.aboutusCommonComponent_Div_Div2_P.getTagName()+\">\");\n\t\t\tlog.error(\"The Expected AboutUs \" + renderingControl + \" Description - <p>\");\t\t\t\t\t\t\n\t\t\tlog.error(\"TEST FAILED: The Actual and Expected AboutUs \" + renderingControl + \" Description are NOT same\");\n\t\t}catch(org.openqa.selenium.NoSuchElementException e){\n\t\t\tlog.error(\"TEST FAILED: There is No Description On \" + renderingControl + \" element\");\n\t\t}\n\t}", "@Test\n public void getAllHeaders() {\n List<WebElement> headers = driver.findElements(By.xpath(\"(//div[@class='jXpA9e Ui5IUc']//table)[1]//th\"));\n System.out.println(\"headers.size() = \" + headers.size());\n\n for (WebElement header : headers) {\n System.out.println(header.getText());\n }\n\n }", "public static void VerifyCommonComponent_4DIVs_H2(String renderingControl){\n\t\tboolean actualSideBySideCenteredTitle = false;\n\t\ttry{\n\t\t\tactualSideBySideCenteredTitle=sitecoreObj.aboutusCommonComponent_4DIVs_H2.isDisplayed();\n\t\t\tAssert.assertEquals(actualSideBySideCenteredTitle, true);\n\t\t\tlog.info(\"The Actual AboutUs \" + renderingControl + \" Title - <\"+sitecoreObj.aboutusCommonComponent_4DIVs_H2.getTagName()+\">\");\n\t\t\tlog.info(\"The Expected AboutUs \" + renderingControl + \" Title - <h2>\");\n\t\t\tlog.info(\"TEST PASSED: The Actual and Expected AboutUs \" + renderingControl + \" Titles are Same\");\n\t\t}catch(AssertionError e){\n\t\t\tlog.error(\"The Actual AboutUs \" + renderingControl + \" Title - <\"+sitecoreObj.aboutusCommonComponent_4DIVs_H2.getTagName()+\">\");\n\t\t\tlog.error(\"The Expected AboutUs \" + renderingControl + \" Title - <h2>\");\n\t\t\tlog.error(\"TEST FAILED: The Actual and Expected AboutUs \" + renderingControl + \" Titles are NOT same\");\n\t\t}catch(org.openqa.selenium.NoSuchElementException e){\n\t\t\tlog.error(\"TEST FAILED: There is No Title element On \" + renderingControl + \" Container\");\n\t\t}\t\t\n\t}", "public static WebElement headertext(WebDriver driver, String value) {\n\t\telement= driver.findElement(By.xpath(\".//div[@class='table-responsive']//th[contains(text(),'\"+value+\"')]\"));\n\t\thighLighterMethod(element,driver);\n\t\treturn element;\n\t\t\n\t}", "public static void VerifyCommonComponent_2DIVs_H3(String renderingControl){\n\t\tboolean actualFiveColumnContentTitle = false;\n\t\ttry{\n\t\t\tactualFiveColumnContentTitle=sitecoreObj.aboutusCommonComponent_2DIVs_H3.isDisplayed();\n\t\t\tAssert.assertEquals(actualFiveColumnContentTitle, true);\n\t\t\tlog.info(\"The Actual AboutUs \" + renderingControl + \" ContentTitle - <\"+sitecoreObj.aboutusCommonComponent_2DIVs_H3.getTagName()+\">\");\n\t\t\tlog.info(\"The Expected AboutUs \" + renderingControl + \" ContentTitle - <h3>\");\n\t\t\tlog.info(\"TEST PASSED: The Actual and Expected AboutUs \" + renderingControl + \" ContentTitle are Same\");\n\t\t}catch(AssertionError e){\n\t\t\tlog.error(\"The Actual AboutUs \" + renderingControl + \" ContentTitle - <\"+sitecoreObj.aboutusCommonComponent_2DIVs_H3.getTagName() +\">\");\n\t\t\tlog.error(\"The Expected AboutUs \" + renderingControl + \" ContentTitle - <h3>\");\n\t\t\tlog.error(\"TEST FAILED: The Actual and Expected AboutUs \" + renderingControl + \" ContentTitle are NOT same\");\n\t\t}catch(org.openqa.selenium.NoSuchElementException e){\n\t\t\tlog.error(\"TEST FAILED: There is No ContentTitle element On \" + renderingControl + \" Container\");\n\t\t}\t\t\n\t}", "private static UINode _createGlobalHeaders()\n {\n MarlinBean globalHeaders = new MarlinBean(FLOW_LAYOUT_NAME);\n\n //\n // add the client header\n //\n globalHeaders.addIndexedChild(\n ContextPoppingUINode.getUINode(NAVIGATION2_CHILD));\n\n //\n // create and add the default header\n //\n MarlinBean defaultHeader = new MarlinBean(GLOBAL_HEADER_NAME);\n\n defaultHeader.setAttributeValue(\n RENDERED_ATTR,\n new NotBoundValue(\n PdaHtmlLafUtils.createIsRenderedBoundValue(NAVIGATION2_CHILD)));\n\n globalHeaders.addIndexedChild(defaultHeader);\n\n return globalHeaders;\n }", "@Test(priority=1)\r\n\tpublic void getTitle() {\r\n\t\tString title=driver.getTitle();\r\n\t\tSystem.out.println(( title).toUpperCase());\r\n\t}", "@Override\n public ElementHeader getElementHeader()\n {\n return elementHeader;\n }", "@Test\n\tpublic void h1_header_bold_test() {\n\t\tString text = \"# **heading1**\";\n\t\tassertEquals(\"<html><h1><strong>heading1</strong></h1></html>\", createHTML(text));\n\t}", "private void commonLoadTestForHtml(){\n\t\tWebElement tree = getElement(\"id=tree\");\n\t\tlog(\"Found Element for id=tree \" + tree.toString());\n\n\t\t//Make sure News attributes are correct\n\t\tWebElement news = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#news']['title']\\\"}\");\n\t\tAssert.assertNotNull(news);\n\t\tnews.click();\n\n\t\tString content = getText(RESULTS_CONTAINER);\n\t\tlog(\"content\"+content);\n waitForText(RESULTS_CONTAINER, \"id=news\");\n\n\n\t\t// Finds the blogs node and make sure its not null\n\t\twaitForElementVisible(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#blogs']['disclosure']\\\"}\");\n\t\tWebElement blogs = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#blogs']['disclosure']\\\"}\");\n\n\t\tlog(\"Node: \" + blogs);\n\n\t\tAssert.assertNotNull(blogs);\n\n\t\tblogs.click(); // This should expand the node blogs\n\n\t\t//Find the children of blogs node: Today\n\t\tWebElement today = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#today']['title']\\\"}\");\n\n\t\t//Find the children of blogs node: Previous\n\t\tWebElement previous = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#prev']['title']\\\"}\");\n\n\t\tWebElement previousDiscIcon = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#prev']['disclosure']\\\"}\");\n\n\t\tAssert.assertNotNull(previousDiscIcon);\n\n\t\t//Click on Previous Node\n\t\twaitForElementVisible(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#prev']['disclosure']\\\"}\");\n\t\tpreviousDiscIcon.click();\n\n\t\t//Find the children of previous node: Yesterday\n\t\tWebElement yesterday = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#yesterday']['title']\\\"}\");\n\n\t\t//Find the children of previous node: 2DaysBack\n\t\tWebElement twodaysback = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#daysback2']['title']\\\"}\");\n\n\n\n\n\t}", "public void setHeader() {\n tvHeader.setText(getResources().getString(R.string.text_skill));\n tvDots.setVisibility(View.INVISIBLE);\n }", "protected abstract ITitleAndSearchPanelFilter instantiateHeaderAndSearchFilter ( ) ;", "public String getWantedProductHeader()throws Exception{\r\n SearchPageFactory pageFactory = new SearchPageFactory(driver);\r\n String listedItemHeader = getElementText(pageFactory.listedItemHeader);\r\n return listedItemHeader;\r\n }", "Header createHeader();", "private void createMainMenuHeaderComposite() {\n\n\t\tGridData gridData8 = new GridData();\n\t\tgridData8.grabExcessHorizontalSpace = true;\n\t\tgridData8.horizontalAlignment = GridData.FILL;\n\t\tgridData8.verticalAlignment = GridData.BEGINNING;\n\t\tgridData8.grabExcessVerticalSpace = true;\n\t\tGridData gridData7 = new GridData();\n\t\tgridData7.grabExcessHorizontalSpace = true;\n\t\tgridData7.horizontalAlignment = GridData.FILL;\n\t\tgridData7.verticalAlignment = GridData.END;\n\t\tgridData7.grabExcessVerticalSpace = true;\n\t\tGridData gridData21 = new GridData();\n\t\tgridData21.horizontalAlignment = GridData.FILL;\n\t\tgridData21.grabExcessHorizontalSpace = true;\n\t\tgridData21.grabExcessVerticalSpace = false;\n\t\tgridData21.heightHint = 150;\n\t\tgridData21.verticalAlignment = GridData.BEGINNING;\n\t\tGridLayout gridLayout = new GridLayout();\n\t\tgridLayout.horizontalSpacing = 50;\n\t\tgridLayout.marginWidth = 20;\n\t\tgridLayout.marginHeight = 0;\n\t\tgridLayout.verticalSpacing = 35;\n\t\tmainMenuHeaderComposite = new Composite(this, SWT.NONE);\n\t\tmainMenuHeaderComposite.setBackground(new Color(Display.getCurrent(),\n\t\t\t\t255, 255, 255));\n\t\tmainMenuHeaderComposite.setLayoutData(gridData21);\n\t\tmainMenuHeaderComposite.setLayout(gridLayout);\n\n\t\tlblTitle1 = new CbctlLabel(mainMenuHeaderComposite, SWT.CENTER);\n\t\tlblTitle1\n\t\t\t\t.setText(LabelLoader\n\t\t\t\t\t\t.getLabelValue(LabelKeyConstants.WELCOME_NOTE_ON_TOUCH_SCREEN_HOMEPAGE));\n\t\tlblTitle1\n\t\t\t\t.setFont(SDSControlFactory.getStandardTouchScreenFont());\n\t\tlblTitle1.setLayoutData(gridData7);\n\n\t\tlblTitle2 = new CbctlLabel(mainMenuHeaderComposite, SWT.CENTER);\n\t\tlblTitle2\n\t\t\t\t.setText(LabelLoader\n\t\t\t\t\t\t.getLabelValue(LabelKeyConstants.SELECT_NOTE_ON_TOUCH_SCREEN_HOMEPAGE));\n\t\tlblTitle2\n\t\t\t\t.setFont(SDSControlFactory.getStandardTouchScreenFont());\n\t\tlblTitle2.setLayoutData(gridData8);\n\t}", "@Test(priority=13)\n\tpublic void verifySearchIconIsDisplayingOnHeader() throws Exception {\n\t\tOverviewTradusPROPage overviewPage= new OverviewTradusPROPage(driver);\n\t explicitWaitFortheElementTobeVisible(driver,overviewPage.SearchIconOnHeader);\n Assert.assertTrue(verifyElementPresent(overviewPage.SearchIconOnHeader), \"Search icon is not displaying on header\");\n\t}", "protected abstract String getTopElementDesc();", "public StateHeader() { // for externalization\r\n }", "private void setupUIElements() {\n setBadgeDrawable(ContextCompat.getDrawable(getActivity(), R.drawable.company_logo));\n //setTitle(getString(R.string.browse_title));\n\n setHeadersState(HEADERS_ENABLED);\n setHeadersTransitionOnBackEnabled(true);\n\n // Set headers and rows background color\n setBrandColor(ContextCompat.getColor(getActivity(), R.color.browse_headers_bar));\n mBackgroundManager.setColor(ContextCompat.getColor(getActivity(),\n R.color.browse_background_color));\n\n // Disables the scaling of rows when Headers bar is in open state.\n enableRowScaling(false);\n\n // Here is where a header presenter can be set to customize the look\n // of the headers list.\n setHeaderPresenterSelector(new PresenterSelector() {\n @Override\n public Presenter getPresenter(Object o) {\n\n return new RowHeaderPresenter();\n }\n });\n }", "public GridPane simulationHeader() {\r\n\t\t// Create Title\r\n\t\tHBox title = simulationTitle();\r\n\t\t\r\n\t\t// Create Slider Title\r\n\t\tHBox sliderTitle = simulationControlTitle();\r\n\t\t\r\n\t\t// Create Slider\r\n\t\tHBox slider = simulationControl();\r\n\t\t\r\n\t\t// Create Tick Counter\r\n\t\tHBox tickCount = simulationTicks();\r\n\t\t\r\n\t\t// Create Error Placeholder\r\n\t\tHBox errorMessage = errorMessage();\r\n\t\t\r\n\t\t// Setup Grid\r\n\t\tGridPane header = new GridPane();\r\n\t\theader.setMinSize(800, 200); \r\n\t\theader.setVgap(10); \r\n\t\theader.setHgap(10); \r\n\t\theader.setAlignment(Pos.CENTER); \r\n\t\t\r\n\t\t// Add Components To Grid\r\n\t\theader.add(title, 0, 0); \r\n\t\theader.add(sliderTitle, 0, 1);\r\n\t\theader.add(slider, 0, 2); \r\n\t\theader.add(tickCount, 0, 3); \r\n\t\theader.add(errorMessage, 0, 4);\r\n\t\t\r\n\t\treturn header;\r\n\t}", "private org.gwtbootstrap3.client.ui.PanelHeader get_f_PanelHeader29() {\n return build_f_PanelHeader29();\n }", "public interface PullHeader extends IsWidget {\n\t\t/**\n\t\t * called when a scroll starts\n\t\t * \n\t\t * @param state\n\t\t * the current state of the pull panel\n\t\t */\n\t\tpublic void scrollStart(State state);\n\n\t\t/**\n\t\t * continously called when scrolling\n\t\t * \n\t\t * @param state\n\t\t * the state of the pull panel\n\t\t * @param positionY\n\t\t * the current scroll position\n\t\t */\n\t\tpublic void onScroll(State state, int positionY);\n\n\t\t/**\n\t\t * called when a scroll ends\n\t\t * \n\t\t * @param state\n\t\t * the current state of the pull panel\n\t\t * @param positionY\n\t\t * the end scroll position\n\t\t * @param duration\n\t\t * the duration to scroll took\n\t\t */\n\t\tvoid onScrollEnd(State state, int positionY, int duration);\n\n\t\t/**\n\t\t * get the height of the pullheader\n\t\t * \n\t\t * @return the height of the pull header\n\t\t */\n\t\tpublic int getHeight();\n\n\t\t/**\n\t\t * get the position in px that triggers a state change\n\t\t * \n\t\t * @return the position in px that triggers the state change\n\t\t */\n\t\tpublic int getStateSwitchPosition();\n\n\t\t/**\n\t\t * set the html of a pull header\n\t\t * \n\t\t * @param html\n\t\t * the html as String\n\t\t */\n\t\tpublic void setHTML(String html);\n\n\t}", "public static void VerifyThreeItem_ContainerTitle(String renderControl){\n\t\tboolean actualThreeItemTitle=false;\n\t\ttry{\n\t\t\tactualThreeItemTitle=sitecoreObj.aboutusThreeItemContainerTitle.isDisplayed();\n\t\t\tAssert.assertEquals(actualThreeItemTitle, true);\n\t\t\tlog.info(\"The Actual AboutUs \" + renderControl + \" Container Header Title - <\"+sitecoreObj.aboutusThreeItemContainerTitle.getTagName()+\">\");\n\t\t\tlog.info(\"The Expected AboutUs \" + renderControl + \" Container Header Title - <h2>\");\n\t\t\tlog.info(\"TEST PASSED: The Actual and Expected AboutUs \" + renderControl + \" Container Header Title are Same\");\n\t\t}catch(AssertionError e){\n\t\t\tlog.error(\"The Actual AboutUs \" + renderControl + \" Container Header Title - <\"+sitecoreObj.aboutusThreeItemContainerTitle.getTagName()+\">\");\n\t\t\tlog.error(\"The Expected AboutUs \" + renderControl + \" Container Header Title - <h2>\");\n\t\t\tlog.error(\"TEST FAILED: The Actual and Expected AboutUs \" + renderControl + \" Container Header Title are NOT same\");\n\t\t}catch(org.openqa.selenium.NoSuchElementException e){\n\t\t\tlog.error(\"TEST FAILED: There is No Container Header Title element On \" + renderControl + \" Container\");\n\t\t}\t\t\n\t}", "private void buildHeader(Label greeting, LogoutButton logout, LanguageSelector languageSelector, ThemeSelector themeSelector) {\n\n//\t\tAdd a style name for the greeting label\n\t\tgreeting.setStyleName(T.system(\"STYLE_LABEL_GREETING\"));\n\t\t\n//\t\tAdd components to the layout\n\t\taddComponent(greeting);\n\t\tif(logout != null){\n\t\t\taddComponent(logout);\n\t\t}\n\t\taddComponent(languageSelector);\n\t\taddComponent(themeSelector);\n\t\t\n\t\tsetIds(greeting, logout, languageSelector, themeSelector);\n\t}", "public static void VerifyCommonComponent_4DIVs_H3(String renderingControl){\n\t\t\tboolean actualSideBySideCenteredTitle = false;\n\t\t\ttry{\n\t\t\t\tactualSideBySideCenteredTitle=sitecoreObj.aboutusCommonComponent_4DIVs_H3.isDisplayed();\n\t\t\t\tAssert.assertEquals(actualSideBySideCenteredTitle, true);\n\t\t\t\tlog.info(\"The Actual AboutUs \" + renderingControl + \" Title - <\"+sitecoreObj.aboutusCommonComponent_4DIVs_H3.getTagName()+\">\");\n\t\t\t\tlog.info(\"The Expected AboutUs \" + renderingControl + \" Title - <h2>\");\n\t\t\t\tlog.info(\"TEST PASSED: The Actual and Expected AboutUs \" + renderingControl + \" Titles are Same\");\n\t\t\t}catch(AssertionError e){\n\t\t\t\tlog.error(\"The Actual AboutUs \" + renderingControl + \" Title - <\"+sitecoreObj.aboutusCommonComponent_4DIVs_H3.getTagName()+\">\");\n\t\t\t\tlog.error(\"The Expected AboutUs \" + renderingControl + \" Title - <h2>\");\n\t\t\t\tlog.error(\"TEST FAILED: The Actual and Expected AboutUs \" + renderingControl + \" Titles are NOT same\");\n\t\t\t}catch(org.openqa.selenium.NoSuchElementException e){\n\t\t\t\tlog.error(\"TEST FAILED: There is No Title element On \" + renderingControl + \" Container\");\n\t\t\t}\t\t\n\t\t}", "public ContainerTag generateHeader(String title) {\n return TagCreator.main(attrs(\"#main.header\"), h1(title),\n h3(String.format(MESSAGE_TIME_GENERATED, formatter.format(Instant.now()))));\n }", "public void buildClassHeader() {\n\t\tString key;\n\t\tif (isInterface) {\n\t\t\tkey = \"doclet.Interface\";\n\t\t} else if (isEnum) {\n\t\t\tkey = \"doclet.Enum\";\n\t\t} else {\n\t\t\tkey = \"doclet.Class\";\n\t\t}\n\n\t\twriter.writeHeader(configuration.getText(key) + \" \" + classDoc.name());\n\t}", "abstract public void header();", "public void createHeader() {\n\t\tHBox box = new HBox();\n\t\tButton printBtn = new Button(\"Print\");\n\t\tprintBtn.getStyleClass().addAll(\"btn\", \"btn-primary\");\n\t\tButton printAllBtn = new Button(\"Print allemaal\");\n\t\tprintAllBtn.getStyleClass().addAll(\"btn\", \"btn-primary\");\n\t\tButton cancelBtn = new Button(\"Annuleer\");\n\t\tcancelBtn.getStyleClass().addAll(\"btn\", \"btn-danger\");\n\t\tbox.getChildren().addAll(createTitle(), printBtn, printAllBtn, cancelBtn);\n\t\t\n\t\tprintBtn.setOnAction(e -> {\n\t\t\ttry {\n\t\t\t\tprintController.printSelected(debiteuren);\n\t\t\t} catch (Exception e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t\tSystem.out.println(\"Nothing selected mate\");\n\t\t\t}\n\t\t});\n\t\t\n\t\tprintAllBtn.setOnAction(e -> {\n\t\t\ttry {\n\t\t\t\tprintController.printAll(debiteuren);\n\t\t\t} catch (Exception e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t\tSystem.out.println(\"Nothing selected mate\");\n\t\t\t}\n\t\t});\n\t\t\n\t\tcancelBtn.setOnAction(e -> {\n\t\t\tprintController.cancel();\n\t\t});\n\t\t\n\t\tsetTop(box);\n\t}", "public void visit(Header n){\r\n\t\tif(tempNode.notifyNode().equals(\"Header\")){\r\n\t\t\ttempNode = nodeList.get(sequence);\r\n\t\t\tArrayList<Token> tokenList = tempNode.getTokenList();\r\n\t\t\tString tmp =\"\";\r\n\t\t\tfor(int i=0;i<tempNode.getTokenListSize();i++){\r\n\t\t\t\tvisit(tokenList.get(i));\r\n\t\t\t}\r\n\r\n\t\t\tif(tokenList.size()<1)\r\n\t\t\ttmp = \"<h\"+tempNode.htype+\">\"+\"</h\"+tempNode.htype+\">\";\r\n\t\t\telse\r\n\t\t\ttmp = \"<h\"+tempNode.htype+\">\"+line+\"</h\"+tempNode.htype+\">\";\r\n\t\t\tline = tmp;\r\n\t\t}\r\n\t }", "@Override\n public void addHeader(Div headerDiv)\n {\n getHeaders().add(headerDiv);\n headerDiv.addClass(JQLayoutCSSThemeBlockNames.UI_Layout_Header.toString());\n //getChildren().add(headers.size() - 1, headerDiv);\n }", "private void updateHeader() {\n this.mViewHolder.imageView = findViewById(R.id.image_header);\n this.mViewHolder.textHeader = findViewById(R.id.text_nav_header);\n\n this.mViewHolder.textHeader.setText(_NAME);\n\n Glide.with(this).load(user.getPhotoUrl()).into(this.mViewHolder.imageView);\n\n }", "@Test \n\tpublic void homePageTitleTest() {\n\t\tHomePage homePage = new HomePage(driver);\n\t\thomePage.OpenPage();\n\t\t\n\t\t//Fetch title \n\t\tString title = homePage.getTitle();\n\t\t\n\t\t//Assert title content \n\t\tAssert.assertTrue(title.equals(\"Lorem Ipsum - All the facts - Lipsum generator\"));\n\t}", "private HeaderUtil() {}", "private void IsiTabelHeader(String text) {\n IsiTabelHeader = new TextView(getActivity());\n IsiTabelHeader.setText(text);\n IsiTabelHeader.setTextColor(getResources().getColor(R.color.white));\n IsiTabelHeader.setLayoutParams(new TableRow.LayoutParams(TableRow.LayoutParams.MATCH_PARENT, TableRow.LayoutParams.WRAP_CONTENT));\n IsiTabelHeader.setBackground(getResources().getDrawable(R.drawable.header_tabel));\n TR.addView(IsiTabelHeader);\n }", "@Test\n\tpublic void h1_header_italic_test() {\n\t\tString text = \"# *heading1*\";\n\t\tassertEquals(\"<html><h1><em>heading1</em></h1></html>\", createHTML(text));\n\t}", "private org.gwtbootstrap3.client.ui.PanelHeader get_f_PanelHeader39() {\n return build_f_PanelHeader39();\n }", "@Test(priority=5)\n public void Test_header() throws InterruptedException, IOException {\n \t\n java.util.List<WebElement> links = driver.findElements(By.xpath(xPath_Hedaer_Links));\n\n\tSystem.out.println(links.size());\n\n\tfor (int i = 0; i<=links.size(); i=i+1)\n\n\t{\n\t\tSystem.out.println(links.get(i).getText());\n\t\t//links.get(i).click();\n\t\tThread.sleep(10000);\n\t\tWebDriverWait wait = new WebDriverWait(driver, 5);\n\t\twait.until(ExpectedConditions.presenceOfElementLocated(By.xpath(\"Add_New_Order\")));\n\t\tdriver.findElement(By.xpath(Add_New_Order)).click();\n\t\t\n\t}\n\t\n }", "protected GuiTestObject html_main() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"html_main\"));\n\t}", "public TableRow build_header(){\n int padding_in_dp = 25;\n final float scale = getResources().getDisplayMetrics().density;\n int padd_bottom = (int) (padding_in_dp * scale + 0.5f);\n\n TableRow header = new TableRow(getContext());\n\n TextView item = new TextView(getContext());\n TextView quantity = new TextView(getContext());\n TextView price = new TextView(getContext());\n\n //picks the right colors depending on theme\n if(sharedPref.loadNightMode()){\n item.setTextColor(Color.parseColor(\"#EEEEEE\"));\n quantity.setTextColor(Color.parseColor(\"#EEEEEE\"));\n price.setTextColor(Color.parseColor(\"#EEEEEE\"));\n }\n else{\n item.setTextColor(Color.parseColor(\"#252525\"));\n quantity.setTextColor(Color.parseColor(\"#252525\"));\n price.setTextColor(Color.parseColor(\"#252525\"));\n }\n\n item.setText(\"Item\");\n item.setTextSize(16);\n item.setLayoutParams(new TableRow.LayoutParams(0, TableRow.LayoutParams.WRAP_CONTENT, 6));\n\n quantity.setText(\"Quantity\");\n quantity.setTextSize(14);\n quantity.setLayoutParams(new TableRow.LayoutParams(0, TableRow.LayoutParams.WRAP_CONTENT, 3));\n\n price.setText(\"Price\");\n price.setTextSize(16);\n price.setLayoutParams(new TableRow.LayoutParams(0, TableRow.LayoutParams.WRAP_CONTENT, 3));\n\n header.addView(item);\n header.addView(quantity);\n header.addView(price);\n\n header.setPadding(0,0,0, padd_bottom);\n return header;\n\n }", "private HTMLElement generateHeaderDiv(String divId, String headerType,\n \t\t\tString spanID, String spanClass, String spanContent, int indentLevel) {\n \t\t// create the text element: <P><SPAN>spanContent</SPAN></P>\n \t\tHTMLElement text = generateTextElement(headerType, spanID, spanClass,\n \t\t\t\tspanContent, indentLevel + 1);\n \t\t// create the containing div element\n \t\tHTMLElement div = generateDivElement(divId, indentLevel);\n \t\tdiv.addContent(text);\n \t\treturn div;\n \t}", "@Test\n public void dashboardPageTest(){\n test = report.createTest(\"Dashboard Page Title Test\");\n test.info(\"logging in to application\");\n loginPage.login(\"driver_username\", \"driver_password\");\n wait.until(ExpectedConditions.textToBePresentInElement(dashboardPage.pageHeader,\"Quick Launchpad\"));\n String actual = dashboardPage.pageHeader.getText();\n test.info(\"verifying page title\");\n assertEquals(actual, \"Quick Launchpad\");\n test.pass(\"PASS: Dashboard Page Title Test\");\n }", "private WebElement getTHead() {\r\n\t\tif (null == this.thead) {\r\n\t\t\ttry {\r\n\t\t\t\tthis.thead = this.findElement(By.xpath(HtmlTags.THEAD));\r\n\t\t\t}\r\n\t\t\tcatch (NotFoundException ex) {\r\n\t\t\t\tif (this.logger.isDebugEnabled()) {\r\n\t\t\t\t\tthis.logger.debug(ex.getMessage(), ex);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn this.thead;\r\n\t}", "@Test\n public void testClassName() {\n// assertEquals(SParser.parse(\"HardDisk\").toHTML(new SEclipseStyle(), new SClassName()),\"<pre style='color:#000000;background:#ffffff;'></pre>\"); //ClassName\n// assertEquals(\"{\",\"\"); //CurlyBracket\n// assertEquals(\"class\",\"\");//KeyWord\n// assertEquals(\"String\",\"\");//MainClass\n// assertEquals(\"String string\",\"\");//MainClass\n// assertEquals(\"public\",\"\");//Modifier\n// assertEquals(\"this\",\"\"); //PseudoVariable\n// assertEquals(\";\",\"\"); //Semicolon\n// assertEquals(\"\\\"string\\\"\",\"\"); //String\n// assertEquals(\"\",\"\"); //Body Alone\n\n// String html = source.toHTML(new SEclipseStyle(), new SClassName());\n// assertEquals(html, \"<pre style=\"\n// + \"'color:#000000;background:#ffffff;'>\"\n// + \"public class MainClass {\\n\"\n// + \" \\n\"\n// + \" public static void main(String args[]){\\n\"\n// + \" GradeBook myGradeBook=new GradeBook();\\n\"\n// + \" String courseName=\\\"Java \\\";\\n\"\n// + \" myGradeBook.displayMessage(courseName);\\n\"\n// + \" \\n\"\n// + \" }\\n\"\n// + \" }public class Foo {\\n\"\n// + \" \\n\"\n// + \" public boolean bar(){\\n\"\n// + \" super.foo();\\n\"\n// + \" return false;\\n\"\n// + \" \\n\"\n// + \" }\\n\"\n// + \" }</pre>\");\n }", "public void Verify_Expected_Header_Visibility()\r\n\t{\r\n\t\tString Runtime_Header_text=Page_header.getText();\r\n\t\tif(Runtime_Header_text.equals(Exp_page_header))\r\n\t\t\tSystem.out.println(\"Expected Header visible at webpage\");\r\n\t\telse\r\n\t\t\tSystem.out.println(\"Expected Header not visible at webpage\");\r\n\t}", "@Test\n\tpublic void h2_header_bold_test() {\n\t\tString text = \"## **heading2**\";\n\t\tassertEquals(\"<html><h2><strong>heading2</strong></h2></html>\", createHTML(text));\n\t}", "H1 createH1();", "public interface HeaderRenderer {\n\n\tpublic abstract Component getHeaderRenderer(HeaderPanel headerpanel, Object obj, boolean flag, boolean flag1);\n}", "private org.gwtbootstrap3.client.ui.PageHeader get_f_PageHeader3() {\n return build_f_PageHeader3();\n }", "private org.gwtbootstrap3.client.ui.PanelHeader get_f_PanelHeader49() {\n return build_f_PanelHeader49();\n }", "void onHeaderClicked(RowHeaderPresenter.ViewHolder viewHolder, Row row);", "protected void BuildHtmlHeader(PrintWriter out, String title) throws IOException\n {\n out.println(\"<HTML>\");\n out.println(\"<head>\");\n out.println(\"<link rel=\\\"stylesheet\\\" href=\\\"/css/nny.css\\\" type=\\\"text/css\\\">\");\n out.println(\"<TITLE>\");\n out.println(title);\n out.println(\"</TITLE>\");\n out.println(\"<SCRIPT LANGUAGE=\\\"JavaScript\\\" SRC=\\\"/javascript/data_validation.js\\\"></SCRIPT>\");\n out.println(\"</head>\");\n /*\n if (navbarTemplate != null)\n {\n if (header_tp == null)\n {\n header_tp = new TemplateProcessor(template_path_ + navbarTemplate);\n }\n out.println(header_tp.process().toString());\n }*/\n out.flush();\n }", "private void initializeAnimalHeader() {\r\n\t\t//initialize text\r\n\t\tTextProperties textProps = new TextProperties();\r\n\t\ttextProps.set(AnimationPropertiesKeys.FONT_PROPERTY, new Font(\"SansSerif\", Font.BOLD, 24));\r\n\t\ttextProps.set(AnimationPropertiesKeys.DEPTH_PROPERTY, 1);\r\n\t\tlang.newText(new Coordinates(20, 30), \"ShiftRows\", \"header\", null, textProps);\r\n\t\t//initialize rectangle\r\n\t\tRectProperties hRectProps = new RectProperties();\r\n\t\thRectProps.set(AnimationPropertiesKeys.DEPTH_PROPERTY, 2);\r\n\t\tlang.newRect(new Offset(-5, -5, \"header\", AnimalScript.DIRECTION_NW), new Offset(5, 5, \"header\", AnimalScript.DIRECTION_SE), \"hRect\", null, hRectProps);\r\n\t}", "public Header(String headerCode, String id, String domClass, String Styles, String jsCallout) {\n\t\tsuper(tag(Header.class), headerCode, id, domClass, Styles, jsCallout); \n\t}", "protected String getPageHeader()\n {\n if (this.pageHeader == null) {\n String title = (this.privateLabel != null)? this.privateLabel.getPageTitle() : \"\";\n StringBuffer sb = new StringBuffer();\n sb.append(\"<center>\");\n sb.append(\"<span style='font-size:14pt;'><b>\" + title + \"</b></span>\");\n sb.append(\"<hr>\");\n sb.append(\"</center>\");\n this.pageHeader = sb.toString();\n }\n return this.pageHeader;\n }", "private ConfigurationHTMLPrinter doTagTitle(final String tag) {\n println(\"<tr>\").incrementIndent();\n print(\"<td class='header_cell tag_cell' colspan='5'><h3>\").print0(convertTag(tag)).print0ln(\"</h3></td>\");\n decrementIndent().println(\"</tr>\");\n return doHeaderRow();\n }", "private org.gwtbootstrap3.client.ui.PanelHeader get_f_PanelHeader5() {\n return build_f_PanelHeader5();\n }", "public HeaderFragment() {}", "@Test(enabled = false)\n public void testCase3() {\n String subHeading = driver.findElement(By.className(\"sub\")).getText();\n Assert.assertTrue(subHeading.contains(\"Practice\"));\n }", "private HeaderViewClickListener manageHeaderClick() {\n return new HeaderViewClickListener() {\n @Override\n public void onClickOfHeaderLeftView() {\n AppUtils.showLog(TAG, \"onClickOfHeaderLeftView\");\n mActivity.onBackPressed();\n }\n\n @Override\n public void onClickOfHeaderRightView() {\n Toast.makeText(mActivity, \"Coming Soon\", Toast.LENGTH_SHORT).show();\n }\n };\n }", "public abstract String header();", "@GET\n @Path(\"/testHeader\")\n @Authenticated\n public String testHeader() {\n return testService.testHeader(\"test\");\n }", "@Override\n protected void convertHead(BaseViewHolder helper, MySectionEntity item) {\n helper.setText(R.id.tv_headTitle, item.header);\n }", "public TempTableHeader getHeader1() { return header1; }", "private static String header() {\r\n String output = \"\";\r\n output += \"\\\\documentclass[a4paper,10pt]{article}\\n\";\r\n output += \"\\\\title{Wilcoxon Signed Ranks test.}\\n\";\r\n output += \"\\\\date{\\\\today}\\n\\\\author{KEEL non-parametric statistical module}\\n\\\\begin{document}\\n\\n\\\\pagestyle{empty}\\n\\\\maketitle\\n\\\\thispagestyle{empty}\\n\\n\";\r\n\r\n return output;\r\n\r\n }", "@Test(priority=4)\n\tpublic void verifyPresenceOfHeaderIconsinOverviewPage() throws Exception {\n\t\t\n\t\tOverviewTradusPROPage overviewObj=new OverviewTradusPROPage(driver);\n\t\texplicitWaitFortheElementTobeVisible(driver,overviewObj.overviewPageVerificationElement);\n\t\tList<WebElement> headerIcons=overviewObj.pageheaderIcons;\n\t\tfor(int i=0;i<headerIcons.size();i++) {\n switch(i)\n {\n case 0:\n\t\t Assert.assertTrue(verifyElementPresent(headerIcons.get(i)), \n\t\t\t\t\t\"icon missing from \"+i+\" place\");\n\t\t click(headerIcons.get(i));\n\t\t explicitWaitFortheElementTobeVisible(driver,overviewObj.overviewPageVerificationElement);\n\t\t Assert.assertTrue(driver.getCurrentUrl().equals(\"https://pro.tradus.com/lms\"), \n\t\t\t\t\"Overview page not displayed\");\n break;\n case 1:\n Assert.assertTrue(verifyElementPresent(headerIcons.get(i)), \n\t\t\t\t\t\"icon missing from \"+i+\" place\");\n\t\t click(headerIcons.get(i));\n\t\t explicitWaitFortheElementTobeVisible(driver,overviewObj.leadsPageVerificationElement);\n\t\t\t Assert.assertTrue(driver.getCurrentUrl().equals(\"https://pro.tradus.com/lms/leads\"), \n\t\t\t\t\t\t\"Leads page not displayed\");\n break;\n case 2:\n Assert.assertTrue(verifyElementPresent(headerIcons.get(i)), \n\t\t\t\t\t\"icon missing from \"+i+\" place\");\n\t\t click(headerIcons.get(i));\n\t\t explicitWaitFortheElementTobeVisible(driver,overviewObj.allStockPageVerificationElement);\n\t\t\t Assert.assertTrue(driver.getCurrentUrl().equals(\"https://pro.tradus.com/lms/ads\"), \n\t\t\t\t\t\t\"All stock page not displayed\");\n break;\n case 3:\n Assert.assertTrue(verifyElementPresent(headerIcons.get(i)), \n\t\t\t\t\t\"icon missing from \"+i+\" place\");\n\t\t click(headerIcons.get(i));\n\t\t explicitWaitFortheElementTobeVisible(driver,overviewObj.createStockPageVerificationElement);\n\t\t\t Assert.assertTrue(driver.getCurrentUrl().equals(\"https://pro.tradus.com/lms/ads/create\"), \n\t\t\t\t\t\t\"Create stock page not displayed\");\n break;\n case 4:\n Assert.assertTrue(verifyElementPresent(headerIcons.get(i)), \n\t\t\t\t\t\"icon missing from \"+i+\" place\");\n\t\t click(headerIcons.get(i));\n\t\t explicitWaitFortheElementTobeVisible(driver,overviewObj.profilePageVerificationElement);\n\t\t\t Assert.assertTrue(driver.getCurrentUrl().equals(\"https://pro.tradus.com/lms/profile\"), \n\t\t\t\t\t\t\"Profile page is not displaying\");\n break;\n\t\t}\n\t\t}\n\t\tAssert.assertTrue(verifyElementPresent(overviewObj.startIconOnPageHeader), \n\t\t\t\t\"Star icon missing from header\");\n\t\tclick(overviewObj.startIconOnPageHeader);\n\t\twaitTill(3000);\n\t\tAssert.assertTrue(verifyElementPresent(overviewObj.startIconSearchField),\n\t\t\t\t\"Search box under star icon is nor displaying\");\n\t\tList<WebElement> suggestions=overviewObj.startIconSuggestionLists;\n\t\tfor(int i=0;i<suggestions.size();i++) {\n\t\t\t\n\t\tswitch(i) {\n\t\tcase 0:\n\t\t\tAssert.assertTrue(getText(suggestions.get(i)).trim().equals(\"overview\"),\n\t\t\t\t\t\"Overview option is not displayed under star icon suggestion list\");\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tAssert.assertTrue(getText(suggestions.get(i)).trim().equals(\"leads\"),\n\t\t\t\t\t\"Leads option is not displayed under star icon suggestion list\");\n\t\t\tbreak;\n\t\t\t\n\t\tcase 2:\n\t\t\twaitTill(2000);\n\t\t\tAssert.assertTrue(getText(suggestions.get(i)).trim().equals(\"myStock\"),\n\t\t\t\t\t\"MyStock option is not displayed under star icon suggestion list\");\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tAssert.assertTrue(getText(suggestions.get(i)).trim().equals(\"addStock\"),\n\t\t\t\t\t\"Add Stock option is not displayed under star icon suggestion list\");\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tAssert.assertTrue(getText(suggestions.get(i)).trim().equals(\"profile\"),\n\t\t\t\t\t\"Profile option is not displayed under star icon suggestion list\");\n\t\t\tbreak;\n\t\t}\n\t\t}\n\t}", "public Header() {\n\t\tsuper(tag(Header.class)); \n\t}" ]
[ "0.6325171", "0.61189276", "0.5878773", "0.58476216", "0.58455366", "0.5797651", "0.5755977", "0.57339865", "0.5693399", "0.5624076", "0.55929583", "0.55871934", "0.55855507", "0.5558596", "0.5558596", "0.55501986", "0.55458236", "0.5531589", "0.5504872", "0.54795957", "0.54714864", "0.54531074", "0.5428507", "0.5420407", "0.54106754", "0.5410476", "0.53860307", "0.53813016", "0.537087", "0.53705597", "0.5366181", "0.5350606", "0.53292567", "0.5325281", "0.53181195", "0.5296825", "0.52842814", "0.5264883", "0.52488583", "0.5235369", "0.52304596", "0.5226412", "0.52154285", "0.52150655", "0.5199857", "0.5198201", "0.51936007", "0.5188625", "0.5185106", "0.5180217", "0.5168502", "0.51557297", "0.5148315", "0.5145072", "0.51426846", "0.5140637", "0.5137326", "0.51352143", "0.5126653", "0.51221323", "0.5094834", "0.5091966", "0.5091941", "0.5091237", "0.50776625", "0.5075686", "0.5058315", "0.5057981", "0.5055246", "0.50487405", "0.50463986", "0.5044082", "0.5034315", "0.5032632", "0.50323474", "0.5031019", "0.50154024", "0.50021094", "0.5001992", "0.5001362", "0.5000772", "0.5000336", "0.49960393", "0.4994219", "0.49906307", "0.4989757", "0.49883685", "0.4987219", "0.49718252", "0.49601024", "0.49596906", "0.49554884", "0.4955141", "0.49474394", "0.49427795", "0.49416956", "0.49402374", "0.49397382", "0.49382326", "0.49352646", "0.49301434" ]
0.0
-1
Test if the wavelevel is right.
@Test public void test() { try { panel=new Panels(); panel.map=new DrawMap(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } panel.waveLevel=2; panel.map.map=new int [1][1]; panel.waveInitial(); assertEquals(3,panel.waveLevel); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isLevel(){\n return Math.abs(gyro_board.getPitch()) < LEVEL_TOLERANCE && Math.abs(gyro_board.getRoll()) < LEVEL_TOLERANCE;\n }", "public void wave() {\n leanRight = !leanRight;\n }", "public boolean isLevelOver() {\n\t\treturn waveControl.isLevelEnd();\n\t}", "public boolean isRight () {\r\n\t\tif (((Math.pow(startSide1, 2) + Math.pow(startSide2, 2) == Math.pow(startSide3, 2)) || \r\n\t\t\t(Math.pow(startSide2, 2) + Math.pow(startSide3, 2) == Math.pow(startSide1, 2)) ||\r\n\t\t\t(Math.pow(startSide3, 2) + Math.pow(startSide1, 2) == Math.pow(startSide2, 2)))\r\n\t\t\t&& isTriangle () == true && isEquilateral () == false) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse return false;\r\n\t}", "boolean isRight() {\r\n\t\tint maxlength;\r\n\t\tmaxlength = Math.max(Math.max(side1, side2), side3);\r\n\t\treturn (maxlength * maxlength == (side1 * side1) + (side2 * side2) + (side3 * side3) - (maxlength * maxlength));\r\n\t}", "public boolean CheckTimeInLevel(){\n \n Long comparetime = ((System.nanoTime() - StartTimeInLevel)/1000000000);\n \n return (comparetime>TILData.critpoints.get((int)speed));\n // stop tetris because this subject is an outlier for this level\n \n \n }", "public boolean isRightKnown() {\n return right != BeaconColor.UNKNOWN;\n }", "public boolean tooRight(AnimationGrass animationGrass) {\n\t\treturn true;\n\t}", "public boolean checkRight()\n\t{\n\t\tif(col+1<=9)\n\t\t\treturn true;\n\t\treturn false;\n\t}", "public boolean waterLevelFailure() {\n if (this.levelMessage.getDoubleParameter() < 0) {\n return true;\n } else if (this.levelMessage.getDoubleParameter() >= this.configuration.getCapacity()) {\n return true;\n } else if ((this.mode != State.READY && this.mode != State.WAITING)\n && (this.levelMessage.getDoubleParameter() > (this.waterLevel * 2))) {\n return true;\n } else if ((this.mode != State.READY && this.mode != State.WAITING)\n && (this.levelMessage.getDoubleParameter() < (this.waterLevel - (this.waterLevel / 2)))) {\n return true;\n } else {\n return false;\n }\n }", "public boolean isRightDown() {\n return pm.pen.getButtonValue(PButton.Type.RIGHT);\n }", "public boolean takeControl(){\r\n\t\tif(sound.readValue()>40){\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "boolean hasHingeOnRightSide() throws RuntimeException;", "private boolean checkStatus() {\r\n //\tSystem.out.println(\"Left \" + Left.getX() + \",\" + Left.getY());\r\n \t//System.out.println(\"Head \" + head.getX() + \",\" + head.getY());\r\n \tboolean result = false;\r\n \tif(Left.getX() >= -4 && Left.getX() <= -3.5f) {\r\n \t\t\r\n \t\tresult = true;\r\n \t}\r\n \tif(Left.getX() >= -2 && Left.getX() <= -0.5f) {\r\n \t\tthis.die = 1;\r\n \t\tresult = true;\r\n \t}\r\n \tif(Left.getX() >= 0 && Left.getX() <= 1.5f) {\r\n \t\tthis.die = 2;\r\n \t\tresult = true;\r\n \t}\r\n \tif(Left.getX() >= 2 && Left.getX() <= 3.5f) {\r\n \t\tthis.die = 3;\r\n \t\tresult = true;\r\n \t}\r\n \treturn result;\r\n }", "@Override\n\t\tprotected boolean condition() {\n\t\t\tWhichSide whichSide = VisionUtil.getPositionOfGearTarget();\n\t\t\tSystem.err.println(\"Position of gear target: \"+whichSide);\n\t\t\tif (whichSide == WhichSide.RIGHT)\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}", "@Override\n\tprotected boolean isFinished() {\n\t\tif (!stoppable) {\n\t\t\treturn false;\n\t\t}\n\t\telse {\n\t\t\t// return Robot.elevator.getLevel() == Level.Bottom;\n\t\t\treturn (Robot.elevator.getLevel() == Level.Bottom && v < 0.0) || (Robot.elevator.getLevel() == Level.Top && v > 0.0);\n\t\t}\n\t}", "public static boolean doTestsPass() {\r\n // todo: implement more tests, please\r\n // feel free to make testing more elegant\r\n boolean testsPass = true;\r\n double result = power(2,-2);\r\n return testsPass && result==0.25;\r\n }", "public abstract boolean facingRight();", "@Test\n\tpublic void testTRight1() {\n\t\ttank.InabilityToMoveRight();\n\t\ttank.goRight();\n\t\tassertEquals(0, tank.getX());\n\t}", "private int critterLevel(int wave){\n\t\treturn wave/3 + 1;\n\t}", "private boolean movingRight() {\n return this.velocity.sameDirection(Vector2D.X_UNIT);\n }", "public boolean isRightSideInverted() {\n return rightSideMultiplier == -1.0;\n }", "boolean hasLevel();", "boolean hasLevel();", "boolean hasLevel();", "boolean hasLevel();", "public boolean hasRight() {\r\n\t\treturn right != null;\r\n\t}", "public boolean isShootRight() {\n return shootRight;\n }", "@Override\n protected boolean isFinished() {\n //stop once the left side is high enough\n return Robot.myLifter.getLeftEncoder() < pos;\n }", "public boolean isRightRed() {\n return (right == BeaconColor.RED_BRIGHT || right == BeaconColor.RED);\n }", "@Test\n\tpublic void testTCanMoveRight() {\n\t\ttank.AbilityToMoveRight();\n\t\tassertEquals(true, tank.getRight());\n\t}", "public void checkUndoWave() throws IOException, InterruptedException{\n\t\tThread.sleep(3000);\n\t\tlibManhattanCommonFunctions.clickAnyElement(getPageElement(\"BtnUndoWave\"), \"Undo Wave Button\");\n\t\tThread.sleep(3000);\n\t\tif(libManhattanCommonFunctions.verifyElementPresent(\"(//*[contains(text(),'All orders for the wave have been shipped or canceled, Cannot undo')])[1]\", \"XPATH\")){\n\t\t\treport.updateTestLog(\"Waves Page\", \"Undo wave is not possible\", Status.PASS);\n\t\t}else{\n\t\t\treport.updateTestLog(\"Waves Page\", \"Undo is possible\", Status.FAIL);\n\t\t}\t\n\t}", "private boolean moveRight() {\n\t\tint moduleSpeed = stats.getSPEED();\n\n\t\tgetTorax().setRotationg(getTorax().getRotationg() + rotationRate);\n\t\tgetLegs().setRotationg(getLegs().getRotationg() + rotationRate);\n\n\t\tgetSpeed().setX(Math.cos(Math.toRadians(getTorax().getRotationg() - 90)) * moduleSpeed);\n\t\tgetSpeed().setY(Math.sin(Math.toRadians(getTorax().getRotationg() - 90)) * moduleSpeed);\n\n\t\tincreaseInfection();\n\n\t\treturn true;\n\t}", "public boolean hitSide()\n {\n if(accel.getAcceleration(ADXL345_I2C.Axes.kX)>0)\n return true;\n else\n return false;\n }", "private boolean hasRight ( int pos )\n\t{\n\t\treturn false; // replace this with working code\n\t}", "public Integer checkRight()\r\n\t{\r\n\t\treturn this.X + 1;\r\n\t}", "@Override\r\n\tpublic boolean CheckPolicy(Level level , String key)\r\n\t{\r\n\t\t// Up\r\n\t\tif (key.equals(\"Up\"))\r\n\t\t{\r\n\t\t\t// There is a Wall\r\n\t\t\tif(level.get_gameBoard().get(level.get_characterY() - 1).get(level.get_characterX()).GetType() == \"Wall\")\r\n\t\t\t\treturn false;\r\n\r\n\t\t\t// There is a Box and After that Wall\\Box\r\n\t\t\tif(level.get_gameBoard().get(level.get_characterY() - 1).get(level.get_characterX()).GetType() == \"Box\")\r\n\t\t\t{\r\n\t\t\t\tif(level.get_gameBoard().get(level.get_characterY() - 2).get(level.get_characterX()).GetType() == \"Wall\")\r\n\t\t\t\t\treturn false;\r\n\r\n\t\t\t\telse if(level.get_gameBoard().get(level.get_characterY() - 2).get(level.get_characterX()).GetType() == \"Box\")\r\n\t\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Down\r\n\t\telse if(key.equals(\"Down\"))\r\n\t\t{\r\n\t\t\t// There is a Wall\r\n\t\t\tif(level.get_gameBoard().get(level.get_characterY() + 1).get(level.get_characterX()).GetType() == \"Wall\")\r\n\t\t\t\treturn false;\r\n\r\n\t\t\t// There is a Box and After that Wall\\Box\r\n\t\t\tif(level.get_gameBoard().get(level.get_characterY() + 1).get(level.get_characterX()).GetType() == \"Box\")\r\n\t\t\t{\r\n\t\t\t\tif(level.get_gameBoard().get(level.get_characterY() + 2).get(level.get_characterX()).GetType() == \"Wall\")\r\n\t\t\t\t\treturn false;\r\n\r\n\t\t\t\telse if(level.get_gameBoard().get(level.get_characterY() + 2).get(level.get_characterX()).GetType() == \"Box\")\r\n\t\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Left\r\n\t\telse if (key.equals(\"Left\"))\r\n\t\t{\r\n\t\t\t// There is a Wall\r\n\t\t\tif(level.get_gameBoard().get(level.get_characterY()).get(level.get_characterX() - 1).GetType() == \"Wall\")\r\n\t\t\t\treturn false;\r\n\r\n\t\t\t// There is a Box and After that Wall\\Box\r\n\t\t\tif(level.get_gameBoard().get(level.get_characterY()).get(level.get_characterX() - 1).GetType() == \"Box\")\r\n\t\t\t{\r\n\t\t\t\tif(level.get_gameBoard().get(level.get_characterY()).get(level.get_characterX() - 2).GetType() == \"Wall\")\r\n\t\t\t\t\treturn false;\r\n\r\n\t\t\t\telse if(level.get_gameBoard().get(level.get_characterY()).get(level.get_characterX() - 2).GetType() == \"Box\")\r\n\t\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Right\r\n\t\telse if(key.equals(\"Right\"))\r\n\t\t{\r\n\t\t\t// There is a Wall\r\n\t\t\tif(level.get_gameBoard().get(level.get_characterY()).get(level.get_characterX() + 1).GetType() == \"Wall\")\r\n\t\t\t\treturn false;\r\n\r\n\t\t\t// There is a Box and After that Wall\\Box\r\n\t\t\tif(level.get_gameBoard().get(level.get_characterY()).get(level.get_characterX() + 1).GetType() == \"Box\")\r\n\t\t\t{\r\n\t\t\t\tif(level.get_gameBoard().get(level.get_characterY()).get(level.get_characterX() + 2).GetType() == \"Wall\")\r\n\t\t\t\t\treturn false;\r\n\r\n\t\t\t\telse if(level.get_gameBoard().get(level.get_characterY()).get(level.get_characterX() + 2).GetType() == \"Box\")\r\n\t\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\telse\r\n\t\t\treturn false;\r\n\r\n\t\treturn true;\r\n\t}", "public boolean checkBallOutLeftRight() {\n //if ball is out of left and right\n if (x <= -radius || x >= GameView.width + radius) {\n out = true;\n return true;\n }\n return false;\n }", "private boolean canStartWave() {\n\n return uiStateManager.getState().equals(GameUIState.STANDBY);\n }", "public boolean checkRapelState () { return noOfRapels > 0; }", "private boolean checkRightSpace(Position p, int len,\n int leftWid, int rightWid) {\n int x = p.x;\n int y = p.y;\n for (int i = x; i < x + len; i += 1) {\n for (int j = y - rightWid; j < y + leftWid + 1; j += 1) {\n if (i >= worldWidth) {\n return false;\n }\n if (j < 0 || j >= worldHeight) {\n return false;\n }\n if (!world[i][j].equals(Tileset.NOTHING)) {\n return false;\n }\n }\n }\n return true;\n }", "@Override\n\tpublic boolean stopRight() {\n\t\tboolean rs = super.stopRight();\n\t\tif(rs == true && this.y_dir == STOP){\t\t\t\n\t\t}\n\t\treturn rs;\n\t}", "boolean hasPower();", "public void rightWrong(boolean right){\n\t\tif(right == true){\n\t\t\t player1 += 10;\n\t\t\tJOptionPane.showMessageDialog(null, \"Player Score: \"+player1, \"Correct! + 10 Points\", JOptionPane.INFORMATION_MESSAGE);\n\t\t\tshowpuzzle();\n\t\t}\n\t\telse{\n\t\t\tplayer1 -= 10;\n\t\t\tJOptionPane.showMessageDialog(null, \"Player Score: \"+player1, \"Incorrect! - 10 Points\", JOptionPane.INFORMATION_MESSAGE);\n\t\t\tsend();\n\t\t}\n\t}", "public boolean levelPassed() {\r\n\t\treturn levelManager.levelPassed();\r\n\t}", "private boolean rightBoundsReached(float delta) {\n return (textureRegionBounds2.x - (delta * speed)) > Constants.APP_WIDTH;\n }", "public boolean hasRight(){\r\n\t\tif(getRight()!=null) {\r\n\t\t\treturn true;\r\n\t\t}else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public boolean isRightSide() {\n return rightSide;\n }", "@Test\n\tpublic void testTOutOfBoundsRightMargin1() {\n\t\ttank.setX(550);\n\t\tassertEquals(false, tank.isWithinMarginsRight());\n\t}", "public static boolean checkSensors() {\n //Default booleans set to true\n rightLineDetect = true;\n leftLineDetect = true;\n \n //If the left sensor detects the line first\n if (Math.abs(leftRedVal - initialRedValue) > rgbThres) {\n leftMotor.stop(true);\n rightMotor.stop(false);\n //if the right sensor does not detect a line\n if(Math.abs(rightRedVal - initialRedValue) < rgbThres) {\n rightLineDetect = false;\n return false;\n }\n }\n \n //if the right sensor detects the line first\n else if(Math.abs(rightRedVal - initialRedValue) > rgbThres) {\n leftMotor.stop(true);\n rightMotor.stop(false);\n //if the left sensor does not detect a line\n if(Math.abs(leftRedVal - initialRedValue) < rgbThres) {\n leftLineDetect = false;\n return false;\n }\n }\n return true;\n }", "public boolean hasPassed()\n {\n if (y<=450.0f)\n return false;\n else\n return true;\n }", "boolean canFall();", "public boolean checkOverflow() {\n\t\tfor(int i = 0; i < hand.size(); i++) {\n\t\t\tif(hand.get(i).getValue() == 11) {\n\t\t\t\thand.get(i).makeSoft();\n\t\t\t\tSystem.out.println(\"The value of the \" + hand.get(i) +\" was changed to 1\");\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t\t\n\t}", "public boolean isTrap(int x, int y){\n return board[x][y] == Area.TRAP;\r\n }", "boolean hasStrength();", "private boolean canMoveRight()\n {\n // runs through row first, column second\n for ( int row = 0; row < grid.length ; row++ ) {\n for ( int column = grid[row].length-2; column >=0 ; column-- ) {\n\n // looks at tile directly to the right of the current tile\n int compare = column + 1;\n if ( grid[row][column] != 0 ) {\n if ( grid[row][compare] == 0 || grid[row][column] ==\n grid[row][compare] ) {\n return true; \n }\n }\n }\n } \n return false;\n }", "@Test\n\tpublic void testTRight2() {\n\t\ttank.AbilityToMoveRight();\n\t\ttank.goRight();\n\t\tassertEquals(1, tank.getX());\n\t}", "private static boolean canCaptureUpRight(ItalianBoard board, int posR, int posC) {\n try {\n if (((board.getBoard()[posR][posC].getPiece() == PieceType.MAN) && (board.getBoard()[posR - 1][posC + 1].getPiece() == PieceType.MAN)) || (board.getBoard()[posR][posC].getPiece() == PieceType.KING))\n return ((board.getBoard()[posR - 1][posC + 1].getPlace() != board.getBoard()[posR][posC].getPlace()) &&\n (board.getBoard()[posR - 1][posC + 1].getPlace() != PlaceType.EMPTY) &&\n (board.getBoard()[posR - 2][posC + 2].getPlace() == PlaceType.EMPTY));\n } catch (ArrayIndexOutOfBoundsException ignored) {\n }\n return false;\n }", "public void checkForEdge() \n {\n if (getX() <= 1)\n {\n \n \n Greenfoot.playSound(\"pointScore.wav\");\n setLocation(getWorld().getWidth() / 2, getWorld().getHeight() / 2);\n dX = -dX;\n lWin++;\n \n MyWorld myWorld = (MyWorld) getWorld();\n myWorld.score2();\n \n wait = 0;\n \n }\n \n if(getX() >= getWorld().getWidth() -1 )\n {\n \n MyWorld myWorld = (MyWorld) getWorld();\n myWorld.score1();\n \n \n Greenfoot.playSound(\"pointScore.wav\");\n \n getWorld();\n setLocation(getWorld().getWidth() / 2, getWorld().getHeight() / 2);\n dX = -dX;\n rWin++;\n wait = 0;\n \n \n }\n\n \n }", "@Test\n\tpublic void testTOutOfBoundsRightMargin2() {\n\t\ttank.setX(460);\n\t\tassertEquals(false, tank.isWithinMarginsRight());\n\t}", "public boolean wolfAction() {\n if (game.wolfDetectedRRH())\n return true;\n else return false;\n }", "public void checkWin() {\n if (rockList.isEmpty() && trackerRockList.isEmpty() && bigRockList.isEmpty() && bossRockList.isEmpty()) {\n if (ship.lives < 5) {\n ship.lives++;\n }\n Level++;\n LevelIntermission = true;\n LevelIntermissionCount = 0;\n }\n }", "public Boolean isLevelBeat() {\r\n\t\tif (this.coinCount == 0)\r\n\t\t\treturn true;\r\n\t\treturn false;\r\n\t}", "public boolean displayRightArm() {\r\n\t\tfinal List<Block> newBlocks = new ArrayList<>();\r\n\t\tif (this.rightArmConsumed) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tfinal Location r1 = GeneralMethods.getRightSide(this.player.getLocation(), 1).add(0, 1.5, 0);\r\n\t\tif (!this.canPlaceBlock(r1.getBlock())) {\r\n\t\t\tthis.right.clear();\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (!(this.getRightHandPos().getBlock().getLocation().equals(r1.getBlock().getLocation()))) {\r\n\t\t\tthis.addBlock(r1.getBlock(), GeneralMethods.getWaterData(3), 100);\r\n\t\t\tnewBlocks.add(r1.getBlock());\r\n\t\t}\r\n\r\n\t\tfinal Location r2 = GeneralMethods.getRightSide(this.player.getLocation(), 2).add(0, 1.5, 0);\r\n\t\tif (!this.canPlaceBlock(r2.getBlock()) || !this.canPlaceBlock(r1.getBlock())) {\r\n\t\t\tthis.right.clear();\r\n\t\t\tthis.right.addAll(newBlocks);\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tthis.addBlock(r2.getBlock(), Material.WATER.createBlockData(), 100);\r\n\t\tnewBlocks.add(r2.getBlock());\r\n\r\n\t\tfor (int j = 1; j <= this.initLength; j++) {\r\n\t\t\tfinal Location r3 = r2.clone().toVector().add(this.player.getLocation().clone().getDirection().multiply(j)).toLocation(this.player.getWorld());\r\n\t\t\tif (!this.canPlaceBlock(r3.getBlock()) || !this.canPlaceBlock(r2.getBlock()) || !this.canPlaceBlock(r1.getBlock())) {\r\n\t\t\t\tthis.right.clear();\r\n\t\t\t\tthis.right.addAll(newBlocks);\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\tnewBlocks.add(r3.getBlock());\r\n\t\t\tif (j >= 1 && this.selectedSlot == this.freezeSlot && this.bPlayer.canIcebend()) {\r\n\t\t\t\tthis.addBlock(r3.getBlock(), Material.ICE.createBlockData(), 100);\r\n\t\t\t} else {\r\n\t\t\t\tthis.addBlock(r3.getBlock(), Material.WATER.createBlockData(), 100);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tthis.right.clear();\r\n\t\tthis.right.addAll(newBlocks);\r\n\r\n\t\treturn true;\r\n\t}", "private void checkRightWall(Invader invader) {\n\t\t\n\t\tif (invader.getX() >= BORDER) {\n\t\t\tInvader.setDirectionRight(false);\n\t\t\t\n\t\t\tadvanceInvaders();\n\t\t}\n\t}", "private boolean rightCollision(InteractiveObject obj){\n\t\treturn rightUpCollision(obj) || rightDownCollision(obj);\n\t}", "public boolean stepRight() {\n xMaze++;\n printMyPosition();\n return true; // should return true if step was successful\n }", "public boolean tileRock(float xTile, float yTile)\r\n/* 207: */ {\r\n/* 208:231 */ return (tileInBounds(xTile, yTile)) && (this.rock[((int)xTile)][((int)yTile)] != 0);\r\n/* 209: */ }", "public void checkIfShowerOn(){\n double currentSMA = mySMA.currentAverage();\n Log.d(LOGTAG,\"currentSMA: \"+currentSMA);\n Log.d(LOGTAG,\"isShowerOn: \"+ isShowerOn);\n if (currentSMA>SMA_THRESHOLD && !isShowerOn){\n //Initialize stuff to do once shower is on\n isShowerOn=true;\n startShower();\n } else if (currentSMA<SMA_THRESHOLD && isShowerOn){\n //Shutdown\n isShowerOn=false;\n endShower();\n }\n }", "boolean hasPitch();", "boolean hasPitch();", "@Test\n\tpublic void testTOutOfBoundsRightMargin3() {\n\t\ttank.setX(300);\n\t\tassertEquals(true, tank.isWithinMarginsRight());\n\t}", "public boolean canPlayHere(short side, short position) {\r\n\treturn this.currentSide == side && this.territory[side][position] != 0;\r\n }", "public boolean waveDestroyed() {\n return map.getHell().getEnemies().size() + map.getEarth().getEnemies().size() + map.getHeaven().getEnemies().size() == 0;\n }", "private boolean OK() {\r\n return in == saves[save-1];\r\n }", "public boolean didWin(){\n\t\tswitch(winCondition){\n\t\tcase \"catchEmAll\":\n\t\t\treturn caughtEmAll();\n\t\tdefault:\n\t\t\treturn caughtTwenty();\n\t\t}\n\t}", "public boolean checkUpDown() {\r\n\t\tif (p1[0] + p1[3] + p1[6] == 15)\r\n\t\t\treturn true;\r\n\t\telse if (p1[1] + p1[4] + p1[7] == 15)\r\n\t\t\treturn true;\r\n\t\telse if (p1[2] + p1[5] + p1[8] == 15)\r\n\t\t\treturn true;\r\n\t\telse if (p2[0] + p2[3] + p2[6] == 15)\r\n\t\t\treturn true;\r\n\t\telse if (p2[1] + p2[4] + p2[7] == 15)\r\n\t\t\treturn true;\r\n\t\telse if (p2[2] + p2[5] + p2[8] == 15)\r\n\t\t\treturn true;\r\n\r\n\t\treturn false;\r\n\t}", "public static boolean check_right_angled_tri(int [] side) {\n\t\tint a_sqr = side[0]*side[0];\n\t\tint b_sqr = side[1]*side[1];\n\t\tint c_sqr = side[2]*side[2];\n\t\t\n\t\t// boolean isIsosceles = check_isosceles_tri(a_side, b_side, c_side);\n\t\treturn ((a_sqr == b_sqr + c_sqr) || (b_sqr == a_sqr + c_sqr) || (c_sqr == a_sqr+b_sqr)) && isTri(side) ;\n\t}", "public void strafeRight()\r\n\t{\r\n\t\t//Following the camera:\r\n\t\tif(loc[1] > 1)\r\n\t\t{\r\n\t\t\tthis.loc[0] += Math.sin(Math.toRadians(heading))*distance; \r\n\t\t\tthis.loc[2] += Math.cos(Math.toRadians(heading))*distance;\r\n\t\t}\r\n\t}", "private boolean checkGreedyWinRate() {\r\n return myTotal.get(0) > enTotal.get(0)+2 && (myself.health > 50 || myself.health > opponent.health);\r\n }", "@Test\n\tpublic void lowerRight2SWCSpecial()\t\n\t{\n\t\tData d = new Data();\n\t\td.set(5, 99);\n\t\td.set(1, 110);\n\t\td.set(13, 98);\n\t\td.set(14, 109);\n\t\tArrayList<Coordinate> test_arr = d.shieldWallCapture(88);\n\t\tassertTrue(10==test_arr.get(0).getX() && 8==test_arr.get(0).getY()\n\t\t\t&& 10==test_arr.get(1).getX() && 9==test_arr.get(1).getY());\n\t}", "public boolean fireRightJet()\r\n\t{\r\n\t\treturn fireJet(new Point(-0.3, 0));\r\n\t}", "protected boolean isFinished() {\n \tdouble angle = Robot.driveBase.getGyroAngle();\n \tdouble angleDelta = Math.abs(requiredAngle - angle);\n \t\tRobot.m_oi.messageDriverStation(\"COMMAND AutoTurnRight DELTA angle is = \" + angleDelta);\n \tif (angleDelta <= kTolerance) {\n \t\tRobot.m_oi.messageDriverStation(\"COMMAND AutoTurnRight ARRIVED angle is = \" + Robot.driveBase.getGyroAngle());\n \t\treturn true;\n \t}\n return false;\n }", "public abstract boolean testRightmostBit();", "protected boolean isFinished() {\n \tif (Math.abs(_finalTickTargetLeft - Robot.driveTrain.getEncoderLeft()) <= 0 &&\n \t\t\tMath.abs(_finalTickTargetRight - Robot.driveTrain.getEncoderRight()) <= 0)\n \t{\n \t\treturn true;\n \t}\n return false;\n }", "private boolean isRightButtonEvent(MouseEvent me) {\r\n\t\treturn ((me.getModifiers() & MouseEvent.BUTTON3_MASK) == MouseEvent.BUTTON3_MASK);\r\n\t}", "public boolean isWin() {\n if (chosen_door.getContains() == Contains.CAR) {\n return true;\n }\n return false;\n }", "public boolean istVoll()\n\t{\n\t return (_spalte0 > 0) && (_spalte1 > 0) && (_spalte2 > 0);\n\t}", "private boolean didPlayerLose() {\r\n return mouseListeningMode && bird.getNumThrowsRemaining() == 0;\r\n }", "@Test\n\tpublic void upperRight1SWCSpecial()\t\n\t{\n\t\tData d = new Data();\n\t\td.set(5, 22);\n\t\td.set(1, 33);\n\t\td.set(13, 21);\n\t\td.set(14, 32);\n\t\tArrayList<Coordinate> test_arr = d.shieldWallCapture(44);\n\t\tassertTrue(10==test_arr.get(0).getX() && 2==test_arr.get(0).getY()\n\t\t\t&& 10==test_arr.get(1).getX() && 1==test_arr.get(1).getY());\n\t}", "public boolean levelJumped() {\n final int currentLevel = this.myLevel; \n \n this.myLevel = this.myLevelBalance + (this.myCurrentScoreInt / SCORE_GAP) + 1;\n \n return this.myLevel > currentLevel;\n }", "public static boolean rightSide(Point2D p0, Point2D p1, Point2D p) {\r\n return AlgoPoint2D.cross(AlgoPoint2D.subtract(p,p0),AlgoPoint2D.subtract(p1,p0)) > 0.0;\r\n }", "public static void checkWinCondition() {\n\t\twin = false;\n\t\tif (curPlayer == 1 && arrContains(2, 4))\n\t\t\twin = true;\n\t\telse if (curPlayer == 2 && arrContains(1, 3))\n\t\t\twin = true;\n\t\tif (curPlayer == 2 && !gameLogic.Logic.arrContains(2, 4))\n\t\t\tP2P.gameLost = true;\n\t\telse if (gameLogic.Logic.curPlayer == 1 && !gameLogic.Logic.arrContains(1, 3))\n\t\t\tP2P.gameLost = true;\n\t\tif (P2P.gameLost == true) {\n\t\t\tif (gameLogic.Logic.curPlayer == 1)\n\t\t\t\tEndScreen.infoWindow.setText(\"<html><center><b><font size=25 color=black> Black player won! </font></b></center></html>\");\n\t\t\telse\n\t\t\t\tEndScreen.infoWindow.setText(\"<html><center><b><font size=25 color=black> Red player won! </font></b></center></html>\");\n\t\t}\n\t\telse\n\t\t\twin = false;\n\t}", "private boolean isTractorInDitch() {\n\t\treturn position[0]>field[0]||position[1]>field[1];\n\t}", "private void checkLoosePLayer(){\n if (hero.getHp()<=0){\n loose();\n }\n\n }", "boolean hasSpeed();", "boolean hasSpeed();", "boolean hasSpeed();", "boolean hasSpeed();", "boolean hasSpeed();", "boolean hasSpeed();" ]
[ "0.6909925", "0.6325752", "0.6238291", "0.62066966", "0.6065843", "0.5970275", "0.59405863", "0.5934582", "0.5892563", "0.5877218", "0.57656133", "0.5735634", "0.5727752", "0.5720442", "0.57061315", "0.56278795", "0.5620817", "0.56124264", "0.56064236", "0.55792874", "0.55747306", "0.55708283", "0.55480903", "0.55480903", "0.55480903", "0.55480903", "0.55407137", "0.55385816", "0.55085", "0.5489875", "0.5488939", "0.54849184", "0.5483098", "0.54816103", "0.5478472", "0.5473481", "0.5471282", "0.54455197", "0.54317594", "0.5416389", "0.53909796", "0.53860724", "0.5376674", "0.53677374", "0.53496045", "0.53490615", "0.53438586", "0.53287876", "0.53262204", "0.5323499", "0.5314403", "0.53074914", "0.52977294", "0.52970797", "0.5281847", "0.52718794", "0.5223837", "0.52227366", "0.521351", "0.52096254", "0.5207306", "0.5205743", "0.5202461", "0.51986194", "0.5198496", "0.5196411", "0.5191299", "0.51910114", "0.5180199", "0.5175293", "0.5175293", "0.51663554", "0.51650965", "0.5156154", "0.515275", "0.5151315", "0.5147779", "0.5146458", "0.5145713", "0.5143524", "0.51425725", "0.5140242", "0.51392496", "0.5132961", "0.5130489", "0.5129158", "0.5126331", "0.51215106", "0.5120968", "0.51171976", "0.5107454", "0.5104083", "0.51008505", "0.5098012", "0.50975037", "0.5097457", "0.5097457", "0.5097457", "0.5097457", "0.5097457", "0.5097457" ]
0.0
-1
Converts all the values of a set of dices to an Integer array.
private static int[] convertDiceValueArray(ArrayList<Dice> dices) { int[] combos = new int[dices.size()]; for (int i = 0; i < dices.size(); i++) { combos[i] = dices.get(i).getValue(); } return combos; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract int[] toIntArray();", "public int[] convert(){\r\n int[] arreglo = new int[cedula.length()];\r\n for(int i=0; i<cedula.length(); i++){\r\n // convierte los char en int\r\n arreglo[i] = Character.getNumericValue(cedula.charAt(i));\r\n }\r\n return arreglo;\r\n }", "public int[][] toInt() {\r\n\t\tint dim=this.getDimensión();\r\n\t\tint convertida [][]=new int[dim][dim];\r\n\t\tfor(int i=0; i<dim; i++) {\r\n\t\t\tfor(int j=0; j<dim; j++) {\r\n\t\t\t\tconvertida[i][j]=this.getCuadrícula()[i][j].getValor();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn convertida;\r\n\t}", "public static int[] convertIntegersToArray(List<Integer> integers){\n \n \tint[] newArray = new int[integers.size()]; \n \tIterator<Integer> iterator = integers.iterator(); // Declare and create iterator on integers arraylist.\n \n for (int i = 0; i < newArray.length; i++){\n newArray[i] = iterator.next().intValue(); // add elements to newArray \n }\n \n return newArray;\n }", "int[] toArray();", "private static int[] toIntArray(List<Integer> shorts) {\n int[] array = new int[shorts.size()];\n for (int i = 0; i < shorts.size(); i++)\n array[i] = shorts.get(i).shortValue();\n return array;\n }", "public static int[] convertIntegers(ArrayList<Integer> Y_list) {\r\n\t int[] Y = new int[Y_list.size()];\r\n\t Iterator<Integer> iterator = Y_list.iterator();\r\n\t for (int i = 0; i < Y.length; i++)\r\n\t {\r\n\t Y[i] = iterator.next().intValue();\r\n\t }\r\n\t return Y;\r\n\t}", "int[] getInts();", "public int[] toIntArray(){\n int[] array = new int[getSeq().size()];\n for (int i = 0; i < array.length; i++) {\n char c = Character.toUpperCase(getSeq().get(i));\n array[i] = Sequence.convert(c);\n }\n return array;\n }", "public static int[] seriesValues(final EIASeries series) {\n\t\tfinal int[] src = EIA_VALUES[series.ordinal()], ret = new int[src.length];\n\t\t// Avoid some caller inadvertently modifying the originals\n\t\tSystem.arraycopy(src, 0, ret, 0, ret.length);\n\t\treturn ret;\n\t}", "public int[] makeInt(String[] vals){\n int[] result = new int[vals.length];\n\n for(int i = 0; i<=vals.length; i++){\n result[i] = Integer.parseInt(vals[i]);\n\n }\n\n return result;\n }", "public int[] toIntArray()\r\n {\r\n int[] a = new int[count];\r\n \r\n VectorItem<O> vi = first;\r\n \r\n for (int i=0;i<=count-1;i++)\r\n {\r\n a[i] = (Integer) vi.getObject();\r\n vi = vi.getNext();\r\n }\r\n\r\n return a; \r\n }", "private int[] getArray(Set<Integer> set) {\n int n = set.size();\n int[] array = new int[n];\n\n Iterator<Integer> iterator = set.iterator();\n int i = 0;\n while (iterator.hasNext()) {\n array[i] = iterator.next();\n i++;\n }\n return array;\n }", "public int[] getAsInts() {\n if (data instanceof int[]) {\n return (int[])data;\n } else if (data instanceof char[]){\n char[] cdata = (char[])data;\n int[] idata = new int[cdata.length];\n for (int i = 0; i < cdata.length; i++) {\n idata[i] = (int)(cdata[i] & 0xffff);\n }\n return idata;\n } else if (data instanceof short[]){\n short[] sdata = (short[])data;\n int[] idata = new int[sdata.length];\n for (int i = 0; i < sdata.length; i++) {\n idata[i] = (int)sdata[i];\n }\n return idata;\n } else {\n throw new ClassCastException(\n \"Data not char[], short[], or int[]!\");\n }\n }", "public static int[] toArray(Collection<Integer> a) {\n assert (a != null);\n int[] ret = new int[a.size()];\n int i = 0;\n for (int e : a)\n ret[i++] = e;\n return ret;\n }", "private int[] convertDoubleListToIntArray(List<Double> doubleList){\r\n\t\t\tint[] intArray = new int[doubleList.size()];\r\n\t\t\tfor(int i =0; i<doubleList.size(); i++){\r\n\t\t\t\t//intArray[i] = Integer.parseInt(String.valueOf(intList.get(i)));\r\n\t\t\t\tintArray[i] = doubleList.get(i).intValue();\r\n\t\t\t}\r\n\t\t\treturn intArray;\r\n\t\t}", "public static int[] converter(String[] a){\n int size = a.length;\n int[] integers = new int[size];\n for (int i = 0; i < size; i++) {\n integers[i] = Integer.parseInt(a[i]);\n }\n return integers;\n }", "public static int[] getPrice()\n {\n \n String TableData[][]= getTableData();\n int row=getRowCount();\n String SearchPrice[]=new String[row];\n int a[]=new int[row];\n for (int i=0;i<TableData.length;i++)\n {\n SearchPrice[i]= TableData[i][5];\n a[i]=Integer.parseInt(SearchPrice[i]); //converts the data into integer as it was in string\n }\n return a; //returns price array\n }", "public Object[] getScriptOfValuesAsInt() {\r\n\t\tArrayList valueDouble;\r\n\t\tvalueDouble = new ArrayList<Integer>();\r\n\r\n\t\tfor (DataVariable var : dataTestModel) {\r\n\t\t\tif (var.getType().equals(\"double\") || var.getType().equals(\"int\")) {\r\n\r\n\t\t\t\tif (var.getValue() != null && !var.getValue().equals(\"\")) {\r\n\r\n\t\t\t\t\tvalueDouble.add(var.getValue());\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\tvalueDouble.add(0);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tObject[] values = new Object[valueDouble.size()];\r\n\t\tint i = 0;\r\n\t\tfor (Object d : valueDouble) {\r\n\t\t\tif (d == null) {\r\n\t\t\t\td = 0;\r\n\t\t\t}\r\n\t\t\tvalues[i] = d;\r\n\r\n\t\t\ti++;\r\n\t\t}\r\n\t\treturn values;\r\n\r\n\t}", "public static int[] readIntegerVector(DataInputStream input) throws IOException {\n int length = input.readInt();\n\n int[] ret = new int[length];\n\n for (int i = 0; i < length; i++) {\n int value = input.readInt();\n ret[i] = value;\n }\n\n return ret;\n }", "public int[] readAllInts(){\n\t\tString[] fields=readAllStrings();\n\t\tint[] vals=new int[fields.length];\n\t\tfor (int i=0;i<fields.length;i++){\n\t\t\tvals[i]=Integer.parseInt(fields[i]);\n\t\t}\n\t\treturn vals;\n\t}", "public static int[] getIDs() {\n int[] res = new int[crossbows.length];\n for (int i = 0; i < crossbows.length; i++) {\n res[i] = (int)crossbows[i][0];\n }\n return res;\n }", "@ZenCodeType.Caster\n @ZenCodeType.Method\n default int[] asIntArray() {\n \n return notSupportedCast(\"int[]\");\n }", "private static int[] getArrayFromInteger(int i1) {\n\t\tString str = String.valueOf(i1);\r\n\t\tint length = str.length();\r\n\t\tint digits[] = new int[length];\r\n\t\tfor (int i = 0; i < length; i++) {\r\n\t\t\t// Converting char to int.\r\n\t\t\tdigits[i] = str.charAt(i) - 48;\r\n\t\t}\r\n\t\treturn digits;\r\n\t}", "public static Integer[] queryInts( String sql ) {\n \t\treturn query(sql).getColumnAs( 0, Integer[].class );\n \t}", "public int[] getIntArray() {\r\n\t\t\r\n\t\treturn (value.getIntArray());\r\n\t}", "public int[] getIntList();", "public static int[] converter(String[] a){\n int size = a.length - 1;\n int[] integers = new int[size];\n for (int i = 0; i < size; i++) {\n integers[i] = Integer.parseInt(a[i+1]);\n }\n return integers;\n }", "public static int[] generaValoresAleatorios() {\n\t\treturn new Random().ints(100, 0, 1000).toArray();\n\t}", "protected int[] readIntArray(BinaryDataReader dataReader) throws IOException\n\t{\n\t\tlong offset = ((long) this.value) & 0xffffffffL;\n\n\t\t// allocate memory for result\n\t\tint[] res = new int[this.count];\n\n\t\t// save pointer location\n\t\tlong saveLoc = dataReader.getFilePointer();\n\n\t\t// fill up array\n\t\tdataReader.seek(offset);\n\t\tfor (int c = 0; c < this.count; c++)\n\t\t{\n\t\t\tres[c] = dataReader.readInt();\n\t\t}\n\t\t\n\t\t// restore pointer and return result\n\t\tdataReader.seek(saveLoc);\n\t\treturn res;\n\t}", "public static int[] readInts() {\n return readAllInts();\n }", "public static int[] getValues(vtkCellArray array)\n\t{\n\t\tarray.Squeeze();\n\t\tvtkIdTypeArray data = array.GetData();\n\t\tint[] toReturn = getValues(data);\n\t\treturn toReturn;\n\t}", "public Integer[] createArray() {\n Integer[] value = new Integer[defaultLaenge];\n\n for (int i = 0; i < value.length; i++) {\n value[i] = (int)(value.length*Math.random());\n }\n\n return value;\n }", "private Data[] getInts(double value, int npoints, int nattributes)\n\t{\n\t\tData[] data = new Data[npoints];\n\t\tint val = (int) (value * Integer.MAX_VALUE);\n\t\tfor (int i = 0; i < npoints; i++)\n\t\t\tdata[i] = nattributes == 1 ? new DataInt(val)\n\t\t: new DataArrayOfInts(new int[] { val, val });\n\t\t\treturn data;\n\t}", "public static int[] toIntArray(String arr[])\r\n\t{\r\n\t\tint length = arr.length;\r\n\t\tint[] numeros = new int[length];\r\n\t\tfor (int i = 0; i < length; ++i) {\r\n\t\t\tnumeros[i] = Integer.parseInt(arr[i]);\r\n\t\t}\r\n\t\treturn numeros;\r\n\t}", "public static int[] convertArray(double[] array) {\r\n\t\t int[] intArray = new int[array.length];\r\n\t\t for (int i=0; i<intArray.length; ++i) {\r\n\t\t intArray[i] = (int) Math.round(array[i]);\r\n\t\t }\r\n\t\t return intArray;\r\n\t }", "public int[] numbers();", "public static int[] msgSetToIds(final Set<DcMsg> dcMsgs) {\n int cnt = dcMsgs==null? 0 : dcMsgs.size();\n int[] ids = new int[cnt];\n int i = 0;\n for (DcMsg dcMsg : dcMsgs) {\n ids[i++] = dcMsg.getId();\n }\n return ids;\n }", "public static int[] volteaArrayInt(int array[]) {\n int aux[] = new int[array.length];\n int cont = aux.length;\n for (int n : array) {\n aux[--cont] = n;\n }\n return aux;\n }", "@Override\n public int[] getInts(int index, int length) throws ArrayIndexOutOfBoundsException {\n if (length == 0) {\n return new int[0];\n }\n \n List<Value> values = array.getValues(index, length);\n int[] result = new int[values.size()];\n for (int i = 0; i < result.length; i++) {\n result[i] = ((IntegerValue)values.get(i)).intValue();\n }\n return result;\n }", "public int [] covertirInt(String [] a) {\n\t\n\t\n\t int [] temporal = new int [a.length-1];\n\t\n\t\n\t for (int i =0; i<temporal.length;i++) {\n\t \n\t\t temporal[i]=Integer.parseInt(a[i+1]);\n\t }\n \n \n\t return temporal;\n\t\n}", "static public int[] toArray(IntArray array){\r\n final int[] result = new int[array.getLength()];\r\n for (int i = 0; i < array.getLength(); i++) {\r\n result[i] = array.getData(i);\r\n }\r\n return result;\r\n }", "public List<Integer> convert (List<int[]> list) {\r\n\r\n List<Integer> result = new ArrayList<>();\r\n for(int[] array : list) {\r\n for (int i = 0; i < array.length; i++) {\r\n result.add(array[i]);\r\n }\r\n }\r\n return result;\r\n }", "public static <U> int[] mapToInt(U[] list, Mapper<? super U> mapper) {\n int[] mappedValues = new int[list.length];\n\n for (int i = 0; i < list.length; i++) {\n // Map the object to an int\n mappedValues[i] = mapper.map(list[i]);\n }\n\n return mappedValues;\n }", "private static int[] doubleToInt(double[] s, int[] d) {\n // for (int i = 0; i < d.length; i++) {\n // d[i] = s[i];\n // }\n // return d;\n for (int i=0; i < s.length; i++) {\n d[i] = (int) s[i];\n }\n return d;\n }", "public int[] stringToIntArray(String input){\n \tSystem.out.println(input);\n \n \tString[] StringArray = input.split(\",\");\n \tfor(String intString:StringArray)\n \t {\n \t\tSystem.out.println(intString);\n \t }\n \n \tint[] intArray = new int[StringArray.length];\n \n \tint i = 0;\n \tfor(String intString:StringArray)\n \t {\n \t\tSystem.out.println(intString);\n \t\t int x = Integer.parseInt(intString);\n \t\t intArray[i] = x;\n \t\t i++;\n \t }\n \treturn intArray;\n }", "public static int[] toIntArray(String s) {\n\t\tString[] stringArray = s.split(\"(?!^)\");\n\t\tint[] intArray = new int[stringArray.length];\n\t\tint i = 0;\n\t\tfor (String string2 : stringArray) {\n\t\t\tint decimal = Integer.parseInt(string2, 16);\n\t\t\tintArray[i] = decimal;\n\t\t\ti++;\n\t\t\t// System.out.println(\"Hex value is \" + decimal);\n\t\t\t// System.out.println(string2);\n\t\t}\n\t\treturn intArray;\n\t}", "public static int[] intiArray(int num){\n\t\tint[] numArray = new int[num];\n\t\tfor(int i = 0; i < num; i++){\n\t\t\tnumArray[i] = i+1;\n\t\t}\n\t\treturn numArray;\n\t}", "public int[] getIntArray(String name)\r\n throws NumberFormatException\r\n {\r\n String[] data = getString(name).split(\",\");\r\n int[] value = new int[data.length];\r\n for( int i=0; i<data.length; i++ )\r\n value[i] = Integer.parseInt(data[i].trim());\r\n \r\n return value;\r\n }", "public int[] numberToArray(String n) {\n\t\tint arr[] = new int[n.length()];\n\t\tfor(int i = 0; i < n.length(); i++) {\n\t\t\tarr[i] = Character.getNumericValue(n.charAt(i));\n\t\t}\n\t\treturn arr;\n\t}", "public static int[] toIntArray(String arr[])\n {\n int[] iArray = new int[arr.length];\n for(int i=0;i< arr.length;i++){\n iArray[i]= Integer.parseInt(arr[i]);\n }\n return iArray;\n }", "public int[] array1To100() {\n int[] sirDeLa1La100 = new int[100];\n for (int i = 0; i < sirDeLa1La100.length; i++) {\n sirDeLa1La100[i] = i + 1;\n }\n return sirDeLa1La100;\n }", "public int[] getIntArray(final String key) {\n return getIntArray(key, ArrayUtils.EMPTY_INT_ARRAY);\n }", "@Override\n public int[] toArray() {\n int[] result = new int[size];\n Entry tmp = first;\n for (int i = 0; i < size; i++) {\n result[i] = tmp.value;\n tmp = tmp.next;\n }\n return result;\n }", "public int[] getSetVal(SetVar s) {\n if (empty) {\n throw new UnsupportedOperationException(\"Empty solution. No solution found\");\n }\n return setmap.get(s);\n }", "public static int[] getID()\n {\n \n String TableData[][]= getTableData();\n int row=getRowCount();\n int ID[]=new int[row];\n for (int i=0;i<TableData.length;i++)\n {\n ID[i]= Integer.parseInt(TableData[i][0]);//converts the data into integer as it was in string\n }\n return ID; //returnd ID array\n }", "public static long[] toArray(UIDSet[] uidset) {\n\t//return toArray(uidset, -1);\n\tif (uidset == null)\n\t return null;\n\tlong[] uids = new long[(int)UIDSet.size(uidset)];\n\tint i = 0;\n\tfor (UIDSet u : uidset) {\n\t for (long n = u.start; n <= u.end; n++)\n\t\tuids[i++] = n;\n\t}\n\treturn uids;\n }", "int[] getValues()\n {\n return values_;\n }", "public int[] toArray() \n {\n \treturn arrayCopy(state);\n }", "private int[] convertToIntArray(String value) {\r\n\t\tString[] items = StringUtils.split(value, \"#\");\r\n\t\tint[] result = new int[items.length];\r\n\t\tfor (int i = 0; i < items.length; i++) {\r\n\t\t\tresult[i] = Integer.parseInt(items[i]);\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "int[] getDigits();", "public static ArrayList<Integer> obtenerArregloInteger(String[] arreglo) {\n\t\tArrayList<Integer> datos = new ArrayList<Integer>();\n\t\tfor (int i = 0; i < arreglo.length; i++) {\n\t\t\tdatos.add(Integer.valueOf(arreglo[i]));\n\t\t}\n\t\treturn datos;\n\t}", "public abstract int[] getInts(int paramInt1, int paramInt2, int paramInt3, int paramInt4);", "public static void populateValues()\n\t{\n\t\tvalues = new int[127];\n\t\tfor(int i = 0; i < 127; i++)\n\t\t{\n\t\t\tif(i < 64)\n\t\t\t\tvalues[i] = 1;\n\t\t\telse if (i < 96)\n\t\t\t\tvalues[i] = 2;\n\t\t\telse if (i < 112)\n\t\t\t\tvalues[i] = 4;\n\t\t\telse if (i < 120)\n\t\t\t\tvalues[i] = 8;\n\t\t\telse if (i < 124)\n\t\t\t\tvalues[i] = 16;\n\t\t\telse if (i < 126)\n\t\t\t\tvalues[i] = 32;\n\t\t\telse \n\t\t\t\tvalues[i] = 64;\n\t\t}\n\t}", "private List<Integer> toList(int[] array) {\n List<Integer> list = new LinkedList<Integer>();\n for (int item : array) {\n list.add(item);\n }\n return list;\n }", "private int[] getIntArray(int[][] histogram)\n {\n int[] histValues = new int[grid_size * BINS];\n int index = 0;\n for(int i = 0; i < histogram.length; i++)\n {\n for(int k = 0; k < histogram[i].length; k++)\n {\n histValues[index++] = histogram[i][k];\n }\n }\n\n return histValues;\n }", "@Override\n\tpublic int[] numbers() {\n\t\tint length = squarelotron.length;\n\t\t//sets the first count to 0\n\t\tint count = 0;\n\t\t//loops through each outer and then inner variable in the squarelotron and records a count for each\n\t\tfor(int i = 0; i < length; i++){\n\t\t\tfor(int j = 0; j < squarelotron[i].length; j++){\n\t\t\t\tcount = count +1;\n\t\t\t}\n\t\t}\n\t\t//sets count2 as zero, this will do the same thing as the original count but use it as an index marker for the array\n\t\tint count2 = 0;\n\t\t//defines a new array having the length of the total number of variables\n\t\tint[] array = new int[count];\n\t\t//loops through the squarelotron and stores each variable in the array\n\t\tfor(int a = 0; a < length; a++){\n\t\t\tfor(int j = 0; j < squarelotron[a].length; j++){\n\t\t\t\tint d = squarelotron[a][j];\n\t\t\t\tarray[count2]=d;\n\t\t\t\tcount2 = count2 + 1;\n\t\t\t}\n\t\t}\n\t\treturn array;\n\t}", "public int[] _iArray(int res_id) {\n\t\treturn mContext.getResources().getIntArray(res_id);\n\t}", "public int convertValues(int[] valueArray, int[][] matrixCID){\n\t\tint value = cidToLength(valueArray[0], matrixCID);\n\t\tfor(int i = 1; i < valueArray.length; i++){\n\t\t\tif(valueArray[i] != 0){\n\t\t\t\tvalue -= cidToLength(valueArray[i], matrixCID); //removes the CID lengths the code clone contains\n\t\t\t}\n\t\t}\n\t\treturn value;\n\t}", "private int[] arrayListToIntList(ArrayList<Integer> arrayList){\n int[] list=new int[arrayList.size()];\n for(Integer integer:arrayList){\n list[arrayList.indexOf(integer)]=integer;\n }\n return list;\n }", "private static List<Integer> StringToIntForSelectBoxes(){\n\t\tString[] noOfEachPaxType = {pro.getProperty(\"noOfAdults\"), pro.getProperty(\"noOfChildren\"), pro.getProperty(\"noOfInfants\")};\n\t\tList<String> noOfEachPaxTypeList = Arrays.asList(noOfEachPaxType);\n\t\tList<Integer> noOfEachPaxTypeListAsInt = new ArrayList<>();\n\n\t\tfor(int i = 0; i < noOfEachPaxTypeList.size(); i++){\n\t\t\tInteger paxCount = Integer.parseInt(noOfEachPaxTypeList.get(i));\n\t\t\tnoOfEachPaxTypeListAsInt.add(paxCount);\n\t\t}\n\t\treturn noOfEachPaxTypeListAsInt;\n\t}", "public int[] getListOfId() {\r\n\t\tString sqlCommand = \"SELECT Barcode FROM ProductTable\";\r\n\t\tint[] idList = null;\r\n\t\tArrayList<Integer> tmpList = new ArrayList<Integer>();\r\n\t\tint counter = 0;\r\n\t\ttry (Connection conn = this.connect();\r\n\t\t\t\tStatement stmt = conn.createStatement();\r\n\t\t\t\tResultSet rs = stmt.executeQuery(sqlCommand)) {\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\ttmpList.add(rs.getInt(\"Barcode\"));\r\n\t\t\t\tcounter++;\r\n\t\t\t}\r\n\t\t\tidList = new int[counter];\r\n\t\t\tfor (int i = 0; i < counter; i++) {\r\n\t\t\t\tidList[i] = tmpList.get(i);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out.println(\"getListOfId: \"+e.getMessage());\r\n\t\t\treturn new int[0]; \r\n\t\t}\r\n\t\treturn idList;\r\n\t}", "public static int[] parseInt(String val[]) {\n\n\t\tif (val != null) {\n\t\t\tint ret[] = new int[val.length];\n\n\t\t\tfor (int i = 0; i < val.length; i++) {\n\t\t\t\tret[i] = parseInt(val[i]);\n\t\t\t}\n\n\t\t\treturn ret;\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public int[][] convertPairsToIntTable(List<PairOfInts> pairList) {\n\t\tint tableSize = 0;\n\t\tif(pairList != null) tableSize = pairList.size();\n\t\t\n\t\tint[][] tableOfPairs = new int[tableSize][MAX_RANGE_SIZE];\n\t\tint count = 0;\n\t\t\n\t\tfor(PairOfInts pair : pairList) {\n\t\t\tif(pair != null) {\n\t\t\t\ttableOfPairs[count][0] = pair.getNumber1();\n\t\t\t\ttableOfPairs[count][1] = pair.getNumber2();\n\t\t\t}\n\t\t\tcount++;\n\t\t}\n\t\treturn tableOfPairs;\n\t}", "public int[] convertPlacementData(HashSet<Coordinate> locationToConvert) {\r\n int[] converted = new int[locationToConvert.size()];\r\n Iterator<Coordinate> it = locationToConvert.iterator();\r\n int index = 0;\r\n while (it.hasNext()) {\r\n Coordinate converting = it.next();\r\n converted[index] = (converting.getxCoord()-65) + ((converting.getyCoord()-1)*12);\r\n index++;\r\n }\r\n return converted;\r\n }", "public int[] getValueArray() {\n return value;\n }", "int[] parseIntArray(String[] ar)\n {\n int[] int_ar = new int[ar.length];\n for (int i = 0; i < int_ar.length; i++)\n {\n int_ar[i] = Integer.parseInt(ar[i]);\n }\n return int_ar;\n }", "private int toInt(int[] arrValue) {\n // convert int[] to int\n StringBuilder temp = new StringBuilder();\n\n int i = 0;\n while (i < arrValue.length) {\n temp.append(arrValue[i]);\n i++;\n }\n\n return Integer.parseInt(temp.toString());\n }", "public int[] getIntArray(String name, String delimiter) {\n\t\tfinal Object val = values.get(name);\n\t\tif (val == null) {\n\t\t\treturn null;\n\t\t}\n\t\tif (val instanceof Number) {\n\t\t\treturn new int[]\n\t\t\t\t\t{\n\t\t\t\t\t\t\t((Number) val).intValue()\n\t\t\t\t\t};\n\t\t}\n\t\t\n\t\tint c = 0;\n\t\tString[] vals = ((String) val).split(delimiter);\n\t\tint[] result = new int[vals.length];\n\t\tfor (String v : vals) {\n\t\t\ttry {\n\t\t\t\tresult[c++] = Integer.parseInt(v);\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new IllegalArgumentException(\"Integer value required, but found: \" + val);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public int[] is() {\n int rval[] = new int[size()];\n for (int i = 0; i < rval.length; i++) {\n rval[i] = get(i) == null ? 0 : get(i).intValue();\n }\n return rval;\n }", "public int[] getDependLineIDArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(DEPENDLINEID$26, targetList);\n int[] result = new int[targetList.size()];\n for (int i = 0, len = targetList.size() ; i < len ; i++)\n result[i] = ((org.apache.xmlbeans.SimpleValue)targetList.get(i)).getIntValue();\n return result;\n }\n }", "protected static int[] convert(byte[] packet) {\n\t\tint[] p = new int[packet.length - 3];\n\t\t\n\t\t// would arrayscopy work here?\n\t\tfor(int i = 2; i < packet.length - 1; i++) {\n\t\t\tp[i - 2] = packet[i] & 0xFF;\n\t\t}\n\t\t\n\t\treturn p;\n\t}", "@Override\n\tpublic int[] toArray() {\n\t\treturn null;\n\t}", "public int[] byte2intArray(byte[] bytes){\n ByteBuffer buf = ByteBuffer.wrap(bytes);\n\n int[] result = new int[bytes.length / Integer.BYTES];\n for (int i = 0; i < result.length; i++) {\n result[i] = buf.getInt();\n }\n\n return result;\n }", "public static Integer[] prepareRandomIntegerArray(int size) {\n\t\tInteger[] array = new Integer[size];\n\t\tfor (int j = 0; j < size; j++) {\n\t\t\tarray[j] = (int) ((Math.random() * 1000000));\n\t\t}\n\t\treturn array;\n\t}", "public long[] toArray() {\n/* 406 */ long[] array = new long[(int)(this.max - this.min + 1L)];\n/* 407 */ for (int i = 0; i < array.length; i++) {\n/* 408 */ array[i] = this.min + i;\n/* */ }\n/* 410 */ return array;\n/* */ }", "public static int[] getIntegers(int number){\n System.out.println(\" Enter \" + number + \" integer values.\\r\");\n int[] values = new int[number];\n\n for(int i =0; i < values.length; i++){\n values[i] = scanner.nextInt();\n }\n\n return values;\n\n }", "public static double[] countsToPhysicalValues(final int[] inArray, final double countConv) {\r\n if ((inArray == null) || (inArray.length == 0)) {\r\n return new double[0];\r\n }\r\n int length = inArray.length;\r\n double[] result = new double[length];\r\n \r\n for (int i = 0; i < length; i++) {\r\n result[i] = inArray[i] * countConv;\r\n }\r\n return result;\r\n }", "public Iterable<Integer> getIntegers(String key);", "public static int[] allFoodIds() {\n return new int[]{\n Items.HERRING_347,\n Items.TUNA_361,\n Items.SALMON_329,\n Items.TROUT_333,\n Items.LOBSTER_379,\n Items.SWORDFISH_373,\n Items.MONKFISH_7946,\n Items.BASS_365,\n Items.SHARK_385,\n Items.MEAT_PIZZA_2293,\n 2295, // Half Meat Pizza\n Items.PEACH_6883,\n Items.CAKE_1891,\n 1893, // 2/3 Cake\n Items.SLICE_OF_CAKE_1895,\n Items.ANGLERFISH_13441,\n Items.JUG_OF_WINE_1993\n };\n }", "public static int[] volteaArrayInt(int[]array) { \n \n int[] aux = new int [array.length];\n \n for(int i = 0 ; i < array.length; i++){\n aux[array.length - i - 1] = array[i];\n }\n return aux;\n }", "public int[][][] testIntArray(int[][][] in) throws java.rmi.RemoteException {\n for (int i=0; i < in.length; i++) {\n int[][] array2 = in[i];\n if (array2 != null)\n for (int j=0; j < array2.length; j++) {\n int[] array3 = array2[j];\n if (array3 != null)\n for (int k=0; k <array3.length; k++) {\n if (array3[k] == i + 10*j + 100*k)\n array3[k] += 1000;\n }\n }\n }\n return in;\n }", "public static int[] convertImageToIntArray(Image image)\n {\n // Get byte array representing every pixels of the image\n return ((DataBufferInt)convertImageToBufferedImage(image).getRaster().getDataBuffer()).getData();\n }", "public static int[] getValues(int states) throws IllegalArgumentEvent {\r\n\t\tint[] values = new int[9];\r\n\t\tint i = 0;\r\n\t\tfor(i = 0; i < 9; i++){\r\n\t\t\tvalues[i] = getValue(states, i);\r\n\t\t}\r\n\t\treturn values;\r\n\t}", "private int[] removeDuplicate() {\n\n\t\t//Add int array elements to HashSet\n\t\tSet<Integer> temp = new HashSet<Integer>();\n\t\t\n\t\tfor(int num : randomIntegers){\n\t\t\ttemp.add(num);\n\t\t}\n\n\t\t//convert LinkedHashSet to integer array\n\t\tint[] uniqueNumbers = new int[temp.size()];\n\t\tint i = 0;\n\t\t\n\t\tfor (Iterator<Integer> iterator = temp.iterator(); iterator.hasNext();) {\n\t\t\tuniqueNumbers[i++] = iterator.next();\n\t\t}\n\n\t\treturn uniqueNumbers;\n\t}", "private void valuesToArray() {\n arrayValues = new int[Board.ROWS][Board.COLUMNS];\n StringTokenizer tokenizer = new StringTokenizer(boardValuesString, \",\");\n\n for (int i = 0; i < Board.ROWS; i++) {\n for (int j = 0; j < Board.COLUMNS; j++) {\n // skip the * at the beginning for user placed values.\n String cellValueString = tokenizer.nextToken();\n int cellValue;\n if (!cellValueString.contains(BoardSaver.CELL_USER_VALUE_INDICATOR)) {\n cellValue = Integer.parseInt(cellValueString);\n } else {\n cellValue = Integer.parseInt(cellValueString.substring(1));\n }\n arrayValues[i][j] = cellValue;\n }\n }\n }", "public int[] getArticulationVertices() {\n int[] xs = new int[set.cardinality()];\n for (int x = set.nextSetBit(0), i = 0;\n x >= 0;\n x = set.nextSetBit(x + 1), i++) {\n xs[i] = x;\n }\n return xs;\n }", "public int[] getSelectedRows() {\n ArrayList tmp = new ArrayList(NUMBER_OF_GAMES);\n\n for (int i = 0; i < NUMBER_OF_GAMES; i++) {\n if (singleSystem[i] != 0) {\n tmp.add(new Integer(singleSystem[i]));\n }\n }\n\n // fix upp return value, e.g as a int[].\n int size = tmp.size();\n int[] returnValue = new int[size];\n\n for (int i = 0; i < size; i++) {\n returnValue[i] = ((Integer) tmp.get(i)).intValue();\n }\n\n return returnValue;\n }", "@VisibleForTesting\n protected static ArrayList<Integer> formatGalileoDwrdIntArray(String dwrd) {\n // Removing last word, as u-center does\n String data = dwrd.substring(0, dwrd.length() - 8);\n ArrayList<Integer> dataArray = ParserUtils.getTwosComplementArray(data);\n // Removing bytes 16 and 32 (they are padding which should be always zero)\n dataArray.remove(15);\n dataArray.remove(30);\n return dataArray;\n }", "static List<Integer> arrayToList(int[] array) {\r\n List<Integer> list = new ArrayList<Integer>();\r\n for(int i : array)\r\n list.add(i);\r\n return list;\r\n }" ]
[ "0.66765356", "0.6464409", "0.64365286", "0.6431172", "0.64131016", "0.6357208", "0.6351893", "0.631299", "0.6295395", "0.6266258", "0.6256028", "0.62431854", "0.6207361", "0.6124252", "0.6084391", "0.60667276", "0.60640013", "0.6043188", "0.6042495", "0.602003", "0.5965674", "0.5951428", "0.5930119", "0.5913016", "0.5899409", "0.5888093", "0.58779687", "0.5858484", "0.57961947", "0.57949436", "0.5794502", "0.5740875", "0.5726986", "0.5689427", "0.56834495", "0.56455815", "0.5634974", "0.5613704", "0.5611437", "0.5589526", "0.5587816", "0.5571519", "0.55543154", "0.5547286", "0.554575", "0.55450845", "0.5542267", "0.5527927", "0.5527338", "0.5511974", "0.55080956", "0.549729", "0.54952157", "0.5493774", "0.54817253", "0.54784316", "0.5467439", "0.5466976", "0.54649776", "0.5448508", "0.5440472", "0.5438162", "0.54310286", "0.5420668", "0.54178286", "0.53972316", "0.53968793", "0.5391779", "0.538702", "0.53780836", "0.5375064", "0.53731704", "0.5372832", "0.5370009", "0.53609085", "0.5358113", "0.53207064", "0.53073376", "0.5305028", "0.52981186", "0.5293753", "0.5289368", "0.52508366", "0.52438766", "0.52425635", "0.5232875", "0.5227889", "0.52267975", "0.52114946", "0.52105033", "0.52073604", "0.52042645", "0.52021295", "0.51784897", "0.51657826", "0.5163321", "0.5159472", "0.51585966", "0.51573", "0.5157092" ]
0.83198225
0
Calculates the Score of the dices by iterating over an Integer array several passes so make sure no score gets missed.
public static int calcScore(ArrayList<Dice> dices, int findValue) { int[] combos = convertDiceValueArray(dices); permutations = new ArrayList<>(); score = new ArrayList<>(); findPermutations( 0,combos); for(int arr[] : permutations){ compareArrays(arr, findValue); } int max = 0; for(int a : score){ if(max < a) max = a; } return max; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int greedy(int[] dice){\n int[] count = new int[5];\n // so inversely the variable for each score => count[score-1]\n // I handled the count process with a foreach loop\n // it iterates the values of the given array, checks scores and assigns count using a switch case\n for (int score: dice) {\n switch (score){\n case 1 -> count[0]++;\n case 2 -> count[1]++;\n case 3 -> count[2]++;\n case 4 -> count[3]++;\n case 5 -> count[4]++;\n case 6 -> count[5]++;\n }\n } \n\n // > CHECKING IF THERE'S A COUNT OF 3 AND ASSIGNING POINTS\n // A variable to hold the points is needed\n int points = 0;\n //check if there is a count of 3 in the count array, using a fori loop to keep track of the score value being iterated\n for (int i = 0, score = i+1 ; i < count.length; i++) {\n //if found\n if(count[i] > 2){\n // assign points\n // * points system for 3 occurrences\n // Three 1's => 1000 points\n // Three 6's => 600 points\n // Three 5's => 500 points\n // Three 4's => 400 points\n // Three 3's => 300 points\n // - score 1's point is a special case\n // - for the rest, points awarded = score*100\n if(score == 1){\n points += 1000;\n count[i] -= 3;\n }else{\n points += (score *100);\n count[i] -= 3;\n }\n }\n }\n\n // > CHECKING IF THE SCORE 1 AND 5 HAVE OCCURRENCES > 0 AND ASSIGNING POINTS IF TRUE\n //if true\n if(count[0] > 0)\n points += (100* count[0]);\n if(count[4] > 0)\n points += (50 * count[4]);\n return points;\n }", "void onThrowPostPossibleScores(SparseArray<Dice> dices);", "public static int calcScoreLow(ArrayList<Dice> dices) {\n\n int[] arr = convertDiceValueArray(dices);\n int sum = 0;\n for (int i = 0; i < arr.length; i++) {\n\n if (arr[i] <= SCORE_LOW) {\n sum += arr[i];\n }\n }\n Log.d(\"SCORECALC\", String.valueOf(sum));\n return sum;\n }", "public int sumDice(Die[] dice, int value){\n int subTotal = 0;\n\n // facevalue is getting the dice now\n for(Die die: dice){\n int facevalue = die.getFaceValue();\n\n // If facevalue equals to the value then subtotal will be returnable as long as there is a matched int\n if(facevalue == value){\n\n\n // subTotal will be greater or equals to faceValue then\n subTotal += facevalue;\n }}return subTotal;}", "public int diceSum(Die[] dice) {\n int sum = 0;\n for (Die d : dice) {\n sum += d.getFace();\n }\n return sum;\n }", "public static void compareArrays(int[] compare, int find) {\n int[] arr = Arrays.copyOfRange(compare, 0, compare.length);\n int totalScore = 0;\n\n // Outer loop\n for (int i = 0; i < arr.length; i++) {\n\n int currentSum = find; // Reset each pass\n\n for (int j = 0; j < arr.length - i; j++) {\n\n currentSum -= arr[i + j];\n\n if (currentSum < 0) continue;\n\n // Combination found\n if (currentSum == 0) {\n\n // Sets dices used for calculation to 0;\n for (int y = i; y <= i + j; y++) {\n arr[y] = 0;\n }\n totalScore += find;\n currentSum = find; // reset\n i = 0; // Reset outer loop\n j = -1; // Reset inner loop\n }\n }\n }\n score.add(totalScore);\n }", "public int roll(int dices){\n int faces[] = new int[dices];\n int total = 0;\n Dice dice = new Dice();\n for(int i = 0; i < dices; i++){\n faces[i] = (dice.rand.nextInt(6) + 1);\n }\n for(int i = 0; i < faces.length-1; i++){\n if(faces[i] != faces[i+1]){\n this.isDouble = false;\n break;\n }\n else{\n this.isDouble = true;\n }\n }\n if(this.isDouble == true){\n this.twiceCounter++;\n }\n for(int i = 1; i < faces.length+1; i++){\n System.out.print(\"The \" + i + \". dice: \" + faces[i-1] + \" \");\n total += faces[i-1];\n }\n System.out.println(\" and the sum is \" + total);\n\n return total;\n }", "public static Integer getScoreFor_RollOnTwoPairs(Dice dice) \r\n\t{\r\n\t\tlog.debug(\"Inside method getScoreFor_RollOnTwoPairs\");\r\n\t\t\r\n\t\tInteger score = 0;\r\n\t\tInteger tempScore = 0;\r\n\t\tInteger pairCount = 0;\r\n\t\t\r\n\t\tMap<Integer, Integer> map = dice.getDiceNumberCountMap();\r\n\t\t\r\n\t\tfor ( Integer diceNumber : map.keySet() )\r\n\t\t{\r\n\t\t\t// if we can find a number in pair\r\n\t\t\tif ( map.get(diceNumber) >= 2 ) \r\n\t\t\t{\r\n\t\t\t\tpairCount = pairCount + 1;\r\n\t\t\t\t\r\n\t\t\t\ttempScore = tempScore + diceNumber * 2;\r\n\t\t\t\t\r\n\t\t\t\t// if pair count is 2 then score\r\n\t\t\t\tscore = ( pairCount == 2 ) ? tempScore : score;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn score;\r\n\t}", "public void throwDice()\n {\n System.out.println( name + \"'s Turn \" + (turnNumber + 1) + \" Results for Round \" + round + \": \");\n turnScores[turnNumber] = 0;\n System.out.print(\"Dice Throws: \");\n for (int diceNumber = 0; diceNumber < diceThrows[turnNumber].length; diceNumber++)\n {\n int diceThrow = r.nextInt(6) + 1;\n diceThrows[turnNumber][diceNumber] = diceThrow;\n turnScores[turnNumber] += diceThrow;\n totalScore += diceThrow;\n System.out.print(diceThrows[turnNumber][diceNumber] + \" \");\n }\n System.out.print(\" Score This Turn: \" + turnScores[turnNumber] + \" \");\n System.out.println(\" \" + name + \"'s Running Total Score: \" + totalScore + \"\\n\");\n \n turnNumber++;\n }", "public int numbers(int[] dice, int category) {\n\t\tint countScore=0;\n\t\tfor (int i = 0;i < n_dice; i++) {\n\t\t\tif(dice[i]==category) {\n\t\t\t\tcountScore=countScore+dice[i];\n\t\t\t}\n\t\t}\n\t\treturn countScore;\n\t}", "private static int[] convertDiceValueArray(ArrayList<Dice> dices) {\n int[] combos = new int[dices.size()];\n\n for (int i = 0; i < dices.size(); i++) {\n combos[i] = dices.get(i).getValue();\n }\n return combos;\n }", "static int calculateScore(Card[] winnings) {\n int score = 0;\n for (Card card : winnings)\n if (card != null)\n score++;\n else\n break;\n return score;\n }", "static int distributeCandy(int[] score) {\n java.util.TreeMap<Integer,Integer> candcalmap=new java.util.TreeMap<Integer,Integer>();\n int totcand=0,numcan=1;\n /* for(int indx=1;indx<score.length;indx++)\n {\n while(score[indx-1]<(indx<score.length?score[indx]:Integer.MAX_VALUE))\n {\n numcan++;\n indx++;\n totcand+=numcan;\n //System.out.println(numcan+\"-\"+indx+\":\"+totcand);\n if(indx==score.length)\n break;\n }\n numcan=1;\n totcand+=numcan;\n \n }\n*/\tfor(int sc:score)\n {\n candcalmap.put(sc,candcalmap.get(sc)==null?1:candcalmap.get(sc)+1);\n }\n for(Map.Entry<Integer,Integer> e:candcalmap.entrySet())\n {\n totcand+=numcan*e.getValue();\n// System.out.println(e.getValue()+\"-\"+e.getKey()+\":\"+numcan+\" \"+totcand);\n numcan++;\n }\n return totcand;\n }", "@Override\n public int evaluate(int[] l) {\n int s = 0;\n HashSet<Integer> map = new HashSet<Integer>();\n for (int i = 0; i < l.length; ++i) {\n int elmt = l[i];\n if (map.add(elmt))\n s += this.getValue(elmt);\n if (i != 0)\n s -= neighbourCheck[l[i - 1]][l[i]];\n }\n return s;\n }", "void printScore(double sum[]){\n \n if((sum[1] > sum [4]) && (sum[1] > sum[5]) ){\n System.out.println(\"among 1 4 5 => 1\");\n }\n if((sum[4] > sum [1]) && (sum[4] > sum[5]) ){\n System.out.println(\"among 1 4 5 => 4\");\n }\n if((sum[5] > sum [1]) && (sum[5] > sum[4]) ){\n System.out.println(\"among 1 4 5 => 5\");\n }\n if((sum[2] > sum [6]) && (sum[2] > sum[8]) ){\n System.out.println(\"among 2 6 8 => 2\");\n }\n if((sum[6] > sum [2]) && (sum[6] > sum[8]) ){\n System.out.println(\"among 2 6 8 => 6\");\n }\n if((sum[8] > sum [2]) && (sum[8] > sum[6]) ){\n System.out.println(\"among 2 6 8 => 8\");\n }\n if((sum[3] > sum [0]) && (sum[3] > sum[7]) ){\n System.out.println(\"among 3 0 7 => 3\");\n }\n if((sum[0] > sum [3]) && (sum[0] > sum[7]) ){\n System.out.println(\"among 3 0 7 => 0\");\n }\n if((sum[7] > sum [3]) && (sum[7] > sum[0]) ){\n System.out.println(\"among 3 0 7 => 7\");\n }\n }", "private int calculateScore(){\n int score = 0;\n for(Card card : hand){\n score += card.getScore();\n }\n return score;\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tint[] totals = new int[11];\r\n\t\tint dice;\r\n\t\tint diceTwo;\r\n\t\tint total;\r\n\r\n\t\t\r\n\r\n\t\tfor (int i = 0; i < 10000; i++) {\r\n\t\t\tdice = (int) (Math.random() * 6) + 1;\r\n\t\t\tdiceTwo = (int) (Math.random() * 6) + 1;\r\n\t\t\ttotal = dice + diceTwo; \r\n\t\t\tif (total == 2) {\r\n\r\n\t\t\t\ttotals[0]++;\r\n\t\t\t}\r\n\r\n\t\t\telse if (total == 3) {\r\n\r\n\t\t\t\ttotals[1]++;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse if (total == 4) {\r\n\r\n\t\t\t\ttotals[2]++;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse if (total == 5) {\r\n\r\n\t\t\t\ttotals[3]++;\r\n\t\t\t}\r\n\t\t\telse if (total == 6) {\r\n\r\n\t\t\t\ttotals[4]++;\r\n\t\t\t}\r\n\t\t\telse if (total == 7) {\r\n\r\n\t\t\t\ttotals[5]++;\r\n\t\t\t}\r\n\t\t\telse if (total == 8) {\r\n\r\n\t\t\t\ttotals[6]++;\r\n\t\t\t}\r\n\t\t\telse if (total == 9) {\r\n\r\n\t\t\t\ttotals[7]++;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse if (total == 10) {\r\n\r\n\t\t\t\ttotals[8]++;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse if (total == 11) {\r\n\r\n\t\t\t\ttotals[9]++;\r\n\t\t\t}\r\n\t\t\telse if (total == 12) {\r\n\r\n\t\t\t\ttotals[10]++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"Total - Number of Rolls\");\r\n\t\tSystem.out.println(\"2 \" + totals[0] );\r\n\t\tSystem.out.println(\"3 \" + totals[1] );\r\n\t\tSystem.out.println(\"4 \" + totals[2] );\r\n\t\tSystem.out.println(\"5 \" + totals[3] );\r\n\t\tSystem.out.println(\"6 \" + totals[4] );\r\n\t\tSystem.out.println(\"7 \" + totals[5] );\r\n\t\tSystem.out.println(\"8 \" + totals[6] );\r\n\t\tSystem.out.println(\"9 \" + totals[7] );\r\n\t\tSystem.out.println(\"10 \" + totals[8] );\r\n\t\tSystem.out.println(\"11 \" + totals[9] );\r\n\t\tSystem.out.println(\"12 \" + totals[10] );\r\n\t}", "public static int[] calculateScores(String[] resultsToCheck)\n\t{\n\t\tint[] scores = new int[entrants.length];\n\t\t//results = checkResults(preResults);\n\t\tfor(int i = 0; i < resultsToCheck.length; i++)\n\t\t{\n\t\t\tif(!resultsToCheck[i].equals(\"\"))\n\t\t\t{\n\t\t\t\t//for each player\n\t\t\t\tfor(int j = 0; j < entrants.length; j++)\n\t\t\t\t{\n\t\t\t\t\t//if the player's pick for the match is equal to the result\n\t\t\t\t\tif(allPicks.get(j)[i].equals(resultsToCheck[i]))\n\t\t\t\t\t{\n\t\t\t\t\t\t//increase their points by the value of the match\n\t\t\t\t\t\tscores[j] += values[i];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn scores;\n\t}", "protected abstract List<Double> calcScores();", "private static int scoreStraight(boolean large, Die[] dice){\n int score = 0;\n boolean scored = false;\n if(large){ // Large straight\n for(int ofs = 0;ofs < 2; ofs++) { // Large straights have two possible sets of integers to look for\n scored = true;\n for (int i = 1+ofs; i < 6+ofs; i++) { // Iterate to all 5 dice\n if (!inDice(dice, i)) { // Check for the existence of iterated numbers\n scored = false;\n }\n }\n }\n if(scored){return 40;}\n }\n else{ // Small straight\n for(int ofs = 0;ofs < 3; ofs++) { // Small straights have three possible sets of integers to look for\n scored = true;\n for (int i = 1+ofs; i < 5+ofs; i++) { // Iterate to four dice\n if (!inDice(dice, i)) { // Check for the existence of iterated numbers\n scored = false;\n }\n }\n }\n if(scored){\n return 30;\n }\n }\n return 0;\n }", "private void calculate(int[][] turns) throws Exception {\n int score = 0;\n for (int i = 0; i < round; i++) {\n int[] t = turns[i];\n if (t[0] == maxSroce) {\n score += (maxSroce + getNext(turns, i, 2));\n situation[i] = Status.STRIKE;\n } else if (t[0] + t[1] == maxSroce) {\n score += (maxSroce + getNext(turns, i, 1));\n situation[i] = Status.SPARE;\n } else {\n score += (t[0] + t[1]);\n situation[i] = Status.MISS;\n }\n this.score[i] = score;\n }\n }", "public int[][] reportByScore(int array[][], int[] array1) {\n\n\t\tint b = array.length - 1;\n\t\tint a = maxScore / b;\n\t\tfor (int i = 0; i < array1.length; i++) {\n\t\t\tif (array1[i] != 0) {\n\t\t\t\tarray[(b - (array1[i] - 1) / a - 1)][availableSpace(array, (b - (array1[i] - 1) / a - 1))] = array1[i];\n\t\t\t} else {\n\t\t\t\tarray[b][availableSpace(array, b)] = array1[i];\n\t\t\t}\n\n\t\t}\n\n\t\treturn array;\n\t}", "public static int villa(int... result) {\n\n int score = nSame(3, 6, result);\n int firstPairVal = score/3;\n\n result = IntStream.of(result).filter(val -> val != firstPairVal).toArray();\n score = nSame(3, 6, result);\n int secondPairVal = score/3;\n\n if (firstPairVal*secondPairVal > 0) {\n score = 3*firstPairVal + 3*secondPairVal;\n } else {\n score = 0;\n }\n\n return score;\n }", "private double scorePonderated(int i, int total) {\r\n\t\tif (total == 1) {\r\n\t\t\treturn 100.0;\r\n\t\t}\r\n\t\tdouble score = 100.0 / (2.0 * (i + 1));\r\n\t\treturn score;\r\n\t}", "public int setRollResult(int diceAmount, int diceSides) {\n\t\tint result = 0;\n\t\tfor (int i = 0; i < diceAmount; i++) {\n\t\t\tresult += diceBag.rollDice(diceSides);\n\t\t}\n\t\treturn result;\n\t}", "public void findAvg()\n {\n for(int i = 0; i <= scores.length-1; i++)\n {\n for (int j = 0; j <= scores[0].length-1; j++)\n {\n total += scores[i][j];\n }\n }\n System.out.println(\"The class average test score is \" + \n total/24 + \".\");\n }", "public int[] calculateScore(Player[] players){\n players = board.getPlayers();\n int[] scores = new int[board.getPlayerCount()];\n for(int i = 0; i < players.length; i++){\n scores[i] = players[i].getMoney() + players[i].getCredits() + (players[i].getRank() * 5);\n }\n return scores;\n }", "static int score(int[] state) {\n int no = 0;\n for (int i = 1; i < 10; i++) {\n if (state[i] == 1) {\n no *= 10; no += i;\n }\n }\n return no;\n }", "private void checkMyScore() {\n\n int[] scores = ar.checkMyScore();\n System.out.println(\" My score: \");\n int level = 1;\n for (int i : scores) {\n System.out.println(\" level \" + level + \" \" + i);\n if (i > 0)\n solved[level - 1] = 1;\n level++;\n }\n }", "public void scoring(){\n for (int i=0; i< players.size(); i++){\n Player p = players.get(i);\n p.setScore(10*p.getTricksWon());\n if(p.getTricksWon() < p.getBid() || p.getTricksWon() > p.getBid()){\n int diff = Math.abs(p.getTricksWon() - p.getBid());\n p.setScore(p.getScore() - (10*diff));\n }\n if(p.getTricksWon() == p.getBid()){\n p.setScore(p.getScore() + 20);\n }\n }\n }", "@Test\n public void testRunScoringScenario() throws Exception\n {\n YahtzeeModel y1 = new YahtzeeModel();\n\n //Turn 1\n y1.getDiceCollection().setValues(1, 1, 3, 3, 3);\n assertEquals(2, y1.scoreOnes());\n //Turn 2\n y1.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(6, y1.scoreTwos());\n //Turn 3\n y1.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(3, y1.scoreThrees());\n //Turn 4\n y1.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(0, y1.scoreFours());\n //Turn 5\n y1.getDiceCollection().setValues(2, 1, 2, 2, 5);\n assertEquals(5, y1.scoreFives());\n //Turn 6\n y1.getDiceCollection().setValues(6, 6, 6, 6, 6);\n assertEquals(30, y1.scoreSixes());\n //3 of a kind\n y1.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(10, y1.scoreThreeOfAKind());\n //4 of a kind\n y1.getDiceCollection().setValues(2, 2, 2, 2, 2);\n assertEquals(10, y1.scoreFourOfAKind());\n //full house\n y1.getDiceCollection().setValues(6, 4, 6, 4, 6);\n assertEquals(25, y1.scoreFullHouse());\n //small straight\n y1.getDiceCollection().setValues(6, 6, 6, 6, 6);\n assertEquals(0, y1.scoreSmallStraight());\n //large straight\n y1.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(0, y1.scoreLargeStraight());\n //yahtzee\n y1.getDiceCollection().setValues(2, 2, 2, 2, 2);\n assertEquals(50, y1.scoreYahtzee());\n //chance\n y1.getDiceCollection().setValues(6, 1, 1, 1, 1);\n assertEquals(10, y1.scoreChance());\n\n //calculate bonus and verify bonus\n assertEquals(0, y1.scoreBonus());\n\n //verify that the available scoring types has one entry for YAHTZEE since it was scored\n assertEquals(1, y1.getScoreCard().getAvailableScoreTypes().size());\n assertTrue(y1.getScoreCard().getAvailableScoreTypes().contains(YahtzeeScoreTypes.YAHTZEE));\n\n //verify final score\n assertEquals(151, y1.getScoreCard().getScore());\n\n\n //*** Game 2: 0 Bonus, 2 Yahtzee ***\n YahtzeeModel y2 = new YahtzeeModel();\n\n //Turn 1\n y2.getDiceCollection().setValues(1, 1, 1, 1, 1);\n assertEquals(50, y2.scoreYahtzee());\n //Turn 2\n y2.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(6, y2.scoreTwos());\n //Turn 3\n y2.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(3, y2.scoreThrees());\n //Turn 4\n y2.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(0, y2.scoreFours());\n //Turn 5\n y2.getDiceCollection().setValues(2, 1, 2, 2, 5);\n assertEquals(5, y2.scoreFives());\n //Turn 6\n y2.getDiceCollection().setValues(6, 6, 6, 6, 6);\n assertEquals(30, y2.scoreSixes());\n //3 of a kind\n y2.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(10, y2.scoreThreeOfAKind());\n //4 of a kind\n y2.getDiceCollection().setValues(2, 2, 2, 2, 2);\n assertEquals(10, y2.scoreFourOfAKind());\n //full house\n y2.getDiceCollection().setValues(6, 4, 6, 4, 6);\n assertEquals(25, y2.scoreFullHouse());\n //small straight\n y2.getDiceCollection().setValues(6, 6, 6, 6, 6);\n assertEquals(0, y2.scoreSmallStraight());\n //large straight\n y2.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(0, y2.scoreLargeStraight());\n //yahtzee\n y2.getDiceCollection().setValues(2, 2, 2, 2, 2);\n assertEquals(100, y2.scoreYahtzee());\n //chance\n y2.getDiceCollection().setValues(6, 1, 1, 1, 1);\n assertEquals(10, y2.scoreChance());\n\n //calculate bonus and verify bonus\n assertEquals(0, y2.scoreBonus());\n\n //verify that the available scoring types has two entres...\n // one for YAHTZEE and one for ONES\n assertEquals(2, y2.getScoreCard().getAvailableScoreTypes().size());\n assertTrue(y2.getScoreCard().getAvailableScoreTypes().contains(YahtzeeScoreTypes.ONES));\n assertTrue(y2.getScoreCard().getAvailableScoreTypes().contains(YahtzeeScoreTypes.YAHTZEE));\n\n //verify final score\n assertEquals(249, y2.getScoreCard().getScore());\n\n //*** Game 3: 1 Bonus, 0 Yahtzee ***\n YahtzeeModel y3 = new YahtzeeModel();\n\n //Turn 1\n y3.getDiceCollection().setValues(1, 1, 1, 1, 1);\n assertEquals(5, y3.scoreOnes());\n //Turn 2\n y3.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(6, y3.scoreTwos());\n //Turn 3\n y3.getDiceCollection().setValues(3, 3, 2, 2, 3);\n assertEquals(9, y3.scoreThrees());\n //Turn 4\n y3.getDiceCollection().setValues(2, 4, 4, 4, 3);\n assertEquals(12, y3.scoreFours());\n //Turn 5\n y3.getDiceCollection().setValues(2, 5, 2, 2, 5);\n assertEquals(10, y3.scoreFives());\n //Turn 6\n y3.getDiceCollection().setValues(6, 6, 6, 6, 6);\n assertEquals(30, y3.scoreSixes());\n //3 of a kind\n y3.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(10, y3.scoreThreeOfAKind());\n //4 of a kind\n y3.getDiceCollection().setValues(2, 2, 2, 2, 2);\n assertEquals(10, y3.scoreFourOfAKind());\n //full house\n y3.getDiceCollection().setValues(6, 4, 6, 4, 6);\n assertEquals(25, y3.scoreFullHouse());\n //small straight\n y3.getDiceCollection().setValues(6, 6, 6, 6, 6);\n assertEquals(0, y3.scoreSmallStraight());\n //large straight\n y3.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(0, y3.scoreLargeStraight());\n //yahtzee\n y3.getDiceCollection().setValues(2, 1, 2, 2, 2);\n assertEquals(0, y3.scoreYahtzee());\n //chance\n y3.getDiceCollection().setValues(6, 1, 1, 1, 1);\n assertEquals(10, y3.scoreChance());\n\n //calculate bonus and verify bonus\n assertEquals(35, y3.scoreBonus());\n\n //verify that no scoring types remain\n assertEquals(0, y3.getScoreCard().getAvailableScoreTypes().size());\n\n //verify final score\n assertEquals(162, y3.getScoreCard().getScore());\n }", "public void throwDices() throws DiceException {\n /**generator of random numbers(in this case integer numbers >1)*/\n Random generator = new Random();\n /**mode of logic*/\n String mode = this.getMode();\n\n if (!mode.equals(\"sum\") && !mode.equals(\"max\")) {\n throw new DiceException(\"Wrong throw mode!!! Third argument should be 'max' or 'sum'!\");\n } else if (this.getNumOfDices() < 1) {\n throw new DiceException(\"Wrong numeber of dices!!! Number of dices should equals 1 or more!\");\n } else if (this.getNumOfWalls() < 4) {\n throw new DiceException(\"Wrong numeber of walls!!! Number of walls should equals 4 or more!\");\n } else {\n if (mode.equals(\"sum\")) {\n for (int i = 0; i < this.getNumOfDices(); i++) {\n result += (generator.nextInt(this.getNumOfWalls()) + 1);\n }\n } else if (mode.equals(\"max\")) {\n for (int i = 0; i < this.getNumOfDices(); i++) {\n int buff = (generator.nextInt(this.getNumOfWalls()) + 1);\n if (this.result < buff) {\n this.result = buff;\n }\n }\n }\n }\n }", "public void throwDice() {\r\n\t\tfor( DiceGroup diceGroup:dice.values() ) {\r\n\t\t\tdiceGroup.throwDice(); //.setResult( (int) Math.random()*die.getSize() + 1);\r\n\t\t}\r\n\t}", "public static void forLoop() {\n // In this case, we have the raw score results of students.\n // In a test they took with 67 questions, we have recorded\n // how many they got correct.\n int[] testScores = {57, 65, 53, 34};\n\n // Our goal is to go through each score and convert that score into\n // a percentage score.\n // The overall flow of the code goes as follows.\n // 1) Initially, create a variable, i, and set it to 0. -> 2\n // 2) if i < testScores.length, then step 3. Otherwise, Step 5\n // 3) execute the body of code below. -> 4\n // 4) Once done executing the body, increment i by 1. -> 2.\n // 5) We're out of the loop!\n for (int i = 0; i < testScores.length; i++) {\n System.out.println(\"Test Score initially \" + testScores[i]);\n testScores[i] = (testScores[i] * 100) / 67;\n System.out.println(\"Test Score now \" + testScores[i]);\n System.out.println(\"==================\");\n }\n }", "public static int bigStraightYahtzee(int... result) {\n\n Arrays.sort(result);\n\n int[] uniqueValues = IntStream.of(result).distinct().sorted().toArray();\n long noUniqVals = IntStream.of(uniqueValues).distinct().count();\n int score = 0;\n\n if (noUniqVals >= 5) {\n ArrayList<int[]> matchArrays = new ArrayList<>();\n matchArrays.add(new int[]{1, 2, 3, 4, 5});\n matchArrays.add(new int[]{2, 3, 4, 5, 6});\n\n ArrayList<int[]> resultSubArrays = new ArrayList<>();\n for (int i = 0; i < noUniqVals - 4; i++) {\n resultSubArrays.add(Arrays.copyOfRange(uniqueValues, i, i + 5));\n }\n\n for (int[] arr : resultSubArrays) {\n for (int[] match : matchArrays) {\n if (Arrays.equals(arr, match)) {\n score = 40;\n }\n\n }\n }\n }\n return score;\n }", "protected abstract void calcScores();", "public ArrayList<Dice> sortDiceArray() //sort the dice array by order of how you resolve\n {\n ArrayList<Dice> sortDiceArray = getDiceArray();\n for(int i = 0; i < sortDiceArray.size()-1; i++)\n {\n if(sortDiceArray.get(i).getDiceInt() > sortDiceArray.get(i+1).getDiceInt())\n {\n Collections.swap(sortDiceArray, i, i+1);\n i = 0;\n }\n }\n \n return diceArray;\n }", "public static int yatzy(int scoreVal, int... result) {\n int score = 0;\n long uniqueValues = IntStream.of(result).distinct().count();\n if (uniqueValues == 1 && result.length > 1) {\n score = scoreVal;\n }\n return score;\n }", "public static double[] dicesSum(int n) {\n if (n <= 0) return new double[0];\n\n final int nums = n * FACES;\n int[][] dp = new int[n + 1][nums + 1];\n\n // Arrays.fill(dp[1], 1, FACES, 1);\n for (int i = 1; i <= FACES; i++) {\n dp[1][i] = 1;\n }\n\n for (int i = 2; i <= n; i++) {\n // Using i indices, get [i, i * FACES] results\n for (int j = i; j <= i * FACES; j++) {\n // f(n) = f(n - 1) + f(n - 2) + ... + f(n - 6)\n for (int k = 1; k <= FACES && k < j; k++) {\n dp[i][j] += dp[i - 1][j - k];\n }\n }\n }\n\n final double total = Math.pow(FACES, n);\n final double[] res = new double[nums];\n // Using n indices, get [n, n * FACES] results\n for (int i = n; i <= nums; i++) {\n res[i - n] = dp[n][i] / total;\n }\n return res;\n }", "void calculateScore(){\r\n playerScore = 0;\r\n for(int i = 1; i<=10; i++) {\r\n scoreQuestion(i);\r\n }\r\n }", "private int scoreForThisCategory(int category, int playerName) {\n\t\t// at start let the score be 0.\n\t\tint score = 0;\n\t\t// if player chose one to six we score++ every time we get that number\n\t\t// in the dice. that will give us how many that number player chose is\n\t\t// in the dice.\n\t\tif (category >= 1 && category <= 6) {\n\t\t\tfor (int i = 0; i < N_DICE; i++) {\n\t\t\t\tif (diceResults[i] == category) {\n\t\t\t\t\tscore++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// than we multiple it on what number(category) player chose to get\n\t\t\t// the final score for this category.\n\t\t\tscore *= category;\n\t\t\t// if player chose THREE_OF_A_KIND than score is the sum of the\n\t\t\t// numbers on dice.\n\t\t} else if (category == THREE_OF_A_KIND) {\n\t\t\tfor (int i = 0; i < N_DICE; i++) {\n\t\t\t\tscore += diceResults[i];\n\t\t\t}\n\t\t\t// if player chose FOUR_OF_A_KIND than score is the sum of the\n\t\t\t// numbers on dice.\n\t\t} else if (category == FOUR_OF_A_KIND) {\n\t\t\tfor (int i = 0; i < N_DICE; i++) {\n\t\t\t\tscore += diceResults[i];\n\t\t\t}\n\t\t\t// if player chose FULL_HOUSE than score is 25.\n\t\t} else if (category == FULL_HOUSE) {\n\t\t\tscore = 25;\n\t\t\t// if player chose SMALL_STRAIGHT than score is 30.\n\t\t} else if (category == SMALL_STRAIGHT) {\n\t\t\tscore = 30;\n\t\t\t// if player chose LARGE_STRAIGHT than score is 40.\n\t\t} else if (category == LARGE_STRAIGHT) {\n\t\t\tscore = 40;\n\t\t\t// if player chose YAHTZEE than score is 50.\n\t\t} else if (category == YAHTZEE) {\n\t\t\tscore = 50;\n\t\t\t// if player chose CHANCE score is the sum of numbers on the dice.\n\t\t} else if (category == CHANCE) {\n\t\t\tfor (int i = 0; i < N_DICE; i++) {\n\t\t\t\tscore += diceResults[i];\n\t\t\t}\n\t\t}\n\t\t// finally method will return the score.\n\t\treturn score;\n\t}", "public void rollAllDices() {\n for(int i = 0; i < dicesList.size(); i++) {\n dicesList.get(i).roll();\n }\n }", "public int stoneGameII(int[] piles) {\n int n = piles.length;\n memo = new int[n][n];\n sums = new int[n];\n sums[n-1] = piles[n-1];\n for(int i = n -2; i>=0;i--) {\n sums[i] = sums[i+1] + piles[i]; //the sum from piles[i] to the end\n }\n int score = helper(0, 1, piles);\n return score;\n }", "public static void calculate(int[] array) {\n\tfor (int i = 0; i > array.length - 1; i++) {\n\t\t// i will be second number\n\t\tfor (int j = i + 1; j < array.length; j++) {\n\n\t\t\t// take a number from array\n\t\t\t// add it to the next\n\t\t\tint sum = array[i] + array[j];\n\n\t\t\tif (sum == 100) {\n\t\t\t\t// i will print those two numbers\n\t\t\t\tSystem.out.println(array[i] + \", \" + array[j]);\n\t\t\t}\n\t\t}\n\n\t}\n}", "public static int smallStraightYahtzee(int... result) {\n\n Arrays.sort(result);\n\n int[] uniqueValues = IntStream.of(result).distinct().sorted().toArray();\n long noUniqVals = IntStream.of(uniqueValues).distinct().count();\n\n int score = 0;\n\n if (noUniqVals >= 4) {\n\n ArrayList<int[]> matchArrays = new ArrayList<>();\n matchArrays.add(new int[] {1, 2, 3, 4});\n matchArrays.add(new int[] {2, 3, 4, 5});\n matchArrays.add(new int[] {3, 4, 5, 6});\n\n ArrayList<int[]> resultSubArrays = new ArrayList<>();\n for (int i = 0; i < noUniqVals - 3; i++) {\n int[] testArr = Arrays.copyOfRange(uniqueValues, i, i + 4);\n resultSubArrays.add(testArr);\n }\n\n for (int[] arr : resultSubArrays) {\n for (int[] match : matchArrays) {\n if (Arrays.equals(arr, match)) {\n score = 30;\n }\n }\n }\n }\n return score;\n }", "public static Integer getScoreFor_RollOnFourOfAKind(Dice dice) \r\n\t{\r\n\t\tlog.debug(\"Inside method getScoreFor_RollOnFourOfAKind\");\r\n\t\t\r\n\t\tInteger score = 0;\r\n\t\t\r\n\t\tMap<Integer, Integer> map = dice.getDiceNumberCountMap();\r\n\t\t\r\n\t\tfor ( Integer diceNumber : map.keySet() )\r\n\t\t{\r\n\t\t\t// if we can find Four of a kind\r\n\t\t\tif ( map.get(diceNumber) >= 4 ) \r\n\t\t\t{\r\n\t\t\t\tscore = diceNumber * 4;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn score;\r\n\t}", "public void ruleOutPos(){\n for(int i=0;i<scores.length;i++) {\n for(int j=0;j<scores[i].length;j++) {\n scores[i][j][13] = 0;//0=pass, >0 is fail, set to pass initially\n\n //check Ns - bit crude - what to discount regions with high N\n double ns = (double) scores[i][j][14] / (double) pLens[j];\n if (ns >= minPb | ns >= minPm)//\n scores[i][j][13] += 4;\n\n //probe\n if (hasProbe){\n if (j == 1 | j == 4) {\n double perc = (double) scores[i][j][0] / (double) primers[j].length();\n if (perc >= minPb) {\n scores[i][j][12] = 1;//flag for failed % test\n scores[i][j][13] += 2;\n }\n }\n }\n //primer\n else {\n //if more than 2 mismatches in 1-4nt at 3'\n if(scores[i][j][11]>max14nt) {\n scores[i][j][13]+=1;\n }\n //use mLen (combined F and R length) initially to find initial candidates - filter later\n double perc=(double)scores[i][j][0]/(double)mLen;\n double percI=(double)scores[i][j][0]/(double)pLens[j];\n\n if(perc>=minPm | percI>=minPmI) {\n scores[i][j][12]=1;//flag for failed % test\n scores[i][j][13]+=2;\n }\n }\n }\n }//end of finding positions that prime loop\n }", "public byte score() {\n\t\tbyte score = 0;\n\t\t\n\t\tfor (byte r = 0; r < b.length; r++) {\n\t\t\tfor (byte c = 0; c < b[r].length; c++) {\n\t\t\t\tif (b[r][c].getSide()) {\n\t\t\t\t\tscore += (b[r][c]).getValue();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse {\n\t\t\t\t\tscore -= (b[r][c]).getValue();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn score;\n\t}", "private int calculateScore(ArrayList<HexCell> stack){\n int score = 0;\n for(HexCell current: stack){\n score += current.score;\n }\n return score;\n }", "public static void main(String[] args) {\n\t\tint array[] = { 5, 2, 3, 6, 1 };\n\t\tint total = ((array.length + 1) * (array.length + 2)) / 2;\n\t\tSystem.out.println(total);\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\ttotal -= array[i];\n\t\t}\n\t\tSystem.out.println(\"Missing number=\" + total);\n\t}", "public static void grade(int size)\n {\n int score = 0;\n for(int i = 0; i<size;i++)\n {\n if(answer[i] == nb1[i] + nb2[i])\n {\n score+=10;\n }\n }\n System.out.println(\"Votre score est \" + score+\"/100\");\n }", "private int computeScore() {\n int score = 0;\n for (int i = 0; i < MainActivity.DEFAULT_SIZE; i++) {\n TextView answerView = (TextView) findViewById(MainActivity.NAME_VIEWS[i]);\n String answer = answerView.getText().toString();\n String solution = getQuizCountries().get(i).getName();\n if (answer.equals(solution)) {\n score++;\n }\n }\n return score;\n }", "public static Integer getScoreFor_RollOnThreeOfAKind(Dice dice) \r\n\t{\r\n\t\tlog.debug(\"Inside method getScoreFor_RollOnThreeOfAKind\");\r\n\t\t\r\n\t\tInteger score = 0;\r\n\t\t\r\n\t\tMap<Integer, Integer> map = dice.getDiceNumberCountMap();\r\n\t\t\r\n\t\tfor ( Integer diceNumber : map.keySet() )\r\n\t\t{\r\n\t\t\t// if we can find three of a kind\r\n\t\t\tif ( map.get(diceNumber) >= 3 ) \r\n\t\t\t{\r\n\t\t\t\tscore = diceNumber * 3;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn score;\r\n\t}", "@Override\n\tprotected int calculateScore() {\n\t\treturn Math.abs(playerScore[0] - playerScore[1]);\n\t}", "public void compareArray(char[] chArray, int[] randArray){\r\n\t\tint x = 0;\r\n\t\tfor(int i = 0; i < 6; i++){\r\n\t\t\t//Compares the elements of the char and integer array\r\n\t\t\t//Char values are subtracted by 48 due to ASCII values being compared\r\n\t\t\tchArray[i] = (char) (chArray[i] - 48);\r\n\t\t\tif(chArray[i] == randArray[i]){\r\n\t\t\t\t//Checks how many elements match\r\n\t\t\t\tx++;\r\n\t\t\t\tif(i == 0 && chArray[i] == randArray[i]){\r\n\t\t\t\t\tmatch1 = true;\r\n\t\t\t\t}\r\n\t\t\t\tif(i == 1 && chArray[i] == randArray[i]){\r\n\t\t\t\t\tmatch2 = true;\r\n\t\t\t\t}\r\n\t\t\t\tif(i == 2 && chArray[i] == randArray[i]){\r\n\t\t\t\t\tmatch3 = true;\r\n\t\t\t\t}\r\n\t\t\t\tif(i == 3 && chArray[i] == randArray[i]){\r\n\t\t\t\t\tmatch4 = true;\r\n\t\t\t\t}\r\n\t\t\t\tif(i == 4 && chArray[i] == randArray[i]){\r\n\t\t\t\t\tmatch5 = true;\r\n\t\t\t\t}\r\n\t\t\t\tif(i == 5 && chArray[i] == randArray[i]){\r\n\t\t\t\t\tmatch6 = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Assigns points according to how many values match\r\n\t\tif(x == 1){\r\n\t\t\tpoints = points + 10;\r\n\t\t\tprintln(\" One value matches \" + \" Points = \" + points + \" (ten points gained)\");\r\n\t\t}\r\n\t\telse if(x == 2){\r\n\t\t\tpoints = points + 100;\r\n\t\t\tprintln(\" Two values match \" + \" Points = \" + points + \" (one hundred points gained)\");\r\n\t\t}\r\n\t\telse if(x == 3){\r\n\t\t\tpoints = points + 1000;\r\n\t\t\tprintln(\" Three value match \" + \" Points = \" + points + \" (one thousand points gained)\");\t\r\n\t\t}\r\n\t\telse if(x == 4){\r\n\t\t\tpoints = points + 10000;\r\n\t\t\tprintln(\" Four values match \" + \" Points = \" + points + \" (ten thousand points gained)\");\t\r\n\t\t}\r\n\t\telse if(x == 5){\r\n\t\t\tpoints = points + 100000;\r\n\t\t\tprintln(\" Five values match \" + \" Points = \" + points + \" (one hundred thousand points gained)\");\t\r\n\t\t}\r\n\t\telse if(x == 6){\r\n\t\t\tpoints = points + 1000000;\r\n\t\t\tprintln(\"ALL SIX VALUES MATCH!!! CONGRATULATIONS!!!\" + \" Points = \" + points + \" (one million points gained)\");\r\n\t\t}else{\r\n\t\t\tpoints = points - 50;\r\n\t\t\tprintln(\" No values match \" + \" Points = \" + points + \" (fifty points lost)\");\r\n\t\t}\r\n\t\tprintln(\"_______________________________________________________________________________________________________________________\");\r\n\t\tprintln();\r\n\t}", "public int getScore(Grid grid) {\n int scoreHolder = 0;\n for (int idx_y = 0; idx_y < Grid.ROWS; idx_y++) { // Iterate the rows\n Set<Integer> seen = new HashSet<>();\n boolean unique = true;\n for (int idx_x = 0; idx_x < Grid.COLUMNS; idx_x++) { // Iterate the columns\n if (grid.isCellEmpty(idx_x, idx_y)) {\n unique = false;\n } else {\n Dice currDice = grid.getDie(idx_x, idx_y);\n if (seen.contains(currDice.getValue())) {\n unique = false;\n } else {\n seen.add(currDice.getValue());\n }\n }\n }\n scoreHolder += (unique) ? this.objValue : 0;\n }\n return scoreHolder;\n }", "@Override\n\tpublic int electoralRepReport(int[] data) {\n\t\tfor(int i=0; i < data.length; i++){\n\t\t\trepVotes+= (data[i] - (data[i]*0.02));\n\t\t\tdemVotes+= data[i]*0.02;\n\t\t}\n\t\treturn repVotes;\n\t}", "@Test\n public void testDiceThrown() {\n testDie(game.diceThrown(), 1, 2);\n game.nextTurn();\n testDie(game.diceThrown(), 1, 2);\n game.nextTurn();\n testDie(game.diceThrown(), 3, 4);\n game.nextTurn();\n testDie(game.diceThrown(), 3, 4);\n game.nextTurn();\n testDie(game.diceThrown(), 5, 6);\n game.nextTurn();\n testDie(game.diceThrown(), 1, 2);\n game.nextTurn();\n\n }", "public static int calculate(List<Roll> rolls) {\n int score = 0;\n if (rolls.isEmpty()) return score;\n\n Roll firstFutureRoll = null;\n Roll secondFutureRoll = null;\n for(int i = rolls.size() - 1; i >= 0; i--) {\n Roll roll = rolls.get(i);\n RollType rollType = rollType(roll);\n score += canCalculateFrame(rollType, firstFutureRoll, secondFutureRoll) ?\n calculateRollForFrame(rollType, roll, firstFutureRoll, secondFutureRoll) : 0;\n\n // Set \"secondFuture roll\" on LAST ROLL so can calculate any strikes in last frame\n secondFutureRoll = rollType.equals(LAST_ROLL) ? roll : firstFutureRoll;\n firstFutureRoll = roll;\n }\n return score;\n }", "public int scoresDp(int[] arr) {\n\n int n = arr.length;\n\n //dp[i][j] : max relative scores between i and j\n int[][] dp = new int[n][n];\n\n // len(1)\n for (int i = 0; i < n; i++)\n dp[i][i] = arr[i - 1];\n // len(2 - n)\n for (int l = 2; l <= n; l++)\n for (int i = 0; i < n; i++) {\n // the right end\n int j = i + l - 1;\n if (j >= n)\n continue;\n dp[i][j] = Math.max(arr[i] - dp[i + 1][j], arr[j] - dp[i][j - 1]);\n }\n return dp[0][n - 1];\n }", "private void diceSum(int dice, int desiredSum) {\r\n\t\tdiceSumHelper(dice, desiredSum, 0, new ArrayList<Integer>());\r\n\t\tSystem.out.println(calls);\r\n\t}", "static void plusMinus(int[] arr) \r\n {\r\n \tint positive=0, negative=0, zeroes=0;\r\n \tList<String> list = new ArrayList<>();\r\n \tfor(int a: arr)\r\n \t{\r\n \t\tif(a>0)\r\n \t\t{\r\n \t\t\tpositive = positive+1;\r\n \t\t}\r\n \t\t\r\n \t\tif(a<0)\r\n \t\t{\r\n \t\t\tnegative = negative+1;\r\n \t\t}\r\n \t\t\r\n \t\telse if(a==0)\r\n \t\t{\r\n \t\t\tzeroes = zeroes+1;\r\n \t\t}\r\n \t}\r\n \t\r\n \tdouble answer = (double)positive/arr.length;\r\n \tlist.add(findResult(answer));\r\n \t\r\n \tanswer = (double)negative/arr.length;\r\n \tlist.add(findResult(answer));\r\n \t\r\n \tanswer = (double)zeroes/arr.length;\r\n \tlist.add(findResult(answer));\r\n \t\r\n \t\r\n \tfor(String d: list)\r\n \t{\r\n \t\tSystem.out.println(d);\r\n \t}\r\n }", "public static int countUniqueCombinationsDP(int score) {\r\n /*\r\n * Return Type of DP array is same as return type of the recursive function\r\n * Dimensions of DP array is the number of non constant parameters to the recursive function\r\n */\r\n \t\r\n \t/*\r\n \t * Fn(s) = Fn(s-7) [if(s>=7)] + Fn(s-3) [if(s>=3)] + Fn(s-2) [if(s>=2)]\r\n\t\t * Fn(0) = 1\r\n\t\t * \r\n * F(11) = F(4) + F(8) + F(9)\r\n */\r\n \tint[][] comb = new int[score + 1][3];\r\n // int[] points = {2,3,7};\r\n \r\n // Halting Conditions\r\n comb[0][0] = 1;\r\n comb[0][1] = 1;\r\n comb[0][2] = 1;\r\n \r\n /*\r\n * Loop goes in the direction opposite to that of the recursion \r\n */\r\n for (int s = 1; s <= score; ++s) {\t\t// s is the score of the recursion\r\n \tfor (int p = 0; p < 3; ++p) {\r\n\t \tint total = 0;\r\n\t if (s >= 2 && p == 0)\r\n\t \ttotal = total + comb[s - 2][0];\r\n\t if (s >= 3 && p <= 1)\r\n\t \ttotal = total + comb[s - 3][1];\r\n\t if (s >= 7)\t\t\t// No need of condition p<=2; as it will always be true\r\n\t \ttotal = total + comb[s - 7][2];\r\n\t comb[s][p] = total;\r\n \t}\r\n }\r\n\r\n return comb[score][0];\r\n }", "public void ss(){\n for (int c=0; c < league.length;c++) {\r\n for (int t=c+1;t<league.length;t++) {\r\n score = league[c].scoregenerator();\r\n secondscore = league[t].scoregenerator();\r\n league[c].pointsfor(score);\r\n league[t].pointsfor(secondscore);\r\n\r\n if (score > secondscore){\r\n league[c].wins();\r\n league[t].losses();\r\n }\r\n else if (score == secondscore){\r\n league[c].ties();\r\n league[t].ties();\r\n }\r\n else {\r\n league[t].wins();\r\n league[c].losses();\r\n }\r\n } \r\n }\r\n for (int c=0; c < AFC.length;c++) {\r\n for (int t=c+1;t<AFC.length;t++) {\r\n score = AFC[c].scoregenerator();\r\n secondscore = AFC[t].scoregenerator();\r\n AFC[c].pointsfor(score);\r\n AFC[t].pointsfor(secondscore);\r\n\r\n if (score > secondscore){\r\n AFC[c].wins();\r\n AFC[t].losses();\r\n }\r\n else if (score == secondscore){\r\n AFC[c].ties();\r\n AFC[t].ties();\r\n }\r\n else {\r\n AFC[t].wins();\r\n AFC[c].losses();\r\n }\r\n } \r\n }\r\n for (int c=0; c < NFC.length;c++) {\r\n for (int t=c+1;t<NFC.length;t++) {\r\n score = NFC[c].scoregenerator();\r\n secondscore = NFC[t].scoregenerator();\r\n NFC[c].pointsfor(score);\r\n NFC[t].pointsfor(secondscore);\r\n\r\n if (score > secondscore){\r\n NFC[c].wins();\r\n NFC[t].losses();\r\n }\r\n else if (score == secondscore){\r\n NFC[c].ties();\r\n NFC[t].ties();\r\n }\r\n else {\r\n NFC[t].wins();\r\n NFC[c].losses();\r\n }\r\n } \r\n }\r\n for (int c=0;c<AFCeast.length;c++) {\r\n for (int t=c+1;t<AFCeast.length;t++) {\r\n score = AFCeast[c].scoregenerator();\r\n secondscore = AFCeast[t].scoregenerator();\r\n AFCeast[c].pointsfor(score);\r\n AFCeast[t].pointsfor(secondscore);\r\n\r\n if (score > secondscore){\r\n AFCeast[c].wins();\r\n AFCeast[t].losses();\r\n }\r\n else if (score == secondscore){\r\n AFCeast[c].ties();\r\n AFCeast[t].ties();\r\n }\r\n else {\r\n AFCeast[t].wins();\r\n AFCeast[c].losses();\r\n }\r\n } \r\n }\r\n for (int c=0; c < AFCnorth.length;c++) {\r\n for (int t=c+1;t<AFCnorth.length;t++) {\r\n score = AFCnorth[c].scoregenerator();\r\n secondscore = AFCnorth[t].scoregenerator();\r\n AFCnorth[c].pointsfor(score);\r\n AFCnorth[t].pointsfor(secondscore);\r\n\r\n if (score > secondscore){\r\n AFCnorth[c].wins();\r\n AFCnorth[t].losses();\r\n }\r\n else if (score == secondscore){\r\n AFCnorth[c].ties();\r\n AFCnorth[t].ties();\r\n }\r\n else {\r\n AFCnorth[t].wins();\r\n AFCnorth[c].losses();\r\n }\r\n } \r\n }\r\n for (int c=0; c < AFCsouth.length;c++) {\r\n for (int t=c+1;t<AFCsouth.length;t++) {\r\n score = AFCsouth[c].scoregenerator();\r\n secondscore = AFCsouth[t].scoregenerator();\r\n AFCsouth[c].pointsfor(score);\r\n AFCsouth[t].pointsfor(secondscore);\r\n\r\n if (score > secondscore){\r\n AFCsouth[c].wins();\r\n AFCsouth[t].losses();\r\n }\r\n else if (score == secondscore){\r\n AFCsouth[c].ties();\r\n AFCsouth[t].ties();\r\n }\r\n else {\r\n AFCsouth[t].wins();\r\n AFCsouth[c].losses();\r\n }\r\n } \r\n }\r\n for (int c=0; c < AFCwest.length;c++) {\r\n for (int t=c+1;t<AFCwest.length;t++) {\r\n score = AFCwest[c].scoregenerator();\r\n secondscore = AFCwest[t].scoregenerator();\r\n AFCwest[c].pointsfor(score);\r\n AFCwest[t].pointsfor(secondscore);\r\n\r\n if (score > secondscore){\r\n AFCwest[c].wins();\r\n AFCwest[t].losses();\r\n }\r\n else if (score == secondscore){\r\n AFCwest[c].ties();\r\n AFCwest[t].ties();\r\n }\r\n else {\r\n AFCwest[t].wins();\r\n AFCwest[c].losses();\r\n }\r\n } \r\n }\r\n for (int c=0; c < NFCeast.length;c++) {\r\n for (int t=c+1;t<NFCeast.length;t++) {\r\n score = NFCeast[c].scoregenerator();\r\n secondscore = NFCeast[t].scoregenerator();\r\n NFCeast[c].pointsfor(score);\r\n NFCeast[t].pointsfor(secondscore);\r\n\r\n if (score > secondscore){\r\n NFCeast[c].wins();\r\n NFCeast[t].losses();\r\n }\r\n else if (score == secondscore){\r\n NFCeast[c].ties();\r\n NFCeast[t].ties();\r\n }\r\n else {\r\n NFCeast[t].wins();\r\n NFCeast[c].losses();\r\n }\r\n } \r\n }\r\n for (int c=0; c < NFCnorth.length;c++) {\r\n for (int t=c+1;t<NFCnorth.length;t++) {\r\n score = NFCnorth[c].scoregenerator();\r\n secondscore = NFCnorth[t].scoregenerator();\r\n NFCnorth[c].pointsfor(score);\r\n NFCnorth[t].pointsfor(secondscore);\r\n\r\n if (score > secondscore){\r\n NFCnorth[c].wins();\r\n NFCnorth[t].losses();\r\n }\r\n else if (score == secondscore){\r\n NFCnorth[c].ties();\r\n NFCnorth[t].ties();\r\n }\r\n else {\r\n NFCnorth[t].wins();\r\n NFCnorth[c].losses();\r\n }\r\n } \r\n }\r\n for (int c=0; c < NFCsouth.length;c++) {\r\n for (int t=c+1;t<NFCsouth.length;t++) {\r\n score = NFCsouth[c].scoregenerator();\r\n secondscore = NFCsouth[t].scoregenerator();\r\n NFCsouth[c].pointsfor(score);\r\n NFCsouth[t].pointsfor(secondscore);\r\n\r\n if (score > secondscore){\r\n NFCsouth[c].wins();\r\n NFCsouth[t].losses();\r\n }\r\n else if (score == secondscore){\r\n NFCsouth[c].ties();\r\n NFCsouth[t].ties();\r\n }\r\n else {\r\n NFCsouth[t].wins();\r\n NFCsouth[c].losses();\r\n }\r\n } \r\n }\r\n for (int c=0; c < NFCwest.length;c++) {\r\n for (int t=c+1;t<NFCwest.length;t++) {\r\n score = NFCwest[c].scoregenerator();\r\n secondscore = NFCwest[t].scoregenerator();\r\n NFCwest[c].pointsfor(score);\r\n NFCwest[t].pointsfor(secondscore);\r\n\r\n if (score > secondscore){\r\n NFCwest[c].wins();\r\n NFCwest[t].losses();\r\n }\r\n else if (score == secondscore){\r\n NFCwest[c].ties();\r\n NFCwest[t].ties();\r\n }\r\n else {\r\n NFCwest[t].wins();\r\n NFCwest[c].losses();\r\n }\r\n } \r\n }\r\n\r\n for (int c=0;c<league.length;c++){\r\n System.out.println(league[c]);\r\n }\r\n System.out.println(\"...\");\r\n try\r\n {\r\n Thread.sleep(3000);\r\n }\r\n catch (Exception e)\r\n {}\r\n System.out.println(\"\\n\" + \"Now let the playoffs begin!\" + \"\\n\");\r\n\r\n for (int y=0;y<4;y++){ // These next groups of code are sorting each division, and each conference based on wins\r\n for (int p=0;p<3;p++) {\r\n int a = p+1;\r\n if (AFCeast[a].displaywins() > AFCeast[p].displaywins()){\r\n Temp = AFCeast[p];\r\n AFCeast[p] = AFCeast[a];\r\n AFCeast[a] = Temp;\r\n }\r\n else if (AFCeast[a].displaywins() == AFCeast[p].displaywins() && AFCeast[a].displaypf() > AFCeast[p].displaypf()){\r\n Temp = league[p];\r\n league[p] = league[a];\r\n league[a] = Temp;\r\n }\r\n\r\n }\r\n }\r\n // System.out.println(AFCeast[0]);\r\n\r\n afcplayoff[0] = AFCeast[0];\r\n // System.out.println(afcplayoff[0]);\r\n for (int y=0;y<4;y++){\r\n for (int p=0;p<3;p++) {\r\n int a = p+1;\r\n if (AFCnorth[a].displaywins() > AFCnorth[p].displaywins()){\r\n Temp = AFCnorth[p];\r\n AFCnorth[p] = AFCnorth[a];\r\n AFCnorth[a] = Temp;\r\n }\r\n else if (AFCnorth[a].displaywins() == AFCnorth[p].displaywins() && AFCnorth[a].displaypf() > AFCnorth[p].displaypf()){\r\n Temp = league[p];\r\n league[p] = league[a];\r\n league[a] = Temp;\r\n }\r\n\r\n }\r\n }\r\n\r\n afcplayoff[1] = AFCnorth[0];\r\n for (int y=0;y<4;y++){\r\n for (int p=0;p<3;p++) {\r\n int a = p+1;\r\n if (AFCsouth[a].displaywins() > AFCsouth[p].displaywins()){\r\n Temp = AFCsouth[p];\r\n AFCsouth[p] = AFCsouth[a];\r\n AFCsouth[a] = Temp;\r\n }\r\n else if (AFCsouth[a].displaywins() == AFCsouth[p].displaywins() && AFCsouth[a].displaypf() > AFCsouth[p].displaypf()){\r\n Temp = league[p];\r\n league[p] = league[a];\r\n league[a] = Temp;\r\n }\r\n\r\n }\r\n }\r\n\r\n afcplayoff[2] = AFCsouth[0];\r\n for (int y=0;y<4;y++){\r\n for (int p=0;p<3;p++) {\r\n int a = p+1;\r\n if (AFCwest[a].displaywins() > AFCwest[p].displaywins()){\r\n Temp = AFCwest[p];\r\n AFCwest[p] = AFCwest[a];\r\n AFCwest[a] = Temp;\r\n }\r\n else if (AFCwest[a].displaywins() == AFCwest[p].displaywins() && AFCwest[a].displaypf() > AFCwest[p].displaypf()){\r\n Temp = league[p];\r\n league[p] = league[a];\r\n league[a] = Temp;\r\n }\r\n\r\n }\r\n }\r\n\r\n afcplayoff[3] = AFCwest[0];\r\n for (int y=0;y<4;y++){\r\n for (int p=0;p<3;p++) {\r\n int a = p+1;\r\n if (NFCeast[a].displaywins() > NFCeast[p].displaywins()){\r\n Temp = NFCeast[p];\r\n NFCeast[p] = NFCeast[a];\r\n NFCeast[a] = Temp;\r\n }\r\n else if (NFCeast[a].displaywins() == NFCeast[p].displaywins() && NFCeast[a].displaypf() > NFCeast[p].displaypf()){\r\n Temp = league[p];\r\n league[p] = league[a];\r\n league[a] = Temp;\r\n }\r\n\r\n }\r\n }\r\n nfcplayoff[0] = NFCeast[0];\r\n for (int y=0;y<4;y++){\r\n for (int p=0;p<3;p++) {\r\n int a = p+1;\r\n if (NFCnorth[a].displaywins() > NFCnorth[p].displaywins()){\r\n Temp = NFCnorth[p];\r\n NFCnorth[p] = NFCnorth[a];\r\n NFCnorth[a] = Temp;\r\n }\r\n else if (NFCnorth[a].displaywins() == NFCnorth[p].displaywins() && NFCnorth[a].displaypf() > NFCnorth[p].displaypf()){\r\n Temp = league[p];\r\n league[p] = league[a];\r\n league[a] = Temp;\r\n }\r\n\r\n }\r\n }\r\n nfcplayoff[1] = NFCnorth[0];\r\n for (int y=0;y<4;y++){\r\n for (int p=0;p<3;p++) {\r\n int a = p+1;\r\n if (NFCsouth[a].displaywins() > NFCsouth[p].displaywins()){\r\n Temp = NFCsouth[p];\r\n NFCsouth[p] = NFCsouth[a];\r\n NFCsouth[a] = Temp;\r\n }\r\n else if (NFCsouth[a].displaywins() == NFCsouth[p].displaywins() && NFCsouth[a].displaypf() > NFCsouth[p].displaypf()){\r\n Temp = league[p];\r\n league[p] = league[a];\r\n league[a] = Temp;\r\n }\r\n\r\n }\r\n }\r\n nfcplayoff[2] = NFCsouth[0];\r\n for (int y=0;y<4;y++){\r\n for (int p=0;p<3;p++) {\r\n int a = p+1;\r\n if (NFCwest[a].displaywins() > NFCwest[p].displaywins()){\r\n Temp = NFCwest[p];\r\n NFCwest[p] = NFCwest[a];\r\n NFCwest[a] = Temp;\r\n }\r\n else if (NFCwest[a].displaywins() == NFCwest[p].displaywins() && NFCwest[a].displaypf() > NFCwest[p].displaypf()){\r\n Temp = league[p];\r\n league[p] = league[a];\r\n league[a] = Temp;\r\n }\r\n\r\n }\r\n }\r\n nfcplayoff[3] = NFCwest[0];\r\n for (int y=0;y<16;y++){\r\n for (int p=0;p<15;p++) {\r\n int a = p+1;\r\n if (AFC[a].displaywins() > AFC[p].displaywins()){\r\n Temp = AFC[p];\r\n AFC[p] = AFC[a];\r\n AFC[a] = Temp;\r\n }\r\n else if (AFC[a].displaywins() == AFC[p].displaywins() && AFC[a].displaypf() > AFC[p].displaypf()){\r\n Temp = AFC[p];\r\n AFC[p] = AFC[a];\r\n AFC[a] = Temp;\r\n }\r\n\r\n }\r\n }\r\n for (int y=0;y<16;y++){\r\n for (int p=0;p<15;p++) {\r\n int a = p+1;\r\n if (NFC[a].displaywins() > NFC[p].displaywins()){\r\n Temp = NFC[p];\r\n NFC[p] = NFC[a];\r\n NFC[a] = Temp;\r\n }\r\n else if (NFC[a].displaywins() == NFC[p].displaywins() && NFC[a].displaypf() > NFC[p].displaypf()){\r\n Temp = NFC[p];\r\n NFC[p] = NFC[a];\r\n NFC[a] = Temp;\r\n }\r\n\r\n }\r\n }\r\n\r\n int maxw=0;\r\n\r\n for (int x=0;x<AFC.length;x++){\r\n\r\n if ((AFC[x].displaywins() > maxw) && \r\n (AFC[x].getName() != afcplayoff[0].getName()) && \r\n (AFC[x].getName() != afcplayoff[1].getName()) && \r\n (AFC[x].getName() != afcplayoff[2].getName()) && \r\n (AFC[x].getName() != afcplayoff[3].getName()) && \r\n (AFC[x].getName() != afcplayoff[4].getName()) && \r\n (AFC[x].getName() != afcplayoff[5].getName())){\r\n maxw = AFC[x].displaywins();\r\n afcplayoff[4] = AFC[x]; \r\n }\r\n\r\n }\r\n\r\n maxw=0;\r\n for (int x=0;x<AFC.length;x++){\r\n\r\n if (AFC[x].displaywins() > maxw && \r\n AFC[x].getName() != afcplayoff[0].getName() && \r\n AFC[x].getName() != afcplayoff[1].getName() && \r\n AFC[x].getName() != afcplayoff[2].getName() && \r\n AFC[x].getName() != afcplayoff[3].getName() && \r\n AFC[x].getName() != afcplayoff[4].getName() && \r\n AFC[x].getName() != afcplayoff[5].getName()){\r\n maxw = AFC[x].displaywins();\r\n afcplayoff[5] = AFC[x]; \r\n }\r\n }\r\n\r\n maxw=0;\r\n for (int x=0;x<NFC.length;x++){\r\n if (NFC[x].displaywins() > maxw && \r\n NFC[x].getName() != nfcplayoff[0].getName() && \r\n NFC[x].getName() != nfcplayoff[1].getName() && \r\n NFC[x].getName() != nfcplayoff[2].getName() && \r\n NFC[x].getName() != nfcplayoff[3].getName() && \r\n NFC[x].getName() != nfcplayoff[4].getName() && \r\n NFC[x].getName() != nfcplayoff[5].getName()){\r\n maxw = NFC[x].displaywins();\r\n nfcplayoff[4] = NFC[x]; \r\n }\r\n }\r\n maxw=0;\r\n for (int x=0;x<NFC.length;x++){\r\n\r\n if (NFC[x].displaywins() > maxw && \r\n NFC[x].getName() != nfcplayoff[0].getName() && \r\n NFC[x].getName() != nfcplayoff[1].getName() && \r\n NFC[x].getName() != nfcplayoff[2].getName() && \r\n NFC[x].getName() != nfcplayoff[3].getName() && \r\n NFC[x].getName() != nfcplayoff[4].getName() && \r\n NFC[x].getName() != nfcplayoff[5].getName()){\r\n maxw = NFC[x].displaywins();\r\n nfcplayoff[5] = NFC[x]; \r\n }\r\n }\r\n\r\n for (int y=0;y<4;y++){\r\n for (int p=0;p<3;p++) {\r\n int a = p+1;\r\n if (afcplayoff[a].displaywins() > afcplayoff[p].displaywins()){\r\n Temp = afcplayoff[p];\r\n afcplayoff[p] = afcplayoff[a];\r\n afcplayoff[a] = Temp;\r\n }\r\n else if (afcplayoff[a].displaywins() == afcplayoff[p].displaywins() && afcplayoff[a].displaypf() > afcplayoff[p].displaypf()){\r\n Temp = afcplayoff[p];\r\n afcplayoff[p] = afcplayoff[a];\r\n afcplayoff[a] = Temp;\r\n }\r\n\r\n }\r\n }\r\n for (int c=0;c<afcplayoff.length;c++){ // Testing to see if users team made the playoffs.\r\n if(YourTeam.getName().equals(afcplayoff[c].getName()))\r\n afcplayofft = true;\r\n }\r\n\r\n for (int y=0;y<4;y++){\r\n for (int r=0;r<3;r++) {\r\n int c = r+1;\r\n if (nfcplayoff[c].displaywins() > nfcplayoff[r].displaywins()){\r\n Temp = nfcplayoff[r];\r\n nfcplayoff[r] = nfcplayoff[c];\r\n nfcplayoff[c] = Temp;\r\n }\r\n else if (nfcplayoff[c].displaywins() == nfcplayoff[r].displaywins() && nfcplayoff[c].displaypf() > nfcplayoff[r].displaypf()){\r\n Temp = nfcplayoff[r];\r\n nfcplayoff[r] = nfcplayoff[c];\r\n nfcplayoff[c] = Temp;\r\n }\r\n\r\n }\r\n }\r\n for (int c=0;c<nfcplayoff.length;c++){\r\n if(YourTeam.getName().equals(nfcplayoff[c].getName()))\r\n nfcplayofft = true;\r\n }\r\n // This shows how the playoffs will look like to the user\r\n System.out.println(\"...\" + \"\\n\" + \"Based on the regular season, here is what the first round of playoffs will look like:\" + \"\\n\");\r\n try\r\n {\r\n Thread.sleep(3000);\r\n }\r\n catch (Exception e)\r\n {}\r\n System.out.println(afcplayoff[0].getName() + \" got a bye in the first round of the playoffs for placing first in the afc.\");\r\n System.out.println(afcplayoff[1].getName() + \" also got a bye in the first round of the playoffs for placing second in the afc.\" + \"\\n\");\r\n System.out.println(nfcplayoff[0].getName() + \" got a bye in the first round of the playoffs for placing first in the nfc.\");\r\n System.out.println(nfcplayoff[1].getName() + \" also got a bye in the first round of the playoffs for placing second in the nfc.\" + \"\\n\");\r\n\r\n System.out.println(afcplayoff[2].getName());\r\n System.out.println(\" \\\\-----\\\\\");\r\n System.out.println(\" ) Winner moves on to play the \" + afcplayoff[0].getName());\r\n System.out.println(\" /-----/\");\r\n System.out.println(afcplayoff[5].getName() + \"\\n\");\r\n\r\n System.out.println(afcplayoff[3].getName());\r\n System.out.println(\" \\\\-----\\\\\");\r\n System.out.println(\" ) Winner moves onto play the \"+ afcplayoff[1].getName());\r\n System.out.println(\" /-----/\");\r\n System.out.println(afcplayoff[4].getName() + \"\\n\");\r\n\r\n System.out.println(nfcplayoff[2].getName());\r\n System.out.println(\" \\\\-----\\\\\");\r\n System.out.println(\" ) Winner moves onto play the \"+ nfcplayoff[0].getName());\r\n System.out.println(\" /-----/\");\r\n System.out.println(nfcplayoff[5].getName() + \"\\n\");\r\n\r\n System.out.println(nfcplayoff[3].getName());\r\n System.out.println(\" \\\\-----\\\\\");\r\n System.out.println(\" ) Winner moves onto play the \"+ nfcplayoff[1].getName());\r\n System.out.println(\" /-----/\");\r\n System.out.println(nfcplayoff[4].getName() + \"\\n\");\r\n\r\n System.out.println(\"...\"+ \"\\n\");\r\n\r\n try\r\n {\r\n Thread.sleep(3000);\r\n }\r\n catch (Exception e)\r\n\r\n {}\r\n }", "private boolean checkCaTegoryLegitness(int[] dice, int category) {\n\t\t// our boolean that is false at the beginning.\n\t\tboolean legitnessStatus = false;\n\t\t// we don't need to check anything for one to six or for check so\n\t\t// boolean\n\t\t// will be true. we don't need to check for one to six because if player\n\t\t// chose one to six we score++ every time we get that number\n\t\t// in the dice. and if there is no that number than the score\n\t\t// automatically will be 0.\n\t\tif (category >= 1 && category <= 6 || category == CHANCE) {\n\t\t\tlegitnessStatus = true;\n\t\t} else {\n\t\t\t// but if player chose something other than one to six or chance we\n\t\t\t// make 6 array lists.\n\t\t\tArrayList<Integer> ones = new ArrayList<Integer>();\n\t\t\tArrayList<Integer> twos = new ArrayList<Integer>();\n\t\t\tArrayList<Integer> threes = new ArrayList<Integer>();\n\t\t\tArrayList<Integer> fours = new ArrayList<Integer>();\n\t\t\tArrayList<Integer> fives = new ArrayList<Integer>();\n\t\t\tArrayList<Integer> sixes = new ArrayList<Integer>();\n\t\t\t// after that we get ones, twos and etc. until six from the dice\n\t\t\t// numbers we randomly got and add that numbers in the array it\n\t\t\t// belongs. for example if the integer on first dice is 5 we add 1\n\t\t\t// in array list called fives. finally, arrays size will give us how\n\t\t\t// many that number we have in our dices.\n\t\t\tfor (int i = 0; i < N_DICE; i++) {\n\t\t\t\tif (dice[i] == 1) {\n\t\t\t\t\tones.add(1);\n\t\t\t\t} else if (dice[i] == 2) {\n\t\t\t\t\ttwos.add(1);\n\t\t\t\t} else if (dice[i] == 3) {\n\t\t\t\t\tthrees.add(1);\n\t\t\t\t} else if (dice[i] == 4) {\n\t\t\t\t\tfours.add(1);\n\t\t\t\t} else if (dice[i] == 5) {\n\t\t\t\t\tfives.add(1);\n\t\t\t\t} else if (dice[i] == 6) {\n\t\t\t\t\tsixes.add(1);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// after we know how many ones, twos etc. we have its easy to check.\n\t\t\t// for THREE_OF_A_KIND if there is any of the arrays that size is\n\t\t\t// equal or more than 3 legitnessStatus should get true.\n\t\t\tif (category == THREE_OF_A_KIND) {\n\t\t\t\tif (ones.size() >= 3 || twos.size() >= 3 || threes.size() >= 3\n\t\t\t\t\t\t|| fours.size() >= 3 || fives.size() >= 3\n\t\t\t\t\t\t|| sixes.size() >= 3) {\n\t\t\t\t\tlegitnessStatus = true;\n\t\t\t\t}\n\t\t\t\t// for FOUR_OF_A_KIND if there is any of the arrays that size is\n\t\t\t\t// equal or more than 4 legitnessStatus should get true.\n\t\t\t} else if (category == FOUR_OF_A_KIND) {\n\t\t\t\tif (ones.size() >= 4 || twos.size() >= 4 || threes.size() >= 4\n\t\t\t\t\t\t|| fours.size() >= 4 || fives.size() >= 4\n\t\t\t\t\t\t|| sixes.size() >= 4) {\n\t\t\t\t\tlegitnessStatus = true;\n\t\t\t\t}\n\t\t\t\t// for FULL_HOUSE we want any of our array list size to be equal\n\t\t\t\t// to three and after that we have that we want one more array\n\t\t\t\t// to be\n\t\t\t\t// equal to two. that means that we will have three similar dice\n\t\t\t\t// and two more similar dice.\n\t\t\t} else if (category == FULL_HOUSE) {\n\t\t\t\tif (ones.size() == 3 || twos.size() == 3 || threes.size() == 3\n\t\t\t\t\t\t|| fours.size() == 3 || fives.size() == 3\n\t\t\t\t\t\t|| sixes.size() == 3) {\n\t\t\t\t\tif (ones.size() == 2 || twos.size() == 2\n\t\t\t\t\t\t\t|| threes.size() == 2 || fours.size() == 2\n\t\t\t\t\t\t\t|| fives.size() == 2 || sixes.size() == 2) {\n\t\t\t\t\t\tlegitnessStatus = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// there is only 3 way we can get SMALL_STRAIGHT. these are if\n\t\t\t\t// dices show: 1,2,3,4 or 2,3,4,5, or 3,4,5,6. for first one it\n\t\t\t\t// means we need our first array size to be one AND our second\n\t\t\t\t// array size to be one AND our third array size to be one AND\n\t\t\t\t// out fourth array list size to be one. and so on for other two\n\t\t\t\t// ways.\n\t\t\t} else if (category == SMALL_STRAIGHT) {\n\t\t\t\tif (ones.size() == 1 && twos.size() == 1 && threes.size() == 1\n\t\t\t\t\t\t&& fours.size() == 1) {\n\t\t\t\t\tlegitnessStatus = true;\n\t\t\t\t} else if (twos.size() == 1 && threes.size() == 1\n\t\t\t\t\t\t&& fours.size() == 1 && fives.size() == 1) {\n\t\t\t\t\tlegitnessStatus = true;\n\t\t\t\t} else if (threes.size() == 1 && fours.size() == 1\n\t\t\t\t\t\t&& fives.size() == 1 && sixes.size() == 1) {\n\t\t\t\t\tlegitnessStatus = true;\n\t\t\t\t}\n\t\t\t\t// for LARGE_STRAIGHT there is only 2 ways. these are:1,2,3,4,5\n\t\t\t\t// or 2,3,4,5,6. for first one it\n\t\t\t\t// means we need our first array size to be one AND our second\n\t\t\t\t// array size to be one AND our third array size to be one AND\n\t\t\t\t// out fourth array list size to be one AND our fifth array list\n\t\t\t\t// size to be one. similar for second way starting from second\n\t\t\t\t// array list and going through to last sixth array list.\n\t\t\t} else if (category == LARGE_STRAIGHT) {\n\t\t\t\tif (ones.size() == 1 && twos.size() == 1 && threes.size() == 1\n\t\t\t\t\t\t&& fours.size() == 1 && fives.size() == 1) {\n\t\t\t\t\tlegitnessStatus = true;\n\t\t\t\t} else if (twos.size() == 1 && threes.size() == 1\n\t\t\t\t\t\t&& fours.size() == 1 && fives.size() == 1\n\t\t\t\t\t\t&& sixes.size() == 1) {\n\t\t\t\t\tlegitnessStatus = true;\n\t\t\t\t}\n\t\t\t\t// and for YAHTZEE we want any of our array list size to be\n\t\t\t\t// five. it will mean that all dices show same thing. because if\n\t\t\t\t// for example array list ones size is five it means that we\n\t\t\t\t// added 1 in that array 5 times and it means that we see 5 same\n\t\t\t\t// number on all dices.\n\t\t\t} else if (category == YAHTZEE) {\n\t\t\t\tif (ones.size() == 5 || twos.size() == 5 || threes.size() == 5\n\t\t\t\t\t\t|| fours.size() == 5 || fives.size() == 5\n\t\t\t\t\t\t|| sixes.size() == 5) {\n\t\t\t\t\tlegitnessStatus = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// finally it will return boolean of true or false.\n\t\treturn legitnessStatus;\n\t}", "private void sortDice() {\r\n for (int index = 0; index < dice.size(); index++) {\r\n for (int subIndex = index; subIndex < dice.size(); subIndex++) {\r\n if (dice.get(subIndex).compareTo((dice.get(index))) > 0) {\r\n final Integer temp = dice.get(index);\r\n dice.set(index, dice.get(subIndex));\r\n dice.set(subIndex, temp);\r\n }\r\n }\r\n }\r\n }", "public void setDiceArray(ArrayList<Dice> DA)\n {\n this.diceArray = DA;\n }", "public void throwDices(int[] details) throws RemoteException {\n sd.getGames().get(details[0]).playRound();\n }", "@Override\n public int getScore(SchemaCard schema) {\n int score = 0;\n for (int i = 0; i < SchemaCard.NUMBER_OF_ROWS; i++) {\n for (int j = 0; j < SchemaCard.NUMBER_OF_COLUMNS; j++) {\n Dice dice = schema.getDice(new Position(i, j));\n if(dice != null && dice.getColorConstraint().equals(colorConstraint)) {\n score += dice.getNumber();\n }\n }\n }\n return score;\n }", "public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n float[] score = new float[7];\n\n System.out.println(\"Enter score for judge 1:\");\n score [0] = input.nextFloat();\n System.out.println(\"Enter score for judge 2:\");\n score [1] = input.nextFloat();\n System.out.println(\"Enter score for judge 3:\");\n score [2] = input.nextFloat();\n System.out.println(\"Enter score for judge 4:\");\n score [3] = input.nextFloat();\n System.out.println(\"Enter score for judge 5:\");\n score [4] = input.nextFloat();\n System.out.println(\"Enter score for judge 6:\");\n score [5] = input.nextFloat();\n System.out.println(\"Enter score for judge 7:\");\n score [6] = input.nextFloat();\n System.out.println(\"Enter difficulty:\");\n float difficulty = input.nextFloat();\n\n float max = 0;\n float min = 0;\n\n Arrays.sort(score);\n\n float totalScore = ((score[1] + score[2] + score[3] + score[4] + score[5]) * difficulty * 0.6f);\n\n System.out.println(\"Total: \" + totalScore);\n }", "public int calculScore(Deck deck)\n {\n return 0;\n }", "public static void main(String[] args) {\n Scanner input = new Scanner(System.in);//declare scanner and have it accenpt user input\n System.out.println(\"Enter in 15 student grades.\");//prompt user to enter 15 grades\n int[] Grades = new int[15];//create single dimensional array\n int grade1 = 0;//start at zero\n int grade2 = 0;//start at zero\n for(int i = 0; i<15; i++){//begin outer for loop\n Boolean isGood = false;//declare boolean\n do{\n Grades[i] = input.nextInt();//the grade is equal to the integer entered by the user\n while(Grades[i]>100){//condition mmust be satisfied or will print error\n System.out.println(\"The Integer you input was over 100!\");\n Grades[i] = input.nextInt();//Prompt again for user input\n }\n while(Grades[i]<0){//condition mmust be satisfied or will print error\n System.out.println(\"The Integer you input was under 0!\");\n Grades[i] = input.nextInt();//Prompt again for user input\n }if(i != 0){\n while(Grades[i]<= Grades[i-1]){//condition mmust be satisfied or will print error\n System.out.println(\"The Integer you input was not greater than the last!\");\n Grades[i] = input.nextInt();//Prompt again for user input\n }\n }else{\n isGood = true;\n }\n \n }while(Grades[i]>100 || Grades[i]<0 && isGood);//begin while loop for set conditions\n }\n for(int x = 0; x<15; x++){\n System.out.print(Grades[x] + \" \");\n }\n System.out.println(\"Enter a grade to search for\");\n grade1 = input.nextInt();//Enter the grade you are searching for\n BinarySearch(Grades, grade1);\n \n System.out.println(\"Scrambled\");//notify when the array has been scrambled\n if(ScrambleArray(Grades)){\n System.out.println(\"Scrambled\");\n }\n System.out.println(\"Enter a grade to search for\");\n grade2 = input.nextInt();//Enter the grade you are searching for\n int indexForLinear = LinearSearch(Grades, grade2);\n if(indexForLinear == -1){\n System.out.println(grade2 + \" was not found in \" + indexForLinear + \" iterations\");//print number of iterations it took\n }\n if(indexForLinear != -1){\n System.out.println(grade2 + \" was found in \" + indexForLinear + \" iterations\");//print number of iterations it took\n }\n }", "public void calculateThreeOfAKind(Die[] dice) {\n for (int i = 0; i < 6; i++) {\n if (this.numOfOccurances(dice, i) >= 3) {\n this.threeOfAKind = this.diceSum(dice);\n //System.out.println(\"you have gotten a three of a kind\");\n return;\n }\n }\n this.threeOfAKind = 0;\n return;\n }", "private static int[] climbingLeaderboard(int[] scores, int[] alice) {\n\n int[] result = new int[alice.length];\n for (int x = 0; x < alice.length; x++) {\n result[x] = insert(Arrays.stream(scores).distinct().toArray(), alice[x]);\n }\n return result;\n }", "private void otherRolls() {\n\t\t// program tells that player should select dices to re-roll.\n\t\tdisplay.printMessage(\"Select the dice you wish to re-roll and click \"\n\t\t\t\t+ '\\\"' + \"Roll Again\" + '\\\"');\n\t\t// program will wait until player clicks \"roll again\" button.\n\t\tdisplay.waitForPlayerToSelectDice();\n\t\t// we randomly get six integers, from one to six, and we do it N_DICE\n\t\t// times and every time we write our random integer in the array.\n\t\tfor (int i = 0; i < N_DICE; i++) {\n\t\t\tif (display.isDieSelected(i) == true) {\n\t\t\t\tint dice = rgen.nextInt(1, 6);\n\t\t\t\tdiceResults[i] = dice;\n\t\t\t}\n\t\t}\n\t\t// program will display dice, that depends on our randomly taken\n\t\t// integers.\n\t\tdisplay.displayDice(diceResults);\n\t}", "public static int[] mucScore(LeanDocument key, LeanDocument response)\n{\n // System.out.println(\"==========================================================\");\n // System.out.println(\"Key:\\n\"+key.toStringNoSing()+\"\\n*************************\\nResponse:\\n\"+response.toStringNoSing());\n\n Iterator<TreeMap<Integer, Integer>> goldChains = key.chainIterator();\n // double mucRecall = 0.0;\n int mucRecallNom = 0;\n int mucRecallDenom = 0;\n while (goldChains.hasNext()) {\n TreeMap<Integer, Integer> keyChain = goldChains.next();\n if (keyChain.size() > 1) {\n int numInt = numIntersect(key, keyChain, response);\n\n // int numMatched = getNumMatched(key, keyChain);\n // if(numMatched>0){\n // mucRecallNom += numMatched-numInt;\n mucRecallNom += (keyChain.size() - numInt);\n // mucRecallDenom += numMatched-1;\n mucRecallDenom += keyChain.size() - 1;\n\n // System.out.println(keyChain+\"\\n\"+(keyChain.size() - numInt)+\"/\"+(keyChain.size()-1));\n // }\n }\n }\n int[] result = { mucRecallNom, mucRecallDenom };\n\n return result;\n}", "public TestScores(int[] testScores) {\n this.testScores = testScores;\n }", "public final int getPointsByPlayerId(final int playerId) {\n for (final Score score : this.scoreArray) {\n if (score.getPlayerId() == playerId) {\n return score.getPoints();\n }\n }\n\n return 0;\n }", "public int[] compareDice(Dice defender) {\r\n final int[] loss = new int[]{0, 0}; // attackers, defenders\r\n //Sets number of dice to the size of the team with the least units\r\n final int numberOfDice = defender.getSize() <= getSize()\r\n ? defender.getSize()\r\n : getSize();\r\n //Determines which team loses units when comparing dice\r\n for (int roll = 0; roll < numberOfDice; roll++) {\r\n if (defender.get(roll).compareTo(get(roll)) >= 0) {\r\n loss[0]++;\r\n } else {\r\n loss[1]++;\r\n }\r\n }\r\n return loss;\r\n }", "public int candy(int[] ratings) {\n int prev = 1;\n int total = prev;\n int prevId = 0;\n for (int i = 1; i < ratings.length; ++i) {\n if (ratings[i] > ratings[i-1]) {\n int cur = prev + 1;\n total += cur;\n prev = cur;\n prevId = i;\n } else if (ratings[i] == ratings[i-1]) {\n total += 1;\n prev = 1;\n prevId = i;\n } else if (i == ratings.length - 1 || ratings[i] <= ratings[i + 1]) {\n total += (i - prevId + 1) * (i - prevId) / 2;\n int prevUpdated = Math.max(prev, 1 + i - prevId);\n total += prevUpdated - prev;\n prev = 1;\n prevId = i;\n }\n }\n return total;\n }", "public static double getAveg(int[] scores) {\r\n\t\r\n\t\tint sum = 0;\r\n\t\tfor (int i = 0; i < scores.length; ++i) {\r\n\t\t\tsum += scores[i];\r\n\t\t}\r\n\t\t\r\n\t\treturn ((double)(sum))/(scores.length);\r\n\t\r\n\t}", "public int score() {\n int sum = 0;\n for (Candidate c : chosen) {\n sum += c.score(compatibilityScoreSet);\n }\n return sum;\n }", "@Test\r\n\tpublic void fromNumGradeTest(){\r\n\t\tint[] testNumGrade = { -1, 0, 34,36,41,42,45,47,51,53,55,58,60,63,65,68,71,74,77, 100 };\r\n\t\tint expectedValue = 20;\r\n\t\tfor(int i=0;i<testNumGrade.length;i++){\r\n\t\t\tassertEquals(expectedValue,PointGrade.fromNumGrade(testNumGrade[i]).getPoints());\r\n\t\t\texpectedValue--;\r\n\t\t}\r\n\t}", "public static int tower(int... result) {\n\n int score = nSame(4, 6, result);\n int firstMatch = score/4;\n\n result = IntStream.of(result).filter(val -> val != firstMatch).toArray();\n score = nSame(2, 6, result);\n int secondMatch = score/2;\n\n if (firstMatch*secondMatch > 0) {\n score = 4*firstMatch + 2*secondMatch;\n } else {\n score = 0;\n }\n\n return score;\n }", "public void calculateScores()\r\n {\r\n for(int i = 0; i < gameBoard.getBoardRows(); i++)\r\n for(int j = 0; j < gameBoard.getBoardCols(); j++)\r\n {\r\n if(gameBoard.tilePlayer(i,j) == 0)\r\n currentRedScore = currentRedScore + gameBoard.tileScore(i,j);\r\n if(gameBoard.tilePlayer(i,j) == 1)\r\n currentBlueScore = currentBlueScore + gameBoard.tileScore(i,j);\r\n }\r\n }", "static int[] climbingLeaderboard(int[] scores, int[] alice) {\n /*\n * Write your code here.\n */\n List<Integer> ranks = new ArrayList<>();\n int i=0;\n while(i<scores.length-1) {\n ranks.add(scores[i]);\n int j=i+1;\n while(j<scores.length && scores[i]==scores[j]) {\n j+=1;\n }\n i=j;\n }\n ranks.add(scores[scores.length-1]);\n int[] aliceRank = new int[alice.length];\n for (int j=0; j< alice.length; j++) {\n int index = Collections.binarySearch(ranks, alice[j],Comparator.reverseOrder());\n aliceRank[j] = index > 0 ? index + 1 : index == 0 ? 1 : Math.abs(index);\n }\n return aliceRank;\n }", "public static ArrayList<Integer> diceFrequency(int roll)\r\n {\r\n // variables\r\n Dice dice;\r\n int diceRoll;\r\n \r\n // program code\r\n dice = new Dice();\r\n \r\n ArrayList<Integer> frequency;\r\n frequency = new ArrayList<Integer> ();\r\n \r\n for (int i = 0; i < 11; i++)\r\n frequency.add(0);\r\n\r\n // roll the dice until the limit\r\n for (int i = 1; i <= roll; i++)\r\n {\r\n diceRoll = dice.rollDice();\r\n frequency.set(diceRoll - 2, frequency.get(diceRoll - 2) +1 ); \r\n }\r\n return frequency;\r\n }", "private void playGame() {\n\t\tcategoryChosenChecker = new boolean[nPlayers + 1][N_CATEGORIES];\n\t\t// next one is for upper score.\n\t\tupperScore = new int[nPlayers + 1];\n\t\t// for lower score.\n\t\tlowerScore = new int[nPlayers + 1];\n\t\t// and finally, for total score.\n\t\ttotalScore = new int[nPlayers + 1];\n\t\t// here we have for loop, because we want our game to go for\n\t\t// N_SCORING_CATEGORIES times.\n\t\tfor (int i = 0; i < N_SCORING_CATEGORIES; i++) {\n\t\t\t// and here is another for loop, because each player should roll the\n\t\t\t// dice.\n\t\t\tfor (int j = 1; j <= nPlayers; j++) {\n\t\t\t\t// first roll.\n\t\t\t\tfirstRoll(j);\n\t\t\t\t// and the last for loop, because second and third rolls are\n\t\t\t\t// similar and can be written in one method and we want this\n\t\t\t\t// method to happen 2 times.\n\t\t\t\tfor (int k = 1; k <= 2; k++) {\n\t\t\t\t\t// second and third rolls.\n\t\t\t\t\totherRolls();\n\t\t\t\t}\n\t\t\t\t// after rolls, player will choose category.\n\t\t\t\tcategory(j);\n\t\t\t}\n\t\t}\n\t\t// when the game ends program will tell who is the winner.\n\t\twhoIsTheWinner();\n\t}", "public int generateScore(List<Integer> line){\r\n\t\tif (line.get(0)+line.get(1)+line.get(2)==2 ) {\r\n\t\t\treturn 10;\r\n\t\t}\r\n\t\telse if (line.get(0)==line.get(1)&&line.get(1)==line.get(2) && line.get(0)==line.get(2)) {\r\n\t\t\treturn 5;\r\n\t\t}\r\n\t\telse if (line.get(0)!=line.get(1)&&line.get(0)!=line.get(2)) {\r\n\t\t\treturn 1;\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\t\t\r\n\t\r\n\t}", "public void calculations(){\n\n int temp_size1 = fight_list.get(0).t1.members.size();\n int[] t1_counter = new int[temp_size1 + 1]; //counter for deaths: 0, 1, 2..., party size.\n float t1_avg = 0; //Average number of deaths.\n\n //We don't need to calculate for t2 right now, because t2 is just monsters.\n //temp_size = fight_list.get(0).t2.members.size();\n //int[] t2_counter = new int[temp_size + 1];\n\n for(FightResult fig : this.fight_list){\n int i = 0;\n while(i != fig.t1_deaths){\n i++;\n }\n t1_counter[i]++;\n t1_avg += fig.t1_deaths;\n }//end for\n\n System.out.println(t1_avg);\n System.out.println(Float.toString(t1_avg/fight_list.size()) + \" / \" + Integer.toString(temp_size1));\n\n String axis = \"# of deaths: \\t\";\n int axis_int = 0;\n String t1_results = \"Happened: \\t\";\n for(int i : t1_counter){\n axis += Integer.toString(axis_int++) + \"\\t\";\n t1_results += Integer.toString(i) + \"\\t\";\n }//end for\n System.out.println(axis);\n System.out.println(t1_results);\n\n float tpk_amount = t1_counter[temp_size1]; //by taking the size, we take the item at the end of the array. In this case, the number where everyone dies.\n tpk_amount = (tpk_amount/fight_list.size())*100;\n System.out.println(\"Probability of TPK: \" + Float.toString(tpk_amount) + \" %.\");\n\n System.out.println(\"\\n--------\\n\");\n }", "public void loadScore() {\n for (int i = 0; i < 4; i++) {\n int[] enemyTankNum = CollisionUtility.getEnemyTankNum();\n tankNumList[i] = enemyTankNum[i];\n }\n for (int i = 0; i < 4; i++) {\n tankScoreList[i] = tankNumList[i] * 100 * (i + 1);\n }\n for (Integer score : tankScoreList) {\n totalScore += score;\n }\n for (Integer num : tankNumList) {\n totalTankNum += num;\n }\n }", "public int getScore(Grid grid) {\n Integer[] allValues = {0, 0, 0, 0, 0, 0};\n for (int idx_x = 0; idx_x < Grid.COLUMNS; idx_x++) {\n for (int idx_y = 0; idx_y < Grid.ROWS; idx_y++) {\n if (!grid.isCellEmpty(idx_x, idx_y)) {\n Dice currDie = grid.getDie(idx_x, idx_y);\n allValues[currDie.getValue()-1] += 1;\n }\n }\n }\n return Collections.min(Arrays.asList(allValues)) * this.objValue;\n }", "private static Integer findMissingValue_UseMath(int[] arrayInteger) {\n int sum = arrayInteger.length * ((arrayInteger.length + 1 )/2);\n // then for each item in the source array\n for(int val : arrayInteger)\n {\n sum -= val;\n }\n return sum;\n }", "public abstract Score[] getScore();", "public int[] getYourScore(int[] details, int round) throws RemoteException {\n return sd.getGames().get(details[0]).getRound(round).\n getPlayerScore(details[1]);\n }", "public static void main(String[] args) throws Exception\n {\n\t ContextFactory.createRootContext(new FileContextSource(new File(args[0])));\n Die d = new Die(new CoinjemaContext(args[3]));\n int hits = 0;\n int TO_HIT = Integer.parseInt(args[1]);\n int NUM_ROLLS = Integer.parseInt(args[2]);\n int[] distribution = new int[80];\n int trials = 100000;\n int numHits;\n int result = 0;\n long time = System.nanoTime();\n for (int x = 0; x < trials; x++)\n {\n result = d.roll(6, NUM_ROLLS);\n numHits = (result / TO_HIT);\n hits += numHits; \n distribution[numHits]++;\n }\n System.out.println(\"Took: \" + ((float)(System.nanoTime() - time)/1000000) + \" ms\");\n float average = ((float) ((float) hits / trials));\n System.out.println(\"1000 runs: \\n\\tTo Hit: \" + TO_HIT + \"\\n\\tTotal Hits: \" + hits + \"\\n\\tAverage: \"\n + average + \" hits\");\n System.out.println(\"\\n\\nDistribution\");\n for(int x = 0;x < 80;x++)\n {\n \t if(distribution[x] > 0)\n \t {\n \t\t System.out.print(x);\n \t\t System.out.print(\"\\t\");\n \t }\n }\n System.out.println(\"\");\n for (int x = 0; x < 80; x++)\n {\n \t if(distribution[x] > 0)\n \t System.out.print(distribution[x] + \"\\t\"); \t\t \n }\n System.out.println(\"\");\n for (int x = 0; x < 80; x++)\n {\n \t if(distribution[x] > 0)\n \t\t System.out.print((int) (.5 + (100 * ((float) distribution[x] / trials))) + \"%\\t\");\n }\n System.out.println(\"\\n\");\n float ratio = (float)NUM_ROLLS/TO_HIT;\n System.out.println(\"Ratio = \" + ratio);\n System.out.println(\"Average/ratio = \" + average/ratio);\n System.out.println(\"predicted average = \" + ((3*NUM_ROLLS)/TO_HIT));\n }", "public static void stats(ArrayList<Player> playerList){\n \n //{\"blue\", \"pink\", \"yellow\", \"green\" }\n int colorArray[] = {0,0,0,0} ;\n //{ \"Cadbury Egg\", \"Reese's Egg\", \"pink Starburst\", \"yellow Peep\", \"25 cents\", \"50 cents\", \"one dollar\" }\n int contentsArray[] = {0,0,0,0,0,0,0};\n //creates an array the size of how many players are in the user picks\n int ps = playerList.size();\n int eggsFound[] = new int[ps];\n for (int i = 0; i < ps ;i++){\n //adds the number of eggs each player found to the eggsFound array\n eggsFound[i] = playerList.get(i).getNumEggs();\n\n //created this variable since we use it for a lot of upper bounds in our for loop\n int bs = playerList.get(i).getBasket().size();\n\n //for each player's basket it looks at every egg and 1 to the contentsArray in the index that coresponds to the egg's contents\n for (int e = 0; e < bs; e++){\n String color = playerList.get(i).getBasket().get(e).getEggColor();\n if(color.equals(\"blue\")){\n colorArray[0] += 1;\n }else if(color.equals(\"pink\")){\n colorArray[1] += 1;\n }else if(color.equals(\"yellow\")){\n colorArray[2] += 1;\n }else{\n colorArray[3] += 1;\n }\n }\n //for each player's basket it looks at every egg and 1 to the contentsArray in the index that coresponds to the egg's contents\n //Extra Credit 2: display contents\n for (int c = 0; c < bs; c++){\n String contents = playerList.get(i).getBasket().get(c).getEggContents();\n if(contents.equals(\"Cadbury Egg\")){\n contentsArray[0] += 1;\n }else if(contents.equals(\"Reese's Egg\")){\n contentsArray[1] += 1;\n }else if(contents.equals(\"pink Starburst\")){\n contentsArray[2] += 1;\n }else if(contents.equals(\"yellow Peep\")){\n contentsArray[3] += 1;\n }else if(contents.equals(\"25 cents\")){\n contentsArray[4] += 1;\n }else if(contents.equals(\"50 cents\")){\n contentsArray[5] += 1;\n }else{\n contentsArray[6] += 1;\n }\n }\n }\n //find the max number from the eggsFound array by comparing the first index to each subsequent one and replacing the comparision number with the higest one.\n int maxEggs = eggsFound[0];\n for(int k = 0; k < eggsFound.length; k++){\n maxEggs = Math.max(maxEggs, eggsFound[k]);\n }\n //creating an ArrayList to track winners. using a for loop and the eggsFound array to save \"winner string\" for each player who found the higest number of eggs\n ArrayList<String> winnerArray = new ArrayList<String>();\n for(int m = 0; m < eggsFound.length; m++){\n if (eggsFound[m] == maxEggs){\n winnerArray.add(\n \"Player \" + m + \" found the most eggs, with \" + eggsFound[m] + \" eggs!\");\n }\n }\n\n //sum up the number of eggs found by summing the values in the colorArray\n int totalEggs = 0;\n for(int x=0; x < colorArray.length; x++) {\n totalEggs += colorArray[x];\n }\n\n //Winner print out & find ties\n //Extra credit 3 : Additional features\n if(winnerArray.size() > 1){\n System.out.println(\"There is a Tie!\");\n System.out.println(\"Winners:\");\n for (String w : winnerArray) {\n\t System.out.println(w);\n }\n }else{\n System.out.println(\"Winner:\");\n for (String w : winnerArray) {\n\t System.out.println(w);\n }\n }\n \n \n System.out.println();\n //print out summary statistics for eggcolor\n System.out.println(\"Total eggs found: \" + totalEggs);\n System.out.println(\"Blue eggs: \" + colorArray[0]);\n System.out.println(\"Pink eggs: \" + colorArray[1]);\n System.out.println(\"Yellow eggs: \" + colorArray[2]);\n System.out.println(\"Green eggs: \" + colorArray[3]);\n \n System.out.println();\n //print out summary statistics for EggContents\n System.out.println(\"Total prizes found: \" + totalEggs);\n System.out.println(\"Cadbury Egg: \" + contentsArray[0]);\n System.out.println(\"Reese's Egg: \" + contentsArray[1]);\n System.out.println(\"pink Starburst: \" + contentsArray[2]);\n System.out.println(\"yellow Peep: \" + contentsArray[3]);\n System.out.println(\"25 cents: \" + contentsArray[4]);\n System.out.println(\"50 cents: \" + contentsArray[5]);\n System.out.println(\"one dollar: \" + contentsArray[6]);\n\n }", "public Integer aiAction() {\r\n\t\t//if the first dice is less then six, throw the second dice \r\n\t\t//if the both throws > 10 the ai has lost, and will return 0\r\n\t\t//if the first dice == 7, return first dice\r\n\t\tInteger totalSum = 0;\r\n\t\tRandom aiRandom = new Random();\r\n\t\tInteger firstDice = aiRandom.nextInt(7) + 1;\r\n\t\tSystem.out.println(\"First dice: \" + (totalSum += firstDice));\r\n\t\tif (firstDice < 6) {\r\n\t\t\tInteger secondDice = aiRandom.nextInt(7) + 1;\r\n\t\t\tSystem.out.println(\"Second dice value is: \" + secondDice);\r\n\t\t\tSystem.out.println(\"Sum of both throws: \" + (totalSum += secondDice));\r\n\t\t\tif(totalSum > 10){\r\n\t\t\t\treturn 0;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\treturn totalSum;\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"Ai scored :\" + (firstDice));\r\n\t\t\treturn firstDice;\r\n\t\t}\r\n\r\n\t}", "public void calculatePoints() {\n /*\n for (int i = 0; i < getRacers().size(); i++) {\n String username = getRacers().get(i).getUsername();\n int total = 0;\n for (int j = 0; j < getRounds().size(); j++) {\n Slot slot = getRounds().get(j).findRacerInRound(username);\n if (slot != null) {\n total = total + slot.getPoints();\n }\n }\n getRacers().get(i).setPoints(total);\n }*/\n }", "public int score(){\r\n\t\t\r\n\t\tint score = 0;\r\n\t\t\r\n\t\tif( this.isStrike() ) {\r\n\t\t\tif(this.getSubSequent() != null)\r\n\t\t\t\tscore += this.getSubSequent().score();\r\n\t\t}\r\n\t\t\r\n\t\tscore += this.firstThrow + this.secondThrow;\r\n\t\t\r\n\t\treturn score;\r\n\t\t\r\n\t}" ]
[ "0.6858635", "0.6823056", "0.66092056", "0.62378836", "0.6153525", "0.6061154", "0.60042953", "0.60011697", "0.59956795", "0.5962729", "0.5936217", "0.5789063", "0.57578087", "0.573986", "0.572924", "0.57248884", "0.57040656", "0.56878054", "0.5577617", "0.5569533", "0.556119", "0.55438846", "0.5539501", "0.55358046", "0.5530576", "0.54618144", "0.54571754", "0.5420332", "0.5416706", "0.5409278", "0.5392134", "0.5388121", "0.5386163", "0.53795904", "0.53693384", "0.5353815", "0.5342159", "0.53406566", "0.5337692", "0.52981657", "0.52952427", "0.529498", "0.5293637", "0.5284287", "0.5281119", "0.5277874", "0.52739096", "0.52717173", "0.5271651", "0.52699286", "0.52509403", "0.5239417", "0.52362436", "0.52222615", "0.5216142", "0.5214963", "0.5211735", "0.52107894", "0.5207182", "0.5190247", "0.51898706", "0.5188131", "0.51877224", "0.51806724", "0.5179147", "0.5175604", "0.5170238", "0.5160566", "0.5145865", "0.5138296", "0.51358896", "0.51319194", "0.51313114", "0.5130615", "0.512525", "0.51219094", "0.5116844", "0.5110459", "0.5108761", "0.51018494", "0.51016384", "0.5101165", "0.50990677", "0.5097248", "0.5094873", "0.5087329", "0.5075855", "0.5073835", "0.506832", "0.5040357", "0.50395054", "0.5036941", "0.50358206", "0.5034686", "0.5031929", "0.5025858", "0.5021686", "0.50197774", "0.50196666", "0.5019319" ]
0.64654285
3
Finds all Permutations of the given Valuearray.
public static void findPermutations(int position, int[] arr) { int[] array = Arrays.copyOf(arr, arr.length); if (position == array.length - 1) { permutations.add(array); } for (int i = position; i < array.length; i++) { int temp = array[position]; array[position] = array[i]; array[i] = temp; findPermutations(position + 1, array); array[i] = array[position]; array[position] = temp; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static List<List<Integer>> getPermutation(List<Integer> array){\n List<List<Integer>> result = new ArrayList<List<Integer>>();\n getPermutation(array,new ArrayList<>(),result);\n return result;\n }", "public static List<int[]> getPermutations( int start, int end, int arraySize )\n {\n ArrayList<int[]> permutations = new ArrayList<int[]>( );\n List<int[]> singles = getArrays( start, end );\n permutations.addAll( singles );\n \n List<int[]> lastArrays = singles;\n for ( int i = 2; i <= arraySize; i++ )\n {\n List<int[]> nextArrays = getArrays( lastArrays, end );\n permutations.addAll( nextArrays );\n lastArrays = nextArrays;\n }\n \n return permutations;\n }", "public static <T> List<T[]> permutation(T[] arr) {\n T[] array = arr.clone();\n List<T[]> result = new LinkedList<>();\n backtracking(array, 0, result);\n return result;\n }", "public Integer[] createPermutation() {\n Integer[] value = createSortedArray();\n\n for (int c = 0; c < 5; c++) {\n for (int i = 0; i<value.length; i++) {\n int j = (int)(Math.random()*value.length);\n int temp = value[i];\n value[i] = value[j];\n value[j] = temp;\n }\n }\n \n return value;\n }", "static int[] permutationEquation(int[] p) {\n int[] ret = new int[p.length];\n HashMap<Integer,Integer> values = new HashMap<>();\n for(int i = 0; i < p.length; i++){\n values.put(p[i],i+1);\n }\n for(int i = 1; i <=p.length; i++){\n int index1 = values.get(i);\n int index2 = values.get(index1);\n ret[i-1] = index2;\n }\n return ret;\n }", "public static List allPerm(Object input[]) {\r\n List<Object[]> retVal = new ArrayList(Math.factorial(input.length));\r\n allPerm(0, input, retVal);\r\n return retVal;\r\n }", "public static boolean isPermutation(int[] inputArray)\n\t{\n\t\t//boolean isPerm = true;\n\t\tif (inputArray != null && inputArray.length > 0) \n\t\t{\n\t\t\tint min = inputArray[0];\n\t\t\tint max = inputArray[0]; \n\t\t\tboolean[] bins = new boolean[inputArray.length];\t\t\t\n\t\t\tfor (int index = 0; index < inputArray.length; index++)\n\t\t\t{\n\t\t\t\tbins[index] = false;\n\t\t\t\tif (inputArray[index] < min)\n\t\t\t\t{\n\t\t\t\t\tmin = inputArray[index];\n\t\t\t\t}\n\t\t\t\tif (inputArray[index] > max)\n\t\t\t\t{\n\t\t\t\t\tmax = inputArray[index];\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (max - min == inputArray.length - 1)\n\t\t\t{\n\t\t\t\tfor (int index = 0; index < inputArray.length; index++)\n\t\t\t\t{\n\t\t\t\t\tint compareIndex = inputArray[index] - min;\n\t\t\t\t\tif (bins[compareIndex])\n\t\t\t\t\t{\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t} \n\t\t\t\t\tbins[compareIndex] = true;\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t} \n\t\t}\n\t\treturn false;\n\t}", "public CollectionPermutationIter(List<E> objectsArray, ArrayPermutationsIter permuter)\r\n/* */ {\r\n/* 103 */ this.permOrder = permuter;\r\n/* 104 */ this.sourceArray = objectsArray;\r\n/* */ }", "public int[] CreatePermutations(int[] seq){\n \n return seq;\n }", "public ArrayList<ArrayList<Integer>> permuteUnique(int[] num) {\n HashMap<Integer, Integer> count = new HashMap<Integer, Integer>();\n for(int i = 0; i < num.length; i++) {\n \tif(!count.containsKey(num[i])) count.put(num[i], 1);\n \telse count.put(num[i], count.get(num[i])+1); \t\n }\n \n ArrayList<Integer> numUni = new ArrayList<Integer>(count.size());\n ArrayList<Integer> numCount = new ArrayList<Integer>(count.size());\n for(int e: count.keySet()) {\n \tnumUni.add(e);\n \tnumCount.add(count.get(e)); \t\n }\n \n ArrayList<ArrayList<Integer>> results = new ArrayList<ArrayList<Integer>>();\n ArrayList<Integer> result = new ArrayList<Integer>(num.length);\n permuteUnique(numUni, numCount, result, results);\n return results;\n }", "private static int[] computePermutations(int n) {\n final int[] indexes = new int[n];\n for (int i = 0; i < n; i++) {\n indexes[i] = i;\n //indexes[i] = i + 1;\n }\n\n final int total = computePermutations(indexes, 0, n);\n System.out.println(\"# \" + np + \"; total = \" + total);\n\n return indexes;\n }", "public PermutationGenerator(int[] arr) {\n if (arr.length < 1 && arr.length > 20) {\n throw new IllegalArgumentException(\"PermutationGenerator can only accept argument arr.length >= 1 && arr.length <=20\");\n }\n total = getFactorial(arr.length);\n initialize(arr);\n }", "public static List<List<Integer>> permutationsNoDup(int[] num){\n List<List<Integer>> permutations = new ArrayList<>();\n Integer[] cur = new Integer[num.length];\n boolean[] mark = new boolean[num.length];\n permutationsNoDup(num, mark, cur, 0, permutations);\n return permutations;\n }", "private static void findPermutations(int index, List<Integer> nums) {\n\n }", "public static void nextPermutation(int[] num) {\n int rindex, index;\n for (rindex = num.length - 1; rindex > 0 && num[rindex] <= num[rindex - 1]; rindex--);\n if (rindex > 0) {\n for (index = num.length - 1; num[index] <= num[rindex - 1]; index--);\n swap(num, index, rindex - 1);\n }\n for (index = rindex; index < rindex + ((num.length - rindex) >> 1); index++) {\n swap(num, index, num.length - index + rindex - 1);\n }\n }", "public byte[] getPermutation() {\n byte[] p = new byte[48];\n for(int i = 0; i < 24; i+=3) {\n int k = co[i/3];\n if(k == 0) {}\n else if(k == 1) {k=2;}\n else {k=1;}\n int r = cp[i/3] * 3 + k;\n p[i] = (byte) r;\n p[i+1] = (byte) (((r-r/3*3+1)%3)+r/3*3);\n p[i+2] = (byte) (((r-r/3*3+2)%3)+r/3*3);\n }\n for(int i = 24; i < 48; i +=2) {\n int r = ep[(i-24)/2]*2 + eo[(i-24)/2];\n p[i] = (byte) (r + 24);\n p[i+1] = (byte) ((r-r/2*2+1)%2 + r/2*2 + 24);\n }\n return p;\n }", "private ArrayList<int[]> buildPermutations(int n) {\n mPermutations = new ArrayList();\n mPermuteArray = new int[n];\n for (int i = 0; i < n; i++)\n mPermuteArray[i] = i;\n generate(n);\n return mPermutations;\n }", "public static void permutations(int arr[], int pos, IPermutationVisitor visitor) {\n final int n = arr.length;\n if (pos == n - 1) {\n visitor.operation(arr);\n } else {\n for (int i = pos; i < n; i++) {\n int cur = arr[pos];\n for (int j = pos + 1; j < n; j++) {\n arr[j - 1] = arr[j];\n }\n arr[n - 1] = cur;\n permutations(arr, pos + 1, visitor);\n }\n }\n }", "public static List<int[]> getUniquePermutations( int start, int end, int arraySize )\n {\n List<int[]> perms = getPermutations( start, end, arraySize );\n List<int[]> uniquePerms = new ArrayList<int[]>( perms );\n \n // for start=1, end=5, arraysize=5\n // remove [1,2,3,4],[1,2,3],[1,2],[1], [2,3,4],[2,3],[2], [3,4],[3], [4]\n for (int i = start; i < end; i++)\n {\n uniquePerms = removeSequences( uniquePerms, i, arraySize-1 );\n }\n \n return uniquePerms;\n }", "public static int[] sortedPermutation(final double[] a) {\n\t\tInteger[] re = new Integer[a.length];\n\t\tfor (int i=0; i<re.length; i++)\n\t\t\tre[i] = i;\n\t\tArrays.sort(re,new Comparator<Integer>() {\n\t\t\t@Override\n\t\t\tpublic int compare(Integer o1, Integer o2) {\n\t\t\t\treturn Double.compare(a[o1], a[o2]);\n\t\t\t}\n\t\t});\n\t\treturn intCollectionToPrimitiveArray(Arrays.asList(re));\n\t}", "public List<List<Integer>> permute(int[] nums) {\n Arrays.sort(nums);\n List<List<Integer>> list = new ArrayList<List<Integer>>();\n list.add(Arrays.stream(nums).boxed().collect(Collectors.toList()));\n addNextPermutation(list, nums);\n\t\treturn list;\n }", "public static List<List<Integer>> permutationsWithDup(int[] num){\n Arrays.sort(num);\n List<List<Integer>> permutations = new ArrayList<>();\n Integer[] cur = new Integer[num.length];\n boolean[] mark = new boolean[num.length];\n permutationsWithDup(num, mark, cur, 0, permutations);\n return permutations;\n }", "public ArrayList<ArrayList<Integer>> permuteUnique(int[] num) {\n HashMap<Integer, Integer> count = new HashMap<Integer, Integer>();\n for(int i = 0; i < num.length; i++) {\n \tif(!count.containsKey(num[i])) count.put(num[i], 1);\n \telse count.put(num[i], count.get(num[i])+1); \t\n }\n \n ArrayList<Integer> numUni = new ArrayList<Integer>(count.size());\n ArrayList<Integer> numCount = new ArrayList<Integer>(count.size());\n for(int e: count.keySet()) {\n \tnumUni.add(e);\n \tnumCount.add(count.get(e)); \t\n }\n \n return permuteUnique(numUni, numCount);\n }", "public static int[] permutation()\n\t{\n\t\tint[] permutation = new int[DEFAULT_ARRAY_SIZE];\n\t\tRandom random = new Random();\n\t\tfor (int index = 0; index < permutation.length; index++)\n\t\t{\n\t\t\tpermutation[index] = index + 1;\n\t\t}\n\t\tfor (int index = 0; index < permutation.length; index++)\n\t\t{\n\t\t\tint randomIndex = random.nextInt(DEFAULT_ARRAY_SIZE);\n\t\t\tint holder = permutation[randomIndex];\n\t\t\tpermutation[randomIndex] = permutation[index];\n\t\t\tpermutation[index] = holder;\n\t\t}\n\t\treturn permutation;\n\t}", "public static void permutations(String input){\n\t\tpermutations(\"\", input);\n\t}", "public static void main(String[] args)\n {\n int[] arr = new int[]{1,2,3};\n List<List<Integer>> result = new ArrayList<>();\n Permutation permutation = new Permutation();\n permutation.permuteInteger(arr,result, 0, arr.length);\n\n System.out.println(result);\n }", "public void nextPermutation(int[] arr) {\n int i=arr.length-2,j=arr.length-1;\n for(;i>=0;i--){\n if(arr[i]<arr[i+1]) break;\n }\n if(i!=-1){\n for(;j>=0;j--){\n if(arr[i]<arr[j]) break;\n }\n int temp = arr[i];\n arr[i] = arr[j];\n arr[j] = temp;\n }\n \n reverse(arr,i+1,arr.length-1);\n }", "public List<List<Integer>> permute(int[] nums) {\n List<List<Integer>> res = new ArrayList<>();\n List<Integer> numList = new ArrayList<>();\n for (int n : nums) numList.add(n);\n permute(numList, 0, res);\n return res;\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Permutation of 1234 : \");\n\t\tint[] int_array = {1,2,3,4};\n\t\tPermutationOfAnArray.permutationOfIntegers(int_array, 0, 4);\n\t\tSystem.out.println(\"Total permutations : \" + count);\t\t\n\t}", "public static Iterator<int[]> permutations(int size) {\n return new PermutationIterator(size);\n }", "public static int[] finalPermutation(int[] inputText){\n\t\tint[] permutedText = new int[64];\n\t\tfor(int i = 0; i < 8; i++){\n\t\t\tpermutedText[i*8 + 0] = inputText[39 - i];\n\t\t\tpermutedText[i*8 + 1] = inputText[ 7 - i];\n\t\t\tpermutedText[i*8 + 2] = inputText[47 - i];\n\t\t\tpermutedText[i*8 + 3] = inputText[15 - i];\n\t\t\tpermutedText[i*8 + 4] = inputText[55 - i];\n\t\t\tpermutedText[i*8 + 5] = inputText[23 - i];\n\t\t\tpermutedText[i*8 + 6] = inputText[63 - i];\n\t\t\tpermutedText[i*8 + 7] = inputText[31 - i];\n\t\t}\n\t\treturn permutedText;\n\t}", "public CollectionPermutationIter(List<E> objectsArray)\r\n/* */ {\r\n/* 96 */ this(objectsArray, new IntegerPermutationIter(objectsArray.size()));\r\n/* */ }", "public static void main(String[] args) {\n String input = \"ABC\";\n List<String> result = new ArrayList <> ();\n result = permutations(input);\n System.out.println(Arrays.asList(result)); \n }", "public static void permute()\n\t{\n\t\t/* INITIALIZE FOR PERMUTATION TESTING */\n\t\t//int l, r, s, T, K;\n\t\t//Random random = new Random();\n\t\tRandom random = new Random(13);\n\n\t\tclade = clad[k];\n\t\tclade.chiPvalue = 0;\n\n\t\tfor(int l = 0; l < 2; l++)\n\t\t{\n\t\t\tclade.ITcPvalue[l] = 0;\n\t\t\tclade.ITnPvalue[l] = 0;\n\t\t\tclade.corrDcWPvalue[l] = 0;\n\t\t\tclade.corrDnWPvalue[l] = 0;\n\t\t \n\t\t for(i = 0; i < clade.numSubClades; i++)\n\t\t\t{\n\t\t\t\tclade.DcPvalue[i][l] = 0;\n\t\t\t\tclade.DnPvalue[i][l] = 0;\n\t\t\t}\n\t\t}\n\n\n\t/*\n\t\tfprintf(stderr, \"\\n\\n\"); \n\t\tfor (i=0; i<numSubClades; i++)\n\t\tfprintf(stderr,\" rowTotal(%d):%d \", i, rowTotal[i]);\n\t\tfprintf(stderr, \"\\n\"); \n\t\tfor (j=0; j<numCladeLocations; j++)\n\t\tfprintf(stderr,\" columnTotal(%d):%d \", j, columnTotal[j]);\n\t\tfprintf(stderr, \"\\n\\n\");\n\t\t\n\t\tfprintf(stderr,\"\\n\\n Permuting %s\", title);\n\t\tfprintf(stderr,\"\\n 0 %d permutations\\n \",numPermutations);\n*/\t\t\n\t\tfor (int K = 0; K < GeoDis.numPermutations; K++)\n\t\t{\t\n\t\t\t\t\n\t\t\tprogress++;\n\t\t\tpercentage = ((double)progress * 100)/((double)numPermutations*(double)numClades); \n\t\n\t\t\trandObsChi = 0;\n\n\t\t\tfor(int l = 0; l < clade.totaNumObs; l++)\n\t\t\t\tclade.RBMatrix[l][0] = random.nextInt(); /* 0 - 32767\t*/\t\n\t\t\t \n\t\t\tclade.cumColTotal = 0; /* cumColTotal is the cumulative column total */\n\n\t\t\tfor(j = 0; j < clade.numCladeLocations; j++)\n\t\t\t{\t\n\t\t\t\tif (j == 0)\n\t\t\t\t\tclade.cumColTotal = 0;\n\t\t\t\telse\t\t\t\t\n\t\t\t\tclade.cumColTotal = clade.cumColTotal + clade.columnTotal[j-1];\n\t\t\t\t\n\t\t\t\tfor (int s = 0; s < clade.columnTotal[j]; s++)\n\t\t\t\t{\n\t\t\t\t\tint l = s + clade.cumColTotal;\n\t\t\t\t\tclade.RBMatrix[l][1] = j+1;\n\t\t\t\t}\n\t\t\t}\n\t\t/*for (l=0; l<totaNumObs; l++)\n\t\t\t\tfprintf(stderr,\"\\nB: %6d %d\", RBMatrix[l][0], RBMatrix[l][1]);*/\n\n\n\n\t\t\t/* * * ORDER BY RANDOM NUMBERS * * */\n\t\t\tfor(int l = 0; l < (clade.totaNumObs - 1); l++)\n\t\t\t{\t\n\t\t\t\tfor(int r = l +1; r < clade.totaNumObs; r++)\n\t\t\t \t{\t\t\t\n\t\t\t\t\tif(clade.RBMatrix[r][0] < clade.RBMatrix[l][0])\n\t\t\t\t\t//\tcontinue;\n\t\t\t\t\t\t\n\t\t\t\t\t//else\n\t\t\t\t\t{\t\n\t\t\t\t\t\tint T = clade.RBMatrix[r][0];\n\t\t\t\t\t\tclade.RBMatrix[r][0] = clade.RBMatrix[l][0];\n\t\t\t\t\t\tclade.RBMatrix[l][0] = T;\n\t\t\t\t\t\tT = clade.RBMatrix[r][1];\n\t\t\t\t\t\tclade.RBMatrix[r][1] = clade.RBMatrix[l][1];\n\t\t\t\t\t\tclade.RBMatrix[l][1] = T;\n\t\t\t \t\t}\n\t\t\t \t}\n\t\t \t}\n\t/*for (l=0; l<totaNumObs; l++)\n\t\t\tfprintf(stderr,\"\\nAfter: %6d %d\", RBMatrix[l][0], RBMatrix[l][1]);*/\n\n\n\t\t\t/* * * CALCULATE RANDOM OBSERVATIONS * * */\n\t\t\tfor(i = 0; i < clade.numSubClades; i++)\n\t\t\t\tfor(j = 0; j < clade.numCladeLocations; j++)\n\t\t\t\t\tclade.randMatrix[i][j] = 0;\n\n\t\t\t \n\t\t\tclade.cumRowTotal = 0; /* cumulative row totals */\n\t\t\t\t\n\t\t\tfor(i = 0; i < clade.numSubClades; i++)\n\t\t\t{\n\t\t\t\tif (i == 0)\n\t\t\t\tclade.cumRowTotal = 0;\n\t\t\t\t\n\t\t\t\telse\n\t\t\t\tclade.cumRowTotal += clade.rowTotal[i-1];\t\n\t\t\t\t\n\t\t\t\t/*fprintf(stderr, \"\\n\\nRow %d: rowTotal[i]:%d\",i, rowTotal[i]); */\n\t\t\t\t\n\t\t\t\tfor(int s = 0; s < clade.rowTotal[i]; s++)\n\t\t\t\t{\n\t\t\t\t\tint l = s + clade.cumRowTotal;\n\t\t\t\t\tindex = clade.RBMatrix[l][1]-1;\n\t\t\t\t\t/*fprintf(stderr, \"rowTotal= %d index=%d s=%d \",rowTotal[i], index, s); */\n\t\t\t\t\tclade.randMatrix[i][index]++;\n\t\t\t\t}\n\t\t\t}\n\n\n\n\n\t\t/* prints the randomized table of contingency\n\t\t\t\tfor(i = 0; i < numSubClades; i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tfprintf(stderr, \"\\n\");\n\t\t\t\t\t\tfor(j = 0; j < numCladeLocations; j++)\n\t\t\t\t\t\t\tfprintf(stderr, \"%d \", randMatrix[i][j]);\n\t\t\t\t\t}\n\t\t*/\t\t\n\n\n\t\t\t/* * CALCULATE RANDOM CHI - SQUARE STATISTIC * */\n\t\t\trandObsChi = 0;\n\t\t\n\t\t\tfor(i = 0; i < clade.numSubClades; i++)\n\t\t\t\tfor(j = 0; j < clade.numCladeLocations; j++)\n\t\t\t\t\trandObsChi += Math.pow( (double) clade.randMatrix[i][j] - clade.expObsMatrix[i][j], 2) / clade.expObsMatrix[i][j];\n\t\t\t\t\t\n\t\t\t/*fprintf(fpout,\"\\n%f \", randObsChi);\t\t*/\n\t\t\t\t\t\n\t\t\tif(randObsChi - clade.obsChi >= ROUNDING_ERROR)\n\t\t\t\tclade.chiPvalue++;\n\n\n\t\t\tif (doingDistances)\n\t\t\t{\n\t\t\t\tfor(c=0; c<clade.numSubClades; c++)\n\t\t\t\t{\n\t\t\t\t\tclade.randDc[c]=0.0;\n\t\t\t\t\tclade.randDn[c]=0.0;\n\t\t\t\t\t//clade.varDc[c]=0;\n\t\t\t\t\t//clade.varDn[c]=0;\n\t\t\t\t\tsum1 = sum2 = sum3 = 0.0;\n\t\t\t\t\tsumc1 = sumc2 = sumc3 = 0.0;\n\n\t\t\t\t\tfor(i=0; i<clade.numCladeLocations; i++) \t\n\t\t\t\t\t{\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tsum2 += clade.randMatrix[c][i] * (clade.randMatrix[c][i]-1) / 2 ;\n\t\t\t\t\t\tsumc2 += (clade.randMatrix[c][i] * (clade.randMatrix[c][i]-1) / 2) + \n\t\t\t\t\t (clade.randMatrix[c][i] * (clade.columnTotal[i] - clade.randMatrix[c][i]));\t\n\t\t\t\t\t\n\t\t\t\t\t\tfor (j=0; j<clade.numCladeLocations; j++)\n\t\t\t\t\t\t{\t\n\t\t\t\t\t\t\tpopA = clade.cladeLocIndex[i];\n\t\t\t\t\t\t\tpopB = clade.cladeLocIndex[j];\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (j != i)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tsum1 += (double) clade.randMatrix[c][i] * clade.randMatrix[c][j] * distance[popA-1][popB-1];\n\t\t\t\t\t\t\t\tsum3 += clade.randMatrix[c][i] * clade.randMatrix[c][j];\t\t\t\n\t\t\t\t\t\t\t\tsumc1 += (double) clade.randMatrix[c][i] * clade.columnTotal[j] * distance[popA-1][popB-1];\t\n\t\t\t\t\t\t\t\tsumc3 += clade.randMatrix[c][i] * clade.columnTotal[j];\n\t\t\t\t\t\t\t\t//System.err.println(\"\\npopA = \" + popA + \" popB = \" + popB + \" dist= \" + distance[popA-1][popB-1]);\n\t\t\t\t\t\t\t\t//System.err.println(\"sumc1: \" + clade.randMatrix[c][i] + \" * \" + clade.columnTotal[j] +\" * \" + distance[popA-1][popB-1] + \" = \" + sumc1); \n\t\t\t\t\t\t\t\t//System.err.println(\"\\nROBS[\" + c +\"][\" + i+ \"]= \" + clade.randMatrix[c][i]); \n\t\t\t\t\t\t\t\t//System.err.println(\"\\nCT[\" + j +\"]= \" + clade.columnTotal[j]); \n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} \n\n\t\t\t\t\t\t//System.err.println(\"\\nOBS[\" + c +\"][\" + i+ \"]= \" + clade.obsMatrix[c][i]); \n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif (sum3 == 0)\n\t\t\t\t\t\tclade.randDc[c] = 0;\n\t\t\t\t\telse\n\t\t\t\t\t\tclade.randDc[c] = sum1 / (sum2 + sum3);\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\tif (sumc3 == 0)\n\t\t\t\t\t\tclade.randDn[c] = 0;\n\t\t\t\t\telse\n\t\t\t\t\t\tclade.randDn[c] = sumc1 / (sumc2 + sumc3);\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t//System.err.println(\"\\nClade \" + clade.cladeName + \" subclade \" + c + \n\t // \" Dc= \" + clade.Dc[c] + \" Dn= \" + clade.Dn[c]); \t\t\n\t\t\n\t\t\t\t\t//System.err.println(\"sum1= \" + sum1 + \" sum2= \" + sum2 + \" sum3= \" + sum3); \n\t\t\t\t\t//System.err.println(\"sumc1= \" + sumc1 + \" sumc2= \" + sumc2 + \" sumc3= \" + sumc3); \n\n\n\t\t\t\t\tif(clade.Dc[c] - clade.randDc[c] >= ROUNDING_ERROR)\n\t\t\t\t\t\tclade.DcPvalue[c][0]++;\n\n\t\t\t\t\tif(clade.randDc[c] - clade.Dc[c] >= ROUNDING_ERROR )\n\t\t\t\t\t\tclade.DcPvalue[c][1]++;\n\n\t\t\t\t\tif(clade.Dn[c] - clade.randDn[c] >= ROUNDING_ERROR)\n\t\t\t\t\t\tclade.DnPvalue[c][0]++;\n\n\t\t\t\t\tif(clade.randDn[c] - clade.Dn[c] >= ROUNDING_ERROR)\n\t\t\t\t\t\tclade.DnPvalue[c][1]++;\n\n\n\t\t\t\n\t\t\t\t}\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\telse\n\t\t\t{\n\t\t\t\t/* * CALCULATE DISTANCE TEST STATISTIC * */\n\n\t\t\t\tfor(i = 0; i < clade.numSubClades; i++)\n\t\t\t\t{\n\t\t\t\t\tclade.randMeanLatitude[i] = 0;\n\t\t\t\t\tclade.randMeanLongitude[i] = 0;\n\t\t\t\t\tclade.randDc[i] = 0;\n\t\t\t\t\tclade.randDn[i] = 0;\n\t\t\t\t\tclade.subCladeSum[i] = 0;\n\t\t\t\t\n\t\t\t\t\tfor(j = 0; j < clade.numCladeLocations; j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tindex = clade.cladeLocIndex[j] - 1;\n\t\t\t\t\t\tclade.absFreq[i][j] = (double) clade.randMatrix[i][j] / (double) sampleSize[index];\t\t\n\t\t\t\t\t\tclade.subCladeSum[i] = clade.subCladeSum[i] + clade.absFreq[i][j];\n\t\t\t\t\t}\t\n\n\t\t\t\t\tfor(j = 0; j < clade.numCladeLocations; j++)\n\t\t\t\t\t\tclade.relFreq[i][j] = clade.absFreq[i][j]/clade.subCladeSum[i];\n\t\t\t\t}\n\t\t/*\t\t\n\t\t\t\tfor(i = 0; i < numSubClades; i++)\n\t\t\t\t{\n\t\t\t\t\tfprintf(stderr,\"\\n\");\n\t\t\t\t\tfor(j = 0; j < numCladeLocations; j++)\n\t\t\t\t\t\tfprintf(stderr,\"Asim: %f \", relFreq[i][j]);\n\t\t\t\t}\n\t\t*/\n\t\t\t\t\n\t\t\t\tfor(i = 0; i < clade.numSubClades; i++)\n\t\t\t\t{\t\n\t\t\t\t\tfor(j = 0; j < clade.numCladeLocations; j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tindex = clade.cladeLocIndex[j]-1;\n\t\t\t\t\t\tclade.randMeanLatitude[i] = clade.randMeanLatitude[i] + clade.relFreq[i][j] * Latitude[index];\n\t\t\t\t\t\tclade.randMeanLongitude[i] = clade.randMeanLongitude[i] + clade.relFreq[i][j] * Longitude[index];\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tfor(j = 0; j < clade.numCladeLocations; j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (clade.relFreq[i][j] == 0)\n\t\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\t\tindex = clade.cladeLocIndex[j] - 1;\n\t\t\t\t\t\tif (Latitude[index] == clade.randMeanLatitude[i] && Longitude[index] == clade.randMeanLongitude[i]) \n\t\t\t\t\t\t\tZ = 1;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tZ = Math.sin(Latitude[index]) * Math.sin(clade.randMeanLatitude[i]) + Math.cos(Latitude[index]) * \n\t\t\t\t\t\t\tMath.cos(clade.randMeanLatitude[i]) * Math.cos(clade.randMeanLongitude[i] - Longitude[index]);\n\t\t\t\t\t\n\t\t\t\t\t\tif (Math.abs(Z) < 1)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tRVZ = RADIUS * Math.acos (Z); \n\t\t\t\t\t\t\tclade.randDc[i] += clade.relFreq[i][j] * RVZ;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (Latitude[index] == clade.meanLatNest && Longitude[index] == clade.meanLonNest) \n\t\t\t\t\t\t\tZB = 1;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tZB = Math.sin(Latitude[index]) * Math.sin(clade.meanLatNest) + Math.cos(Latitude[index]) * \n\t\t\t\t\t\t\tMath.cos(clade.meanLatNest) * Math.cos(clade.meanLonNest - Longitude[index]);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (Math.abs(ZB) < 1)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tRVZ = RADIUS * Math.acos (ZB);\n\t\t\t\t\t\t\tclade.randDn[i] += clade.relFreq[i][j] * RVZ;\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif(clade.Dc[i] - clade.randDc[i] >= ROUNDING_ERROR)\n\t\t\t\t\t\tclade.DcPvalue[i][0]++;\n\n\t\t\t\t\tif(clade.randDc[i] - clade.Dc[i] >= ROUNDING_ERROR)\n\t\t\t\t\t\tclade.DcPvalue[i][1]++;\n\n\t\t\t\t\tif(clade.Dn[i] - clade.randDn[i] >= ROUNDING_ERROR)\n\t\t\t\t\t\tclade.DnPvalue[i][0]++;\n\n\t\t\t\t\tif(clade.randDn[i] - clade.Dn[i] >= ROUNDING_ERROR)\n\t\t\t\t\t\tclade.DnPvalue[i][1]++;\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t\t/* * TEST STATISTICS FOR POSITION VS. INTERIOR * */\n\n\t\t\trandTipDistance = 0;\n\t\t\trandIntDistance = 0;\n\t\t\trandTipDisNested = 0;\n\t\t\trandIntDisNested = 0;\n\t\t\t\n\t\t\tif(clade.check != (double) clade.numSubClades && clade.check != 0)\n\t\t\t{\t\n\t\t\t\tfor(i = 0; i < clade.numSubClades; i++)\n\t\t\t\t{\n\t\t\t\t\trandTipDistance += clade.Position[i] * clade.randDc[i] * (double) clade.rowTotal[i] / (double) clade.indTipClades;\n\t\t\t\t\trandTipDisNested += clade.Position[i] * clade.randDn[i] * (double) clade.rowTotal[i] / (double) clade.indTipClades;\n\t\t\t\t\trandIntDistance += (1 - clade.Position[i]) * clade.randDc[i] * (double) clade.rowTotal[i] / (double) clade.indIntClades;\n\t\t\t\t\trandIntDisNested += (1 - clade.Position[i]) * clade.randDn[i] * (double) clade.rowTotal[i] / (double) clade.indIntClades;\n\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\tif(clade.tipIntDistance - (randIntDistance - randTipDistance) >= ROUNDING_ERROR)\n\t\t\t\t\tclade.ITcPvalue[0]++;\n\n\t\t\t\tif((randIntDistance - randTipDistance) - clade.tipIntDistance >= ROUNDING_ERROR)\n\t\t\t\t \tclade.ITcPvalue[1]++;\n\n\t\t\t\tif(clade.tipIntDisNested - (randIntDisNested - randTipDisNested) >= ROUNDING_ERROR)\n\t\t\t\t\tclade.ITnPvalue[0]++;\n\t\t\t\t\n\t\t\t\tif((randIntDisNested - randTipDisNested) - clade.tipIntDisNested >= ROUNDING_ERROR)\n\t\t\t\t\tclade.ITnPvalue[1]++;\n\t\t\t\t\n\t\t\t}\n\n\t\t\tif(!weights){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t//{\n\t\t\t\t/* * CORRELATION TESTS OF DISTANCE WITH OUTGROUP WEIGHTS * */\n\n\t\t\t\t //double c, n, w;\n\t\t\t\t \n\t\t\t\t clade.meanDc = 0;\n\t\t\t\t clade.meanDn = 0;\n\t\t\t\t clade.sumDcxWeight = 0;\n\t\t\t\t clade.sumDnxWeight = 0;\n\t\t\t\t clade.sumDcSq = 0;\n\t\t\t\t clade.sumDnSq = 0;\n\n\t\t\t\tfor(i = 0; i < clade.numSubClades; i++)\n\t\t\t\t\t{\n\t\t\t\t \tclade.meanDc += clade.randDc[i] / (double) clade.numSubClades;\n\t\t\t\t \tclade.meanDn += clade.randDn[i] / (double) clade.numSubClades;\n\t\t\t\t \tclade.sumDcxWeight += clade.randDc[i] * clade.weight[i];\n\t\t\t\t \tclade.sumDnxWeight += clade.randDn[i] * clade.weight[i];\n\t\t\t\t \tclade.sumDcSq += Math.pow(clade.randDc[i],2); \n\t\t\t\t \tclade.sumDnSq += Math.pow(clade.randDn[i],2);\n\t\t\t\t\t}\n\t\t\t\t\n\t \t\tdouble c = clade.sumDcSq - (double) clade.numSubClades * Math.pow(clade.meanDc,2);\n\t \t\tdouble n = clade.sumDnSq - (double) clade.numSubClades * Math.pow(clade.meanDn,2);\n\t \t\t\tdouble w = clade.sumWeightSq - (double) clade.numSubClades * Math.pow(clade.meanWeight,2); \n\n\t\t\t\tif (clade.corrDcWeights != NA && c > 0 && w > 0)\n\t\t\t\t\t//;\n\t\t\t\t//else\n\t\t\t\t \t{\n\t\t\t\t \tclade.randCorrDcWeights = (clade.sumDcxWeight - (double) clade.numSubClades * clade.meanDc * clade.meanWeight)/ \n\t\t\t\t \t(Math.sqrt(c*w));\n\n\t\t\t\t\tif(clade.randCorrDcWeights > 1)\n\t\t\t\t\t\t\tclade.randCorrDnWeights = 1;\n\t\t\t\t\t\n\t\t\t\t\tif(clade.randCorrDcWeights < -1)\n\t\t\t \t\tclade.randCorrDcWeights = -1;\n\t\t\t\t\n\t\t\t\t\tif(clade.corrDcWeights - clade.randCorrDcWeights >= ROUNDING_ERROR)\n\t\t\t\t \t\tclade.corrDcWPvalue[0]++;\n\t\t\t\t\t \n\t\t\t\t\tif(clade.randCorrDcWeights - clade.corrDcWeights >= ROUNDING_ERROR)\n\t\t\t\t \tclade.corrDcWPvalue[1]++;\n\t\t\t\t\t}\n\n\n\t\t\t\tif (clade.corrDnWeights == NA || n <= 0 || w <= 0)\n\t\t\t\t\tcontinue;\t\t\n\t\t\t\t//else\n\t\t\t\t\t//{\n\t\t\t\t \tclade.randCorrDnWeights = (clade.sumDnxWeight - (double) clade.numSubClades * clade.meanDn * clade.meanWeight)/ \n\t\t\t\t \t(Math.sqrt(n*w));\n\t\t\t\t\n\t\t\t\t\tif(clade.randCorrDnWeights > 1)\n\t\t\t\t\t\tclade.randCorrDnWeights = 1;\n\n\t\t\t\t\tif(clade.randCorrDnWeights < -1)\n\t\t\t\t\t\tclade.randCorrDnWeights = -1;\n\n\t\t\t\t\tif(clade.corrDnWeights - clade.randCorrDnWeights >= ROUNDING_ERROR)\n\t\t\t\t\t\tclade.corrDnWPvalue[0]++;\n\n\t\t\t\t\tif(clade.randCorrDnWeights - clade.corrDnWeights >= ROUNDING_ERROR)\n\t\t\t\t\t\tclade.corrDnWPvalue[1]++;\n\t\t\t\t\t//}\n\t\t\t\t//}\n\t} // end of 1 replicate\n\n\n\t\tclade.chiPvalue /= (double) GeoDis.numPermutations;\n\n\t\tfor(int l = 0; l < 2; l++)\n\t\t{\n\t\t\tclade.ITcPvalue[l] /= (double) GeoDis.numPermutations;\n\t\t\tclade.ITnPvalue[l] /= (double) GeoDis.numPermutations;\n\t\t\tclade.corrDcWPvalue[l] /= (double) GeoDis.numPermutations;\n\t\t\tclade.corrDnWPvalue[l] /= (double) GeoDis.numPermutations;\n\n\t\t\tfor (i =0; i < clade.numSubClades; i++)\n\t\t\t{\n\t\t\t clade.DcPvalue[i][l] /= (double) GeoDis.numPermutations;\n\t\t\t clade.DnPvalue[i][l] /= (double) GeoDis.numPermutations;\n\t\t\t}\n\t\t}\n\n\t}", "public void nextPermutation(int[] num) {\n \tint si = -1;\n \tint ei = -1;\n \tfor(int i=0; i<num.length-1; i++)\n \t\tfor(int j= i+1; j<num.length; j++){\n \t\t\tif(num[i] < num[j]){\n \t\t\t\tsi = i;\n \t\t\t\tei = j;\n \t\t\t}\n \t\t}\n \tif(si == -1 && ei == -1){\n \t\treverse(num, 0);\n \t\treturn;\n \t}\n \tint tmp = num[si];\n\t\tnum[si] = num[ei];\n\t\tnum[ei] = tmp;\n\t\tsi++;\n\t\treverse(num, si);\n }", "public List<String> permutations(String set) {\n List<String> result = new ArrayList<>();\n if (set == null) {\n return result;\n }\n char[] array = set.toCharArray();\n DFS(array, 0, result);\n return result;\n }", "public static List<String> generatePermutations(int gridSize) {\n if (gridSize < GRID_SIZE_MIN || gridSize > GRID_SIZE_MAX) {\n throw new IllegalArgumentException(\"Digits out of bounds.\");\n }\n List<String> result = new ArrayList<String>();\n int start = startInt(gridSize);\n int end = endInt(gridSize);\n LOG.log(Level.INFO,\"start={0}, end={1}\", new Object[]{start, end});\n for (int i = start; i <= end; i++) {\n String textValue = String.valueOf(i);\n if (keep(textValue)) {\n result.add(textValue);\n }\n }\n return result;\n }", "static List<Permutation> genPermutations(int n) {\n List<Permutation> result = IntStream.rangeClosed(0, n - 2)\n .parallel()\n .mapToObj(fixed -> {\n List<Permutation> ls = new ArrayList<>();\n\n // Recall our logic about permutation configurations:\n //\n // N = fixed + l_1 + l_2 + ... + l_k\n //\n // Since we know the `fixed`, we need to generate the list\n // of l_i, we just need to generate all the list of numbers\n // that sum to N-fixed.\n List<int[]> cyclesList = numbersSumToN(n - fixed);\n\n for (int[] cycles : cyclesList) {\n Permutation p = makePermutation(n, fixed, cycles);\n ls.add(p);\n }\n return ls;\n })\n .flatMap(Collection::stream)\n .collect(Collectors.toList());\n\n // Our result would be incomplete without the identity permutation.\n result.add(new Permutation(n, new int[0], ONE));\n return result;\n }", "public Matrix[] palu() {\n\t\tHashMap<Integer, Integer> permutations = new HashMap<Integer,Integer>();\n\t\tMatrix m = copy();\n\t\tint pivotRow = 0;\n\t\tfor (int col = 0; col < m.N; col++) {\n\t\t\tif (pivotRow < m.M) {\n\t\t\t\tint switchTo = m.M - 1;\n\t\t\t\twhile (pivotRow != switchTo && \n\t\t\t\t\t\tm.ROWS[pivotRow][col].equals(new ComplexNumber(0))) {\n\t\t\t\t\tm = m.rowSwitch(pivotRow, switchTo);\n\t\t\t\t\tpermutations.put(pivotRow, switchTo);\n\t\t\t\t\tswitchTo--;\n\t\t\t\t}\n\t\t\t\tif (!m.ROWS[pivotRow][col].equals(new ComplexNumber(0))) {\n\t\t\t\t\t// We got a non-zero pivot\n\t\t\t\t\tfor (int lowerRow = pivotRow + 1; lowerRow < m.M;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlowerRow++) {\n\t\t\t\t\t\tComplexNumber factor1 = new ComplexNumber(-1);\n\t\t\t\t\t\tComplexNumber factor2 = m.ROWS[lowerRow][col];\n\t\t\t\t\t\tComplexNumber factor3 = m.ROWS[pivotRow][col];\n\t\t\t\t\t\tComplexNumber factor4 = new ComplexNumber(1);\n\t\t\t\t\t\tComplexNumber factor5 = factor1.multiply(factor2);\n\t\t\t\t\t\tComplexNumber factor6 = factor4.divide(factor3);\n\t\t\t\t\t\tComplexNumber weight = factor5.multiply(factor6);\n\n\t\t\t\t\t\tm = m.rowAdd(lowerRow, pivotRow, weight);\n\t\t\t\t\t}\n\t\t\t\t\tpivotRow++;\n\t\t\t\t\t/* Keep the same pivot row if we currently have a\n\t\t\t\t\t * zero-pivot. Move on to see if there's a pivot in the\n\t\t\t\t\t * next column.\n\t\t\t\t\t */\n\t\t\t\t}\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\tMatrix p = identity(m.M);\n\t\tfor (Integer rowI : permutations.keySet()) {\n\t\t\tp.rowSwitch(rowI, permutations.get(rowI));\n\t\t}\n\t\tMatrix l = identity(m.M);\n\t\tMatrix u = p.multiply(copy());\n\t\t\n\t\tpivotRow = 0;\n\t\tfor (int col = 0; col < u.N; col++) {\n\t\t\tif (pivotRow < u.M) {\n\t\t\t\t// Should not have to do any permutations\n\t\t\t\tif (!u.ROWS[pivotRow][col].equals(new ComplexNumber(0))) {\n\t\t\t\t\t// We got a non-zero pivot\n\t\t\t\t\tfor (int lowerRow = pivotRow + 1; lowerRow < u.M;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlowerRow++) {\n\t\t\t\t\t\tComplexNumber factor1 = new ComplexNumber(-1);\n\t\t\t\t\t\tComplexNumber factor2 = u.ROWS[lowerRow][col];\n\t\t\t\t\t\tComplexNumber factor3 = u.ROWS[pivotRow][col];\n\t\t\t\t\t\tComplexNumber factor4 = new ComplexNumber(1);\n\t\t\t\t\t\tComplexNumber factor5 = factor1.multiply(factor2);\n\t\t\t\t\t\tComplexNumber factor6 = factor4.divide(factor3);\n\t\t\t\t\t\tComplexNumber weight = factor5.multiply(factor6);\n\n\t\t\t\t\t\tu = u.rowAdd(lowerRow, pivotRow, weight);\n\t\t\t\t\t\tl = l.rowAdd(lowerRow, pivotRow, weight);\n\t\t\t\t\t}\n\t\t\t\t\tpivotRow++;\n\t\t\t\t\t/* Keep the same pivot row if we currently have a\n\t\t\t\t\t * zero-pivot. Move on to see if there's a pivot in the\n\t\t\t\t\t * next column.\n\t\t\t\t\t */\n\t\t\t\t}\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tl = l.inverse();\n\t\tMatrix[] palu = {p, this, l, u};\n\t\treturn palu;\n\t}", "public List<List<Integer>> permute_1(int[] nums) {\n List<List<Integer>> list = new ArrayList<>();\n // Arrays.sort(nums); // not necessary\n backtrack_(list, new ArrayList<>(), nums);\n return list;\n }", "void genPermute() {\n\t\tpermute = new ArrayList<Integer>();\n\t\tfor(int idx = 0; idx < dim(); idx++)\n\t\t\tpermute.add(idx);\n\t\tjava.util.Collections.shuffle(permute);\n\t}", "@Test\n\tpublic void testPermutation() {permutation(\"abcd\");\n\t\t//0 1 0 0 9\n\t//\tpermute(\"aaab\");\n\t\t//\n\t\tpermutation(\"aaabc\");\n\t\tpermuteWithDups(\"aaabc\");\n\t}", "public static List<List<Integer>> permutateUnique(int[] nums) {\n List<List<Integer>> answer = new ArrayList<>();\n Arrays.sort(nums); // sort to remove duplicates later\n recursePermutateUnique(answer, new ArrayList<>(), nums, new boolean[nums.length]);\n return answer;\n }", "static boolean nextPermutation(Integer[] array) {\n\t int i = array.length - 1;\n\t while (i > 0 && array[i - 1] >= array[i])\n\t i--;\n\t // Now i is the head index of the suffix\n\t \n\t // Are we at the last permutation already?\n\t if (i <= 0)\n\t return false;\n\t \n\t // Let array[i - 1] be the pivot\n\t // Find rightmost element that exceeds the pivot\n\t int j = array.length - 1;\n\t while (array[j] <= array[i - 1])\n\t j--;\n\t // Now the value array[j] will become the new pivot\n\t // Assertion: j >= i\n\t \n\t // Swap the pivot with j\n\t int temp = array[i - 1];\n\t array[i - 1] = array[j];\n\t array[j] = temp;\n\t \n\t // Reverse the suffix\n\t j = array.length - 1;\n\t while (i < j) {\n\t temp = array[i];\n\t array[i] = array[j];\n\t array[j] = temp;\n\t i++;\n\t j--;\n\t }\n\t // Successfully computed the next permutation\n\t return true;\n\t}", "public static void randomArrayAndPermutate(){\n List<Integer> originalArray = new ArrayList<Integer>();\n for(int i = 1; i <= 10; i++){\n originalArray.add(i);\n }\n List<Integer> permutatedArray = new ArrayList<Integer>();\n int randomPos = 0;\n for(int i = 1; i <= 10; i++){\n randomPos = (int)(Math.random() * originalArray.size() + 0);\n permutatedArray.add(originalArray.remove(randomPos));\n }\n int sum = permutatedArray.get(0)+permutatedArray.get(permutatedArray.size()-1);\n System.out.println(permutatedArray + \" Sum of first and last: \" + sum);\n }", "public List<E> getNextArray()\r\n/* */ {\r\n/* */ List<E> permutationResult;\r\n/* */ \r\n/* */ \r\n/* */ List<E> permutationResult;\r\n/* */ \r\n/* 123 */ if (this.permOrder.hasNextPermutaions()) {\r\n/* 124 */ this.currPermutationArray = this.permOrder.nextPermutation();\r\n/* 125 */ permutationResult = applyPermutation();\r\n/* */ } else {\r\n/* 127 */ permutationResult = null;\r\n/* */ }\r\n/* */ \r\n/* 130 */ return permutationResult;\r\n/* */ }", "public static void nextPermutation(int[] num) {\n for(int i = num.length - 2; i >= 0; i--){\n int min = -1;\n for(int j = i + 1; j < num.length; j++){\n if(num[j] > num[i]) {\n if (min == -1 || num[j] < num[min]) min = j;\n }\n }\n if(min != -1){\n ArrayUtil.swap(num, i, min);\n Arrays.sort(num, i + 1, num.length);\n return;\n }\n }\n Arrays.sort(num, 0, num.length);\n }", "public static int[] makePermutation(int numFilesInSet) {\n\tint value;\n\tboolean todo;\n\tboolean exist[];\n\n\tint[] permutation = new int[numFilesInSet];\n\texist = new boolean[numFilesInSet];\n\tvalue = 0;\n\tfor (int i = 0; i < permutation.length; i++) {\n\t todo = true;\n\t while (todo) {\n\t\tvalue = _random.nextInt(numFilesInSet);\n\t\ttodo = (exist[value] != false);\n\t }\n\t permutation[i] = value;\n\t exist[value] = true;\n\t}\n\treturn permutation;\n }", "@SuppressWarnings(\"serial\")\r\n\t@Test\r\n\tpublic void permutationsTestSize3AllEquals() throws BoundedQueueException {\r\n\t\tbq.enqueue(3);\r\n\t\tbq.enqueue(3);\r\n\t\tbq.enqueue(3);\r\n\t\tBoundedQueueCorrected<BoundedQueueCorrected<Integer>> output= bq.permutations();\r\n\t\t\r\n\t\t//size of the perm's output\r\n\t\tint expectedPermSize = 6; //fact\r\n\t\tint actualPermSize = output.size();\t\t\r\n\t\tassertEquals(\"Tamanho do resultado final\",expectedPermSize, actualPermSize);\r\n\t\t\r\n\t\t\r\n\t\t//number of elems for each elem of perms\r\n\t\tint expectedPermNumElems = 3; \r\n\t\tint actualPermNumElems = bq.size();\r\n\t\tassertEquals(\"Numero de elementos no elems\",expectedPermNumElems, actualPermNumElems);\r\n\t\t\r\n\t\t//check if there are any duplicated\r\n\t\tArrayList<BoundedQueueCorrected<Integer>> permOutput = output.elems;\r\n\t\tList<Integer> countEquals = new ArrayList<Integer>(6){{\r\n\t\t\tadd(0);\r\n\t\t\tadd(0);\r\n\t\t\tadd(0);\r\n\t\t\tadd(0);\r\n\t\t\tadd(0);\r\n\t\t\tadd(0);\r\n\t\t}};\r\n\t\t\r\n\t\t\r\n\t\tfor(int i = 0; i < actualPermSize; i++ ){ \r\n\t\t\tfor(int j = 0; j < actualPermSize; j++ ){\r\n\t\t\t\tif(i != j){\r\n\t\t\t\t\tif(permOutput.get(i).toString().equals(permOutput.get(j).toString())){\t\t\r\n\t\t\t\t\t\tcountEquals.set(i, countEquals.get(i)+1); // counts the number of occurrences of an elem from output\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tint expectedEqualPerms = 0;\r\n\t\tint actualEqualPerms = 0;\r\n\t\t\r\n\t\tfor(Integer i : countEquals){\r\n\t\t\tif(i > 0)\r\n\t\t\t\tactualEqualPerms++;\r\n\t\t\t//if(i == expectedPermSize -1)\r\n\t\t\t\t\r\n\t\t}\r\n\t\t\t\r\n\t\tassertEquals(\"Numero de permutacoes iguais\",expectedEqualPerms, actualEqualPerms);\r\n\t}", "public List<List<Integer>> permute1(int[] nums) {\n\t\tList<List<Integer>> res = new ArrayList<>();\n\t\tdfs(res, nums, 0);\n\t\treturn res;\n\t}", "public static String pPermutation(String input) {\n\n assert input.length() == 32;\n\n StringBuilder result = new StringBuilder();\n\n for (int[] ints : PPermutation) {\n for (int anInt : ints) {\n result.append(input.charAt(anInt - 1));\n }\n }\n\n return result.toString();\n }", "public void permute(){\n if (pos == last) a.add(in);\n else {\n for (int ii = pos; ii <= last; ii++) {\n in = swap(in, pos, ii);\n pos += 1;\n permute();\n pos -= 1;\n in = swap(in, pos, ii);\n if (a.contains(in)) continue;\n else a.add(in);\n }\n }\n }", "private static void getNextPermutation(int[] arr) {\n\t\tint i = 0;\n\t\tfor ( i = arr.length-1; i > 0; i--) {\n\t\t\tif(arr[i] > arr[i-1])\n\t\t\t\tbreak;\n\t\t}\n\t\t// if smallest is already at end [decreasing order of array,reverse the array]\n\t\tif(i==0) {\n\t\t\treverse(arr);\n\t\t}\n\t\t//else,find the next greater from current found greater value index and swap \n\t\telse {\n\t\t\tint min = i;\n\t\t\tint temp = arr[i-1];\n\t\t\tfor (int j = i+1; j < arr.length; j++) {\n\t\t\t\tif(arr[j] > temp && arr[j] < arr[min]) {\n\t\t\t\t\tmin = j;\n\t\t\t\t}\n\t\t\t}\n\t\t\tint swap = arr[i-1];\n\t\t\tarr[i-1] = arr[min];\n\t\t\tarr[min] = swap;\n\t\t\tArrays.sort(arr,i,arr.length);\n\t\t\tSystem.out.println(Arrays.toString(arr));\n\t\t}\n\t}", "public static int[] initialPermutation(int[] inputText){\n\t\tint[] permutedText = new int[64];\n\t\t\n\t\tfor(int i = 0; i < 8; i++){\n\t\t\tif(i < 4){\n\t\t\t\tpermutedText[i*8 + 0] = inputText[57 + i*2];\n\t\t\t\tpermutedText[i*8 + 1] = inputText[49 + i*2];\n\t\t\t\tpermutedText[i*8 + 2] = inputText[41 + i*2];\n\t\t\t\tpermutedText[i*8 + 3] = inputText[33 + i*2];\n\t\t\t\tpermutedText[i*8 + 4] = inputText[25 + i*2];\n\t\t\t\tpermutedText[i*8 + 5] = inputText[17 + i*2];\n\t\t\t\tpermutedText[i*8 + 6] = inputText[ 9 + i*2];\n\t\t\t\tpermutedText[i*8 + 7] = inputText[ 1 + i*2];\n\t\t\t}\n\t\t\telse{\n\t\t\t\tpermutedText[i*8 + 0] = inputText[56 + (i-4)*2];\n\t\t\t\tpermutedText[i*8 + 1] = inputText[48 + (i-4)*2];\n\t\t\t\tpermutedText[i*8 + 2] = inputText[40 + (i-4)*2];\n\t\t\t\tpermutedText[i*8 + 3] = inputText[32 + (i-4)*2];\n\t\t\t\tpermutedText[i*8 + 4] = inputText[24 + (i-4)*2];\n\t\t\t\tpermutedText[i*8 + 5] = inputText[16 + (i-4)*2];\n\t\t\t\tpermutedText[i*8 + 6] = inputText[ 8 + (i-4)*2];\n\t\t\t\tpermutedText[i*8 + 7] = inputText[ 0 + (i-4)*2];\n\t\t\t}\n\t\t}\n\t\treturn permutedText;\n\t}", "static SortedSet<Integer> getSet(int[] array){\n SortedSet<Integer> result = new TreeSet<Integer>();\n for (int i=0; i<array.length; i++){\n result.add(array[i]);\n }\n return result;\n }", "@Test\r\n public void PermutationTest() {\r\n System.out.println(\"permutation\");\r\n String prefix = \"\";\r\n String in = \"123\";\r\n Input input = new Input(in);\r\n List<String> expResult = Arrays.asList(\"123\",\"132\",\"213\",\"231\",\"312\",\"321\");\r\n List<String> result = instance.permutation(prefix, input);\r\n instance.sort(result);\r\n assertEquals(expResult, result);\r\n }", "public static void findKComplemenentaryPairs(int[] values, int k) {\n\t\t\n\t\t// first of all, we need to divide to conquer, let's build a binary tree\n\t\t// I will set root as K. This way, for each new value 'i' I will know which side of the tree\n\t\t// I should find 'j' \n\t\t\n\t\tLeaf root = new Leaf(k);\n\t\tcountIterations = 0;\n\t\tfor (int i = 0; i < values.length; i++) {\n\t\t\taddLeaf(root, values[i]);\n\t\t}\n\t\t\n\t\t\n\t\tSystem.out.print(\"Tree built: \");\n\t\tprintTree(root); \t\t\t\t\t// this is just for debugging and will not be included in asymptotic analysis\n\t\tSystem.out.println(\"\\nTotal of \" + countIterations + \" iterations to build a tree for an array of \" + values.length + \" elements\");\n\t\t\n\t\tStringBuffer report = new StringBuffer();\n\t\t\n\t\tSystem.out.println(\"\\nPairs:\");\n\t\t// Trespass array and find value j that satisfies A[i] + A[j] = k\n\t\t\n\t\tint countTotal = 0;\n\t\tfor (int i = 0; i < values.length; i++) {\n\t\t\tcountIterations = 0;\n\t\t\tint val = values[i];\n\t\t\tint wanted = k - val;\n\t\t\tif (hasValue(root, wanted)) { \n\t\t\t\tSystem.out.println(\"- A[i,j] = [\" + val + \",\" + wanted + \"]\");\n\t\t\t}\n\t\t\treport.append(\"Iteration \" + i + \" took \" + countIterations + \" operations to search in the tree\\n\");\n\t\t\tcountTotal += countIterations;\n\t\t}\n\t\t\n\t\tSystem.out.println(report.toString());\n\t\tSystem.out.println(\"Total of operations for n=\" + values.length + \" was \" + countTotal + \" operations\");\n\t\t\n\t}", "@Override\n <T> void applyPermutation(List<Integer> perm, List<T> A) {\n Preconditions.checkArgument(perm.size() == A.size(), \"The sizes of A and P (the permutation array) differ.\");\n int n = A.size();\n for (int i = 0; i < n; ++i) {\n boolean isMin = true;\n int nextPos = perm.get(i);\n // Check if A.get(i) is the leftmost element for some some cyclic permutation in perm\n while(nextPos != i) {\n if(nextPos < i) {\n isMin = false; break;\n }\n nextPos = perm.get(nextPos);\n }\n if (isMin) {\n cyclicPermutation(A, perm, i);\n }\n }\n }", "public List<List<Integer>> permute(int[] nums) {\n\n if (nums.length == 1){\n List<List<Integer>> _ans = new ArrayList<>();\n List<Integer> cur = new ArrayList<>();\n cur.add(nums[0]);\n _ans.add(cur);\n return _ans;\n }\n\n List<Integer> cur = new ArrayList<>();\n /** NOTE !!! we don't need to set idx param */\n helper(nums, cur);\n\n return this.ans;\n }", "public List<Integer> getRepetitiveElementsUnBounded(int[] array) {\n if (array== null) return null;\n\n List<Integer> result = new ArrayList<>();\n Arrays.sort(array); // complexity: O(nlogn)\n\n int startIndex = 0;\n // O(n)\n while (startIndex < array.length) {\n while (startIndex+1 < array.length && array[startIndex] == array[startIndex+1]){\n startIndex++;\n }\n if (startIndex-1 >= 0 && array[startIndex-1] == array[startIndex]) {\n result.add(array[startIndex]);\n }\n startIndex++;\n }\n return result;\n }", "public static void p(double[][] array) {\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tp(array[i]);\n\t\t}\n\t\tSystem.out.println();\n\t}", "@SuppressWarnings(\"serial\")\r\n\t@Test\r\n\tpublic void permutationsTestSize3NotAllEquals() throws BoundedQueueException {\r\n\t\tbq.enqueue(1);\r\n\t\tbq.enqueue(2);\r\n\t\tbq.enqueue(3);\r\n\t\tBoundedQueueCorrected<BoundedQueueCorrected<Integer>> output= bq.permutations();\r\n\t\t\r\n\t\t//size of the perm's output\r\n\t\tint expectedPermSize = 6; //fact\r\n\t\tint actualPermSize = output.size();\t\t\r\n\t\tassertEquals(\"Tamanho do resultado final\",expectedPermSize, actualPermSize);\r\n\t\t\r\n\t\t\r\n\t\t//number of elems for each elem of perms\r\n\t\tint expectedPermNumElems = 3; \r\n\t\tint actualPermNumElems = bq.size();\r\n\t\tassertEquals(\"Numero de elementos no elems\",expectedPermNumElems, actualPermNumElems);\r\n\t\t\r\n\t\t//check if there are any duplicated\r\n\t\tArrayList<BoundedQueueCorrected<Integer>> permOutput = output.elems;\r\n\t\tList<Integer> countEquals = new ArrayList<Integer>(6){{\r\n\t\t\tadd(0);\r\n\t\t\tadd(0);\r\n\t\t\tadd(0);\r\n\t\t\tadd(0);\r\n\t\t\tadd(0);\r\n\t\t\tadd(0);\r\n\t\t}};\r\n\t\t\r\n\t\t\r\n\t\tfor(int i = 0; i < actualPermSize; i++ ){ \r\n\t\t\tfor(int j = 0; j < actualPermSize; j++ ){\r\n\t\t\t\tif(i != j){\r\n\t\t\t\t\tif(permOutput.get(i).toString().equals(permOutput.get(j).toString())){\t\t\r\n\t\t\t\t\t\tcountEquals.set(i, countEquals.get(i)+1); // counts the number of occurrences of an elem from output\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tint expectedEqualPerms = 0;\r\n\t\tint actualEqualPerms = 0;\r\n\t\t\r\n\t\tfor(Integer i : countEquals){\r\n\t\t\tif(i > 0)\r\n\t\t\t\tactualEqualPerms++;\r\n\t\t\t//if(i == expectedPermSize -1)\r\n\t\t\t\t\r\n\t\t}\r\n\t\t\t\r\n\t\tassertEquals(\"Numero de permutacoes iguais\",expectedEqualPerms, actualEqualPerms);\r\n\t}", "public List<List<T>> getAllPermutations(List<T> elements, int lengthOfPermutation) {\n if (lengthOfPermutation == 1) {\n List<List<T>> permutations = new ArrayList<>();\n for (int i = 0; i < elements.size(); i++) {\n List<T> permutation = new ArrayList<>();\n permutation.add(elements.get(i));\n permutations.add(permutation);\n }\n return permutations;\n }\n\n List<List<T>> permutations = new ArrayList<>();\n\n for (int i = 0; i < elements.size(); i++) {\n List<T> elemenstAfterThisElementIsRemoved = new ArrayList<>(elements);\n elemenstAfterThisElementIsRemoved.remove(elements.get(i));\n List<List<T>> smallerPermutations = getAllPermutations(elemenstAfterThisElementIsRemoved, lengthOfPermutation - 1);\n\n for (List<T> smallerPermutation : smallerPermutations) {\n List<T> permutation = new ArrayList<>(smallerPermutation);\n permutation.add(0, elements.get(i));\n permutations.add(permutation);\n }\n }\n\n return permutations;\n }", "void heapPermutation(int a[], int size, int n) \n { \n // if size becomes 1 then prints the obtained \n // permutation \n if (size == 1) \n printArr(a,n); \n \n for (int i=0; i<size; i++) \n { \n heapPermutation(a, size-1, n); \n \n // if size is odd, swap first and last \n // element \n if (size % 2 == 1) \n { \n int temp = a[0]; \n a[0] = a[size-1]; \n a[size-1] = temp; \n } \n \n // If size is even, swap ith and last \n // element \n else\n { \n int temp = a[i]; \n a[i] = a[size-1]; \n a[size-1] = temp; \n } \n } \n }", "public ArrayList<ArrayList<Integer>> permute(int[] num) {\n if(num == null){\n return null;\n }\n return _permute(num, num.length - 1);\n }", "public List<List<Integer>> allTriples(int[] array, int target) {\n List<List<Integer>> res = new ArrayList<>();\n int n = array.length;\n Arrays.sort(array);\n for (int i = 0; i < n - 2; i++) {\n if (i > 0 && array[i] == array[i - 1]) { // remove dups for the 1st member\n continue;\n }\n int left = i + 1, right = n - 1;\n while (left < right) {\n int subsum = array[left] + array[right];\n if (subsum == target - array[i]) {\n res.add(Arrays.asList(array[i], array[left], array[right]));\n left++; // without this line, you will get infinite loop\n while (left < right && array[left] == array[left - 1]) {\n left++;\n }\n } else if (subsum < target - array[i]) {\n left++;\n } else { \n right--;\n }\n }\n }\n return res;\n }", "void permutateArrays()\n {\n for (int i = 0; i < sampleArrays.length; i++)\n {\n for (int i1 = 0; i1 < (r.nextInt() % 7); i1++)\n {\n addToArray(sampleArrays[i], sampleStrings[r.nextInt(5)]);\n addToArray(sampleArrays[i], sampleNumbers[r.nextInt(5)]);\n addToArray(sampleArrays[i], sampleObjects[r.nextInt(5)]);\n addToArray(sampleArrays[i], specialValues[r.nextInt(2)]);\n }\n }\n }", "public List<List<Integer>> allTriples(int[] array, int target) {\n List<List<Integer>> res = new ArrayList<>();\n Set<Integer> set = new HashSet<>();\n int n = array.length;\n Arrays.sort(array);\n for(int i = 0; i < n - 2; i++) {\n if (!set.contains(array[i])) {\n set.add(array[i]);\n int tar = target - array[i];\n Map<Integer, Integer> map = new HashMap<>();\n for (int j = i + 1; j < n; j++) {\n Integer count = map.get(tar - array[j]);\n if (count != null) {\n if (count == 1) {\n res.add(Arrays.asList(array[i], tar - array[j], array[j]));\n map.put( tar - array[j], count - 1);\n map.put(array[j], 0);\n }\n } else {\n map.put(array[j], 1);\n }\n }\n } \n }\n return res;\n }", "@Test\n\tpublic void testIsPermutationOnPermutation() {\n\t\tassertTrue(ArraysAndStrings.isPermutation(PERMUTATION_ONE, PERMUTATION_TWO));\n\t}", "public int subarrayBitwiseORs(int[] A) {\n HashSet<Integer> ans = new HashSet<>();\n HashSet<Integer> tmp1 = new HashSet<>();\n for(int x : A) {\n HashSet<Integer> tmp2 = new HashSet<>();\n tmp2.add(x);\n \n // Now OR x with every contiguous combination with x at the end\n // ie {1,2,x} --> {1|2|x}, {2|x}, {x}\n //\n // A = {1,2,4}\n // x = 4\n // tmp1 = { [2]=2, [1|2]=3 }\n // tmp2 = { 4=4, 4|[2]=6, 4|[1|2]=7 }\n // ans = { [1]=1, [2]=2, [1|2]=3, [4]=4, [2|4]=6, [1|2|4]=7 }\n for(int y : tmp1) {\n tmp2.add(x | y);\n }\n ans.addAll(tmp2);\n tmp1 = tmp2;\n }\n return ans.size();\n }", "public static ArrayList<String> permutations(String s) {\r\n ArrayList<String> list = new ArrayList<>();\r\n permutations(\"\", s, list);\r\n return list;\r\n }", "public ArrayList<Integer> sameValues(int[] values){\n\t\tArrayList<Integer> pairedValues = new ArrayList<Integer>();\n\t\tArrays.sort(values);\n\t\tint i = 1;\t\t\t \n\t\twhile(i<values.length){\n\t\t\tif (values[i]-values[i-1] == 0){\t\t\t\t\t\n\t\t\t\tpairedValues.add(values[i]);\n\t\t\t}\n\t\t\ti++;\t\n\t\t}\n\t\treturn pairedValues;\n\t}", "public void permute(int testIndex){\n\t\tif(testIndex == maxNum){//Get one solution\n\t\t\t\tprint();//print the result square\n\t\t\t\tcount++;//count for the solution\n\t\t}else{\n\t\t\tfor(int i = 1; i <= maxNum; i++){//travsing all the number set\n\t\t\t\tm[testIndex] = i;//try each number\n\t\t\t\tif(checking(testIndex)){//call checking function\n\t\t\t\t\tpermute(testIndex + 1);//recursive to next state\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public static void nextPermutation(int[] nums) {\r\n\t\r\n\t\tint k = nums.length-1;\r\n\t\tint anIndex = k;\r\n\t\twhile (k > 0 && (nums[k-1])> nums[k])\r\n\t\t\tk--;\r\n\t\tif (k == 0) {\r\n\t\t\t//System.out.println(\"Next cannot be found return\");\r\n\t\t\tArrays.sort(nums);\r\n\t\t\tSystem.out.println(Arrays.toString(nums));\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tint index = k-1;\t\t\r\n\t\tswap(nums,anIndex,index);\r\n\t\tSystem.out.println(Arrays.toString(nums));\r\n\t\t\r\n\t\t\r\n\r\n\t}", "public static void main(String[] args) {\n // int[] a = {1, 2, 1, 4, 5, 4, 4};\n int[] a = {1,2,1,2,1,2,1};\n System.out.println(pairs(a));\n }", "public static List<String> getRepetitiveElements(String[] array)\n {\n if (array == null) return null;\n\n // variable -> each index maps to a linkedlist containing the values\n List<Integer>[] hashMap = new ArrayList[array.length];\n List<String> duplicateSet = new ArrayList<>();\n int index;\n int n = array.length;\n String curString;\n for (int i = 0; i < array.length; i++) {\n curString = array[i];\n index = curString.hashCode()%n;\n if (hashMap[index] == null) {\n hashMap[index]=new ArrayList<>(); // store the i index\n hashMap[index].add(i); // put in i within the arrayList\n } else { // index is not null\n List<Integer> matchingIndice = hashMap[index];\n boolean hit = false;\n for (Integer mi: matchingIndice) {\n if (array[mi].compareTo(curString)==0) {\n // collision, and the string matches, we are happy\n if (!duplicateSet.contains(curString)) { // this is O(m) where m is # of duplicate strings in the set\n duplicateSet.add(curString);// found duplicate string\n }\n hit = true;\n break; // exit -> found a match\n }\n }\n if (!hit) {\n matchingIndice.add(i); // put i into the linkedlist\n hashMap[index] = matchingIndice;\n }\n }\n }\n\n return duplicateSet;\n }", "public static ArrayList<int[]> permutations(int[] children, int end) {\n\t\tArrayList<int[]> permutations = new ArrayList();\n\t\tpermutations(0, children, end, permutations);\n\t\treturn permutations;\n\t}", "public static void main(String[] args) {\n\t\tint[] num = new int[] { 1, 2, 3 };\r\n\t\tSolution s = new Solution();\r\n\t\tList<List<Integer>> result = s.permute(num);\r\n\t\tfor (int i = 0; i < result.size(); i++) {\r\n\t\t\tSystem.out.println(result.get(i));\r\n//\t\t\tfor (int j = 0; j < result.get(i).size(); j++) {\r\n//\t\t\t\tSystem.out.print(result.get(i).get(j) + \" \");\r\n//\t\t\t}\r\n//\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}", "private List<List<Item>> generatePermutations(final ItemSet itemSet) {\n\t\tList<List<Item>> result = new ArrayList<List<Item>>();\n\n\t\t// If the item set is zero, return an empty list\n\t\tif (itemSet.size() == 0) {\n\t\t\tresult.add(new ArrayList<Item>());\n\t\t\treturn result;\n\t\t}\n\n\t\t// Get and Remove the first item from the set\n\t\tItem firstElement = itemSet.first();\n\t\titemSet.remove(firstElement);\n\n\t\t// Generate the permutations of the smaller item set\n\t\tList<List<Item>> permutations = generatePermutations(itemSet);\n\n\t\t// For each permutation...\n\t\tfor (List<Item> permutation : permutations) {\n\t\t\t// Add the first element to the i-th position\n\t\t\tfor (int index = 0; index <= permutation.size(); index++) {\n\t\t\t\tList<Item> temp = new ArrayList<Item>(permutation);\n\t\t\t\ttemp.add(index, firstElement);\n\t\t\t\tresult.add(new ArrayList<Item>(temp));\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t}", "public static ArrayList<ArrayList<String>> permuteInterative(char[] chars) {\n ArrayList<ArrayList<String>> resultBySize = new ArrayList<>();\n\n // starts out empty\n ArrayList<StringBuilder> results = new ArrayList<>();\n results.add(new StringBuilder());\n\n for (int i = 0; i< chars.length; i++) {\n ArrayList<StringBuilder> current = new ArrayList<>();\n for (StringBuilder s : results) {\n for (int j = 0; j < s.length() + 1; j++) {\n s.insert(j, chars[i]);\n StringBuilder temp = new StringBuilder(s);\n current.add(temp);\n s.deleteCharAt(j);\n }\n }\n results = new ArrayList<>(current);\n //snap shot of that size\n ArrayList<String> strings = new ArrayList<>();\n for (StringBuilder s: current) {\n strings.add(s.toString());\n }\n resultBySize.add(strings);\n }\n System.out.println(resultBySize);\n return resultBySize;\n }", "public <T> List<List<T>> generateAllPossibleCombinationsForPascal(List<T> aPossibleItems) {\n \n List<List<T>> tempCumulativeResults = new ArrayList<List<T>>();\n List<List<T>> tempIndividualResults;\n List<T> tempComboItems;\n\n \n for (int tempChoiceSize = 1; tempChoiceSize <= aPossibleItems.size(); tempChoiceSize++) {\n \n tempIndividualResults = new ArrayList<List<T>>();\n tempComboItems = this.createChoiceCollection(tempChoiceSize);\n this.getPossibleCombinationsOfPascal(aPossibleItems, \n tempComboItems,\n 0, \n aPossibleItems.size(), \n 0, \n tempChoiceSize, \n tempIndividualResults);\n tempCumulativeResults.addAll(tempIndividualResults);\n \n }\n \n return tempCumulativeResults;\n \n }", "public static void primePermutationsHM(List<Integer> primes) {\n HashMap<String, List<Integer>> map = new HashMap<>();\n for (int p : primes) {\n int[] nums = new int[4];\n int num = p;\n int i = 0;\n\n while (num > 0) {\n nums[i++] = num % 10;\n num /= 10;\n }\n\n // save the number (p) in a key hashed from the lowest permutation (s) of the number \n Arrays.sort(nums);\n String s = Arrays.toString(nums);\n\n List<Integer> ll = map.getOrDefault(s, new LinkedList<>());\n ll.add(p);\n map.put(s, ll);\n }\n\n // loop through map entries; if at least 3 numbers are found, check for common difference\n for (Map.Entry mEntry : map.entrySet()) {\n List<Integer> numbers = (List<Integer>) mEntry.getValue();\n\n if (numbers.size() >= 3) {\n int[] res = findTripletWithCommonDifference(numbers);\n\n if (res.length == 3) {\n System.out.println(Arrays.toString(res));\n }\n }\n }\n }", "public List<List<Integer>> allTriples(int[] array, int target) {\n List<List<Integer>> rst = new ArrayList<List<Integer>>();\n if (array == null || array.length < 3) {\n return rst;\n }\n Arrays.sort(array);\n int length = array.length;\n for (int i = 0; i < length - 2; i++) {\n if (i != 0 && array[i] == array[i - 1]) {\n continue;\n }\n int left = i + 1;\n\t\t\tint right = length - 1;\n\t\t\twhile (left < right) {\n\t\t\t\tint sum = array[left] + array[right] + array[i];\n\t\t\t\tif (sum == target) {\n\t\t\t\t\tList<Integer> tmp = new ArrayList<Integer>();\n\t\t\t\t\ttmp.add(array[i]);\n\t\t\t\t\ttmp.add(array[left]);\n\t\t\t\t\ttmp.add(array[right]);\n\t\t\t\t\trst.add(tmp);\n\t\t\t\t\tleft++;\n\t\t\t\t\tright--;\n\t\t\t\t\twhile (left < right && array[left] == array[left - 1]) { // to skip duplicates\n\t\t\t\t\t\tleft++;\n\t\t\t\t\t}\n\t\t\t\t\twhile (left < right && array[right] == array[right + 1]) { // to skip duplicates\n\t\t\t\t\t\tright--;\n\t\t\t\t\t}\n\t\t\t\t} else if (sum < target) {\n\t\t\t\t\tleft++;\n\t\t\t\t} else {\n\t\t\t\t\tright--;\n\t\t\t\t}\n\t\t\t}\n }\n return rst;\n }", "public int[] permutate(int n) {\n int[] x = new int[n];\n for (int i = 0; i < n; i++) {\n x[i] = i;\n }\n\n permutate(x);\n\n return x;\n }", "public static int[] getValues(vtkCellArray array)\n\t{\n\t\tarray.Squeeze();\n\t\tvtkIdTypeArray data = array.GetData();\n\t\tint[] toReturn = getValues(data);\n\t\treturn toReturn;\n\t}", "@DataProvider(name = \"allPairs\")\n public Object[][] allPairs() {\n final List<Object[]> tests = new ArrayList<>();\n\n for (final Allele ref : Arrays.asList(refA, refC, refG, refT)){\n for (final Allele alt : Arrays.asList(altA, altC, altG, altT)){\n if (!ref.getBaseString().equals(alt.getBaseString())){\n tests.add(new Object[]{ref, alt});\n }\n }\n }\n\n return tests.toArray(new Object[][]{});\n }", "public static void main(String[] args)\n\t{\n\t\tString test = \"ABCDEFGHIJ\";\n\t\tPermutationGeneratorCoveyouSullivan p = new PermutationGeneratorCoveyouSullivan(test);\n\t\t\n\t\tint[] counters = new int[test.length()+1]; //array used to add to counters\n\t\t\n\t\t//using the h function to display how many permutations there are with test.length() elements and ZERO fixed - comparing to this.\n\t\tlong testH = h(test.length());\n\t\tSystem.out.println(\"Using the h function:\\nThe number of permutations with \" + test.length() + \" elements and ZERO fixed elements is: [\" + testH +\"]\\n\");\n\t\t\n\t\t//using the g function to display how many permutations there are with test.length() elements and \"i\" fixed elements - comparing to this\n\t\tSystem.out.println(\"Using the g function:\");\n\t\tfor (int i = 0; i < test.length()+1; i++)\n\t\t{\n\t\t\tlong gTest = g(test.length(), i);\n\t\t\tSystem.out.println(\"The number of permutations with \" + test.length() + \" elements and \" + i + \" fixed elements is: [\" + gTest + \"]\");\n\t\t}\n\t\t\n\t\t//now we are going to be using the brute force way of how to do counting - manually and then compare\n\t\tSystem.out.println(\"\\nUsing my brute force technique to figure out the number of permutations:\");\n\t\tfor (String s : p)\n\t\t{\n\t\t\tint controller = 0; //controller variable that will reset for every loop - for each seperate index\n\t\t\t\n\t\t\tfor (int i = 0; i < test.length(); i++) //this is the tester to compare the characters at each index\n\t\t\t{\n\t\t\t\tif (s.charAt(i) == test.charAt(i))\n\t\t\t\t\tcontroller++;\n\t\t\t}\n\t\t\t\n\t\t\tcounters[controller]++; //I'm still not understanding how these counters are working: I know it works, but how does it know what index to be in?\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < counters.length; i++)\n\t\t\tSystem.out.println(\"With \" + i + \" fixed elements, there are: [\" + counters[i] + \"] permutations\");\n\t\t\n\t\t/**********************************\n\t\t * Finally, my methods and brute force technique are correct do to the equality of the different functions/parameters as well as my brute force technique!\n\t\t * I also checked different test strings including my name, etc and they are also equal.\n\t\t * \n\t\t * Questions: One thing I noticed in the sequence is that g(test.length(), 0) and g(test.length(), 1) are somehow related b/c there is a difference of ONE?? \n\t\t * Is this true for all strings?\n\t\t *********************************/\n\t}", "public int[] everyMatch(char[] array, char[] pattern) {\n int[] found = new int[array.length];\n int index = 0;\n Arrays.fill(found, -1);\n\n for(int a = 0; a <= array.length-pattern.length; a++) {\n for (int p = 0; p < pattern.length; p++) {\n if (array[a+p] != pattern[p]) break;\n if (p == pattern.length-1) {\n found[index++] = a;\n }\n }\n }\n return found;\n }", "static void nonRecHeapPermutation(int[] A, int n) {\n\t\tint[] c = new int[n];\n\t\tprintArray(A);\n\t\tint i = 0;\n\t\twhile (i < n) {\n\t\t\tif (c[i] < i) {\n\t\t\t\t// if i is even\n\t\t\t\tif (i % 2 == 0) {\n\t\t\t\t\t// exchange A[0] and A[i]\n\t\t\t\t\tswap(A, 0, i);\n\t\t\t\t} else {\n\t\t\t\t\t// i is odd\n\t\t\t\t\t// exchange A[c[i]] and A[i]\n\t\t\t\t\tswap(A, c[i], i);\n\t\t\t\t}\n\t\t\t\tprintArray(A);\n\t\t\t\tc[i] += 1;\n\t\t\t\ti = 0;\n\t\t\t} else {\n\t\t\t\tc[i] = 0;\n\t\t\t\ti += 1;\n\t\t\t}\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tint[] nums = {1,2,3};\n\t\tnew NextPermutation().nextPermutation(nums);\n\t\tint[] nums1 = {3,2,1};\n\t\tnew NextPermutation().nextPermutation(nums1);\n\t\tint[] nums2 = {1,3,2};\n\t\t//Arrays.sort(nums2, 1, nums.length);\n\t\t//for(int i=0;i<nums2.length;i++)System.out.println(nums2[i]);\n\t\tnew NextPermutation().nextPermutation(nums2);\n\n\t}", "public static List<Integer> getRepetitiveElements(int[] array) {\n if (array == null) {\n return null;\n }\n\n ArrayList<Integer> result = new ArrayList<>();\n int toVisit;\n int nextStep;\n\n // for loop to iterate through array\n for (int i = 0; i < array.length; i++) {\n if (array[i] <= 0) { // duplicate or visited, no point to handle it anymore\n continue;\n // 0 for duplicate\n // -1 for visited\n // if ith index <-> number i has been visited, we can just skip this entry\n\n } else {\n // ith index <-> number i is not visited\n // so read the value of array[i]\n toVisit = array[i]; // starting from unexplored i index value\n // this logic keep exploring til reaching a visited one\n while(array[toVisit] > 0) {\n nextStep = array[toVisit]; // record nextPos\n array[toVisit] = -1; // mark curPos as visited\n // update curPos\n toVisit = nextStep;\n }\n\n // array[toVisit] either -1 or 0\n // -1: meaning visited before\n // 0: not only visited, but duplicate found already\n if (array[toVisit] != 0) {\n array[toVisit] = 0; // mark once\n result.add(toVisit);\n }\n }\n }\n\n return result;\n }", "public void permutate(int[] x) {\n for (int i = 0; i < x.length; i++) {\n int j = i + nextInt(x.length - i);\n Math.swap(x, i, j);\n }\n }", "public int[] getExpectedProducts(int[] arr) {\n int[] res = new int[arr.length];\n\n for(int i = 0; i < arr.length; i++) {\n res[i] = 1;\n\n for(int j = 0; j < arr.length; j++) {\n if(i != j) {\n res[i] *= arr[j];\n }\n }\n }\n\n return res;\n }", "public boolean isIdealPermutation(int[] A) {\n int numLocalInvrtions = 0, numGlobalInvertions = 0;\n for(int i = 0; i< A.length; i++){\n if(A[i] > A[i+1]) numLocalInvrtions++;\n }\n\n for(int i = 0; i < A.length-1; i++){\n for(int j = i+1; j < A.length;j++){\n if(A[i] > A[j]) numGlobalInvertions++;\n }\n }\n return numLocalInvrtions == numGlobalInvertions;\n }", "public void nextPermutation(int [] nums){\n\t\tint i = nums.length - 2;\n\t\twhile(i >= 0 && nums[i+1] <= nums[i]) // from right\n\t\t\ti--;\n\t\tif(i >= 0){\n\t\t\tint j = nums.length-1;\n\t\t\twhile(j>=0 && nums[j] <= nums[i]){\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tswapInArr(nums, i, j);\n\t\t}\n\t\t\n\t\treverseArray(nums, i+1, nums.length-1);\n\t}", "public static void main(String[] args) {\n\t\tresult = permutation(\"doggie\",\"god\");\r\n\t\tSystem.out.println(result);\r\n\t}", "public void permutate(Object[] x) {\n for (int i = 0; i < x.length; i++) {\n int j = i + nextInt(x.length - i);\n Math.swap(x, i, j);\n }\n }", "public List<List<Integer>> permute_2(int[] nums) {\n List<List<Integer>> ans = new ArrayList<>();\n backtrack(new ArrayList<>(), ans, nums);\n return ans;\n }", "@Test\n public void testPPermutation() {\n FieldMatrix<Dfp> matrix = new Array2DRowFieldMatrix<>(Dfp25.getField(), testData);\n FieldMatrix<Dfp> p = new FieldLUDecomposition<>(matrix).getP();\n\n FieldMatrix<Dfp> ppT = p.multiply(p.transpose());\n FieldMatrix<Dfp> id =\n new Array2DRowFieldMatrix<>(Dfp25.getField(),\n p.getRowDimension(), p.getRowDimension());\n for (int i = 0; i < id.getRowDimension(); ++i) {\n id.setEntry(i, i, Dfp25.ONE);\n }\n TestUtils.assertEquals(id, ppT);\n\n for (int i = 0; i < p.getRowDimension(); i++) {\n int zeroCount = 0;\n int oneCount = 0;\n int otherCount = 0;\n for (int j = 0; j < p.getColumnDimension(); j++) {\n final Dfp e = p.getEntry(i, j);\n if (e.equals(Dfp25.ZERO)) {\n ++zeroCount;\n } else if (e.equals(Dfp25.ONE)) {\n ++oneCount;\n } else {\n ++otherCount;\n }\n }\n Assert.assertEquals(p.getColumnDimension() - 1, zeroCount);\n Assert.assertEquals(1, oneCount);\n Assert.assertEquals(0, otherCount);\n }\n\n for (int j = 0; j < p.getColumnDimension(); j++) {\n int zeroCount = 0;\n int oneCount = 0;\n int otherCount = 0;\n for (int i = 0; i < p.getRowDimension(); i++) {\n final Dfp e = p.getEntry(i, j);\n if (e.equals(Dfp25.ZERO)) {\n ++zeroCount;\n } else if (e.equals(Dfp25.ONE)) {\n ++oneCount;\n } else {\n ++otherCount;\n }\n }\n Assert.assertEquals(p.getRowDimension() - 1, zeroCount);\n Assert.assertEquals(1, oneCount);\n Assert.assertEquals(0, otherCount);\n }\n }", "public static void printPermutaions(String word) {\n TreeMap<Character, Integer> map = new TreeMap<>();\n for (int i = 0; i < word.length(); i++) {\n if (map.get(word.charAt(i)) != null) {\n map.put(word.charAt(i), map.get(word.charAt(i)) + 1);\n } else {\n map.put(word.charAt(i), 1);\n }\n }\n\n int[] count = new int[map.size()];\n char[] chars = new char[map.size()];\n\n int index = 0;\n for (Map.Entry entry : map.entrySet()) {\n chars[index] = (char) entry.getKey();\n count[index] = (int) entry.getValue();\n index++;\n }\n\n char[] result = new char[word.length()];\n ArrayList<String> resultList = new ArrayList<String>();\n permuteUtil(chars, count, result, resultList, 0);\n for (String perm : resultList) {\n System.out.print(perm+\" \");\n }\n }" ]
[ "0.68184525", "0.62902427", "0.6205875", "0.58479744", "0.5736594", "0.5715394", "0.5689773", "0.56352735", "0.55503464", "0.5545595", "0.5505403", "0.54860383", "0.54053754", "0.5372873", "0.5363427", "0.5333717", "0.5323305", "0.531516", "0.5297716", "0.52964747", "0.528983", "0.5286974", "0.52663094", "0.5249616", "0.5244273", "0.5241481", "0.5191845", "0.51903355", "0.5185679", "0.5154622", "0.51228", "0.506473", "0.50489485", "0.50058085", "0.50040007", "0.50010186", "0.49961522", "0.49774125", "0.496558", "0.4961254", "0.49594513", "0.4958239", "0.49415687", "0.49365547", "0.49323732", "0.49125227", "0.48964122", "0.48760495", "0.48735663", "0.4842476", "0.48362672", "0.48358193", "0.4824822", "0.4822092", "0.48211068", "0.48051444", "0.48022228", "0.47917175", "0.47766012", "0.47697997", "0.47443646", "0.47397587", "0.47326607", "0.4732528", "0.47320992", "0.47313714", "0.47274488", "0.47239745", "0.4723042", "0.47115952", "0.47098082", "0.47050735", "0.46999875", "0.46814752", "0.46736827", "0.46699482", "0.46649882", "0.46639735", "0.4625697", "0.46247196", "0.46218872", "0.4616889", "0.4611129", "0.46053806", "0.46022382", "0.45993584", "0.4597483", "0.45956343", "0.45882347", "0.4588212", "0.45879745", "0.45768616", "0.4572153", "0.4559741", "0.45554444", "0.45477033", "0.45411602", "0.45337626", "0.45308855", "0.45007184" ]
0.6234267
2
Calculates the Score of the dices by iterating over an Integer array several passes so make sure no score gets missed.
public static void compareArrays(int[] compare, int find) { int[] arr = Arrays.copyOfRange(compare, 0, compare.length); int totalScore = 0; // Outer loop for (int i = 0; i < arr.length; i++) { int currentSum = find; // Reset each pass for (int j = 0; j < arr.length - i; j++) { currentSum -= arr[i + j]; if (currentSum < 0) continue; // Combination found if (currentSum == 0) { // Sets dices used for calculation to 0; for (int y = i; y <= i + j; y++) { arr[y] = 0; } totalScore += find; currentSum = find; // reset i = 0; // Reset outer loop j = -1; // Reset inner loop } } } score.add(totalScore); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int greedy(int[] dice){\n int[] count = new int[5];\n // so inversely the variable for each score => count[score-1]\n // I handled the count process with a foreach loop\n // it iterates the values of the given array, checks scores and assigns count using a switch case\n for (int score: dice) {\n switch (score){\n case 1 -> count[0]++;\n case 2 -> count[1]++;\n case 3 -> count[2]++;\n case 4 -> count[3]++;\n case 5 -> count[4]++;\n case 6 -> count[5]++;\n }\n } \n\n // > CHECKING IF THERE'S A COUNT OF 3 AND ASSIGNING POINTS\n // A variable to hold the points is needed\n int points = 0;\n //check if there is a count of 3 in the count array, using a fori loop to keep track of the score value being iterated\n for (int i = 0, score = i+1 ; i < count.length; i++) {\n //if found\n if(count[i] > 2){\n // assign points\n // * points system for 3 occurrences\n // Three 1's => 1000 points\n // Three 6's => 600 points\n // Three 5's => 500 points\n // Three 4's => 400 points\n // Three 3's => 300 points\n // - score 1's point is a special case\n // - for the rest, points awarded = score*100\n if(score == 1){\n points += 1000;\n count[i] -= 3;\n }else{\n points += (score *100);\n count[i] -= 3;\n }\n }\n }\n\n // > CHECKING IF THE SCORE 1 AND 5 HAVE OCCURRENCES > 0 AND ASSIGNING POINTS IF TRUE\n //if true\n if(count[0] > 0)\n points += (100* count[0]);\n if(count[4] > 0)\n points += (50 * count[4]);\n return points;\n }", "void onThrowPostPossibleScores(SparseArray<Dice> dices);", "public static int calcScoreLow(ArrayList<Dice> dices) {\n\n int[] arr = convertDiceValueArray(dices);\n int sum = 0;\n for (int i = 0; i < arr.length; i++) {\n\n if (arr[i] <= SCORE_LOW) {\n sum += arr[i];\n }\n }\n Log.d(\"SCORECALC\", String.valueOf(sum));\n return sum;\n }", "public static int calcScore(ArrayList<Dice> dices, int findValue) {\n int[] combos = convertDiceValueArray(dices);\n permutations = new ArrayList<>();\n score = new ArrayList<>();\n\n findPermutations( 0,combos);\n for(int arr[] : permutations){\n compareArrays(arr, findValue);\n }\n\n int max = 0;\n for(int a : score){\n if(max < a) max = a;\n }\n\n return max;\n }", "public int sumDice(Die[] dice, int value){\n int subTotal = 0;\n\n // facevalue is getting the dice now\n for(Die die: dice){\n int facevalue = die.getFaceValue();\n\n // If facevalue equals to the value then subtotal will be returnable as long as there is a matched int\n if(facevalue == value){\n\n\n // subTotal will be greater or equals to faceValue then\n subTotal += facevalue;\n }}return subTotal;}", "public int diceSum(Die[] dice) {\n int sum = 0;\n for (Die d : dice) {\n sum += d.getFace();\n }\n return sum;\n }", "public int roll(int dices){\n int faces[] = new int[dices];\n int total = 0;\n Dice dice = new Dice();\n for(int i = 0; i < dices; i++){\n faces[i] = (dice.rand.nextInt(6) + 1);\n }\n for(int i = 0; i < faces.length-1; i++){\n if(faces[i] != faces[i+1]){\n this.isDouble = false;\n break;\n }\n else{\n this.isDouble = true;\n }\n }\n if(this.isDouble == true){\n this.twiceCounter++;\n }\n for(int i = 1; i < faces.length+1; i++){\n System.out.print(\"The \" + i + \". dice: \" + faces[i-1] + \" \");\n total += faces[i-1];\n }\n System.out.println(\" and the sum is \" + total);\n\n return total;\n }", "public static Integer getScoreFor_RollOnTwoPairs(Dice dice) \r\n\t{\r\n\t\tlog.debug(\"Inside method getScoreFor_RollOnTwoPairs\");\r\n\t\t\r\n\t\tInteger score = 0;\r\n\t\tInteger tempScore = 0;\r\n\t\tInteger pairCount = 0;\r\n\t\t\r\n\t\tMap<Integer, Integer> map = dice.getDiceNumberCountMap();\r\n\t\t\r\n\t\tfor ( Integer diceNumber : map.keySet() )\r\n\t\t{\r\n\t\t\t// if we can find a number in pair\r\n\t\t\tif ( map.get(diceNumber) >= 2 ) \r\n\t\t\t{\r\n\t\t\t\tpairCount = pairCount + 1;\r\n\t\t\t\t\r\n\t\t\t\ttempScore = tempScore + diceNumber * 2;\r\n\t\t\t\t\r\n\t\t\t\t// if pair count is 2 then score\r\n\t\t\t\tscore = ( pairCount == 2 ) ? tempScore : score;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn score;\r\n\t}", "public void throwDice()\n {\n System.out.println( name + \"'s Turn \" + (turnNumber + 1) + \" Results for Round \" + round + \": \");\n turnScores[turnNumber] = 0;\n System.out.print(\"Dice Throws: \");\n for (int diceNumber = 0; diceNumber < diceThrows[turnNumber].length; diceNumber++)\n {\n int diceThrow = r.nextInt(6) + 1;\n diceThrows[turnNumber][diceNumber] = diceThrow;\n turnScores[turnNumber] += diceThrow;\n totalScore += diceThrow;\n System.out.print(diceThrows[turnNumber][diceNumber] + \" \");\n }\n System.out.print(\" Score This Turn: \" + turnScores[turnNumber] + \" \");\n System.out.println(\" \" + name + \"'s Running Total Score: \" + totalScore + \"\\n\");\n \n turnNumber++;\n }", "public int numbers(int[] dice, int category) {\n\t\tint countScore=0;\n\t\tfor (int i = 0;i < n_dice; i++) {\n\t\t\tif(dice[i]==category) {\n\t\t\t\tcountScore=countScore+dice[i];\n\t\t\t}\n\t\t}\n\t\treturn countScore;\n\t}", "private static int[] convertDiceValueArray(ArrayList<Dice> dices) {\n int[] combos = new int[dices.size()];\n\n for (int i = 0; i < dices.size(); i++) {\n combos[i] = dices.get(i).getValue();\n }\n return combos;\n }", "static int calculateScore(Card[] winnings) {\n int score = 0;\n for (Card card : winnings)\n if (card != null)\n score++;\n else\n break;\n return score;\n }", "static int distributeCandy(int[] score) {\n java.util.TreeMap<Integer,Integer> candcalmap=new java.util.TreeMap<Integer,Integer>();\n int totcand=0,numcan=1;\n /* for(int indx=1;indx<score.length;indx++)\n {\n while(score[indx-1]<(indx<score.length?score[indx]:Integer.MAX_VALUE))\n {\n numcan++;\n indx++;\n totcand+=numcan;\n //System.out.println(numcan+\"-\"+indx+\":\"+totcand);\n if(indx==score.length)\n break;\n }\n numcan=1;\n totcand+=numcan;\n \n }\n*/\tfor(int sc:score)\n {\n candcalmap.put(sc,candcalmap.get(sc)==null?1:candcalmap.get(sc)+1);\n }\n for(Map.Entry<Integer,Integer> e:candcalmap.entrySet())\n {\n totcand+=numcan*e.getValue();\n// System.out.println(e.getValue()+\"-\"+e.getKey()+\":\"+numcan+\" \"+totcand);\n numcan++;\n }\n return totcand;\n }", "@Override\n public int evaluate(int[] l) {\n int s = 0;\n HashSet<Integer> map = new HashSet<Integer>();\n for (int i = 0; i < l.length; ++i) {\n int elmt = l[i];\n if (map.add(elmt))\n s += this.getValue(elmt);\n if (i != 0)\n s -= neighbourCheck[l[i - 1]][l[i]];\n }\n return s;\n }", "void printScore(double sum[]){\n \n if((sum[1] > sum [4]) && (sum[1] > sum[5]) ){\n System.out.println(\"among 1 4 5 => 1\");\n }\n if((sum[4] > sum [1]) && (sum[4] > sum[5]) ){\n System.out.println(\"among 1 4 5 => 4\");\n }\n if((sum[5] > sum [1]) && (sum[5] > sum[4]) ){\n System.out.println(\"among 1 4 5 => 5\");\n }\n if((sum[2] > sum [6]) && (sum[2] > sum[8]) ){\n System.out.println(\"among 2 6 8 => 2\");\n }\n if((sum[6] > sum [2]) && (sum[6] > sum[8]) ){\n System.out.println(\"among 2 6 8 => 6\");\n }\n if((sum[8] > sum [2]) && (sum[8] > sum[6]) ){\n System.out.println(\"among 2 6 8 => 8\");\n }\n if((sum[3] > sum [0]) && (sum[3] > sum[7]) ){\n System.out.println(\"among 3 0 7 => 3\");\n }\n if((sum[0] > sum [3]) && (sum[0] > sum[7]) ){\n System.out.println(\"among 3 0 7 => 0\");\n }\n if((sum[7] > sum [3]) && (sum[7] > sum[0]) ){\n System.out.println(\"among 3 0 7 => 7\");\n }\n }", "private int calculateScore(){\n int score = 0;\n for(Card card : hand){\n score += card.getScore();\n }\n return score;\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tint[] totals = new int[11];\r\n\t\tint dice;\r\n\t\tint diceTwo;\r\n\t\tint total;\r\n\r\n\t\t\r\n\r\n\t\tfor (int i = 0; i < 10000; i++) {\r\n\t\t\tdice = (int) (Math.random() * 6) + 1;\r\n\t\t\tdiceTwo = (int) (Math.random() * 6) + 1;\r\n\t\t\ttotal = dice + diceTwo; \r\n\t\t\tif (total == 2) {\r\n\r\n\t\t\t\ttotals[0]++;\r\n\t\t\t}\r\n\r\n\t\t\telse if (total == 3) {\r\n\r\n\t\t\t\ttotals[1]++;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse if (total == 4) {\r\n\r\n\t\t\t\ttotals[2]++;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse if (total == 5) {\r\n\r\n\t\t\t\ttotals[3]++;\r\n\t\t\t}\r\n\t\t\telse if (total == 6) {\r\n\r\n\t\t\t\ttotals[4]++;\r\n\t\t\t}\r\n\t\t\telse if (total == 7) {\r\n\r\n\t\t\t\ttotals[5]++;\r\n\t\t\t}\r\n\t\t\telse if (total == 8) {\r\n\r\n\t\t\t\ttotals[6]++;\r\n\t\t\t}\r\n\t\t\telse if (total == 9) {\r\n\r\n\t\t\t\ttotals[7]++;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse if (total == 10) {\r\n\r\n\t\t\t\ttotals[8]++;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse if (total == 11) {\r\n\r\n\t\t\t\ttotals[9]++;\r\n\t\t\t}\r\n\t\t\telse if (total == 12) {\r\n\r\n\t\t\t\ttotals[10]++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"Total - Number of Rolls\");\r\n\t\tSystem.out.println(\"2 \" + totals[0] );\r\n\t\tSystem.out.println(\"3 \" + totals[1] );\r\n\t\tSystem.out.println(\"4 \" + totals[2] );\r\n\t\tSystem.out.println(\"5 \" + totals[3] );\r\n\t\tSystem.out.println(\"6 \" + totals[4] );\r\n\t\tSystem.out.println(\"7 \" + totals[5] );\r\n\t\tSystem.out.println(\"8 \" + totals[6] );\r\n\t\tSystem.out.println(\"9 \" + totals[7] );\r\n\t\tSystem.out.println(\"10 \" + totals[8] );\r\n\t\tSystem.out.println(\"11 \" + totals[9] );\r\n\t\tSystem.out.println(\"12 \" + totals[10] );\r\n\t}", "public static int[] calculateScores(String[] resultsToCheck)\n\t{\n\t\tint[] scores = new int[entrants.length];\n\t\t//results = checkResults(preResults);\n\t\tfor(int i = 0; i < resultsToCheck.length; i++)\n\t\t{\n\t\t\tif(!resultsToCheck[i].equals(\"\"))\n\t\t\t{\n\t\t\t\t//for each player\n\t\t\t\tfor(int j = 0; j < entrants.length; j++)\n\t\t\t\t{\n\t\t\t\t\t//if the player's pick for the match is equal to the result\n\t\t\t\t\tif(allPicks.get(j)[i].equals(resultsToCheck[i]))\n\t\t\t\t\t{\n\t\t\t\t\t\t//increase their points by the value of the match\n\t\t\t\t\t\tscores[j] += values[i];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn scores;\n\t}", "protected abstract List<Double> calcScores();", "private static int scoreStraight(boolean large, Die[] dice){\n int score = 0;\n boolean scored = false;\n if(large){ // Large straight\n for(int ofs = 0;ofs < 2; ofs++) { // Large straights have two possible sets of integers to look for\n scored = true;\n for (int i = 1+ofs; i < 6+ofs; i++) { // Iterate to all 5 dice\n if (!inDice(dice, i)) { // Check for the existence of iterated numbers\n scored = false;\n }\n }\n }\n if(scored){return 40;}\n }\n else{ // Small straight\n for(int ofs = 0;ofs < 3; ofs++) { // Small straights have three possible sets of integers to look for\n scored = true;\n for (int i = 1+ofs; i < 5+ofs; i++) { // Iterate to four dice\n if (!inDice(dice, i)) { // Check for the existence of iterated numbers\n scored = false;\n }\n }\n }\n if(scored){\n return 30;\n }\n }\n return 0;\n }", "private void calculate(int[][] turns) throws Exception {\n int score = 0;\n for (int i = 0; i < round; i++) {\n int[] t = turns[i];\n if (t[0] == maxSroce) {\n score += (maxSroce + getNext(turns, i, 2));\n situation[i] = Status.STRIKE;\n } else if (t[0] + t[1] == maxSroce) {\n score += (maxSroce + getNext(turns, i, 1));\n situation[i] = Status.SPARE;\n } else {\n score += (t[0] + t[1]);\n situation[i] = Status.MISS;\n }\n this.score[i] = score;\n }\n }", "public int[][] reportByScore(int array[][], int[] array1) {\n\n\t\tint b = array.length - 1;\n\t\tint a = maxScore / b;\n\t\tfor (int i = 0; i < array1.length; i++) {\n\t\t\tif (array1[i] != 0) {\n\t\t\t\tarray[(b - (array1[i] - 1) / a - 1)][availableSpace(array, (b - (array1[i] - 1) / a - 1))] = array1[i];\n\t\t\t} else {\n\t\t\t\tarray[b][availableSpace(array, b)] = array1[i];\n\t\t\t}\n\n\t\t}\n\n\t\treturn array;\n\t}", "public static int villa(int... result) {\n\n int score = nSame(3, 6, result);\n int firstPairVal = score/3;\n\n result = IntStream.of(result).filter(val -> val != firstPairVal).toArray();\n score = nSame(3, 6, result);\n int secondPairVal = score/3;\n\n if (firstPairVal*secondPairVal > 0) {\n score = 3*firstPairVal + 3*secondPairVal;\n } else {\n score = 0;\n }\n\n return score;\n }", "private double scorePonderated(int i, int total) {\r\n\t\tif (total == 1) {\r\n\t\t\treturn 100.0;\r\n\t\t}\r\n\t\tdouble score = 100.0 / (2.0 * (i + 1));\r\n\t\treturn score;\r\n\t}", "public int setRollResult(int diceAmount, int diceSides) {\n\t\tint result = 0;\n\t\tfor (int i = 0; i < diceAmount; i++) {\n\t\t\tresult += diceBag.rollDice(diceSides);\n\t\t}\n\t\treturn result;\n\t}", "public void findAvg()\n {\n for(int i = 0; i <= scores.length-1; i++)\n {\n for (int j = 0; j <= scores[0].length-1; j++)\n {\n total += scores[i][j];\n }\n }\n System.out.println(\"The class average test score is \" + \n total/24 + \".\");\n }", "public int[] calculateScore(Player[] players){\n players = board.getPlayers();\n int[] scores = new int[board.getPlayerCount()];\n for(int i = 0; i < players.length; i++){\n scores[i] = players[i].getMoney() + players[i].getCredits() + (players[i].getRank() * 5);\n }\n return scores;\n }", "static int score(int[] state) {\n int no = 0;\n for (int i = 1; i < 10; i++) {\n if (state[i] == 1) {\n no *= 10; no += i;\n }\n }\n return no;\n }", "private void checkMyScore() {\n\n int[] scores = ar.checkMyScore();\n System.out.println(\" My score: \");\n int level = 1;\n for (int i : scores) {\n System.out.println(\" level \" + level + \" \" + i);\n if (i > 0)\n solved[level - 1] = 1;\n level++;\n }\n }", "public void scoring(){\n for (int i=0; i< players.size(); i++){\n Player p = players.get(i);\n p.setScore(10*p.getTricksWon());\n if(p.getTricksWon() < p.getBid() || p.getTricksWon() > p.getBid()){\n int diff = Math.abs(p.getTricksWon() - p.getBid());\n p.setScore(p.getScore() - (10*diff));\n }\n if(p.getTricksWon() == p.getBid()){\n p.setScore(p.getScore() + 20);\n }\n }\n }", "@Test\n public void testRunScoringScenario() throws Exception\n {\n YahtzeeModel y1 = new YahtzeeModel();\n\n //Turn 1\n y1.getDiceCollection().setValues(1, 1, 3, 3, 3);\n assertEquals(2, y1.scoreOnes());\n //Turn 2\n y1.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(6, y1.scoreTwos());\n //Turn 3\n y1.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(3, y1.scoreThrees());\n //Turn 4\n y1.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(0, y1.scoreFours());\n //Turn 5\n y1.getDiceCollection().setValues(2, 1, 2, 2, 5);\n assertEquals(5, y1.scoreFives());\n //Turn 6\n y1.getDiceCollection().setValues(6, 6, 6, 6, 6);\n assertEquals(30, y1.scoreSixes());\n //3 of a kind\n y1.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(10, y1.scoreThreeOfAKind());\n //4 of a kind\n y1.getDiceCollection().setValues(2, 2, 2, 2, 2);\n assertEquals(10, y1.scoreFourOfAKind());\n //full house\n y1.getDiceCollection().setValues(6, 4, 6, 4, 6);\n assertEquals(25, y1.scoreFullHouse());\n //small straight\n y1.getDiceCollection().setValues(6, 6, 6, 6, 6);\n assertEquals(0, y1.scoreSmallStraight());\n //large straight\n y1.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(0, y1.scoreLargeStraight());\n //yahtzee\n y1.getDiceCollection().setValues(2, 2, 2, 2, 2);\n assertEquals(50, y1.scoreYahtzee());\n //chance\n y1.getDiceCollection().setValues(6, 1, 1, 1, 1);\n assertEquals(10, y1.scoreChance());\n\n //calculate bonus and verify bonus\n assertEquals(0, y1.scoreBonus());\n\n //verify that the available scoring types has one entry for YAHTZEE since it was scored\n assertEquals(1, y1.getScoreCard().getAvailableScoreTypes().size());\n assertTrue(y1.getScoreCard().getAvailableScoreTypes().contains(YahtzeeScoreTypes.YAHTZEE));\n\n //verify final score\n assertEquals(151, y1.getScoreCard().getScore());\n\n\n //*** Game 2: 0 Bonus, 2 Yahtzee ***\n YahtzeeModel y2 = new YahtzeeModel();\n\n //Turn 1\n y2.getDiceCollection().setValues(1, 1, 1, 1, 1);\n assertEquals(50, y2.scoreYahtzee());\n //Turn 2\n y2.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(6, y2.scoreTwos());\n //Turn 3\n y2.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(3, y2.scoreThrees());\n //Turn 4\n y2.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(0, y2.scoreFours());\n //Turn 5\n y2.getDiceCollection().setValues(2, 1, 2, 2, 5);\n assertEquals(5, y2.scoreFives());\n //Turn 6\n y2.getDiceCollection().setValues(6, 6, 6, 6, 6);\n assertEquals(30, y2.scoreSixes());\n //3 of a kind\n y2.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(10, y2.scoreThreeOfAKind());\n //4 of a kind\n y2.getDiceCollection().setValues(2, 2, 2, 2, 2);\n assertEquals(10, y2.scoreFourOfAKind());\n //full house\n y2.getDiceCollection().setValues(6, 4, 6, 4, 6);\n assertEquals(25, y2.scoreFullHouse());\n //small straight\n y2.getDiceCollection().setValues(6, 6, 6, 6, 6);\n assertEquals(0, y2.scoreSmallStraight());\n //large straight\n y2.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(0, y2.scoreLargeStraight());\n //yahtzee\n y2.getDiceCollection().setValues(2, 2, 2, 2, 2);\n assertEquals(100, y2.scoreYahtzee());\n //chance\n y2.getDiceCollection().setValues(6, 1, 1, 1, 1);\n assertEquals(10, y2.scoreChance());\n\n //calculate bonus and verify bonus\n assertEquals(0, y2.scoreBonus());\n\n //verify that the available scoring types has two entres...\n // one for YAHTZEE and one for ONES\n assertEquals(2, y2.getScoreCard().getAvailableScoreTypes().size());\n assertTrue(y2.getScoreCard().getAvailableScoreTypes().contains(YahtzeeScoreTypes.ONES));\n assertTrue(y2.getScoreCard().getAvailableScoreTypes().contains(YahtzeeScoreTypes.YAHTZEE));\n\n //verify final score\n assertEquals(249, y2.getScoreCard().getScore());\n\n //*** Game 3: 1 Bonus, 0 Yahtzee ***\n YahtzeeModel y3 = new YahtzeeModel();\n\n //Turn 1\n y3.getDiceCollection().setValues(1, 1, 1, 1, 1);\n assertEquals(5, y3.scoreOnes());\n //Turn 2\n y3.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(6, y3.scoreTwos());\n //Turn 3\n y3.getDiceCollection().setValues(3, 3, 2, 2, 3);\n assertEquals(9, y3.scoreThrees());\n //Turn 4\n y3.getDiceCollection().setValues(2, 4, 4, 4, 3);\n assertEquals(12, y3.scoreFours());\n //Turn 5\n y3.getDiceCollection().setValues(2, 5, 2, 2, 5);\n assertEquals(10, y3.scoreFives());\n //Turn 6\n y3.getDiceCollection().setValues(6, 6, 6, 6, 6);\n assertEquals(30, y3.scoreSixes());\n //3 of a kind\n y3.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(10, y3.scoreThreeOfAKind());\n //4 of a kind\n y3.getDiceCollection().setValues(2, 2, 2, 2, 2);\n assertEquals(10, y3.scoreFourOfAKind());\n //full house\n y3.getDiceCollection().setValues(6, 4, 6, 4, 6);\n assertEquals(25, y3.scoreFullHouse());\n //small straight\n y3.getDiceCollection().setValues(6, 6, 6, 6, 6);\n assertEquals(0, y3.scoreSmallStraight());\n //large straight\n y3.getDiceCollection().setValues(2, 1, 2, 2, 3);\n assertEquals(0, y3.scoreLargeStraight());\n //yahtzee\n y3.getDiceCollection().setValues(2, 1, 2, 2, 2);\n assertEquals(0, y3.scoreYahtzee());\n //chance\n y3.getDiceCollection().setValues(6, 1, 1, 1, 1);\n assertEquals(10, y3.scoreChance());\n\n //calculate bonus and verify bonus\n assertEquals(35, y3.scoreBonus());\n\n //verify that no scoring types remain\n assertEquals(0, y3.getScoreCard().getAvailableScoreTypes().size());\n\n //verify final score\n assertEquals(162, y3.getScoreCard().getScore());\n }", "public void throwDices() throws DiceException {\n /**generator of random numbers(in this case integer numbers >1)*/\n Random generator = new Random();\n /**mode of logic*/\n String mode = this.getMode();\n\n if (!mode.equals(\"sum\") && !mode.equals(\"max\")) {\n throw new DiceException(\"Wrong throw mode!!! Third argument should be 'max' or 'sum'!\");\n } else if (this.getNumOfDices() < 1) {\n throw new DiceException(\"Wrong numeber of dices!!! Number of dices should equals 1 or more!\");\n } else if (this.getNumOfWalls() < 4) {\n throw new DiceException(\"Wrong numeber of walls!!! Number of walls should equals 4 or more!\");\n } else {\n if (mode.equals(\"sum\")) {\n for (int i = 0; i < this.getNumOfDices(); i++) {\n result += (generator.nextInt(this.getNumOfWalls()) + 1);\n }\n } else if (mode.equals(\"max\")) {\n for (int i = 0; i < this.getNumOfDices(); i++) {\n int buff = (generator.nextInt(this.getNumOfWalls()) + 1);\n if (this.result < buff) {\n this.result = buff;\n }\n }\n }\n }\n }", "public void throwDice() {\r\n\t\tfor( DiceGroup diceGroup:dice.values() ) {\r\n\t\t\tdiceGroup.throwDice(); //.setResult( (int) Math.random()*die.getSize() + 1);\r\n\t\t}\r\n\t}", "public static void forLoop() {\n // In this case, we have the raw score results of students.\n // In a test they took with 67 questions, we have recorded\n // how many they got correct.\n int[] testScores = {57, 65, 53, 34};\n\n // Our goal is to go through each score and convert that score into\n // a percentage score.\n // The overall flow of the code goes as follows.\n // 1) Initially, create a variable, i, and set it to 0. -> 2\n // 2) if i < testScores.length, then step 3. Otherwise, Step 5\n // 3) execute the body of code below. -> 4\n // 4) Once done executing the body, increment i by 1. -> 2.\n // 5) We're out of the loop!\n for (int i = 0; i < testScores.length; i++) {\n System.out.println(\"Test Score initially \" + testScores[i]);\n testScores[i] = (testScores[i] * 100) / 67;\n System.out.println(\"Test Score now \" + testScores[i]);\n System.out.println(\"==================\");\n }\n }", "public static int bigStraightYahtzee(int... result) {\n\n Arrays.sort(result);\n\n int[] uniqueValues = IntStream.of(result).distinct().sorted().toArray();\n long noUniqVals = IntStream.of(uniqueValues).distinct().count();\n int score = 0;\n\n if (noUniqVals >= 5) {\n ArrayList<int[]> matchArrays = new ArrayList<>();\n matchArrays.add(new int[]{1, 2, 3, 4, 5});\n matchArrays.add(new int[]{2, 3, 4, 5, 6});\n\n ArrayList<int[]> resultSubArrays = new ArrayList<>();\n for (int i = 0; i < noUniqVals - 4; i++) {\n resultSubArrays.add(Arrays.copyOfRange(uniqueValues, i, i + 5));\n }\n\n for (int[] arr : resultSubArrays) {\n for (int[] match : matchArrays) {\n if (Arrays.equals(arr, match)) {\n score = 40;\n }\n\n }\n }\n }\n return score;\n }", "protected abstract void calcScores();", "public ArrayList<Dice> sortDiceArray() //sort the dice array by order of how you resolve\n {\n ArrayList<Dice> sortDiceArray = getDiceArray();\n for(int i = 0; i < sortDiceArray.size()-1; i++)\n {\n if(sortDiceArray.get(i).getDiceInt() > sortDiceArray.get(i+1).getDiceInt())\n {\n Collections.swap(sortDiceArray, i, i+1);\n i = 0;\n }\n }\n \n return diceArray;\n }", "public static int yatzy(int scoreVal, int... result) {\n int score = 0;\n long uniqueValues = IntStream.of(result).distinct().count();\n if (uniqueValues == 1 && result.length > 1) {\n score = scoreVal;\n }\n return score;\n }", "public static double[] dicesSum(int n) {\n if (n <= 0) return new double[0];\n\n final int nums = n * FACES;\n int[][] dp = new int[n + 1][nums + 1];\n\n // Arrays.fill(dp[1], 1, FACES, 1);\n for (int i = 1; i <= FACES; i++) {\n dp[1][i] = 1;\n }\n\n for (int i = 2; i <= n; i++) {\n // Using i indices, get [i, i * FACES] results\n for (int j = i; j <= i * FACES; j++) {\n // f(n) = f(n - 1) + f(n - 2) + ... + f(n - 6)\n for (int k = 1; k <= FACES && k < j; k++) {\n dp[i][j] += dp[i - 1][j - k];\n }\n }\n }\n\n final double total = Math.pow(FACES, n);\n final double[] res = new double[nums];\n // Using n indices, get [n, n * FACES] results\n for (int i = n; i <= nums; i++) {\n res[i - n] = dp[n][i] / total;\n }\n return res;\n }", "void calculateScore(){\r\n playerScore = 0;\r\n for(int i = 1; i<=10; i++) {\r\n scoreQuestion(i);\r\n }\r\n }", "public void rollAllDices() {\n for(int i = 0; i < dicesList.size(); i++) {\n dicesList.get(i).roll();\n }\n }", "private int scoreForThisCategory(int category, int playerName) {\n\t\t// at start let the score be 0.\n\t\tint score = 0;\n\t\t// if player chose one to six we score++ every time we get that number\n\t\t// in the dice. that will give us how many that number player chose is\n\t\t// in the dice.\n\t\tif (category >= 1 && category <= 6) {\n\t\t\tfor (int i = 0; i < N_DICE; i++) {\n\t\t\t\tif (diceResults[i] == category) {\n\t\t\t\t\tscore++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// than we multiple it on what number(category) player chose to get\n\t\t\t// the final score for this category.\n\t\t\tscore *= category;\n\t\t\t// if player chose THREE_OF_A_KIND than score is the sum of the\n\t\t\t// numbers on dice.\n\t\t} else if (category == THREE_OF_A_KIND) {\n\t\t\tfor (int i = 0; i < N_DICE; i++) {\n\t\t\t\tscore += diceResults[i];\n\t\t\t}\n\t\t\t// if player chose FOUR_OF_A_KIND than score is the sum of the\n\t\t\t// numbers on dice.\n\t\t} else if (category == FOUR_OF_A_KIND) {\n\t\t\tfor (int i = 0; i < N_DICE; i++) {\n\t\t\t\tscore += diceResults[i];\n\t\t\t}\n\t\t\t// if player chose FULL_HOUSE than score is 25.\n\t\t} else if (category == FULL_HOUSE) {\n\t\t\tscore = 25;\n\t\t\t// if player chose SMALL_STRAIGHT than score is 30.\n\t\t} else if (category == SMALL_STRAIGHT) {\n\t\t\tscore = 30;\n\t\t\t// if player chose LARGE_STRAIGHT than score is 40.\n\t\t} else if (category == LARGE_STRAIGHT) {\n\t\t\tscore = 40;\n\t\t\t// if player chose YAHTZEE than score is 50.\n\t\t} else if (category == YAHTZEE) {\n\t\t\tscore = 50;\n\t\t\t// if player chose CHANCE score is the sum of numbers on the dice.\n\t\t} else if (category == CHANCE) {\n\t\t\tfor (int i = 0; i < N_DICE; i++) {\n\t\t\t\tscore += diceResults[i];\n\t\t\t}\n\t\t}\n\t\t// finally method will return the score.\n\t\treturn score;\n\t}", "public int stoneGameII(int[] piles) {\n int n = piles.length;\n memo = new int[n][n];\n sums = new int[n];\n sums[n-1] = piles[n-1];\n for(int i = n -2; i>=0;i--) {\n sums[i] = sums[i+1] + piles[i]; //the sum from piles[i] to the end\n }\n int score = helper(0, 1, piles);\n return score;\n }", "public static void calculate(int[] array) {\n\tfor (int i = 0; i > array.length - 1; i++) {\n\t\t// i will be second number\n\t\tfor (int j = i + 1; j < array.length; j++) {\n\n\t\t\t// take a number from array\n\t\t\t// add it to the next\n\t\t\tint sum = array[i] + array[j];\n\n\t\t\tif (sum == 100) {\n\t\t\t\t// i will print those two numbers\n\t\t\t\tSystem.out.println(array[i] + \", \" + array[j]);\n\t\t\t}\n\t\t}\n\n\t}\n}", "public static int smallStraightYahtzee(int... result) {\n\n Arrays.sort(result);\n\n int[] uniqueValues = IntStream.of(result).distinct().sorted().toArray();\n long noUniqVals = IntStream.of(uniqueValues).distinct().count();\n\n int score = 0;\n\n if (noUniqVals >= 4) {\n\n ArrayList<int[]> matchArrays = new ArrayList<>();\n matchArrays.add(new int[] {1, 2, 3, 4});\n matchArrays.add(new int[] {2, 3, 4, 5});\n matchArrays.add(new int[] {3, 4, 5, 6});\n\n ArrayList<int[]> resultSubArrays = new ArrayList<>();\n for (int i = 0; i < noUniqVals - 3; i++) {\n int[] testArr = Arrays.copyOfRange(uniqueValues, i, i + 4);\n resultSubArrays.add(testArr);\n }\n\n for (int[] arr : resultSubArrays) {\n for (int[] match : matchArrays) {\n if (Arrays.equals(arr, match)) {\n score = 30;\n }\n }\n }\n }\n return score;\n }", "public static Integer getScoreFor_RollOnFourOfAKind(Dice dice) \r\n\t{\r\n\t\tlog.debug(\"Inside method getScoreFor_RollOnFourOfAKind\");\r\n\t\t\r\n\t\tInteger score = 0;\r\n\t\t\r\n\t\tMap<Integer, Integer> map = dice.getDiceNumberCountMap();\r\n\t\t\r\n\t\tfor ( Integer diceNumber : map.keySet() )\r\n\t\t{\r\n\t\t\t// if we can find Four of a kind\r\n\t\t\tif ( map.get(diceNumber) >= 4 ) \r\n\t\t\t{\r\n\t\t\t\tscore = diceNumber * 4;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn score;\r\n\t}", "public void ruleOutPos(){\n for(int i=0;i<scores.length;i++) {\n for(int j=0;j<scores[i].length;j++) {\n scores[i][j][13] = 0;//0=pass, >0 is fail, set to pass initially\n\n //check Ns - bit crude - what to discount regions with high N\n double ns = (double) scores[i][j][14] / (double) pLens[j];\n if (ns >= minPb | ns >= minPm)//\n scores[i][j][13] += 4;\n\n //probe\n if (hasProbe){\n if (j == 1 | j == 4) {\n double perc = (double) scores[i][j][0] / (double) primers[j].length();\n if (perc >= minPb) {\n scores[i][j][12] = 1;//flag for failed % test\n scores[i][j][13] += 2;\n }\n }\n }\n //primer\n else {\n //if more than 2 mismatches in 1-4nt at 3'\n if(scores[i][j][11]>max14nt) {\n scores[i][j][13]+=1;\n }\n //use mLen (combined F and R length) initially to find initial candidates - filter later\n double perc=(double)scores[i][j][0]/(double)mLen;\n double percI=(double)scores[i][j][0]/(double)pLens[j];\n\n if(perc>=minPm | percI>=minPmI) {\n scores[i][j][12]=1;//flag for failed % test\n scores[i][j][13]+=2;\n }\n }\n }\n }//end of finding positions that prime loop\n }", "private int calculateScore(ArrayList<HexCell> stack){\n int score = 0;\n for(HexCell current: stack){\n score += current.score;\n }\n return score;\n }", "public static void main(String[] args) {\n\t\tint array[] = { 5, 2, 3, 6, 1 };\n\t\tint total = ((array.length + 1) * (array.length + 2)) / 2;\n\t\tSystem.out.println(total);\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\ttotal -= array[i];\n\t\t}\n\t\tSystem.out.println(\"Missing number=\" + total);\n\t}", "public byte score() {\n\t\tbyte score = 0;\n\t\t\n\t\tfor (byte r = 0; r < b.length; r++) {\n\t\t\tfor (byte c = 0; c < b[r].length; c++) {\n\t\t\t\tif (b[r][c].getSide()) {\n\t\t\t\t\tscore += (b[r][c]).getValue();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse {\n\t\t\t\t\tscore -= (b[r][c]).getValue();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn score;\n\t}", "public static void grade(int size)\n {\n int score = 0;\n for(int i = 0; i<size;i++)\n {\n if(answer[i] == nb1[i] + nb2[i])\n {\n score+=10;\n }\n }\n System.out.println(\"Votre score est \" + score+\"/100\");\n }", "private int computeScore() {\n int score = 0;\n for (int i = 0; i < MainActivity.DEFAULT_SIZE; i++) {\n TextView answerView = (TextView) findViewById(MainActivity.NAME_VIEWS[i]);\n String answer = answerView.getText().toString();\n String solution = getQuizCountries().get(i).getName();\n if (answer.equals(solution)) {\n score++;\n }\n }\n return score;\n }", "public static Integer getScoreFor_RollOnThreeOfAKind(Dice dice) \r\n\t{\r\n\t\tlog.debug(\"Inside method getScoreFor_RollOnThreeOfAKind\");\r\n\t\t\r\n\t\tInteger score = 0;\r\n\t\t\r\n\t\tMap<Integer, Integer> map = dice.getDiceNumberCountMap();\r\n\t\t\r\n\t\tfor ( Integer diceNumber : map.keySet() )\r\n\t\t{\r\n\t\t\t// if we can find three of a kind\r\n\t\t\tif ( map.get(diceNumber) >= 3 ) \r\n\t\t\t{\r\n\t\t\t\tscore = diceNumber * 3;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn score;\r\n\t}", "@Override\n\tprotected int calculateScore() {\n\t\treturn Math.abs(playerScore[0] - playerScore[1]);\n\t}", "public void compareArray(char[] chArray, int[] randArray){\r\n\t\tint x = 0;\r\n\t\tfor(int i = 0; i < 6; i++){\r\n\t\t\t//Compares the elements of the char and integer array\r\n\t\t\t//Char values are subtracted by 48 due to ASCII values being compared\r\n\t\t\tchArray[i] = (char) (chArray[i] - 48);\r\n\t\t\tif(chArray[i] == randArray[i]){\r\n\t\t\t\t//Checks how many elements match\r\n\t\t\t\tx++;\r\n\t\t\t\tif(i == 0 && chArray[i] == randArray[i]){\r\n\t\t\t\t\tmatch1 = true;\r\n\t\t\t\t}\r\n\t\t\t\tif(i == 1 && chArray[i] == randArray[i]){\r\n\t\t\t\t\tmatch2 = true;\r\n\t\t\t\t}\r\n\t\t\t\tif(i == 2 && chArray[i] == randArray[i]){\r\n\t\t\t\t\tmatch3 = true;\r\n\t\t\t\t}\r\n\t\t\t\tif(i == 3 && chArray[i] == randArray[i]){\r\n\t\t\t\t\tmatch4 = true;\r\n\t\t\t\t}\r\n\t\t\t\tif(i == 4 && chArray[i] == randArray[i]){\r\n\t\t\t\t\tmatch5 = true;\r\n\t\t\t\t}\r\n\t\t\t\tif(i == 5 && chArray[i] == randArray[i]){\r\n\t\t\t\t\tmatch6 = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Assigns points according to how many values match\r\n\t\tif(x == 1){\r\n\t\t\tpoints = points + 10;\r\n\t\t\tprintln(\" One value matches \" + \" Points = \" + points + \" (ten points gained)\");\r\n\t\t}\r\n\t\telse if(x == 2){\r\n\t\t\tpoints = points + 100;\r\n\t\t\tprintln(\" Two values match \" + \" Points = \" + points + \" (one hundred points gained)\");\r\n\t\t}\r\n\t\telse if(x == 3){\r\n\t\t\tpoints = points + 1000;\r\n\t\t\tprintln(\" Three value match \" + \" Points = \" + points + \" (one thousand points gained)\");\t\r\n\t\t}\r\n\t\telse if(x == 4){\r\n\t\t\tpoints = points + 10000;\r\n\t\t\tprintln(\" Four values match \" + \" Points = \" + points + \" (ten thousand points gained)\");\t\r\n\t\t}\r\n\t\telse if(x == 5){\r\n\t\t\tpoints = points + 100000;\r\n\t\t\tprintln(\" Five values match \" + \" Points = \" + points + \" (one hundred thousand points gained)\");\t\r\n\t\t}\r\n\t\telse if(x == 6){\r\n\t\t\tpoints = points + 1000000;\r\n\t\t\tprintln(\"ALL SIX VALUES MATCH!!! CONGRATULATIONS!!!\" + \" Points = \" + points + \" (one million points gained)\");\r\n\t\t}else{\r\n\t\t\tpoints = points - 50;\r\n\t\t\tprintln(\" No values match \" + \" Points = \" + points + \" (fifty points lost)\");\r\n\t\t}\r\n\t\tprintln(\"_______________________________________________________________________________________________________________________\");\r\n\t\tprintln();\r\n\t}", "public int getScore(Grid grid) {\n int scoreHolder = 0;\n for (int idx_y = 0; idx_y < Grid.ROWS; idx_y++) { // Iterate the rows\n Set<Integer> seen = new HashSet<>();\n boolean unique = true;\n for (int idx_x = 0; idx_x < Grid.COLUMNS; idx_x++) { // Iterate the columns\n if (grid.isCellEmpty(idx_x, idx_y)) {\n unique = false;\n } else {\n Dice currDice = grid.getDie(idx_x, idx_y);\n if (seen.contains(currDice.getValue())) {\n unique = false;\n } else {\n seen.add(currDice.getValue());\n }\n }\n }\n scoreHolder += (unique) ? this.objValue : 0;\n }\n return scoreHolder;\n }", "@Test\n public void testDiceThrown() {\n testDie(game.diceThrown(), 1, 2);\n game.nextTurn();\n testDie(game.diceThrown(), 1, 2);\n game.nextTurn();\n testDie(game.diceThrown(), 3, 4);\n game.nextTurn();\n testDie(game.diceThrown(), 3, 4);\n game.nextTurn();\n testDie(game.diceThrown(), 5, 6);\n game.nextTurn();\n testDie(game.diceThrown(), 1, 2);\n game.nextTurn();\n\n }", "@Override\n\tpublic int electoralRepReport(int[] data) {\n\t\tfor(int i=0; i < data.length; i++){\n\t\t\trepVotes+= (data[i] - (data[i]*0.02));\n\t\t\tdemVotes+= data[i]*0.02;\n\t\t}\n\t\treturn repVotes;\n\t}", "public static int calculate(List<Roll> rolls) {\n int score = 0;\n if (rolls.isEmpty()) return score;\n\n Roll firstFutureRoll = null;\n Roll secondFutureRoll = null;\n for(int i = rolls.size() - 1; i >= 0; i--) {\n Roll roll = rolls.get(i);\n RollType rollType = rollType(roll);\n score += canCalculateFrame(rollType, firstFutureRoll, secondFutureRoll) ?\n calculateRollForFrame(rollType, roll, firstFutureRoll, secondFutureRoll) : 0;\n\n // Set \"secondFuture roll\" on LAST ROLL so can calculate any strikes in last frame\n secondFutureRoll = rollType.equals(LAST_ROLL) ? roll : firstFutureRoll;\n firstFutureRoll = roll;\n }\n return score;\n }", "public int scoresDp(int[] arr) {\n\n int n = arr.length;\n\n //dp[i][j] : max relative scores between i and j\n int[][] dp = new int[n][n];\n\n // len(1)\n for (int i = 0; i < n; i++)\n dp[i][i] = arr[i - 1];\n // len(2 - n)\n for (int l = 2; l <= n; l++)\n for (int i = 0; i < n; i++) {\n // the right end\n int j = i + l - 1;\n if (j >= n)\n continue;\n dp[i][j] = Math.max(arr[i] - dp[i + 1][j], arr[j] - dp[i][j - 1]);\n }\n return dp[0][n - 1];\n }", "private void diceSum(int dice, int desiredSum) {\r\n\t\tdiceSumHelper(dice, desiredSum, 0, new ArrayList<Integer>());\r\n\t\tSystem.out.println(calls);\r\n\t}", "static void plusMinus(int[] arr) \r\n {\r\n \tint positive=0, negative=0, zeroes=0;\r\n \tList<String> list = new ArrayList<>();\r\n \tfor(int a: arr)\r\n \t{\r\n \t\tif(a>0)\r\n \t\t{\r\n \t\t\tpositive = positive+1;\r\n \t\t}\r\n \t\t\r\n \t\tif(a<0)\r\n \t\t{\r\n \t\t\tnegative = negative+1;\r\n \t\t}\r\n \t\t\r\n \t\telse if(a==0)\r\n \t\t{\r\n \t\t\tzeroes = zeroes+1;\r\n \t\t}\r\n \t}\r\n \t\r\n \tdouble answer = (double)positive/arr.length;\r\n \tlist.add(findResult(answer));\r\n \t\r\n \tanswer = (double)negative/arr.length;\r\n \tlist.add(findResult(answer));\r\n \t\r\n \tanswer = (double)zeroes/arr.length;\r\n \tlist.add(findResult(answer));\r\n \t\r\n \t\r\n \tfor(String d: list)\r\n \t{\r\n \t\tSystem.out.println(d);\r\n \t}\r\n }", "public static int countUniqueCombinationsDP(int score) {\r\n /*\r\n * Return Type of DP array is same as return type of the recursive function\r\n * Dimensions of DP array is the number of non constant parameters to the recursive function\r\n */\r\n \t\r\n \t/*\r\n \t * Fn(s) = Fn(s-7) [if(s>=7)] + Fn(s-3) [if(s>=3)] + Fn(s-2) [if(s>=2)]\r\n\t\t * Fn(0) = 1\r\n\t\t * \r\n * F(11) = F(4) + F(8) + F(9)\r\n */\r\n \tint[][] comb = new int[score + 1][3];\r\n // int[] points = {2,3,7};\r\n \r\n // Halting Conditions\r\n comb[0][0] = 1;\r\n comb[0][1] = 1;\r\n comb[0][2] = 1;\r\n \r\n /*\r\n * Loop goes in the direction opposite to that of the recursion \r\n */\r\n for (int s = 1; s <= score; ++s) {\t\t// s is the score of the recursion\r\n \tfor (int p = 0; p < 3; ++p) {\r\n\t \tint total = 0;\r\n\t if (s >= 2 && p == 0)\r\n\t \ttotal = total + comb[s - 2][0];\r\n\t if (s >= 3 && p <= 1)\r\n\t \ttotal = total + comb[s - 3][1];\r\n\t if (s >= 7)\t\t\t// No need of condition p<=2; as it will always be true\r\n\t \ttotal = total + comb[s - 7][2];\r\n\t comb[s][p] = total;\r\n \t}\r\n }\r\n\r\n return comb[score][0];\r\n }", "public void ss(){\n for (int c=0; c < league.length;c++) {\r\n for (int t=c+1;t<league.length;t++) {\r\n score = league[c].scoregenerator();\r\n secondscore = league[t].scoregenerator();\r\n league[c].pointsfor(score);\r\n league[t].pointsfor(secondscore);\r\n\r\n if (score > secondscore){\r\n league[c].wins();\r\n league[t].losses();\r\n }\r\n else if (score == secondscore){\r\n league[c].ties();\r\n league[t].ties();\r\n }\r\n else {\r\n league[t].wins();\r\n league[c].losses();\r\n }\r\n } \r\n }\r\n for (int c=0; c < AFC.length;c++) {\r\n for (int t=c+1;t<AFC.length;t++) {\r\n score = AFC[c].scoregenerator();\r\n secondscore = AFC[t].scoregenerator();\r\n AFC[c].pointsfor(score);\r\n AFC[t].pointsfor(secondscore);\r\n\r\n if (score > secondscore){\r\n AFC[c].wins();\r\n AFC[t].losses();\r\n }\r\n else if (score == secondscore){\r\n AFC[c].ties();\r\n AFC[t].ties();\r\n }\r\n else {\r\n AFC[t].wins();\r\n AFC[c].losses();\r\n }\r\n } \r\n }\r\n for (int c=0; c < NFC.length;c++) {\r\n for (int t=c+1;t<NFC.length;t++) {\r\n score = NFC[c].scoregenerator();\r\n secondscore = NFC[t].scoregenerator();\r\n NFC[c].pointsfor(score);\r\n NFC[t].pointsfor(secondscore);\r\n\r\n if (score > secondscore){\r\n NFC[c].wins();\r\n NFC[t].losses();\r\n }\r\n else if (score == secondscore){\r\n NFC[c].ties();\r\n NFC[t].ties();\r\n }\r\n else {\r\n NFC[t].wins();\r\n NFC[c].losses();\r\n }\r\n } \r\n }\r\n for (int c=0;c<AFCeast.length;c++) {\r\n for (int t=c+1;t<AFCeast.length;t++) {\r\n score = AFCeast[c].scoregenerator();\r\n secondscore = AFCeast[t].scoregenerator();\r\n AFCeast[c].pointsfor(score);\r\n AFCeast[t].pointsfor(secondscore);\r\n\r\n if (score > secondscore){\r\n AFCeast[c].wins();\r\n AFCeast[t].losses();\r\n }\r\n else if (score == secondscore){\r\n AFCeast[c].ties();\r\n AFCeast[t].ties();\r\n }\r\n else {\r\n AFCeast[t].wins();\r\n AFCeast[c].losses();\r\n }\r\n } \r\n }\r\n for (int c=0; c < AFCnorth.length;c++) {\r\n for (int t=c+1;t<AFCnorth.length;t++) {\r\n score = AFCnorth[c].scoregenerator();\r\n secondscore = AFCnorth[t].scoregenerator();\r\n AFCnorth[c].pointsfor(score);\r\n AFCnorth[t].pointsfor(secondscore);\r\n\r\n if (score > secondscore){\r\n AFCnorth[c].wins();\r\n AFCnorth[t].losses();\r\n }\r\n else if (score == secondscore){\r\n AFCnorth[c].ties();\r\n AFCnorth[t].ties();\r\n }\r\n else {\r\n AFCnorth[t].wins();\r\n AFCnorth[c].losses();\r\n }\r\n } \r\n }\r\n for (int c=0; c < AFCsouth.length;c++) {\r\n for (int t=c+1;t<AFCsouth.length;t++) {\r\n score = AFCsouth[c].scoregenerator();\r\n secondscore = AFCsouth[t].scoregenerator();\r\n AFCsouth[c].pointsfor(score);\r\n AFCsouth[t].pointsfor(secondscore);\r\n\r\n if (score > secondscore){\r\n AFCsouth[c].wins();\r\n AFCsouth[t].losses();\r\n }\r\n else if (score == secondscore){\r\n AFCsouth[c].ties();\r\n AFCsouth[t].ties();\r\n }\r\n else {\r\n AFCsouth[t].wins();\r\n AFCsouth[c].losses();\r\n }\r\n } \r\n }\r\n for (int c=0; c < AFCwest.length;c++) {\r\n for (int t=c+1;t<AFCwest.length;t++) {\r\n score = AFCwest[c].scoregenerator();\r\n secondscore = AFCwest[t].scoregenerator();\r\n AFCwest[c].pointsfor(score);\r\n AFCwest[t].pointsfor(secondscore);\r\n\r\n if (score > secondscore){\r\n AFCwest[c].wins();\r\n AFCwest[t].losses();\r\n }\r\n else if (score == secondscore){\r\n AFCwest[c].ties();\r\n AFCwest[t].ties();\r\n }\r\n else {\r\n AFCwest[t].wins();\r\n AFCwest[c].losses();\r\n }\r\n } \r\n }\r\n for (int c=0; c < NFCeast.length;c++) {\r\n for (int t=c+1;t<NFCeast.length;t++) {\r\n score = NFCeast[c].scoregenerator();\r\n secondscore = NFCeast[t].scoregenerator();\r\n NFCeast[c].pointsfor(score);\r\n NFCeast[t].pointsfor(secondscore);\r\n\r\n if (score > secondscore){\r\n NFCeast[c].wins();\r\n NFCeast[t].losses();\r\n }\r\n else if (score == secondscore){\r\n NFCeast[c].ties();\r\n NFCeast[t].ties();\r\n }\r\n else {\r\n NFCeast[t].wins();\r\n NFCeast[c].losses();\r\n }\r\n } \r\n }\r\n for (int c=0; c < NFCnorth.length;c++) {\r\n for (int t=c+1;t<NFCnorth.length;t++) {\r\n score = NFCnorth[c].scoregenerator();\r\n secondscore = NFCnorth[t].scoregenerator();\r\n NFCnorth[c].pointsfor(score);\r\n NFCnorth[t].pointsfor(secondscore);\r\n\r\n if (score > secondscore){\r\n NFCnorth[c].wins();\r\n NFCnorth[t].losses();\r\n }\r\n else if (score == secondscore){\r\n NFCnorth[c].ties();\r\n NFCnorth[t].ties();\r\n }\r\n else {\r\n NFCnorth[t].wins();\r\n NFCnorth[c].losses();\r\n }\r\n } \r\n }\r\n for (int c=0; c < NFCsouth.length;c++) {\r\n for (int t=c+1;t<NFCsouth.length;t++) {\r\n score = NFCsouth[c].scoregenerator();\r\n secondscore = NFCsouth[t].scoregenerator();\r\n NFCsouth[c].pointsfor(score);\r\n NFCsouth[t].pointsfor(secondscore);\r\n\r\n if (score > secondscore){\r\n NFCsouth[c].wins();\r\n NFCsouth[t].losses();\r\n }\r\n else if (score == secondscore){\r\n NFCsouth[c].ties();\r\n NFCsouth[t].ties();\r\n }\r\n else {\r\n NFCsouth[t].wins();\r\n NFCsouth[c].losses();\r\n }\r\n } \r\n }\r\n for (int c=0; c < NFCwest.length;c++) {\r\n for (int t=c+1;t<NFCwest.length;t++) {\r\n score = NFCwest[c].scoregenerator();\r\n secondscore = NFCwest[t].scoregenerator();\r\n NFCwest[c].pointsfor(score);\r\n NFCwest[t].pointsfor(secondscore);\r\n\r\n if (score > secondscore){\r\n NFCwest[c].wins();\r\n NFCwest[t].losses();\r\n }\r\n else if (score == secondscore){\r\n NFCwest[c].ties();\r\n NFCwest[t].ties();\r\n }\r\n else {\r\n NFCwest[t].wins();\r\n NFCwest[c].losses();\r\n }\r\n } \r\n }\r\n\r\n for (int c=0;c<league.length;c++){\r\n System.out.println(league[c]);\r\n }\r\n System.out.println(\"...\");\r\n try\r\n {\r\n Thread.sleep(3000);\r\n }\r\n catch (Exception e)\r\n {}\r\n System.out.println(\"\\n\" + \"Now let the playoffs begin!\" + \"\\n\");\r\n\r\n for (int y=0;y<4;y++){ // These next groups of code are sorting each division, and each conference based on wins\r\n for (int p=0;p<3;p++) {\r\n int a = p+1;\r\n if (AFCeast[a].displaywins() > AFCeast[p].displaywins()){\r\n Temp = AFCeast[p];\r\n AFCeast[p] = AFCeast[a];\r\n AFCeast[a] = Temp;\r\n }\r\n else if (AFCeast[a].displaywins() == AFCeast[p].displaywins() && AFCeast[a].displaypf() > AFCeast[p].displaypf()){\r\n Temp = league[p];\r\n league[p] = league[a];\r\n league[a] = Temp;\r\n }\r\n\r\n }\r\n }\r\n // System.out.println(AFCeast[0]);\r\n\r\n afcplayoff[0] = AFCeast[0];\r\n // System.out.println(afcplayoff[0]);\r\n for (int y=0;y<4;y++){\r\n for (int p=0;p<3;p++) {\r\n int a = p+1;\r\n if (AFCnorth[a].displaywins() > AFCnorth[p].displaywins()){\r\n Temp = AFCnorth[p];\r\n AFCnorth[p] = AFCnorth[a];\r\n AFCnorth[a] = Temp;\r\n }\r\n else if (AFCnorth[a].displaywins() == AFCnorth[p].displaywins() && AFCnorth[a].displaypf() > AFCnorth[p].displaypf()){\r\n Temp = league[p];\r\n league[p] = league[a];\r\n league[a] = Temp;\r\n }\r\n\r\n }\r\n }\r\n\r\n afcplayoff[1] = AFCnorth[0];\r\n for (int y=0;y<4;y++){\r\n for (int p=0;p<3;p++) {\r\n int a = p+1;\r\n if (AFCsouth[a].displaywins() > AFCsouth[p].displaywins()){\r\n Temp = AFCsouth[p];\r\n AFCsouth[p] = AFCsouth[a];\r\n AFCsouth[a] = Temp;\r\n }\r\n else if (AFCsouth[a].displaywins() == AFCsouth[p].displaywins() && AFCsouth[a].displaypf() > AFCsouth[p].displaypf()){\r\n Temp = league[p];\r\n league[p] = league[a];\r\n league[a] = Temp;\r\n }\r\n\r\n }\r\n }\r\n\r\n afcplayoff[2] = AFCsouth[0];\r\n for (int y=0;y<4;y++){\r\n for (int p=0;p<3;p++) {\r\n int a = p+1;\r\n if (AFCwest[a].displaywins() > AFCwest[p].displaywins()){\r\n Temp = AFCwest[p];\r\n AFCwest[p] = AFCwest[a];\r\n AFCwest[a] = Temp;\r\n }\r\n else if (AFCwest[a].displaywins() == AFCwest[p].displaywins() && AFCwest[a].displaypf() > AFCwest[p].displaypf()){\r\n Temp = league[p];\r\n league[p] = league[a];\r\n league[a] = Temp;\r\n }\r\n\r\n }\r\n }\r\n\r\n afcplayoff[3] = AFCwest[0];\r\n for (int y=0;y<4;y++){\r\n for (int p=0;p<3;p++) {\r\n int a = p+1;\r\n if (NFCeast[a].displaywins() > NFCeast[p].displaywins()){\r\n Temp = NFCeast[p];\r\n NFCeast[p] = NFCeast[a];\r\n NFCeast[a] = Temp;\r\n }\r\n else if (NFCeast[a].displaywins() == NFCeast[p].displaywins() && NFCeast[a].displaypf() > NFCeast[p].displaypf()){\r\n Temp = league[p];\r\n league[p] = league[a];\r\n league[a] = Temp;\r\n }\r\n\r\n }\r\n }\r\n nfcplayoff[0] = NFCeast[0];\r\n for (int y=0;y<4;y++){\r\n for (int p=0;p<3;p++) {\r\n int a = p+1;\r\n if (NFCnorth[a].displaywins() > NFCnorth[p].displaywins()){\r\n Temp = NFCnorth[p];\r\n NFCnorth[p] = NFCnorth[a];\r\n NFCnorth[a] = Temp;\r\n }\r\n else if (NFCnorth[a].displaywins() == NFCnorth[p].displaywins() && NFCnorth[a].displaypf() > NFCnorth[p].displaypf()){\r\n Temp = league[p];\r\n league[p] = league[a];\r\n league[a] = Temp;\r\n }\r\n\r\n }\r\n }\r\n nfcplayoff[1] = NFCnorth[0];\r\n for (int y=0;y<4;y++){\r\n for (int p=0;p<3;p++) {\r\n int a = p+1;\r\n if (NFCsouth[a].displaywins() > NFCsouth[p].displaywins()){\r\n Temp = NFCsouth[p];\r\n NFCsouth[p] = NFCsouth[a];\r\n NFCsouth[a] = Temp;\r\n }\r\n else if (NFCsouth[a].displaywins() == NFCsouth[p].displaywins() && NFCsouth[a].displaypf() > NFCsouth[p].displaypf()){\r\n Temp = league[p];\r\n league[p] = league[a];\r\n league[a] = Temp;\r\n }\r\n\r\n }\r\n }\r\n nfcplayoff[2] = NFCsouth[0];\r\n for (int y=0;y<4;y++){\r\n for (int p=0;p<3;p++) {\r\n int a = p+1;\r\n if (NFCwest[a].displaywins() > NFCwest[p].displaywins()){\r\n Temp = NFCwest[p];\r\n NFCwest[p] = NFCwest[a];\r\n NFCwest[a] = Temp;\r\n }\r\n else if (NFCwest[a].displaywins() == NFCwest[p].displaywins() && NFCwest[a].displaypf() > NFCwest[p].displaypf()){\r\n Temp = league[p];\r\n league[p] = league[a];\r\n league[a] = Temp;\r\n }\r\n\r\n }\r\n }\r\n nfcplayoff[3] = NFCwest[0];\r\n for (int y=0;y<16;y++){\r\n for (int p=0;p<15;p++) {\r\n int a = p+1;\r\n if (AFC[a].displaywins() > AFC[p].displaywins()){\r\n Temp = AFC[p];\r\n AFC[p] = AFC[a];\r\n AFC[a] = Temp;\r\n }\r\n else if (AFC[a].displaywins() == AFC[p].displaywins() && AFC[a].displaypf() > AFC[p].displaypf()){\r\n Temp = AFC[p];\r\n AFC[p] = AFC[a];\r\n AFC[a] = Temp;\r\n }\r\n\r\n }\r\n }\r\n for (int y=0;y<16;y++){\r\n for (int p=0;p<15;p++) {\r\n int a = p+1;\r\n if (NFC[a].displaywins() > NFC[p].displaywins()){\r\n Temp = NFC[p];\r\n NFC[p] = NFC[a];\r\n NFC[a] = Temp;\r\n }\r\n else if (NFC[a].displaywins() == NFC[p].displaywins() && NFC[a].displaypf() > NFC[p].displaypf()){\r\n Temp = NFC[p];\r\n NFC[p] = NFC[a];\r\n NFC[a] = Temp;\r\n }\r\n\r\n }\r\n }\r\n\r\n int maxw=0;\r\n\r\n for (int x=0;x<AFC.length;x++){\r\n\r\n if ((AFC[x].displaywins() > maxw) && \r\n (AFC[x].getName() != afcplayoff[0].getName()) && \r\n (AFC[x].getName() != afcplayoff[1].getName()) && \r\n (AFC[x].getName() != afcplayoff[2].getName()) && \r\n (AFC[x].getName() != afcplayoff[3].getName()) && \r\n (AFC[x].getName() != afcplayoff[4].getName()) && \r\n (AFC[x].getName() != afcplayoff[5].getName())){\r\n maxw = AFC[x].displaywins();\r\n afcplayoff[4] = AFC[x]; \r\n }\r\n\r\n }\r\n\r\n maxw=0;\r\n for (int x=0;x<AFC.length;x++){\r\n\r\n if (AFC[x].displaywins() > maxw && \r\n AFC[x].getName() != afcplayoff[0].getName() && \r\n AFC[x].getName() != afcplayoff[1].getName() && \r\n AFC[x].getName() != afcplayoff[2].getName() && \r\n AFC[x].getName() != afcplayoff[3].getName() && \r\n AFC[x].getName() != afcplayoff[4].getName() && \r\n AFC[x].getName() != afcplayoff[5].getName()){\r\n maxw = AFC[x].displaywins();\r\n afcplayoff[5] = AFC[x]; \r\n }\r\n }\r\n\r\n maxw=0;\r\n for (int x=0;x<NFC.length;x++){\r\n if (NFC[x].displaywins() > maxw && \r\n NFC[x].getName() != nfcplayoff[0].getName() && \r\n NFC[x].getName() != nfcplayoff[1].getName() && \r\n NFC[x].getName() != nfcplayoff[2].getName() && \r\n NFC[x].getName() != nfcplayoff[3].getName() && \r\n NFC[x].getName() != nfcplayoff[4].getName() && \r\n NFC[x].getName() != nfcplayoff[5].getName()){\r\n maxw = NFC[x].displaywins();\r\n nfcplayoff[4] = NFC[x]; \r\n }\r\n }\r\n maxw=0;\r\n for (int x=0;x<NFC.length;x++){\r\n\r\n if (NFC[x].displaywins() > maxw && \r\n NFC[x].getName() != nfcplayoff[0].getName() && \r\n NFC[x].getName() != nfcplayoff[1].getName() && \r\n NFC[x].getName() != nfcplayoff[2].getName() && \r\n NFC[x].getName() != nfcplayoff[3].getName() && \r\n NFC[x].getName() != nfcplayoff[4].getName() && \r\n NFC[x].getName() != nfcplayoff[5].getName()){\r\n maxw = NFC[x].displaywins();\r\n nfcplayoff[5] = NFC[x]; \r\n }\r\n }\r\n\r\n for (int y=0;y<4;y++){\r\n for (int p=0;p<3;p++) {\r\n int a = p+1;\r\n if (afcplayoff[a].displaywins() > afcplayoff[p].displaywins()){\r\n Temp = afcplayoff[p];\r\n afcplayoff[p] = afcplayoff[a];\r\n afcplayoff[a] = Temp;\r\n }\r\n else if (afcplayoff[a].displaywins() == afcplayoff[p].displaywins() && afcplayoff[a].displaypf() > afcplayoff[p].displaypf()){\r\n Temp = afcplayoff[p];\r\n afcplayoff[p] = afcplayoff[a];\r\n afcplayoff[a] = Temp;\r\n }\r\n\r\n }\r\n }\r\n for (int c=0;c<afcplayoff.length;c++){ // Testing to see if users team made the playoffs.\r\n if(YourTeam.getName().equals(afcplayoff[c].getName()))\r\n afcplayofft = true;\r\n }\r\n\r\n for (int y=0;y<4;y++){\r\n for (int r=0;r<3;r++) {\r\n int c = r+1;\r\n if (nfcplayoff[c].displaywins() > nfcplayoff[r].displaywins()){\r\n Temp = nfcplayoff[r];\r\n nfcplayoff[r] = nfcplayoff[c];\r\n nfcplayoff[c] = Temp;\r\n }\r\n else if (nfcplayoff[c].displaywins() == nfcplayoff[r].displaywins() && nfcplayoff[c].displaypf() > nfcplayoff[r].displaypf()){\r\n Temp = nfcplayoff[r];\r\n nfcplayoff[r] = nfcplayoff[c];\r\n nfcplayoff[c] = Temp;\r\n }\r\n\r\n }\r\n }\r\n for (int c=0;c<nfcplayoff.length;c++){\r\n if(YourTeam.getName().equals(nfcplayoff[c].getName()))\r\n nfcplayofft = true;\r\n }\r\n // This shows how the playoffs will look like to the user\r\n System.out.println(\"...\" + \"\\n\" + \"Based on the regular season, here is what the first round of playoffs will look like:\" + \"\\n\");\r\n try\r\n {\r\n Thread.sleep(3000);\r\n }\r\n catch (Exception e)\r\n {}\r\n System.out.println(afcplayoff[0].getName() + \" got a bye in the first round of the playoffs for placing first in the afc.\");\r\n System.out.println(afcplayoff[1].getName() + \" also got a bye in the first round of the playoffs for placing second in the afc.\" + \"\\n\");\r\n System.out.println(nfcplayoff[0].getName() + \" got a bye in the first round of the playoffs for placing first in the nfc.\");\r\n System.out.println(nfcplayoff[1].getName() + \" also got a bye in the first round of the playoffs for placing second in the nfc.\" + \"\\n\");\r\n\r\n System.out.println(afcplayoff[2].getName());\r\n System.out.println(\" \\\\-----\\\\\");\r\n System.out.println(\" ) Winner moves on to play the \" + afcplayoff[0].getName());\r\n System.out.println(\" /-----/\");\r\n System.out.println(afcplayoff[5].getName() + \"\\n\");\r\n\r\n System.out.println(afcplayoff[3].getName());\r\n System.out.println(\" \\\\-----\\\\\");\r\n System.out.println(\" ) Winner moves onto play the \"+ afcplayoff[1].getName());\r\n System.out.println(\" /-----/\");\r\n System.out.println(afcplayoff[4].getName() + \"\\n\");\r\n\r\n System.out.println(nfcplayoff[2].getName());\r\n System.out.println(\" \\\\-----\\\\\");\r\n System.out.println(\" ) Winner moves onto play the \"+ nfcplayoff[0].getName());\r\n System.out.println(\" /-----/\");\r\n System.out.println(nfcplayoff[5].getName() + \"\\n\");\r\n\r\n System.out.println(nfcplayoff[3].getName());\r\n System.out.println(\" \\\\-----\\\\\");\r\n System.out.println(\" ) Winner moves onto play the \"+ nfcplayoff[1].getName());\r\n System.out.println(\" /-----/\");\r\n System.out.println(nfcplayoff[4].getName() + \"\\n\");\r\n\r\n System.out.println(\"...\"+ \"\\n\");\r\n\r\n try\r\n {\r\n Thread.sleep(3000);\r\n }\r\n catch (Exception e)\r\n\r\n {}\r\n }", "private boolean checkCaTegoryLegitness(int[] dice, int category) {\n\t\t// our boolean that is false at the beginning.\n\t\tboolean legitnessStatus = false;\n\t\t// we don't need to check anything for one to six or for check so\n\t\t// boolean\n\t\t// will be true. we don't need to check for one to six because if player\n\t\t// chose one to six we score++ every time we get that number\n\t\t// in the dice. and if there is no that number than the score\n\t\t// automatically will be 0.\n\t\tif (category >= 1 && category <= 6 || category == CHANCE) {\n\t\t\tlegitnessStatus = true;\n\t\t} else {\n\t\t\t// but if player chose something other than one to six or chance we\n\t\t\t// make 6 array lists.\n\t\t\tArrayList<Integer> ones = new ArrayList<Integer>();\n\t\t\tArrayList<Integer> twos = new ArrayList<Integer>();\n\t\t\tArrayList<Integer> threes = new ArrayList<Integer>();\n\t\t\tArrayList<Integer> fours = new ArrayList<Integer>();\n\t\t\tArrayList<Integer> fives = new ArrayList<Integer>();\n\t\t\tArrayList<Integer> sixes = new ArrayList<Integer>();\n\t\t\t// after that we get ones, twos and etc. until six from the dice\n\t\t\t// numbers we randomly got and add that numbers in the array it\n\t\t\t// belongs. for example if the integer on first dice is 5 we add 1\n\t\t\t// in array list called fives. finally, arrays size will give us how\n\t\t\t// many that number we have in our dices.\n\t\t\tfor (int i = 0; i < N_DICE; i++) {\n\t\t\t\tif (dice[i] == 1) {\n\t\t\t\t\tones.add(1);\n\t\t\t\t} else if (dice[i] == 2) {\n\t\t\t\t\ttwos.add(1);\n\t\t\t\t} else if (dice[i] == 3) {\n\t\t\t\t\tthrees.add(1);\n\t\t\t\t} else if (dice[i] == 4) {\n\t\t\t\t\tfours.add(1);\n\t\t\t\t} else if (dice[i] == 5) {\n\t\t\t\t\tfives.add(1);\n\t\t\t\t} else if (dice[i] == 6) {\n\t\t\t\t\tsixes.add(1);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// after we know how many ones, twos etc. we have its easy to check.\n\t\t\t// for THREE_OF_A_KIND if there is any of the arrays that size is\n\t\t\t// equal or more than 3 legitnessStatus should get true.\n\t\t\tif (category == THREE_OF_A_KIND) {\n\t\t\t\tif (ones.size() >= 3 || twos.size() >= 3 || threes.size() >= 3\n\t\t\t\t\t\t|| fours.size() >= 3 || fives.size() >= 3\n\t\t\t\t\t\t|| sixes.size() >= 3) {\n\t\t\t\t\tlegitnessStatus = true;\n\t\t\t\t}\n\t\t\t\t// for FOUR_OF_A_KIND if there is any of the arrays that size is\n\t\t\t\t// equal or more than 4 legitnessStatus should get true.\n\t\t\t} else if (category == FOUR_OF_A_KIND) {\n\t\t\t\tif (ones.size() >= 4 || twos.size() >= 4 || threes.size() >= 4\n\t\t\t\t\t\t|| fours.size() >= 4 || fives.size() >= 4\n\t\t\t\t\t\t|| sixes.size() >= 4) {\n\t\t\t\t\tlegitnessStatus = true;\n\t\t\t\t}\n\t\t\t\t// for FULL_HOUSE we want any of our array list size to be equal\n\t\t\t\t// to three and after that we have that we want one more array\n\t\t\t\t// to be\n\t\t\t\t// equal to two. that means that we will have three similar dice\n\t\t\t\t// and two more similar dice.\n\t\t\t} else if (category == FULL_HOUSE) {\n\t\t\t\tif (ones.size() == 3 || twos.size() == 3 || threes.size() == 3\n\t\t\t\t\t\t|| fours.size() == 3 || fives.size() == 3\n\t\t\t\t\t\t|| sixes.size() == 3) {\n\t\t\t\t\tif (ones.size() == 2 || twos.size() == 2\n\t\t\t\t\t\t\t|| threes.size() == 2 || fours.size() == 2\n\t\t\t\t\t\t\t|| fives.size() == 2 || sixes.size() == 2) {\n\t\t\t\t\t\tlegitnessStatus = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// there is only 3 way we can get SMALL_STRAIGHT. these are if\n\t\t\t\t// dices show: 1,2,3,4 or 2,3,4,5, or 3,4,5,6. for first one it\n\t\t\t\t// means we need our first array size to be one AND our second\n\t\t\t\t// array size to be one AND our third array size to be one AND\n\t\t\t\t// out fourth array list size to be one. and so on for other two\n\t\t\t\t// ways.\n\t\t\t} else if (category == SMALL_STRAIGHT) {\n\t\t\t\tif (ones.size() == 1 && twos.size() == 1 && threes.size() == 1\n\t\t\t\t\t\t&& fours.size() == 1) {\n\t\t\t\t\tlegitnessStatus = true;\n\t\t\t\t} else if (twos.size() == 1 && threes.size() == 1\n\t\t\t\t\t\t&& fours.size() == 1 && fives.size() == 1) {\n\t\t\t\t\tlegitnessStatus = true;\n\t\t\t\t} else if (threes.size() == 1 && fours.size() == 1\n\t\t\t\t\t\t&& fives.size() == 1 && sixes.size() == 1) {\n\t\t\t\t\tlegitnessStatus = true;\n\t\t\t\t}\n\t\t\t\t// for LARGE_STRAIGHT there is only 2 ways. these are:1,2,3,4,5\n\t\t\t\t// or 2,3,4,5,6. for first one it\n\t\t\t\t// means we need our first array size to be one AND our second\n\t\t\t\t// array size to be one AND our third array size to be one AND\n\t\t\t\t// out fourth array list size to be one AND our fifth array list\n\t\t\t\t// size to be one. similar for second way starting from second\n\t\t\t\t// array list and going through to last sixth array list.\n\t\t\t} else if (category == LARGE_STRAIGHT) {\n\t\t\t\tif (ones.size() == 1 && twos.size() == 1 && threes.size() == 1\n\t\t\t\t\t\t&& fours.size() == 1 && fives.size() == 1) {\n\t\t\t\t\tlegitnessStatus = true;\n\t\t\t\t} else if (twos.size() == 1 && threes.size() == 1\n\t\t\t\t\t\t&& fours.size() == 1 && fives.size() == 1\n\t\t\t\t\t\t&& sixes.size() == 1) {\n\t\t\t\t\tlegitnessStatus = true;\n\t\t\t\t}\n\t\t\t\t// and for YAHTZEE we want any of our array list size to be\n\t\t\t\t// five. it will mean that all dices show same thing. because if\n\t\t\t\t// for example array list ones size is five it means that we\n\t\t\t\t// added 1 in that array 5 times and it means that we see 5 same\n\t\t\t\t// number on all dices.\n\t\t\t} else if (category == YAHTZEE) {\n\t\t\t\tif (ones.size() == 5 || twos.size() == 5 || threes.size() == 5\n\t\t\t\t\t\t|| fours.size() == 5 || fives.size() == 5\n\t\t\t\t\t\t|| sixes.size() == 5) {\n\t\t\t\t\tlegitnessStatus = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// finally it will return boolean of true or false.\n\t\treturn legitnessStatus;\n\t}", "private void sortDice() {\r\n for (int index = 0; index < dice.size(); index++) {\r\n for (int subIndex = index; subIndex < dice.size(); subIndex++) {\r\n if (dice.get(subIndex).compareTo((dice.get(index))) > 0) {\r\n final Integer temp = dice.get(index);\r\n dice.set(index, dice.get(subIndex));\r\n dice.set(subIndex, temp);\r\n }\r\n }\r\n }\r\n }", "public void setDiceArray(ArrayList<Dice> DA)\n {\n this.diceArray = DA;\n }", "public void throwDices(int[] details) throws RemoteException {\n sd.getGames().get(details[0]).playRound();\n }", "@Override\n public int getScore(SchemaCard schema) {\n int score = 0;\n for (int i = 0; i < SchemaCard.NUMBER_OF_ROWS; i++) {\n for (int j = 0; j < SchemaCard.NUMBER_OF_COLUMNS; j++) {\n Dice dice = schema.getDice(new Position(i, j));\n if(dice != null && dice.getColorConstraint().equals(colorConstraint)) {\n score += dice.getNumber();\n }\n }\n }\n return score;\n }", "public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n float[] score = new float[7];\n\n System.out.println(\"Enter score for judge 1:\");\n score [0] = input.nextFloat();\n System.out.println(\"Enter score for judge 2:\");\n score [1] = input.nextFloat();\n System.out.println(\"Enter score for judge 3:\");\n score [2] = input.nextFloat();\n System.out.println(\"Enter score for judge 4:\");\n score [3] = input.nextFloat();\n System.out.println(\"Enter score for judge 5:\");\n score [4] = input.nextFloat();\n System.out.println(\"Enter score for judge 6:\");\n score [5] = input.nextFloat();\n System.out.println(\"Enter score for judge 7:\");\n score [6] = input.nextFloat();\n System.out.println(\"Enter difficulty:\");\n float difficulty = input.nextFloat();\n\n float max = 0;\n float min = 0;\n\n Arrays.sort(score);\n\n float totalScore = ((score[1] + score[2] + score[3] + score[4] + score[5]) * difficulty * 0.6f);\n\n System.out.println(\"Total: \" + totalScore);\n }", "public int calculScore(Deck deck)\n {\n return 0;\n }", "public static void main(String[] args) {\n Scanner input = new Scanner(System.in);//declare scanner and have it accenpt user input\n System.out.println(\"Enter in 15 student grades.\");//prompt user to enter 15 grades\n int[] Grades = new int[15];//create single dimensional array\n int grade1 = 0;//start at zero\n int grade2 = 0;//start at zero\n for(int i = 0; i<15; i++){//begin outer for loop\n Boolean isGood = false;//declare boolean\n do{\n Grades[i] = input.nextInt();//the grade is equal to the integer entered by the user\n while(Grades[i]>100){//condition mmust be satisfied or will print error\n System.out.println(\"The Integer you input was over 100!\");\n Grades[i] = input.nextInt();//Prompt again for user input\n }\n while(Grades[i]<0){//condition mmust be satisfied or will print error\n System.out.println(\"The Integer you input was under 0!\");\n Grades[i] = input.nextInt();//Prompt again for user input\n }if(i != 0){\n while(Grades[i]<= Grades[i-1]){//condition mmust be satisfied or will print error\n System.out.println(\"The Integer you input was not greater than the last!\");\n Grades[i] = input.nextInt();//Prompt again for user input\n }\n }else{\n isGood = true;\n }\n \n }while(Grades[i]>100 || Grades[i]<0 && isGood);//begin while loop for set conditions\n }\n for(int x = 0; x<15; x++){\n System.out.print(Grades[x] + \" \");\n }\n System.out.println(\"Enter a grade to search for\");\n grade1 = input.nextInt();//Enter the grade you are searching for\n BinarySearch(Grades, grade1);\n \n System.out.println(\"Scrambled\");//notify when the array has been scrambled\n if(ScrambleArray(Grades)){\n System.out.println(\"Scrambled\");\n }\n System.out.println(\"Enter a grade to search for\");\n grade2 = input.nextInt();//Enter the grade you are searching for\n int indexForLinear = LinearSearch(Grades, grade2);\n if(indexForLinear == -1){\n System.out.println(grade2 + \" was not found in \" + indexForLinear + \" iterations\");//print number of iterations it took\n }\n if(indexForLinear != -1){\n System.out.println(grade2 + \" was found in \" + indexForLinear + \" iterations\");//print number of iterations it took\n }\n }", "private static int[] climbingLeaderboard(int[] scores, int[] alice) {\n\n int[] result = new int[alice.length];\n for (int x = 0; x < alice.length; x++) {\n result[x] = insert(Arrays.stream(scores).distinct().toArray(), alice[x]);\n }\n return result;\n }", "public void calculateThreeOfAKind(Die[] dice) {\n for (int i = 0; i < 6; i++) {\n if (this.numOfOccurances(dice, i) >= 3) {\n this.threeOfAKind = this.diceSum(dice);\n //System.out.println(\"you have gotten a three of a kind\");\n return;\n }\n }\n this.threeOfAKind = 0;\n return;\n }", "private void otherRolls() {\n\t\t// program tells that player should select dices to re-roll.\n\t\tdisplay.printMessage(\"Select the dice you wish to re-roll and click \"\n\t\t\t\t+ '\\\"' + \"Roll Again\" + '\\\"');\n\t\t// program will wait until player clicks \"roll again\" button.\n\t\tdisplay.waitForPlayerToSelectDice();\n\t\t// we randomly get six integers, from one to six, and we do it N_DICE\n\t\t// times and every time we write our random integer in the array.\n\t\tfor (int i = 0; i < N_DICE; i++) {\n\t\t\tif (display.isDieSelected(i) == true) {\n\t\t\t\tint dice = rgen.nextInt(1, 6);\n\t\t\t\tdiceResults[i] = dice;\n\t\t\t}\n\t\t}\n\t\t// program will display dice, that depends on our randomly taken\n\t\t// integers.\n\t\tdisplay.displayDice(diceResults);\n\t}", "public static int[] mucScore(LeanDocument key, LeanDocument response)\n{\n // System.out.println(\"==========================================================\");\n // System.out.println(\"Key:\\n\"+key.toStringNoSing()+\"\\n*************************\\nResponse:\\n\"+response.toStringNoSing());\n\n Iterator<TreeMap<Integer, Integer>> goldChains = key.chainIterator();\n // double mucRecall = 0.0;\n int mucRecallNom = 0;\n int mucRecallDenom = 0;\n while (goldChains.hasNext()) {\n TreeMap<Integer, Integer> keyChain = goldChains.next();\n if (keyChain.size() > 1) {\n int numInt = numIntersect(key, keyChain, response);\n\n // int numMatched = getNumMatched(key, keyChain);\n // if(numMatched>0){\n // mucRecallNom += numMatched-numInt;\n mucRecallNom += (keyChain.size() - numInt);\n // mucRecallDenom += numMatched-1;\n mucRecallDenom += keyChain.size() - 1;\n\n // System.out.println(keyChain+\"\\n\"+(keyChain.size() - numInt)+\"/\"+(keyChain.size()-1));\n // }\n }\n }\n int[] result = { mucRecallNom, mucRecallDenom };\n\n return result;\n}", "public TestScores(int[] testScores) {\n this.testScores = testScores;\n }", "public int[] compareDice(Dice defender) {\r\n final int[] loss = new int[]{0, 0}; // attackers, defenders\r\n //Sets number of dice to the size of the team with the least units\r\n final int numberOfDice = defender.getSize() <= getSize()\r\n ? defender.getSize()\r\n : getSize();\r\n //Determines which team loses units when comparing dice\r\n for (int roll = 0; roll < numberOfDice; roll++) {\r\n if (defender.get(roll).compareTo(get(roll)) >= 0) {\r\n loss[0]++;\r\n } else {\r\n loss[1]++;\r\n }\r\n }\r\n return loss;\r\n }", "public final int getPointsByPlayerId(final int playerId) {\n for (final Score score : this.scoreArray) {\n if (score.getPlayerId() == playerId) {\n return score.getPoints();\n }\n }\n\n return 0;\n }", "public int candy(int[] ratings) {\n int prev = 1;\n int total = prev;\n int prevId = 0;\n for (int i = 1; i < ratings.length; ++i) {\n if (ratings[i] > ratings[i-1]) {\n int cur = prev + 1;\n total += cur;\n prev = cur;\n prevId = i;\n } else if (ratings[i] == ratings[i-1]) {\n total += 1;\n prev = 1;\n prevId = i;\n } else if (i == ratings.length - 1 || ratings[i] <= ratings[i + 1]) {\n total += (i - prevId + 1) * (i - prevId) / 2;\n int prevUpdated = Math.max(prev, 1 + i - prevId);\n total += prevUpdated - prev;\n prev = 1;\n prevId = i;\n }\n }\n return total;\n }", "public static double getAveg(int[] scores) {\r\n\t\r\n\t\tint sum = 0;\r\n\t\tfor (int i = 0; i < scores.length; ++i) {\r\n\t\t\tsum += scores[i];\r\n\t\t}\r\n\t\t\r\n\t\treturn ((double)(sum))/(scores.length);\r\n\t\r\n\t}", "@Test\r\n\tpublic void fromNumGradeTest(){\r\n\t\tint[] testNumGrade = { -1, 0, 34,36,41,42,45,47,51,53,55,58,60,63,65,68,71,74,77, 100 };\r\n\t\tint expectedValue = 20;\r\n\t\tfor(int i=0;i<testNumGrade.length;i++){\r\n\t\t\tassertEquals(expectedValue,PointGrade.fromNumGrade(testNumGrade[i]).getPoints());\r\n\t\t\texpectedValue--;\r\n\t\t}\r\n\t}", "public int score() {\n int sum = 0;\n for (Candidate c : chosen) {\n sum += c.score(compatibilityScoreSet);\n }\n return sum;\n }", "public static int tower(int... result) {\n\n int score = nSame(4, 6, result);\n int firstMatch = score/4;\n\n result = IntStream.of(result).filter(val -> val != firstMatch).toArray();\n score = nSame(2, 6, result);\n int secondMatch = score/2;\n\n if (firstMatch*secondMatch > 0) {\n score = 4*firstMatch + 2*secondMatch;\n } else {\n score = 0;\n }\n\n return score;\n }", "public void calculateScores()\r\n {\r\n for(int i = 0; i < gameBoard.getBoardRows(); i++)\r\n for(int j = 0; j < gameBoard.getBoardCols(); j++)\r\n {\r\n if(gameBoard.tilePlayer(i,j) == 0)\r\n currentRedScore = currentRedScore + gameBoard.tileScore(i,j);\r\n if(gameBoard.tilePlayer(i,j) == 1)\r\n currentBlueScore = currentBlueScore + gameBoard.tileScore(i,j);\r\n }\r\n }", "static int[] climbingLeaderboard(int[] scores, int[] alice) {\n /*\n * Write your code here.\n */\n List<Integer> ranks = new ArrayList<>();\n int i=0;\n while(i<scores.length-1) {\n ranks.add(scores[i]);\n int j=i+1;\n while(j<scores.length && scores[i]==scores[j]) {\n j+=1;\n }\n i=j;\n }\n ranks.add(scores[scores.length-1]);\n int[] aliceRank = new int[alice.length];\n for (int j=0; j< alice.length; j++) {\n int index = Collections.binarySearch(ranks, alice[j],Comparator.reverseOrder());\n aliceRank[j] = index > 0 ? index + 1 : index == 0 ? 1 : Math.abs(index);\n }\n return aliceRank;\n }", "public static ArrayList<Integer> diceFrequency(int roll)\r\n {\r\n // variables\r\n Dice dice;\r\n int diceRoll;\r\n \r\n // program code\r\n dice = new Dice();\r\n \r\n ArrayList<Integer> frequency;\r\n frequency = new ArrayList<Integer> ();\r\n \r\n for (int i = 0; i < 11; i++)\r\n frequency.add(0);\r\n\r\n // roll the dice until the limit\r\n for (int i = 1; i <= roll; i++)\r\n {\r\n diceRoll = dice.rollDice();\r\n frequency.set(diceRoll - 2, frequency.get(diceRoll - 2) +1 ); \r\n }\r\n return frequency;\r\n }", "private void playGame() {\n\t\tcategoryChosenChecker = new boolean[nPlayers + 1][N_CATEGORIES];\n\t\t// next one is for upper score.\n\t\tupperScore = new int[nPlayers + 1];\n\t\t// for lower score.\n\t\tlowerScore = new int[nPlayers + 1];\n\t\t// and finally, for total score.\n\t\ttotalScore = new int[nPlayers + 1];\n\t\t// here we have for loop, because we want our game to go for\n\t\t// N_SCORING_CATEGORIES times.\n\t\tfor (int i = 0; i < N_SCORING_CATEGORIES; i++) {\n\t\t\t// and here is another for loop, because each player should roll the\n\t\t\t// dice.\n\t\t\tfor (int j = 1; j <= nPlayers; j++) {\n\t\t\t\t// first roll.\n\t\t\t\tfirstRoll(j);\n\t\t\t\t// and the last for loop, because second and third rolls are\n\t\t\t\t// similar and can be written in one method and we want this\n\t\t\t\t// method to happen 2 times.\n\t\t\t\tfor (int k = 1; k <= 2; k++) {\n\t\t\t\t\t// second and third rolls.\n\t\t\t\t\totherRolls();\n\t\t\t\t}\n\t\t\t\t// after rolls, player will choose category.\n\t\t\t\tcategory(j);\n\t\t\t}\n\t\t}\n\t\t// when the game ends program will tell who is the winner.\n\t\twhoIsTheWinner();\n\t}", "public int generateScore(List<Integer> line){\r\n\t\tif (line.get(0)+line.get(1)+line.get(2)==2 ) {\r\n\t\t\treturn 10;\r\n\t\t}\r\n\t\telse if (line.get(0)==line.get(1)&&line.get(1)==line.get(2) && line.get(0)==line.get(2)) {\r\n\t\t\treturn 5;\r\n\t\t}\r\n\t\telse if (line.get(0)!=line.get(1)&&line.get(0)!=line.get(2)) {\r\n\t\t\treturn 1;\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\t\t\r\n\t\r\n\t}", "public void calculations(){\n\n int temp_size1 = fight_list.get(0).t1.members.size();\n int[] t1_counter = new int[temp_size1 + 1]; //counter for deaths: 0, 1, 2..., party size.\n float t1_avg = 0; //Average number of deaths.\n\n //We don't need to calculate for t2 right now, because t2 is just monsters.\n //temp_size = fight_list.get(0).t2.members.size();\n //int[] t2_counter = new int[temp_size + 1];\n\n for(FightResult fig : this.fight_list){\n int i = 0;\n while(i != fig.t1_deaths){\n i++;\n }\n t1_counter[i]++;\n t1_avg += fig.t1_deaths;\n }//end for\n\n System.out.println(t1_avg);\n System.out.println(Float.toString(t1_avg/fight_list.size()) + \" / \" + Integer.toString(temp_size1));\n\n String axis = \"# of deaths: \\t\";\n int axis_int = 0;\n String t1_results = \"Happened: \\t\";\n for(int i : t1_counter){\n axis += Integer.toString(axis_int++) + \"\\t\";\n t1_results += Integer.toString(i) + \"\\t\";\n }//end for\n System.out.println(axis);\n System.out.println(t1_results);\n\n float tpk_amount = t1_counter[temp_size1]; //by taking the size, we take the item at the end of the array. In this case, the number where everyone dies.\n tpk_amount = (tpk_amount/fight_list.size())*100;\n System.out.println(\"Probability of TPK: \" + Float.toString(tpk_amount) + \" %.\");\n\n System.out.println(\"\\n--------\\n\");\n }", "public void loadScore() {\n for (int i = 0; i < 4; i++) {\n int[] enemyTankNum = CollisionUtility.getEnemyTankNum();\n tankNumList[i] = enemyTankNum[i];\n }\n for (int i = 0; i < 4; i++) {\n tankScoreList[i] = tankNumList[i] * 100 * (i + 1);\n }\n for (Integer score : tankScoreList) {\n totalScore += score;\n }\n for (Integer num : tankNumList) {\n totalTankNum += num;\n }\n }", "private static Integer findMissingValue_UseMath(int[] arrayInteger) {\n int sum = arrayInteger.length * ((arrayInteger.length + 1 )/2);\n // then for each item in the source array\n for(int val : arrayInteger)\n {\n sum -= val;\n }\n return sum;\n }", "public abstract Score[] getScore();", "public int getScore(Grid grid) {\n Integer[] allValues = {0, 0, 0, 0, 0, 0};\n for (int idx_x = 0; idx_x < Grid.COLUMNS; idx_x++) {\n for (int idx_y = 0; idx_y < Grid.ROWS; idx_y++) {\n if (!grid.isCellEmpty(idx_x, idx_y)) {\n Dice currDie = grid.getDie(idx_x, idx_y);\n allValues[currDie.getValue()-1] += 1;\n }\n }\n }\n return Collections.min(Arrays.asList(allValues)) * this.objValue;\n }", "public int[] getYourScore(int[] details, int round) throws RemoteException {\n return sd.getGames().get(details[0]).getRound(round).\n getPlayerScore(details[1]);\n }", "public static void main(String[] args) throws Exception\n {\n\t ContextFactory.createRootContext(new FileContextSource(new File(args[0])));\n Die d = new Die(new CoinjemaContext(args[3]));\n int hits = 0;\n int TO_HIT = Integer.parseInt(args[1]);\n int NUM_ROLLS = Integer.parseInt(args[2]);\n int[] distribution = new int[80];\n int trials = 100000;\n int numHits;\n int result = 0;\n long time = System.nanoTime();\n for (int x = 0; x < trials; x++)\n {\n result = d.roll(6, NUM_ROLLS);\n numHits = (result / TO_HIT);\n hits += numHits; \n distribution[numHits]++;\n }\n System.out.println(\"Took: \" + ((float)(System.nanoTime() - time)/1000000) + \" ms\");\n float average = ((float) ((float) hits / trials));\n System.out.println(\"1000 runs: \\n\\tTo Hit: \" + TO_HIT + \"\\n\\tTotal Hits: \" + hits + \"\\n\\tAverage: \"\n + average + \" hits\");\n System.out.println(\"\\n\\nDistribution\");\n for(int x = 0;x < 80;x++)\n {\n \t if(distribution[x] > 0)\n \t {\n \t\t System.out.print(x);\n \t\t System.out.print(\"\\t\");\n \t }\n }\n System.out.println(\"\");\n for (int x = 0; x < 80; x++)\n {\n \t if(distribution[x] > 0)\n \t System.out.print(distribution[x] + \"\\t\"); \t\t \n }\n System.out.println(\"\");\n for (int x = 0; x < 80; x++)\n {\n \t if(distribution[x] > 0)\n \t\t System.out.print((int) (.5 + (100 * ((float) distribution[x] / trials))) + \"%\\t\");\n }\n System.out.println(\"\\n\");\n float ratio = (float)NUM_ROLLS/TO_HIT;\n System.out.println(\"Ratio = \" + ratio);\n System.out.println(\"Average/ratio = \" + average/ratio);\n System.out.println(\"predicted average = \" + ((3*NUM_ROLLS)/TO_HIT));\n }", "public static void stats(ArrayList<Player> playerList){\n \n //{\"blue\", \"pink\", \"yellow\", \"green\" }\n int colorArray[] = {0,0,0,0} ;\n //{ \"Cadbury Egg\", \"Reese's Egg\", \"pink Starburst\", \"yellow Peep\", \"25 cents\", \"50 cents\", \"one dollar\" }\n int contentsArray[] = {0,0,0,0,0,0,0};\n //creates an array the size of how many players are in the user picks\n int ps = playerList.size();\n int eggsFound[] = new int[ps];\n for (int i = 0; i < ps ;i++){\n //adds the number of eggs each player found to the eggsFound array\n eggsFound[i] = playerList.get(i).getNumEggs();\n\n //created this variable since we use it for a lot of upper bounds in our for loop\n int bs = playerList.get(i).getBasket().size();\n\n //for each player's basket it looks at every egg and 1 to the contentsArray in the index that coresponds to the egg's contents\n for (int e = 0; e < bs; e++){\n String color = playerList.get(i).getBasket().get(e).getEggColor();\n if(color.equals(\"blue\")){\n colorArray[0] += 1;\n }else if(color.equals(\"pink\")){\n colorArray[1] += 1;\n }else if(color.equals(\"yellow\")){\n colorArray[2] += 1;\n }else{\n colorArray[3] += 1;\n }\n }\n //for each player's basket it looks at every egg and 1 to the contentsArray in the index that coresponds to the egg's contents\n //Extra Credit 2: display contents\n for (int c = 0; c < bs; c++){\n String contents = playerList.get(i).getBasket().get(c).getEggContents();\n if(contents.equals(\"Cadbury Egg\")){\n contentsArray[0] += 1;\n }else if(contents.equals(\"Reese's Egg\")){\n contentsArray[1] += 1;\n }else if(contents.equals(\"pink Starburst\")){\n contentsArray[2] += 1;\n }else if(contents.equals(\"yellow Peep\")){\n contentsArray[3] += 1;\n }else if(contents.equals(\"25 cents\")){\n contentsArray[4] += 1;\n }else if(contents.equals(\"50 cents\")){\n contentsArray[5] += 1;\n }else{\n contentsArray[6] += 1;\n }\n }\n }\n //find the max number from the eggsFound array by comparing the first index to each subsequent one and replacing the comparision number with the higest one.\n int maxEggs = eggsFound[0];\n for(int k = 0; k < eggsFound.length; k++){\n maxEggs = Math.max(maxEggs, eggsFound[k]);\n }\n //creating an ArrayList to track winners. using a for loop and the eggsFound array to save \"winner string\" for each player who found the higest number of eggs\n ArrayList<String> winnerArray = new ArrayList<String>();\n for(int m = 0; m < eggsFound.length; m++){\n if (eggsFound[m] == maxEggs){\n winnerArray.add(\n \"Player \" + m + \" found the most eggs, with \" + eggsFound[m] + \" eggs!\");\n }\n }\n\n //sum up the number of eggs found by summing the values in the colorArray\n int totalEggs = 0;\n for(int x=0; x < colorArray.length; x++) {\n totalEggs += colorArray[x];\n }\n\n //Winner print out & find ties\n //Extra credit 3 : Additional features\n if(winnerArray.size() > 1){\n System.out.println(\"There is a Tie!\");\n System.out.println(\"Winners:\");\n for (String w : winnerArray) {\n\t System.out.println(w);\n }\n }else{\n System.out.println(\"Winner:\");\n for (String w : winnerArray) {\n\t System.out.println(w);\n }\n }\n \n \n System.out.println();\n //print out summary statistics for eggcolor\n System.out.println(\"Total eggs found: \" + totalEggs);\n System.out.println(\"Blue eggs: \" + colorArray[0]);\n System.out.println(\"Pink eggs: \" + colorArray[1]);\n System.out.println(\"Yellow eggs: \" + colorArray[2]);\n System.out.println(\"Green eggs: \" + colorArray[3]);\n \n System.out.println();\n //print out summary statistics for EggContents\n System.out.println(\"Total prizes found: \" + totalEggs);\n System.out.println(\"Cadbury Egg: \" + contentsArray[0]);\n System.out.println(\"Reese's Egg: \" + contentsArray[1]);\n System.out.println(\"pink Starburst: \" + contentsArray[2]);\n System.out.println(\"yellow Peep: \" + contentsArray[3]);\n System.out.println(\"25 cents: \" + contentsArray[4]);\n System.out.println(\"50 cents: \" + contentsArray[5]);\n System.out.println(\"one dollar: \" + contentsArray[6]);\n\n }", "private void createAvailableDice() {\n availableDice = new ArrayList<>();\n List<String> dice1Values = Arrays.asList(\"R\", \"I\", \"F\", \"O\", \"B\", \"X\");\n GameCube cube1 = new GameCube(dice1Values);\n availableDice.add(cube1);\n\n List<String> dice2Values = Arrays.asList(\"I\", \"F\", \"E\", \"H\", \"E\", \"Y\");\n GameCube cube2 = new GameCube(dice2Values);\n availableDice.add(cube2);\n\n List<String> dice3values = Arrays.asList(\"E\", \"D\", \"N\", \"O\", \"W\", \"S\");\n GameCube cube3 = new GameCube(dice3values);\n availableDice.add(cube3);\n\n List<String> dice4values = Arrays.asList(\"U\", \"T\", \"O\", \"K\", \"N\", \"D\");\n GameCube cube4 = new GameCube(dice4values);\n availableDice.add(cube4);\n\n List<String> dice5values = Arrays.asList(\"H\", \"M\", \"S\", \"R\", \"A\", \"O\");\n GameCube cube5 = new GameCube(dice5values);\n availableDice.add(cube5);\n\n List<String> dice6values = Arrays.asList(\"L\", \"U\", \"P\", \"E\", \"T\", \"S\");\n GameCube cube6 = new GameCube(dice6values);\n availableDice.add(cube6);\n\n List<String> dice7values = Arrays.asList(\"A\", \"C\", \"I\", \"T\", \"O\", \"A\");\n GameCube cube7 = new GameCube(dice7values);\n availableDice.add(cube7);\n\n List<String> dice8values = Arrays.asList(\"Y\", \"L\", \"G\", \"K\", \"U\", \"E\");\n GameCube cube8 = new GameCube(dice8values);\n availableDice.add(cube8);\n\n List<String> dice9values = Arrays.asList(\"Qu\", \"B\", \"M\", \"J\", \"O\", \"A\");\n GameCube cube9 = new GameCube(dice9values);\n availableDice.add(cube9);\n\n List<String> dice10values = Arrays.asList(\"E\", \"H\", \"I\", \"S\", \"P\", \"N\");\n GameCube cube10 = new GameCube(dice10values);\n availableDice.add(cube10);\n\n List<String> dice11values = Arrays.asList(\"V\", \"E\", \"T\", \"I\", \"G\", \"N\");\n GameCube cube11 = new GameCube(dice11values);\n availableDice.add(cube11);\n\n List<String> dice12values = Arrays.asList(\"B\", \"A\", \"L\", \"I\", \"Y\", \"T\");\n GameCube cube12 = new GameCube(dice12values);\n availableDice.add(cube12);\n\n List<String> dice13values = Arrays.asList(\"E\", \"Z\", \"A\", \"V\", \"N\", \"D\");\n GameCube cube13 = new GameCube(dice13values);\n availableDice.add(cube13);\n\n List<String> dice14values = Arrays.asList(\"R\", \"A\", \"L\", \"E\", \"S\", \"C\");\n GameCube cube14 = new GameCube(dice14values);\n availableDice.add(cube14);\n\n List<String> dice15values = Arrays.asList(\"U\", \"W\", \"I\", \"L\", \"R\", \"G\");\n GameCube cube15 = new GameCube(dice15values);\n availableDice.add(cube15);\n\n List<String> dice16values = Arrays.asList(\"P\", \"A\", \"C\", \"E\", \"M\", \"D\");\n GameCube cube16 = new GameCube(dice16values);\n availableDice.add(cube16);\n\n }", "public Integer aiAction() {\r\n\t\t//if the first dice is less then six, throw the second dice \r\n\t\t//if the both throws > 10 the ai has lost, and will return 0\r\n\t\t//if the first dice == 7, return first dice\r\n\t\tInteger totalSum = 0;\r\n\t\tRandom aiRandom = new Random();\r\n\t\tInteger firstDice = aiRandom.nextInt(7) + 1;\r\n\t\tSystem.out.println(\"First dice: \" + (totalSum += firstDice));\r\n\t\tif (firstDice < 6) {\r\n\t\t\tInteger secondDice = aiRandom.nextInt(7) + 1;\r\n\t\t\tSystem.out.println(\"Second dice value is: \" + secondDice);\r\n\t\t\tSystem.out.println(\"Sum of both throws: \" + (totalSum += secondDice));\r\n\t\t\tif(totalSum > 10){\r\n\t\t\t\treturn 0;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\treturn totalSum;\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"Ai scored :\" + (firstDice));\r\n\t\t\treturn firstDice;\r\n\t\t}\r\n\r\n\t}", "public void calculatePoints() {\n /*\n for (int i = 0; i < getRacers().size(); i++) {\n String username = getRacers().get(i).getUsername();\n int total = 0;\n for (int j = 0; j < getRounds().size(); j++) {\n Slot slot = getRounds().get(j).findRacerInRound(username);\n if (slot != null) {\n total = total + slot.getPoints();\n }\n }\n getRacers().get(i).setPoints(total);\n }*/\n }" ]
[ "0.6857176", "0.6821967", "0.6606249", "0.64636075", "0.62371224", "0.6151866", "0.60035574", "0.59991074", "0.59960186", "0.59611154", "0.5936466", "0.5787552", "0.57584894", "0.5739261", "0.57278466", "0.5722324", "0.5703501", "0.568618", "0.5575426", "0.55684936", "0.556016", "0.55440456", "0.5538522", "0.5532978", "0.5528719", "0.54606533", "0.5455007", "0.5418815", "0.54146934", "0.54059696", "0.53913784", "0.5388234", "0.53867406", "0.5377344", "0.5370158", "0.53509974", "0.5343463", "0.5339553", "0.53383875", "0.5295409", "0.5294532", "0.5293314", "0.5293313", "0.5283437", "0.5282149", "0.5276472", "0.52740157", "0.526981", "0.5269785", "0.526928", "0.52490044", "0.5237014", "0.5234161", "0.5220505", "0.52168864", "0.5212055", "0.5211705", "0.52112365", "0.5204801", "0.519009", "0.51890916", "0.51884687", "0.5187579", "0.5179813", "0.51792866", "0.5175965", "0.51720196", "0.516119", "0.51437265", "0.51374793", "0.5134074", "0.5132183", "0.51307577", "0.5130694", "0.51257795", "0.51219416", "0.5115688", "0.51095927", "0.5109393", "0.5101359", "0.5100248", "0.5098457", "0.5097797", "0.50970006", "0.5091631", "0.50867665", "0.50755554", "0.5072913", "0.5065851", "0.5039438", "0.50377345", "0.50369936", "0.5033604", "0.50334513", "0.50301135", "0.5025982", "0.50215054", "0.50180936", "0.50179034", "0.5017148" ]
0.60619026
6
Calculates the Score when a user chooses Low score (special case).
public static int calcScoreLow(ArrayList<Dice> dices) { int[] arr = convertDiceValueArray(dices); int sum = 0; for (int i = 0; i < arr.length; i++) { if (arr[i] <= SCORE_LOW) { sum += arr[i]; } } Log.d("SCORECALC", String.valueOf(sum)); return sum; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public int lowerScore() {\n if (!scoresUpToDate) {\n updateScores();\n }\n return lowerScore;\n }", "public void calculateHighscores(){\n if((newPlayer.getScore() > (getRecord())) && (newPlayer.getScore() > getRecord2()) && (newPlayer.getScore() > getRecord3())){\n setRecord3(getRecord2());\n setRecord2(getRecord());\n setRecord(newPlayer.getScore());\n newPlayer.resetScore();\n }\n if((newPlayer.getScore() > getRecord2()) && (newPlayer.getScore() > getRecord3()) && (newPlayer.getScore() < getRecord())){\n setRecord3(getRecord2());\n setRecord2(newPlayer.getScore());\n newPlayer.resetScore();\n }\n if((newPlayer.getScore() > getRecord3()) && newPlayer.getScore() < getRecord2()){\n setRecord3(newPlayer.getScore());\n newPlayer.resetScore();\n }else{\n newPlayer.resetScore();\n\n }\n }", "public int getMinScore() {\r\n return minScore;\r\n\t}", "public Score lowestScore()\n {\n Score lowest = new Score();\n int smallSoFar = 201;\n if(scores[0] == null)\n {\n return null;\n }\n else\n {\n for(int i = 0; i < scores.length; i++)\n {\n lowest = scores[0];\n if(scores[i] == null)\n {\n break;\n }\n if(scores[i].getScore() < lowest.getScore())\n {\n lowest = scores[i];\n }\n \n }\n return lowest;\n } \n }", "Float getScore();", "private void updateHighscore() {\n if(getScore() > highscore)\n highscore = getScore();\n }", "@Override\n public int higherScore() {\n if (!scoresUpToDate) {\n updateScores();\n }\n return higherScore;\n }", "float getScore();", "float getScore();", "Float getAutoScore();", "public static void calculateScore(){\n boolean gameOver = false;\n int score = 3000;\n int levelCompleted = 8;\n int bonus = 200;\n\n System.out.println(\"Running method calculateScore: \");\n\n if(score < 4000){\n int finalScore = score + (levelCompleted*bonus);\n System.out.println(\"Your final score = \" + finalScore);\n }else{\n System.out.println(\"The game is still on\");\n }\n\n System.out.println(\"Exit method calculateScore--\\n\");\n }", "public abstract float getScore();", "protected final void calcScore()\n {\n\n m_score = SCORE_OTHER;\n\n if (null == m_targetString)\n calcTargetString();\n }", "void setBestScore(double bestScore);", "public void setScore(int paScore) {\n this.score = paScore;\n }", "public double getBestScore();", "public Double getLowestMainScore() {\n return lowestMainScore;\n }", "long getScore();", "long getScore();", "long getScore();", "long getScore();", "public int lowestHighscore()\n {\n FileReader filereader;\n PrintWriter writer;\n int lowHighScore = 0;\n try{\n \n filereader = new FileReader(getLevel());\n BufferedReader bufferedreader = new BufferedReader(filereader);\n \n \n String finalLine =\"\";\n for(int i = 0;i<5;i++)\n {\n finalLine = bufferedreader.readLine();\n }\n lowHighScore = Integer.parseInt(finalLine.split(\":\")[1]);\n \n }\n catch(IOException e){}\n return lowHighScore;\n }", "public void setScore(float score) {\n this.score = score;\n }", "protected abstract void calcScores();", "int getScore();", "public int getMinimumScore(){\n\n /*\n * creating variable of type int name it lowestScore go in to index 0 and sub 0\n * and lowestScore is refering to instance variable scores\n */\n int lowestScore = scores[0][0]; // assume this value is the smallest score value\n\n /* enhanced for loop with array of type int named gameScores and it will go trough scores array*/\n for (int[] gameScores : scores){\n\n /*\n * and another enhanced for loop inside first for loop\n * int variable, name score and it will iterate(go/repeat) through array gameScores\n *\n */\n for (int score : gameScores){\n if (score < lowestScore){\n lowestScore = score;\n }\n }\n }\n return lowestScore;\n }", "public void setScore(Float score) {\n this.score = score;\n }", "public void setHighscore(int score)\n {\n this.highscore = score;\n }", "private double getLowest()\n {\n if (currentSize == 0)\n {\n return 0;\n }\n else\n {\n double lowest = scores[0];\n for (int i = 1; i < currentSize; i++)\n {\n if (scores[i] < lowest)\n {\n scores[i] = lowest;\n }\n }\n return lowest;\n }\n }", "public void setScore(int score) { this.score = score; }", "public int getHomeScore();", "public void setScore(float value) {\n this.score = value;\n }", "public void calcScore(int score) {\r\n\t\tif (initFinish)\r\n\t\t\tthis.score += score * this.multy;\r\n\t\t// TODO delete\r\n//\t\tSystem.out.println(\"score: \" + this.score + \"multy: \" + this.multy);\r\n\t}", "protected void adjustScore() {\r\n scoreMultiplier = (int) (mineField.getDensity() * 100);\r\n maxScore = scoreMultiplier * (int) Math.pow( mineField.getFieldLength(), 2.0 );\r\n }", "public int getScore(){\n \treturn 100;\n }", "public void GetBestScore() {\r\n\t\ttry {\r\n\t\t\t// Leemos el nivel seleccionado y luego lo pasamos a integer\r\n\t\t\tif (Menu.dificultad == \"facil\") {\r\n\t\t\t\tbr=new BufferedReader(new FileReader(\"C:\\\\Temp\\\\EasyScore.txt\"));\r\n\t\t\t\tBestScore=Integer.parseInt(br.readLine());\r\n\t\t\t}else if (Menu.dificultad == \"normal\") {\r\n\t\t\t\tbr=new BufferedReader(new FileReader(\"C:\\\\Temp\\\\NormalScore.txt\"));\r\n\t\t\t\tBestScore=Integer.parseInt(br.readLine());\r\n\t\t\t}else if (Menu.dificultad == \"dificil\") {\r\n\t\t\t\tbr=new BufferedReader(new FileReader(\"C:\\\\Temp\\\\HardScore.txt\"));\r\n\t\t\t\tBestScore=Integer.parseInt(br.readLine());\r\n\t\t\t}else if (Menu.dificultad == \"Invertido\") {\r\n\t\t\t\tbr=new BufferedReader(new FileReader(\"C:\\\\Temp\\\\InvertidoScore.txt\"));\r\n\t\t\t\tBestScore=Integer.parseInt(br.readLine());\r\n\t\t\t}\r\n\t\t\t// Cerramos el Buffered Reader\r\n\t\t\tbr.close();\r\n\t\t// Capturamos las distintas exceptions\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\tSystem.out.println(\"File not found\");\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.out.println(\"File can't open\");\r\n\t\t} \r\n\t}", "public void setScore(double score) {\r\n this.score = score;\r\n }", "int getScoreValue();", "void increaseScore(){\n\t\t currentScore = currentScore + 10;\n\t\t com.triviagame.Trivia_Game.finalScore = currentScore;\n\t }", "public void setScore(Integer score) {\r\n this.score = score;\r\n }", "public void setScore(int newScore){\n\t\tthis.score = newScore;\n\t}", "@Override\n\tprotected int calculateScore() {\n\t\treturn Math.abs(playerScore[0] - playerScore[1]);\n\t}", "public abstract boolean higherScoresAreBetter();", "public void setScore(Integer score) {\n this.score = score;\n }", "public void setScore(int score)\n\t{\n\t\tthis.score += score;\n\t}", "int getHighScore() {\n return getStat(highScore);\n }", "public void updatescore() {\n scorelabel.setText(\"\" + score + \" points\");\n if (100 - score <= 10) win();\n }", "@Override\n public int getScore() {\n return score;\n }", "protected void setScore(final boolean increase) {\r\n setMinesMesg( mineField.getNumHiddenMines() );\r\n\r\n if( increase ) {\r\n currentScore += scoreMultiplier;\r\n scoreMesg.setText( \" \" + Integer.toString( currentScore ) );\r\n\r\n /* success */\r\n if( (currentScore == maxScore) && (mineField.getNumHiddenMines() == 0) ) {\r\n double d = mineField.getDensity();\r\n\r\n minesTitle.setText( Msgs.str( \"mines.found\" ) );\r\n minesMesg.setText( Integer.toString( mineField.getNumTotalMines() ) );\r\n\r\n currentScore += (maxScore - (100 - scoreMultiplier) * (seconds / 2));\r\n scoreTitle.setText( Msgs.str( \"Final\" ) + Msgs.str( \"Score\" ) );\r\n timeTitle.setText( Msgs.str( \"Final\" ) + Msgs.str( \"Time\" ) );\r\n\r\n if( d <= 0.02 ) // way too easy\r\n {\r\n timeMesg.setText( Msgs.str( \"fullTime\" ) );\r\n minesMesg.setText( \"0\" + Msgs.str( \"zd.num\" ) );\r\n scoreMesg.setText( Msgs.str( \"zd.scr\" ) );\r\n infoMesg.setText( Msgs.str( \"goof.info\" ) );\r\n } else {\r\n scoreMesg.setText( \" \" + Integer.toString( currentScore ) );\r\n\r\n if( currentScore >= maxScore * 0.5 ) {\r\n if( (d > 0.0) && (d <= DEFAULT_DENSITY * 0.5) ) {\r\n playSound( EASY );\r\n infoMesg.setText( Msgs.str( \"easy.info\" ) );\r\n } else if( (d > DEFAULT_DENSITY * 0.5) && (d < DEFAULT_DENSITY) ) {\r\n playSound( NEAT );\r\n infoMesg.setText( Msgs.str( \"good.info\" ) );\r\n } else if( (d >= DEFAULT_DENSITY) && (d < 1.0) ) {\r\n playSound( AWESOME );\r\n infoMesg.setText( Msgs.str( \"great.info\" ) );\r\n } else // d == 1.0\r\n {\r\n infoMesg.setText( Msgs.str( \"goof.info\" ) );\r\n scoreMesg.setText( Integer.toString( (int) d ) );\r\n }\r\n } else // currentScore < maxScore * 0.5\r\n {\r\n playSound( SLOW );\r\n infoMesg.setText( (currentScore > 0) ? Msgs.str( \"poor.info\" ) : Msgs.str( \"bad.info\" ) );\r\n }\r\n }// else d > 0.02\r\n\r\n mineField.paintArea(); // so the last flag is painted\r\n halt();\r\n }// if game over\r\n } else // decrease\r\n {\r\n currentScore -= scoreMultiplier;\r\n scoreMesg.setText( Integer.toString( currentScore ) );\r\n }\r\n }", "public float getScore() {\n return score;\n }", "public float getScore(){return score;}", "public void CheckScore(){\n \tif(killed > highScore) {\n \t\tname = JOptionPane.showInputDialog(\"You set a HighScore!\\n What is your Name?\");\n \t\thighScore = killed;\n \t}\n }", "public double getTopScore() {\n return topScore;\n }", "public void calculateScore() {\n\n turnScore();\n\n if (turn == 1) {\n p1.setScore(p1.getScore() - turnScore);\n\n } else if (turn == 2) {\n p2.setScore(p2.getScore() - turnScore);\n\n }\n\n\n }", "public abstract Boolean higherScoreBetter();", "public static int calculateHighScorePosition(int score){\n\n /*One Way\n if(score >= 1000)\n return 1;\n else if (score >= 500)\n return 2;\n else if (score >= 100)\n return 3;\n\n return 4;\n */\n\n //Other way\n return (score >= 1000) ? 1 : ((score >= 500) ? 2 : ((score >=100) ? 3 : 4));\n }", "public void setScore(int score) {\r\n\t\tif(score >=0) {\r\n\t\t\tthis.score = score;\r\n\t\t}\r\n\t\t\r\n\t}", "public double getScore() {\n return score - penalty;\n }", "@Override\n public int getScore() {\n return totalScore;\n }", "public int getScore ()\r\n {\r\n\treturn score;\r\n }", "public int getScore()\n {\n // put your code here\n return score;\n }", "@Override\n\tpublic void checkScore() {\n\t\t\n\t}", "public void setScore(int score) {\n this.score = score;\n }", "public void setScore(int score) {this.score = score;}", "public void setScore(Double score) {\n this.score = score;\n }", "public double getLowThreshold(){\n return lowThreshold;\n }", "@Override\r\n\tpublic double getScore() \r\n\t{\r\n\t\treturn this._totalScore;\r\n\t}", "public int getScore(){\r\n\t\treturn score;\r\n\t}", "public int getScore(){\r\n\t\treturn score;\r\n\t}", "public int getScore() { return score; }", "public void setScore(int score) {\r\n this.score = score;\r\n }", "public void setScore(int score) {\r\n this.score = score;\r\n }", "private void updateHighScore() {\n\t\tif (pacman.getCurrentCell().getContainsFood() == true) {\n\t\t\tpacman.getCurrentCell().setContainsFood(false);\n\t\t\thighScore.update(10);\n\t\t}\n\t\tif (highScore.getScore() / 2440 == actualLevel) {\n\t\t\ttry {\n\t\t\t\tThread.sleep(500);\n\t\t\t} catch (InterruptedException e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\tinitNewLevel();\n\t\t\t++actualLevel;\n\t\t}\n\t}", "public int getScore()\n {\n return currentScore;\n }", "public Float getScore() {\n return score;\n }", "public int getScore() {\n return currentScore;\n }", "public void scoresForGameModes() {\r\n \tCalculateScore myScore = new CalculateScore();\r\n \tthis.score = myScore.giveScore();\r\n \tif (gamemode == 1) {\r\n \t\treturn;\r\n \t}\r\n \tif (gamemode ==2 ) {\r\n \t\tthis.score = this.score - (10 * (currentGraph.getCNumber() - set.size()));\r\n \t}\r\n \tif (gamemode ==3) {\r\n \t\tthis.score = this.score - (10 * (currentGraph.getCNumber() -set.size()));\r\n \t}\r\n }", "public double getLow() {return low;}", "@Override\r\n\tpublic double getScore() {\n\t\treturn score;\r\n\t}", "public void setTopScore(double topScore) {\n this.topScore = topScore;\n }", "public void topScore() {\n\t\tif (playern.getExp() >= 100) {\n\t\t\tSystem.out.println(\"You become a Warrior and win the game\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "public void setScore(int score) {\n this.score = score;\n }", "public void setScore(int score) {\n this.score = score;\n }", "public void setScore(int score) {\n this.score = score;\n }", "public void setScore(int score) {\n this.score = score;\n }", "public void updatePlayerScore()\n\t{\n\t\tthis.score = (int)(getBalance() - 500) - (getNumberOfLoans()*500); \n\t}", "private int calculateScore() {\n int total;\n int score = getGameScore();\n int correct = getCorrectGuesses();\n int wrong = getWrongGuesses();\n GameDifficulty difficulty = Hangman.getGameDifficulty();\n\n // Calculate points\n switch (difficulty) {\n case EASY : total = score; break;\n case NORMAL : total = (2 * score) + correct - wrong; break;\n case HARD : total = (3 * score) + (2 * correct) - (2 * wrong); break;\n default : total = score;\n }\n\n return total;\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getScore();", "public int getScore() {return score;}", "public int getBestScore() {\n\t\tInteger score = this.hand.countValue().lower(22);\n\t\tif(score!=null) {\n\t\t\treturn score;\n\t\t}\n\t\telse {\n\t\t\treturn this.hand.countValue().higher(21);\n\t\t}\n\t}", "public void setScore(int score)\n {\n this.score = score;\n }", "public void setScore(int score){\n\t\tthis.score = score;\n\t}", "public float getScore() {\r\n\t\treturn score;\r\n\t}", "@Override\r\n\tpublic final void setBestScore(final double theBestScore) {\r\n\t\tthis.bestScore = theBestScore;\r\n\t}", "public Integer getScore() {\r\n return score;\r\n }", "public synchronized void setScore(Integer score) {\n this.score += score;\n }", "public void setScore (java.lang.Integer score) {\r\n\t\tthis.score = score;\r\n\t}", "public int getHighScore() {\n return highScore;\n }", "public int score() {\n ArrayList<Integer> scores = possibleScores();\n int maxUnder = Integer.MIN_VALUE;\n int minOver = Integer.MAX_VALUE;\n for (int score : scores) {\n if (score > 21 && score < minOver) {\n minOver = score;\n } else if (score <= 21 && score > maxUnder) {\n maxUnder = score;\n }\n }\n return maxUnder == Integer.MIN_VALUE ? minOver : maxUnder;\n }", "public void addToScore(final int theScoreAddition) {\n this.myCurrentScoreInt += theScoreAddition;\n \n if (this.myCurrentScoreInt > this.myHighScoreInt) {\n this.myHighScoreInt = this.myCurrentScoreInt; \n this.persistHighScore();\n } \n }" ]
[ "0.73118937", "0.66796786", "0.6614031", "0.65514314", "0.65490323", "0.65477663", "0.651209", "0.6430196", "0.6430196", "0.6382285", "0.63304454", "0.63094985", "0.63017696", "0.6229571", "0.6176399", "0.61738825", "0.6142078", "0.61117697", "0.61117697", "0.61117697", "0.61117697", "0.610353", "0.60756046", "0.6070894", "0.6050625", "0.60254943", "0.601169", "0.6009939", "0.60041404", "0.60023016", "0.5990437", "0.5983936", "0.5982515", "0.59782165", "0.59688556", "0.5968587", "0.5966088", "0.59602386", "0.5957224", "0.5923312", "0.59157383", "0.59143853", "0.5909846", "0.5907579", "0.5901395", "0.59011984", "0.5898314", "0.5892036", "0.5891252", "0.5888905", "0.58878267", "0.58825725", "0.58774453", "0.58771896", "0.58720416", "0.5870638", "0.58686846", "0.58569074", "0.5852993", "0.5848193", "0.5846609", "0.58452225", "0.5839271", "0.5837308", "0.5829443", "0.58288056", "0.5827182", "0.58267653", "0.58267653", "0.58260757", "0.582565", "0.582565", "0.5824199", "0.5820159", "0.58196265", "0.5818248", "0.58175063", "0.5817286", "0.5816845", "0.58139086", "0.5813903", "0.5811465", "0.5811465", "0.5811465", "0.5811465", "0.58103335", "0.5810251", "0.5806993", "0.5804233", "0.5801708", "0.5796008", "0.5788029", "0.57874346", "0.57828003", "0.5771011", "0.57708836", "0.5768074", "0.5766407", "0.57645553", "0.5764415" ]
0.6157045
16
centerView = new Ponto(posicao.getX(), posicao.getY(), posicao.getZ()500);
public void girar(float amount) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void CreaCoordinate(){\n \n this.punto = new Point(80, 80);\n \n }", "public void setCenterPosition(ViewPosition p) {\n\n\t}", "public Point centeroid ()\r\n {\r\n return new Point ((v1.getX()+v2.getX()+v3.getX())/3,(v1.getY()+v2.getY()+v3.getY())/3);\r\n }", "Viewpoint createViewpoint();", "PositionedObject(){\n float x = DrawingHelper.getGameViewWidth()/2;\n float y = DrawingHelper.getGameViewHeight()/2;\n _position.set(x,y);\n }", "Punto(){\r\n x=0;\r\n y=0;\r\n }", "public Ponto(int x, int y){\n this.x = x;\n this.y = y;\n }", "public void iniciar(){\r\n \r\n view.setTitle(\"MVC Proyecto\");\r\n //Indica posicion, null -> posicion 0 = centro\r\n view.setLocationRelativeTo(null);\r\n \r\n }", "Vaisseau_positionner createVaisseau_positionner();", "Point getCenter();", "Point getCenter();", "void mo2268a(View view, PointF pointF, float f);", "@Override\n\tpublic void setCenterView() {\n\n\t}", "PlayerPrince(ImageView view) {\n this.view = view;\n this.size = view.getHeight();\n }", "Vaisseau_occupeLaPosition createVaisseau_occupeLaPosition();", "public int getCenterX(){\r\n return centerX;\r\n }", "public Punto getCentro() {\r\n\treturn centro;\r\n}", "public void mou(){\n\n this.setY(getY() + getVelocitatY());\n this.setX(getX() + getVelocitatX());\n\n }", "Position_abscisse createPosition_abscisse();", "public Point getCenter() {\r\n return this.center;\r\n }", "public Point getCenter() {\n return center;\n }", "void crtajKocka( Graphics g ) {\n double teta = Math.PI * a / 180.0;\n double fi = Math.PI * izvishuvanje / 180.0;\n float kosinusT = (float)Math.cos( teta ), sinusT = (float)Math.sin( teta );\n float kosinusP = (float)Math.cos( fi ), sinusP = (float)Math.sin( fi );\n float kosinusTkosinusP = kosinusT*kosinusP, kosinusTsinusP = kosinusT*sinusP,\n sinusTkosinusP = sinusT*kosinusP, sinusTsinusP = sinusT*sinusP;\n\n // project vertices onto the 2D viewport\n Point[] tocki;\n tocki = new Point[ stranaKocka.length ];\n int j;\n int merka = sirina/4;\n float blisku = 3; // distance from eye to near plane\n float bliskuDoObjekt = 1.5f; // distance from near plane to center of object\n for ( j = 0; j < stranaKocka.length; ++j ) {\n int x0 = stranaKocka[j].x;\n int y0 = stranaKocka[j].y;\n int z0 = stranaKocka[j].z;\n\n // compute an orthographic projection\n float x1 = kosinusT*x0 + sinusT*z0;\n float y1 = -sinusTsinusP*x0 + kosinusP*y0 + kosinusTsinusP*z0;\n\n // now adjust things to get a perspective projection\n float z1 = kosinusTkosinusP*z0 - sinusTkosinusP*x0 - sinusP*y0;\n x1 = x1*blisku/(z1+blisku+bliskuDoObjekt);\n y1 = y1*blisku/(z1+blisku+bliskuDoObjekt);\n\n // the 0.5 is to round off when converting to int\n tocki[j] = new Point(\n (int)(sirina/2 + merka*x1 + 0.5),\n (int)(visina/2 - merka*y1 + 0.5)\n );\n }\n\n // draw the wireframe\n g.setColor( Color.LIGHT_GRAY);\n g.fillRect( 0, 0, sirina, visina );\n g.setColor( Color.white );\n for ( j = 0; j < rabovi.length; ++j ) {\n g.drawLine(\n tocki[ rabovi[j].a ].x, tocki[ rabovi[j].a ].y,\n tocki[ rabovi[j].b ].x, tocki[ rabovi[j].b ].y\n );\n }\n }", "Position_ordonnee createPosition_ordonnee();", "boolean mo2269a(View view, PointF pointF);", "public Coordinate getCenter() {\n return center;\n }", "@Resource(name=\"thirdPoint\")\r\n\tpublic void setCenter(Point center) {\r\n\t\tthis.center = center;\r\n\t}", "public ViewerPosition3D()\n {\n }", "public Vect3d getCenter (){\r\n Vect3d v = new Vect3d();\r\n v.x = (min.x + max.x) / 2;\r\n v.y = (min.y + max.y) / 2;\r\n v.z = (min.z + max.z) / 2;\r\n return v;\r\n }", "public PointF viewToModel(PointF p){\n\t\tPointF q = new PointF(p.x*zoom,(height-p.y)*zoom);\n\t\treturn q;\t\t\n\t}", "public PointF modelToView(PointF p){\n\t\tPointF q = new PointF(p.x/zoom,height-p.y/zoom);\n\t\treturn q;\t\t\n\t}", "Position_changerAbscisse createPosition_changerAbscisse();", "public void setCenter(Point center) {\r\n this.center = center;\r\n }", "private double[] getPositionOfSpaceObject(CTS_SpaceObject obj) {\n\t\tif (obj == null) {\n\t\t\t//System.out.println(\"null obj passed to getPositionOfSpaceObject!\");\n\t\t\treturn null;\n\t\t}\n\t\tdouble azimuth = obj.getAzimuth();\n\t\tdouble altitude = obj.getAltitude();\n\t\tif (altitude < 0 || altitude > 90) {\n\t\t\treturn null;\n\t\t}\n\t\tdouble radAlt = toRadians(altitude);\n\t\tdouble r = VIEWING_AREA_WIDTH / 2;\n\t\tdouble x_val, y_val, distanceFromCenter;\n\t\tdistanceFromCenter = abs(r*cos(radAlt));\n\t\t// x_val, y_val are coords relative to the center of the viewing area\n\t\t// being considered 0,0 on the Cartesian plane\n\t\tx_val = distanceFromCenter*(sin(toRadians(azimuth)));\n\t\ty_val = distanceFromCenter*(cos(toRadians(azimuth)));\n\t\t// view_x, view_y are the actual JavaFX coordinates to draw at\n\t\tdouble view_x = 0, view_y = 0;\n\t\tif (azimuth < 90) {\n\t\t\tview_x = x_val + 299;\n\t\t\tview_y = max(0,(299-y_val));\n\t\t} else if (azimuth < 180) {\n\t\t\tview_x = x_val + 299;\n\t\t\tview_y = min(599,(299-y_val));\n\t\t} else if (azimuth < 270) {\n\t\t\tview_x = max(0,(299+x_val));\n\t\t\tview_y = min(599,(299-y_val));\n\t\t} else {\n\t\t\tview_x = max(0,(299+x_val));\n\t\t\tview_y = max(0,(299-y_val));\n\t\t}\n\t\tdouble[] retval = { view_x, view_y};\n\t\treturn retval;\n\t}", "public GJPoint2D center();", "public int getCenterY(){\r\n return centerY;\r\n }", "public PointF getCenter() {\n return center;\n }", "public VendaComputadorView() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Plato(){\n\t\t\n\t}", "@Override\n\tpublic void init() \n\t{\n\t\tthis.m_view.setCenter(new Vector2f(1024f,1024f));\n\t\t// initilisation de m_centerSought\n\t\tthis.m_centerSought = this.m_view.getCenter();\n\t\t// zoom\n\t\tthis.m_zoom = this.m_zoomSought = 1f;\t\t\n\t\t// size\n\t\tthis.m_sizeNormal = m_size = m_sizeSought = m_sizeBackup = m_sizeInit = this.getView().getSize();\n\t\tthis.m_sizeDown = Vector2f.mul(this.m_sizeNormal, 0.8f);\n\t\tthis.m_sizeUp = Vector2f.mul(m_sizeNormal, 1.2f);\n\t\t\n\t\t// cadre\n\t\tm_cadre = new IntRect(m_spaceScrolling,m_spaceScrolling,(int)this.getView().getSize().x - m_spaceScrolling * 2,(int) this.getView().getSize().y - m_spaceScrolling * 2);\n\t\t\n\t}", "private Viewpoint(int type,Float c1x,Float c1y,Float c2x,Float c2y,Float ex,Float ey){\n\t\tthis.type=type;\n\t\tthis.c1x=c1x;\n\t\tthis.c1x=c1y;\n\t\tthis.c2x=c2x;\n\t\tthis.c2y=c2y;\n\t\tthis.ex=ex;\n\t\tthis.ey=ey;\n\t}", "public void setPosicion(){\n ejeX = 0;\n ejeY = 0;\n }", "public void PerspektivischeProjektion(){\n /**\n * Abrufen der Koordinaten aus den einzelnen\n * Point Objekten des Objekts Tetraeder.\n */\n double[] A = t1.getTetraeder()[0].getPoint();\n double[] B = t1.getTetraeder()[1].getPoint();\n double[] C = t1.getTetraeder()[2].getPoint();\n double[] D = t1.getTetraeder()[3].getPoint();\n\n /*\n * Aufrufen der Methode sortieren\n */\n double[][] sP = cls_berechnen.sortieren(A, B, C, D);\n\n A = sP[0];\n B = sP[1];\n C = sP[2];\n D = sP[3];\n\n /*Wenn alle z Koordinaten gleich sind, ist es kein Tetraeder. */\n if (A[2] == D[2]) {\n System.out.println(\"kein Tetraeder\");\n return;\n }\n\n //Entfernung vom 'Center of projection' zur 'Projectoin plane'\n double d=5;\n\n /*\n * Transformiert x|y|z Koordinaten in x|y Koordinaten\n * mithilfer der perspektivischen Projektion\n */\n\n A[0]=A[0]/((A[2]+d)/d);\n A[1]=A[1]/((A[2]+d)/d);\n B[0]=B[0]/((B[2]+d)/d);\n B[1]=B[1]/((B[2]+d)/d);\n C[0]=C[0]/((C[2]+d)/d);\n C[1]=C[1]/((C[2]+d)/d);\n D[0]=D[0]/((D[2]+d)/d);\n D[1]=D[1]/((D[2]+d)/d);\n\n\n double ax, ay, bx, by, cx, cy, dx, dy;\n ax=A[0];\n ay=A[1];\n bx=B[0];\n by=B[1];\n cx=C[0];\n cy=C[1];\n dx=D[0];\n dy=D[1];\n\n tetraederzeichnen(ax, ay, bx, by, cx, cy, dx, dy);\n }", "public CoPView(CoP model) {\r\n super(ShoeView.shoeToViewX(model.xProperty().getValue(), model.getSide()), ShoeView.shoeToViewY(model.yProperty().getValue(), model.getSide()), 4, Color.color(0, 0, 1));\r\n this.model = model;\r\n initialize();\r\n }", "@Override\n public void onClick(View view) {\n Toast msg = Toast.makeText(NicogetActivity.this, \"Je confirme !\", Toast.LENGTH_LONG);\n msg.setGravity(Gravity.CENTER, msg.getXOffset()/2, msg.getYOffset()/2);\n msg.show();\n }", "public abstract Vector computeCenter();", "@Override\n public void setCenteredView(Viewer viewer)\n {\n if (viewer instanceof Viewer3D)\n {\n Viewer3D v3d = (Viewer3D)viewer;\n double dist = myPosition.getLocation().getLength();\n Vector3d pos = v3d.getPosition().getDir().multiply(-dist);\n ViewerPosition3D viewerPosition = new ViewerPosition3D(pos, v3d.getPosition().getDir(), v3d.getPosition().getUp());\n setPosition(viewerPosition);\n }\n }", "public void setViewLocation(Point p) {\n\tviewport.setViewLocation(p.x, p.y);\n\t\n}", "private math_vector3d TwoPointGetCenterArcPoint(math_vector3d start, math_vector3d end)\n {\n\n\n ObjectPoint center2d = new ObjectPoint((start.X() + end.X()) / 2.0,(start.Y() + end.Y()) / 2.0);\n ObjectPoint orgin2d = new ObjectPoint(this.theOrigin.X(),this.theOrigin.Y());\n\n\n MathVector2D orginTocenter = new MathVector2D(orgin2d, center2d);\n\n orginTocenter = orginTocenter.GetUnit();\n orginTocenter = orginTocenter.multiply(this.theRadius);\n orgin2d.AddVector(orginTocenter);\n\n math_vector3d center = new math_vector3d(orgin2d.x,orgin2d.y,0);\n return center;\n }", "public void center() {\n\t\tif(parent != null) {\n\t\t\tfloat parMidWidth = parent.getWidth() / 2f;\n\t\t\tfloat parMidHeight = parent.getHeight() / 2f;\n\t\t\tfloat midWidth = width / 2f;\n\t\t\tfloat midHeight = height / 2f;\n\t\t\t\n\t\t\tfloat newX = parent.getX() + (parMidWidth - midWidth);\n\t\t\tfloat newY = parent.getY() + (parMidHeight - midHeight);\n\t\t\t\n\t\t\tposition = new Vec2f(newX, newY);\n\t\t\tfindPosRatios();\n\t\t}\n\t}", "private void setView( boolean reset_zoom )\n {\n float azimuth = getAzimuthAngle();\n float altitude = getAltitudeAngle();\n float distance = getDistance();\n\n float r = (float)(distance * Math.cos( altitude * Math.PI/180.0 ));\n\n float x = (float)(r * Math.cos( azimuth * Math.PI/180.0 ));\n float y = (float)(r * Math.sin( azimuth * Math.PI/180.0 ));\n float z = (float)(distance * Math.sin( altitude * Math.PI/180.0 ));\n\n float vrp[] = getVRP().get();\n \n setCOP( new Vector3D( x + vrp[0], y + vrp[1], z + vrp[2] ) );\n\n apply( reset_zoom );\n }", "public void setPosicao() {\n Dimension d = this.getDesktopPane().getSize();\n this.setLocation((d.width - this.getSize().width) / 2, (d.height - this.getSize().height) / 2); \n}", "public Point getCenter() {\n \treturn new Point(x+width/2,y+height/2);\n }", "public PantallaVictoria()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(400, 600, 1); \n prepare();\n }", "private JPanel getCenterPOCPanel() {\r\n if (this.centerPOCPanel == null) {\r\n GridBagConstraints gridBagConstraints3 = new GridBagConstraints();\r\n gridBagConstraints3.gridx = 0;\r\n gridBagConstraints3.ipadx = 0;\r\n gridBagConstraints3.ipady = -28;\r\n gridBagConstraints3.weightx = 1.0;\r\n gridBagConstraints3.weighty = 1.0;\r\n gridBagConstraints3.fill = java.awt.GridBagConstraints.BOTH;\r\n gridBagConstraints3.gridy = 0;\r\n this.centerPOCPanel = new JPanel();\r\n this.centerPOCPanel.setLayout(new GridBagLayout());\r\n this.centerPOCPanel.add(getCenterPointsOfContactEditorPanel(), gridBagConstraints3);\r\n }\r\n return this.centerPOCPanel;\r\n }", "@Override\r\n public void act() \r\n {\n int posx = this.getX();\r\n int posy = this.getY();\r\n //calculamos las nuevas coordenadas\r\n int nuevox = posx + incx;\r\n int nuevoy = posy + incy;\r\n \r\n //accedemos al mundo para conocer su tamaño\r\n World mundo = this.getWorld();\r\n if(nuevox > mundo.getWidth())//rebota lado derecho\r\n {\r\n incx = -incx;\r\n }\r\n if(nuevoy > mundo.getHeight())//rebota en la parte de abajo\r\n {\r\n incy = -incy;\r\n }\r\n \r\n if(nuevoy < 0)//rebota arriba\r\n {\r\n incy = -incy;\r\n }\r\n if(nuevox < 0)//rebota izquierda\r\n {\r\n incx = -incx;\r\n }\r\n //cambiamos de posicion a la pelota\r\n this.setLocation(nuevox,nuevoy);\r\n }", "public void panView() {\n double xDistance = currentXOffset - targetXOffset;\n double yDistance = currentYOffset - targetYOffset;\n\n xDistance *= -0.5;\n yDistance *= -0.5;\n\n boolean clearX = Math.abs(xDistance) < 2;\n if (clearX) {\n currentXOffset = targetXOffset;\n } else {\n currentXOffset += xDistance;\n }\n\n boolean clearY = Math.abs(xDistance) < 2;\n if (clearY) {\n currentYOffset = targetYOffset;\n } else {\n currentYOffset += yDistance;\n }\n\n doPan = !clearX || !clearY;\n\n gameChanged = true;\n\n }", "public Vector3D getCenter() {\n return center;\n }", "public ViewPosition getCenterPosition() {\n\t\treturn null;\n\t}", "public Porteur_img_eau(int x, int y, int rayon){\n Circle fond_eau = new Circle(x,y, rayon);\n fond_eau.setFill(Color.BLUE);\n this.getChildren().add(fond_eau);\n this.setLayoutX(x);\n this.setLayoutY(y);\n\n }", "public void setCenter(Point centerPoint) {\n this.center = centerPoint;\n }", "public void centreModel(gb_Vector3 offset){\n\t\tfor(int i = 0; i < point.length; i++)\n\t\t\tpoint[i].sub(offset);\n\t\tmodOffset = new gb_Vector3();\n\t}", "Obj(double x1, double y1, double z1, double x2, double y2, double z2, double x3, double y3, double z3){\t// CAMBIAR LAS COORDENADAS X,Y,Z CON 0,1 PARA CONSTRUIR PRISMA, CILINDRO, PIRAMIDE, CONO Y ESFERA.\n w\t= new Point3D[4];\n\tvScr\t= new Point2D[4];\n \n w[0]\t= new Point3D(0, 0, 0); // desde la base\n\tw[1]\t= new Point3D(x1, y1, z1);\n\tw[2]\t= new Point3D(x2, y2, z2);\n\tw[3]\t= new Point3D(x3, y3, z3);\n \n\tobjSize = (float) Math.sqrt(12F); \n rho\t= 5 * objSize;\n }", "public IView() {\n initComponents();\n setLocationRelativeTo(null); //Center form on screen\n }", "public void setCenter(Point newPoint) {\n this.center = newPoint;\n }", "public Titik(){\r\n this.x = 0;\r\n this.y = 0;\r\n }", "public View center(Coordinate center) {\n setCenter(center);\n return this;\n }", "public CarritoComprasView(Cliente cliente, CentroComercialView centroComercialView) {\n this.setResizable(false);\n \n this.cliente = cliente;\n this.centroComercialView = centroComercialView;\n\n initComponents();\n this.setLocationRelativeTo(null);\n\n //Inicialización de los elementos de la vista.\n eliminarArticuloButton.setEnabled(false);\n eliminarPaqueteButton.setEnabled(false);\n\n mostrarCantidadProductos();\n mostrarTotalAPagar();\n mostrarArticulos();\n mostrarPaquetes();\n\n }", "@Override\n\tpublic void onCenterChanged(GeoPoint center) {\n\t}", "protected void centra() {\n\t\t\n\t\t// dimensione schermo\n\t\tDimension dimScreen = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tint wScreen=dimScreen.width;\n\t\tint hScreen=dimScreen.height;\n\n\t\t// dimensione frame\n\t\tint wFrame=this.getWidth();\n\t\tint hFrame=this.getHeight();\n\t\t\n\t\t// calcolo le nuove coordinate\n\t\tint x = (wScreen-wFrame)/2;\n\t\tint y = (hScreen-hFrame)/2;\n\t\t\n\t\t// sposto il frame\n\t\tsetLocation(x, y);\n\t\t\n\t}", "public Vec3d getCenter() {\n\t\treturn set;\n\t}", "public void centreModel(){\n\t\tcentreModel(modOffset);\n\t}", "public Circle() {\r\n this.radius = 0.0;\r\n this.center = new Point();\r\n }", "void setCenter() {\n\t\tLine line02 = new Line(myParent, new PVector(), new PVector());\n\t\tLine line13 = new Line(myParent, new PVector(), new PVector());\n\t\tline02.set(point[0].position, point[2].position);\n\t\tline13.set(point[1].position, point[3].position);\n\t\tif (line02.intersects_at(line13) != null) // if two points are on each\n\t\t\t\t\t\t\t\t\t\t\t\t\t// other\n\t\t\tcenter.set(line02.intersects_at(line13));\n\t}", "public void setCenter(Point center) {\r\n\t\tthis.center = center;\r\n\t}", "public Coordenada() {\n }", "@Override\n\tpublic void onLocationChanged(Location location) {\n\t\t if (location != null) {\n\t\t //punto = location;\n\t\t GeoPoint puntoCap = new GeoPoint(location);\n\t\t this.posicionActualOverlay.setLocation(puntoCap);\n\t\t mapView.getController().animateTo(puntoCap);\n\t\t mapView.getController().setCenter(puntoCap);\n\t\t }\n\t\t\n\t}", "@SuppressWarnings(\"unused\")\n private void setCenter(JSONArray args, CallbackContext callbackContext) throws JSONException {\n double lat, lng;\n\n lat = args.getDouble(1);\n lng = args.getDouble(2);\n\n LatLng latLng = new LatLng(lat, lng);\n CameraUpdate cameraUpdate = CameraUpdateFactory.newLatLng(latLng);\n this.myMoveCamera(cameraUpdate, callbackContext);\n }", "public Point getPoint(EastNorth p) {\n if(null == p)\n return new Point();\n double x = (p.east()-center.east())/scale + getWidth()/2;\n double y = (center.north()-p.north())/scale + getHeight()/2;\n return new Point((int)x,(int)y);\n }", "public PointF get_position() { return _position; }", "Position createPosition();", "public void centerUserLocation(){\n ImageButton userLocation = (ImageButton) findViewById(R.id.userLocation);\n LatLng latLngUser = new LatLng(mapboxMap.getLocationComponent().getLastKnownLocation().getLatitude(),\n mapboxMap.getLocationComponent().getLastKnownLocation().getLongitude());\n\n userLocation.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n CameraPosition position = new CameraPosition.Builder()\n .target(latLngUser)\n .zoom(18)\n .tilt(0) // inclinaison de la camera max:60\n .build();\n\n mapboxMap.animateCamera(CameraUpdateFactory.newCameraPosition(position), 500);\n }\n });\n\n }", "public T setPoint(@NonNull View view) {\n int[] location = new int[2];\n view.getLocationInWindow(location);\n int x = location[0] + view.getWidth() / 2;\n int y = location[1] + view.getHeight() / 2;\n return setPoint(x, y);\n }", "public Coords getCenter()\r\n {\r\n return new Coords(Math.round(x + width / 2), Math.round(y + height / 2));\r\n }", "public ViewPerfil() {\n initComponents();\n carregaperfil();\n setLocationRelativeTo(null);\n habilitarDesabilitarCampos(false);\n }", "public final void zza(View view) {\n this.zznj = view;\n }", "public Punto getCentroide() {\n \treturn centroide;\n }", "public void primerPunto() {\n\t\tp = new PuntoAltaPrecision(this.xCoord, this.yCoord);\n\t\t// Indicamos la trayectoria por la que va la pelota\n\t\tt = new TrayectoriaRecta(1.7f, p, false);\n\t}", "public LatLng getCenter() {\n return center;\n }", "public Pirad(){\n super(\"Calcul Pirad\");\n this.setContentPane(panne);\n this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n init();\n this.setBounds(0, 0, 1000, 600);\n this.setVisible(true);\n }", "public Vector3f getCenter() {\r\n return center;\r\n }", "public void drawPoligono(Color c, Color f){\n int xPoints[] = new int[nPoints];\n int yPoints[] = new int[nPoints];\n \n // Copia pontos de arraylist para arrays\n for(int i = 0; i < nPoints; i++){\n xPoints[i] = pointsX.get(i);\n yPoints[i] = pointsY.get(i);\n System.out.println(xPoints[i] + \", \" + yPoints[i]);\n }\n Poligono k = new Poligono(xPoints, yPoints, nPoints, c, f);\n k.draw(canvas, info);\n \n // Limpa os pontos e reseta contador\n pointsX.clear();\n pointsY.clear();\n nPoints = 0;\n }", "private void moveViewToScreenCenter( View view )\n\t{\n\t DisplayMetrics dm = new DisplayMetrics();\n\t this.getWindowManager().getDefaultDisplay().getMetrics( dm );\n\t \n\t int originalPos[] = new int[2];\n\t view.getLocationOnScreen( originalPos );\n\t int xDest = dm.widthPixels/2 - dm.widthPixels/4;\n\t TranslateAnimation anim = new TranslateAnimation(dm.widthPixels,xDest , 0, 0 );\n\t anim.setDuration(16000);\n\t anim.setFillAfter( true );\n\t view.startAnimation(anim);\n\t}", "public void drawCircle() {\n mMap.clear();\n // Generate the points\n mMap.addPolygon(new PolygonOptions().addAll(points).strokeWidth(5).strokeColor(Color.RED).fillColor(Color.TRANSPARENT));\n // Create and return the polygon\n for (int i=0;i<points.size();i++){\n Log.v(\"DrawCircle\",\"drwaakmdaskfmlsmn\"+points.get(i));\n }\n\n\n\n }", "private Point getCentreCoordinate(Point t)\n {\n \treturn new Point (t.x + Constants.cell_length /2f, t.y, t.z+Constants.cell_length/2f );\n }", "public Vector2 getCenter() {\n return center;\n }", "public SrvINFONEGOCIO(AgregarInfoNegocio view) {//C.P.M Tendremos un constructor con la vista de agregar informacion de negocio\r\n this.vista = view;//C.P.M Se la agregamos a la variable para tener acceso a la vista \r\n }", "public void setCenter(PointF center) {\n this.center = center;\n }", "public Point getCenter() {\r\n\t\treturn center;\r\n\t}", "public Pose() {\n x = 0;\n y = 0;\n heading = 90;\n originalHeading = 90;\n }", "public NapakalakiView() {\n initComponents();\n }", "public void setCenter() {\n\t\tthis.isCenter = true;\n\t}" ]
[ "0.66008013", "0.6500004", "0.64414555", "0.6408837", "0.6336174", "0.6272388", "0.6159894", "0.6089537", "0.60634637", "0.6037743", "0.6037743", "0.6008522", "0.59780747", "0.59448487", "0.5916316", "0.58880156", "0.5857734", "0.581813", "0.57988805", "0.57948285", "0.5764775", "0.5740029", "0.5738308", "0.5724925", "0.56982785", "0.569526", "0.56861174", "0.56706756", "0.5669834", "0.566918", "0.5669101", "0.5665905", "0.56471735", "0.5643812", "0.5643355", "0.5639902", "0.5627361", "0.56217486", "0.5621318", "0.56123424", "0.5605079", "0.5602841", "0.5586996", "0.5583989", "0.5574143", "0.5563755", "0.5546891", "0.55300665", "0.55297834", "0.55269986", "0.55226684", "0.55103236", "0.55055285", "0.55044055", "0.5502684", "0.550045", "0.5496732", "0.5488752", "0.548663", "0.5486499", "0.5478637", "0.5477359", "0.5462414", "0.5461547", "0.5452655", "0.54381996", "0.5436936", "0.54333514", "0.5432307", "0.5427821", "0.54274434", "0.5424988", "0.54201996", "0.54187983", "0.5418105", "0.54124624", "0.54116267", "0.5407243", "0.53989667", "0.53968245", "0.5390739", "0.5387476", "0.5384187", "0.53839624", "0.53792906", "0.53785956", "0.53777856", "0.5369967", "0.53697455", "0.5367232", "0.53651136", "0.53648835", "0.5360211", "0.5354749", "0.5349287", "0.534915", "0.53484386", "0.5346302", "0.5341868", "0.5340282", "0.5336546" ]
0.0
-1
Execute for given condition TODO Autogenerated method stub print the number for 1 to 10
public static void main(String[] args) { int z = 10 ; z = 11 ; System.out.println(z); for(int i = 1 ; i < 10 ; i++) { System.out.println(i); } // Execute till the condition is satisfied System.out.println("------------------------"); int y = 0 ; while(y <= 10) { System.out.println(y); y++; // 1 , 2 ,3 , 4 ,5 ,6 ,7 ,8 ,9 ,10,11 } System.out.println("-----------Do while-------------"); do { System.out.println(y); y++; }while(y<=10); System.out.println(y); // while -->First check the condition and then execute // Do- while first execute and then check for the condition }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void loopWithCheck(int upperLimit, QuitObject q) {\r\n\t\t\tint i;\r\n\t\t\tdouble temp;\r\n\t\t\t\r\n\t\t\tfor (i=0; i<upperLimit; i++) {\r\n\t\t\t\tif(q.getGreaterThan()==q.getLessThan()){\r\n\t\t\t\t\tq.setFinalCount(i+10000);\r\n\t\t\t\t\tq.setStatus(1);\r\n\t\t\t\t\tquitProgram(q);\r\n\t\t\t\t}\r\n\t\t\t\ttemp = Math.random();\r\n\t\t\t\tif (temp > 0.5) {\r\n\t\t\t\t\tq.addOneGreaterThan();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tq.addOneLessThan();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tq.setFinalCount(i+10000);\r\n\t\t\tq.setStatus(2);\r\n\t\t\tquitProgram(q);\r\n\t\t\t\r\n\t\t}", "private static void printNumber(){\r\n\t\tfor(int i = 1;i <= 10; i++)\r\n\t\t\tSystem.out.println(i);\r\n\t}", "public static void main(String[] args) {\n\t\tint firstnum,num = 0,result,i;\n\t\tfirstnum=107;\n\t\tnum=firstnum+10;\n\t\tif(num>100 && num<200)\n\t\t{\n\t\t\tfor(i=1;i<=9;i++)\n\t\t\t{\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\n\t}", "public static void controleWhile() {\r\n\t\tint contador = 0;\r\n\t\t\r\n\t\twhile(contador < 10) {\r\n\t\t\tSystem.out.println(++contador);\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\tfor(int i = 1; i<=20;i++) {\n\t\t\tif(i>=5 && i<=10)\n\t\t\t\tcontinue;\n\t\t\tSystem.out.println(i);\n\t\t\t\n\t\t}\n\n\t}", "public static void main(String[] args) {\n int i = 22;\n if (i < 20) {\n System.out.println(\"1\");\n } else if (i<25) {\n System.out.println(\"2\");\n } else if (i<30) {\n System.out.println(\"3\");\n } else {\n System.out.println(\"4\");\n }\n }", "public static void main(String[] args) {\n for(int i = 0; i < 10; i++) {\n if(i==5) {\n break;\n }\n System.out.println(\"Numbers \" +i);\n }\n }", "protected void evaluateConditions()\n {\n ensureConditionContinuity() ;\n checkComponentList() ;\n\n for ( int liCondCtr = 1 ; liCondCtr <= 5 ; liCondCtr++ )\n {\n checkCondition( liCondCtr ) ;\n } /* end for */\n\n }", "public static void main(String[] args) {\n\t\t\n\t\tint num1, num2;\n\t\tnum1 = 10;\n\t\t\n\t\tnum2 = (true) ? 100 : 9;\n\t\t//System.out.println(num2); // 100\n\t\t\n\t\tnum2 = (false) ? 90 : 99;\n\t\t//System.out.println(num2); // 99\n\t\t\n\t\tnum2 = (num1 == 10 && num1 > 7) ? 88 : 99;\n\t//\tSystem.out.println(num2); // \n\n\t\tif (4>9) num1 = 90; else num1= 99;\n\t\t\n\t\tint i=0;\n\t\twhile(i<20){\n\t\t\tif(i==10){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tSystem.out.println(\"i=\" + i);\n\t\t\ti++;\n\t}}", "static void loop() {\r\n\r\n\t\tfor (int i =1; i<=10; i++) { \r\n\t\t\tSystem.out.println(i);\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\nint i=1;\nwhile(i<=10)\n{\n\tSystem.out.println(i+\"raj\");//display nos from 1 to 10 and raj \n\ti=i+1;\n}\n\t}", "public static void main(String[] args){\n\t\t\r\n\t\tint c = 90;\r\n\t\t\r\n\t\twhile(c<101){\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"The c value is less than \" + c);\r\n\t\t\t\r\n\t\t\tc++;\r\n\t\t\t\r\n\t\t\t//break; //executes only one time\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"The c value is not equal to 101\");\r\n\t}", "public static void main(String[] args) {\n\t\tint i= 1; // initialization \r\n\t\twhile(i<=10) { // conditional \r\n\t\t\tSystem.out.println(i);\r\n\t\t\ti=i+1; // incremental/decrement\r\n\t\t}\r\n\t\tSystem.out.println(\"************\");\r\n\t\t// print 1 to 10\r\n\t\t// for loop \r\n\t\t// j++ means j=j+1\r\n\t\tfor(int j= 1; j<=10; j++) {\r\n\t\t\tSystem.out.println(j);\r\n\t\t}\r\n\t\tSystem.out.println(\"************\");\r\n\t\t // print 10 to 1\r\n\t\t//10 9 8 7 6 5 4 3 2 1\r\n\t\tfor( int k=10; k>=1;k--) {\r\n\t\t\tSystem.out.println(k);\r\n\t\t}\r\n\r\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tfor (int i = 0; i < 10; i++) {\n\t\t\t\t\tconditionThreadCommunication.printC();\n\t\t\t\t}\n\t\t\t}", "public static void main(String[] args) {\n int number = 990;\n boolean result = number > 1000 || number % 10 == 0;\n System.out.println(result);\n }", "public static void main(String[] args) {\n\tint i=1;\n\tdo\n\t{\n\t\tSystem.out.println(i);\n\t\ti++;\n\t}\n\twhile(i<=10);\n\t\n}", "public static void main(String[] args) {\r\n\t\tfor (int i=1;i<10;i++)\r\n\t\t{\r\n\t\t\tif (i==5)\r\n\t\t\t{\r\n\t\t\t\t//System.out.println(i);\t\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\telse \r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(i);\r\n\t\t\t}\r\n\t\t}\r\n\r\n \r\n\t}", "@Override\n\tpublic Integer call() {\n\t\tint count = ThreadLocalRandom.current().nextInt(1, 11);\n\n\t\tfor (int i = 1; i <= count; i++) {\n\t\t\tSystem.out.println(\"Running...\" + i);\n\t\t}\n\n\t\treturn count;\n\t}", "public static void main(String[] args) {\n\t\t int i=1; \n\t\t while(i<=10){ \n\t\t System.out.println(i); \n\t\t i++; \n\t\t } \n\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\t\r\n\t\tfor(int i = 0; i<=10;i++)\r\n\t\t{\r\n\t\t\tif(i == 6)\r\n\t\t\t{\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tSystem.out.println(i);\r\n\t\t}\r\n\r\n\t}", "public static void main(String[] args) {\n\t\tint i = 2;\r\n\t\tSystem.out.println(\"Done\");\r\n\t\tif (i < 3) {\r\n\t\t\ti =3 ;\r\n\t\t\ti = i + 6;\r\n\t\t\tSystem.out.println(\"Number should be\" + \" \" + i); //Won't print if it doesn't meet if statement\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n int counter = 1;\n while (counter <=500){\n if (counter % 7 == 0 || counter % 5 == 0 || counter % 3 == 0){\n System.out.println( counter);\n }\n counter ++;\n }\n\n int counter2 = 500;\n do {\n System.out.println(\"do counter < 100\");\n }while (counter2 < 100); //mind. 1 Durchlauf da Bedingung am schluss ist, sonst gleich wie while\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tfor (int i = 0; i < 10; i++) {\n\t\t\t\t\tconditionThreadCommunication.printA();\n\t\t\t\t}\n\t\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tfor (int i = 0; i < 10; i++) {\n\t\t\t\t\tconditionThreadCommunication.printB();\n\t\t\t\t}\n\t\t\t}", "public static void main(String[] args) {\n\n\t\tfor (int i=0; i<=30; i++) {\n\t\t\tif (i <10) {\n\t\t\tSystem.out.println(\"the time is 7:0\" +i);\n\t\t\t\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"The time is 7:\" +i);\n\t\t\t}\n\t\t}\n int min =0;\n while (min <= 30) {\n\t if (min < 10) {\n\t\t System.out.println(\"The time is 7:0\" +min);\n\t \n\t }else {\n\t\t System.out.println(\"The time is 7:30\" +min);\n\t \t\t}\n \t\t}\n\t}", "public static void generator(boolean x){\n if(x){ \r\n System.out.println(10/0);\r\n }\r\n }", "public static void main(String[] args) {\n\tint count = 99 ;\t\n\tint ten = 0 ;\n\tSystem.out.println(\"Counting from 100 to 200\") ; \n\tSystem.out.println(\"Divisible by 5 or 6, but not both\") ;\n\tSystem.out.println(\"_______________________________________\") ;\n\t\t\n\t\t//Display all the numbers between 100 and 200\n\t\tdo {\n\t\t\tif (count % 5 == 0 ^ count % 6 == 0) {\n\t\t\t\tSystem.out.print(count + \" \") ;\n\t\t\t\tten++;\n\t\t\t}//display only 10 per line\n\t\t\tif (ten == 10){\n\t\t\t\tSystem.out.println() ;\n\t\t\t\tten = 0 ;\n\t\t\t}\n\t\t\tcount++ ;\n\t\t} while (count <= 200);\t\n\t\t\t\n\t}", "public static void nDigits(int num) {\r\n for(int x = ((int)Math.pow(10, num - 1)); x < (int)Math.pow(10, num); x++) {\r\n if(x % 2 == 0){\r\n if(conditionChecker(x)) {\r\n System.out.println(x);\r\n }\r\n }\r\n }\r\n }", "public static void main(String[] args) {\nint b=1;\nif (b<10)\n{\n\tSystem.out.println(\"Value is less than 10\");\n}\n\n\telse if(b<20) \n\t\t{\n\t\tSystem.out.println(\"Value is less tha 20\");\n\t}\n\telse\n\t{\n\t\tSystem.out.println(\"Value is greater than 20\");\n\t\t\n\t}\n}", "public static void main(String[] args) {\n\t\tfor (int i = 1; i <= 10; i++) \r\n\t\t{\r\n\t\t\tSystem.out.println(i);\r\n\t\t\tif(i==4)\r\n\t\t\t{\r\n\t\t\t\tbreak; \r\n\t\t\t}\r\n\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t//Skip Iteration on Perticular condition\r\n\t\tfor (int i = 1; i <= 10; i++) \r\n\t\t{\r\n\t\t\t\t\r\n\t\t\t\tif(i==5 || i==7) // || [or]\r\n\t\t\t\t{\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(i);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\r\n\t}", "public static void main(String[] args) {\n int count = 0;\r\n \r\n for (int num = 100; num <= 500; num++) {\r\n // Find all numbers from 100 to 500 divisible by 5 or 7 but not both.\r\n if ((num % 5 == 0 && num % 7 != 0) || (num % 5 != 0 && num % 7 == 0)) {\r\n count += 1;\r\n // Print 10 numbers on each line.\r\n if (count % 10 == 0) {\r\n System.out.println(num);\r\n }\r\n else {\r\n System.out.print(num + \" \");\r\n }\r\n }\r\n }\r\n }", "public static void main(String[] args) {\n\t\tfor(int x=1; x<10;x++)\n\t\t{\n\t\t\tif (x%2!=0)\n\t\t\tSystem.out.println(x);\n\t\t\t\n\t\t}\n\n\t\t\t// TODO Auto-generated method stub\n\t\t\tfor(int x=10; x<35;x++)\n\t\t\t{\n\t\t\t\tif (x != 21)\n\t\t\t\tSystem.out.println(x);\n\t\t\t\t\n\t\t\t}\n\t}", "public static void main(String[] args) {\n\t\t\n\t\t\n\tint num1=6;\n\tdo {\n\t\t\n\t\tSystem.out.println(num1);\n\t\tnum1++;\n\t\t\n\t}while(num1<=5);\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tint n=26;\n\t\tif((n>=24) && (n<=35)) {\n\t\t\tSystem.out.println(\"eligible\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"not eligible\");\n\t\t}\n\t}", "public static void loop(int upperLimit, QuitObject q) {\r\n\t\t\tint i;\r\n\t\t\tdouble temp;\r\n\t\t\t\r\n\t\t\tfor (i=0; i<upperLimit; i++){\r\n\t\t\t\ttemp = Math.random();\r\n\t\t\t\tif (temp > 0.5) {\r\n\t\t\t\t\tq.addOneGreaterThan();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tq.addOneLessThan();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tq.setFinalCount(i);\r\n\t\t\tprintStats(q);\r\n\t\t\tloopWithCheck(990000, q);\r\n\t\t}", "public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tSystem.out.println(\"ENter a number: \");\n\t\tint a=sc.nextInt();\n\t\tif(a==10)\n\t\t{\n\t\t\tSystem.out.println(\"welcome\");\n\t\t\tSystem.out.println(\"Condition is true\");\n\t\t}\n\t\tSystem.out.println(\"ENd of the program\");\n\n\t}", "public static void main(String[] args) {\n\t\tint i = 2;\n\t\twhile(i<10) {\n\t\t\tif(isDivisible(20*i)){\n\t\t\t\tSystem.out.println(\"Final: \"+20*i+\" with i= \"+i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ti=i+2;\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tfor (int i=0; i<=10; i++) {\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Value of i is \" +i);\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\tint i;\r\n\t\tfor(i = 1; i<=10; i++) {\r\n\t\t\tSystem.out.println(i);\r\n\t\t}\r\n\t\tSystem.out.println(\"=============\");\r\n\t\ti = 1;\r\n\t\twhile(i<=10) {\r\n\t\t\tSystem.out.println(i);\r\n\t\t\ti++;\r\n\t\t}\r\n\t\tSystem.out.println(\"=============\");\r\n\t\ti = 1;\r\n\t\tint j = 15;\r\n\t\twhile(true) {\r\n\t\t\tSystem.out.println(i);\r\n\t\t\tif(i==j) { break;}\r\n\t\t\ti++;\r\n\t\t}\r\n\r\n\t}", "public static void main(String[] args) {\n\t\tfor(int i=0; i<=10; i++)\n\t\t{\n\t\t\tif(i==5)\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tSystem.out.println(\"Count is \" + i);\n\t\t}\n\t\tSystem.out.println(\"<----Next Count---->\");\n\t\t\n\t\tfor(int j=0; j<=5; j++)\n\t\t{\n\t\t\tif(j==3)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Count is \" + j);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\n\t}", "public static void main(String[] args){\n int i = 0;\n int sum = 0;\n while (sum <= 10){\n i++;\n sum += i;\n System.out.println(i+ \",\" + sum);\n }\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"This is a for loop\");\n\t\tfor (int number = 0; number <=30; number++) {\n\t\t\tSystem.out.println(number);\n\t\t\t\n\t\t}\n\t\t\n\t\tint number=20;\n\t\tint numberone=10;\n\t\tSystem.out.println(\"This is a do while loop\");\n\t\tdo {\n\t\tSystem.out.println(number);\n\t\tnumber++;\n\t\t} while (number<=100);\n\t\t\n\t\t\n\t\tSystem.out.println(\"This is a while loop\");\n\t\twhile (numberone<=50) {\n\t\t\tSystem.out.println(numberone);\n\t\t\tnumberone++;\n\t\t\t\n\t\t}\n\n\t}", "@Override\n\tpublic void run() {\n\t\t\n\t\tfor(int i = 0 ;i<10;i++){\n\t\t\tSystem.out.println(\"Runner \"+i);\n\t\t}\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t\tint i=0; \r\n\t\twhile(true) {\r\n\t\t\t System.out.print(i);\r\n\t\t\tSystem.out.print(\"rahul\");\r\n\t\t\t try {\r\n\t\t\t\tThread.sleep(1000);\r\n\t\t\t\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\t if(i==10) {\r\n\t\t\t\t i=0;\r\n\t\t\t }\r\n\t\t\t i++;\r\n\t\t }\r\n\t\t\r\n\t}", "private boolean for_cond(){\n int save = position;\r\n boolean for_cond = false;\r\n\r\n if (getNextLexeme() == Lexeme.LP) {\r\n if(init()){\r\n if(log_exp() && getNextLexeme() == Lexeme.END){\r\n if(getNextLexeme() == Lexeme.VAR && assign_op()) {\r\n if (getNextLexeme() == Lexeme.RP) {\r\n for_cond = true;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n position = for_cond ? position : save;\r\n return for_cond;\r\n }", "@Override\n public void execute(LazyWorkerExchangeInfo lazyWorkerExchangeInfo) {\n int i = 1;\n StringBuilder sb = new StringBuilder();\n List<BagItems> bagItemsList = lazyWorkerExchangeInfo.getWorkDaysList();\n for (BagItems bagItem : bagItemsList) {\n bagItem.getItems().sort((a,b)-> a.compareTo(b));\n\n Integer[] w = bagItem.getItems().toArray(new Integer[bagItem.getItems().size()]);\n int N = bagItem.getItems().size();\n\n int cnt = 0;\n int step = 0;\n int end = N - 1;\n while (step <= end) {\n int top = w[end--];\n int mult = 1;\n while (step <= end && top * mult < 50) {\n step++;\n mult++;\n }\n if (top * mult >= 50) cnt++;\n }\n sb.append(\"Case #\").append(i).append(\":\").append(cnt).append(\"<br/>\");\n }\n lazyWorkerExchangeInfo.setOutputResult(sb.toString());\n }", "public static void main(String[] args) {\n\t\tint a=1;\n\t\t\n\t\twhile(a<=100)\n\t\t{\t\n\t\t\tSystem.out.println(a);\n\t\ta++;\n\t\t}\n\t//eg: to print the even numbers 1 to 10\n\t\t\n\t\tint b=2;\n\t\twhile(b<=10)\n\t\t{\n\t\t\tSystem.out.println(b);\n\t\t\tb=b+2;\n\t\t}\n\t//eg: to print the odd numbers 1 to 10\n\t\tint c=1;\n\t\twhile(c<=10)\n\t\t{\n\t\t\tSystem.out.println(c);\n\t\t\tc=c+2;\n\t\t}\n\t//eg: to print the numbers 1 to 10 in decending order\n\t\tint d=10;\n\t\twhile(d>0)\n\t\t{\n\t\t\tSystem.out.println(d);\n\t\t\td--;\n\t\t}\n//DO...WHILE LOOP:\n\t\n\tint l=100;\n\tdo\n\t{\n\t\tSystem.out.println(l);\n\t\tl++;\n\t}while(l<=110);\n//in other case of do...while loop\n\tint p=20;\n\tdo\n\t{\n\t\tSystem.out.println(p);//20\n\t\tp++;\n\t}while(p<=10);\n/*it will only print 20 once as it will run until the \n * condition is met. It prints the value of p that is 20 \n * for once and next step is 20+1. Then it finally verifies \n * the condition p<=10. When the condition fails, it stops \n * running. So in this loop the value is printed atleast \n * once. This is rarely used. \n * Most common one is for loop. While loop is also used \n * very often. */\t\n\t\n//FOR LOOP:\n /* initialization==>condition==>increment/decrement\n * all three can be shown in one line instead of \n * three different lines as while loop.*/\n\tfor(int g=30;g>20;g--)\n\t{\n\t\tSystem.out.println(g);\n\t}\n\t\n\t\n\n\t}", "public static void main(String[] args) {\n\n\t\tint time=8;\n\t\tif (time<12) {\n\t\t\tSystem.out.println(\"Good morning\"); // code executes\n\t\t\t\n\t\t}\n\t\twhile (time<12) {\n\t\t\t\n\t\t\tSystem.out.println(\"Good morning\");// if condition is ture\n\t\t\ttime++;\n\t\t\t\n\t\t\t// i want to print Good Morning 5 times\n\t\t\t\n\t\t\tint i=1;\n\t\t\t\n\t\t\twhile (i<5) {\n\t\t\t\tSystem.out.println(\" Good Afternoon\");\n\t\t\t\ti++;\n\t\t\t\t\n\t\t\t}\n\t}\n\t}", "public static void main(String[] args) {\n for(int i =0;i <=5;i++){ //i =0 , conditoon true ; i = 1; true;\n for(int j =0;j<=5;j++){ //j = 0 , true j=1; true ; j =3 ; true ;j =4 ; true ; j = 5 ; true ; j = 6\n System.out.println(\"the value of i is : \"+ i +\"The value of J is : \"+ j);\n }\n }\n }", "public static void main(String[] args) {\n\t\t\n\t\tint x = 10;\n\t\tdo{\n\t\t\tSystem.out.println(\"Value of x : \" + x);\n\t\t\tx++;\n\t\t}while(x < 15);\n\n\t}", "public int evaluate() {\n return Condition.INDETERMINATE;\n }", "public static void main (String args[])\n {\n final int START;\n final int STOP = 500;\n final int NUMBER_PER_LINE = 10;\n int temp = 0;\n Scanner inputDevice = new Scanner(System.in);\n System.out.println(\"Enter value to count by: \");\n START = inputDevice.nextInt();\n for(int i = START; i <= STOP; i += START)\n {\n System.out.print(i + \" \");\n temp++;\n if(temp % NUMBER_PER_LINE == 0)\n System.out.println();\n }\n System.out.println();\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tint a=40;\r\n\twhile(a>20) {\r\n\t\tif(a==25)break;\r\n\t\tSystem.out.println(a);\r\n\t\t\r\n\t\ta=a-1;\r\n\t}\r\n\r\n\t}", "public static void main(String[] args) {\n\t\tint i;\n\t\tfor(i=1;i<=10;i++)// print 1 to 10\n\t\t{\n\t\t\tSystem.out.println(i);\n\t\t}\n\t\tfor(int x=10;x>=1;x--)// print 10 to 1\n\t\t{\n\t\t\tSystem.out.println(x);\n\t\t}\n\t\tfor(int z=1;z<=10;z++)// print 1 to 10 except 6\n\t\t{\n\t\t\tif(z!=6)\n\t\t\t{\n\t\t\tSystem.out.println(z);\n\t\t}\n\t}\n\n}", "public static void main (String[] args){\n Scanner in = new Scanner (System.in);\n \n for (int n1=30;n1<=50;n1=n1+1)\n System.out.println(n1);\n\t}", "public static void main(String[] args) {\n\t\tfor (int i = 0; i < 10; i++) {\n\n\t\t\tif (i == 2) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tSystem.out.println(i);\n\t\t}\n\t\tSystem.out.println(\"**********************\");\n\n\t\t// continue - it will skip CURRENT iteration\n\n\t\tfor (int i = 1; i <= 5; i++) {\n\n\t\t\tif (i == 3 || i == 4) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tSystem.out.println(i);\n\t\t}\n\t\tSystem.out.println(\"*******************\");\n\t\t// I want to print nums from 1 to 20 except 5,6,7\n\t\tfor (int a = 1; a <= 20; a++) {//5\n\t\t\tif (a >=5 && a<=17) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tSystem.out.println(a);\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\r\nfor (int i=1; i<=20; i++) {\r\n\tif (i!=20) {\r\n\t\t\r\n\tSystem.out.print(i+\"+\");\r\n}\r\nelse {\r\n\tSystem.out.println(i);\r\n}\r\n\t}\r\n\r\n}", "public static void main(String[] args) {\n\t\tint i=9;\n\t\tint j=0;\n\t\tif(i++==10&&++j==1){\n\t\t\tSystem.out.println(i);\n\t\t\tSystem.out.println(j);\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(i);\n\t\t\tSystem.out.println(j);\n\t\t}\n\t\tSystem.out.println(5<<63);\n\t}", "void iterationStatements() \n{ \nSystem.out.println(\"***************while loops************* \");\n\nint i=1; //initialisation\nwhile(i<10) //condition\n{\nSystem.out.println(\"inside while loop\"); \ni++; //iteration\n}\n\n\n\nSystem.out.println(\"***************do-while loop************* \");\nint b=1; //initialisation\ndo\n{\nSystem.out.println(\"inside do-while loop\"); \nb++; //iteration\n}while(b<10); //condition\n\nSystem.out.println(\"ended do- while loop\"); \n\n\n\nSystem.out.println(\"***************for loop************* \");\n\nSystem.out.println(\"started for loop\"); \nfor(int c=0;c<10;c++) //all three written in one line separated by semicolons\n{\nSystem.out.println(\"inside while loop\"); \n}\nSystem.out.println(\"ended for loop\"); \n\n}", "CollectIteratorEvaluator(BooleanValue condition) {\n this.condition = condition;\n }", "public static void main(String[] args) {\n int currentLimit = 45 ; // try 45 , 65 ,90\n\n if (currentLimit >70 ) {\n System.out.println(\" you are speeding more than 70 --POINT TAKEN !! \");\n } else if (currentLimit > 60 ) {\n //System.out.println(\"your speed is less thank 70 but more than 60 \");\n System.out.println(\"your are speeding more than 60 and less than 70 -- WARNING TAKEN\");\n } else {\n System.out.println(\"KEEP DRIVING\");\n }\n\n\n }", "public static void main(String[] args) {\n\n\n int i = 0;\n while (i < 10) {\n i++;\n if (i%2==0) {\n System.out.println(i);\n }\n }\n }", "private static void printConditionally(List<Person> people, Condition condition) {\r\n\t\t\r\n\t\tfor(Person p : people) {\r\n\t\t\t\r\n\t\t\tif(condition.test(p)) {\r\n\t\t\t\tSystem.out.println(p);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "protected boolean iterate()\n {\n switch (stoCri)\n {\n case 1:\n if (isDFltdFMin()) return false;\n // continue to check the maximum number of iteration\n default:\n return (nIntRed == nIntRedMax) ? false : true;\n }\n }", "int getConditionValue();", "public static void printInt() {\n\t\tint i = 500;\n\t\twhile (i >=25) {\n\t\t\tif(i%6==0 && i%8==0) {\n\t\t\t\tSystem.out.print(i + \" \");\n\t\t\t}\n\t\t\t// Do not forget to type increment, otherwise it will be infinite loop\n\t\t\ti--;\n\t\t}\n\t}", "public static void main(String[] args) {\n\r\n\t\tSystem.out.println(\"enter a number \");\r\n\t\tScanner mack = new Scanner(System.in); \r\n\t\tint tip = mack.nextInt();\r\n\t\t\r\n\t\tfor (int x = tip; x <=100; x++) { \r\n\t\t\t\r\n\t\t\t if (tip > 50) {\r\n\t\t\t\t System.out.println(x);\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t}\r\n\r\n\t}", "public void testConditionalBreakDirective()\n {\n assertEvalEquals(\"1, 2, 3, 4, 5\",\n \"#foreach($i in [1..10])$i#if($i > 4)#break#end, #end\");\n }", "public static void main(String[] args) {\n\n\t\tint [] numbers = {1,2,3,4,5,6,7,8,9,10};\n\n\t\tint Startrange = 3;\n\t\tint Endrange = 7;\n\n\t\tfor(int i = 0; i < numbers.length; ++i) {\n\n\t\t\tif (!(numbers[i] > Startrange && numbers[i] < Endrange )){\n\t\t\t\tSystem.out.print(numbers[i] + \" \");\n\t\t\t}\t\n\n\t\t}\n\n\t}", "public static void main(String[] args) {\n int number = 1;\n do{\n if ( (number%2 == 0) && (number%7 == 0) ){\n System.out.print(number + \" \");\n }\n number++;\n }while(number<=1000);\n\n\n\n }", "@Override\n\tpublic void execute() throws BuildException {\n\t\t\n\t\tif(prioridade > 2) {\n\t\t\tSystem.out.println(texto);\n\t\t}\n\t}", "public static void main(String[] args) {\n\n int randomNumber = (int) (Math.random() * 11); // 0-10\n System.out.println(\"Random number is = \" + randomNumber);\n\n if(randomNumber % 3 != 0){\n System.out.println(false);\n }\n else{\n System.out.println(true);\n }\n\n System.out.println(\"End of the program!\");\n }", "public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\r\n\t\tSystem.out.println(\"Enter number till which ypou want armstrong numbers to be printed\");\r\n\t\tint n=sc.nextInt();\r\n\t\tfor(int i=2;i<=n;i++) {\r\n\t\t\tif(check(i)==true) System.out.println(i);\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\tint i = 1;\n\t\tdo {\n\t\t\tSystem.out.println(\"i = \"+i);\n\t\t\ti++;\n\t\t\t\n\t\t}while(i<=10);\n\t\tSystem.out.println(\"Outside the lopp\");\n\t\t\n\t\t/*\n\t\t * do { System.out.println(\"i = \"+i); i++;\n\t\t * \n\t\t * }while(true); System.out.println(\"Outside the loop\");\n\t\t */\n\t}", "@Override\r\n\tpublic void printResult() {\n\t\tfor(Integer i:numbers)\r\n\t\t{\r\n\t\t\tSystem.out.println(i+\" \");\r\n\t\t}\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\r\n\t\tSystem.out.println(\"Brojevi od 100 do 1000 djeljivi i sa 5 i sa 6 su:\");\r\n\t\t\r\n\t\tint brojac=0;\r\n\t\t//provjera brojeva koju su djeljivi i sa 5 i sa 6 i njihov ispis 10 po redu\r\n\t\tfor(int i=100; i<=1000; i++){\r\n\t\t\tif (is6(i) && (is5(i))){\r\n\t\t\t\tSystem.out.print(i+ \" \");\r\n\t\t\t\tbrojac++;\r\n\t\t\t\t\r\n\t\t\t\tif(brojac%10==0){\r\n\t\t\t\t\tSystem.out.println();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\n int num = 12354;\n\n System.out.println(nextGreater(num));\n }", "public static void main(String[] args) {\n\t\t int[] anArray = new int [11];\n\t\t //variable for size limit of array\n\t\t int limit = 10;\n\t\t //loops through array and gives each index a value from 1 to 10 respectively\n\t\t for(int i = 0; i <= limit; i++) {\n\t\t anArray[i] = i;\n\t\t }\n\t\t //initializing j at limit means it will only loop through once as after that the condition becomes false\n\t\t //initial j value changed to 0\n\t\t for(int j = 0; j <= limit; j++) {\n\t\t System.out.println(anArray[j]);\n\t\t }\n\t\t }", "public static void main(String[] args) {\n\t\tfor (int number = 20;number <= 100; number=number+2) {\n\t\t\tSystem.out.println(number);\n\t\t}\n\t}", "@Override\r\n public void run() {\n try {\r\n for (int x = 1; x <= 10500; x++) {\r\n System.out.println(x);\r\n sleep(5000);\r\n if (x % 50 == 0) {\r\n System.out.println(\"counting\");\r\n }\r\n }\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }", "void show(int step){\n System.out.println(\"Значение фунции в промежутке от \"+ 5 + \" до \"+ 10 +\" с шагом \" + 1);\n for (int i= 0; i < 10; i++) {\n this.calculate(i);\n }\n\n }", "public static void main(String[] args) {\n\n\t\tint num=10;\n\t\tdo {\n\t\t\tSystem.out.println(num);\n\t\t\tnum++;\n\t\t}while( num<20 );\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public static void main(String[] args){\n for(int i = 1 ;i < 1000; i++){\n int x = i / 100;\n int y = (i % 100) / 10;\n int z = i % 10;\n int sum = x*x*x + y*y*y +z*z*z;\n if(i == sum || i < 10)\n System.out.println(i);\n }\n }", "public static void main(String[] args) {\n\t\tint i=1;\r\n\t\t/*while (i<=10){\r\n\t\t\tSystem.out.println(i);\r\n\t\t\ti=i+1;\r\n\t\t}\r\n\t\tint j=10;\r\n\t\twhile (j>1){\r\n\t\t\tSystem.out.println(j);\r\n\t\t\tj=j-1;\r\n\t\t\t\r\n\t\t}*/\r\n\t\t\r\n\t\tfor (i=0;i<10;i++)\r\n\t\t{\r\n\t\t\tSystem.out.println(i);\r\n\t\t}\r\n\t\tfor (int j=10;j>=1;j--)\r\n\t\t{\r\n\t\t\tSystem.out.println(j);\r\n\t\t}\r\n\r\n\t}", "public static void main(String[] args) {\n\n int number_count = 0;\n\n while (number_count < 10){\n System.out.println(\"Hello World\");\n number_count += 1;\n }\n\n\n //write a program to show the sum of the first 10 mutiples of 4\n\n int number_count1 = 1;\n int outcome = 0;\n\n while (number_count1 < 10){\n\n outcome += 4 * number_count1;\n number_count1 += 1;\n\n\n\n }\n System.out.println( outcome );\n }", "public static void main(String[] args) {\n\n\n Scanner scanner = new Scanner(System.in);\n String info = \"\";\n\n int number = 0;\n while(true)\n {\n System.out.println(number);\n number++;\n if(number > 10)\n {\n break;\n }\n }\n }", "public static void main(String[] args) {\n int v=0;\n /*\n while (v<5){\n System.out.println(\"v: \"+v);\n v++;\n }\n */\n do {\n System.out.println(\"v: \"+v);\n v++;\n } while(v<5);\n\n\n }", "@Override\r\n\tpublic void run() {\r\n\t\tfor ( int i = 0; i < 10; i++ ) {\r\n\t\t\tSystem.out.println(i);\r\n\t\t\ttry {\r\n\t\t\t\tThread.sleep(900);\r\n\t\t\t}catch (InterruptedException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\n Scanner myScanner = new Scanner(System.in);\n int numero;\n int i;\n\n System.out.println(\"Ingrese un numero\");\n numero = myScanner.nextInt();\n\n for (i = numero; i<=numero+20; i ++) {\n System.out.println(i);\n }\n\n\n }", "public static void main(String[] args) {\r\n\t\t\t\r\n\t\t\tint year;\r\n\t\t\tfor(year=1;year<4000;year++) {\r\n\r\n\t\t // if value of i is between 4 and 9, continue is executed \r\n\t\t if(year % 4 == 0) {\r\n\t\t continue;\r\n\t\t \r\n\t\t } \r\n\t\t System.out.println(year);\r\n\t\t\r\n\t\t\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\nint no=38;\n//using for loop\n/*for(int i=3;i<=no;i++) {\n\tif(no==i) {\n\t\tSystem.out.println(no+ \" number is multiple of 3\");\n\t}\n\ti=i+3;\n}*/\n//using while loop\n/*int i=3;\nwhile(i<=no) {\n\tif(no==i) {\n\t\tSystem.out.println(no+\" number is multiple of 3\");\n\t}\n\ti=i+3;\n}*/\n//using do while loop\n/*int i=3;\ndo {\nif(no==i) {\n\tSystem.out.println(no+\" number is multiple of 3\");\n}\ni=i+3;\n}while(i<=no);*/\n//using recursion method\nint i=3;\n\nint result=FindNumberMunltipleOf3WithoutusingdivandmodOperator.print(i,no);\nif(result==-1) {\n\tSystem.out.println(no+\" number is multiple of 3 \");\n}\nSystem.out.println(no+\" number is not multiple of 3\");\n\n\t}", "public static void main(String[] args) {\n\n\t\tfor (int i = 0; i <= 12; i++) {\n\n\t\t\tif (i == 12) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tSystem.out.println(i);\n\t\t}\n\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tint i=0;//initialize\n\t\twhile(i<=10)//Condtiion\n\t\t{\n\t\t\tSystem.out.println(i);\n\t\t\ti++;//increment\n\t\t}\n\t\tSystem.out.println(\"Out of Loop\");\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tint i;\r\n\t\tfor(i=0;i<100;i++) {\r\n\t\t\tif((i%3==0)||(i%11==0)) {\r\n\t\t\t\tSystem.out.println(i);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "public void number(IntConsumer printNumber) throws InterruptedException {\n while(num.get() <= n){\n lock.lock();\n try{\n final int curNum = num.get();\n if(curNum % 3 != 0 && curNum % 5 != 0){\n printNumber.accept(num.getAndAdd(1));\n condition.signalAll();\n }else {\n condition.await();\n }\n }catch (Exception e){\n e.printStackTrace();\n }finally {\n lock.unlock();\n }\n }\n }", "public void run(int n){\n System.out.println(\"Find E Program starting on JNumber\");\n System.out.println(\"Finding E to the Nth Number\");\n System.out.println(this.toNth(n));\n System.out.println(\"Find E Program ending on JNumber\");\n }", "public void run(int i) {\r\n\t\twhile(sim40.memory[i] != -1) {\t\r\n\t\t\tswitch(sim40.memory[i]) {\r\n\r\n\t\t\t/* stop */\r\n\t\t\tcase 0: return;\r\n\r\n\t\t\t/* print, printb, printch */\r\n\t\t\tcase 1: case 2: case 3: \r\n\t\t\t\tthis.stdStream.getOutput().add(result(i));\r\n\t\t\t\t++i;\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tdefault:\r\n\t\t\t\t/* jump, comp, xcomp, ycomp, jineg, jipos, jizero, jicarry */\r\n\t\t\t\tif(sim40.memory[i] >= 19 && sim40.memory[i] <= 26)\r\n\t\t\t\t\ti = compareExecute(i);\r\n\r\n\t\t\t\telse if(sim40.memory[i] >= 4 && sim40.memory[i] <= 9) \r\n\t\t\t\t\ti = unaryExecute(i);\r\n\r\n\t\t\t\telse \r\n\t\t\t\t\ti = binaryExecute(i);\t\t\r\n\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcheckResetAllRegsAndFlags();\r\n\t\t\tsim40.updateViewVars();\r\n\t\t\tsim40.memory[Simulator.PROGRAM_COUNTER] = i;\r\n\t\t}\r\n\r\n\t}", "@Override\n\tprotected void runLine(Query query) {\n\t\tquery.inc();\n\t\tint i = Integer.parseInt(query.next());\n\t\tArrayList<Integer> originList = new ArrayList<Integer>();\n\t\toriginList.add(i - 1);\n\t\tArrayList<Integer> destinationList = new ArrayList<Integer>();\n\t\tparseSecondCondition(query, originList, destinationList);\n\t}", "public static void main(String[] args) {\n\t\tint a = 80;\n\t\t\n\t\tif (a > 100)\n\t\t\tSystem.out.println(\"a > 100\");\n\t\telse if (a > 50)\n\t\t\tSystem.out.println(\"50 < a < 100\");\n\t\telse\n\t\t\tSystem.out.println(\"50 > a\");\n\t}", "public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tint result = 0;\n\t\tint number = scanner.nextInt();\n\t\t\n\t\tif(number <= 99) {\n\t\t\tSystem.out.print(number);\n\t\t}\n\t\telse {\n\t\t\t\n\t\t\tif(number == 1000){\n\t\t\t\tnumber = 999;\n\t\t\t}\n\t\t\t\n\t\t\tresult = 99 + getResult(number);\n\t\t\t\n\t\t\tSystem.out.println(result);\n\t\t}\n\t}" ]
[ "0.6135347", "0.606589", "0.6061278", "0.599144", "0.5978027", "0.59484226", "0.59083", "0.59078044", "0.5880096", "0.58713156", "0.5851251", "0.5815322", "0.5777247", "0.5766467", "0.5737513", "0.56597203", "0.5655615", "0.5629195", "0.5597987", "0.55960137", "0.5590952", "0.5576765", "0.5573722", "0.5570451", "0.55324435", "0.5530531", "0.5521587", "0.54950726", "0.5473304", "0.54682374", "0.545364", "0.54151994", "0.53441715", "0.5343285", "0.53273696", "0.5318317", "0.5315309", "0.5306078", "0.5305972", "0.52935696", "0.5292855", "0.52919865", "0.527703", "0.52699417", "0.52685755", "0.5257317", "0.5244433", "0.52433753", "0.5234561", "0.52280205", "0.52259773", "0.52252805", "0.5222001", "0.5217296", "0.5199689", "0.51994514", "0.5199034", "0.5192055", "0.5178102", "0.51738334", "0.5167802", "0.5155804", "0.515313", "0.513751", "0.51371264", "0.5133772", "0.5130457", "0.5128522", "0.5124782", "0.51129186", "0.51071334", "0.510403", "0.5094023", "0.50904596", "0.5089592", "0.50842744", "0.50629014", "0.50629", "0.50514615", "0.50502366", "0.5048742", "0.50487244", "0.5046446", "0.50437564", "0.5042101", "0.50398856", "0.5036775", "0.50331575", "0.5023933", "0.502361", "0.5015119", "0.50130975", "0.50119156", "0.5003303", "0.49981636", "0.49952087", "0.49909645", "0.49874508", "0.498482", "0.49815536" ]
0.60002756
3
/ public: SelfShuntEvent (bean) interface
public Long getDomain() { return domain; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void consulterEvent() {\n\t\t\n\t}", "public Event getTheObject(){\n return this;\n }", "@Override\r\n\t\t\tpublic void execute(LiftEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void execute(LiftEvent e) {\n\t\t\t\t\r\n\t\t\t}", "Event () {\n // Nothing to do here.\n }", "public interface HarvestEvent\n{\n /**\n * Set flag to indicate entity has been harvested.\n *\n * @param harvested\n */\n public void setHarvested(boolean harvested);\n}", "@Override\n public abstract <E extends Event> E getThis();", "@SystemAPI\npublic interface ScheduleEvent extends IOperation {\n\t/**\n\t * \n\t * @return\tDe duur van de planbare actie (in Millis)\n\t */\n\tpublic TimeDuration getDuration();\n\t\n\t/**\n\t * \n\t * @return\tDe periode waarop de actie gescheduled is\n\t * \t\t\tDit wordt ingesteld door de Scheduler\n\t */\n\t@SystemAPI\n\tpublic TimePeriod getScheduledPeriod(); \n\t\n\t/**\n\t * Als de schedulable specifieke resources nodig heeft, bv. een bepaalde \n\t * dokter of verpleegster, dan komen deze in de onderstaande List.\n\t * @return\t\tDe lijst met specifieke resources die nodig zijn.\n\t */\n\tpublic List<ScheduleResource> neededSpecificResources();\n\t\n\t/**\n\t * \n\t * @return\tEen lijst met de nodige resources.\n\t */\n\tpublic List<ResourceType> neededResources();\n\t\n\t/**\n\t * Zet de periode wanneer de actie gescheduled is.\n\t * @param scheduledPeriod\tDe nieuwe geplande periode\n\t * @param usesResources\tDe resources die gebruikt worden bij het plannen\n\t * @param campus De campus die gebruikt wordt bij het plannen\n\t * @throws SchedulingException Als er niet gepland kan worden\n\t */\n\tpublic void schedule(TimePeriod scheduledPeriod, List<ScheduleResource> usesResources, Campus campus) throws SchedulingException;\n\t\t\n\t/**\n\t * Een methode om te controleren of de events behorende bij een warenhuis gepland kunnen worden.\n\t * @param warehouse\n\t * \t\t Het warenhuis waar gepland moet worden\n\t * @return true\n\t * \t\t Als er gepland kan worden\n\t * @return false\n\t * \t\t Als er niet gepland kan worden\n\t */\n\tpublic boolean canBeScheduled(Warehouse warehouse) ;\n\t\n\t/**\n\t * Een methode om een warehuis te updaten. Met de booleanse waarde\n\t * kan de actie ongedaan gemaakt worden.\n\t * \n\t * @param warehouse\n\t * \t\t Het warenhuis geupdate moet worden\n\t * @param inverse\n\t * \t\t De soort update\n\t */\n\tpublic void updateWarehouse(Warehouse warehouse, boolean inverse) ;\n\t\n\t/**\n\t * Een methode om de prioriteit op te vragen.\n\t * @return\n\t */\n\tpublic Priority getPriority() ;\t\n\t\n\t/**\n\t * Methode die de campus waarop deze actie wordt uitgevoerd opslaat, zodat\n\t * ze later kan gereproduceerd worden wanneer er geannuleerd werd.\n\t * @param \tcampus\n\t * \t\t\tDe CampusId van de campus die moet opgeslagen worden\n\t */\n\tpublic void setHandlingCampus(CampusId campus) ;\n\t\n\t/**\n\t * Methode die de opgeslagen campus terug opvraagt.\n\t * @return\tDe opgeslagen campus\n\t */\n\tpublic CampusId getHandlingCampus();\n\t\n\t/**\n\t * \n\t * @return event type\n\t */\n\t@SystemAPI\n\tpublic EventType getEventType();\n\t\n\t/**\n\t * @return start event\n\t */\n\tpublic Event getStart();\n\t\n\t/**\n\t * \n\t * @return stop event\n\t */\n\tpublic Event getStop();\n}", "public interface Event {\n\n}", "public interface Event {\n\n}", "public IEvent getCauseEvent();", "@Override\r\n\tpublic void onEvent(Event arg0) {\n\r\n\t}", "public interface SmartEventListener {\n\n\t/**\n\t * Specifies action to be taken on successful completion of action. Also\n\t * processes SmartEvent on the basis of event type contained in it\n\t * \n\t * @param smartEvent\n\t * : SmartEvent containing event type\n\t */\n\tvoid onCompleteActionWithSuccess(SmartEvent smartEvent);\n\n\t/**\n\t * Specifies action to be taken on unsuccessful completion of action. Also\n\t * processes SmartEvent on the basis of event type contained in it\n\t * \n\t * @param smartEvent\n\t * : SmartEvent containing event type\n\t */\n\tvoid onCompleteActionWithError(SmartEvent smartEvent);\n\n\tvoid shutDown();\n}", "public interface SubscribableByMe extends Event {\n}", "@Override\r\n\tpublic void startEvent() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void startEvent() {\n\t\t\r\n\t}", "ServerScheduledEvent getServerScheduledEvent();", "public void runEvent();", "@Override\r\n\t\t\tpublic void seeEvent(Player p, String s) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void seeEvent(Player p, String s) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void seeEvent(Player p, String s) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n public void preceedEvent(EventDelegate obj) {\n //System.out.println(\"AbstractEvent preceedEvent: \" + this + \" with engine \" + engine);\n\n if (engine != null) {\n engine.preceedEvent(this, getEventScheduler(), obj);\n }\n\n }", "protected abstract Self self();", "public Response fire(EventI event);", "public ScheduleEvent()\n\t{\n\n\t}", "BasicEvent createBasicEvent();", "BasicEvents createBasicEvents();", "public interface Event {\n String getName();\n void setName(String name);\n}", "public T caseEvent_Based(Event_Based object) {\n\t\treturn null;\n\t}", "public interface IEvent {\n}", "public interface DomainEvent {}", "public void TopDreiEvent();", "void event(Event e) throws Exception;", "public interface IEvent extends IScheduled {\n\n /** Sets the start date and time of an event as a Calendar object */\n public void setStart( Calendar start );\n\n /**\n * Sets the duration of an event, in milliseconds.\n * (Sigh... Yes, milliseconds are ridiculous precision. But they are\n * the most convenient unit for durations, since millisecond durations\n * are easy to add to Date and Calendar instances).\n * @parameter duration a non-negative duration in milliseconds.\n */\n public void setDuration( Long duration );\n\n}", "@Override\r\n\tpublic void onEvent(Object e) {\n\t}", "@Override\n public Object getEvent() {\n return eventObj;\n }", "@Override\r\n public void processEvent(IAEvent e) {\n\r\n }", "public interface IEvent {\r\n\r\n\t/**\r\n\t * Returns the source of the event. As events are emitted\r\n\t * by instances that are bound to an instance, this method\r\n\t * will point to the corresponding source emitter that \r\n\t * received the event.\r\n\t * \r\n\t * @return The source of the event.\r\n\t */\r\n\tpublic IEventCollector getSource();\r\n\t\r\n\t/**\r\n\t * The type of the event. This will be the string that is\r\n\t * negotiated in the contract. \r\n\t * \r\n\t * @return The type of the event that has been sent. This\r\n\t * \twill be the parameter as defined in the contract.\r\n\t */\r\n\tpublic String getType();\r\n\t\r\n\t/**\r\n\t * The data object that has been sent as event object. \r\n\t * \r\n\t * @return The data object of this event.\r\n\t */\r\n\tpublic Object getData();\r\n\r\n}", "@Override\n\tpublic void processEvent(Event e) {\n\n\t}", "HabitEvent getPassedHabitEvent();", "Event createEvent();", "Event createEvent();", "public interface HardEventListener {\n void onHardEvent(HardEvent event);\n}", "public interface NoEventType {\n\n}", "@Override\r\n\tpublic void laught() {\n\r\n\t}", "public interface EventDefinition extends EObject {\r\n}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t \n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t \n\t\t\t}", "public interface ActiveEvent {\n\n /**\n * Dispatch the event to its target, listeners of the events source,\n * or do whatever it is this event is supposed to do.\n */\n public void dispatch();\n}", "@Override\r\n\tpublic void onBattleEvent(BattleEvent e) {\n\t\t\r\n\t}", "public interface Event extends Serializable {\n\n Long getEventId();\n\n String getEventTitle();\n\n String getEventDescription();\n\n Long getEventAssignerId();\n\n Date getOriginalEventStartDate();\n\n Date getEventStartDate();\n\n /***\n * Sets the new start date for new generating event.\n *\n * @param startEventDate\n */\n void setEventStartDate(Date startEventDate);\n\n Date getEventEndDate();\n\n /***\n * Sets the new end date for new generating event.\n *\n * @param endEventDate\n */\n void setEventEndDate(Date endEventDate);\n//\n// Date getEventRemindDate();\n//\n// /***\n// * Sets the new remind date for new generating event.\n// *\n// * @param endEventDate\n// */\n// void setEventRemindDate(Date endEventDate);\n\n /***\n * Return calendarId field generated with system calendar after sync it\n *\n * @return\n * @see SyncUtils\n */\n Long getCalendarId();\n\n /***\n * Sets calendarId field generated with system calendar after sync it\n *\n * @param calendarId\n * @see SyncUtils\n */\n void setCalendarId(Long calendarId);\n\n /***\n * @return repeat period for current entity instance\n * @see EventProperties.RepeatPeriod\n */\n @EventProperties.RepeatPeriod\n int getEventRepeatPeriod();\n\n /***\n * @return event icon url\n */\n String getEventIconUrl();\n\n /***\n * @return boolean which indicates is event editable\n */\n Boolean isEditable();\n\n /***\n * @return boolean which indicates is event length All day long\n */\n Boolean isAllDayEvent();\n}", "public String getEventName();", "@Override\r\n public void onEvent(FlowableEvent event) {\n }", "void trigger(Entity e);", "public void sendEvent(Event event);", "@Override //to be moved to Cloud service\r\n\tpublic void createEvent(String eventName) {\n\t\t\r\n\t}", "@Override\n\tpublic void e() {\n\n\t}", "public Event() {}", "public interface Events {\n\n /**\n * Archive has stored the entities within a SIP.\n * <p>\n * Indicates that a SIP has been sent to the archive. May represent an add,\n * or an update.\n * </p>\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>Number of entities archived</dd>\n * <dt>eventTarget</dt>\n * <dd>every archived entity</dd>\n * </dl>\n * </p>\n */\n public static final String ARCHIVE = \"archive\";\n\n /**\n * Signifies that an entity has been identified as a member of a specific\n * batch load process.\n * <p>\n * There may be an arbitrary number of independent events signifying the\n * same batch (same outcome, date, but different sets of targets). A unique\n * combination of date and outcome (batch label) identify a batch.\n * </p>\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>Batch label/identifier</dd>\n * <dt>eventTarget</dt>\n * <dd>Entities in a batch</dd>\n * </dl>\n * </p>\n */\n public static final String BATCH = \"batch\";\n\n /**\n * File format characterization.\n * <p>\n * Indicates that a format has been verifiably characterized. Format\n * characterizations not accompanied by a corresponding characterization\n * event can be considered to be unverified.\n * </p>\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>format, in the form \"scheme formatId\" (whitespace separated)</dd>\n * <dt>eventTarget</dt>\n * <dd>id of characterized file</dd>\n * </dl>\n * </p>\n */\n public static final String CHARACTERIZATION_FORMAT =\n \"characterization.format\";\n\n /**\n * Advanced file characterization and/or metadata extraction.\n * <p>\n * Indicates that some sort of characterization or extraction has produced a\n * document containing file metadata.\n * </p>\n * *\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>id of File containing metadata</dd>\n * <dt>eventTarget</dt>\n * <dd>id of File the metadata describes</dd>\n * </dl>\n */\n public static final String CHARACTERIZATION_METADATA =\n \"characterization.metadata\";\n\n /**\n * Initial deposit/transfer of an item into the DCS, preceding ingest.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>SIP identifier uid</dd>\n * <dt>eventTarget</dt>\n * <dd>id of deposited entity</dd>\n * </dl>\n * </p>\n */\n public static final String DEPOSIT = \"deposit\";\n\n /**\n * Content retrieved by dcs.\n * <p>\n * Represents the fact that content has been downloaded/retrieved by the\n * dcs.\n * </p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>http header-like key/value pairs representing circumstances\n * surrounding upload</dd>\n * <dt>eventTarget</dt>\n * <dd>id of File whose staged content has been downloaded</dd>\n * </dl>\n */\n public static final String FILE_DOWNLOAD = \"file.download\";\n\n /**\n * uploaaded/downloaded file content resolution.\n * <p>\n * Indicates that the reference URI to a unit of uploaded or downloaded file\n * content has been resolved and replaced with the DCS file access URI.\n * </p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd><code>reference_URI</code> 'to' <code>dcs_URI</code></dd>\n * <dt>eventTarget</dt>\n * <dd>id of File whose staged content has been resolved</dd>\n * </dl>\n */\n public static final String FILE_RESOLUTION_STAGED = \"file.resolution\";\n\n /**\n * Indicates the uploading of file content.\n * <p>\n * Represents the physical receipt of bytes from a client.\n * </p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>http header-like key/value pairs representing circumstanced\n * surrounding upload</dd>\n * <dt>eventTarget</dt>\n * <dd>id of File whose staged content has been uploaded</dd>\n * </dl>\n */\n public static final String FILE_UPLOAD = \"file.upload\";\n\n /**\n * Fixity computation/validation for a particular File.\n * <p>\n * Indicates that a particular digest has been computed for given file\n * content. Digest values not accompanied by a corresponding event may be\n * considered to be un-verified.\n * </p>\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>computed digest value of the form \"alorithm value\" (whitepsace\n * separated)</dd>\n * <dt>eventTarget</dt>\n * <dd>id of digested file</dd>\n * </dl>\n * </p>\n */\n public static final String FIXITY_DIGEST = \"fixity.digest\";\n\n /**\n * Assignment of an identifier to the given entity, replacing an\n * existing/temporary id. *\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd><code>old_identifier</code> 'to' <code>new_identifier</code></dd>\n * <dt>eventTarget</dt>\n * <dd>new id of object</dd>\n * </dl>\n */\n public static final String ID_ASSIGNMENT = \"identifier.assignment\";\n\n /**\n * Marks the start of an ingest process.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of all entities an ingest SIP</dd>\n * </dl>\n * </p>\n */\n public static final String INGEST_START = \"ingest.start\";\n\n /**\n * Signifies a successful ingest outcome.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of all entities an ingest SIP</dd>\n * </dl>\n * </p>\n */\n public static final String INGEST_SUCCESS = \"ingest.complete\";\n\n /**\n * Signifies a failed ingest outcome.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of all entities an ingest SIP</dd>\n * </dl>\n * </p>\n */\n public static final String INGEST_FAIL = \"ingest.fail\";\n\n /**\n * Signifies that a feature extraction or transform has successfully\n * occurred.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of a DeliverableUnit or Collection</dd>\n * </dl>\n * </p>\n */\n public static final String TRANSFORM = \"transform\";\n\n /**\n * Signifies that a feature extraction or transform failed.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of a DeliverableUnit or Collection</dd>\n * </dl>\n * </p>\n */\n public static final String TRANSFORM_FAIL = \"transform.fail\";\n\n /**\n * Signifies a file has been scanned by the virus scanner.\n * <p>\n * Indicates that a file has been scanned by a virus scanner. There could be\n * more than one event for a file.\n * </p>\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of file whose content was scanned</dd>\n * </dl>\n * </p>\n */\n public static final String VIRUS_SCAN = \"virus.scan\";\n\n /**\n * Signifies an new deliverable unit is being ingested as an update to the target deliverable unit.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of the deliverable unit being updated</dd>\n * </dl>\n * </p>\n */\n public static final String DU_UPDATE = \"du.update\";\n\n}", "public interface TheBigEntity_EventService {\n\t\n\tvoid onAfterCreate(TheBigEntity_ entity);\n\t\n\tvoid onBeforeCreate(TheBigEntity_ entity);\n\t\n\tvoid onBeforeSave(TheBigEntity_ entity);\n\t\n\tvoid onAfterSave(TheBigEntity_ entity);\n\t\n\tvoid onBeforeLinkSave(TheBigEntity_ parent, Object linked);\n\t\n\tvoid onAfterLinkSave(TheBigEntity_ parent, Object linked);\n\t\n\tvoid onBeforeLinkDelete(TheBigEntity_ parent, Object linked);\n\t\n\tvoid onBeforeDelete(TheBigEntity_ entity);\n\t\n\tvoid onAfterDelete(TheBigEntity_ entity);\n\t\n\tvoid onAfterLinkDelete(TheBigEntity_ parent, Object linked);\n\t\n}", "public WorkTimeEvent() {\r\n super();\r\n }", "@Override\n public void onTakeCoffeePodRaised() {\n }", "private StoreEvent(E source) {\n super(source);\n }", "RemoteEvent createRemoteEvent();", "@Override\n\tpublic void addSelfTrigger(ISelfTrigger trigger) {\n\t\t\n\t}", "public boolean isSelfMessageProcessingEvent();", "Event getEvent();", "public AutoEvents() {\n super();\n _autoEventList = new ArrayList();\n }", "public Event(){\n \n }", "@Override\n\tpublic void transferEvent(AbstractEvent event) throws IOException, InterruptedException {\n\t}", "protected ICEvent() {}", "public void setEventName(String name);", "@Override\r\n\tpublic int getEventType() {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic int getEventType() {\n\t\treturn 0;\r\n\t}", "@Override\n public boolean usesEvents()\n {\n return false;\n }", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "private void createEvents() {\n\t}", "public Event getCause(){\n return cause;\n }", "public abstract void fire();", "public abstract void fire();", "public interface Event {\n enum eventTriggers{\n Add_Event,\n Delete_Event,\n Reject_Event,\n Accept_Event,\n Find_Free_time\n }\n\n void addevent(AbstractEvent event);\n\n public void deleteEvent(String eventName);\n\n void update(AbstractEvent oldEvent,AbstractEvent newEvent);\n\n}", "public T caseEvent(Event object) {\r\n\t\treturn null;\r\n\t}", "@Override\n public String getEventType()\n {\n\t return null;\n }", "public\n CreateEvent()\n {}", "@Override\n\tpublic void handleEvent(Event arg0) {\n\t\t\n\t}", "@Override\n\tprotected void onEventComming(EventCenter eventCenter) {\n\t}", "public EventOccurrence getSendEvent();", "public interface EventBus {\n\n public String name();\n\n /**\n * Posts an event to all registered subscribers. This method will return successfully after the\n * event has been posted to all subscribers, and regardless of any exceptions thrown by\n * subscribers.\n *\n * @param event event to post.\n */\n public void post(Object event);\n\n}", "StartEvent createStartEvent();", "@Override\r\n\tprotected void initEvents() {\n\t\t\r\n\t}", "public T caseEvent(Event object) {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic void onEvent(GlassUpEvent event) {\n\t\t\r\n\t}", "public DamagePlayerEvent(Entity e) {\r\n this.e = e;\r\n }", "public void handStarted(TrucoEvent event) {\n\n }", "public interface Event\n\t{\n\t\tpublic static final String EVENT_ID = \"aether.event.id\";\n\t\tpublic static final String TIME = \"aether.event.time\";\n\t\tpublic static final String EVENT_TYPE = \"aether.event.type\";\n\t}", "EventUse createEventUse();", "public interface Event extends Fact\n{\n\n public abstract Date getTimestamp();\n\n}" ]
[ "0.6416374", "0.6019017", "0.59952956", "0.59952956", "0.5990847", "0.59760076", "0.59210765", "0.59102637", "0.5896082", "0.5896082", "0.58764935", "0.58760536", "0.58389187", "0.58246726", "0.58177876", "0.58177876", "0.5784853", "0.5740853", "0.5724287", "0.5724287", "0.5724287", "0.5700873", "0.5694688", "0.56731147", "0.5660441", "0.5648045", "0.56362134", "0.56163913", "0.5614027", "0.5607105", "0.56017095", "0.5597625", "0.5592523", "0.5588441", "0.55745256", "0.55724794", "0.5565853", "0.55569625", "0.55490863", "0.5532624", "0.55312705", "0.55312705", "0.55292624", "0.55288935", "0.55171084", "0.5516826", "0.5504001", "0.5504001", "0.54794294", "0.5471539", "0.54482806", "0.5418861", "0.54154605", "0.5397434", "0.53968006", "0.5392865", "0.5383699", "0.53801864", "0.5376872", "0.5376296", "0.5374098", "0.5361825", "0.5359732", "0.5356953", "0.535591", "0.535361", "0.53480136", "0.53332156", "0.53316116", "0.532398", "0.53220654", "0.53183377", "0.53182364", "0.53182364", "0.53064054", "0.530339", "0.530339", "0.530339", "0.530339", "0.530339", "0.5301677", "0.5299153", "0.5295951", "0.5295951", "0.5295289", "0.529512", "0.52786404", "0.52760977", "0.527438", "0.52671033", "0.525934", "0.5257904", "0.52575195", "0.5254414", "0.52526426", "0.5250359", "0.5243196", "0.5242273", "0.5242157", "0.523564", "0.5232154" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { int a = 2; b++; b++; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Created by liujiawang on 2019/4/29.
public interface CanteensDao extends JpaRepository<CanteensEntity,Integer>{ CanteensEntity queryByCanteenId(int id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n protected void initialize() {\n\n \n }", "@Override\n void init() {\n }", "@Override\n public void memoria() {\n \n }", "public final void mo51373a() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n public void init() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "private void poetries() {\n\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n protected void initialize() \n {\n \n }", "public void mo38117a() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n public int describeContents() { return 0; }", "Petunia() {\r\n\t\t}", "@Override\n protected void getExras() {\n }", "private Rekenhulp()\n\t{\n\t}", "private UsineJoueur() {}", "@Override\n public void init() {}", "public void mo4359a() {\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "private void init() {\n\n\t}", "public Pitonyak_09_02() {\r\n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n public void initialize() {\n \n }", "private TMCourse() {\n\t}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "private Singletion3() {}", "@Override\r\n\tpublic void init() {}", "@Override\n public void initialize() { \n }", "public void mo6081a() {\n }", "@Override\n protected void init() {\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "public contrustor(){\r\n\t}", "private MetallicityUtils() {\n\t\t\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "Consumable() {\n\t}", "private void strin() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "private MApi() {}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\n\tpublic void init() {\n\t}", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }" ]
[ "0.59710085", "0.5924971", "0.55786216", "0.55786216", "0.55740494", "0.55647564", "0.5520576", "0.550359", "0.5441646", "0.54411715", "0.543595", "0.54229814", "0.54069346", "0.54054093", "0.5400313", "0.5397669", "0.5391351", "0.5384764", "0.5382996", "0.5382996", "0.5382996", "0.5382996", "0.5382996", "0.5382996", "0.5373623", "0.5369554", "0.5357357", "0.53559107", "0.5351979", "0.53468925", "0.5338576", "0.5338576", "0.5337567", "0.53354764", "0.53231853", "0.5317312", "0.5313755", "0.5310911", "0.5284276", "0.52683014", "0.52613705", "0.52446", "0.5244442", "0.52388525", "0.5237667", "0.52312475", "0.5220114", "0.52173585", "0.52173585", "0.52173585", "0.52173585", "0.52173585", "0.5197776", "0.5197776", "0.51942587", "0.51934934", "0.519288", "0.519288", "0.519288", "0.5192877", "0.51923656", "0.5191692", "0.5191692", "0.5191692", "0.5191692", "0.5191692", "0.5191692", "0.5191692", "0.51898134", "0.51898134", "0.51898134", "0.5178155", "0.51755685", "0.51735646", "0.5161441", "0.5159802", "0.5156328", "0.5156328", "0.5151902", "0.5151063", "0.5149385", "0.51362664", "0.5132706", "0.5132706", "0.5132706", "0.5118751", "0.5115585", "0.5111175", "0.5110554", "0.51017815", "0.51009405", "0.5099432", "0.5089418", "0.5089418", "0.5089418", "0.5085335", "0.50816506", "0.50743455", "0.50698256", "0.50695306", "0.50695306" ]
0.0
-1
Constructor for the TestRenameFieldRefactoring object
public TestRenameFieldRefactoring(String name) { super(name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void test01() throws RefactoringException {\r\n RenameFieldRefactoring rfr = new RenameFieldRefactoring();\r\n rfr.setClass(\"field\", \"RenameFieldTest\");\r\n rfr.setField(\"simple\");\r\n rfr.setNewName(\"changed\");\r\n\r\n rfr.run();\r\n\r\n // Check things out\r\n File check = new File(this.check + \"\\\\ut2\\\\step11\");\r\n\r\n FileCompare.assertEquals(\"RenameFieldTest is incorrect\",\r\n new File(check, \"RenameFieldTest.java\"),\r\n new File(dest, \"RenameFieldTest.java\"));\r\n FileCompare.assertEquals(\"UsesFieldTest is incorrect\",\r\n new File(check, \"UsesFieldTest.java\"),\r\n new File(dest, \"UsesFieldTest.java\"));\r\n FileCompare.assertEquals(\"InheritFieldTest is incorrect\",\r\n new File(check, \"InheritFieldTest.java\"),\r\n new File(dest, \"InheritFieldTest.java\"));\r\n }", "public void test08() throws RefactoringException {\r\n RenameFieldRefactoring rfr = new RenameFieldRefactoring();\r\n rfr.setClass(\"field\", \"RenameFieldTest\");\r\n rfr.setField(\"childObject\");\r\n rfr.setNewName(\"myChild\");\r\n\r\n rfr.run();\r\n\r\n // Check things out\r\n File check = new File(this.check + \"\\\\ut2\\\\step16\");\r\n\r\n FileCompare.assertEquals(\"RenameFieldTest is incorrect\",\r\n new File(check, \"RenameFieldTest.java\"),\r\n new File(dest, \"RenameFieldTest.java\"));\r\n FileCompare.assertEquals(\"UsesFieldTest is incorrect\",\r\n new File(check, \"UsesFieldTest.java\"),\r\n new File(dest, \"UsesFieldTest.java\"));\r\n FileCompare.assertEquals(\"InheritFieldTest is incorrect\",\r\n new File(check, \"InheritFieldTest.java\"),\r\n new File(dest, \"InheritFieldTest.java\"));\r\n }", "public void test03() throws RefactoringException {\r\n RenameFieldRefactoring rfr = new RenameFieldRefactoring();\r\n rfr.setClass(\"field\", \"RenameFieldTest\");\r\n rfr.setField(\"height\");\r\n rfr.setNewName(\"changed\");\r\n\r\n rfr.run();\r\n\r\n // Check things out\r\n File check = new File(this.check + \"\\\\ut2\\\\step13\");\r\n\r\n FileCompare.assertEquals(\"RenameFieldTest is incorrect\",\r\n new File(check, \"RenameFieldTest.java\"),\r\n new File(dest, \"RenameFieldTest.java\"));\r\n FileCompare.assertEquals(\"UsesFieldTest is incorrect\",\r\n new File(check, \"UsesFieldTest.java\"),\r\n new File(dest, \"UsesFieldTest.java\"));\r\n FileCompare.assertEquals(\"InheritFieldTest is incorrect\",\r\n new File(check, \"InheritFieldTest.java\"),\r\n new File(dest, \"InheritFieldTest.java\"));\r\n }", "public void test04() throws RefactoringException {\r\n RenameFieldRefactoring rfr = new RenameFieldRefactoring();\r\n rfr.setClass(\"field\", \"RenameFieldTest\");\r\n rfr.setField(\"CODE_ON\");\r\n rfr.setNewName(\"changed\");\r\n\r\n rfr.run();\r\n\r\n // Check things out\r\n File check = new File(this.check + \"\\\\ut2\\\\step14\");\r\n\r\n FileCompare.assertEquals(\"RenameFieldTest is incorrect\",\r\n new File(check, \"RenameFieldTest.java\"),\r\n new File(dest, \"RenameFieldTest.java\"));\r\n FileCompare.assertEquals(\"UsesFieldTest is incorrect\",\r\n new File(check, \"UsesFieldTest.java\"),\r\n new File(dest, \"UsesFieldTest.java\"));\r\n FileCompare.assertEquals(\"InheritFieldTest is incorrect\",\r\n new File(check, \"InheritFieldTest.java\"),\r\n new File(dest, \"InheritFieldTest.java\"));\r\n }", "public void test02() throws RefactoringException {\r\n RenameFieldRefactoring rfr = new RenameFieldRefactoring();\r\n rfr.setClass(\"field\", \"RenameFieldTest\");\r\n rfr.setField(\"code\");\r\n rfr.setNewName(\"changed\");\r\n\r\n rfr.run();\r\n\r\n // Check things out\r\n File check = new File(this.check + \"\\\\ut2\\\\step12\");\r\n\r\n FileCompare.assertEquals(\"RenameFieldTest is incorrect\",\r\n new File(check, \"RenameFieldTest.java\"),\r\n new File(dest, \"RenameFieldTest.java\"));\r\n FileCompare.assertEquals(\"UsesFieldTest is incorrect\",\r\n new File(check, \"UsesFieldTest.java\"),\r\n new File(dest, \"UsesFieldTest.java\"));\r\n FileCompare.assertEquals(\"InheritFieldTest is incorrect\",\r\n new File(check, \"InheritFieldTest.java\"),\r\n new File(dest, \"InheritFieldTest.java\"));\r\n }", "public void test06() {\r\n RenameFieldRefactoring rfr = new RenameFieldRefactoring();\r\n rfr.setClass(\"field\", \"RenameFieldTest\");\r\n rfr.setField(\"simple\");\r\n rfr.setNewName(\"code\");\r\n\r\n boolean exceptionThrown = false;\r\n\r\n try {\r\n rfr.run();\r\n } catch (RefactoringException re) {\r\n exceptionThrown = true;\r\n assertEquals(\"Incorrect exception\", \"A field named code already exists in class RenameFieldTest\", re.getMessage());\r\n }\r\n\r\n assertTrue(\"No exception thrown\", exceptionThrown);\r\n }", "public void test05() {\r\n RenameFieldRefactoring rfr = new RenameFieldRefactoring();\r\n rfr.setClass(\"field\", \"RenameFieldTest\");\r\n rfr.setField(\"crazy\");\r\n rfr.setNewName(\"changed\");\r\n\r\n boolean exceptionThrown = false;\r\n\r\n try {\r\n rfr.run();\r\n } catch (RefactoringException re) {\r\n exceptionThrown = true;\r\n assertEquals(\"Incorrect exception\", \"No field named crazy is contained in RenameFieldTest\", re.getMessage());\r\n }\r\n\r\n assertTrue(\"No exception thrown\", exceptionThrown);\r\n }", "private Field(String name) {\n\t\t\tthis.name = name;\n\t\t}", "public void testCtorStr() throws Exception {\n ConfigManager.getInstance()\n .add(\"test_files\" + File.separator\n + \"RenameConverter.xml\");\n\n RenameConverter converter = new RenameConverter(DEFAULT_NAMESPACE);\n assertNotNull(\"Unable to create RenameConverter instance.\", converter);\n\n Field fdMaps = converter.getClass().getDeclaredField(\"toRenameNames\");\n fdMaps.setAccessible(true);\n\n Map map = (Map) fdMaps.get(converter);\n assertEquals(\"The UML2:TypedElement.type should be renamed to UML:StructuralFeature.type\",\n \"UML:StructuralFeature.type\", map.get(\"UML2:TypedElement.type\"));\n assertEquals(\"The UML:Class should be renamed to UML:Classifier\",\n \"UML:Classifier\", map.get(\"UML:Class\"));\n assertEquals(\"The UML:DateType should be renamed to UML:Class\",\n \"UML:Classifier\", map.get(\"UML:DateType\"));\n }", "protected JBuilderRenameClassRefactoring()\n\t{\n\t\tsuper();\n\t}", "public FieldNameRenamer(IManagedTypeProvider managedTypeProvider,\n\t\t String typeName,\n\t\t String oldFieldName,\n\t\t String newFieldName) {\n\n\t\t\tsuper();\n\t\t\tthis.typeName = typeName;\n\t\t\tthis.oldFieldName = oldFieldName;\n\t\t\tthis.newFieldName = newFieldName;\n\t\t\tthis.managedTypeProvider = managedTypeProvider;\n\t\t}", "public void testCtor() throws Exception {\n ConfigManager.getInstance()\n .add(\"test_files\" + File.separator\n + \"RenameConverter1.xml\");\n\n RenameConverter converter = new RenameConverter();\n assertNotNull(\"Unable to create RenameConverter instance.\", converter);\n\n Field fdMaps = converter.getClass().getDeclaredField(\"toRenameNames\");\n fdMaps.setAccessible(true);\n\n Map map = (Map) fdMaps.get(converter);\n assertEquals(\"There is not rename maps.\", 0, map.size());\n }", "public ChangeFieldEf() {\r\n\t\tthis(null, null);\r\n\t}", "public Field() {\r\n\t}", "public NbRenameRefactoringPlugin(AbstractRefactoring refactoring) {\n super(refactoring);\n }", "protected abstract Refactoring createRefactoring();", "protected abstract Refactoring createRefactoring();", "public SortBuilder(String field) {\n if (field == null) {\n field = \"\";\n }\n switch (field) {\n case \"name\":\n this.field = \"name\";\n break;\n case \"introduced\":\n this.field = \"introduced\";\n break;\n case \"discontinued\":\n this.field = \"discontinued\";\n break;\n case \"company_id\":\n this.field = \"company\";\n break;\n case \"id\":\n default:\n this.field = \"id\";\n break;\n }\n }", "@Test\n public void test_setFirstName() {\n String value = \"new_value\";\n instance.setFirstName(value);\n\n assertEquals(\"'setFirstName' should be correct.\",\n value, TestsHelper.getField(instance, \"firstName\"));\n }", "public void test07() throws RefactoringException {\r\n RenameFieldRefactoring rfr = new RenameFieldRefactoring();\r\n rfr.setClass(\"\", \"XDateChooser\");\r\n rfr.setField(\"_maxDate\");\r\n rfr.setNewName(\"_maximumDate\");\r\n\r\n rfr.run();\r\n\r\n // Check things out\r\n File check = new File(this.check + \"\\\\ut2\\\\step15\");\r\n\r\n FileCompare.assertEquals(\"XDateChooser is incorrect\",\r\n new File(check, \"XDateChooser.java\"),\r\n new File(root + \"\\\\XDateChooser.java\"));\r\n }", "public PvtFieldMutator forField(String targetFieldName) {\n this.targetName = targetFieldName;\n return this;\n }", "public Field(String watermark,\n String showfieldname,\n String saveRequired,\n String jfunction,\n String onChange,\n String onKeyDown,\n String defaultValue,\n String type,\n String sqlValue,\n String field_name,\n String relation,\n String states,\n String relationField,\n String onClickVList,\n String jIdList,\n String name,\n String searchRequired,\n String id,\n String placeholder,\n String value,\n String fieldType,\n String onclicksummary,\n String newRecord,\n List<Field> dListArray,\n List<OptionModel> mOptionsArrayList,\n String onclickrightbutton,\n String webSaveRequired,\n String field_type) {\n\n this.watermark = watermark;\n this.showfieldname = showfieldname;\n this.saveRequired = saveRequired;\n this.jfunction = jfunction;\n this.onChange = onChange;\n this.onKeyDown = onKeyDown;\n this.defaultValue = defaultValue;\n this.type = type;\n this.sqlValue = sqlValue;\n this.field_name = field_name;\n this.relation = relation;\n this.states = states;\n this.relationField = relationField;\n this.onClickVList = onClickVList;\n this.jIdList = jIdList;\n this.name = name;\n this.searchRequired = searchRequired;\n this.id = id;\n this.placeholder = placeholder;\n this.value = value;\n this.fieldType = fieldType;\n this.onclicksummary = onclicksummary;\n this.newRecord = newRecord;\n this.dListArray = dListArray;\n this.optionsArrayList = mOptionsArrayList;\n this.onclickrightbutton = onclickrightbutton;\n this.webSaveRequired = webSaveRequired;\n this.field_type = field_type;\n\n// this( watermark, showfieldname, saveRequired, jfunction,\n// onChange, onKeyDown, defaultValue, type, sqlValue,\n// field_name, relation, states, relationField,\n// onClickVList, jIdList, name, \"\",\n// searchRequired, id, placeholder, value,\n// fieldType, onclicksummary, newRecord, \"\",\n// dListArray,mOptionsArrayList,onclickrightbutton);\n }", "public AttributeField(Field field){\n this.field = field;\n }", "private FieldInfo() {\r\n\t}", "public UpperCaseField() {\n this(null, 0, 0);\n }", "protected Field setName(String name){\n\t\tif (name == null)\n\t\t\tname = \"\";\n\t\tthis.name = name;\n\t\tnameText.setText(name.equals(\"\") ? \"\" : this.name+\": \");\n\t\treturn this;\n\t}", "public void setFieldName(String fieldName);", "public FieldParser(String f) throws Exception {\n\t\tthis.fixFileName = f;\n\t}", "public TestCase(String name) {\n fName= name;\n }", "@Test\n public void testToString() \n {\n String fieldName = \"Old Field\";\n String text = \"New Field\";\n \n Field instance = new Field(fieldName, text);\n \n String expResult = \"Old Field has been updated to New Field\";\n String result = instance.toString();\n assertEquals(expResult, result);\n }", "public void setFieldName(String newValue) {\n TF_Field_Name = newValue.toUpperCase().trim(); // Field names are all in UPPER CASE.\n }", "@Test\n public void test_setUsername() {\n String value = \"new_value\";\n instance.setUsername(value);\n\n assertEquals(\"'setUsername' should be correct.\",\n value, TestsHelper.getField(instance, \"username\"));\n }", "public BPFieldOfActivityAnnotationsRepositoryTest(String name) {\r\n\t\tsuper(name);\r\n\t}", "public FieldScrapper() \r\n {\r\n }", "@Override\n\tprotected void initializeFields() {\n\n\t}", "public void renameField(String typeName, String oldFieldName, String newFieldName) {\n\t\tFieldNameRenamer renamer = buildFieldNameRenamer(typeName, oldFieldName, newFieldName);\n\t\tgetStateObject().accept(renamer);\n\t}", "public FieldNotFoundException() {\n }", "@Test\n public void test_getAndSetFieldName_Methods() throws Exception {\n System.out.println(\"test_getAndSet_FieldName_Methods\");\n // FieldSet test values\n\n\n FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$WEB$__$FORM$_S_$FORM$__$REQUIRED formRequired_FieldSet = new FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$WEB$__$FORM$_S_$FORM$__$REQUIRED(executeInfo, null);\n\n formRequired_FieldSet.schemaInfo_Positioned = schemaInfoFieldSet_formRequired;\n\n\n\n\n // Test the Special Field-Value Get & Set methods______________________________________________________________\n\n\n\n FieldSet_TestUtilities.test_SetAndGetFieldName(executeInfo, formRequired_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$WEB$__$FORM$_S_$FORM$__$REQUIRED.class ,\n \"set_IsRequired\", Symbol.class, \"set_IsRequired__Special\", \"get_IsRequired\",\n notRequired, null, null, notRequired); // last 4 params: expected value, null expected value, unused expected value, default expected value \n\n\n FieldSet_TestUtilities.test_SetAndGetFieldName(executeInfo, formRequired_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$WEB$__$FORM$_S_$FORM$__$REQUIRED.class ,\n \"set_RequiredImagePath\", String.class, \"set_RequiredImagePath__Special\", \"get_RequiredImagePath\",\n \"\\test\\required.gif\", null, null, \"/images/required.gif\"); // last 4 params: expected value, null expected value, unused expected value, default expected value \n\n FieldSet_TestUtilities.test_SetAndGetFieldName(executeInfo, formRequired_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$WEB$__$FORM$_S_$FORM$__$REQUIRED.class ,\n \"set_ImageHeight\", Integer.TYPE, \"set_ImageHeight__Special\", \"get_ImageHeight\",\n 11, -1, -1, 6); // last 4 params: expected value, null expected value, unused expected value, default expected value \n\n FieldSet_TestUtilities.test_SetAndGetFieldName(executeInfo, formRequired_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$WEB$__$FORM$_S_$FORM$__$REQUIRED.class ,\n \"set_ImageWidth\", Integer.TYPE, \"set_ImageWidth__Special\", \"get_ImageWidth\",\n 12, -1, -1, 7); // last 4 params: expected value, null expected value, unused expected value, default expected value \n\n\n\n }", "public TestCase() {\n fName= null;\n }", "public void setFieldname(String newFieldname)\n\t{\n\t\tfieldname = newFieldname;\n\t}", "public void setName (String newName)\n {\n this.name = newName; \n }", "UCRefactoringFactory getUCRefactoringFactory();", "public void renameField(Class<?> type, String oldFieldName, String newFieldName) {\n\t\trenameField(type.getName(), oldFieldName, newFieldName);\n\t}", "DocumentReaderFields(final String strInitFieldName) {\r\n this.strFieldName = strInitFieldName;\r\n }", "@Test\n public void test_setLastName() {\n String value = \"new_value\";\n instance.setLastName(value);\n\n assertEquals(\"'setLastName' should be correct.\",\n value, TestsHelper.getField(instance, \"lastName\"));\n }", "public void testChangeName() {\n System.out.println(\"changeName\");\n String expResult = \"Anu\";\n //String result = new changeName('Anu', \"Shar\");\n assertEquals(expResult, result);\n }", "HxField createField(final String fieldType,\n final String fieldName);", "@Test\n public void fieldUserName() throws Exception {\n Document doc = new Document();\n\n // Create a UserInformation object and set it as the source of user information for any fields that we create.\n UserInformation userInformation = new UserInformation();\n userInformation.setName(\"John Doe\");\n doc.getFieldOptions().setCurrentUser(userInformation);\n\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n // Create a USERNAME field to display the current user's name,\n // taken from the UserInformation object we created above.\n FieldUserName fieldUserName = (FieldUserName) builder.insertField(FieldType.FIELD_USER_NAME, true);\n Assert.assertEquals(userInformation.getName(), fieldUserName.getResult());\n\n Assert.assertEquals(\" USERNAME \", fieldUserName.getFieldCode());\n Assert.assertEquals(\"John Doe\", fieldUserName.getResult());\n\n // We can set this property to get our field to override the value currently stored in the UserInformation object. \n fieldUserName.setUserName(\"Jane Doe\");\n fieldUserName.update();\n\n Assert.assertEquals(\" USERNAME \\\"Jane Doe\\\"\", fieldUserName.getFieldCode());\n Assert.assertEquals(\"Jane Doe\", fieldUserName.getResult());\n\n // This does not affect the value in the UserInformation object.\n Assert.assertEquals(\"John Doe\", doc.getFieldOptions().getCurrentUser().getName());\n\n doc.updateFields();\n doc.save(getArtifactsDir() + \"Field.USERNAME.docx\");\n //ExEnd\n\n doc = new Document(getArtifactsDir() + \"Field.USERNAME.docx\");\n\n fieldUserName = (FieldUserName) doc.getRange().getFields().get(0);\n\n TestUtil.verifyField(FieldType.FIELD_USER_NAME, \" USERNAME \\\"Jane Doe\\\"\", \"Jane Doe\", fieldUserName);\n Assert.assertEquals(\"Jane Doe\", fieldUserName.getUserName());\n }", "@Override\n\tpublic void setFieldName(final String fieldName)\n\t{\n\t\tthis.fieldName = fieldName;\n\t}", "private Field(String jsonString) {\n this.jsonString = jsonString;\n }", "public void setField(String field) {\n this.field = field;\n }", "public ChangeFieldEf( EAdField<?> field,\r\n\t\t\tEAdOperation operation) {\r\n\t\tsuper();\r\n\t\tsetId(\"changeField\");\r\n\t\tthis.fields = new EAdListImpl<EAdField<?>>(EAdField.class);\r\n\t\tif (field != null)\r\n\t\t\tfields.add(field);\r\n\t\tthis.operation = operation;\r\n\t}", "@Test(expected = UnrecognizedPropertyException.class)\n public void failOnFieldRename() throws IOException, URISyntaxException, ParseException {\n\n ObjectMapper mapper = new ObjectMapper();\n\n String origJsonDataFile = UserTest.class.getSimpleName() + \"_desc2.json\";\n String jsonData = ApiTestUtil.readJSONFile(origJsonDataFile);\n\n User u = mapper.readValue(jsonData, User.class);\n assertEquals( Integer.valueOf(56239), u.getId());\n\n String targetJson = mapper.writeValueAsString(u);\n JSONObject json = ApiTestUtil.convertJSONStr2Obj(targetJson);\n JSONObject expectedJson = ApiTestUtil.convertJSONStr2Obj(jsonData);\n\n ApiTestUtil.verifyJson((Map<String, Object>)json, (Map<String, Object>)expectedJson);\n\n }", "private com.google.protobuf.SingleFieldBuilder<\n alluxio.proto.journal.File.RenameEntry, alluxio.proto.journal.File.RenameEntry.Builder, alluxio.proto.journal.File.RenameEntryOrBuilder> \n getRenameFieldBuilder() {\n if (renameBuilder_ == null) {\n renameBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n alluxio.proto.journal.File.RenameEntry, alluxio.proto.journal.File.RenameEntry.Builder, alluxio.proto.journal.File.RenameEntryOrBuilder>(\n rename_,\n getParentForChildren(),\n isClean());\n rename_ = null;\n }\n return renameBuilder_;\n }", "@Override\r\n\tpublic void transform(CtExecutable method) {\n reset();\r\n \r\n // Get setup for renaming\r\n setDefs(getChildrenOfType(method, CtLocalVariable.class));\r\n setSubtokens(topTargetSubtokens);\r\n \r\n // Select some percentage of things to rename\r\n takePercentage(RENAME_PERCENT);\r\n\r\n // Build new names and apply them\r\n applyRenaming(method, false, generateRenaming(\r\n method, SHUFFLE_MODE, NAME_MIN_LENGTH, NAME_MAX_LENGTH\r\n ));\r\n\t}", "public void setName(String name)\n/* */ {\n/* 84 */ this._name = name;\n/* */ }", "public ParamNameTest(String testName) {\n super(testName);\n }", "public void testFields()\n {\n TestUtils.testNoAddedFields(getTestedClass(), null);\n }", "public void setFieldName(String fieldName) {\r\n this.fieldName = fieldName;\r\n }", "public void renameField(String className, String name, String newName) \n\t{\n\t\tstoreViewState();\n\t\tproject.renameField(className, name, newName);\n\t\tcheckStatus();\n\t}", "@Test\n public void test_getAndSet_ByFieldName_GenericMethods() throws Exception {\n\n FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1 descNum1_FieldSet = new FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1(\n executeInfo, null);\n\n\n\n descNum1_FieldSet.schemaInfo_Positioned = mock_schemaInfoFieldSet_descNum1;\n\n\n // Test primitive types _______________________________________\n\n FieldSet_TestUtilities.test_SetAndGet_useFieldName(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField\", Object.class, \"setField__Special\", \"getField\", \"field1Str\", symbolControl,\n \"hello\", null, null, \"hi\"); // last 4 params: expected value, null expected value, unused expected value, default expected value \n\n\n FieldSet_TestUtilities.test_SetAndGet_useFieldName(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField\", Object.class, \"setField__Special\", \"getField\", \"field2Short\", symbolControl,\n (short)10, null, null, (short)-1001); // last 4 params: expected value, null expected value, unused expected value, default expected value \n\n\n // Continuation Field - can not call the generic setField(fieldName) and getField(fieldName) on a cont field.\n // this should throw an exception (which is returned by the test method.\n Exception exception = FieldSet_TestUtilities.test_SetAndGet_useFieldName(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField\", Object.class, \"setField__Special\", \"getField\", \"field3ContInt\", symbolControl,\n 11, null, null, -1000, true); // last 5 params: expected value, null expected value, unused expected value, default expected value, returnExceptions \n \n assertTrue(exception != null);\n \n\n\n // Test Object Types ________________________________________________________________________________________\n FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$WEB$__$FORM$_S_$FORM$__$REQUIRED formRequired_FieldSet = new FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$WEB$__$FORM$_S_$FORM$__$REQUIRED(executeInfo, null);\n\n formRequired_FieldSet.schemaInfo_Positioned = schemaInfoFieldSet_formRequired;\n\n\n FieldSet_TestUtilities.test_SetAndGet_useFieldName(executeInfo, formRequired_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$WEB$__$FORM$_S_$FORM$__$REQUIRED.class,\n \"setField\", Object.class, \"setField__Special\", \"getField\", \"IsRequired\", symbolControl,\n notRequired, null, null, notRequired); // last 4 params: expected value, null expected value, unused expected value, default expected value \n\n FieldSet_TestUtilities.test_SetAndGet_useFieldName(executeInfo, formRequired_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$WEB$__$FORM$_S_$FORM$__$REQUIRED.class,\n \"setField\", Object.class, \"setField__Special\", \"getField\", \"RequiredImagePath\", symbolControl,\n \"\\test\\required.gif\", null, null, \"/images/required.gif\"); // last 4 params: expected value, null expected value, unused expected value, default expected value \n\n }", "public FieldMetaData(MetaData parent, final String name)\r\n {\r\n super(parent, name);\r\n }", "public Builder setField1234(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n field1234_ = value;\n onChanged();\n return this;\n }", "public FieldInfo() {\r\n \t// No implementation required\r\n }", "FieldDefinition createFieldDefinition();", "public Field(){\n\n // this(\"\",\"\",\"\",\"\",\"\");\n }", "private void setNewFields(String[] fields) {\n for (String fieldName : fields) {\n setNewField(fieldName);\n }\n }", "@Test\n public void TransformConstructorTest() {\n }", "protected void setUp() {\r\n File cleanDir = new File(this.clean);\r\n dest = new File(root + \"\\\\field\");\r\n if (!dest.exists()) {\r\n dest.mkdirs();\r\n }\r\n\r\n (new FileCopy(\r\n new File(cleanDir, \"field_RenameFieldTest.java\"),\r\n new File(dest, \"RenameFieldTest.java\"),\r\n false)).run();\r\n (new FileCopy(\r\n new File(cleanDir, \"field_UsesFieldTest.java\"),\r\n new File(dest, \"UsesFieldTest.java\"),\r\n false)).run();\r\n (new FileCopy(\r\n new File(cleanDir, \"field_InheritFieldTest.java\"),\r\n new File(dest, \"InheritFieldTest.java\"),\r\n false)).run();\r\n (new FileCopy(\r\n new File(cleanDir, \"XDateChooser.java\"),\r\n new File(root + \"\\\\XDateChooser.java\"),\r\n false)).run();\r\n\r\n (new SummaryTraversal(root)).run();\r\n }", "void renameFieldsOf(Object o) {\r\n\t\tfor (Field f : o.getClass().getDeclaredFields()) {\r\n\t\t\tRename fr = f.getAnnotation(Rename.class);\r\n\t\t\tif (fr != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tif (AbstractButton.class.isAssignableFrom(f.getType())) {\r\n\t\t\t\t\t\tAbstractButton btn = AbstractButton.class.cast(f.get(o));\r\n\t\t\t\t\t\tif (fr.to().length() > 0) {\r\n\t\t\t\t\t\t\tbtn.setText(labels.get(fr.to()));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (fr.tip().length() > 0) {\r\n\t\t\t\t\t\t\tbtn.setToolTipText(labels.get(fr.tip()));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (JLabel.class.isAssignableFrom(f.getType())) {\r\n\t\t\t\t\t\tJLabel lbl = JLabel.class.cast(f.get(o));\r\n\t\t\t\t\t\tif (fr.to().length() > 0) {\r\n\t\t\t\t\t\t\tlbl.setText(labels.get(fr.to()));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (fr.tip().length() > 0) {\r\n\t\t\t\t\t\t\tlbl.setToolTipText(labels.get(fr.tip()));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (String.class.isAssignableFrom(f.getType())) {\r\n\t\t\t\t\t\tf.set(o, labels.get(fr.to()));\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (IllegalAccessException ex) {\r\n\t\t\t\t\tex.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public TicketField(String key, String value) {\n TF_Field_Name = key.toUpperCase().trim();\n TF_Field_Value = value.trim();\n }", "FieldInstance fieldNamed(String name);", "public UserInputField() {\n }", "@Test\r\n public void testSetfName() {\r\n System.out.println(\"setfName\");\r\n String fName = \"\";\r\n Student instance = new Student();\r\n instance.setfName(fName);\r\n \r\n }", "public void setFieldName(String fieldName) {\n this.fieldName = fieldName;\n }", "@Test\n public void testSetCharterFileName() {\n System.out.println(\"setCharterFileName\");\n String charterFileName = \"\";\n CharterDto instance = new CharterDto(\"Test name\");\n instance.setCharterFileName(charterFileName);\n // TODO review the generated test code and remove the default call to fail.\n// fail(\"The test case is a prototype.\");\n }", "@Test\n public void testSetName() {\n System.out.println(\"setName\");\n Member instance = member;\n \n String name = \"new Name\";\n instance.setName(name);\n \n String expResult = \"new Name\";\n String result = instance.getName();\n \n assertEquals(expResult,result);\n }", "public void setName(String name) {\n fName= name;\n }", "public void setFieldName(java.lang.String fieldName) {\n this.fieldName = fieldName;\n }", "private SomePojoClass(String name) {\n this.name = name;\n }", "private SortCaseOrder(String strName) { m_strName = strName; }", "public RefactoringAction(SelectedFileSet init) {\r\n super();\r\n System.out.println(\"RefactoringAction(SelectedFileSet)\");\r\n selectedFileSet = init;\r\n }", "@org.junit.Test\n public void setName() {\n }", "@Test\n public void renameFileTest(){\n fail();\n }", "@Override\n public void changeField (String fieldToModify, String value, Double duration) {\n\n }", "public FieldDefinition(String file)\n\t{\n\t\tsetFile(file);\n\t}", "public FieldDefinition(FieldData fieldData)\n\t{\n\t\tcommonInitialisation();\n\t\tthis.fieldName = fieldData.getFieldName().toUpperCase();\n\t\tthis.fieldType = fieldData.getFieldType();\n\t\tthis.fieldLength = fieldData.getFieldLength();\n\t\tthis.fieldDecimal = fieldData.getFieldDecimal();\n\t\tthis.upperCase = fieldData.isUpperCase();\n\t\tthis.workField = fieldData.isWorkField();\n\t\tthis.repeating = fieldData instanceof RepeatingFieldData;\n\t}", "@Test\n\tpublic void testSetAvroField() {\n\t}", "@Test\n public void testSetName() {\n final String newName1 = \"Karate Kid 2\";\n final String newName2 = \"Seven Day\";\n movie1.setName(newName1);\n movie3.setName(newName2);\n assertEquals(newName1, movie1.getName());\n assertEquals(gloryMovie, movie2.getName());\n assertEquals(newName2, movie3.getName());\n assertEquals(theShawshankRedemtionMovie, movie4.getName());\n }", "@Test\n public void testResetField() {\n System.out.println(\"resetField\"); \n instance.resetField();\n \n }", "public Builder setField1028(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n field1028_ = value;\n onChanged();\n return this;\n }", "FieldRefType createFieldRefType();", "public PropertyChangedEventArgs2(T source, String properyName, Object newValue) {\n this.source = source;\n this.properyName = properyName;\n this.newValue = newValue;\n }", "public FieldMetaData(MetaData parent, AbstractMemberMetaData fmd)\r\n {\r\n super(parent, fmd);\r\n }", "public Builder setField1020(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n field1020_ = value;\n onChanged();\n return this;\n }", "public void testGetFieldName()\n\t{\n\t\tfinal CertificatePolicyIndentifierExtensionField field = new CertificatePolicyIndentifierExtensionField(true);\n\t\n\t\tassertEquals(TBSFieldName.EXTENSIONS, field.getFieldName());\n\t}", "@Test\n public void testTrackerNaming() {\n }", "@Test\n public void testSetName_1()\n throws Exception {\n Project fixture = new Project();\n fixture.setWorkloadNames(\"\");\n fixture.setName(\"\");\n fixture.setScriptDriver(ScriptDriver.SilkPerformer);\n fixture.setWorkloads(new LinkedList());\n fixture.setComments(\"\");\n fixture.setProductName(\"\");\n String name = \"\";\n\n fixture.setName(name);\n\n }", "public JsonField() {\n }", "@Test\n public void test_getAndSet_ByFieldName_TypedMethods() throws Exception {\n\n FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1 descNum1_FieldSet = new FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1(\n executeInfo, null);\n\n\n\n descNum1_FieldSet.schemaInfo_Positioned = mock_schemaInfoFieldSet_descNum1;\n\n // Test the Get & Set methods: primitive types ______________________________________________________________\n\n\n FieldSet_TestUtilities.test_SetAndGet_useFieldName(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField_String\", String.class, \"setField__Special\", \"getField_String\", \"field1Str\", symbolControl,\n \"stuff\", null, null, \"hi\"); /* last 4 params: expected value, null expected value, unused expected value, default expected value */\n\n FieldSet_TestUtilities.test_SetAndGet_useFieldName(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField_short\", Short.TYPE, \"setField__Special\", \"getField_short\", \"field2Short\", symbolControl,\n (short)123, (short)-1, (short)-1, (short)-1001); /* last 4 params: expected value, getField_short expected value, unused expected value, default expected value */\n\n // Continuation Field - can not call the generic setField(fieldName) and getField(fieldName) on a cont field.\n // this should throw an exception (which is returned by the test method).\n Exception exception = FieldSet_TestUtilities.test_SetAndGet_useFieldName(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField_int\", Integer.TYPE, \"setField__Special\", \"getField_int\", \"field3ContInt\", symbolControl,\n 456, -1, -1, -1000, true); // last 5 params: expected value, null expected value, unused expected value, default expected value, returnExceptions\n\n assertTrue(exception != null);\n\n\n // Test Object Types ________________________________________________________________________________________\n FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$WEB$__$FORM$_S_$FORM$__$REQUIRED formRequired_FieldSet = new FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$WEB$__$FORM$_S_$FORM$__$REQUIRED(executeInfo, null);\n\n formRequired_FieldSet.schemaInfo_Positioned = schemaInfoFieldSet_formRequired;\n\n\n FieldSet_TestUtilities.test_SetAndGet_useFieldName(executeInfo, formRequired_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$WEB$__$FORM$_S_$FORM$__$REQUIRED.class,\n \"setField_Symbol\", Symbol.class, \"setField__Special\", \"getField_Symbol\", \"IsRequired\", symbolControl,\n notRequired, null, null, notRequired); // last 4 params: expected value, null expected value, unused expected value, default expected value \n\n FieldSet_TestUtilities.test_SetAndGet_useFieldName(executeInfo, formRequired_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$WEB$__$FORM$_S_$FORM$__$REQUIRED.class,\n \"setField_String\", String.class, \"setField__Special\", \"getField_String\", \"RequiredImagePath\", symbolControl,\n \"\\test\\required.gif\", null, null, \"/images/required.gif\"); // last 4 params: expected value, null expected value, unused expected value, default expected value \n\n\n }" ]
[ "0.7209031", "0.7204827", "0.71630293", "0.71427023", "0.6994482", "0.6944094", "0.6939367", "0.6380189", "0.63006765", "0.6266316", "0.6091713", "0.6000271", "0.58893263", "0.5816125", "0.57669234", "0.5729005", "0.5729005", "0.56971306", "0.56294453", "0.5574215", "0.55552375", "0.55517185", "0.55503255", "0.55313534", "0.55063456", "0.55060685", "0.5503584", "0.54964983", "0.54898256", "0.5464706", "0.54589957", "0.54473037", "0.54380244", "0.5424206", "0.5418512", "0.5412104", "0.5373623", "0.5363592", "0.53633195", "0.53375083", "0.5306059", "0.52886885", "0.52780735", "0.52762073", "0.52456343", "0.52413285", "0.5225502", "0.52062535", "0.52058476", "0.52047527", "0.51987517", "0.5192046", "0.5168281", "0.5147285", "0.5146898", "0.51465183", "0.5135266", "0.51292944", "0.51239073", "0.5122252", "0.51201534", "0.51162106", "0.511426", "0.51132834", "0.51013196", "0.5100918", "0.50967544", "0.5090857", "0.50866264", "0.5084038", "0.5075008", "0.50730425", "0.5067902", "0.50655043", "0.50641006", "0.5062297", "0.5052608", "0.5048652", "0.5048396", "0.50471205", "0.50460815", "0.5033042", "0.50312686", "0.50271827", "0.5026497", "0.50173736", "0.50167423", "0.50155056", "0.5007615", "0.5003778", "0.5001025", "0.49943793", "0.49917856", "0.49850202", "0.49762604", "0.49760044", "0.49715915", "0.49704266", "0.49674848", "0.49666825" ]
0.8853182
0
A unit test for JUnit
public void test01() throws RefactoringException { RenameFieldRefactoring rfr = new RenameFieldRefactoring(); rfr.setClass("field", "RenameFieldTest"); rfr.setField("simple"); rfr.setNewName("changed"); rfr.run(); // Check things out File check = new File(this.check + "\\ut2\\step11"); FileCompare.assertEquals("RenameFieldTest is incorrect", new File(check, "RenameFieldTest.java"), new File(dest, "RenameFieldTest.java")); FileCompare.assertEquals("UsesFieldTest is incorrect", new File(check, "UsesFieldTest.java"), new File(dest, "UsesFieldTest.java")); FileCompare.assertEquals("InheritFieldTest is incorrect", new File(check, "InheritFieldTest.java"), new File(dest, "InheritFieldTest.java")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void testSanity() {\n\t}", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Test\n public void simpleUse(){\n }", "@Test\r\n\tpublic void test() {\r\n\t}", "@org.junit.Test\r\n\tpublic void test() {\n\t\t\t\t\r\n\t}", "public void testDumbJUnit() {\n }", "@Test\n\tpublic void test(){\n\t}", "@Test\n\tpublic void test() {\n\t}", "@Test\n\tpublic void test() {\n\t}", "@Override\n public void setUp() {\n }", "@Test\n public void testAddACopy() {\n }", "@Test\n public void testCarregarTrimestre() {\n }", "@Test\n public void testCarregarUex() {\n }", "public void testGetBasedata() {\n }", "@Test\n\tvoid test() {\n\t\t\n\t}", "@Test\n\tpublic void testMain() {\n\t}", "@Test\n public void testQuickMapList() {\n//TODO: Test goes here... \n }", "@Override\n public void setUp() throws Exception {}", "@Test\n public void testQueryList(){\n }", "@Test\n public void accuseSuccesTest() throws Exception {\n }", "@Test\n public void testInsertData() throws Exception {\n//TODO: Test goes here... \n }", "@Test\n public void testCreate() {\n\n }", "@Override\n public void runTest() {\n }", "@Test\n public void testQuery(){\n }", "@Test\r\n public void elCerdoNoSePuedeAtender() {\n }", "protected void setUp()\n {\n }", "protected void setUp()\n {\n }", "@Test\n public void searchesTest() {\n // TODO: test searches\n }", "@Test\n public void testAdd() {\n }", "@Test\n public void testAdd() {\n }", "@Test\n public void testAdd(){\n }", "@Test\n public void main() {\n // App.main(null);\n // assertEquals(\"Hello world\", outContent.toString());\n }", "public void testAddEntry(){\n }", "public void test() {\n\tassertTrue(true);\n\t}", "private void test() {\n\n\t}", "protected void setUp() {\n\n }", "public StrandUnitTest()\n {\n }", "@Override\r\n\tpublic void setUp() {\n\t\t\r\n\t}", "@Test\n public void testCarregarAno() {\n }", "@Override\r\n\tpublic void setUp() {\n\r\n\t}", "@Test\n public void testingTheTwoPlane2016Order() {\n }", "@Before public void setUp() { }", "@Test\npublic void testFindDtoListBySql() throws Exception { \n//TODO: Test goes here... \n}", "@Test\n public void testSuccess() {\n }", "@Test\r\n public void testRentOut() {\r\n }", "@Test\n public void testStuff() {\n\n assertTrue(true);\n }", "@Before\n\t public void setUp() {\n\t }", "@Override\r\n protected void setUp() {\r\n // nothing yet\r\n }", "@Test\n public void test() {\n }", "public void testDummy() {\n }", "protected void setUp() throws Exception {\n \n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "public void testDummy() {\n }", "@Before\n public void setUp () {\n }", "@Test\n public void request() throws Exception {\n\n\n }", "public void testMock(){\n\t}", "protected void setUp() throws Exception {\n }", "@Test\r\n\tpublic void acreditar() {\r\n\t}", "@Before\r\n public void setUp()\r\n {\r\n }", "@Before\r\n public void setUp()\r\n {\r\n }", "@Before\r\n public void setUp()\r\n {\r\n }", "@Before\r\n public void setUp()\r\n {\r\n }", "@Before\n public void setUp() {\n }", "@Before\n public void setUp() {\n }", "@Before\n public void setUp() {\n }", "@Before\n public void setUp() {\n }", "@Before\n public void setUp() {\n }", "@Test\n\tpublic void testTotalPuzzleGenerated() {\n\t}", "@Test\n public void test(){\n }", "@Test\n public void test(){\n }", "@Test\n\tpublic void getTest() {\n\t}", "@Test\n public void testWalkForPduTarget() throws Exception {\n//TODO: Test goes here... \n }", "@Before\n\tpublic void setUp() {\n\t}", "@Test\n\tvoid searchTest() {\n\t}", "@Test\n public void testPuery(){\n }", "@Test\n public void dummyTest() {\n }", "@Test\n public void testBeer() {\n // TODO: test Beer\n }", "@Test\n public void sourceTest() {\n // TODO: test source\n }", "@Test\n public void sourceTest() {\n // TODO: test source\n }", "@Test\n public void test() {\n }", "@Test\n public void test() {\n }", "Testcase createTestcase();", "@Test\n public void test(){\n\n\n }", "@Test\n public void testDAM30203001() {\n testDAM30102001();\n }" ]
[ "0.75710434", "0.74449277", "0.73627865", "0.731134", "0.7304504", "0.7222832", "0.7215483", "0.72147363", "0.72147363", "0.7214447", "0.72114563", "0.72114515", "0.7207631", "0.7183441", "0.71810764", "0.716787", "0.7122575", "0.71210265", "0.709407", "0.7086396", "0.7084878", "0.70721215", "0.70629096", "0.70581967", "0.70570946", "0.70487064", "0.70487064", "0.7042338", "0.7036349", "0.7036349", "0.7030297", "0.70292807", "0.70269907", "0.70218384", "0.70153826", "0.70087796", "0.7000109", "0.6999088", "0.69932306", "0.69927245", "0.69880813", "0.6987441", "0.6981792", "0.6975991", "0.6962431", "0.6961256", "0.69545656", "0.69498664", "0.6946821", "0.6946613", "0.69436896", "0.69366735", "0.69366735", "0.69366735", "0.69366735", "0.69366735", "0.69366735", "0.69366735", "0.69366735", "0.69366735", "0.69366735", "0.69366735", "0.69366735", "0.69366735", "0.69366735", "0.69366735", "0.69366735", "0.69366735", "0.69366735", "0.6928297", "0.69265693", "0.692401", "0.6917125", "0.6913771", "0.69128734", "0.69098765", "0.69098765", "0.69098765", "0.69098765", "0.6906769", "0.6906769", "0.6906769", "0.6906769", "0.6906769", "0.68955183", "0.68879676", "0.68879676", "0.68870705", "0.68859893", "0.68812704", "0.6872602", "0.6871005", "0.68704134", "0.6868547", "0.6866817", "0.6866817", "0.6864914", "0.6864914", "0.68599325", "0.6855216", "0.68546236" ]
0.0
-1
A unit test for JUnit
public void test02() throws RefactoringException { RenameFieldRefactoring rfr = new RenameFieldRefactoring(); rfr.setClass("field", "RenameFieldTest"); rfr.setField("code"); rfr.setNewName("changed"); rfr.run(); // Check things out File check = new File(this.check + "\\ut2\\step12"); FileCompare.assertEquals("RenameFieldTest is incorrect", new File(check, "RenameFieldTest.java"), new File(dest, "RenameFieldTest.java")); FileCompare.assertEquals("UsesFieldTest is incorrect", new File(check, "UsesFieldTest.java"), new File(dest, "UsesFieldTest.java")); FileCompare.assertEquals("InheritFieldTest is incorrect", new File(check, "InheritFieldTest.java"), new File(dest, "InheritFieldTest.java")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void testSanity() {\n\t}", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Test\n public void simpleUse(){\n }", "@Test\r\n\tpublic void test() {\r\n\t}", "@org.junit.Test\r\n\tpublic void test() {\n\t\t\t\t\r\n\t}", "public void testDumbJUnit() {\n }", "@Test\n\tpublic void test(){\n\t}", "@Test\n\tpublic void test() {\n\t}", "@Test\n\tpublic void test() {\n\t}", "@Override\n public void setUp() {\n }", "@Test\n public void testAddACopy() {\n }", "@Test\n public void testCarregarTrimestre() {\n }", "@Test\n public void testCarregarUex() {\n }", "public void testGetBasedata() {\n }", "@Test\n\tvoid test() {\n\t\t\n\t}", "@Test\n\tpublic void testMain() {\n\t}", "@Test\n public void testQuickMapList() {\n//TODO: Test goes here... \n }", "@Override\n public void setUp() throws Exception {}", "@Test\n public void testQueryList(){\n }", "@Test\n public void accuseSuccesTest() throws Exception {\n }", "@Test\n public void testInsertData() throws Exception {\n//TODO: Test goes here... \n }", "@Test\n public void testCreate() {\n\n }", "@Override\n public void runTest() {\n }", "@Test\n public void testQuery(){\n }", "@Test\r\n public void elCerdoNoSePuedeAtender() {\n }", "protected void setUp()\n {\n }", "protected void setUp()\n {\n }", "@Test\n public void searchesTest() {\n // TODO: test searches\n }", "@Test\n public void testAdd() {\n }", "@Test\n public void testAdd() {\n }", "@Test\n public void testAdd(){\n }", "@Test\n public void main() {\n // App.main(null);\n // assertEquals(\"Hello world\", outContent.toString());\n }", "public void testAddEntry(){\n }", "public void test() {\n\tassertTrue(true);\n\t}", "private void test() {\n\n\t}", "protected void setUp() {\n\n }", "public StrandUnitTest()\n {\n }", "@Override\r\n\tpublic void setUp() {\n\t\t\r\n\t}", "@Test\n public void testCarregarAno() {\n }", "@Override\r\n\tpublic void setUp() {\n\r\n\t}", "@Test\n public void testingTheTwoPlane2016Order() {\n }", "@Before public void setUp() { }", "@Test\npublic void testFindDtoListBySql() throws Exception { \n//TODO: Test goes here... \n}", "@Test\n public void testSuccess() {\n }", "@Test\r\n public void testRentOut() {\r\n }", "@Test\n public void testStuff() {\n\n assertTrue(true);\n }", "@Before\n\t public void setUp() {\n\t }", "@Override\r\n protected void setUp() {\r\n // nothing yet\r\n }", "@Test\n public void test() {\n }", "public void testDummy() {\n }", "protected void setUp() throws Exception {\n \n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "public void testDummy() {\n }", "@Before\n public void setUp () {\n }", "@Test\n public void request() throws Exception {\n\n\n }", "public void testMock(){\n\t}", "protected void setUp() throws Exception {\n }", "@Test\r\n\tpublic void acreditar() {\r\n\t}", "@Before\r\n public void setUp()\r\n {\r\n }", "@Before\r\n public void setUp()\r\n {\r\n }", "@Before\r\n public void setUp()\r\n {\r\n }", "@Before\r\n public void setUp()\r\n {\r\n }", "@Before\n public void setUp() {\n }", "@Before\n public void setUp() {\n }", "@Before\n public void setUp() {\n }", "@Before\n public void setUp() {\n }", "@Before\n public void setUp() {\n }", "@Test\n\tpublic void testTotalPuzzleGenerated() {\n\t}", "@Test\n public void test(){\n }", "@Test\n public void test(){\n }", "@Test\n\tpublic void getTest() {\n\t}", "@Test\n public void testWalkForPduTarget() throws Exception {\n//TODO: Test goes here... \n }", "@Before\n\tpublic void setUp() {\n\t}", "@Test\n\tvoid searchTest() {\n\t}", "@Test\n public void testPuery(){\n }", "@Test\n public void dummyTest() {\n }", "@Test\n public void testBeer() {\n // TODO: test Beer\n }", "@Test\n public void sourceTest() {\n // TODO: test source\n }", "@Test\n public void sourceTest() {\n // TODO: test source\n }", "@Test\n public void test() {\n }", "@Test\n public void test() {\n }", "Testcase createTestcase();", "@Test\n public void test(){\n\n\n }", "@Test\n public void testDAM30203001() {\n testDAM30102001();\n }" ]
[ "0.75710434", "0.74449277", "0.73627865", "0.731134", "0.7304504", "0.7222832", "0.7215483", "0.72147363", "0.72147363", "0.7214447", "0.72114563", "0.72114515", "0.7207631", "0.7183441", "0.71810764", "0.716787", "0.7122575", "0.71210265", "0.709407", "0.7086396", "0.7084878", "0.70721215", "0.70629096", "0.70581967", "0.70570946", "0.70487064", "0.70487064", "0.7042338", "0.7036349", "0.7036349", "0.7030297", "0.70292807", "0.70269907", "0.70218384", "0.70153826", "0.70087796", "0.7000109", "0.6999088", "0.69932306", "0.69927245", "0.69880813", "0.6987441", "0.6981792", "0.6975991", "0.6962431", "0.6961256", "0.69545656", "0.69498664", "0.6946821", "0.6946613", "0.69436896", "0.69366735", "0.69366735", "0.69366735", "0.69366735", "0.69366735", "0.69366735", "0.69366735", "0.69366735", "0.69366735", "0.69366735", "0.69366735", "0.69366735", "0.69366735", "0.69366735", "0.69366735", "0.69366735", "0.69366735", "0.69366735", "0.6928297", "0.69265693", "0.692401", "0.6917125", "0.6913771", "0.69128734", "0.69098765", "0.69098765", "0.69098765", "0.69098765", "0.6906769", "0.6906769", "0.6906769", "0.6906769", "0.6906769", "0.68955183", "0.68879676", "0.68879676", "0.68870705", "0.68859893", "0.68812704", "0.6872602", "0.6871005", "0.68704134", "0.6868547", "0.6866817", "0.6866817", "0.6864914", "0.6864914", "0.68599325", "0.6855216", "0.68546236" ]
0.0
-1